aboutsummaryrefslogtreecommitdiff
path: root/networking
AgeCommit message (Collapse)Author
2009-02-24- rephrase helptext for clarityBernhard Reutner-Fischer
2009-02-24- improve wordingBernhard Reutner-Fischer
2009-02-14- improve wordingBernhard Reutner-Fischer
2009-02-05httpd: tiny optimizationDenis Vlasenko
2009-02-04httpd:Denis Vlasenko
Kill config options by making them always on: FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP FEATURE_HTTPD_CONFIG_WITH_MIME_TYPES This makes httpd.c remotely readable - it had ~125 #ifdefs, now it has ~100. The growth on a .config with all FEATURE_HTTPDs off is: function old new delta send_file_and_exit - 269 +269 parse_conf 683 763 +80 free_llist - 32 +32 httpd_main 427 454 +27 sighup_handler - 15 +15 handle_incoming_and_exit 1110 905 -205 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 2/1 up/down: 423/-205) Total: 218 bytes
2009-02-02telnetd: do not advertise TELNET_LFLOW, we do not supportDenis Vlasenko
it properly.
2009-02-02udhcpd: add code which rejects lease files with suspicious or old timestamp.Denis Vlasenko
*: s/time(0)/time(NULL)/g
2009-02-01dhcpd,dumpleases: write and use 64-bit current time in lease file.Denis Vlasenko
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
2009-01-31brctl: fix compilation on 2.4.x kernelsDenis Vlasenko
2009-01-24traceroute: allow -w NUM as small as 1Denis Vlasenko
2009-01-24traceroute: rewrite. Do not emit raw IP packets, instead send UDP or ICMPDenis Vlasenko
packets and rely on the kernel to form IP headers, select source IP and interface. Doing it in traceroute wasn't working too good, and was bloating it. function old new delta freehostinfo 29 - -29 setsin 30 - -30 in_cksum 57 - -57 gethostinfo 165 - -165 ifaddrlist 364 - -364 traceroute_main 3713 2951 -762 ------------------------------------------------------------------------------ (add/remove: 0/5 grow/shrink: 0/1 up/down: 0/-1407) Total: -1407 bytes
2009-01-24traceroute: preparatory trivial cleanupsDenis Vlasenko
function old new delta traceroute_main 3932 3713 -219
2009-01-23tunctl: new applet by VladimirDenis Vlasenko
function old new delta tunctl_main - 371 +371 packed_usage 25669 25799 +130 applet_names 1981 1988 +7 applet_main 1192 1196 +4 applet_nameofs 596 598 +2 applet_install_loc 149 150 +1 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/0 up/down: 515/0) Total: 515 bytes
2009-01-14dhcpc: suppress "warning: 'timestamp_before_wait' might be used uninitializedDenis Vlasenko
2009-01-01udhcpd: disable opton to have absolute lease times in lease fileDenis Vlasenko
(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
2008-12-30libbb: add bb_unsetenv (taken from hush).Denis Vlasenko
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
2008-12-10libiproute: fix buggy open check: s/if (fd)/if (fd >= 0)/Denis Vlasenko
less: small optimization -15 bytes
2008-12-10bb_info_msg: make it do atomic, unbuffered writesDenis Vlasenko
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
2008-12-10*: fix SO_BINDTODEVICE. Kernel wants at least IFNAMSIZ bytes there.Denis Vlasenko
2008-12-08optimize 16- and 32-bit movesDenis Vlasenko
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
2008-12-07Fix forgotten license commentsDenis Vlasenko
2008-12-04iproute: fix ipXXX utilities trying to parse their applet nameDenis Vlasenko
as their 1st parameter.
2008-12-03iptunnel: fix problems with including linux/ip_tunnel.hDenis Vlasenko
on some systems
2008-12-03libbb: introduce and use xgetpwnam. ~ -150 bytes.Denis Vlasenko
2008-12-02vconfig: style fix, no code changesDenis Vlasenko
2008-12-02libbb: add strncpy_IFNAMSIZDenis Vlasenko
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
2008-11-25ash,hush: add TODO for rare build failureDenis Vlasenko
*: remove some redundant includes
2008-11-24vi: speedup and code shrink (Walter Harms)Denis Vlasenko
networking/interface.c: silence warning (Vladimir) wget: more robust EINTR detection
2008-11-22httpd: set $HOST to Host: header value. +83 bytes.Denis Vlasenko
by Tobias Poschwatta (tp AT fonz.de)
2008-11-22networking/interface.c: better readability (by Walter Harms)Denis Vlasenko
mkfs_minix: whitespace fix
2008-11-22tftpd: can also have TFTP_DEBUGDenis Vlasenko
2008-11-17nslookup: glibc + IPv6 address of DNS server don't mix (yet)Denis Vlasenko
2008-11-16nslookup: allow usage of IPv6 addresses or hostnamesDenis Vlasenko
for DNS server name; allow for port specification. Tested to work: "nslookup google.com [::1]:5353"
2008-11-14ifupdown.c: allow options to udhcpc to be configurable from .configWade Berrier
This allows more control over options that are passed to udhcpc that are not configurable via /etc/network/interfaces. Example: rather than quit when an initial lease isn't found, you could use "--background" so that udhcpc keeps running and continually attempts to get an ip. That way, when you plug in the ethernet after powering on the device, you'll still get an ip.
2008-11-13arp: stop using globalsDenis Vlasenko
function old new delta hw_set 1 - -1 arp_main 1559 1558 -1 sockfd 8 4 -4 hw 4 - -4 device 4 - -4 ap 4 - -4 packed_usage 25402 25393 -9 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 0/3 up/down: 0/-27) Total: -27 bytes
2008-11-12telnetd: fix compile problem for non-standalone telnetdDenis Vlasenko
2008-11-11telnetd: correctly output 0xff char. ~100 bytes.Denis Vlasenko
telnet: fix some atrocious names and style. no code changes
2008-11-09telnetd: set SO_KEEPALIVE, users report it's useful. +20 bytes.Denis Vlasenko
2008-11-09*: a bit of code shrinkDenis Vlasenko
function old new delta stop_handler 41 38 -3 sulogin_main 508 504 -4 got_cont 4 - -4 cont_handler 11 - -11 startservice 309 297 -12 processorstart 423 409 -14 tcpudpsvd_main 1861 1843 -18 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 0/5 up/down: 0/-66) Total: -66 bytes
2008-11-07telnetd: handle emacs M-DEL and IAC-NOP (putty keepalive)Denis Vlasenko
by Jim Cathey (jcathey AT ciena.com) function old new delta telnetd_main 1314 1364 +50
2008-11-06total overhaul of mail applets. again. Vladimir as usual.Denis Vlasenko
2008-11-06runsvdir: alternative methon of supporting runsvdir-as-init. +66 bytes.Denis Vlasenko
*: s/int/pid_t where appropriate
2008-11-06build system: tidying up CONFIG_xxx names (suggested by Rob)Denis Vlasenko
2008-11-05*: code shrink by adding a wrapper around very common tcsetattr(0, TCSANOW, ↵Denis Vlasenko
xx) op function old new delta tcsetattr_stdin_TCSANOW - 14 +14 set_sane_term 116 113 -3 top_main 1277 1273 -4 make_new_session 421 415 -6 rawmode 133 126 -7 reset_term 18 10 -8 die 43 35 -8 cookmode 62 54 -8 vlock_main 425 415 -10 read_line_input 3165 3155 -10 bb_askpass 357 347 -10 fsck_minix_main 3079 3065 -14 getty_main 2375 2332 -43 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/12 up/down: 14/-131) Total: -117 bytes
2008-11-05inetd: fix a case when we have zero servicesDenis Vlasenko
2008-11-04nslookup: tiny shrink (-5 bytes); add comment about res_initDenis Vlasenko
inet_common: cosmetics, no code changes
2008-11-01tftpd: show help if stdin is not a socketDenis Vlasenko
2008-11-01iplink: accept shorthands for "address" keyword here:Denis Vlasenko
"ip link set address 00:11:22:33:44:55" ifupdown: use "addr" instead of "address"
2008-10-30- minor shrinkage (~-60)Bernhard Reutner-Fischer
2008-10-30- support ip link set eth1 address 00:11:22:33:44:55Bernhard Reutner-Fischer
and not only the shorthand "addr". Thanks to ncopa for noticing