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:
julian 2000-09-19 08:35:44 +00:00
parent 07a1e70e3d
commit 0a22d74ab0

View File

@ -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);