diff options
Diffstat (limited to 'include/linux/ip_fw.h')
-rw-r--r-- | include/linux/ip_fw.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/ip_fw.h b/include/linux/ip_fw.h index a9933659c..6f9bc510a 100644 --- a/include/linux/ip_fw.h +++ b/include/linux/ip_fw.h @@ -126,8 +126,8 @@ struct ip_fw #define IP_FW_IN 1 #define IP_FW_OUT 2 #define IP_FW_ACCT 3 -#define IP_FW_MASQ 4 -#define IP_FW_CHAINS 5 /* total number of ip_fw chains */ +#define IP_FW_CHAINS 4 /* total number of ip_fw chains */ +#define IP_FW_MASQ 5 #define IP_FW_INSERT (IP_FW_BASE_CTL) #define IP_FW_APPEND (IP_FW_BASE_CTL+1) @@ -173,6 +173,11 @@ struct ip_fw #define IP_FW_MASQ_DEL (IP_FW_DELETE | (IP_FW_MASQ << IP_FW_SHIFT)) #define IP_FW_MASQ_FLUSH (IP_FW_FLUSH | (IP_FW_MASQ << IP_FW_SHIFT)) +#define IP_FW_MASQ_INSERT (IP_FW_INSERT | (IP_FW_MASQ << IP_FW_SHIFT)) +#define IP_FW_MASQ_ADD (IP_FW_APPEND | (IP_FW_MASQ << IP_FW_SHIFT)) +#define IP_FW_MASQ_DEL (IP_FW_DELETE | (IP_FW_MASQ << IP_FW_SHIFT)) +#define IP_FW_MASQ_FLUSH (IP_FW_FLUSH | (IP_FW_MASQ << IP_FW_SHIFT)) + struct ip_fwpkt { struct iphdr fwp_iph; /* IP header */ @@ -234,10 +239,14 @@ extern int ip_acct_ctl(int, void *, int); #ifdef CONFIG_IP_MASQUERADE extern int ip_masq_ctl(int, void *, int); #endif +#ifdef CONFIG_IP_MASQUERADE +extern int ip_masq_ctl(int, void *, int); +#endif extern int ip_fw_chk(struct iphdr *, struct device *, __u16 *, struct ip_fw *, int, int); extern void ip_fw_init(void); #endif /* KERNEL */ + #endif /* _IP_FW_H */ |