Spelling fixes in comments, documentation, tests and examples
By klemens <ka7@github.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -360,7 +360,7 @@ RDATA a variable length string of octets that describes the resource.
|
||||
|
||||
In order to reduce the size of messages, domain names coan be compressed.
|
||||
An entire domain name or a list of labels at the end of a domain name
|
||||
is replaced with a pointer to a prior occurance of the same name.
|
||||
is replaced with a pointer to a prior occurrence of the same name.
|
||||
|
||||
The pointer takes the form of a two octet sequence:
|
||||
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
*
|
||||
* - 2003/03/18 - Tsippy Mendelson <tsippy.mendelson at intel dot com> and
|
||||
* Shmulik Hen <shmulik.hen at intel dot com>
|
||||
* - Moved setting the slave's mac address and openning it, from
|
||||
* - Moved setting the slave's mac address and opening it, from
|
||||
* the application to the driver. This enables support of modes
|
||||
* that need to use the unique mac address of each slave.
|
||||
* The driver also takes care of closing the slave and restoring its
|
||||
|
||||
@@ -191,7 +191,7 @@ static void handle_accept(isrv_state_t *state, int fd)
|
||||
DPRINTF("new_peer(%d)", newfd);
|
||||
n = state->new_peer(state, newfd);
|
||||
if (n)
|
||||
remove_peer(state, n); /* unsuccesful peer start */
|
||||
remove_peer(state, n); /* unsuccessful peer start */
|
||||
}
|
||||
|
||||
static void handle_fd_set(isrv_state_t *state, fd_set *fds, int (*h)(int, void **))
|
||||
|
||||
@@ -459,7 +459,7 @@ create new one, and bind() it. TODO */
|
||||
so I don't feel bad.
|
||||
The *real* question is why BFD sockets wasn't designed to allow listens for
|
||||
connections *from* specific hosts/ports, instead of requiring the caller to
|
||||
accept the connection and then reject undesireable ones by closing.
|
||||
accept the connection and then reject undesirable ones by closing.
|
||||
In other words, we need a TCP MSG_PEEK. */
|
||||
/* bbox: removed most of it */
|
||||
lcladdr = xmalloc_sockaddr2dotted(&ouraddr->u.sa);
|
||||
@@ -502,7 +502,7 @@ static int udptest(void)
|
||||
/* use the tcp-ping trick: try connecting to a normally refused port, which
|
||||
causes us to block for the time that SYN gets there and RST gets back.
|
||||
Not completely reliable, but it *does* mostly work. */
|
||||
/* Set a temporary connect timeout, so packet filtration doesnt cause
|
||||
/* Set a temporary connect timeout, so packet filtration doesn't cause
|
||||
us to hang forever, and hit it */
|
||||
o_wait = 5; /* enough that we'll notice?? */
|
||||
rr = xsocket(ouraddr->u.sa.sa_family, SOCK_STREAM, 0);
|
||||
|
||||
@@ -393,7 +393,7 @@ struct globals {
|
||||
* too big and we will step. I observed it with -6.
|
||||
*
|
||||
* OTOH, setting precision_sec far too small would result in futile
|
||||
* attempts to syncronize to an unachievable precision.
|
||||
* attempts to synchronize to an unachievable precision.
|
||||
*
|
||||
* -6 is 1/64 sec, -7 is 1/128 sec and so on.
|
||||
* -8 is 1/256 ~= 0.003906 (worked well for me --vda)
|
||||
@@ -754,7 +754,7 @@ reset_peer_stats(peer_t *p, double offset)
|
||||
bool small_ofs = fabs(offset) < STEP_THRESHOLD;
|
||||
|
||||
/* Used to set p->filter_datapoint[i].d_dispersion = MAXDISP
|
||||
* and clear reachable bits, but this proved to be too agressive:
|
||||
* and clear reachable bits, but this proved to be too aggressive:
|
||||
* after step (tested with suspending laptop for ~30 secs),
|
||||
* this caused all previous data to be considered invalid,
|
||||
* making us needing to collect full ~8 datapoints per peer
|
||||
@@ -1715,7 +1715,7 @@ update_local_clock(peer_t *p)
|
||||
* It looks like Linux kernel's PLL is far too gentle in changing
|
||||
* tmx.freq in response to clock offset. Offset keeps growing
|
||||
* and eventually we fall back to smaller poll intervals.
|
||||
* We can make correction more agressive (about x2) by supplying
|
||||
* We can make correction more aggressive (about x2) by supplying
|
||||
* PLL time constant which is one less than the real one.
|
||||
* To be on a safe side, let's do it only if offset is significantly
|
||||
* larger than jitter.
|
||||
|
||||
@@ -478,7 +478,7 @@ static void sendping_tail(void (*sp)(int), int size_pkt)
|
||||
} else { /* -c NN, and all NN are sent (and no deadline) */
|
||||
/* Wait for the last ping to come back.
|
||||
* -W timeout: wait for a response in seconds.
|
||||
* Affects only timeout in absense of any responses,
|
||||
* Affects only timeout in absence of any responses,
|
||||
* otherwise ping waits for two RTTs. */
|
||||
unsigned expire = timeout;
|
||||
|
||||
@@ -712,7 +712,7 @@ static void ping4(len_and_sockaddr *lsa)
|
||||
|
||||
if (opt_ttl != 0) {
|
||||
setsockopt_int(pingsock, IPPROTO_IP, IP_TTL, opt_ttl);
|
||||
/* above doesnt affect packets sent to bcast IP, so... */
|
||||
/* above doesn't affect packets sent to bcast IP, so... */
|
||||
setsockopt_int(pingsock, IPPROTO_IP, IP_MULTICAST_TTL, opt_ttl);
|
||||
}
|
||||
|
||||
|
||||
@@ -683,7 +683,7 @@ prog
|
||||
-E
|
||||
no special environment. Do not set up TCP-related environment variables.
|
||||
-v
|
||||
verbose. Print verbose messsages to standard output.
|
||||
verbose. Print verbose messages to standard output.
|
||||
-vv
|
||||
more verbose. Print more verbose messages to standard output.
|
||||
* no difference between -v and -vv in busyboxed version
|
||||
|
||||
@@ -1460,7 +1460,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
|
||||
already_waited_sec += (unsigned)monotonic_sec() - timestamp_before_wait;
|
||||
continue;
|
||||
}
|
||||
/* Else: an error occured, panic! */
|
||||
/* Else: an error occurred, panic! */
|
||||
bb_perror_msg_and_die("select");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -361,7 +361,7 @@ int dhcprelay_main(int argc, char **argv)
|
||||
// which the reply must be sent (i.e., the host or router interface
|
||||
// connected to the same network as the BOOTP client). If the content
|
||||
// of the 'giaddr' field does not match one of the relay agent's
|
||||
// directly-connected logical interfaces, the BOOTREPLY messsage MUST be
|
||||
// directly-connected logical interfaces, the BOOTREPLY message MUST be
|
||||
// silently discarded.
|
||||
if (udhcp_read_interface(iface_list[i], NULL, &dhcp_msg.gateway_nip, NULL)) {
|
||||
/* Fall back to our IP on server iface */
|
||||
|
||||
@@ -138,7 +138,7 @@ int vconfig_main(int argc, char **argv)
|
||||
/* I suppose one could try to combine some of the function calls below,
|
||||
* since ifr.u.flag, ifr.u.VID, and ifr.u.skb_priority are all same-sized
|
||||
* (unsigned) int members of a unions. But because of the range checking,
|
||||
* doing so wouldn't save that much space and would also make maintainence
|
||||
* doing so wouldn't save that much space and would also make maintenance
|
||||
* more of a pain.
|
||||
*/
|
||||
if (ifr.cmd == SET_VLAN_FLAG_CMD) {
|
||||
|
||||
Reference in New Issue
Block a user