diff options
author | 2008-11-02 10:37:29 +0000 | |
---|---|---|
committer | 2008-11-02 10:37:29 +0000 | |
commit | 74732411c86f15a98fb1e06c6b563a6201f54a85 (patch) | |
tree | c680d8aa713bb954fa3bc32fd71272869d7c59f8 /sys/netinet/tcp_input.c | |
parent | check for the maximum file size to avoid some out-of-bounds accesses; (diff) | |
download | wireguard-openbsd-74732411c86f15a98fb1e06c6b563a6201f54a85.tar.xz wireguard-openbsd-74732411c86f15a98fb1e06c6b563a6201f54a85.zip |
Remove the M_ANYCAST6 mbuf flag by doing the detection all in ip6_input().
M_ANYCAST6 was only used to signal tcp6_input() that it should drop the
packet and send back icmp error. This can be done in ip6_input() without
the need for a mbuf flag. Gives us back one slot in m_flags for possible
future need. Looked at and some input by naddy@ and henning@. OK dlg@
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index aeeb13f569f..cd63922fe2b 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.223 2008/10/10 20:03:42 dhill Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.224 2008/11/02 10:37:29 claudio Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -342,21 +342,6 @@ tcp6_input(struct mbuf **mp, int *offp, int proto) } #endif - /* - * draft-itojun-ipv6-tcp-to-anycast - * better place to put this in? - */ - if (m->m_flags & M_ANYCAST6) { - if (m->m_len >= sizeof(struct ip6_hdr)) { - struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); - icmp6_error(m, ICMP6_DST_UNREACH, - ICMP6_DST_UNREACH_ADDR, - (caddr_t)&ip6->ip6_dst - (caddr_t)ip6); - } else - m_freem(m); - return IPPROTO_DONE; - } - tcp_input(m, *offp, proto); return IPPROTO_DONE; } |