]> git.proxmox.com Git - mirror_frr.git/blob - lib/vrf_int.h
Merge pull request #3502 from donaldsharp/socket_to_me_baby
[mirror_frr.git] / lib / vrf_int.h
1 /*
2 * VRF Internal Header
3 * Copyright (C) 2017 Cumulus Networks, Inc.
4 * Donald Sharp
5 *
6 * This file is part of FRR.
7 *
8 * FRR is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2, or (at your option) any
11 * later version.
12 *
13 * FRR is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with FRR; see the file COPYING. If not, write to the Free
20 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * 02111-1307, USA.
22 */
23 #ifndef __LIB_VRF_PRIVATE_H__
24 #define __LIB_VRF_PRIVATE_H__
25
26 #include "vrf.h"
27
28 /*
29 * These functions should only be called by:
30 * zebra/if_netlink.c -> The interface from OS into Zebra
31 * lib/zclient.c -> The interface from Zebra to each daemon
32 *
33 * Why you ask? Well because these are the turn on/off
34 * functions and the only place we can really turn a
35 * vrf on properly is in the call up from the os -> zebra
36 * and the pass through of this informatoin from zebra -> protocols
37 */
38
39 /*
40 * vrf_enable
41 *
42 * Given a newly running vrf enable it to be used
43 * by interested routing protocols
44 */
45 extern int vrf_enable(struct vrf *);
46
47 /*
48 * vrf_delete
49 *
50 * Given a vrf that is being deleted, delete it
51 * from interested parties
52 */
53 extern void vrf_delete(struct vrf *);
54
55 #endif