From owner-freebsd-net Mon Feb 25 0:44:59 2002 Delivered-To: freebsd-net@freebsd.org Received: from www.example.org (dhcp-nic-val-26-83.cisco.com [64.103.26.83]) by hub.freebsd.org (Postfix) with SMTP id B624837B405 for ; Mon, 25 Feb 2002 00:44:49 -0800 (PST) Received: (qmail 3747 invoked by uid 1000); 25 Feb 2002 08:44:20 -0000 Date: Mon, 25 Feb 2002 09:44:20 +0100 From: Marco Molteni To: freebsd-net@freebsd.org Subject: [PATCH] comment for struct inpcb (netinet/in_pcb.h) Message-ID: <20020225094420.A3312@cobweb.example.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="in_pcb.h.patch" --- 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 */ --envbJBWh7q8WU6mo-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message