]>
git.proxmox.com Git - mirror_frr.git/blob - zebra/rt.h
2 * kernel routing table update prototype.
3 * Copyright (C) 1998 Kunihiro Ishiguro
5 * This file is part of GNU Zebra.
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
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.
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
29 #include "zebra/rib.h"
30 #include "zebra/zebra_ns.h"
31 #include "zebra/zebra_mpls.h"
33 extern int kernel_route_rib(struct prefix
*, struct prefix
*,
34 struct route_entry
*, struct route_entry
*);
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);
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
,
54 extern int kernel_del_mac(struct interface
*ifp
, vlanid_t vid
,
55 struct ethaddr
*mac
, struct in_addr vtep_ip
,
58 extern int kernel_add_neigh(struct interface
*ifp
, struct ipaddr
*ip
,
60 extern int kernel_del_neigh(struct interface
*ifp
, struct ipaddr
*ip
);
62 #endif /* _ZEBRA_RT_H */