aboutsummaryrefslogtreecommitdiff
path: root/networking (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * udhcpc: remove workaround for bugs in Win98 dhcp server ("MSFT 98" vendor ↵Denys Vlasenko2011-11-051-31/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | string) Stats for last three commits: function old new delta udhcpc_main 2635 2646 +11 udhcp_recv_raw_packet 425 414 -11 udhcp_recv_kernel_packet 210 134 -76 packed_usage 28940 28857 -83 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 11/-170) Total: -159 bytes text data bss dec hex filename 879524 493 7584 887601 d8b31 busybox_old 879340 493 7584 887417 d8a79 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc: reuse string constant; remove unneeded memset(0)Denys Vlasenko2011-11-051-2/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc: deprecate --hostname NAMEDenys Vlasenko2011-11-051-5/+20
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit 'c0cae52662ccced9df19f19ec94238d1b1e3bd71' into mergeRon Yorston2012-03-2314-271/+277
|\| | | | | | | | | | | Conflicts: Makefile.flags scripts/basic/fixdep.c
| * getty: reset tty attrs on Ctrl-C and Ctrl-D tooDenys Vlasenko2011-10-231-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc: add comment about server IPDenys Vlasenko2011-10-201-1/+19
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc: in fill_envp, export BOOTP fields firstDenys Vlasenko2011-10-201-18/+36
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * dhcpc: fix the case where we might add extra space at the end of envvar.Denys Vlasenko2011-10-202-9/+13
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc: fix 6rd option formatting (was using 4 more bytes than there is)Denys Vlasenko2011-10-201-27/+23
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc: remove unused argument in sprint_nip6Denys Vlasenko2011-10-201-4/+4
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc: small code shrinkDenys Vlasenko2011-10-201-6/+9
| | | | | | | | | | | | | | function old new delta udhcp_recv_raw_packet 430 425 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * typo fix in commentDenys Vlasenko2011-10-201-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc: add support for DHCP option 212 (RFC 5969)Denys Vlasenko2011-10-193-2/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch is from OpenWRT people. function old new delta xmalloc_optname_optval 637 874 +237 dhcp_option_strings 237 243 +6 dhcp_optflags 68 70 +2 len_of_option_as_string 12 13 +1 dhcp_option_lengths 12 13 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/0 up/down: 247/0) Total: 247 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * nc: small code shrinkDenys Vlasenko2011-10-191-2/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ifupdown: code shrinkDenys Vlasenko2011-10-191-27/+15
| | | | | | | | | | | | | | | | | | | | | | function old new delta keywords_up_down - 43 +43 set_environ 371 259 -112 ifupdown_main 2194 2073 -121 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/2 up/down: 43/-233) Total: -190 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ifupdown: support post-up / pre-down hooksPeter Korsgaard2011-10-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta set_environ 330 371 +41 ifupdown_main 2156 2194 +38 iface_up 97 113 +16 iface_down 97 113 +16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/0 up/down: 111/0) Total: 111 bytes Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc: on SIGUSR1, limit renew attempts time to 20 seconds; then do total ↵Vladislav Grishenko2011-10-181-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reconfig Scenario: 1. udhcpc gets lease for 86400 secs and sleeps for 43200 before renew attempt 2. PC gets physically disconnected and connected to another network 3. some phy control software sends SIGUSR1 to renew the lease, SIGUSR2 isn't used because newly connected network could be the same as before 4. udhcpc sends unicast renew requests until lease timeout fall to 60 sec. They are ignored by new network dhcp servers 5. udhcpc sends broadcast rebind requests for 60 seconds, which are NAKed or ignored too 6. udhcpc deconfigs and starting from discover state, gets new lease for the new network So, pt.4+5 it could take up to 86400 secs without correct lease, which is too long and not acceptable. Second SIGUSR1 will immediately run into deconfig/discover state, which is not preferable in case of the same subnet replugged. This patch makes sure after SIGUSR1 timeout is no more than -A NUM (usually 20 sec). It means that renew will be requested via broadcast, and if no replies come back, full deconf/reconf cycle will be initiated in 20 seconds. Signed-off-by: Vladislav Grishenko <themiron@mail.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcp: IF_UDHCP_VERBOSE() macro - improve code readabilityLeonid Lisovskiy2011-10-183-11/+5
| | | | | | | | | | Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * tftp: mode string is case independentDenys Vlasenko2011-10-061-1/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * add INIT_G()'s. No code changes.Denys Vlasenko2011-09-211-0/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * start_stop_daemon: set complementary group ids too. Closes 3253Denys Vlasenko2011-09-151-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * wget: URL-decode user:password before base64-encoding it into auth hdr. ↵Denys Vlasenko2011-09-112-81/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes 3625. function old new delta percent_decode_in_place - 152 +152 parse_url 304 317 +13 handle_incoming_and_exit 2795 2798 +3 httpd_main 763 760 -3 decodeString 152 - -152 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 2/1 up/down: 168/-155) Total: 13 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ping: display real IPv6 response address. Hopefully closes 3745.Denys Vlasenko2011-09-111-3/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * inetd: close new udp fd in "udp nowait" caseDenys Vlasenko2011-09-111-11/+55
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcp: remove the declaration of non-existent udhcp_checksumBaruch Siach2011-09-091-2/+0
| | | | | | | | | | Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * networking: consolidate the IP checksum code. -129 bytes.Baruch Siach2011-09-074-95/+9
| | | | | | | | | | Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit 'd84b175cb6948eb17f847313bf912174e2f934e1' into mergeRon Yorston2012-03-224-6/+37
|\| | | | | | | | | Conflicts: include/platform.h
| * tcpudp: simplify help textDenys Vlasenko2011-07-251-3/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * more tweak for bionicDenys Vlasenko2011-07-082-2/+33
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * typo fixesDan Fandrich2011-07-081-1/+1
| | | | | | | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit '066f39956641300c1e5c6bfe6c11a115cea3e2cf' into mergeRon Yorston2012-03-2242-126/+61
|\| | | | | | | | | Conflicts: procps/ps.c
| * inetd: check if RPC is availableBernhard Reutner-Fischer2011-06-151-2/+5
| | | | | | | | | | | | | | | | It would be better to have FEATURE_HAVE_RPC be user-selectable and depend mount.nfs and inetd-rpc on it instead of the current, backward, way. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * iplink: tweak includes to work on androidDenys Vlasenko2011-06-121-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Replaced __u32 etc. with standard uint32_t style typesDaniel Fandrich2011-06-102-24/+24
| | | | | | | | | | Signed-off-by: Daniel Fandrich <dfandrich@intrinsyc.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * *: simplify Ethernet header includesDan Fandrich2011-06-109-53/+20
| | | | | | | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * *: remove "Options:" string from help textsDenys Vlasenko2011-06-0535-44/+6
| | | | | | | | | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc: allow -O OPT take numeric paramsDenys Vlasenko2011-06-041-2/+5
| | | | | | | | | | | | | | function old new delta udhcpc_main 2623 2654 +31 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit '56a3b82e9692a25ef9c9269e88feac0d579ce8e8' into mergeRon Yorston2012-03-2210-44/+116
|\| | | | | | | | | | | | | Conflicts: coreutils/ls.c include/platform.h libbb/bb_basename.c
| * The [-Wunused-but-set-variable] warningsCristian Ionescu-Idbohrn2011-05-161-2/+2
| | | | | | | | | | | | | | networking/ntpd.c:1748:19: warning: variable 'version' set but not used Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * fix "variable 'foo' set but not used" warningsDenys Vlasenko2011-05-131-4/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * adduser: safe username passing to passwd/addgroupDenys Vlasenko2011-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | passwd: support creating SHA passwords random code shrink function old new delta crypt_make_pw_salt - 87 +87 adduser_main 883 904 +21 ... crypt_make_salt 99 89 -10 chpasswd_main 329 312 -17 packed_usage 28731 28691 -40 passwd_main 1070 1000 -70 cryptpw_main 310 224 -86 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/12 up/down: 154/-288) Total: -134 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * inetd: add FIXMEsDenys Vlasenko2011-05-121-0/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * traceroute: properly reduce poll timeoutDenys Vlasenko2011-05-051-24/+37
| | | | | | | | | | | | | | | | | | | | | | | | This removes the problem where during the time we wait to declare a target as unresponsive we receive an unrelated ICMP packet. If there is enough traffic, this can make traceroute hang as it never declares the target as unresponsive. function old new delta common_traceroute_main 4196 4261 +65 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcp: fix some default values from "" to NULLDenys Vlasenko2011-05-031-3/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcp: add FEATURE_UDHCP_8021Q optionNigel Hathaway2011-04-263-0/+18
| | | | | | | | | | | | | | | | | | function old new delta dhcp_option_strings 217 237 +20 dhcp_optflags 64 68 +4 Signed-off-by: Nigel Hathaway <Nigel.Hathaway@ubiquisys.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * dhcpc: export unrecognized options in "optNN=XXXXXXXXX" formNigel Hathaway2011-04-261-10/+47
| | | | | | | | | | | | | | | | function old new delta udhcp_run_script 609 818 +209 Signed-off-by: Nigel Hathaway <Nigel.Hathaway@ubiquisys.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into mergeRon Yorston2012-03-2238-65/+769
|\|
| * add include <sys/socket.h>Denys Vlasenko2011-04-171-0/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * wget: add a note about bug 3625Denys Vlasenko2011-04-161-0/+6
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Use net/ethernet.h instead of linux/if_ether.h in more cases. Closes 3619Denys Vlasenko2011-04-161-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>