aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* move remaining help text from include/usage.src.hPere Orga2011-04-113-0/+34
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: emit "correct" secs fieldDenys Vlasenko2011-03-122-0/+17
| | | | | | | | | | | | | In theory, sending secs set to constant zero should be ok too. But some bleeping servers can actually be configured to answer ONLY if secs is bigger than a preset value (!!) http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man8/bootpd.8.html grep for "reply_threshold_seconds" function old new delta udhcpc_main 2573 2623 +50 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: add -B optionKeith Young2011-03-071-59/+69
| | | | | | | | | | | | | function old new delta udhcpc_longopts - 262 +262 add_client_options 218 239 +21 packed_usage 28149 28163 +14 static.udhcpc_longopts 250 - -250 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 2/0 up/down: 297/-250) Total: 47 bytes Signed-off-by: Keith Young <stripydog7@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Replace "depends on PLATFORM_LINUX" with "select PLATFORM_LINUX"Denys Vlasenko2011-02-261-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: optional IP selection based on MAC hashVladislav Grishenko2011-02-162-8/+50
| | | | | | | | function old new delta find_free_or_expired_nip 153 225 +72 Signed-off-by: Vladislav Grishenko <themiron@mail.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: use more correct, and more importantly, more understandable BPF codeVladislav Grishenko2011-02-141-20/+24
| | | | | Signed-off-by: Vladislav Grishenko <themiron@mail.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: fix a problem with binary-encoded optionsDenys Vlasenko2011-02-061-1/+1
| | | | | | | function old new delta attach_option 395 413 +18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* eliminate aliasing warnings in traceroute.c and udhcp/socket.cDenys Vlasenko2011-01-201-11/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove a few aliasing warningsDenys Vlasenko2011-01-161-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb unicode: comment out usused function and unused parameterDenys Vlasenko2011-01-111-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* udhcpc: document SIGUSRn effect in help textDenys Vlasenko2010-12-251-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dhcpd: reply with NAK to clients in INIT-REBOOT state w/o existing leaseDenys Vlasenko2010-11-281-7/+11
| | | | | | We were not responding to them at all. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dhcpd: smaller code: do not look for REQUESTED_IP twiceDenys Vlasenko2010-11-281-26/+30
| | | | | | | | text data bss dec hex filename 883235 936 17192 901363 dc0f3 busybox_old 883219 936 17192 901347 dc0e3 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: whitespace fixesDenys Vlasenko2010-10-282-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: reduce stack usage by ~700 bytes. +28 bytes code sizeDenys Vlasenko2010-10-212-5/+14
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* udhcpc: exit if iface disappeared; use correct MAC if it changesDenys Vlasenko2010-10-201-6/+14
| | | | | | | function old new delta udhcpc_main 2560 2618 +58 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: reduce stack usage by de-inlining routines with on-stack pkt bufDenys Vlasenko2010-10-201-10/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: periodically reread our ifindex and macDenys Vlasenko2010-10-201-0/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: emit maxsize option in all non-NAK type packetsDenys Vlasenko2010-10-201-18/+90
| | | | | | Before, we were sending them only in DISCOVER packets. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dhcp: typo fix: UPD_DHCP_SIZE -> UDP_DHCP_SIZEDenys Vlasenko2010-10-202-7/+7
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* udhcpc: better help textDenys Vlasenko2010-10-201-9/+15
| | | | | | | function old new delta packed_usage 27452 27486 +34 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* udhcpc: remove now-unneeded definitions of vendor and client-id optsDenys Vlasenko2010-10-201-3/+4
| | | | | | | function old new delta dhcp_optflags 68 64 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: remove -c CLIENTID, it is hard to use, -x 61:hexstring does the same ↵Denys Vlasenko2010-10-202-41/+37
| | | | | | | | | | | | | better function old new delta packed_usage 27802 27808 +6 static.udhcpc_longopts 261 250 -11 udhcpc_main 2799 2780 -19 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 6/-30) Total: -24 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: move usage text to .c file. no code changesDenys Vlasenko2010-10-201-0/+78
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: deinline SWAP_xE64 on 32-bit CPUs. Wins !90 bytes both on 32 and 64 bitsDenys Vlasenko2010-10-182-24/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: use SWAP_BE64 instead of open-coding itDenys Vlasenko2010-10-182-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* udhcpc: fix OPTION_IP_PAIR parsingVladislav Grishenko2010-10-171-7/+10
| | | | | | | | | | http://git.busybox.net/busybox/commit/?id=7d3a48a003cd645edfae2b404493688022 revealed incorrect OPTION_IP_PAIR implementation, which doesn't respect option length and causes erroneous classful routes, composed from garbage or first bytes from the next DHCP packet option. Signed-off-by: Vladislav Grishenko <themiron@mail.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dhcprelay: code shrink, and explain its workings a bit moreDenys Vlasenko2010-10-061-71/+118
| | | | | | | | | | function old new delta sendto_ip4 - 55 +55 dhcprelay_main 1059 942 -117 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 55/-117) Total: -62 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: add support for 0x21 ROUTES and 0xf9 MS_STATIC_ROUTES optionsVladislav Grishenko2010-09-262-0/+6
| | | | | Signed-off-by: Vladislav Grishenko <themiron@mail.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-1613-13/+13
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix a typo in config textDenys Vlasenko2010-08-071-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mark Linux-specific configuration optionsJeremie Koenig2010-07-191-0/+2
| | | | | | | | PLATFORM_LINUX is used as a dependency for applets or features which require Linux-specific interfaces. Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove some dead assignments, add a TODO commentDenys Vlasenko2010-07-041-2/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: introduce and use bb_unsetenv_and_freeDenys Vlasenko2010-06-241-2/+1
| | | | | | | | | | | | | function old new delta bb_unsetenv_and_free - 17 +17 tcpudpsvd_main 1819 1810 -9 safe_setenv 58 47 -11 udhcp_run_script 630 616 -14 make_device 1683 1663 -20 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/4 up/down: 17/-54) Total: -37 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add INSERTs to *.src files where appropriateDenys Vlasenko2010-06-082-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove defconfig. Now "make defconfig" simply uses defaults from Config.inDenys Vlasenko2010-06-061-8/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass renaming Kbuild -> Kbuild.src, Config.in -> Config.srcDenys Vlasenko2010-06-042-0/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: fix daemonize crash on nommu systemsMike Frysinger2010-06-041-1/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* dhcp: truncate packets instead of padding them to 574 bytes. closes bug 1849Denys Vlasenko2010-05-311-12/+20
| | | | | | | | function old new delta udhcp_send_raw_packet 411 456 +45 udhcp_send_kernel_packet 259 271 +12 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dhcp: indicate IP network order in prototypes tooDenys Vlasenko2010-05-301-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dhcp: readability cleanups and small code shrinkDenys Vlasenko2010-05-304-49/+54
| | | | | | | function old new delta udhcp_run_script 654 617 -37 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: fix hostname truncation bug 1663Denys Vlasenko2010-05-021-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: s/sipservers/sipsrv/ to match other similar option namesDenys Vlasenko2010-04-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: note missing sanity checks on INFORM message handlingDenys Vlasenko2010-04-041-1/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: implement "raw" binary options. Closes bug 735Denys Vlasenko2010-04-042-13/+43
| | | | | | | | | | | | | function old new delta allocate_tempopt_if_needed - 76 +76 udhcp_str2optset 351 415 +64 attach_option 380 398 +18 len_of_option_as_string 11 12 +1 dhcp_option_lengths 11 12 +1 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/0 up/down: 160/0) Total: 160 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: s/dhcp_option/dhcp_optflag/gDenys Vlasenko2010-04-043-34/+34
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: trivial shrinkDenys Vlasenko2010-04-041-4/+2
| | | | | | | function old new delta udhcpc_main 2801 2785 -16 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: support decoding of option 120 "SIP servers". Closes bug 737Denys Vlasenko2010-04-034-44/+83
| | | | 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>
* dumpleases: better help textDenys Vlasenko2010-03-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>