aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/common.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* udhcpd: support decoding of option 120 "SIP servers". Closes bug 737Denys Vlasenko2010-04-031-12/+23
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: make index_in_substrings return -1 on ambiguous matchesDenys Vlasenko2010-04-031-2/+2
| | | | | | | function old new delta index_in_substrings 67 93 +26 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: abort if we see unknown option, and show valid options if soDenys Vlasenko2010-03-271-5/+21
| | | | | | | | | | | function old new delta udhcp_option_idx - 77 +77 udhcp_str2optset 366 351 -15 udhcpc_main 2845 2801 -44 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/2 up/down: 77/-59) Total: 18 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: pass pointer to whole packet to "add option" functionsDenys Vlasenko2010-03-261-7/+9
| | | | | | | | | | | | | | | | | | | | | This is needed for "overflow option" support function old new delta udhcp_find_option - 34 +34 udhcp_add_binary_option 94 106 +12 write_leases 227 223 -4 udhcp_init_header 86 82 -4 send_release 104 99 -5 init_packet 87 81 -6 add_client_options 160 154 -6 add_server_options 100 92 -8 udhcpd_main 1964 1954 -10 udhcpc_main 2859 2837 -22 find_option 34 - -34 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 1/8 up/down: 46/-99) Total: -53 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: move options.c to common.c; disable unused bool and s16 option codeDenys Vlasenko2010-03-261-2/+452
| | | | | | | | | | | | | | | | | function old new delta udhcp_add_binary_option - 94 +94 udhcp_str2nip - 42 +42 len_of_option_as_string 12 10 -2 dhcp_option_lengths 12 10 -2 udhcpc_main 2859 2851 -8 read_nip 42 - -42 xmalloc_optname_optval 590 536 -54 udhcp_str2optset 443 366 -77 udhcp_add_option_string 86 - -86 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 0/5 up/down: 136/-271) Total: -135 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: logging improvements, field and variable renamesDenys Vlasenko2009-06-171-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: change UDHCP_DEBUG into int, make verbosity selectable with -vDenys Vlasenko2009-06-171-1/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-1/+3
| | | | | | | | | 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
* udhcp: slight shrinkDenis Vlasenko2007-08-021-21/+0
| | | | | | | | | | | | | | | | | udhcpd_main 1171 1208 +37 udhcpc_main 2363 2387 +24 dhcprelay_main 1145 1146 +1 dhcprelay_stopflag 4 1 -3 dhcprelay_signal_handler 11 8 -3 client_background 46 42 -4 udhcp_read_interface 230 211 -19 udhcp_make_pidfile 76 - -76 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 3/4 up/down: 62/-105) Total: -43 bytes text data bss dec hex filename 770052 1096 11228 782376 bf028 busybox_old 769980 1096 11228 782304 befe0 busybox_unstripped
* udhcp: many small fixes:Denis Vlasenko2007-07-031-22/+2
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* udhcpc: stop deleting our own pidfile if we daemonize.Denis Vlasenko2007-05-031-16/+0
| | | | | udhcp[cd]: stop using atexit magic fir pidfile removal.
* udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata.Denis Vlasenko2007-04-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | 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
* make pidfile writing configurable.Denis Vlasenko2007-03-271-29/+16
| | | | [ui]toa_to_buf: change API. No users yet.
* Move udhcp to new NOMMU helpers.Denis Vlasenko2007-03-261-22/+38
| | | | | | Fix server part to compile under NOMMU. Client is not compilable yet. On MMU everything compiles (and maybe even works :)
* use bb_sanitize_stdio() where appropriateDenis Vlasenko2007-01-271-15/+1
|
* small fixes: using fd-based io instead of FILE*-based,Denis Vlasenko2006-11-181-3/+1
| | | | missed O_TRUNC, etc
* udhcp: fix indentation and style.Denis Vlasenko2006-11-181-13/+0
| | | | | 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-1/+1
|
* bb_applet_name -> applet_nameDenis Vlasenko2006-10-031-2/+2
|
* Fix (hopefully) bug 976. Need more thorough audit.Denis Vlasenko2006-09-071-3/+3
| | | | | Restore erroneously removed FEATURE_UDHCP_SYSLOG.
* Implement optional syslog logging using ordinaryDenis Vlasenko2006-09-061-57/+14
| | | | | | bb_xx_msg calls, and convert networking/* to it. The rest of bbox will be converted gradually.
* replacing func() with xfunc() where appropriateDenis Vlasenko2006-09-031-4/+1
|
* My first bout of untangling udhcp. Make lots of gratuitous #defines goRob Landley2006-05-281-7/+6
| | | | | | 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...
* - replace _PATH_DEVNULL with bb_dev_nullBernhard Reutner-Fischer2006-05-191-4/+6
|
* add back in udhcp supportMike Frysinger2006-05-081-0/+135
|
* remove in place of external linkMike Frysinger2006-03-231-162/+0
|
* Revert the uptime() removal. Let the list sort it out...Rob Landley2005-05-041-0/+8
|
* Patch from Shaun Jackman:Rob Landley2005-05-041-8/+0
| | | | | | Replace uptime with time(NULL). time is more portable than uptime and eliminates the need to define uptime, reducing code size slightly.
* use busybox sysinfo structRuss Dill2004-05-191-1/+0
|
* Fix a compile problemEric Andersen2004-05-191-2/+1
|
* fix timewarp in client (server fix later)Russ Dill2004-05-191-0/+9
|
* remove uneccessary check (already done in pidfile.c)Russ Dill2004-05-191-6/+4
|
* Larry Doolittle writes:Eric Andersen2004-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-1/+1
|
* it should work even if you don't assign a pidfileRuss Dill2003-12-261-6/+7
|
* Finish remerging busybox udhcp and udhcp. Some cleanups as well.Russ Dill2003-12-181-71/+71
|
* make udhcp work under uclinux, to an extentRuss Dill2003-12-151-0/+4
|
* "Without this patch, udhcpcd output may be buffered and delayed forGlenn L McGrath2003-08-301-0/+2
| | | | for minutes if stdout is not a tty." -vda@
* Add missing pieces from vodz' last_patch88Eric Andersen2003-06-141-0/+150