-
Notifications
You must be signed in to change notification settings - Fork 2
/
lsa_type.h
49 lines (42 loc) · 1.31 KB
/
lsa_type.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* dvpn, a multipoint vpn implementation
* Copyright (C) 2016 Lennert Buytenhek
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version
* 2.1 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 2.1 for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License version 2.1 along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __LSA_TYPE_H
#define __LSA_TYPE_H
enum lsa_attr_type {
LSA_ATTR_TYPE_ADV_PATH = 1,
LSA_ATTR_TYPE_PEER = 2,
LSA_ATTR_TYPE_NODE_NAME = 3,
LSA_ATTR_TYPE_VERSION = 4,
LSA_ATTR_TYPE_PUBKEY = 5,
LSA_ATTR_TYPE_SIGNATURE = 6,
};
enum lsa_attr_flags {
LSA_ATTR_FLAG_HAS_KEY = 1,
LSA_ATTR_FLAG_DATA_IS_TLV = 2,
LSA_ATTR_FLAG_SIGNED = 4,
};
enum lsa_peer_attr_type {
LSA_PEER_ATTR_TYPE_METRIC = 1,
LSA_PEER_ATTR_TYPE_PEER_FLAGS = 2,
};
enum lsa_peer_flags {
LSA_PEER_FLAGS_CUSTOMER = 1,
LSA_PEER_FLAGS_TRANSIT = 2,
};
#endif