tcpdump mailing list archives
Re: DLT type requested for OpenSolaris IPNET header
From: Guy Harris <guy () alum mit edu>
Date: Tue, 21 Jul 2009 13:35:45 -0700
On Jul 14, 2009, at 5:53 PM, Darren Reed wrote:
I'd like to request a DLT type for the "ipnet device" on OpenSolaris. A description of the packet header can be found here: http://arc.opensolaris.org/caselog/PSARC/2009/232/commitment.materials/bpf-psarc.txt and the relevant structure name is "dl_ipnetinfo".
To quote the document:
struct dl_ipnetinfo { uint8_t dli_version; uint8_t dli_family; uint16_t dli_htype; uint32_t dli_pktlen; uint32_t dli_ifindex; uint32_t dli_grifindex; uint32_t dli_zsrc; uint32_t dli_zdst; }; typedef struct dl_ipnetinfo dl_ipnetinfo_t; dli_version - version number (2) dli_family - protocol family (AF_INET, AF_INET6, etc)
Presumably those are Solaris values for the protocol family; could you enumerate the possible numerical values for the protocol family? AF_ values can differ from platform to platform; everybody probably picked up the same value for AF_INET from BSD, but AF_INET6 came after that point, and it has different values on different platforms.
dli_htype - hook type (in, out, local)
Presumably there are specific values for those (0, 1, and 2, or whatever).
dli_pktlen - length of the packet excluding this header dli_ifindex - interface index number dli_grifindex - group interface index number (for IPMP interfaces)
Are those standard interface index numbers? (Many OSes seem to have a standard notion of interface numbers - does that come from SNMP?)
dli_zsrc - zone identifier for the source of the packet dli_zdst - zone identifier for the destination of the packet
Presumably those identifiers are just numbers. - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- DLT type requested for OpenSolaris IPNET header Darren Reed (Jul 14)
- Re: DLT type requested for OpenSolaris IPNET header Guy Harris (Jul 21)
- Re: DLT type requested for OpenSolaris IPNET header Guy Harris (Jul 21)
- Re: DLT type requested for OpenSolaris IPNET header Darren Reed (Jul 26)
- Re: DLT type requested for OpenSolaris IPNET header Darren Reed (Jul 26)
- Re: DLT type requested for OpenSolaris IPNET header Guy Harris (Jul 27)
- Re: DLT type requested for OpenSolaris IPNET header Darren Reed (Jul 27)
- Re: DLT type requested for OpenSolaris IPNET header Guy Harris (Jul 21)
- Re: DLT type requested for OpenSolaris IPNET header Guy Harris (Jul 21)
- Re: DLT type requested for OpenSolaris IPNET header Guy Harris (Jul 27)
- Re: DLT type requested for OpenSolaris IPNET header Darren Reed (Jul 27)