Hi all, I have a small patch to add a comment to struct inpcb, explaining the role of member "vflag" (IP version flag, v4/v6). It took me a while to figure it out so I think it might be better to explicitly explain it.
If you are wondering when it has been introduced, here are the results of my digging: It has been introduced in the KAME tree kame-freebsd-30 tree, revision 1.12, 18 Nov 1998: http://orange.kame.net/dev/cvsweb.cgi/src/sys/netinet/in_pcb.h?cvsroot=kame-freebsd-30 Then it has been merged in revision 1.30, 22 Nov 1999, in the FreeBSD source tree: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netinet/in_pcb.h Marco
--- in_pcb.h.old Mon Feb 25 09:27:00 2002 +++ in_pcb.h Mon Feb 25 09:30:50 2002 @@ -141,7 +141,7 @@ int inp_flags; /* generic IP/datagram flags */ struct inpcbpolicy *inp_sp; /* for IPSEC */ - u_char inp_vflag; + u_char inp_vflag; /* IP version flag (v4/v6) */ #define INP_IPV4 0x1 #define INP_IPV6 0x2 u_char inp_ip_ttl; /* time to live proto */