summaryrefslogtreecommitdiffstats
path: root/plugin/firewall/eurephiafw.h
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-11-09 20:07:36 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-11-09 20:07:36 +0100
commit8a3c00f570f512a898bc6dc33bf64c95ee1283b4 (patch)
tree32724205353edffb3038042db59a7b5caa71d589 /plugin/firewall/eurephiafw.h
parentcf6bc9dddc1484dd10fc068eb4af18ae57043cc4 (diff)
downloadeurephia-8a3c00f570f512a898bc6dc33bf64c95ee1283b4.tar.gz
eurephia-8a3c00f570f512a898bc6dc33bf64c95ee1283b4.tar.xz
eurephia-8a3c00f570f512a898bc6dc33bf64c95ee1283b4.zip
Changed main firewall implementation to use eFWupdateRequest struct
All functions calling eFW_UpdateFirewall() and the iptables driver needs to be updated as well.
Diffstat (limited to 'plugin/firewall/eurephiafw.h')
-rw-r--r--plugin/firewall/eurephiafw.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugin/firewall/eurephiafw.h b/plugin/firewall/eurephiafw.h
index 860411b..d0b762e 100644
--- a/plugin/firewall/eurephiafw.h
+++ b/plugin/firewall/eurephiafw.h
@@ -32,15 +32,11 @@
#ifndef EUREPHIAFW_H_
#define EUREPHIAFW_H_
-#define FWRULE_ADD 0x101 /**< Add a new firewall rule */
-#define FWRULE_DELETE 0x102 /**< Delete an existing firewall rule */
-#define FWRULE_BLACKLIST 0x103 /**< Blacklist an IP address in the firewall */
-
int eFW_load(eurephiaCTX *ctx, const char *intf);
int eFW_unload(eurephiaCTX *ctx);
void eFW_StartFirewall(eurephiaCTX *ctx);
void eFW_StopFirewall(eurephiaCTX *ctx);
-int eFW_UpdateFirewall(eurephiaCTX *ctx, int mode, const char *macaddr, const char *fwdest, const char *fwprofile);
+int eFW_UpdateFirewall(eurephiaCTX *ctx, eFWupdateRequest *request);
#endif /* !EUREPHIAFW_H_ */