Debian Codegraph @

plugin/firewall/eurephiafw.h

raw
1 /* eurephiafw.h -- Firewall interface loader for the eurephia module
2 *
3 * GPLv2 only - Copyright (C) 2008 - 2012
4 * David Sommerseth <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; version 2
9 * of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 *
20 */
21
22 /**
23 * @file eurephiafw.h
24 * @author David Sommerseth <[email protected]>
25 * @date 2008-08-10
26 *
27 * @brief Takes care of loading the configured firewall driver and provides a
28 * generic API for updating the firewall rules.
29 *
30 */
31
32 #ifndef EUREPHIAFW_H_
33 #define EUREPHIAFW_H_
34
35 int eFW_load(eurephiaCTX *ctx, const char *intf);
36 int eFW_unload(eurephiaCTX *ctx);
37
38 void eFW_StartFirewall(eurephiaCTX *ctx, const int daemon, const int logredir);
39 void eFW_StopFirewall(eurephiaCTX *ctx);
40 int eFW_UpdateFirewall(eurephiaCTX *ctx, eFWupdateRequest *request);
41
42 #endif /* !EUREPHIAFW_H_ */