diff options
author | Mike Frantzen <frantzen@cvs.openbsd.org> | 2002-06-11 02:27:20 +0000 |
---|---|---|
committer | Mike Frantzen <frantzen@cvs.openbsd.org> | 2002-06-11 02:27:20 +0000 |
commit | 7923463712aeebd381606d84547c328d4e2d5a79 (patch) | |
tree | 65445cf86d56fdad12d31930d0c0ae4599f500c6 /sbin/pfctl/pfctl_parser.c | |
parent | 4aa39a04544f9e194e45e88c95e17915dd075304 (diff) |
SCRUB(fragcache) to do gap tracking and overlap pruning of IPv4 fragments
without the memory overhead of the conventional defrag in SCRUB
ok dhartmei@, idea by deraadt@
Diffstat (limited to 'sbin/pfctl/pfctl_parser.c')
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index dae3e6f8f5e..0697ccd68ec 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_parser.c,v 1.87 2002/06/11 02:12:37 dhartmei Exp $ */ +/* $OpenBSD: pfctl_parser.c,v 1.88 2002/06/11 02:27:19 frantzen Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -648,8 +648,12 @@ print_rule(struct pf_rule *r) else printf(" "); } - } else - printf("scrub "); + } else { + if ((r->rule_flag & PFRULE_FRAGCACHE) == 0) + printf("scrub "); + else + printf("scrub(fragcache) "); + } if (r->direction == 0) printf("in "); else |