summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-04-04 13:43:03 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-04-04 13:43:03 +0000
commite7e853fbc50b8c1be57a43da0c64b9bcdca9dd97 (patch)
treef06166b7d1d84c01c181391cb838fac40b127c1a /sys
parent40a5057c8ad14c47469568b0f1ac66965293b52b (diff)
Verbiage fix.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_input.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 26c3846e5e1..f4fac0fd7d5 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.50 2000/03/27 07:26:45 angelos Exp $ */
+/* $OpenBSD: ip_input.c,v 1.51 2000/04/04 13:43:02 angelos Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -346,7 +346,7 @@ ipv4_input(struct mbuf *m, ...)
/*
* Check that the amount of data in the buffers
- * is as at least much as the IP header would have us expect.
+ * is at least as much as the IP header would have us expect.
* Trim mbufs if longer than we expect.
* Drop packet if shorter than we expect.
*/
@@ -858,6 +858,7 @@ ip_dooptions(m)
dst = ip->ip_dst;
cp = (u_char *)(ip + 1);
cnt = (ip->ip_hl << 2) - sizeof (struct ip);
+
for (; cnt > 0; cnt -= optlen, cp += optlen) {
opt = cp[IPOPT_OPTVAL];
if (opt == IPOPT_EOL)
@@ -871,6 +872,7 @@ ip_dooptions(m)
goto bad;
}
}
+
switch (opt) {
default: