G'Day Simon, On Tue, Jun 12, 2007 at 04:31:36AM -0700, Simon Leinen wrote: > > 1) ipinfo_t > > > > This provides common details from the IP protocols that we expect to > > have available, > > > > ipinfo_t, > > ip_protocol int /* protocol */ > [...] > > ip_protocol could be just the IP protocol number (4 or 6), or borrow > > existing definitions such as AF_INET/AF_INET6, > > ETHERTYPE_IP/ETHERTYPE_IPV6 or use /etc/protocols - as these may > > better accomodate future protocol additions. Using the IP protocol > > number (4/6) would be the least suprising choice for the end user. > > Your use of "IP protocol number" confuses me - I think you should call > this "IP version number" (and the struct member "ip_version"), as in > http://www.iana.org/assignments/version-numbers. Protocol numbers (at > least to me) refer to upper-layer protocols such as TCP, UDP, see > http://www.iana.org/assignments/protocol-numbers
It is actually ip_ver in the original prototype, as it only matched the IP version number; I changed it to ip_protocol in case we wanted it to match non-IP protocols, although I can't quite put my finger on an actual example. I think you are right, and thanks for the URLs: if it is version, it should be ip_version; if it is protocol, it would be ip_protocol. I wonder if it would be wise to include both ip_protocol and ip_version? cheers, Brendan -- Brendan [CA, USA] _______________________________________________ networking-discuss mailing list [email protected]
