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 Elischer 2000-09-19 08:35:44 +00:00
parent a6ee521120
commit a62b20c4a1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66061

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