aboutsummaryrefslogtreecommitdiff
path: root/libbb/interface.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move interface.c to networking directory since it's only used by ifconfig.Rob Landley2005-11-221-2093/+0
|
* more const"Vladimir N. Oleynik"2005-10-201-19/+19
|
* bb_mkdep: Rewroted. removed problem "include name must uniq", speed up * 3."Vladimir N. Oleynik"2005-10-101-2/+0
| | | | | e2fsprogs: remove confuse bb_mkdep. Use internal e2fsprogs includes only. other: remove confuse bb_mkdep.
* Shaun Jackman said:Rob Landley2005-05-031-9/+21
| | | | | | This patch adds a CONFIG_FEATURE_CLEAN_UP stanza, and also adds an ifdef around the SIOCGIFMAP call.
* Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen2005-04-161-1/+1
| | | | which were otherwise cluttering the global namespace.
* newlib fixe from Shaun JackmanMike Frysinger2005-03-041-1/+1
|
* Felipe Kellermann writes:Eric Andersen2004-08-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unfortunatelly I've not followed the last two or three weeks commits (new semester started and so now I rarely have time to fix my personal bridge) but tonight I synched my tree and immediately noticed a rather nasty bug! [Using libbb/interface.c:1.24] # grep eth0 /proc/net/dev | xargs eth0:311708397 237346 1670 0 1789 1670 0 0 22580308 120297 0 0 0 102 0 0 # ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:20:AF:7C:EA:B7 inet addr:10.0.0.1 Bcast:10.0.0.127 Mask:255.255.255.128 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:5 Base address:0x320 All values `ifconfig' is showing are `zeroed' -- I quickly looked at the last commits I missed and noticed that there were a commit relating to ifconfig, libbb/interface.c:1.23->1.24 (PatchSet 4338). I've reversed the patch and now everything is working again. I compared the get_name's return values from the 1.23 and 1.24 and quickly noticed that the new revision is leaving `p' right on the sep while the rev 1.23 was leaving it right on the starting of the values... 1-line, 1/3-minute patch attached :-)
* Patch from solar to fix problems with get_name()Eric Andersen2004-08-121-23/+28
|
* Fix for a bug identied by Harald Kuthe, when using many interfaces (29 Glenn L McGrath2004-07-231-18/+13
| | | | in this case) the order was incorrect and there were duplicate entries.
* remove a warningEric Andersen2004-04-141-2/+1
|
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-12/+12
|
* Fix for compiling with ipv6Glenn L McGrath2003-08-291-8/+8
|
* Save 0.5K.Manuel Novoa III2003-08-021-129/+154
|
* James Petterson writes:Eric 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:
* Remove remaining libc5 support codeEric Andersen2003-07-221-5/+2
|
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-2/+2
|
* Major coreutils update.Manuel Novoa III2003-03-191-15/+15
|
* Fix compiler warnings, patch by Steven ScholzGlenn L McGrath2003-02-091-3/+3
|
* Eliminate most instances where we use linux kernel headersEric Andersen2003-01-141-2/+7
| | | | -Erik
* Use error_msg instead of fprintf(stderr, other minor cleanupsGlenn L McGrath2002-11-281-27/+19
|
* use #ifdef CONFIG_* instead of #if CONFIG_*Glenn L McGrath2002-11-261-4/+5
|
* Use "MiB" not "Mb"Eric Andersen2002-09-171-2/+2
| | | | -Erik
* Remove duplicate definitions, run through indentGlenn L McGrath2002-08-221-1292/+1279
|
* This patch from Bart Visscher <magick@linux-fan.com> addsEric Andersen2002-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!
* Latest patch from vodz:Eric 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
* Be extra pedantic about printing the correct type for an addressEric Andersen2001-10-271-2/+2
|
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-12/+13
| | | | -Erik
* Some adjustments, mostly from David McCullough <davidm@lineo.com> toEric Andersen2001-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
* Vladimir's last_patch13, containing several bugfixes.Eric Andersen2001-06-011-4/+41
|
* include libbb.h after other includesGlenn L McGrath2001-05-051-3/+2
|
* This has two patches. First it moves interface.c to libbb (it isEric Andersen2001-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.