61 char *dip,
char *dif);
74 const char *sif,
const char *dip,
const char *dif);
File containing the definition of the allocs functionalities.
struct iptables_context * iptables_init(const char *path, UT_array *ifinfo_array, bool exec_iptables)
Initialises the iptables rules list.
Definition: iptables.c:246
int iptables_add_bridge(struct iptables_context *ctx, char *sip, char *sif, char *dip, char *dif)
Add a bridge rule to the list of rules.
Definition: iptables.c:424
int iptables_delete_bridge(struct iptables_context *ctx, const char *sip, const char *sif, const char *dip, const char *dif)
Delete a bridge rule.
Definition: iptables.c:348
int iptables_delete_nat(struct iptables_context *ctx, char *sip, char *sif, char *nif)
Delete a NAT rule.
Definition: iptables.c:448
int iptables_add_nat(struct iptables_context *ctx, char *sip, char *sif, char *nif)
Add a NAT rule.
Definition: iptables.c:488
void iptables_free(struct iptables_context *ctx)
Free the iptables context.
Definition: iptables.c:239
File containing the definition of the os functionalities.
#define MAX_OS_PATH_LEN
Definition: os.h:29
iptables context structure definition
Definition: iptables.h:25
char iptables_path[MAX_OS_PATH_LEN]
Definition: iptables.h:26
UT_array * rule_list
Definition: iptables.h:27
bool exec_iptables
Definition: iptables.h:28