aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* udhcpc6: fix port numbers used if !FEATURE_UDHCP_PORTDenys Vlasenko2013-01-281-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: make -O <numeric_opt> work. Closes 5402Denys Vlasenko2012-07-271-1/+0
| | | | | | | | | | | | | function old new delta udhcpc_main 2642 2685 +43 udhcp_recv_raw_packet 414 415 +1 d6_recv_raw_packet 248 249 +1 udhcpc6_main 2430 2413 -17 add_client_options 239 213 -26 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/2 up/down: 45/-43) Total: 2 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: emit "correct" secs fieldDenys Vlasenko2011-03-121-0/+3
| | | | | | | | | | | | | 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>
* *: 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-0/+3
| | | | | | | function old new delta dumpleases_main 632 623 -9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: add -x OPT:VAL optionDenys Vlasenko2010-03-251-0/+1
| | | | | | | | | | | | | | | | | function old new delta udhcp_str2optset - 443 +443 add_client_options - 160 +160 udhcpc_main 2753 2857 +104 packed_usage 26670 26689 +19 attach_option 380 385 +5 udhcpd_main 1964 1965 +1 udhcp_add_option_string 94 86 -8 add_param_req_option 128 - -128 read_opt 443 - -443 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 4/1 up/down: 732/-579) Total: 153 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: remove two unused fieldsDenys Vlasenko2010-03-231-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: merge clientpacket.c into dhcpc.cDenys Vlasenko2010-03-221-15/+0
| | | | | | | | | | | | | | | function old new delta udhcpc_main 2569 2855 +286 perform_release 122 124 +2 client_background 31 32 +1 init_packet 156 88 -68 send_decline 114 - -114 send_discover 121 - -121 send_select 130 - -130 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 3/1 up/down: 289/-433) Total: -144 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: untangle incredibly messy handling of DHCPREQUESTDenys Vlasenko2010-03-211-1/+0
| | | | | | | | | | | | | | Also fixes attacks possible via DHCPDECLINE / DHCPRELEASE function old new delta udhcpd_main 1846 1949 +103 send_renew 105 142 +37 send_NAK 61 - -61 send_ACK 180 - -180 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 2/0 up/down: 140/-241) Total: -101 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp[cd]: fix aliasing warningsDenys Vlasenko2010-02-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: shorten mac len from 16 to 6 in lease fileDenys 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-5/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: rename server/client_config.arp to server_mac and client_macDenys Vlasenko2009-06-161-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: mass renaming of USE_XXXX to IF_XXXXDenis Vlasenko2009-04-211-1/+1
| | | | | | and SKIP_XXXX to IF_NOT_XXXX - the second one was especially badly named. It was not skipping anything!
* *: make "pragma GCC visibility push(hidden)" less uglyDenis Vlasenko2009-04-091-9/+4
|
* udhcp: added some FIXMEs; code shrink. -49 bytesDenis Vlasenko2008-09-261-1/+1
|
* dhcp: add FAST_FUNC as appropriate. -160 bytes.Denis Vlasenko2008-09-261-8/+8
|
* use USE_FEATURE_UDHCP_PORT instead of ifdefDenis Vlasenko2008-06-151-3/+1
|
* udhcpc: kill undocumented -W, it was a no-op.Denis Vlasenko2008-06-131-12/+7
| | | | | | | | | | | | | | | | | | fix option parsing in the case some CONFIG_x are off. disable -b on NOMMU, make backgrounding work correctly (if a bit differently from MMU case). Previously, it wasn't working at all. stop using global data for flags in main(), opt bitfield works as well. function old new delta cryptpw_main 177 153 -24 packed_usage 24478 24452 -26 client_background 26 - -26 udhcpc_main 2462 2372 -90 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-166) Total: -166 bytes
* udhcpc: shrinkDenis Vlasenko2008-05-261-9/+0
| | | | | | | | | | | | | | udhcpc: guard against zero lease time function old new delta timeout 4 - -4 server_addr 4 - -4 requested_ip 4 - -4 perform_release 134 112 -22 udhcpc_main 2511 2485 -26 ------------------------------------------------------------------------------ (add/remove: 0/3 grow/shrink: 0/2 up/down: 0/-60) Total: -60 bytes
* udhcpc: regularize the names of receiving functions,Denis Vlasenko2008-05-211-1/+2
| | | | | | pause on "serious failure to receive". Some misc fixes are also folded in here.
* Use intra-DSO calls when we build libbusybox. No-op for normal build.Denis Vlasenko2008-05-091-0/+7
| | | | | | | | | This was Bernhard Fischer' idea. text data bss dec hex filename 773549 7781 9740 791070 c121e busybox.t7/0_lib/libbusybox.so.1.11.0.svn_unstripped 769683 7397 9740 786820 c0184 busybox.t9t/0_lib/libbusybox.so.1.11.0.svn_unstripped
* udhcpc: add -o "do not request options by default" switchDenis Vlasenko2008-04-021-0/+1
| | | | | | | | | | | | | (by L. Gabriel Somlo <somlo AT cmu.edu>) function old new delta udhcpc_main 2513 2554 +41 static.udhcpc_longopts 226 247 +21 add_param_req_option 119 132 +13 packed_usage 23952 23964 +12 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/0 up/down: 87/0) Total: 87 bytes
* udhcp: ifdef out unused membersDenis Vlasenko2008-02-041-0/+2
|
* udhcp: optional support for non-standard DHCP ports (+300 bytes when selected)Denis Vlasenko2008-02-041-1/+9
|
* udhcpc: fix wrong options in decline and release packetsDenis Vlasenko2008-01-251-1/+1
| | | | | (Jonas Danielsson <jonas.danielsson at axis.com>)
* udhcpc: support for -O <option>.Denis Vlasenko2007-12-101-0/+1
| | | | | | | | | | | | | | | | 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
* udhcpc: an option to perform ARP check (Jonas Danielsson ↵Denis Vlasenko2007-11-221-3/+4
| | | | | | | <jonas.danielsson@axis.com>) configurable, ~+300 bytes when on.
* xreadlink: code shrinkDenis Vlasenko2007-11-081-0/+1
| | | | | | | | | | udhcp: add missing tryagain member to client_config function old new delta xmalloc_readlink_follow 169 154 -15 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-15) Total: -15 bytes
* move udhcp_{client/server}_config to common_bufsiz1Denis Vlasenko2007-09-301-1/+1
| | | | | | | | | | | | | | | udhcp_run_script 1108 1151 +43 init_packet 209 210 +1 udhcpc_main 2395 2393 -2 udhcp_client_config 56 - -56 udhcp_server_config 88 - -88 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 2/1 up/down: 44/-146) Total: -102 bytes text data bss dec hex filename 771326 1029 9696 782051 beee3 busybox_old 771383 1029 9552 781964 bee8c busybox_unstripped
* udhcp: many small fixes:Denis Vlasenko2007-07-031-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | * 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-3/+3
| | | | | | | | | | (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
* wget: use monotonic_sec instead of gettimeofdayDenis Vlasenko2007-06-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zcip: use monotonic_us instead of gettimeofday udhcpcd: simpler, shorter random_xid() function old new delta monotonic_sec - 41 +41 find_pair 164 180 +16 run_list_real 2018 2028 +10 cmp_main 547 555 +8 collect_ctx 112 119 +7 singlemount 4544 4549 +5 time_main 1124 1128 +4 static.start_sec - 4 +4 static.lastupdate_sec - 4 +4 sock - 4 +4 read_package_field 253 257 +4 pick 38 40 +2 get_next_line 145 147 +2 count_lines 59 61 +2 process_stdin 435 433 -2 xstrtoul_range_sfx 229 226 -3 static.initialized 4 1 -3 dhcprelay_main 1125 1122 -3 catcher 380 377 -3 arping_main 1969 1966 -3 s 8 4 -4 cfg 4 - -4 static.lastupdate 8 - -8 start 8 - -8 random_xid 95 33 -62 .rodata 129114 129050 -64 zcip_main 1731 1576 -155 progressmeter 1035 867 -168 ------------------------------------------------------------------------------ (add/remove: 4/3 grow/shrink: 10/11 up/down: 113/-490) Total: -377 bytes
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-2/+2
|
* udhcpc: convert to getopt32Denis Vlasenko2006-11-271-16/+18
|
* udhcp: fix indentation and style.Denis Vlasenko2006-11-181-4/+11
| | | | | Eliminate (group) a lot of smallish *.h files Remove lots of unneeded #includes
* several fixes from openWRT projectDenis Vlasenko2006-09-261-0/+1
|
* whitespace cleanupDenis Vlasenko2006-09-171-1/+1
|
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-0/+1
|
* add back in udhcp supportMike Frysinger2006-05-081-0/+39
|
* remove in place of external linkMike Frysinger2006-03-231-39/+0
|
* sync busybox and udhcp treesMike Frysinger2006-03-231-3/+2
|
* Roy Walker writes:Eric Andersen2006-03-201-0/+1
| | | | | | | | | | | | | | | | | Here is a patch against the current subversion repository, that makes udhcpc have an adjustable timeout. Works for both foreground and before it drops to the background. This brings it more in-line with ISC dhcpc. Use like so: udhcpc --timeout=10 ... or udhcpc -T 10 ... Still shooting for 1.1.1 this month? Would really be great if you could get this in that release. Please give credit to Paul Pacheco - ppacheco@gmail.com.
* Missed a file in the last checkin, won't build without this...Rob Landley2006-02-211-0/+1
|
* more make safe the exported namespace for udhcp. Move to bb-specific file ↵"Vladimir N. Oleynik"2005-09-231-3/+2
| | | | for reduce change into udhcp-CVS
* add support for setting the dhcp vendor class option (option 60). Paul Fox2005-09-221-0/+1
| | | | | | udhcpc now has a -V (--vendorclass), which will replace the default "udhcpRELEASE" string in this option.
* merge from udhcp moduleMike Frysinger2004-12-061-0/+1
|
* Use standard C99 typesEric Andersen2004-01-301-3/+3
|
* Finish remerging busybox udhcp and udhcp. Some cleanups as well.Russ Dill2003-12-181-0/+5
|
* Vodz, last_patch_88Glenn L McGrath2003-06-101-2/+0
|