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
07a1e70e3d
commit
0a22d74ab0
@ -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