aboutsummaryrefslogtreecommitdiff
path: root/libbb/interface.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove a warningandersen2004-04-141-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8760 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-151-12/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix for compiling with ipv6bug12003-08-291-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7283 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Save 0.5K.mjn32003-08-021-129/+154
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7154 69ca8d6d-28ef-0310-b511-8ec308f3f277
* James Petterson writes:andersen2003-07-281-2/+2
| | | | | | | | | | | | | | | | | | | | | I've found a possible bug in libbb/interface.c, in function if_readlist_proc(). This function calls get_name(), and passes as an argument 'name', a buffer of 16 bytes (IFNAMSIZ). The function get_name(), however, may use more than 16 bytes, when it is searching for aliases. Even if you don't have an alias interface, you can run into trouble if the interface has received more than 99999999 bytes, in which case the space between the interface name and the rx stats disappears, as in the /proc/net/dev example below: wan0.200:264573315 462080 ... In this case get_name() correctly identifies the interface name as "wan0.200", but to do that it uses 18 bytes of the 'name' buffer, which could lead to an unpredictable error. A simple solution would be to increase the size of the buffer: git-svn-id: svn://busybox.net/trunk/busybox@7117 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove remaining libc5 support codeandersen2003-07-221-5/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7090 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update a bunch of docs. Run a script to update my email addr.andersen2003-07-141-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-15/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix compiler warnings, patch by Steven Scholzbug12003-02-091-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6549 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminate most instances where we use linux kernel headersandersen2003-01-141-2/+7
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@6329 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use error_msg instead of fprintf(stderr, other minor cleanupsbug12002-11-281-27/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6046 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use #ifdef CONFIG_* instead of #if CONFIG_*bug12002-11-261-4/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6022 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use "MiB" not "Mb"andersen2002-09-171-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@5528 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove duplicate definitions, run through indentbug12002-08-221-1292/+1279
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5348 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch from Bart Visscher <magick@linux-fan.com> addsandersen2002-07-031-5/+96
| | | | | | | | | | | | | | | | | | IPV6 support to busybox. This patch does the following: * Add IPv6 support to libbb * Enable IPv6 interface address display * Add IPv6 config option * Adds ping6, an adaptation of the ping applet for IPv6 * Adds support routines for ping6: - xgethostbyname2 - create_icmp6_socket * Adds ifconfig support for IPv6 * Add support IPv6 to netstat * Add IPv6 support to route Thanks Bart! git-svn-id: svn://busybox.net/trunk/busybox@5003 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Latest patch from vodz:andersen2001-11-101-190/+7
| | | | | | | | | | -- reverse resolve network name and cache in route and ifconfig applets, fix print nslookup server name if compile without uClibc, fix route crashe 'route add', fix warnings compile networking and pwd_grp applets git-svn-id: svn://busybox.net/trunk/busybox@3645 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be extra pedantic about printing the correct type for an addressandersen2001-10-271-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3593 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rework of the directory structure and the entire build system.andersen2001-10-241-12/+13
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some adjustments, mostly from David McCullough <davidm@lineo.com> toandersen2001-07-191-2/+5
| | | | | | | | | | make busybox be more uClinux friendly. I also adjusted Config.h for uClinux so it will automagically disable apps the arn't going to work without fork() and such. -Erik git-svn-id: svn://busybox.net/trunk/busybox@3130 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vladimir's last_patch13, containing several bugfixes.andersen2001-06-011-4/+41
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2779 69ca8d6d-28ef-0310-b511-8ec308f3f277
* include libbb.h after other includesbug12001-05-051-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2542 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This has two patches. First it moves interface.c to libbb (it isandersen2001-04-191-0/+2129
support code after all). It also contains a patch from Larry Doolittle that removes two instances of "strlen([^)]*) *- *1", un-shadows two variables, relaxes requirement for a sprintf(3) that returns number of bytes written, and eliminates a duplicate subroutine. git-svn-id: svn://busybox.net/trunk/busybox@2379 69ca8d6d-28ef-0310-b511-8ec308f3f277