summaryrefslogtreecommitdiff
path: root/networking/interface.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-5/+5
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* interface.c: code shrink (IIRC ~30 bytes)Denis Vlasenko2007-07-291-43/+43
|
* style fix (stray space before ';')Denis Vlasenko2007-07-211-1/+1
|
* ifconfig: make it work with ifaces with ifnames > 255Denis Vlasenko2007-07-171-1/+1
|
* xioctl and friends by Tito <farmatito@tiscali.it>Denis Vlasenko2007-07-141-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta do_iptunnel 203 977 +774 process_dev 5328 5494 +166 ioctl_or_perror - 54 +54 ioctl_or_perror_and_die - 51 +51 ioctl_alt_func - 49 +49 bb_ioctl_or_warn - 47 +47 do_add_ioctl 102 145 +43 bb_xioctl - 39 +39 print_value_on_off - 31 +31 get_lcm 105 123 +18 arp_main 2155 2167 +12 .................. zcip_main 1576 1566 -10 setlogcons_main 92 82 -10 dumpkmap_main 263 253 -10 do_get_ioctl 85 75 -10 setkeycodes_main 165 154 -11 write_table 244 232 -12 vconfig_main 318 306 -12 do_del_ioctl 93 81 -12 set_address 75 62 -13 maybe_set_utc 30 16 -14 loadfont_main 495 479 -16 slattach_main 712 695 -17 do_loadfont 191 174 -17 do_iplink 1155 1136 -19 getty_main 2583 2562 -21 fbset_main 2058 2035 -23 do_time 588 565 -23 xioctl 25 - -25 read_rtc 186 160 -26 parse_conf 1299 1270 -29 udhcp_read_interface 269 239 -30 bb_ioctl 45 - -45 bb_ioctl_alt 70 - -70 bb_ioctl_on_off 78 - -78 .rodata 129370 129018 -352 do_show 799 - -799 ------------------------------------------------------------------------------ (add/remove: 6/5 grow/shrink: 13/49 up/down: 1316/-1864) Total: -548 bytes text data bss dec hex filename 675352 2740 13968 692060 a8f5c busybox_old 674804 2740 13968 691512 a8d38 busybox_unstripped
* networking/interface.c: huke remaining big statics; use malloc for ↵Denis Vlasenko2007-06-191-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | INET[6]_rresolve return value. Went thru callers and adjusted them - code got smaller too. function old new delta ip_port_str - 126 +126 INET6_rresolve 165 182 +17 static.cache 20 24 +4 route_main 2092 2091 -1 INET_sprint 61 59 -2 INET_nn 4 - -4 INET6_sprint 59 53 -6 udp_do_one 518 508 -10 tcp_do_one 433 423 -10 raw_do_one 494 484 -10 traceroute_main 4117 4105 -12 INET_rresolve 334 321 -13 bb_displayroutes 494 456 -38 snprint_ip_port 244 - -244 static.buff 264 16 -248 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 2/10 up/down: 147/-598) Total: -451 bytes size busybox_old busybox_unstripped text data bss dec hex filename 751073 3048 14688 768809 bbb29 busybox_old 750873 3048 14440 768361 bb969 busybox_unstripped
* networking/interface.c: reduce bss usageDenis Vlasenko2007-06-191-45/+54
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta .rodata 158918 158950 +32 display_interfaces 133 153 +20 UNSPEC_print 56 68 +12 pr_ether 59 65 +6 static.proc_read 4 1 -3 interface_opt_a 4 1 -3 in_ether 139 136 -3 ifconfig_main 1296 1293 -3 if_readlist_proc 686 680 -6 ife_print 1350 1338 -12 do_if_print 46 - -46 static.buff 369 264 -105 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 4/7 up/down: 70/-181) Total: -111 bytes # size busybox_old busybox_unstripped text data bss dec hex filename 751073 3080 14800 768953 bbbb9 busybox_old 751073 3048 14688 768809 bbb29 busybox_unstripped
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* interface: revert part of commit 18120 (eth aliases work again)Denis Vlasenko2007-03-221-2/+5
|
* networking/interface.c: was doing really strange caching of fd'sDenis Vlasenko2007-03-151-199/+112
| | | | open for getting ifconfig data - ??! Simplified all that. -200 bytes.
* arp, networking/interface.c: eliminate staticsDenis Vlasenko2007-03-141-15/+22
| | | | | and unneeded on-stack buffers, disable (comment out) some apparently unused (and buggy) code paths. -700 bytes.
* remove unused #include,, improve code readabilityDenis Vlasenko2007-02-091-2/+4
|
* trivial warning fixDenis Vlasenko2007-02-021-1/+1
|
* preparatory patch for -Wwrite-strings #6Denis Vlasenko2007-01-291-13/+3
|
* - sed -i -e "/\$Id:/d;"Bernhard Reutner-Fischer2007-01-221-1/+0
|
* Trailing whitespace removal over entire treeDenis Vlasenko2007-01-111-1/+1
|
* add arp applet - thanks toDenis Vlasenko2007-01-071-35/+165
| | | | "Eric Spakman" <E.Spakman@inter.nl.net>
* properly export externs thru *.h filesDenis Vlasenko2006-12-261-1/+0
|
* A bunch of defined(__GLIBC__) added. static-linking warning expandedDenis Vlasenko2006-12-181-1/+1
|
* - Proposed fix to make aliases work (with uClibc-current).Bernhard Reutner-Fischer2006-12-071-2/+5
| | | | See comment in the patch about the change introduced in r16342.
* do not overflow ifr_name. maybe it was safe in some places,Denis Vlasenko2006-11-271-10/+10
| | | | but not everywhere. err to the safe side.
* #if HAVE_AFINET6 -> #ifdef HAVE_AFINET6Denis Vlasenko2006-11-221-18/+18
|
* ifconfig: preparatory patch, no code changesDenis Vlasenko2006-11-211-1/+1
|
* add -Wundef, fix uncovered bugsDenis Vlasenko2006-11-171-1/+1
|
* silly size savings and capitalization fixesDenis Vlasenko2006-10-261-5/+5
|
* message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko2006-10-201-2/+2
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-1/+1
|
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-0/+1
|
* Properly print the output for a sit (IPv6-in-IPv4) interface."Robert P. J. Day"2006-06-261-0/+13
|
* Aesthetic fix to use newer structure initialization format."Robert P. J. Day"2006-06-261-8/+15
|
* Patch by Robert P. Day to remove obsolete alias code that the 2.4 and 2.6Rob Landley2006-06-201-11/+5
| | | | Linux kernels don't do anymore.
* Patch by Robert P. Day to make structs use c99 initializers.Rob Landley2006-06-201-14/+12
|
* Patch from Robert P. J. Day cleaning up some unnecessary preprocessorRob Landley2006-06-201-80/+0
| | | | directives.
* Remove #ifdeffed out code, both KEEP_UNUSED and #if 0.Rob Landley2006-06-031-492/+1
|
* Size reductions, mostly switching things to use libbb functions.Rob Landley2006-05-291-2/+2
|
* Remove _().Rob Landley2006-05-291-52/+52
|
* Patch from Robert P. Day to remove #ifdefed out SLIP support code that weRob Landley2006-05-191-40/+0
| | | | | have no CONFIG option to enable, and which existing SLIP users don't seem to miss.
* - single KERNEL_VERSION(a,b,c) macro in platform.hBernhard Reutner-Fischer2006-05-191-2/+1
| | | | | - rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day
* fix no previous prototype warningMike Frysinger2006-05-111-0/+1
|
* Remove code for protocols we don't properly support. (Most of this couldRob Landley2006-04-141-345/+0
| | | | | never be selected via menuconfig anyway.) If somebody wants one of these protocols, ask on the list for us to support it _properly_.
* - include proper headers.Bernhard Reutner-Fischer2006-04-051-1/+1
|
* - fix paste'o which i overlooked when applying dalias' fmt stuff.Bernhard Reutner-Fischer2006-03-301-1/+1
|
* - Rich Felker writes: fix invalid printf format stringsBernhard Reutner-Fischer2006-03-291-16/+16
| | | | | | | | | http://busybox.net/lists/busybox/2006-March/019568.html text data bss dec hex filename 900619 10316 1038724 1949659 1dbfdb busybox.oorig 900603 10316 1038724 1949643 1dbfcb busybox
* - put NLS stuff in one central place to avoid redefines.Bernhard Reutner-Fischer2006-02-231-1/+0
| | | | | | | | Fixes warnings about: fdisk.c:45:1: warning: "_" redefined nfsmount.c:121:1: warning: "_" redefined nfsmount.c:122:1: warning: "N_" redefined interface.c:84:1: warning: "_" redefined
* fix up annoying signed/unsigned and mixed type errorsEric Andersen2006-01-301-2/+2
|
* just whitespaceTim Riker2006-01-251-3/+3
|
* - missing bits of patch attached to bug #249 (constify).Bernhard Reutner-Fischer2006-01-191-2/+2
|
* Move interface.c to networking directory since it's only used by ifconfig.Rob Landley2005-11-221-0/+2093