aboutsummaryrefslogtreecommitdiff
path: root/networking (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* udhcpc: tweak help text moreDenys Vlasenko2013-08-081-17/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: tweak help textDenys Vlasenko2013-08-081-14/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: tweak help textDenys Vlasenko2013-08-051-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifplugd: use a larger netlink bufferTito Ragusa2013-08-041-4/+10
| | | | | | | | function old new delta check_existence_through_netlink 310 321 +11 Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Whitespace fixesDenys Vlasenko2013-07-304-12/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc: remove unnecessary "errno = 0"Denys Vlasenko2013-07-291-5/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* iplink: fix build error (IFLA_VLAN_PROTOCOL defined before include)Denys Vlasenko2013-07-281-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc: remove some dead codeDenys Vlasenko2013-07-281-24/+12
| | | | | | | function old new delta readwrite 887 841 -46 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc: exit when both stdin and network are closed.Denys Vlasenko2013-07-281-19/+31
| | | | | | | | function old new delta nc_main 1051 1042 -9 readwrite 943 887 -56 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc: use symbolic SHUT_WR instead of literal 1Denys Vlasenko2013-07-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* networking: code shrinkBartosz Golaszewski2013-07-252-97/+1
| | | | | | | | | | | | | function old new delta in_ether - 124 +124 hexchar2int 42 - -42 ifconfig_main 1237 1106 -131 ether_input 141 - -141 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 0/1 up/down: 124/-314) Total: -190 bytes Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ip link: add VLAN supportPatrick McHardy2013-07-151-9/+128
| | | | | | | | | | | | | | function old new delta do_add_or_delete - 1073 +1073 get_u16 - 62 +62 static.protocols - 16 +16 do_iplink 1235 1232 -3 do_change 495 - -495 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 0/1 up/down: 1151/-498) Total: 653 bytes Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ip: code shrinkDenys Vlasenko2013-07-153-20/+16
| | | | | | | | | | | | | function old new delta do_ipaddr 78 81 +3 do_iprule 140 139 -1 do_iptunnel 283 278 -5 iprule_modify 851 841 -10 ipaddr_modify 1293 1236 -57 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/4 up/down: 3/-73) Total: -70 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: do not abort if "_" is encountered in a HTTP headerDenys Vlasenko2013-07-011-2/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ping: code shrinkDenys Vlasenko2013-06-281-13/+14
| | | | | | | function old new delta unpack_tail 262 243 -19 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Move create_icmp[6]_socket to its only user, and simplify itDenys Vlasenko2013-06-281-20/+44
| | | | | | | | | | | | | function old new delta run_applet_and_exit 711 714 +3 sendping_tail 239 236 -3 common_ping_main 1798 1770 -28 create_icmp_socket 65 - -65 create_icmp6_socket 65 - -65 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 1/2 up/down: 3/-161) Total: -158 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nslookup: set default DNS server again. Hopefully helps with 675Denys Vlasenko2013-06-271-2/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: set offset to 0.0 in "usync" eventDenys Vlasenko2013-05-231-3/+8
| | | | | | | function old new delta ntpd_main 1030 1026 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: set G.last_script_run even if script isn't configuredDenys Vlasenko2013-05-221-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: make "unsync" code actually work.Denys Vlasenko2013-05-221-3/+13
| | | | | | While at it: don't run "periodic" if interrupted by a signal. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: drop delay outliers; run "unsync" handler if no replies for some timeDenys Vlasenko2013-05-221-8/+34
| | | | | | | | | | function old new delta ntpd_main 960 1029 +69 recv_and_process_peer_pkt 834 892 +58 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 127/0) Total: 127 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: code shrinkDenys Vlasenko2013-05-171-17/+13
| | | | | | | | function old new delta attach_option 416 413 -3 allocate_tempopt_if_needed 74 - -74 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: fix a problem with binary-encoded options #2Denys Vlasenko2013-05-171-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnet: code shrinkDenys Vlasenko2013-05-121-9/+8
| | | | | | | | function old new delta telnet_main 1519 1515 -4 con_escape 296 285 -11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: introduce and use strftime_[YYYYMMDD]HHMMSS()Denys Vlasenko2013-03-292-3/+3
| | | | | | | | | | | | | | | | | | function old new delta strftime_fmt - 53 +53 strftime_YYYYMMDDHHMMSS - 12 +12 strftime_HHMMSS - 12 +12 human_time 44 43 -1 fmtstr_t 9 - -9 step_time 361 345 -16 watch_main 261 232 -29 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 0/3 up/down: 77/-55) Total: 22 bytes text data bss dec hex filename 919203 932 17692 937827 e4f63 busybox_old 919209 932 17692 937833 e4f69 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: don't allow tabs and multiple spaces in request stringDenys Vlasenko2013-03-251-2/+5
| | | | | | | | | HTTP standard doesn't allow it and no sane clients should ever use it. function old new delta handle_incoming_and_exit 2795 2785 -10 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc: fix build failure ("subscripted value is neither array nor pointer")Denys Vlasenko2013-03-171-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* traceroute: free some memory allocated by xzalloc()Guilherme Maciel Ferreira2013-03-151-2/+13
| | | | | Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ping[6]: accept and ignore -n. Code shrinkDenys Vlasenko2013-03-151-27/+34
| | | | | | | function old new delta print_stats_and_exit 270 232 -38 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: also add -I ADDR to help textDenys Vlasenko2013-03-141-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: add -I LOCAL_ADDR optionDenys Vlasenko2013-03-131-4/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* platform: use KERNEL_VERSION to simplify uClibc version checkingMike Frysinger2013-03-121-4/+1
| | | | | | | | This makes reading the logic (as well as adding new code) a lot simpler, and fixes one or two cases that were broken due to incorrect sub-version tests. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ifupdown: support "source" stanza in /etc/network/interfacesDenys Vlasenko2013-02-281-6/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifplugd: make -k send SIGINT, not SIGQUITDenys Vlasenko2013-02-281-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix config help textDenys Vlasenko2013-02-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc_bloaty: support -ll and -lk. Closes 2245Denys Vlasenko2013-02-281-18/+40
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc: don't redirect stderr to network in -e PROG modeDenys Vlasenko2013-02-281-9/+9
| | | | | | This in incompatible with nc-1.10, but makes a lot of sense. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nameif: fix use-after-free in ENABLE_FEATURE_CLEAN_UP codeThomas De Schampheleire2013-02-281-6/+9
| | | | | Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* arp: code shrinkDenys Vlasenko2013-02-041-10/+9
| | | | | | | | function old new delta packed_usage 29257 29252 -5 arp_main 1487 1471 -16 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* arp: fix -H/-t handling.Kuleshov Aleksey2013-02-041-14/+12
| | | | | | | | | While at it, shrank code. function old new delta arp_main 1558 1487 -71 Signed-off-by: Kuleshov Aleksey <rndfax@yandex.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc6: fix port numbers used if !FEATURE_UDHCP_PORTDenys Vlasenko2013-01-283-18/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifconfig: do not accept "ifconfig eth0 up 1.2.3.4/17" (ip with mask). Closes ↵Denys Vlasenko2013-01-202-88/+81
| | | | | | | | | 5786 function old new delta ifconfig_main 1221 1237 +16 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanup. no code changesDenys Vlasenko2013-01-1412-30/+36
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: fix incorrect m_status field in outgoing packets. Closes 5120Paul Marks2013-01-141-1/+1
| | | | | | | | | | | | | When using busybox ntpd with an NTPv3 client and NTPv4 server (or vice versa), the version numbers can be incorrectly ORed together, yielding the bogus value of "NTPv7". This makes ntpd unusable with clients such as Chrony and Windows "Internet Time". This patch avoids the version mangling, by copying only the Leap Indicator bits from the server's status field. Signed-off-by: Paul Marks <paul@pmarks.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixes. no code changesDenys Vlasenko2013-01-1411-46/+44
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifenslave: fix missing close parenMike Frysinger2012-12-261-1/+1
| | | | | Reported-by: David J Cozatt <ygdrasil@comcast.net> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* CONFIG_PID_FILE_PATH: new configuration option for pidfile pathsAnthony G. Basile2012-12-193-5/+6
| | | | | | | | | | | | | | | We set a default path for the directory where pidfiles are create when FEATURE_PIDFILE is selected. The default has no effect on applets which must specify a pidfile path on the command line to run, and it can be overridden by applets which optionally allow the user to specify the pidfile path. We also add pidfile write/remove support for klogd, ntpd and watchdog. For syslogd, we add a missing remove_pidfile() for better cleanup on daemon exit. Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ifupdown: code shrinkDenys Vlasenko2012-11-091-7/+4
| | | | | | | function old new delta execute 571 548 -23 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifupdown: remove unused errno assignmentsDenys Vlasenko2012-11-051-6/+3
| | | | | | | function old new delta execute 607 571 -36 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifupdown: simple code shrinkDenys Vlasenko2012-11-051-2/+2
| | | | | | | function old new delta execute 631 607 -24 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>