Since we use different flags to detect tcp forwarding, and we share the

same code for IPv4 and IPv6 in tcp_input, we should check both
M_IP_NEXTHOP and M_IP6_NEXTHOP flags.

MFC after:	3 days
This commit is contained in:
Andrey V. Elsukov
2012-12-17 20:55:33 +00:00
parent 89bae3c5d0
commit f491274582
+2 -1
View File
@@ -780,7 +780,8 @@ tcp_input(struct mbuf *m, int off0)
/*
* Grab info from PACKET_TAG_IPFORWARD tag prepended to the chain.
*/
if (m->m_flags & M_IP_NEXTHOP)
if ((isipv6 && (m->m_flags & M_IP6_NEXTHOP)) ||
(!isipv6 && (m->m_flags & M_IP_NEXTHOP)))
fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL);
#ifdef INET6