Logo Search packages:      
Sourcecode: ladvd version File versions  Download package

ndp.h

/*
 * $Id$
 *
 * Copyright (c) 2008, 2009, 2010
 *      Sten Spans <sten@blinkenlights.nl>
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#ifndef _ndp_h
#define _ndp_h

#define NDP_MULTICAST_ADDR { 0x01, 0x00, 0x81, 0x00, 0x01, 0x00 }
#define LLC_ORG_NORTEL { 0x00, 0x00, 0x81 }
#define LLC_PID_NDP_HELLO 0x01a2

00027 struct ndp_header {
    uint32_t addr;
    uint8_t seg[3];
    uint8_t chassis;
    uint8_t backplane;
    uint8_t state;
    uint8_t links;
} __attribute__ ((__packed__));

#define NDP_CHASSIS_OTHER     1

#define NDP_BACKPLANE_OTHER         1
#define NDP_BACKPLANE_ETH           2
#define NDP_BACKPLANE_ETH_TR        3
#define NDP_BACKPLANE_ETH_FDDI            4
#define NDP_BACKPLANE_ETH_TR_FDDI   5
#define NDP_BACKPLANE_ETH_TR_RP           6
#define NDP_BACKPLANE_ETH_TR_FDDI_RP      7
#define NDP_BACKPLANE_TR            8
#define NDP_BACKPLANE_ETH_TR_FE           9
#define NDP_BACKPLANE_ETH_FE        10
#define NDP_BACKPLANE_ETH_TR_FE_RP  11
#define NDP_BACKPLANE_ETH_FE_GE           12

#define NDP_TOPOLOGY_CHANGED  1
#define NDP_TOPOLOGY_UNCHANGED  2
#define NDP_TOPOLOGY_NEW      3

#endif /* _ndp_h */

Generated by  Doxygen 1.6.0   Back to index