Denis Vlasenko
f1980f67d3
dhcp: add FAST_FUNC as appropriate. -160 bytes.
2008-09-26 09:34:59 +00:00
Denis Vlasenko
191836845e
udhcpc: support for -O <option>.
...
Two important notes:
* nissrv and nisdomain are not requested by default anymore!
* inconsistency between "XXXsvr" and "XXsrv" in option names resolved,
all are "XXXsrv" now.
function old new delta
udhcpc_main 2494 2600 +106
packed_usage 23023 23067 +44
add_requests 91 119 +28
static.udhcpc_longopts 209 226 +17
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 195/0) Total: 195 bytes
2007-12-10 07:03:38 +00:00
Denis Vlasenko
b539c8452f
dhcp: heed TODO item - divorced options from their string descriptions
...
code shrink while at it.
function old new delta
dhcp_option_strings - 258 +258
udhcp_run_script 1135 1174 +39
dhcp_option_lengths - 11 +11
udhcp_add_simple_option 93 92 -1
packet_num 4 - -4
read_opt 746 739 -7
udhcp_option_lengths 11 - -11
udhcpc_main 2590 2494 -96
dhcp_options 490 70 -420
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 1/4 up/down: 308/-539) Total: -231 bytes
text data bss dec hex filename
775309 929 9100 785338 bfbba busybox_old
775098 929 9084 785111 bfad7 busybox_unstripped
2007-11-29 08:17:45 +00:00
Denis Vlasenko
35ff74676b
dhcpc: let server know we don't like oversized packets.
...
add TODO comment
2007-11-28 19:23:12 +00:00
Denis Vlasenko
72e76044cf
dhcpc: cope with buggy DHCP servers which send oversized packets
...
(Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>)
2007-11-25 03:15:24 +00:00
Denis Vlasenko
6884f665bd
dhcp: stop using magic constants; use (htonl(CONST) != a) - it's smaller
...
function old new delta
udhcp_get_packet 146 134 -12
get_raw_packet 368 353 -15
2007-11-23 00:08:54 +00:00
Denis Vlasenko
6ca409e0e4
trylink: produce even more info about final link stage
...
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
2007-08-12 20:58:27 +00:00
Denis Vlasenko
5066473d41
udhcp: optionally support RFC3397 (by Gabriel L. Somlo <somlo@cmu.edu>)
2007-02-27 21:15:08 +00:00
Denis Vlasenko
c4d606e367
udhcpd: allow "domain" to be a list of DNS servers, not just one
2007-02-02 01:16:08 +00:00
Denis Vlasenko
c90c3f30a8
add "wpad" DHCP option. Spotted some optimization opportunities: -80 bytes
2006-11-23 12:57:49 +00:00
Denis Vlasenko
5a3395bc01
udhcp: fix indentation and style.
...
Eliminate (group) a lot of smallish *.h files
Remove lots of unneeded #includes
2006-11-18 19:51:32 +00:00
Denis Vlasenko
e1a0d486e4
message string changes, mostly for consistency, also -32 bytes in .rodata
2006-10-20 13:28:22 +00:00
Denis Vlasenko
ea62077b85
add open_read_close() and similar stuff
2006-10-14 02:23:43 +00:00
Denis Vlasenko
e175ff252f
several fixes from openWRT project
2006-09-26 17:41:00 +00:00
Denis Vlasenko
3538b9a882
Implement optional syslog logging using ordinary
...
bb_xx_msg calls, and convert networking/* to it.
The rest of bbox will be converted gradually.
2006-09-06 18:36:50 +00:00
"Robert P. J. Day"
63fc1a9e08
Standardize on the vi editing directives being on the first line.
2006-07-02 19:47:05 +00:00
Rob Landley
c8b360ebb7
Use BB endianness macro.
2006-05-31 22:24:33 +00:00
Mike Frysinger
7031f62d9b
add back in udhcp support
2006-05-08 03:20:50 +00:00
Mike Frysinger
787140df39
remove in place of external link
2006-03-23 23:44:29 +00:00
Mike Frysinger
13c8327b79
sync busybox and udhcp trees
2006-03-23 03:05:05 +00:00
Tim Riker
c1ef7bdd8d
just whitespace
2006-01-25 00:08:53 +00:00
"Vladimir N. Oleynik"
b628409b1e
more make safe the exported namespace for udhcp. Move to bb-specific file for reduce change into udhcp-CVS
2005-09-23 11:25:29 +00:00
Paul Fox
b6f71645f4
move a couple of functions from common code (options.c) to udhcpd private
...
code (files.c) to make udhcpc a little smaller.
2005-09-22 19:03:24 +00:00
Rob Landley
230b411de8
Fix the warning by rewriting the function to be smaller and simpler.
...
I'd appreciate somebody on a __BIG_ENDIAN platform testing this out; I haven't
got the hardware...
2005-09-08 03:22:09 +00:00
Mike Frysinger
d824853de3
merge from udhcp module
2004-12-06 14:59:45 +00:00
Eric Andersen
c7bda1ce65
Remove trailing whitespace. Update copyright to include 2004.
2004-03-15 08:29:22 +00:00
Eric Andersen
ad95373efc
Use standard C99 types
2004-01-30 23:45:53 +00:00
Russ Dill
4a9e34c148
options is a pretty common symbol, bad idea to use as a global in udhcp when compiling into busybox
2003-12-15 22:09:36 +00:00
Glenn L McGrath
24833430bc
Vodz, last_patch_88
2003-06-10 17:22:49 +00:00
Russ Dill
9f4395c54e
sorry about all the noise, should be all synced up now
2002-12-11 21:40:46 +00:00
Russ Dill
1eb7a17b12
resync with udhcp cvs
2002-12-11 21:12:45 +00:00
Glenn L McGrath
6b5bd0e5ab
Support using ip in udhcpc scripts.
...
Slightly modified version of patch by Bastian Blank
2002-12-08 22:17:54 +00:00
Russ Dill
61fb48930f
added full udhcp integration
2002-10-14 21:41:28 +00:00