summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2014-10-30 13:53:57 +0000
committerae <ae@FreeBSD.org>2014-10-30 13:53:57 +0000
commit33d2961d9afe58f2ae3f480ed0e9b9860aec5f36 (patch)
tree6706dc290b9adb3f67becd2c035261a6946c1a9d /sys/net
parent1d17f744c7fc351c6163d4e1a9862bef78a632d5 (diff)
downloadFreeBSD-src-33d2961d9afe58f2ae3f480ed0e9b9860aec5f36.zip
FreeBSD-src-33d2961d9afe58f2ae3f480ed0e9b9860aec5f36.tar.gz
MFC r272770:
When tunneling interface is going to insert mbuf into netisr queue after stripping outer header, consider it as new packet and clear the protocols flags. This fixes problems when IPSEC traffic goes through various tunnels and router doesn't send ICMP/ICMPv6 errors. PR: 174602 Sponsored by: Yandex LLC
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_gif.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index dfc2697..4cb3ed8 100644
--- a/sys/net/if_gif.c
+++ b/sys/net/if_gif.c
@@ -546,6 +546,7 @@ gif_input(m, af, ifp)
}
sc = ifp->if_softc;
m->m_pkthdr.rcvif = ifp;
+ m_clrprotoflags(m);
#ifdef MAC
mac_ifnet_create_mbuf(ifp, m);
OpenPOWER on IntegriCloud