]>
git.proxmox.com Git - mirror_frr.git/blob - bgpd/rfapi/rfapi_encap_tlv.h
2 * Copyright 2015-2016, LabN Consulting, L.L.C.
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.
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.
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
19 #ifndef _QUAGGA_BGP_RFAPI_ENCAP_TLV_H
20 #define _QUAGGA_BGP_RFAPI_ENCAP_TLV_H
22 #define RFAPI_BGP_ENCAP_TYPE_DEFAULT BGP_ENCAP_TYPE_IP_IN_IP
24 extern bgp_encap_types
25 rfapi_tunneltype_option_to_tlv(struct bgp
*bgp
, struct rfapi_ip_addr
*ea
,
26 struct rfapi_tunneltype_option
*tto
,
27 struct attr
*attr
, int always_add
);
29 extern struct rfapi_un_option
*rfapi_encap_tlv_to_un_option(struct attr
*attr
);
31 extern void rfapi_print_tunneltype_option(void *stream
, int column_offset
,
32 struct rfapi_tunneltype_option
*tto
);
35 #endif /* _QUAGGA_BGP_RFAPI_ENCAP_TLV_H */