mirror of
https://github.com/opnsense/src.git
synced 2026-04-26 00:27:08 -04:00
Apply the change from r272770 to if_ipsec(4) interface.
It is guaranteed that if_ipsec(4) interface is used only for tunnel mode IPsec, i.e. decrypted and decapsultaed packet has its own IP header. Thus we can consider it as new packet and clear the protocols flags. This allows ICMP/ICMPv6 properly handle errors that may cause this packet. PR: 228108 MFC after: 1 week
This commit is contained in:
parent
af5dfe1c18
commit
e287c474be
1 changed files with 1 additions and 1 deletions
|
|
@ -434,7 +434,7 @@ ipsec_if_input(struct mbuf *m, struct secasvar *sav, uint32_t af)
|
|||
m->m_pkthdr.rcvif = ifp;
|
||||
IPSEC_SC_RUNLOCK();
|
||||
|
||||
/* m_clrprotoflags(m); */
|
||||
m_clrprotoflags(m);
|
||||
M_SETFIB(m, ifp->if_fib);
|
||||
BPF_MTAP2(ifp, &af, sizeof(af), m);
|
||||
if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue