diff options
author | julian <julian@FreeBSD.org> | 2000-09-19 08:35:44 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2000-09-19 08:35:44 +0000 |
commit | 0a22d74ab05b1c7f3607e3c6b32861f7a29247fa (patch) | |
tree | 943b2b9c45ffb57ce27bb4cf192beec02c456a18 /sys/netgraph | |
parent | 07a1e70e3d1a3989a22806f2f2549f119e43b6d4 (diff) | |
download | FreeBSD-src-0a22d74ab05b1c7f3607e3c6b32861f7a29247fa.zip FreeBSD-src-0a22d74ab05b1c7f3607e3c6b32861f7a29247fa.tar.gz |
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.
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_ether.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c index 887c6b6..14105b6 100644 --- a/sys/netgraph/ng_ether.c +++ b/sys/netgraph/ng_ether.c @@ -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); |