mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-16 21:34:10 +00:00
Set oif only for outgoing packets.
PR: 188543 MFC after: 1 week Sponsored by: Yandex LLC
This commit is contained in:
parent
a780104e1f
commit
69155b132d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264540
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue