]>
git.proxmox.com Git - mirror_frr.git/blob - zebra/zebra_ns.h
3 * Copyright (C) 2016 Cumulus Networks, Inc.
6 * This file is part of Quagga.
8 * Quagga 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
13 * Quagga 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.
18 * You should have received a copy of the GNU General Public License
19 * along with Quagga; see the file COPYING. If not, write to the Free
20 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23 #if !defined(__ZEBRA_NS_H__)
24 #define __ZEBRA_NS_H__
27 /* Socket interface to kernel */
32 struct sockaddr_nl snl
;
38 typedef u_int16_t ns_id_t
;
43 char name
[VRF_NAMSIZ
];
49 struct nlsock netlink
; /* kernel messages */
50 struct nlsock netlink_cmd
; /* command channel */
51 struct thread
*t_netlink
;
54 struct route_table
*if_table
;
56 #if defined (HAVE_RTADV)
58 #endif /* HAVE_RTADV */
62 #define NS_UNKNOWN UINT16_MAX
64 struct zebra_ns
*zebra_ns_lookup (ns_id_t ns_id
);
66 int zebra_ns_init (void);
67 int zebra_ns_enable (ns_id_t ns_id
, void **info
);
68 int zebra_ns_disable (ns_id_t ns_id
, void **info
);