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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user