Set oif only for outgoing packets.

PR:		188543
MFC after:	1 week
Sponsored by:	Yandex LLC
This commit is contained in:
Andrey V. Elsukov 2014-04-16 14:37:11 +00:00
parent a780104e1f
commit 69155b132d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264540

View file

@ -334,7 +334,7 @@ ipfw_check_frame(void *arg, struct mbuf **m0, struct ifnet *dst, int dir,
m_adj(m, ETHER_HDR_LEN); /* strip ethernet header */
args.m = m; /* the packet we are looking at */
args.oif = dst; /* destination, if any */
args.oif = dir == PFIL_OUT ? dst: NULL; /* destination, if any */
args.next_hop = NULL; /* we do not support forward yet */
args.next_hop6 = NULL; /* we do not support forward yet */
args.eh = &save_eh; /* MAC header for bridged/MAC packets */