aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* udhcp: cleanup of static lease handlingDenys Vlasenko2009-06-166-48/+45
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: rename sprintip to sprint_nip, siaddr to siaddr_nipDenys Vlasenko2009-06-165-33/+26
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: rename giaddr to gateway_nip and server to server_nipDenys Vlasenko2009-06-167-20/+20
| | | | | | "nip" stands for "IP in network order" Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: rename fields in struct dhcpOfferedAddrDenys Vlasenko2009-06-166-31/+32
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: don't fail ARP check if returned MAC matches client's oneDenys Vlasenko2009-06-166-33/+66
| | | | | | Also, do not unicast replies to yiaddr. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add FAST_FUNC to function ptrs where it makes senseDenys Vlasenko2009-06-051-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta evalcommand 1195 1209 +14 testcmd - 10 +10 printfcmd - 10 +10 echocmd - 10 +10 func_exec 270 276 +6 echo_dg 104 109 +5 store_nlmsg 85 89 +4 pseudo_exec_argv 195 198 +3 dotcmd 287 290 +3 machtime_stream 29 31 +2 discard_stream 24 26 +2 argstr 1299 1301 +2 killcmd 108 109 +1 evalfor 226 227 +1 daytime_stream 43 44 +1 run_list 2544 2543 -1 lookupvar 62 61 -1 ipaddr_modify 1310 1309 -1 ... parse_stream 2254 2245 -9 evalpipe 356 347 -9 collect_if 210 197 -13 read_opt 869 851 -18 handle_dollar 681 658 -23 print_addrinfo 1342 1303 -39 iterate_on_dir 156 59 -97 print_route 1709 1609 -100 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 12/130 up/down: 74/-767) Total: -693 bytes text data bss dec hex filename 841748 467 7872 850087 cf8a7 busybox_old 841061 467 7872 849400 cf5f8 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: mass renaming of USE_XXXX to IF_XXXXDenis Vlasenko2009-04-214-19/+19
| | | | | | and SKIP_XXXX to IF_NOT_XXXX - the second one was especially badly named. It was not skipping anything!
* udhcpc: fix truncation of last char in client hostnamesDenis Vlasenko2009-04-211-1/+2
|
* dhcprelay: fix usage text. Simplify and make code more readable.Denis Vlasenko2009-04-131-62/+73
| | | | | Add TODOs.
* *: make "pragma GCC visibility push(hidden)" less uglyDenis Vlasenko2009-04-094-35/+16
|
* more of pointless whitespace fixesDenis Vlasenko2009-04-011-1/+1
|
* dhcpd: remember and record hostnames; optimize get_optionDenis Vlasenko2009-04-018-124/+149
| | | | | | | | | | | | | | | | | dumpleases: show hostnames function old new delta add_lease 230 292 +62 send_offer 403 421 +18 send_ACK 232 249 +17 read_leases 249 258 +9 dumpleases_main 604 609 +5 nobody_responds_to_arp 84 86 +2 udhcp_end_option 32 30 -2 udhcp_get_option 222 171 -51 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 6/2 up/down: 113/-53) Total: 60 bytes
* docs/logging_and_backgrounding.txt: new mini-docDenis Vlasenko2009-03-113-5/+3
| | | | | | | | | | | | | | | | | | | | | dnsd: remove statics, remove nerly-useless SIGINT handler crond: correct more of logfile to 0666 (as usual, umask allows user to remove unwanted bits). nameif: print errors to stderr too, not just to syslog function old new delta udhcp_read_interface 308 306 -2 ttl 4 - -4 fileconf 4 - -4 dnsentry 4 - -4 interrupt 19 - -19 dnsd_main 1463 1394 -69 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 0/2 up/down: 0/-102) Total: -102 bytes text data bss dec hex filename 808161 476 7864 816501 c7575 busybox_old 807994 468 7856 816318 c74be busybox_unstripped
* ftpd: code chrink, fixed some minor bugsDenis Vlasenko2009-03-082-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | ls: update comment *: openlog fixes (added LOG_PID, set LOG_DAEMON as appropriate) function old new delta xwrite_str - 26 +26 cmdio_write_ok - 15 +15 handle_cwd 40 45 +5 packed_usage 25668 25670 +2 cmdio_write_raw 7 9 +2 handle_upload_common 322 320 -2 udhcpd_main 1375 1372 -3 udhcpc_main 2362 2359 -3 port_cleanup 27 23 -4 handle_dir_common 221 209 -12 str_netfd_write 26 - -26 cmdio_get_cmd_and_arg 122 - -122 ftpd_main 2208 2050 -158 ------------------------------------------------------------------------------ text data bss dec hex filename 809933 476 7864 818273 c7c61 busybox_old 809199 476 7864 817539 c7983 busybox_unstripped
* udhcpd: add code which rejects lease files with suspicious or old timestamp.Denis Vlasenko2009-02-022-17/+19
| | | | | *: s/time(0)/time(NULL)/g
* dhcpd,dumpleases: write and use 64-bit current time in lease file.Denis Vlasenko2009-02-012-18/+52
| | | | | | | | | | | | | | | without it, determination of remaining lease time is unreliable. Yes, it's costly in code size, but without it, dumpleases output is misleading! function old new delta read_leases 143 282 +139 dumpleases_main 447 572 +125 write_leases 193 233 +40 hton64 29 58 +29 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/0 up/down: 333/0) Total: 333 bytes
* dhcpc: suppress "warning: 'timestamp_before_wait' might be used uninitializedDenis Vlasenko2009-01-141-2/+3
|
* udhcpd: disable opton to have absolute lease times in lease fileDenis Vlasenko2009-01-017-186/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | (that does not work with dumpleases) dumpleases: fix -a option. networking/udhcp/*: code shrink, more compact static leases struture, better comments, etc function old new delta find_free_or_expired_address - 147 +147 nobody_responds_to_arp - 84 +84 read_opt 781 830 +49 dumpleases_main 435 447 +12 send_ACK 229 232 +3 read_staticlease 90 93 +3 addStaticLease 60 61 +1 getIpByMac 46 43 -3 reservedIp 31 20 -11 keywords 304 288 -16 send_offer 428 403 -25 write_leases 225 193 -32 read_leases 184 143 -41 read_yn 64 - -64 find_address 191 - -191 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 5/6 up/down: 299/-383) Total: -84 bytes
* libbb: add bb_unsetenv (taken from hush).Denis Vlasenko2008-12-301-35/+31
| | | | | | | | | | | | | | | | | | | udhcpc: stop filtering environment passed to the script. crond: fix uncovered potential bug (failing unsetenv) mdev: fix uncovered potential bug (failing unsetenv) tcp, udpsvd: fix uncovered potential bug (failing unsetenv) function old new delta safe_setenv - 58 +58 bb_unsetenv - 55 +55 builtin_unset 139 138 -1 tcpudpsvd_main 1843 1830 -13 free_strings_and_unsetenv 87 53 -34 udhcp_run_script 1186 1133 -53 safe_setenv4 62 - -62 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 0/4 up/down: 113/-163) Total: -50 bytes
* bb_info_msg: make it do atomic, unbuffered writesDenis Vlasenko2008-12-101-7/+16
| | | | | | | | | | | udhcpc: fix a problem where we don't open listening socket fast enough function old new delta bb_info_msg 70 126 +56 change_listen_mode 37 78 +41 udhcp_listen_socket 151 124 -27 udhcpc_main 2344 2285 -59
* *: fix SO_BINDTODEVICE. Kernel wants at least IFNAMSIZ bytes there.Denis Vlasenko2008-12-101-2/+2
|
* optimize 16- and 32-bit movesDenis Vlasenko2008-12-085-38/+43
| | | | | | | | | | | | | | | | function old new delta udhcpd_main 1239 1257 +18 udhcp_add_simple_option 93 92 -1 buffer_read_le_u32 19 18 -1 unpack_gz_stream_with_info 526 520 -6 dnsd_main 1470 1463 -7 udhcp_run_script 1208 1186 -22 send_ACK 255 229 -26 arping_main 1661 1623 -38 send_offer 470 428 -42 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/8 up/down: 18/-143) Total: -125 bytes
* Fix forgotten license commentsDenis Vlasenko2008-12-076-0/+15
|
* libbb: add strncpy_IFNAMSIZDenis Vlasenko2008-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | function old new delta ... udhcp_read_interface 225 220 -5 brctl_main 1151 1146 -5 add_interface 109 104 -5 ipaddr_list_or_flush 2174 2167 -7 do_add_ioctl 88 80 -8 vconfig_main 249 240 -9 do_del_ioctl 78 68 -10 do_iplink 1186 1173 -13 do_if_fetch 766 753 -13 buffer_fill_and_print 196 179 -17 parse_args 1709 1684 -25 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/20 up/down: 11/-140) Total: -129 bytes
* build system: tidying up CONFIG_xxx names (suggested by Rob)Denis Vlasenko2008-11-069-22/+22
|
* udhcp: simplify SO_BINDTODEVICE callDenis Vlasenko2008-10-272-4/+3
|
* udhcp: add inline docs; small code shrinkDenis Vlasenko2008-09-266-41/+64
| | | | | | | function old new delta send_packet 103 87 -16 udhcpc_main 2359 2323 -36
* udhcpc: fixlet for previous commitDenis Vlasenko2008-09-261-3/+5
|
* udhcp: added some FIXMEs; code shrink. -49 bytesDenis Vlasenko2008-09-266-19/+36
|
* dhcp: add FAST_FUNC as appropriate. -160 bytes.Denis Vlasenko2008-09-2620-101/+98
|
* dhcpc: treat "discover...select...discover..." loop the same wayDenis Vlasenko2008-09-261-0/+6
| | | | | as "discover...discover...discover..."
* insmod: shrinkDenis Vlasenko2008-08-271-2/+3
| | | | | | | function old new delta obj_allocate_commons 488 462 -26 insmod_main 3830 3714 -116
* fix several problems with config parser:Denis Vlasenko2008-07-261-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a bug where it underflows the string a bug where it never frees parser_t struct make read_config() return 0 if parser is NULL, make config_close() accept and ignore NULL parser - eliminates many if() blocks reverse the sense of parser bit flags - negative flags are harder to grok. hexdump: revert the change to use config parser, it is BIGGER and also requires additional quirks in parser *: explicitly use PARSER_NORMAL instead of 0 function old new delta login_main 1575 1596 +21 config_close 18 29 +11 bbunpack 383 391 +8 qgravechar 106 109 +3 rtnl_tab_initialize 121 117 -4 expand 1697 1693 -4 man_main 717 712 -5 nameif_main 674 668 -6 hexdump_main 597 591 -6 read_config 217 209 -8 dnsd_main 1478 1470 -8 sysctl_main 203 189 -14 config_open2 44 25 -19 make_device 1177 1141 -36 config_read 597 549 -48 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/11 up/down: 43/-158) Total: -115 bytes
* libbb: [x]fopen_for_{read,write} introduced and used.Denis Vlasenko2008-07-211-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (by Valdimir) function old new delta config_open2 - 41 +41 config_read 507 542 +35 find_pair 169 187 +18 fopen_for_write - 14 +14 fopen_for_read - 14 +14 find_main 406 418 +12 xfopen_for_write - 10 +10 xfopen_for_read - 10 +10 popstring 134 140 +6 parse_inittab 396 401 +5 next_token 923 928 +5 pack_gzip 1659 1661 +2 bb__parsespent 117 119 +2 fallbackSort 1719 1717 -2 evalvar 1376 1374 -2 qrealloc 36 33 -3 ... ... ... ... singlemount 4579 4569 -10 process_stdin 443 433 -10 patch_main 1111 1101 -10 ifupdown_main 2175 2165 -10 file_action_grep 90 80 -10 uuidcache_init 649 637 -12 hush_main 797 785 -12 read_config 230 217 -13 dpkg_main 3835 3820 -15 read_line_input 3134 3110 -24 sysctl_main 232 203 -29 config_open 40 10 -30 WARN_BAD_LINE 44 - -44 login_main 1714 1575 -139 ------------------------------------------------------------------------------ (add/remove: 5/1 grow/shrink: 8/74 up/down: 174/-737) Total: -563 bytes
* udhcp: use libbb for config file parsing (by Vladimir)Denis Vlasenko2008-07-201-33/+16
| | | | | | function old new delta read_config 313 230 -83
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-057-8/+8
|
* whitespace fixes. no code changesDenis Vlasenko2008-06-251-1/+1
|
* udhcpc: change BPF filter to not use 0xffffffff as a max packet size,Denis Vlasenko2008-06-201-1/+1
| | | | | | there are kernels which don't like big (negative when viewed as signed) sizes.
* use USE_FEATURE_UDHCP_PORT instead of ifdefDenis Vlasenko2008-06-151-3/+1
|
* udhcpc: removing stray whitespaceDenis Vlasenko2008-06-151-2/+2
|
* *: use llist_pop for traverse-and-free list operationDenis Vlasenko2008-06-151-2/+1
| | | | | | | | | | | | | | | | | | function old new delta append_file_list_to_list 109 111 +2 udhcpc_main 2414 2413 -1 run_parts_main 325 324 -1 od_main 2324 2323 -1 getopt_main 709 707 -2 env_main 253 251 -2 sed_main 659 656 -3 ps_main 522 519 -3 traceroute_main 3960 3954 -6 sort_main 844 838 -6 diff_main 866 858 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/10 up/down: 2/-33) Total: -31 bytes
* udhcpc: reduce ifdef forest, no code changesDenis Vlasenko2008-06-151-32/+12
|
* udhcpc: kill undocumented -W, it was a no-op.Denis Vlasenko2008-06-132-97/+92
| | | | | | | | | | | | | | | | | | 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-262-20/+22
| | | | | | | | | | | | | | 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-219-49/+50
| | | | | | pause on "serious failure to receive". Some misc fixes are also folded in here.
* udhcpc: simplify renewal of the leaseDenis Vlasenko2008-05-211-22/+19
|
* udhcpc: properly reduce timeout if bogus packets were receivedDenis Vlasenko2008-05-211-11/+16
|
* more of -Wall fixes from Cristian Ionescu-Idbohrn.Denis Vlasenko2008-05-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some are fixing real bugs. function old new delta syslogd_main 938 958 +20 get_signum 136 143 +7 obj_load 777 782 +5 recv_from_to 210 214 +4 get_next_block 1795 1799 +4 display_topmem_process_list 1117 1121 +4 logread_main 484 487 +3 buffer_fill_and_print 73 76 +3 kill_main 687 689 +2 ll_remember_index 240 241 +1 do_stats 452 453 +1 if_readconf 166 165 -1 display_process_list 1192 1191 -1 run_applet_and_exit 507 505 -2 print_signames 33 31 -2 parse_one_line 1092 1090 -2 find_out_spec 57 55 -2 add_ksymoops_symbols 421 419 -2 ash_main 1407 1402 -5 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 11/8 up/down: 54/-17) Total: 37 bytes
* -Wall fixes by Cristian Ionescu-Idbohrn. No object code changes.Denis Vlasenko2008-05-121-2/+2
|
* Use intra-DSO calls when we build libbusybox. No-op for normal build.Denis Vlasenko2008-05-094-3/+33
| | | | | | | | | 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