|
The Assimilation Monitoring Project
|
The initial items are a checksum, protocol version, and the time to live of the packet. More...
|
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... | |
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
| #define CDP_CKSUMSZ 2 |
| #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 |
| #define CDP_VERSSZ 1 |
| #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().