diff options
author | sven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756> | 2010-10-13 13:41:02 +0200 |
---|---|---|
committer | sven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756> | 2010-10-13 13:41:02 +0200 |
commit | d0b3e5ef319d68c5b574bcecffc611d254ddc3c8 (patch) | |
tree | bd24f8ffeb576b0c8adb557d845971c86d4b27ba /ip6t_MAP66.h | |
parent | f7fcd91ce278baae2dfa9c269a94495a74e58b42 (diff) | |
download | NPTv6-d0b3e5ef319d68c5b574bcecffc611d254ddc3c8.tar NPTv6-d0b3e5ef319d68c5b574bcecffc611d254ddc3c8.zip |
changed --to into --dst-to and --src-to
git-svn-id: https://map66.svn.sourceforge.net/svnroot/map66@18 3484d885-4da6-438d-b19d-107d078dd756
Diffstat (limited to 'ip6t_MAP66.h')
-rw-r--r-- | ip6t_MAP66.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/ip6t_MAP66.h b/ip6t_MAP66.h index 21cb833..70fd5fc 100644 --- a/ip6t_MAP66.h +++ b/ip6t_MAP66.h @@ -7,14 +7,21 @@ #ifndef _IP6T_MAP66_H #define _IP6T_MAP66_H -#define IP6T_MAP66_OPT_TO 0x01 -#define IP6T_MAP66_OPT_NOCHECK 0x02 +#define IP6T_MAP66_DST_TO "--dst-to" +#define IP6T_MAP66_SRC_TO "--src-to" + +#define IP6T_MAP66_OPT_DST_TO 0x01 +#define IP6T_MAP66_OPT_SRC_TO 0x02 +#define IP6T_MAP66_OPT_NOCHECK 0x04 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 */ + struct in6_addr pfix_dst_to; /* The prefix to map destination addrs to */ + u_int16_t pfix_dst_len; /* Destination addrs prefix length DIV 16 */ + u_int16_t pfix_dst_csum; /* Pre-calculated csum for destination addrs */ + 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 mapflags; /* Some flags */ }; extern void _init(void); |