aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/arpping.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | 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>
* udhcp: cosmetic cleanups; one case of s/full_read/xread/Denys Vlasenko2010-03-261-2/+0
| | | | | | | function old new delta dumpleases_main 632 623 -9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: eliminate more aliasing warningsDenys Vlasenko2010-02-041-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: introduce and use monotonic_msDenys Vlasenko2010-01-121-2/+2
| | | | | | | | | | | | | | | | | | | | | function old new delta monotonic_ms - 60 +60 process_stdin 433 443 +10 display_speed 85 90 +5 nmeter_main 672 674 +2 builtin_type 114 116 +2 bb__parsespent 117 119 +2 ifplugd_main 1110 1109 -1 acpid_main 441 440 -1 chat_main 1361 1359 -2 doCommands 2458 2449 -9 arpping 466 450 -16 run_command 268 234 -34 readcmd 1072 1034 -38 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/7 up/down: 81/-101) Total: -20 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add/remove safe_, it seems we had a few incorrect usesDenys Vlasenko2010-01-121-1/+1
| | | | | | | | | | | | | | | | function old new delta chat_main 1359 1361 +2 microcom_main 712 713 +1 ifplugd_main 1109 1110 +1 arpping 465 466 +1 acpid_main 440 441 +1 script_main 1069 1067 -2 cgi_io_loop_and_exit 594 591 -3 telnet_main 1475 1469 -6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/3 up/down: 6/-11) Total: -5 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: use "can't" instead of "cannot"Denys Vlasenko2009-11-131-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: cosmetics in arpping.c, no code changesDenys Vlasenko2009-06-171-10/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: logging improvements, field and variable renamesDenys Vlasenko2009-06-171-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: change UDHCP_DEBUG into int, make verbosity selectable with -vDenys Vlasenko2009-06-171-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: don't fail ARP check if returned MAC matches client's oneDenys Vlasenko2009-06-161-3/+18
| | | | | | Also, do not unicast replies to yiaddr. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix forgotten license commentsDenis Vlasenko2008-12-071-0/+2
|
* dhcp: add FAST_FUNC as appropriate. -160 bytes.Denis Vlasenko2008-09-261-1/+1
|
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-051-1/+1
|
* udhcp: protect agianst timer overflowing 32-bit counterDenis Vlasenko2008-05-091-1/+1
| | | | | | function old new delta arpping 398 387 -11
* udhcpc: an option to perform ARP check (Jonas Danielsson ↵Denis Vlasenko2007-11-221-9/+20
| | | | | | | <jonas.danielsson@axis.com>) configurable, ~+300 bytes when on.
* introduce safe_poll (fixes a problem in top)Denis Vlasenko2007-09-271-5/+2
| | | | | | | | | | | | | | | | | | | | function old new delta safe_poll - 77 +77 svlogd_main 1470 1466 -4 zcip_main 1530 1524 -6 forkexec 1345 1338 -7 decode_format_string 795 788 -7 collect_blk 474 467 -7 buffer_pread 540 532 -8 tftp 1182 1172 -10 microcom_main 763 749 -14 arpping 441 424 -17 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/9 up/down: 77/-80) Total: -3 bytes text data bss dec hex filename 770162 1034 10404 781600 bed20 busybox_old 770158 1034 10404 781596 bed1c busybox_unstripped
* *: replace select-for-one descriptor with poll, it's smaller.Denis Vlasenko2007-09-071-16/+13
| | | | | | | | | | | | | | | | | $ ./.cmk bloatcheck function old new delta readit 406 364 -42 syslogd_main 1249 1206 -43 traceroute_main 4115 4060 -55 mysleep 112 45 -67 arpping 579 441 -138 tftp 1575 1182 -393 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/6 up/down: 0/-738) Total: -738 bytes text data bss dec hex filename 770580 1051 10764 782395 bf03b busybox_old 769820 1051 10764 781635 bed43 busybox_unstripped
* udhcp: many small fixes:Denis Vlasenko2007-07-031-63/+58
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* random style fixes (extra spaces deleted)Denis Vlasenko2007-03-241-2/+4
|
* u_short, ulong exterminatedDenis Vlasenko2006-12-191-3/+3
| | | | fdiskXXX: add a bit of sanity (not enough by far)
* introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),Denis Vlasenko2006-11-221-4/+3
| | | | | use them where appropriate. 200 bytes saved
* udhcp: fix indentation and style.Denis Vlasenko2006-11-181-8/+21
| | | | | 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
|
* add open_read_close() and similar stuffDenis Vlasenko2006-10-141-1/+1
|
* Implement optional syslog logging using ordinaryDenis Vlasenko2006-09-061-6/+6
| | | | | | bb_xx_msg calls, and convert networking/* to it. The rest of bbox will be converted gradually.
* - remove last reminiscents of IN_BUSYBOXBernhard Reutner-Fischer2006-08-181-4/+0
|
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-0/+1
|
* Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley2006-05-271-1/+0
|
* add back in udhcp supportMike Frysinger2006-05-081-0/+106
|
* remove in place of external linkMike Frysinger2006-03-231-106/+0
|
* just whitespaceTim Riker2006-01-251-3/+3
|
* Revert the uptime() removal. Let the list sort it out...Rob Landley2005-05-041-3/+3
|
* Patch from Shaun Jackman:Rob Landley2005-05-041-3/+3
| | | | | | Replace uptime with time(NULL). time is more portable than uptime and eliminates the need to define uptime, reducing code size slightly.
* fix timewarp in client (server fix later)Russ Dill2004-05-191-3/+3
|
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-8/+8
|
* Patch by Andrew Victor,Glenn L McGrath2004-03-051-3/+3
| | | | | | | | | | | In arpping.h, fix structure alignment of "struct arpMsg". GCC can insert padding in the structure which causes udhcpd to send an invalid ARP packet on the network. It will then not receive a valid reply, which can cause it to assign an IP address that's already in use on the network. (With kernels before 2.4.20, the "struct ethhdr" in linux/if_ether.h wasn't marked as packed. This is also an issue if your toolchain was built with a pre-2.4.20 kernel).
* Use standard C99 typesEric Andersen2004-01-301-2/+2
|
* Finish remerging busybox udhcp and udhcp. Some cleanups as well.Russ Dill2003-12-181-0/+4
|
* Vodz, last_patch_88Glenn L McGrath2003-06-101-6/+3
|
* sync with udhcp bug fixesRuss Dill2003-02-121-2/+2
|
* added full udhcp integrationRuss Dill2002-10-141-0/+105