aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
AgeCommit message (Collapse)Author
2007-04-07udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata.Denis Vlasenko
a few global variables reduced to smallints function old new delta add_lease 75 227 +152 static.blank_chaddr - 16 +16 MAC_BCAST_ADDR - 6 +6 sockfd 4 8 +4 udhcp_run_script 1153 1155 +2 state 8 5 -3 listen_mode 4 1 -3 perform_release 152 148 -4 fd 8 4 -4 blank_chaddr 16 - -16 udhcpc_main 2518 2497 -21 .rodata 131864 131832 -32 oldest_expired_lease 61 - -61 clear_lease 127 - -127 ------------------------------------------------------------------------------ (add/remove: 2/3 grow/shrink: 3/6 up/down: 180/-271) Total: -91 bytes
2007-04-04- sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"Bernhard Reutner-Fischer
2007-03-26Move udhcp to new NOMMU helpers.Denis Vlasenko
Fix server part to compile under NOMMU. Client is not compilable yet. On MMU everything compiles (and maybe even works :)
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
2007-01-18fix potentially misaligned 32-bit accessesDenis Vlasenko
2006-12-19- use xlisten/xsocket some more. Saves .25 kBBernhard Reutner-Fischer
2006-11-29fix support for globally disabling --long-options.Denis Vlasenko
(disabling them saves ~4K on fully configured bbox)
2006-11-27udhcpc: convert to getopt32Denis Vlasenko
2006-11-18udhcp: fix indentation and style.Denis Vlasenko
Eliminate (group) a lot of smallish *.h files Remove lots of unneeded #includes
2006-10-12small style fixesDenis Vlasenko
2006-10-08attempt to regularize atoi mess.Denis Vlasenko
2006-09-29Yet another silly little byte saving. couldn't -> cannotDenis Vlasenko
2006-09-26several fixes from openWRT projectDenis Vlasenko
2006-09-11Build fixes for gcc 4.0 with -Werror, from Tito.Rob Landley
2006-09-07Fix (hopefully) bug 976. Need more thorough audit.Denis Vlasenko
Restore erroneously removed FEATURE_UDHCP_SYSLOG.
2006-09-06Implement optional syslog logging using ordinaryDenis Vlasenko
bb_xx_msg calls, and convert networking/* to it. The rest of bbox will be converted gradually.
2006-07-02Standardize on the vi editing directives being on the first line."Robert P. J. Day"
2006-06-25Various cleanups I made while going through Erik Hovland's patch submissions,Rob Landley
some of which are even from him. :)
2006-06-07- reuse strings and messages. Saves about 600BBernhard Reutner-Fischer
2006-05-28My first bout of untangling udhcp. Make lots of gratuitous #defines goRob Landley
away, substitutie BB_VER for an external VERSION, use busybox CONFIG symbols rather than checking for them then defining others, etc. Lots more cleanup to do...
2006-05-27Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley
2006-05-08add back in udhcp supportMike Frysinger
2006-03-23remove in place of external linkMike Frysinger
2006-03-23sync busybox and udhcp treesMike Frysinger
2006-03-20Roy Walker writes:Eric Andersen
Here is a patch against the current subversion repository, that makes udhcpc have an adjustable timeout. Works for both foreground and before it drops to the background. This brings it more in-line with ISC dhcpc. Use like so: udhcpc --timeout=10 ... or udhcpc -T 10 ... Still shooting for 1.1.1 this month? Would really be great if you could get this in that release. Please give credit to Paul Pacheco - ppacheco@gmail.com.
2006-03-01Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x)Rob Landley
from before "if(x) free(x)".
2006-02-20Patch from Giuseppe Ciotta to specify retry count.Rob Landley
2006-01-30fix up yet more annoying signed/unsigned and mixed type errorsEric Andersen
2006-01-25just whitespaceTim Riker
2006-01-22- add platform.h.Bernhard Reutner-Fischer
- use shorter boilerplate while at it.
2005-09-23more make safe the exported namespace for udhcp. Move to bb-specific file ↵"Vladimir N. Oleynik"
for reduce change into udhcp-CVS
2005-09-22add support for setting the dhcp vendor class option (option 60). Paul Fox
udhcpc now has a -V (--vendorclass), which will replace the default "udhcpRELEASE" string in this option.
2005-08-01allow suppression of default client-id. fixes bug 000037. allowsPaul Fox
busybox to match kernel and u-boot behavior with respect to client-id.
2005-07-21remove duplicate check against chaddr.Paul Fox
2005-07-20applying fix for:Paul Fox
0000260: udhcpc doesn't validate client hardware address
2005-05-26Tobias Krawutschke found a bug where the DHCP client would accept packetsRob Landley
with the wrong ARP address, meaning we could easily get somebody else's IP. That is a bad thing, and this is the minimal two-line fix.
2005-05-04Revert the uptime() removal. Let the list sort it out...Rob Landley
2005-05-04Patch from Shaun Jackman:Rob Landley
Replace uptime with time(NULL). time is more portable than uptime and eliminates the need to define uptime, reducing code size slightly.
2005-04-16In Bug 209, bernhardf writes:Mike Frysinger
struct named { named_field: init, }; appear to be depraced by now; rather use C{99} format as in struct named { .named_field = init, };
2004-12-06merge from udhcp moduleMike Frysinger
2004-05-19fix timewarp in client (server fix later)Russ Dill
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2004-01-30Use standard C99 typesEric Andersen
2003-12-18Finish remerging busybox udhcp and udhcp. Some cleanups as well.Russ Dill
2003-12-16start attempting to bring udhcp in busybox back to the state where it is ↵Russ Dill
(ideally) an exact copy of udhcp outside of busybox so that its easy to merge back and forth
2003-09-01Allow one to detect and handle the case where no lease could be obtainedGlenn L McGrath
via DHCP. (Just add a section "failed" to your script.) Patch by Steven Scholz
2003-08-29Remove stray '\n'Glenn L McGrath
2003-06-20Make gcc not whine about "deprecated use of label at end of compound statement"Eric Andersen
2003-06-10Vodz, last_patch_88Glenn L McGrath
2003-03-19Major coreutils update.Manuel Novoa III