Blame keepalived/include/vrrp_iptables.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:        vrrp_iptables.c include file.
Packit c22fc9
 *
Packit Service dfccb1
 * Author:      Alexandre Cassen, <acassen@linux-vs.org>
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 Service dfccb1
 * Copyright (C) 2001-2018 Alexandre Cassen, <acassen@gmail.com>
Packit c22fc9
 */
Packit c22fc9
Packit c22fc9
#ifndef _VRRP_IPTABLES_H
Packit c22fc9
#define _VRRP_IPTABLES_H
Packit c22fc9
Packit c22fc9
#include "config.h"
Packit c22fc9
Packit Service dfccb1
/* global includes */
Packit c22fc9
#include <stdbool.h>
Packit c22fc9
Packit Service dfccb1
/* local includes */
Packit Service dfccb1
#include "vrrp.h"
Packit Service dfccb1
#ifdef _HAVE_LIBIPSET_
Packit Service dfccb1
#include "vrrp_ipset.h"
Packit Service dfccb1
#endif
Packit c22fc9
#include "vrrp_ipaddress.h"
Packit Service dfccb1
#include "vrrp_iptables.h"
Packit c22fc9
Packit c22fc9
Packit Service dfccb1
#define DEFAULT_IPTABLES_CHAIN_IN	"INPUT"
Packit Service dfccb1
#define DEFAULT_IPTABLES_CHAIN_OUT	"OUTPUT"
Packit c22fc9
Packit Service dfccb1
/* prototypes */
Packit Service dfccb1
extern void handle_iptable_rule_to_iplist(list_head_t *, list_head_t *, int, bool force);
Packit Service dfccb1
extern void handle_iptables_accept_mode(vrrp_t *, int, bool);
Packit Service dfccb1
#ifdef _HAVE_VRRP_VMAC_
Packit Service dfccb1
extern void iptables_add_vmac(const vrrp_t *);
Packit Service dfccb1
extern void iptables_remove_vmac(const vrrp_t *);
Packit c22fc9
#endif
Packit Service dfccb1
extern void iptables_fini(void);
Packit c22fc9
Packit c22fc9
#endif