Erik Nordmark wrote:
> If what you want to denote is the version of the IP header then it might
> be easier for the folks have have to understand, support and evolve the
> code if you use a #define that is about IP versions.
> The code point used for the ip6_nxthdr and ip_protocol fields describe
> something different than a version number.
>
> Any two unique numbers would of course work without any problems; the
> issue is understandability.
I think the current usage of protocol number is quite
understandable and does not cause any confusion. It
is the layer 3 protocol number to be matched in a packet,
just like the layer 4 protocol number.
--
K. Poon.
kacheong.poon at sun.com