The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CDP: Known values for TLV types
Collaboration diagram for CDP: Known values for TLV types:

Macros

#define CDP_TLV_DEVID   0x0001
 Hostname of the device or hardware serial number in ASCII. More...
 
#define CDP_TLV_ADDRESS   0x0002
 The L3 address of the interface that has sent the update. More...
 
#define CDP_TLV_PORTID   0x0003
 The port from which the CDP update has been sent (ASCII) More...
 
#define CDP_TLV_CAPS   0x0004
 Bit mask describing the functional capabilities of the device. More...
 
#define CDP_TLV_VERS   0x0005
 A character string containing the (IOS) software version (same as in show version). More...
 
#define CDP_TLV_PLATFORM   0x0006
 Hardware platform, such as WS-C5000, WS-C6009, or Cisco RSP. More...
 
#define CDP_TLV_IPPREFIX   0x0007
 4 bytes of IPv4 network prefix + 1 byte of CIDR-style netmask More...
 
#define CDP_TLV_HELLO   0x0008
 Protocol-Hello - encapsulates some other protocol - clustering? More...
 
#define CDP_TLV_VTPDOMAIN   0x0009
 The VTP Domain (VLAN management domain), if configured on the device. More...
 
#define CDP_TLV_NATIVEVLAN   0x000A
 In dot1q, this is the untagged VLAN. More...
 
#define CDP_TLV_DUPLEX   0x000B
 This field contains the duplex setting of the sending port. More...
 
#define CDP_TLV_VLREPLY   0x000E
 VOIP VLAN reply. More...
 
#define CDP_TLV_VLQUERY   0x000F
 VOIP VLAN query. More...
 
#define CDP_TLV_POWER   0x0010
 Power consumption in milliwatts. More...
 
#define CDP_TLV_MTU   0x0011
 Port MTU (integer) More...
 
#define CDP_TLV_TRUST_BITMAP   0x0012
 Trust bitmap (bit map) More...
 
#define CDP_TLV_UNTRUSTED_COS   0x0013
 Untrusted Port CoS. More...
 
#define CDP_TLV_SYSTEM_NAME   0x0014
 System name (string) More...
 
#define CDP_TLV_SYSTEM_OID   0x0015
 System Object ID. More...
 
#define CDP_TLV_MANAGEMENT_ADDR   0x0016
 Management address. More...
 
#define CDP_TLV_LOCATION   0x0017
 System location. More...
 
#define CDP_TLV_EXT_PORTID   0x0017
 External port id. More...
 
#define CDP_TLV_POWER_REQUESTED   0x0018
 Requested POE power. More...
 
#define CDP_TLV_POWER_AVAILABLE   0x0019
 Available POE Power. More...
 
#define CDP_TLV_UNIDIR   0x001B
 Port Unidirectional. More...
 

Detailed Description

See Also
get_cdptlv_type

Macro Definition Documentation

#define CDP_TLV_ADDRESS   0x0002

The L3 address of the interface that has sent the update.

Format: 4 byte count followed by 'count' addresses Each address is of this format: one bytes protocol length 'protocol length' bytes of protocol type two bytes address length 'address length' bytes of address (protocol length = 1, protocol type = 0xCC => ipv4) (protocol length = 8 and address length = 16 => ipv6 (protocol type == 0xAAAA0300000086DD ??)

Definition at line 35 of file cdp.h.

#define CDP_TLV_CAPS   0x0004

Bit mask describing the functional capabilities of the device.

Definition at line 48 of file cdp.h.

#define CDP_TLV_DEVID   0x0001

Hostname of the device or hardware serial number in ASCII.

**This is one of the two CDP values our client code pays attention to.

Definition at line 33 of file cdp.h.

Referenced by get_cdp_chassis_id().

#define CDP_TLV_DUPLEX   0x000B

This field contains the duplex setting of the sending port.

Definition at line 56 of file cdp.h.

#define CDP_TLV_EXT_PORTID   0x0017

External port id.

Definition at line 67 of file cdp.h.

#define CDP_TLV_HELLO   0x0008

Protocol-Hello - encapsulates some other protocol - clustering?

Definition at line 52 of file cdp.h.

#define CDP_TLV_IPPREFIX   0x0007

4 bytes of IPv4 network prefix + 1 byte of CIDR-style netmask

Definition at line 51 of file cdp.h.

#define CDP_TLV_LOCATION   0x0017

System location.

Definition at line 66 of file cdp.h.

#define CDP_TLV_MANAGEMENT_ADDR   0x0016

Management address.

Definition at line 65 of file cdp.h.

#define CDP_TLV_MTU   0x0011

Port MTU (integer)

Definition at line 60 of file cdp.h.

#define CDP_TLV_NATIVEVLAN   0x000A

In dot1q, this is the untagged VLAN.

Definition at line 55 of file cdp.h.

#define CDP_TLV_PLATFORM   0x0006

Hardware platform, such as WS-C5000, WS-C6009, or Cisco RSP.

Definition at line 50 of file cdp.h.

#define CDP_TLV_PORTID   0x0003

The port from which the CDP update has been sent (ASCII)

**This is one of the two CDP values our client code pays attention to.

Definition at line 46 of file cdp.h.

Referenced by get_cdp_port_id().

#define CDP_TLV_POWER   0x0010

Power consumption in milliwatts.

Definition at line 59 of file cdp.h.

#define CDP_TLV_POWER_AVAILABLE   0x0019

Available POE Power.

Definition at line 69 of file cdp.h.

#define CDP_TLV_POWER_REQUESTED   0x0018

Requested POE power.

Definition at line 68 of file cdp.h.

#define CDP_TLV_SYSTEM_NAME   0x0014

System name (string)

Definition at line 63 of file cdp.h.

#define CDP_TLV_SYSTEM_OID   0x0015

System Object ID.

Definition at line 64 of file cdp.h.

#define CDP_TLV_TRUST_BITMAP   0x0012

Trust bitmap (bit map)

Definition at line 61 of file cdp.h.

#define CDP_TLV_UNIDIR   0x001B

Port Unidirectional.

Definition at line 70 of file cdp.h.

#define CDP_TLV_UNTRUSTED_COS   0x0013

Untrusted Port CoS.

Definition at line 62 of file cdp.h.

#define CDP_TLV_VERS   0x0005

A character string containing the (IOS) software version (same as in show version).

Definition at line 49 of file cdp.h.

#define CDP_TLV_VLQUERY   0x000F

VOIP VLAN query.

Definition at line 58 of file cdp.h.

#define CDP_TLV_VLREPLY   0x000E

VOIP VLAN reply.

Definition at line 57 of file cdp.h.

#define CDP_TLV_VTPDOMAIN   0x0009

The VTP Domain (VLAN management domain), if configured on the device.

http://en.wikipedia.org/wiki/VLAN_Trunking_Protocol

Definition at line 53 of file cdp.h.