The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CDP: Offsets of initial non-TLV items in a CDP packet.

The initial items are a checksum, protocol version, and the time to live of the packet. More...

Collaboration diagram for CDP: Offsets of initial non-TLV items in a CDP packet.:

Macros

#define CDP_OVERHEAD   22
 Number of bytes before the CDP packet itself starts. More...
 
#define CDP_VERSSZ   1
 Size of the CDP version object in a CDP packet. More...
 
#define CDP_TTLSZ   1
 Size of the Time to Live (TTL) object in a CDP packet. More...
 
#define CDP_CKSUMSZ   2
 Size of the checksum object in a CDP packet. More...
 
#define CDPINITHDRSZ   (CDP_OVERHEAD+CDP_VERSSZ+CDP_TTLSZ+CDP_CKSUMSZ) /* 26 */
 Start of the TLV (type, length, value) portion of a CDP packet. More...
 

Detailed Description

The initial items are a checksum, protocol version, and the time to live of the packet.

These all come before the TLV portion of the CDP packet.

CDP packets are encoded with SNAP (Subnet Access Protocol) headers

See Also
get_cdptlv_first

Macro Definition Documentation

#define CDP_CKSUMSZ   2

Size of the checksum object in a CDP packet.

Definition at line 66 of file cdp_min.c.

#define CDP_OVERHEAD   22

Number of bytes before the CDP packet itself starts.

Definition at line 60 of file cdp_min.c.

Referenced by get_cdp_cksum(), get_cdp_ttl(), and get_cdp_vers().

#define CDP_TTLSZ   1

Size of the Time to Live (TTL) object in a CDP packet.

Definition at line 64 of file cdp_min.c.

#define CDP_VERSSZ   1

Size of the CDP version object in a CDP packet.

Definition at line 62 of file cdp_min.c.

#define CDPINITHDRSZ   (CDP_OVERHEAD+CDP_VERSSZ+CDP_TTLSZ+CDP_CKSUMSZ) /* 26 */

Start of the TLV (type, length, value) portion of a CDP packet.

Definition at line 68 of file cdp_min.c.

Referenced by get_cdptlv_first().