summaryrefslogtreecommitdiff
path: root/networking/udhcp/files.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* udhcp: many small fixes:Denis Vlasenko2007-07-031-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | * arpping(): smaller and even probably fixed * lots of variables/params converted: ulong -> uint32_t * uptime() nuked in favor of monotonic_sec() * udhcp_get_packet(): only one "bad vendor", simplify function old new delta reservedIp 36 35 -1 udhcpc_main 2462 2460 -2 addStaticLease 64 62 -2 static.broken_vendors 16 - -16 uptime 19 - -19 udhcpd_main 1273 1238 -35 udhcp_get_packet 223 184 -39 .rodata 144162 144106 -56 arpping 690 609 -81 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 0/7 up/down: 0/-251) Total: -251 bytes text data bss dec hex filename 734241 3028 14400 751669 b7835 busybox_old 734005 3028 14400 751433 b7749 busybox_unstripped
* udhcp: new config option "Rewrite the lease file at every new acknowledge"Denis Vlasenko2007-07-011-69/+92
| | | | | | | | | | (Mats Erik Andersson <mats@blue2net.com> (Blue2Net AB)) udhcp: consistently treat server_config.start/end IPs as host-order fix IP parsing for 64bit machines fix unsafe hton macro usage in read_opt() do not chdir("/") when daemonizing fix help text
* bb_full_fd_action: remove potential xmalloc from NOFORK pathDenis Vlasenko2007-04-111-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cat: stop using stdio.h opens libbb: introduce & use open[3]_or_warn function old new delta open3_or_warn - 54 +54 bb_cat 115 144 +29 open_or_warn - 25 +25 unlzma 2404 2412 +8 chattr_main 334 339 +5 xstrtoul_range_sfx 251 255 +4 telnet_main 1514 1510 -4 static.opt 4 - -4 qgravechar 122 118 -4 fuser_add_pid 61 54 -7 fuser_add_inode 154 147 -7 writeFileToTarball 1542 1534 -8 refresh 1156 1148 -8 do_show 856 846 -10 read_leases 212 200 -12 setup_redirects 236 222 -14 iproute_list_or_flush 1582 1568 -14 read_config 427 411 -16 write_leases 284 264 -20 hash_file 338 318 -20 copy_file 1760 1740 -20 do_iproute 2610 2588 -22 bb_full_fd_action 320 269 -51 open_to_or_warn 103 49 -54 fuser_main 1660 1596 -64 .rodata 131160 131096 -64 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 4/19 up/down: 125/-423) Total: -298 bytes
* udhcp: optionally support RFC3397 (by Gabriel L. Somlo <somlo@cmu.edu>)Denis Vlasenko2007-02-271-0/+23
|
* udhcp: use improved gethostbyname replacement from IPv6 codeDenis Vlasenko2007-02-041-9/+8
|
* add a comment so that people won't get confusedDenis Vlasenko2007-02-021-0/+1
|
* udhcpd: allow "domain" to be a list of DNS servers, not just oneDenis Vlasenko2007-02-021-12/+20
|
* strdup -> xstrdupDenis Vlasenko2007-01-191-1/+1
| | | | sed: de-obfuscate piece of code
* safe_strtoXX interface proved to be a bit unconvenient.Denis Vlasenko2006-11-271-2/+4
| | | | | Remove it, introduce saner bb_strtoXX. Saved ~350 bytes.
* add "wpad" DHCP option. Spotted some optimization opportunities: -80 bytesDenis Vlasenko2006-11-231-7/+13
|
* small fixes: using fd-based io instead of FILE*-based,Denis Vlasenko2006-11-181-22/+32
| | | | missed O_TRUNC, etc
* udhcp: fix indentation and style.Denis Vlasenko2006-11-181-16/+5
| | | | | Eliminate (group) a lot of smallish *.h files Remove lots of unneeded #includes
* message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko2006-10-201-5/+5
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-5/+3
|
* Implement optional syslog logging using ordinaryDenis Vlasenko2006-09-061-9/+10
| | | | | | bb_xx_msg calls, and convert networking/* to it. The rest of bbox will be converted gradually.
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-0/+1
|
* My first bout of untangling udhcp. Make lots of gratuitous #defines goRob Landley2006-05-281-10/+5
| | | | | | 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...
* add back in udhcp supportMike Frysinger2006-05-081-0/+393
|
* remove in place of external linkMike Frysinger2006-03-231-393/+0
|
* sync busybox and udhcp treesMike Frysinger2006-03-231-0/+1
|
* Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x)Rob Landley2006-03-011-1/+1
| | | | from before "if(x) free(x)".
* just whitespaceTim Riker2006-01-251-1/+1
|
* remove 1 exported"Vladimir N. Oleynik"2005-09-231-1/+1
|
* move a couple of functions from common code (options.c) to udhcpd privatePaul Fox2005-09-221-1/+47
| | | | code (files.c) to make udhcpc a little smaller.
* Wade Berrier writes:Eric Andersen2004-10-081-0/+53
| | | | | | | | | | | | | | | | | | | Hello, Here's a patch for a first attempt at static leases for udhcpd. Included in the tarball are 2 files (static_leases.c, static_leases.h) and a patch against the latest cvs. In the config file you can configure static leases with the following format: static_lease 00:60:08:11:CE:4E 192.168.0.54 static_lease 00:60:08:11:CE:3E 192.168.0.44 Comments/suggestions/improvements are welcome. Wade
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-22/+22
|
* Use standard C99 typesEric Andersen2004-01-301-3/+3
|
* Finish remerging busybox udhcp and udhcp. Some cleanups as well.Russ Dill2003-12-181-49/+49
|
* clean up some bad, bad formattingRuss Dill2003-12-161-48/+49
|
* remove reference to missing header file which is breaking the buildEric Andersen2003-12-161-1/+0
|
* why the complication of a static string rather than a define? gcc isn't dumbRuss Dill2003-12-161-1/+1
|
* when compiled standalone, udhcp needs these headersRuss Dill2003-12-161-0/+2
|
* whoopsRuss Dill2003-12-161-1/+1
|
* not sure who made this change, but it certainly mucks things up (note ↵Russ Dill2003-12-161-9/+13
| | | | 'fwrite(leases, ...'), adds a bit more code, and some stack overhead. Anywho, this fixes it, and retains the spirit of what the submitter of this change was attempting to acheive (the entire lease is written at once in a struct)
* options is a pretty common symbol, bad idea to use as a global in udhcp when ↵Russ Dill2003-12-151-1/+1
| | | | compiling into busybox
* Vodz, last_patch_88Glenn L McGrath2003-06-101-60/+63
|
* resync with udhcp cvsRuss Dill2002-12-111-1/+1
|
* Change if(x)free(x); to free(x);Aaron Lehmann2002-11-281-1/+1
|
* added full udhcp integrationRuss Dill2002-10-141-0/+284