> 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 I find your proposed semantics of the field fine though. -- Simon. This message posted from opensolaris.org _______________________________________________ networking-discuss mailing list [email protected]
