diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-07-15 17:52:45 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-07-15 17:52:45 +0000 |
commit | e6d8c4507d41dffee43f4e393c41933073e0d804 (patch) | |
tree | 519c6c1b7155bb97d81655c42b28277cc3b031d3 /sys/net | |
parent | 95376fe1234f5ebd23b302ca838e796ef4c57b84 (diff) |
remove duplicated interface check in test_icmp
ok dhartmei@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 07ab4ffcaab..32f7a20dc33 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.237 2002/07/12 15:52:26 art Exp $ */ +/* $OpenBSD: pf.c,v 1.238 2002/07/15 17:52:44 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -2298,8 +2298,6 @@ pf_test_icmp(struct pf_rule **rm, int direction, struct ifnet *ifp, !PF_AZERO(&r->dst.mask, af) && !PF_MATCHA(r->dst.not, &r->dst.addr.addr, &r->dst.mask, daddr, af)) r = r->skip[PF_SKIP_DST_ADDR]; - else if (r->ifp != NULL && r->ifp != ifp) - r = TAILQ_NEXT(r, entries); else if (r->type && r->type != icmptype + 1) r = TAILQ_NEXT(r, entries); else if (r->code && r->code != icmpcode + 1) |