diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2008-09-28 14:39:56 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2008-09-28 14:39:56 +0000 |
commit | da4515167a1da80236b161feab279d1dbbe6d2b1 (patch) | |
tree | bbb74ae5269b606f4498b3a457ef278f0516d2fd | |
parent | 54c0391a91fb7996fc645d778e218c0b78762676 (diff) |
Teach PF pf_print_state_parts() about IPv4 in IP and IPv6 in IP
encapsulation. Decapitalise the 'v' in ICMPv6 whilst here.
ok henning@
-rw-r--r-- | sys/net/pf.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index e4d67e4630b..f0622fe0db4 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.621 2008/09/17 20:10:37 chl Exp $ */ +/* $OpenBSD: pf.c,v 1.622 2008/09/28 14:39:55 jsing Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1294,6 +1294,12 @@ pf_print_state_parts(struct pf_state *s, dir = s ? s->direction : 0; switch (proto) { + case IPPROTO_IPV4: + printf("IPv4"); + break; + case IPPROTO_IPV6: + printf("IPv6"); + break; case IPPROTO_TCP: printf("TCP"); break; @@ -1304,7 +1310,7 @@ pf_print_state_parts(struct pf_state *s, printf("ICMP"); break; case IPPROTO_ICMPV6: - printf("ICMPV6"); + printf("ICMPv6"); break; default: printf("%u", skw->proto); |