From 7923463712aeebd381606d84547c328d4e2d5a79 Mon Sep 17 00:00:00 2001 From: Mike Frantzen Date: Tue, 11 Jun 2002 02:27:20 +0000 Subject: 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@ --- sbin/pfctl/pfctl_parser.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sbin/pfctl/pfctl_parser.c') 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 -- cgit v1.2.3