]> git.proxmox.com Git - mirror_frr.git/blob - zebra/rt.h
Merge branch 'stable/3.0' into tmp-3.0-master-merge
[mirror_frr.git] / zebra / rt.h
1 /*
2 * kernel routing table update prototype.
3 * Copyright (C) 1998 Kunihiro Ishiguro
4 *
5 * This file is part of GNU Zebra.
6 *
7 * GNU Zebra is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2, or (at your option) any
10 * later version.
11 *
12 * GNU Zebra is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; see the file COPYING; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22 #ifndef _ZEBRA_RT_H
23 #define _ZEBRA_RT_H
24
25 #include "prefix.h"
26 #include "if.h"
27 #include "vlan.h"
28 #include "vxlan.h"
29 #include "zebra/rib.h"
30 #include "zebra/zebra_ns.h"
31 #include "zebra/zebra_mpls.h"
32
33 extern int kernel_route_rib(struct prefix *, struct prefix *,
34 struct route_entry *, struct route_entry *);
35
36 extern int kernel_address_add_ipv4(struct interface *, struct connected *);
37 extern int kernel_address_delete_ipv4(struct interface *, struct connected *);
38 extern int kernel_neigh_update(int, int, uint32_t, char *, int);
39 extern int kernel_interface_set_master(struct interface *master,
40 struct interface *slave);
41 extern int kernel_add_lsp(zebra_lsp_t *);
42 extern int kernel_upd_lsp(zebra_lsp_t *);
43 extern int kernel_del_lsp(zebra_lsp_t *);
44 extern int mpls_kernel_init(void);
45
46 extern int kernel_get_ipmr_sg_stats(struct zebra_vrf *zvrf, void *mroute);
47 extern int kernel_add_vtep(vni_t vni, struct interface *ifp,
48 struct in_addr *vtep_ip);
49 extern int kernel_del_vtep(vni_t vni, struct interface *ifp,
50 struct in_addr *vtep_ip);
51 extern int kernel_add_mac(struct interface *ifp, vlanid_t vid,
52 struct ethaddr *mac, struct in_addr vtep_ip,
53 u_char sticky);
54 extern int kernel_del_mac(struct interface *ifp, vlanid_t vid,
55 struct ethaddr *mac, struct in_addr vtep_ip,
56 int local);
57
58 extern int kernel_add_neigh(struct interface *ifp, struct ipaddr *ip,
59 struct ethaddr *mac);
60 extern int kernel_del_neigh(struct interface *ifp, struct ipaddr *ip);
61
62 #endif /* _ZEBRA_RT_H */