summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pfctl_parser.c
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-10-05 21:17:58 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-10-05 21:17:58 +0000
commit45f925e105ee57b440d2409d797e1061127b971f (patch)
tree5f6381f877e3745f94ad9955930ee142ba632826 /sbin/pfctl/pfctl_parser.c
parent52f7c465b7eed745c782abf1921e5f6ea6d8e9aa (diff)
Allow filtering based on IP header's tos field.
Diffstat (limited to 'sbin/pfctl/pfctl_parser.c')
-rw-r--r--sbin/pfctl/pfctl_parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index 8d934140eb3..e063f58f8d6 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.94 2002/07/20 18:58:44 deraadt Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.95 2002/10/05 21:17:57 dhartmei Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -743,6 +743,8 @@ print_rule(struct pf_rule *r)
printf("code %u ", r->code-1);
}
}
+ if (r->tos)
+ printf("tos 0x%2.2x ", r->tos);
if (r->keep_state == PF_STATE_NORMAL)
printf("keep state ");
else if (r->keep_state == PF_STATE_MODULATE)