patch-2.4.4 linux/include/linux/netfilter_ipv4/ip_nat.h
Next file: linux/include/linux/netfilter_ipv4/ip_nat_ftp.h
Previous file: linux/include/linux/netfilter_ipv4/ip_conntrack_protocol.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Wed Apr 25 15:00:28 2001
- Orig file:
v2.4.3/linux/include/linux/netfilter_ipv4/ip_nat.h
- Orig date:
Mon Dec 11 13:31:23 2000
diff -u --recursive --new-file v2.4.3/linux/include/linux/netfilter_ipv4/ip_nat.h linux/include/linux/netfilter_ipv4/ip_nat.h
@@ -24,6 +24,15 @@
/* Used internally by get_unique_tuple(). */
#define IP_NAT_RANGE_FULL 4
+/* NAT sequence number modifications */
+struct ip_nat_seq {
+ /* position of the last TCP sequence number
+ * modification (if any) */
+ u_int32_t correction_pos;
+ /* sequence number offset before and after last modification */
+ int32_t offset_before, offset_after;
+};
+
/* Single range specification. */
struct ip_nat_range
{
@@ -98,6 +107,8 @@
/* Helper (NULL if none). */
struct ip_nat_helper *helper;
+
+ struct ip_nat_seq seq[IP_CT_DIR_MAX];
};
/* Set up the info structure to map into this range. */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)