aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-04-17 16:13:32 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-04-17 16:13:32 +0200
commit10ad622dc2a9fb6563fab13719ead8baf15ff9e4 (patch)
tree82312d6f38a517dcc7c0004f78d76c667f5a674b /networking
parentd85352b4ff51694cb35b429e4cef53302c9e7076 (diff)
downloadbusybox-w32-10ad622dc2a9fb6563fab13719ead8baf15ff9e4.tar.gz
busybox-w32-10ad622dc2a9fb6563fab13719ead8baf15ff9e4.tar.bz2
busybox-w32-10ad622dc2a9fb6563fab13719ead8baf15ff9e4.zip
Spelling fixes in comments, documentation, tests and examples
By klemens <ka7@github.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/dnsd.c2
-rw-r--r--networking/ifenslave.c2
-rw-r--r--networking/isrv.c2
-rw-r--r--networking/nc_bloaty.c4
-rw-r--r--networking/ntpd.c6
-rw-r--r--networking/ping.c4
-rw-r--r--networking/tcpudp.c2
-rw-r--r--networking/udhcp/dhcpc.c2
-rw-r--r--networking/udhcp/dhcprelay.c2
-rw-r--r--networking/vconfig.c2
10 files changed, 14 insertions, 14 deletions
diff --git a/networking/dnsd.c b/networking/dnsd.c
index 7be90018d..1b85618c6 100644
--- a/networking/dnsd.c
+++ b/networking/dnsd.c
@@ -360,7 +360,7 @@ RDATA a variable length string of octets that describes the resource.
360 360
361In order to reduce the size of messages, domain names coan be compressed. 361In order to reduce the size of messages, domain names coan be compressed.
362An entire domain name or a list of labels at the end of a domain name 362An entire domain name or a list of labels at the end of a domain name
363is replaced with a pointer to a prior occurance of the same name. 363is replaced with a pointer to a prior occurrence of the same name.
364 364
365The pointer takes the form of a two octet sequence: 365The pointer takes the form of a two octet sequence:
366 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ 366 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
diff --git a/networking/ifenslave.c b/networking/ifenslave.c
index 1cb765e23..070931209 100644
--- a/networking/ifenslave.c
+++ b/networking/ifenslave.c
@@ -55,7 +55,7 @@
55 * 55 *
56 * - 2003/03/18 - Tsippy Mendelson <tsippy.mendelson at intel dot com> and 56 * - 2003/03/18 - Tsippy Mendelson <tsippy.mendelson at intel dot com> and
57 * Shmulik Hen <shmulik.hen at intel dot com> 57 * Shmulik Hen <shmulik.hen at intel dot com>
58 * - Moved setting the slave's mac address and openning it, from 58 * - Moved setting the slave's mac address and opening it, from
59 * the application to the driver. This enables support of modes 59 * the application to the driver. This enables support of modes
60 * that need to use the unique mac address of each slave. 60 * that need to use the unique mac address of each slave.
61 * The driver also takes care of closing the slave and restoring its 61 * The driver also takes care of closing the slave and restoring its
diff --git a/networking/isrv.c b/networking/isrv.c
index 3673db715..97f5c6d4e 100644
--- a/networking/isrv.c
+++ b/networking/isrv.c
@@ -191,7 +191,7 @@ static void handle_accept(isrv_state_t *state, int fd)
191 DPRINTF("new_peer(%d)", newfd); 191 DPRINTF("new_peer(%d)", newfd);
192 n = state->new_peer(state, newfd); 192 n = state->new_peer(state, newfd);
193 if (n) 193 if (n)
194 remove_peer(state, n); /* unsuccesful peer start */ 194 remove_peer(state, n); /* unsuccessful peer start */
195} 195}
196 196
197static void handle_fd_set(isrv_state_t *state, fd_set *fds, int (*h)(int, void **)) 197static void handle_fd_set(isrv_state_t *state, fd_set *fds, int (*h)(int, void **))
diff --git a/networking/nc_bloaty.c b/networking/nc_bloaty.c
index f8c375362..3db784982 100644
--- a/networking/nc_bloaty.c
+++ b/networking/nc_bloaty.c
@@ -459,7 +459,7 @@ create new one, and bind() it. TODO */
459 so I don't feel bad. 459 so I don't feel bad.
460 The *real* question is why BFD sockets wasn't designed to allow listens for 460 The *real* question is why BFD sockets wasn't designed to allow listens for
461 connections *from* specific hosts/ports, instead of requiring the caller to 461 connections *from* specific hosts/ports, instead of requiring the caller to
462 accept the connection and then reject undesireable ones by closing. 462 accept the connection and then reject undesirable ones by closing.
463 In other words, we need a TCP MSG_PEEK. */ 463 In other words, we need a TCP MSG_PEEK. */
464 /* bbox: removed most of it */ 464 /* bbox: removed most of it */
465 lcladdr = xmalloc_sockaddr2dotted(&ouraddr->u.sa); 465 lcladdr = xmalloc_sockaddr2dotted(&ouraddr->u.sa);
@@ -502,7 +502,7 @@ static int udptest(void)
502 /* use the tcp-ping trick: try connecting to a normally refused port, which 502 /* use the tcp-ping trick: try connecting to a normally refused port, which
503 causes us to block for the time that SYN gets there and RST gets back. 503 causes us to block for the time that SYN gets there and RST gets back.
504 Not completely reliable, but it *does* mostly work. */ 504 Not completely reliable, but it *does* mostly work. */
505 /* Set a temporary connect timeout, so packet filtration doesnt cause 505 /* Set a temporary connect timeout, so packet filtration doesn't cause
506 us to hang forever, and hit it */ 506 us to hang forever, and hit it */
507 o_wait = 5; /* enough that we'll notice?? */ 507 o_wait = 5; /* enough that we'll notice?? */
508 rr = xsocket(ouraddr->u.sa.sa_family, SOCK_STREAM, 0); 508 rr = xsocket(ouraddr->u.sa.sa_family, SOCK_STREAM, 0);
diff --git a/networking/ntpd.c b/networking/ntpd.c
index 5cc71ca7a..73d27ac20 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -393,7 +393,7 @@ struct globals {
393 * too big and we will step. I observed it with -6. 393 * too big and we will step. I observed it with -6.
394 * 394 *
395 * OTOH, setting precision_sec far too small would result in futile 395 * OTOH, setting precision_sec far too small would result in futile
396 * attempts to syncronize to an unachievable precision. 396 * attempts to synchronize to an unachievable precision.
397 * 397 *
398 * -6 is 1/64 sec, -7 is 1/128 sec and so on. 398 * -6 is 1/64 sec, -7 is 1/128 sec and so on.
399 * -8 is 1/256 ~= 0.003906 (worked well for me --vda) 399 * -8 is 1/256 ~= 0.003906 (worked well for me --vda)
@@ -754,7 +754,7 @@ reset_peer_stats(peer_t *p, double offset)
754 bool small_ofs = fabs(offset) < STEP_THRESHOLD; 754 bool small_ofs = fabs(offset) < STEP_THRESHOLD;
755 755
756 /* Used to set p->filter_datapoint[i].d_dispersion = MAXDISP 756 /* Used to set p->filter_datapoint[i].d_dispersion = MAXDISP
757 * and clear reachable bits, but this proved to be too agressive: 757 * and clear reachable bits, but this proved to be too aggressive:
758 * after step (tested with suspending laptop for ~30 secs), 758 * after step (tested with suspending laptop for ~30 secs),
759 * this caused all previous data to be considered invalid, 759 * this caused all previous data to be considered invalid,
760 * making us needing to collect full ~8 datapoints per peer 760 * making us needing to collect full ~8 datapoints per peer
@@ -1715,7 +1715,7 @@ update_local_clock(peer_t *p)
1715 * It looks like Linux kernel's PLL is far too gentle in changing 1715 * It looks like Linux kernel's PLL is far too gentle in changing
1716 * tmx.freq in response to clock offset. Offset keeps growing 1716 * tmx.freq in response to clock offset. Offset keeps growing
1717 * and eventually we fall back to smaller poll intervals. 1717 * and eventually we fall back to smaller poll intervals.
1718 * We can make correction more agressive (about x2) by supplying 1718 * We can make correction more aggressive (about x2) by supplying
1719 * PLL time constant which is one less than the real one. 1719 * PLL time constant which is one less than the real one.
1720 * To be on a safe side, let's do it only if offset is significantly 1720 * To be on a safe side, let's do it only if offset is significantly
1721 * larger than jitter. 1721 * larger than jitter.
diff --git a/networking/ping.c b/networking/ping.c
index ef31e000b..94fb007f5 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -478,7 +478,7 @@ static void sendping_tail(void (*sp)(int), int size_pkt)
478 } else { /* -c NN, and all NN are sent (and no deadline) */ 478 } else { /* -c NN, and all NN are sent (and no deadline) */
479 /* Wait for the last ping to come back. 479 /* Wait for the last ping to come back.
480 * -W timeout: wait for a response in seconds. 480 * -W timeout: wait for a response in seconds.
481 * Affects only timeout in absense of any responses, 481 * Affects only timeout in absence of any responses,
482 * otherwise ping waits for two RTTs. */ 482 * otherwise ping waits for two RTTs. */
483 unsigned expire = timeout; 483 unsigned expire = timeout;
484 484
@@ -712,7 +712,7 @@ static void ping4(len_and_sockaddr *lsa)
712 712
713 if (opt_ttl != 0) { 713 if (opt_ttl != 0) {
714 setsockopt_int(pingsock, IPPROTO_IP, IP_TTL, opt_ttl); 714 setsockopt_int(pingsock, IPPROTO_IP, IP_TTL, opt_ttl);
715 /* above doesnt affect packets sent to bcast IP, so... */ 715 /* above doesn't affect packets sent to bcast IP, so... */
716 setsockopt_int(pingsock, IPPROTO_IP, IP_MULTICAST_TTL, opt_ttl); 716 setsockopt_int(pingsock, IPPROTO_IP, IP_MULTICAST_TTL, opt_ttl);
717 } 717 }
718 718
diff --git a/networking/tcpudp.c b/networking/tcpudp.c
index 3a6c68646..3ebe7d5fc 100644
--- a/networking/tcpudp.c
+++ b/networking/tcpudp.c
@@ -683,7 +683,7 @@ prog
683-E 683-E
684 no special environment. Do not set up TCP-related environment variables. 684 no special environment. Do not set up TCP-related environment variables.
685-v 685-v
686 verbose. Print verbose messsages to standard output. 686 verbose. Print verbose messages to standard output.
687-vv 687-vv
688 more verbose. Print more verbose messages to standard output. 688 more verbose. Print more verbose messages to standard output.
689 * no difference between -v and -vv in busyboxed version 689 * no difference between -v and -vv in busyboxed version
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 881512cf3..c45a0af1a 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -1460,7 +1460,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
1460 already_waited_sec += (unsigned)monotonic_sec() - timestamp_before_wait; 1460 already_waited_sec += (unsigned)monotonic_sec() - timestamp_before_wait;
1461 continue; 1461 continue;
1462 } 1462 }
1463 /* Else: an error occured, panic! */ 1463 /* Else: an error occurred, panic! */
1464 bb_perror_msg_and_die("select"); 1464 bb_perror_msg_and_die("select");
1465 } 1465 }
1466 } 1466 }
diff --git a/networking/udhcp/dhcprelay.c b/networking/udhcp/dhcprelay.c
index 7cb19b14e..ea84c0dd7 100644
--- a/networking/udhcp/dhcprelay.c
+++ b/networking/udhcp/dhcprelay.c
@@ -361,7 +361,7 @@ int dhcprelay_main(int argc, char **argv)
361// which the reply must be sent (i.e., the host or router interface 361// which the reply must be sent (i.e., the host or router interface
362// connected to the same network as the BOOTP client). If the content 362// connected to the same network as the BOOTP client). If the content
363// of the 'giaddr' field does not match one of the relay agent's 363// of the 'giaddr' field does not match one of the relay agent's
364// directly-connected logical interfaces, the BOOTREPLY messsage MUST be 364// directly-connected logical interfaces, the BOOTREPLY message MUST be
365// silently discarded. 365// silently discarded.
366 if (udhcp_read_interface(iface_list[i], NULL, &dhcp_msg.gateway_nip, NULL)) { 366 if (udhcp_read_interface(iface_list[i], NULL, &dhcp_msg.gateway_nip, NULL)) {
367 /* Fall back to our IP on server iface */ 367 /* Fall back to our IP on server iface */
diff --git a/networking/vconfig.c b/networking/vconfig.c
index f3020409a..854eca0a1 100644
--- a/networking/vconfig.c
+++ b/networking/vconfig.c
@@ -138,7 +138,7 @@ int vconfig_main(int argc, char **argv)
138 /* I suppose one could try to combine some of the function calls below, 138 /* I suppose one could try to combine some of the function calls below,
139 * since ifr.u.flag, ifr.u.VID, and ifr.u.skb_priority are all same-sized 139 * since ifr.u.flag, ifr.u.VID, and ifr.u.skb_priority are all same-sized
140 * (unsigned) int members of a unions. But because of the range checking, 140 * (unsigned) int members of a unions. But because of the range checking,
141 * doing so wouldn't save that much space and would also make maintainence 141 * doing so wouldn't save that much space and would also make maintenance
142 * more of a pain. 142 * more of a pain.
143 */ 143 */
144 if (ifr.cmd == SET_VLAN_FLAG_CMD) { 144 if (ifr.cmd == SET_VLAN_FLAG_CMD) {