summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 18e48a3..8d12628 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -463,8 +463,8 @@ ether_ipfw_chk(struct mbuf **m0, struct ifnet *dst,
int i;
struct ip_fw_args args;
- if (*rule != NULL) /* dummynet packet, already partially processed */
- return 1; /* HACK! I should obey the fw_one_pass */
+ if (*rule != NULL && fw_one_pass)
+ return 1; /* dummynet packet, already partially processed */
/*
* I need some amt of data to be contiguous, and in case others need
OpenPOWER on IntegriCloud