mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
When sending a packet back to a network interface to simulate an arrived
packet, make sure that the packet has the interface marked in the first mbuf, the same a truely arrived packets would have.
This commit is contained in:
parent
a6ee521120
commit
a62b20c4a1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66061
@ -657,6 +657,7 @@ ng_ether_rcv_upper(node_p node, struct mbuf *m, meta_p meta)
|
||||
m->m_data += sizeof(*eh);
|
||||
m->m_len -= sizeof(*eh);
|
||||
m->m_pkthdr.len -= sizeof(*eh);
|
||||
m->m_pkthdr.rcvif = priv->ifp;
|
||||
|
||||
/* Route packet back in */
|
||||
NG_FREE_META(meta);
|
||||
|
Loading…
Reference in New Issue
Block a user