]> git.proxmox.com Git - mirror_ovs.git/blob - lib/lldp/aa-structs.h
list: Remove lib/list.h completely.
[mirror_ovs.git] / lib / lldp / aa-structs.h
1 /* aa-structs.h */
2 /* contains tlv structures for various auto attach functionality */
3
4 /* Copyright (c) 2015 Nicira, Inc.
5 * Copyright (c) 2014 Avaya, Inc
6 *
7 * Permission to use, copy, modify, and/or distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 */
19
20 #ifndef AA_STRUCTS_H
21 #define AA_STRUCTS_H
22
23 #include <stdint.h>
24 #include "openvswitch/list.h"
25
26 struct lldp_aa_element_system_id {
27 struct eth_addr system_mac;
28 uint16_t conn_type;
29 uint16_t rsvd;
30 uint8_t rsvd2[2];
31 };
32
33 struct lldpd_aa_element_tlv {
34 uint16_t type;
35 uint16_t vlan_tagging;
36 uint16_t auto_prov_mode;
37 uint16_t mgmt_vlan;
38 struct lldp_aa_element_system_id system_id;
39 };
40
41 struct lldpd_aa_isid_vlan_map_data {
42 uint16_t status;
43 uint16_t vlan;
44 uint32_t isid;
45 };
46
47 struct lldpd_aa_isid_vlan_maps_tlv {
48 struct ovs_list m_entries;
49 struct lldpd_aa_isid_vlan_map_data isid_vlan_data;
50 };
51
52 #endif