From 2ecea2cd11ea64e0e56be1ab413adbbd87b58bb3 Mon Sep 17 00:00:00 2001 From: sven-ola Date: Wed, 13 Oct 2010 14:10:57 +0000 Subject: experimental offset git-svn-id: https://map66.svn.sourceforge.net/svnroot/map66@23 3484d885-4da6-438d-b19d-107d078dd756 --- ip6t_MAP66.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ip6t_MAP66.h') diff --git a/ip6t_MAP66.h b/ip6t_MAP66.h index 291956d..c3e124f 100644 --- a/ip6t_MAP66.h +++ b/ip6t_MAP66.h @@ -12,7 +12,8 @@ #define IP6T_MAP66_OPT_DST_TO 0x01 #define IP6T_MAP66_OPT_SRC_TO 0x02 -#define IP6T_MAP66_OPT_NOCHECK 0x04 +#define IP6T_MAP66_OPT_OFFSET 0x04 +#define IP6T_MAP66_OPT_NOCHECK 0x08 struct ip6t_MAP66_info { struct in6_addr pfix_dst_to; /* The prefix to map destination addrs to */ @@ -21,6 +22,7 @@ struct ip6t_MAP66_info { struct in6_addr pfix_src_to; /* The prefix to map source addrs from */ u_int16_t pfix_src_len; /* Source addrs prefix length DIV 16 */ u_int16_t pfix_src_csum; /* Pre-calculated csum for source addrs */ + u_int16_t mapoffset; /* Offset in addrs for balanced csum change */ u_int16_t mapflags; /* Some flags */ }; -- cgit v1.2.3