diff options
author | sven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756> | 2010-10-01 08:54:47 +0200 |
---|---|---|
committer | sven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756> | 2010-10-01 08:54:47 +0200 |
commit | d22cd0195d4d27efc01deba705351a46d9893628 (patch) | |
tree | 65f08f6261f79859bbdd53ac24c2364f877f5d12 /ip6t_MAP66.h | |
download | NPTv6-d22cd0195d4d27efc01deba705351a46d9893628.tar NPTv6-d22cd0195d4d27efc01deba705351a46d9893628.zip |
Transfer from freifunk-firmware to new SF project
git-svn-id: https://map66.svn.sourceforge.net/svnroot/map66@1 3484d885-4da6-438d-b19d-107d078dd756
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*/ |