summaryrefslogtreecommitdiff
path: root/networking/udhcp/socket.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Apply post 1.13.1 patches, bump to 1.13.21_13_2Denis Vlasenko2008-12-311-2/+2
|
* udhcp: simplify SO_BINDTODEVICE callDenis Vlasenko2008-10-271-3/+2
|
* dhcp: add FAST_FUNC as appropriate. -160 bytes.Denis Vlasenko2008-09-261-2/+2
|
* *: compile fixes for 64-bit buildDenis Vlasenko2007-08-231-1/+1
|
* introduce and use xdup2(int, int)Denis Vlasenko2007-08-181-28/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stop checking whether setsockopt_reuseaddr(int fd) was successful (it always is) remove second parameter (sockllen) from xmalloc_sockaddr2xxxxx functions sockaddr2str 142 156 +14 collect_blk 467 474 +7 xdup2 28 33 +5 singlemount 4456 4454 -2 print_host 214 212 -2 nslookup_main 139 137 -2 ftpgetput_main 414 412 -2 udhcpd_main 1258 1255 -3 udhcpc_main 2405 2402 -3 traceroute_main 4125 4122 -3 nc_main 1072 1069 -3 buffer_fill_and_print 76 73 -3 xmalloc_sockaddr2hostonly_noport 18 14 -4 xmalloc_sockaddr2host_noport 18 14 -4 xmalloc_sockaddr2host 15 11 -4 xmalloc_sockaddr2dotted_noport 18 14 -4 xmalloc_sockaddr2dotted 18 14 -4 wget_main 2618 2614 -4 ping_main 393 389 -4 ip_port_str 120 115 -5 dhcprelay_main 1146 1141 -5 dnsd_main 1531 1525 -6 passwd_main 1110 1102 -8 udhcp_kernel_packet 206 197 -9 udhcp_listen_socket 154 144 -10 getty_main 2576 2566 -10 setup 655 640 -15 xmove_fd 51 34 -17 dolisten 759 742 -17 tcpudpsvd_main 1866 1836 -30 startservice 339 299 -40
* udhcp: slight shrinkDenis Vlasenko2007-08-021-5/+6
| | | | | | | | | | | | | | | | | 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
* remove accumulated stray trailing whitespaceDenis Vlasenko2007-07-171-1/+1
|
* xioctl and friends by Tito <farmatito@tiscali.it>Denis Vlasenko2007-07-141-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta do_iptunnel 203 977 +774 process_dev 5328 5494 +166 ioctl_or_perror - 54 +54 ioctl_or_perror_and_die - 51 +51 ioctl_alt_func - 49 +49 bb_ioctl_or_warn - 47 +47 do_add_ioctl 102 145 +43 bb_xioctl - 39 +39 print_value_on_off - 31 +31 get_lcm 105 123 +18 arp_main 2155 2167 +12 .................. zcip_main 1576 1566 -10 setlogcons_main 92 82 -10 dumpkmap_main 263 253 -10 do_get_ioctl 85 75 -10 setkeycodes_main 165 154 -11 write_table 244 232 -12 vconfig_main 318 306 -12 do_del_ioctl 93 81 -12 set_address 75 62 -13 maybe_set_utc 30 16 -14 loadfont_main 495 479 -16 slattach_main 712 695 -17 do_loadfont 191 174 -17 do_iplink 1155 1136 -19 getty_main 2583 2562 -21 fbset_main 2058 2035 -23 do_time 588 565 -23 xioctl 25 - -25 read_rtc 186 160 -26 parse_conf 1299 1270 -29 udhcp_read_interface 269 239 -30 bb_ioctl 45 - -45 bb_ioctl_alt 70 - -70 bb_ioctl_on_off 78 - -78 .rodata 129370 129018 -352 do_show 799 - -799 ------------------------------------------------------------------------------ (add/remove: 6/5 grow/shrink: 13/49 up/down: 1316/-1864) Total: -548 bytes text data bss dec hex filename 675352 2740 13968 692060 a8f5c busybox_old 674804 2740 13968 691512 a8d38 busybox_unstripped
* udhcp: new config option "Rewrite the lease file at every new acknowledge"Denis Vlasenko2007-07-011-3/+4
| | | | | | | | | | (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
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-2/+2
|
* cleanups: unnecessary casts, unified const_1, eliminate cross-.c fileDenis Vlasenko2007-01-221-1/+1
| | | | | prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED", removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.
* - use xlisten/xsocket some more. Saves .25 kBBernhard Reutner-Fischer2006-12-191-5/+1
|
* A bunch of defined(__GLIBC__) added. static-linking warning expandedDenis Vlasenko2006-12-181-1/+1
|
* udhcpc: fix my breakageDenis Vlasenko2006-11-281-2/+2
|
* do not overflow ifr_name. maybe it was safe in some places,Denis Vlasenko2006-11-271-1/+1
| | | | but not everywhere. err to the safe side.
* introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),Denis Vlasenko2006-11-221-4/+3
| | | | | use them where appropriate. 200 bytes saved
* dhcprelay: new appletDenis Vlasenko2006-11-201-13/+17
|
* udhcp: fix indentation and style.Denis Vlasenko2006-11-181-42/+33
| | | | | Eliminate (group) a lot of smallish *.h files Remove lots of unneeded #includes
* add -Wundef, fix uncovered bugsDenis Vlasenko2006-11-171-1/+1
|
* Implement optional syslog logging using ordinaryDenis Vlasenko2006-09-061-9/+9
| | | | | | bb_xx_msg calls, and convert networking/* to it. The rest of bbox will be converted gradually.
* 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/+135
|
* remove in place of external linkMike Frysinger2006-03-231-135/+0
|
* Bug 751: file handle leaks can add up until available filehandles for theRob Landley2006-02-221-0/+3
| | | | process are exhausted.
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-4/+4
|
* Use standard C99 typesEric Andersen2004-01-301-2/+2
|
* Finish remerging busybox udhcp and udhcp. Some cleanups as well.Russ Dill2003-12-181-26/+0
|
* include headers with prototypes to make sure prototypes matchRuss Dill2003-12-161-0/+1
|
* Ulrich Marx writes:Eric Andersen2003-11-141-0/+2
| | | | | | | | | | | | | | | hello i had some trouble with the filedescriptor in udhcp. Two things happened on my device: 1.) broken or not connected cable (no dhcp-server) 2.) daemonizing (starting with option -b) i got a filedescriptor fd=0 from function raw_socket, after daemonizing (daemon call) the fd is closed. Client can't recieve data's anymore. i fixed this problem (like pidfile handling):
* Remove stray '\n'Glenn L McGrath2003-08-291-2/+2
|
* Vodz, last_patch_88Glenn L McGrath2003-06-101-10/+8
|
* added full udhcp integrationRuss Dill2002-10-141-0/+157