tcpdump mailing list archives

Re: Request for new Link-layer header type


From: Guy Harris <guy () alum mit edu>
Date: Thu, 15 Sep 2011 13:46:24 -0700


On Aug 31, 2011, at 4:03 AM, <HPfrommer () hilscher com> <HPfrommer () hilscher com> wrote:

Unfortunately there is no document online, but the structure is quite simple, it's just a 32-bit value containing 
some bit fields:

typedef struct
{
      uint32_t        uiErrorCode   : 8;
      uint32_t        uiGpio        : 1;
      uint32_t        uiTransparent : 1;
      uint32_t        uiHeaVersion  : 4;
      uint32_t        uiPort        : 2;
      uint32_t        uiLength      : 12;
      uint32_t        uiReserved    : 4;
} NETANA_HEADER_BIT_T;

        ...

Everything little-endian representation.

So the error code is in the lowermost 8 bits of the 32-bit value, with the Gpio bit above that, and so on, with the 
uppermost 4 bits being reserved?
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: