Blame keepalived/include/namespaces.h

Packit c22fc9
/*
Packit c22fc9
 * Soft:        Keepalived is a failover program for the LVS project
Packit c22fc9
 *              <www.linuxvirtualserver.org>. It monitor & manipulate
Packit c22fc9
 *              a loadbalanced server pool using multi-layer checks.
Packit c22fc9
 *
Packit c22fc9
 * Part:        Linux namespace handling.
Packit c22fc9
 *
Packit c22fc9
 * Author:      Quentin Armitage <quentin@armitage.org.uk>
Packit c22fc9
 *
Packit c22fc9
 *              This program is distributed in the hope that it will be useful,
Packit c22fc9
 *              but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit c22fc9
 *              MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Packit c22fc9
 *              See the GNU General Public License for more details.
Packit c22fc9
 *
Packit c22fc9
 *              This program is free software; you can redistribute it and/or
Packit c22fc9
 *              modify it under the terms of the GNU General Public License
Packit c22fc9
 *              as published by the Free Software Foundation; either version
Packit c22fc9
 *              2 of the License, or (at your option) any later version.
Packit c22fc9
 *
Packit c22fc9
 * Copyright (C) 2016-2016 Alexandre Cassen, <acassen@gmail.com>
Packit c22fc9
 */
Packit c22fc9
Packit c22fc9
#ifndef _NAMESPACE_H_
Packit c22fc9
#define _NAMESPACE_H_
Packit c22fc9
Packit c22fc9
#include <stdbool.h>
Packit c22fc9
Packit Service dfccb1
#ifdef LIBIPVS_USE_NL
Packit Service dfccb1
#include <netlink/socket.h>
Packit Service dfccb1
#ifdef _LIBNL_DYNAMIC_
Packit Service dfccb1
#include "libnl_link.h"
Packit Service dfccb1
#endif
Packit Service dfccb1
#endif
Packit Service dfccb1
Packit c22fc9
extern void free_dirname(void);
Packit c22fc9
extern bool set_namespaces(const char*);
Packit c22fc9
extern void clear_namespaces(void);
Packit Service dfccb1
extern int socket_netns_name(const char *, int, int, int);
Packit Service dfccb1
Packit Service dfccb1
/* ipvs namespaces */
Packit Service dfccb1
#ifdef LIBIPVS_USE_NL
Packit Service dfccb1
extern int nl_ipvs_connect(const char *, struct nl_sock *);
Packit Service dfccb1
#endif
Packit c22fc9
Packit c22fc9
#endif