diff options
Diffstat (limited to 'ip6t_MAP66.h')
-rw-r--r-- | ip6t_MAP66.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ip6t_MAP66.h b/ip6t_MAP66.h new file mode 100644 index 0000000..652c1c2 --- /dev/null +++ b/ip6t_MAP66.h @@ -0,0 +1,22 @@ +/* + * MAP66: Network Address Translation IPv6-to-IPv6 as + * proposed in the IETF's second NAT66 draft document. + * (c) 2010 sven-ola()gmx.de + */ + +#ifndef _IP6T_MAP66_H +#define _IP6T_MAP66_H + +#define IP6T_MAP66_OPT_TO 0x01 +#define IP6T_MAP66_OPT_NOSPOOF 0x02 + +struct ip6t_MAP66_info { + struct in6_addr prefix; /* The prefix to map to */ + u_int16_t prefixcsum; /* Pre-calculated csum */ + u_int8_t prefixlength; /* Prefix length DIV sizeof(u_int16_t) */ + u_int8_t mapflags; /* Some flags */ +}; + +extern void _init(void); + +#endif /*_IPT_MAP66_H*/ |