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