]> git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_vnc_types.h
*: reindent
[mirror_frr.git] / bgpd / bgp_vnc_types.h
1 /*
2 * Copyright 2015-2016, LabN Consulting, L.L.C.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; see the file COPYING; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19 #ifndef _QUAGGA_BGP_VNC_TYPES_H
20 #define _QUAGGA_BGP_VNC_TYPES_H
21
22 #if ENABLE_BGP_VNC
23 typedef enum {
24 BGP_VNC_SUBTLV_TYPE_LIFETIME = 1,
25 BGP_VNC_SUBTLV_TYPE_RFPOPTION = 2, /* deprecated */
26 } bgp_vnc_subtlv_types;
27
28 /*
29 * VNC Attribute subtlvs
30 */
31 struct bgp_vnc_subtlv_lifetime {
32 uint32_t lifetime;
33 };
34
35 struct bgp_vnc_subtlv_unaddr {
36 struct prefix un_address; /* IPv4 or IPv6; pfx length ignored */
37 };
38
39 #endif /* ENABLE_BGP_VNC */
40 #endif /* _QUAGGA_BGP_VNC_TYPES_H */