aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorMunechika SUMIKAWA <sumikawa@FreeBSD.org>2001-10-29 07:55:57 +0000
committerMunechika SUMIKAWA <sumikawa@FreeBSD.org>2001-10-29 07:55:57 +0000
commitdc7f237356d9c4cf507cb9f48bac064abd696294 (patch)
tree09372582487dd074c85ca03d9bb216d51c67f9cf /sys/netinet6
parent256e103fcfd0f1fb883ed525484c5303db9c8b28 (diff)
Notes
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/ip6_fw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_fw.c b/sys/netinet6/ip6_fw.c
index c93253946473..5f6071675c9f 100644
--- a/sys/netinet6/ip6_fw.c
+++ b/sys/netinet6/ip6_fw.c
@@ -231,11 +231,11 @@ ip6opts_match(struct ip6_hdr **pip6, struct ip6_fw *f, struct mbuf **m,
switch(*nxt) {
case IPPROTO_FRAGMENT:
- if ((*m)->m_len < *off + sizeof(struct ip6_frag)) {
+ if ((*m)->m_len >= *off + sizeof(struct ip6_frag)) {
struct ip6_frag *ip6f;
ip6f = (struct ip6_frag *) ((caddr_t)ip6 + *off);
- *offset = ip6f->ip6f_offlg | IP6F_OFF_MASK;
+ *offset = ip6f->ip6f_offlg & IP6F_OFF_MASK;
}
opts &= ~IPV6_FW_IP6OPT_FRAG;
nopts &= ~IPV6_FW_IP6OPT_FRAG;