aboutsummaryrefslogtreecommitdiff
path: root/networking (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * ntpd: split out poll adjusting codeMiroslav Lichvar2014-09-241-37/+39
| | | | | | | | | | Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ntpd: don't wait for good offset before disabling burst modeMiroslav Lichvar2014-09-241-6/+3
| | | | | | | | | | | | | | The burst mode needs to be stopped even when no replies are received. Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ftpd: make LIST command show dotfiles tooDenys Vlasenko2014-09-151-8/+8
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * tftpd: tweak HP PA-RISC firmware bug compatibilityDenys Vlasenko2014-09-041-3/+4
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * tftpd: support full 512-byte requestsDenys Vlasenko2014-09-031-3/+13
| | | | | | | | | | | | | | | | | | | | Some HP PA-RISC firmware always sends fixed 512-byte requests, with trailing garbage. function old new delta tftpd_main 578 572 -6 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ping: add -p to specify data patternFlorian Fainelli2014-08-271-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta common_ping_main 1788 1831 +43 sendping6 56 82 +26 sendping4 82 108 +26 packed_usage 29959 29938 -21 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 95/-21) Total: 74 bytes Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ftpd: add optional support for authenticationMorten Kvistgaard2014-08-052-23/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta cmdio_get_cmd_and_arg - 237 +237 get_passwd - 97 +97 check_password - 82 +82 ftpd_main 2297 2178 -119 ask_and_check_password_extended 206 84 -122 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 0/2 up/down: 416/-241) Total: 175 bytes Signed-off-by: Morten Kvistgaard <MK@pch-engineering.dk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * zcip: fix link-local IP conflict detectionKen Sharp2014-07-201-16/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During link-local IP resolution, if a regular ARP request is received during the ARP probe period, it will incorrectly cause a target IP conflict. This then leads to a new IP being picked unnecessarily. Per RFC 3927, section 2.2.1, we should flag a target IP conflict only if the source IP is null, the target IP matches our IP, and the source hw addr does not match our hw addr. function old new delta zcip_main 1354 1322 -32 Signed-off-by: Ken Sharp <ken.sharp@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcp: add PXELINUX path prefix option (code 210) definitionJeremy Kerr2014-07-162-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Like d3092c99, this change adds support for the DHCP "path-prefix" option, as defined in RFC 5071. We use the string identifer "pxepathprefix". Adding this option makes string parsing in the hook scripts simpler. function old new delta dhcp_option_strings 255 269 +14 dhcp_optflags 72 74 +2 Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ntpd: add support for -I IFACEDenys Vlasenko2014-07-151-7/+20
| | | | | | | | | | | | | | | | | | | | | | function old new delta packed_usage 29908 29947 +39 ntp_init 428 460 +32 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 71/0) Total: 71 bytes Signed-off-by: Nikolaus Froehlich <nikolaus@mathematik.uni-marburg.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2014-06-305-40/+56
|\|
| * ftpd: do not use root_fd if we are not in chrootDenys Vlasenko2014-06-271-2/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ftpd: for LIST, open current directory *in the child*Denys Vlasenko2014-06-271-3/+5
| | | | | | | | | | | | Last change introduced an open fd leak. This is the fix. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ftpd: escape chroot prior to re-executing ls helperDenys Vlasenko2014-06-271-32/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we merely chdir to saved "real" root fd, exec("proc/self/exe") works for static executables but not for dynamic ones (they can't find their interpreter). With this patch, we also *chroot* to real root. As a bonus, this gives us proper usernames, timezone conversion etc. function old new delta popen_ls 203 259 +56 ftpd_main 2362 2366 +4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ftpd: optimize writes of LIST results a bitDenys Vlasenko2014-06-261-5/+10
| | | | | | | | | | | | | | function old new delta handle_dir_common 201 207 +6 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ftpd: support deprecated XPWD commandDenys Vlasenko2014-06-251-1/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * libbb: use a wrapper around sysconf(_SC_CLK_TCK) to save a few bytesBartosz Golaszewski2014-06-222-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta bb_sc_clk_tck - 10 +10 timescmd 118 113 -5 print_route 1763 1758 -5 mpstat_main 1288 1283 -5 iostat_main 1947 1942 -5 INET_setroute 879 871 -8 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/5 up/down: 10/-28) Total: -18 bytes Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc: make hostname sanitization optional. Closes 3979Denys Vlasenko2014-06-162-0/+15
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2014-05-064-24/+65
|\| | | | | | | | | | | | | Conflicts: debianutils/which.c editors/vi.c libbb/executable.c
| * libbb: rename execable -> executable. No code changesDenys Vlasenko2014-05-021-2/+2
| | | | | | | | | | | | English speakers complained that it sounded awfully broken. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ntpd: fix wrong delay value in one of the printed messagesDenys Vlasenko2014-04-201-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ntpd: truly ignore high delay packetDenys Vlasenko2014-04-191-15/+20
| | | | | | | | | | | | | | | | | | | | | | Before this cahnge, sometimes they were used after the next packet from another peer was received, because we did updare some peer stats from high delay packet before dropping it. function old new delta recv_and_process_peer_pkt 922 966 +44 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * wget: fix a case where progress bar isn't updated if writes are very slowDenys Vlasenko2014-03-271-2/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ntpd: add optional support for /etc/ntp.confDenys Vlasenko2014-03-232-4/+39
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta add_peers - 98 +98 packed_usage 29470 29511 +41 ntp_init 407 428 +21 pw_encrypt 14 27 +13 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/0 up/down: 173/0) Total: 173 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | wget: add fseek calls to make ftp work; enable ftpget/ftpputRon Yorston2014-03-162-0/+12
| |
* | wget: disable https supportRon Yorston2014-03-111-0/+6
|/
* use [s]rand(), not [s]random()Denys Vlasenko2014-03-052-10/+10
| | | | | | | | rand() is the most standard C library function, and on uclibc they are the same. I guess they are the same in most todays' libc... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ip link: add support for "address ETHADDR". Closes 4862Denys Vlasenko2014-03-011-2/+188
| | | | | | | function old new delta do_iplink 2175 2289 +114 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: ignore NAKs from "wrong" servers. Closes 4267Denys Vlasenko2014-02-271-1/+24
| | | | | | | function old new delta udhcpc_main 2716 2814 +98 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc: fix option bit positions. Closes 6926Denys Vlasenko2014-02-261-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix commentDenys Vlasenko2014-02-241-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: add commented-out code to use ssl_helper instead of opensslDenys Vlasenko2014-02-231-2/+47
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* networking/ssl_helper: experimental matrixssl-based ssl helperDenys Vlasenko2014-02-233-0/+433
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: add support for https using "openssl s_client" as a helperDenys Vlasenko2014-02-221-26/+92
| | | | | | | | | | | | | | | | | www.kernel.org started redirecting http:// to https:// making https support mandatory for any auto build scripts. function old new delta wget_main 2631 2971 +340 parse_url 409 471 +62 .rodata 115607 115626 +19 P_HTTPS - 6 +6 P_HTTP - 5 +5 P_FTP - 4 +4 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 3/0 up/down: 436/0) Total: 436 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: fix BPF filter. Hopefully fixes the root cause of 4598 and 6746Denys Vlasenko2014-02-192-4/+5
| | | | | | Use a *signed* large positive value in BPF filter to indicate success. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifplugd: code shrinkDenys Vlasenko2014-02-101-10/+12
| | | | | | | function old new delta ifplugd_main 1161 1144 -17 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* htpd: trivial simplification in random interval selectionDenys Vlasenko2014-02-091-2/+3
| | | | | | | function old new delta poll_interval 57 52 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: in comments, explain the kind of raw socket we createDenys Vlasenko2014-02-071-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: don't use BPF filter, users report problems (bugs 4598, 6746)Denys Vlasenko2014-02-031-47/+46
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifupdown: support 'link' address familyKaarle Ritvanen2014-02-031-0/+13
| | | | | | | | | | | | | | | | | | | | | | Does not configure anything. L2 configuration hook scripts should do their job on receiving ADDRFAM=link. Configuration will be done only once, irrespective of L3 protocols used. Using the 'link' family in the interfaces file conforms to the Debian implementation: http://sources.debian.net/src/ifupdown/0.7.47.1/link.defn function old new delta link_methods - 12 +12 addr_link - 12 +12 link_up_down - 6 +6 static.addr_fams 12 16 +4 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 1/0 up/down: 34/0) Total: 34 bytes Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix use-after-free of ->user. Closes 6836Denys Vlasenko2014-02-031-7/+9
| | | | | | | | function old new delta wget_main 2207 2223 +16 parse_url 339 353 +14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* iplink: fix build with kernel versions prior to 2.6.23Eugene Rudoy2014-01-221-0/+10
| | | | | Signed-off-by: Eugene Rudoy <gene.devel@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: remove now unnecessary check for IP_PKTINFO definitionDenys Vlasenko2014-01-202-6/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: fix compilation warningsBartosz Golaszewski2014-01-201-0/+4
| | | | | | | GCC complained about since_last_update being set but not used. Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fakeidentd: simplify ndelay manipulationsDenys Vlasenko2014-01-101-10/+9
| | | | | | | | function old new delta new_peer 91 79 -12 do_rd 197 152 -45 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fixlet for the previous commit #2Denys Vlasenko2014-01-091-4/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fixlet for the previous commitDenys Vlasenko2014-01-091-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* networking: explain isrv_run() APIDenys Vlasenko2014-01-091-1/+26
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fakeidentd: fix use-after-freeRyan Mallon2014-01-091-13/+12
| | | | | | | | function old new delta do_rd 199 197 -2 Signed-off-by: Ryan Mallon <rmallon@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ping: revert "try SOCK_DGRAM if no root privileges"Denys Vlasenko2014-01-091-16/+3
| | | | | | | It wasn't working, and fixes on top of it would make ping noticeably larger. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>