Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

kernel/2869: pf_prints state should print "ICMPV6" instead of "58"

From: <mcbride(at)countersiege.com>
Date: Thu Aug 08 2002 - 22:16:25 EDT


>Number: 2869
net
>Environment:

	System      : OpenBSD 3.1
	Architecture: OpenBSD.i386
	Machine     : i386

>Description:
pf's error/debug messages print the numeric protocol number for ICMPV6 in pf_print_state. While it may not be reasonable to have code which prints the name of ALL protocols, I would argue that it should be printed for any protocol that pf handles as a special case.
>How-To-Repeat:
pfctl -x misc

>Fix:

Index: pf.c

RCS file: /cvs/src/sys/net/pf.c,v
retrieving revision 1.240
diff -u -r1.240 pf.c
--- pf.c        24 Jul 2002 17:56:03 -0000      1.240
+++ pf.c        9 Aug 2002 02:08:10 -0000
@@ -834,6 +834,9 @@
        case IPPROTO_ICMP:
                printf("ICMP ");
                break;
+       case IPPROTO_ICMPV6:
+               printf("ICMPV6 ");
+               break;
        default:
                printf("%u ", s->proto);
                break;

>Release-Note:
Received on Thu Nov 7 15:32:56 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:29:36 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library