aboutsummaryrefslogtreecommitdiff
path: root/networking/ifupdown.c
AgeCommit message (Collapse)Author
2008-03-17*: fix fallout from -Wunused-parameterDenis Vlasenko
function old new delta bbunpack 358 366 +8 passwd_main 1070 1072 +2 handle_incoming_and_exit 2651 2653 +2 getpty 88 86 -2 script_main 975 972 -3 inetd_main 2036 2033 -3 dname_enc 377 373 -4 make_new_session 474 462 -12 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/5 up/down: 12/-24) Total: -12 bytes text data bss dec hex filename 797429 658 7428 805515 c4a8b busybox_old 797417 658 7428 805503 c4a7f busybox_unstripped
2008-03-17*: add -Wunused-parameter; fix resulting breakageDenis Vlasenko
function old new delta procps_scan 1265 1298 +33 aliascmd 278 283 +5 parse_file_cmd 116 120 +4 dname_enc 373 377 +4 setcmd 90 93 +3 execcmd 57 60 +3 count_lines 72 74 +2 process_command_subs 340 339 -1 test_main 409 407 -2 mknod_main 179 177 -2 handle_incoming_and_exit 2653 2651 -2 argstr 1312 1310 -2 shiftcmd 131 128 -3 exitcmd 46 43 -3 dotcmd 297 294 -3 breakcmd 86 83 -3 evalpipe 353 349 -4 evalcommand 1180 1176 -4 evalcmd 109 105 -4 send_tree 374 369 -5 mkfifo_main 82 77 -5 evalsubshell 152 147 -5 typecmd 75 69 -6 letcmd 61 55 -6 add_cmd 1190 1183 -7 main 891 883 -8 ash_main 1415 1407 -8 parse_stream 1377 1367 -10 alloc_procps_scan 55 - -55 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes text data bss dec hex filename 797195 658 7428 805281 c49a1 busybox_old 797101 658 7428 805187 c4943 busybox_unstripped
2008-02-16*: more readable handling of pipe fds. No code changes.Denis Vlasenko
2008-02-16ifupdowm: shrinkDenis Vlasenko
ifupdown_main 2170 2459 +289 find_iface_state 57 56 -1 next_word 63 58 -5 popen2 350 - -350 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/2 up/down: 289/-356) Total: -67 bytes
2008-02-15ifupdown: code shrinkDenis Vlasenko
function old new delta next_word 78 63 -15 ifupdown_main 2381 2170 -211 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-226) Total: -226 bytes
2008-01-02libbb: introduce and use safe_waitpid (loops in EINTR)Denis Vlasenko
*: use more approproate (shorter) versions of wait() function old new delta safe_waitpid - 48 +48 wait_any_nohang - 17 +17 send_tree 365 369 +4 processorstop 432 435 +3 text_yank 110 108 -2 make_human_readable_str 202 200 -2 crond_main 1368 1366 -2 handle_sigchld 49 43 -6 reapchild 166 159 -7 custom 260 250 -10 checkscript 191 177 -14 wait_nohang 17 - -17 wait_pid 43 - -43 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 2/7 up/down: 72/-103) Total: -31 bytes
2007-11-23logread: eliminate usage of data/bssDenis Vlasenko
ifup: don't remove virtual iface prefixes (eth0:0) function old new delta shbuf 4 - -4 SMrup 6 - -6 SMrdn 12 - -12 static.label_buf 20 4 -16 get_var 158 140 -18 ------------------------------------------------------------------------------ (add/remove: 0/3 grow/shrink: 0/2 up/down: 0/-56) Total: -56 bytes text data bss dec hex filename 783501 962 9260 793723 c1c7b busybox_old 783483 942 9244 793669 c1c45 busybox_unstripped
2007-10-11add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
2007-10-06- mark TODO: use index_in_str_array()Bernhard Reutner-Fischer
2007-09-27introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko
2007-09-21update Glenn McGrath's email addressDenis Vlasenko
2007-08-18don't pass argc in getopt32, it's superfluousDenis Vlasenko
(add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
2007-08-17assorted fixes for breakage found by randomconfigDenis Vlasenko
2007-08-02start_stop_daemon: NOMMU fixes, round 2 by Alex Landau <landau_alex@yahoo.com>Denis Vlasenko
dhcpc: fixed "ifupdown + udhcpc_without_pidpile_creation" bug
2007-07-21Three patches from FreeWRT peopleDenis Vlasenko
2007-07-19ifup/ifdown: make location of ifstate configurableDenis Vlasenko
2007-07-03ifupdown: kill -TERM is default, so drop -TERMDenis Vlasenko
ifupdown: ferror() does not set errno, don't use perror ifupdown: make netmask parsing smaller and more strict (was accepting 255.0.255.0, 255.1234.0.0 etc...) function old new delta count_bits 36 - -36 execute 2573 2535 -38 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-74) Total: -74 bytes text data bss dec hex filename 684204 2744 14000 700948 ab214 busybox_old 684132 2744 14000 700876 ab1cc busybox_unstripped
2007-06-25Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms ↵Denis Vlasenko
<wharms@bfs.de>)
2007-05-30whitespace fixesDenis Vlasenko
2007-05-26usage.c: remove reference to busybox.hDenis Vlasenko
*: s/include "busybox.h"/include "libbb.h"
2007-05-02ifupdown: small optimization (avoid doing useless work if we areDenis Vlasenko
not going to update state file)
2007-05-02ifupdown: mke it possible to use DHCP clients different from udhcp.Denis Vlasenko
2007-05-02ifupdown: reread state file before rewriting it.Denis Vlasenko
Fixes "ifup started another ifup" state corruption bug. Patch by Natanael Copa <natanael.copa@gmail.com>.
2007-03-19- very minor size tweak.Bernhard Reutner-Fischer
TODO: mv to globals, config-out non-busybox dhcp client stuff, reduce string bloat, etc text data bss dec hex filename 7543 0 28 7571 1d93 networking/ifupdown.o.orig 7515 0 28 7543 1d77 networking/ifupdown.o
2007-03-09ifupdown: do not complain if !/var/run/ifstateDenis Vlasenko
2007-03-07clean up accumulated whitespace damageDenis Vlasenko
2007-03-06ifupdown: code to deconstruct the state_list gracefullyDenis Vlasenko
(patch by Gabriel L. Somlo <somlo@cmu.edu>)
2007-02-06EXEC_PREFER_APPLETS support by Gabriel L. Somlo <somlo@cmu.edu>Denis Vlasenko
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
2007-01-29preparatory patch for -Wwrite-strings #5Denis Vlasenko
2007-01-29preparatory patch for -Wwrite-strings #4Denis Vlasenko
2006-12-19remove casts from xmalloc()Denis Vlasenko
2006-12-19ifupdown: do not print and/or execute empty commands ("").Denis Vlasenko
2006-12-19ifupdown: parse() returning NULL and returning "" is not the same,Denis Vlasenko
it turned out! wow... okay, fixing my buglet...
2006-12-18ifupdown: strlen(NULL) is a no-no, fixed. Also few micro-optimizationsDenis Vlasenko
2006-11-27fix remaining survivors of the return(a) cleanupDenis Vlasenko
2006-11-23ifupdown:Denis Vlasenko
ifconfig said to set iface up before it processes hw %hwaddress%, which then of course fails. Thus we run two separate ifconfig
2006-11-23ifupdown: save some 100+ bytes of code in addstr()Denis Vlasenko
2006-11-20dhcprelay: new appletDenis Vlasenko
2006-10-25use skip_whitespace where appropriateDenis Vlasenko
2006-10-16strip -> $(STRIP); fix "unused variable" warningDenis Vlasenko
(patch by Diekema, Jon (AGRE) <Jon.Diekema@smiths-aerospace.com>)
2006-10-12bb_get_[chomped]line_from_file wasn't descriptive enough.Denis Vlasenko
Renaming...
2006-10-11ifupdown: stop emitting annoying/misleading error messages.Denis Vlasenko
Patch by Gabriel Somlo <somlo at cmu.edu>
2006-10-06dnsd fix; option_mask32 added. dnsd needs more love.Denis Vlasenko
2006-10-03bb_applet_name -> applet_nameDenis Vlasenko
2006-10-03getopt_ulflags -> getopt32.Denis Vlasenko
It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
2006-10-02ifupdown: Debian users contributed improvement to itDenis Vlasenko
2006-09-28ifupdown: make dhcp start/stop scripts user configurableDenis Vlasenko
in /etc/network/interfaces. Patch author is Gabriel L. Somlo <somlo@cmu.edu>
2006-09-27ifupdown: fix for standalone shell; removed hardcoded PATHDenis Vlasenko
2006-09-26ifupdown: style cleanup, no code changesDenis Vlasenko