1 /* -*- mode: c; c-file-style: "openbsd" -*- */ 2 /* 3 * Copyright (c) 2012 Vincent Bernat <bernat@luffy.cx> 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 */ 17 18 #ifndef _LLDP_TLV_H 19 #define _LLDP_TLV_H 20 21 #define LLDP_ADDR_NEAREST_BRIDGE {0x01, 0x80, 0xc2, 0x00, 0x00, 0x0e} 22 #define LLDP_ADDR_NEAREST_NONTPMR_BRIDGE {0x01, 0x80, 0xc2, 0x00, 0x00, 0x03} 23 #define LLDP_ADDR_NEAREST_CUSTOMER_BRIDGE {0x01, 0x80, 0xc2, 0x00, 0x00, 0x00} 24 25 #define LLDP_TLV_END 0 26 #define LLDP_TLV_CHASSIS_ID 1 27 #define LLDP_TLV_PORT_ID 2 28 #define LLDP_TLV_TTL 3 29 #define LLDP_TLV_PORT_DESCR 4 30 #define LLDP_TLV_SYSTEM_NAME 5 31 #define LLDP_TLV_SYSTEM_DESCR 6 32 #define LLDP_TLV_SYSTEM_CAP 7 33 #define LLDP_TLV_MGMT_ADDR 8 34 35 #define LLDP_TLV_ORG_DOT1 {0x00, 0x80, 0xc2} 36 #define LLDP_TLV_ORG_DOT3 {0x00, 0x12, 0x0f} 37 #define LLDP_TLV_ORG_MED {0x00, 0x12, 0xbb} 38 #define LLDP_TLV_ORG_DCBX {0x00, 0x1b, 0x21} 39 40 #define LLDP_TLV_DOT1_PVID 1 41 #define LLDP_TLV_DOT1_PPVID 2 42 #define LLDP_TLV_DOT1_VLANNAME 3 43 #define LLDP_TLV_DOT1_PI 4 44 45 #define LLDP_TLV_DOT3_MAC 1 46 #define LLDP_TLV_DOT3_POWER 2 47 #define LLDP_TLV_DOT3_LA 3 48 #define LLDP_TLV_DOT3_MFS 4 49 50 #define LLDP_TLV_MED_CAP 1 51 #define LLDP_TLV_MED_POLICY 2 52 #define LLDP_TLV_MED_LOCATION 3 53 #define LLDP_TLV_MED_MDI 4 54 #define LLDP_TLV_MED_IV_HW 5 55 #define LLDP_TLV_MED_IV_FW 6 56 #define LLDP_TLV_MED_IV_SW 7 57 #define LLDP_TLV_MED_IV_SN 8 58 #define LLDP_TLV_MED_IV_MANUF 9 59 #define LLDP_TLV_MED_IV_MODEL 10 60 #define LLDP_TLV_MED_IV_ASSET 11 61 62 #endif 63