diff options
author | sven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756> | 2010-10-14 13:31:12 +0200 |
---|---|---|
committer | sven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756> | 2010-10-14 13:31:12 +0200 |
commit | b60cc949b6757fc3c76b3a9a7e52de8c36086fc0 (patch) | |
tree | ce8420817475bbed3fc55cf59d2e20bc6e755fc6 | |
parent | 00adddbced48da8f0b709a58d981a592f08dd575 (diff) | |
download | NPTv6-b60cc949b6757fc3c76b3a9a7e52de8c36086fc0.tar NPTv6-b60cc949b6757fc3c76b3a9a7e52de8c36086fc0.zip |
git-svn-id: https://map66.svn.sourceforge.net/svnroot/map66@29 3484d885-4da6-438d-b19d-107d078dd756
-rw-r--r-- | TODO | 5 | ||||
-rw-r--r-- | ip6t_MAP66.c | 4 |
2 files changed, 6 insertions, 3 deletions
@@ -3,4 +3,7 @@ the salt can be added e.g. when restarting router/iptables or may be generated f a particular host once. Purpose: hide MAC addresses behind the address mapping gateway -Check compat with tcpdump. Linux2.4 needs to copy skb() for that, but it oopses
\ No newline at end of file +Check compat with tcpdump. Linux2.4 needs to copy skb() for that, but it oopses + +Update csum, see http://www.firstpr.com.au/ip/ivip/checksums/ and +http://www.faqs.org/rfcs/rfc1624.html
\ No newline at end of file diff --git a/ip6t_MAP66.c b/ip6t_MAP66.c index 6060871..9491226 100644 --- a/ip6t_MAP66.c +++ b/ip6t_MAP66.c @@ -69,8 +69,8 @@ static void map16( #endif #ifndef NIP6_FMT -#define NIP6_FMT "%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x" -#define NIP6(addr) \ +# define NIP6_FMT "%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x" +# define NIP6(addr) \ ntohs((addr).s6_addr16[0]), \ ntohs((addr).s6_addr16[1]), \ ntohs((addr).s6_addr16[2]), \ |