123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- /*====================================================================*
- *
- * Copyright (c) 2013 Qualcomm Atheros, Inc.
- *
- * All rights reserved.
- *
- *====================================================================*/
- /*====================================================================*
- *
- * Devices.c - device address synonym tables
- *
- * plc.h
- *
- * some device addresses are so common or significant that we give
- * them names; users can enter the name instead of the address; all
- * toolkit programs reference this table via function synonym();
- *
- * function synonym() uses a binary search to lookup symbols and so
- * they must be entered in alphabetical order or lookup errors will
- * occur;
- *
- * Contributor(s):
- * Charles Maier <cmaier@qca.qualcomm.com>
- *
- *--------------------------------------------------------------------*/
- #ifndef LLDP_SOURCE
- #define LLDP_SOURCE
- /*====================================================================*
- * custom include files;
- *--------------------------------------------------------------------*/
- #include "../tools/types.h"
- #include "../lldp/lldp.h"
- /*====================================================================*
- * variables;
- *--------------------------------------------------------------------*/
- struct _term_ const addresses [LLDP_ADDRESSES] =
- {
- {
- "broadcast",
- BROADCAST
- },
- {
- "LLDP1",
- LLDP_NEAREST_BRIDGE
- },
- {
- "LLDP2",
- LLDP_NEAREST_NON_TMPR_BRIDGE
- },
- {
- "LLDP3",
- LLDP_NEAREST_CUSTOMER_BRIDGE
- }
- };
- byte const broadcast [ETHER_ADDR_LEN] =
- {
- 0xFF,
- 0xFF,
- 0xFF,
- 0xFF,
- 0xFF,
- 0xFF
- };
- byte const nearest_bridge [] =
- {
- 0x01,
- 0x80,
- 0xC2,
- 0x00,
- 0x00,
- 0x0E
- };
- byte const nearest_non_tpmr_bridge [] =
- {
- 0x01,
- 0x80,
- 0xC2,
- 0x00,
- 0x00,
- 0x03
- };
- byte const nearest_customer_bridge [] =
- {
- 0x01,
- 0x80,
- 0xC2,
- 0x00,
- 0x00,
- 0x00
- };
- /*====================================================================*
- *
- *--------------------------------------------------------------------*/
- #endif
|