summaryrefslogtreecommitdiffstats
path: root/ip6t_MAP66.h
blob: 21cb833ec2e07eb8dc3b2262755857b964d0edcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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_NOCHECK 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*/