]> git.ipfire.org Git - thirdparty/lldpd.git/blob - src/sonmp.h
68502dc776025008788f131ecca8e7e889c5cad4
[thirdparty/lldpd.git] / src / sonmp.h
1 /*
2 * Copyright (c) 2008 Vincent Bernat <bernat@luffy.cx>
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17 #ifndef _SONMP_H
18 #define _SONMP_H
19
20 #define SONMP_MULTICAST_ADDR { \
21 0x01, 0x00, 0x81, 0x00, 0x01, 0x00 \
22 }
23 #define LLC_ORG_NORTEL { 0x00, 0x00, 0x81 }
24 #define LLC_PID_SONMP_HELLO 0x01a2
25 #define LLC_PID_SONMP_FLATNET 0x01a1
26 #define SONMP_SIZE (2*ETH_ALEN + sizeof(u_int16_t) + 8)
27
28 struct sonmp_chassis {
29 int type;
30 char *description;
31 };
32
33 #define SONMP_TOPOLOGY_CHANGED 1
34 #define SONMP_TOPOLOGY_UNCHANGED 2
35 #define SONMP_TOPOLOGY_NEW 3
36
37 #endif /* _SONMP_H */