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
@ -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 New Issue
Block a user