summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756>2010-10-14 13:31:12 +0200
committersven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756>2010-10-14 13:31:12 +0200
commitb60cc949b6757fc3c76b3a9a7e52de8c36086fc0 (patch)
treece8420817475bbed3fc55cf59d2e20bc6e755fc6
parent00adddbced48da8f0b709a58d981a592f08dd575 (diff)
downloadNPTv6-b60cc949b6757fc3c76b3a9a7e52de8c36086fc0.tar
NPTv6-b60cc949b6757fc3c76b3a9a7e52de8c36086fc0.zip
git-svn-id: https://map66.svn.sourceforge.net/svnroot/map66@29 3484d885-4da6-438d-b19d-107d078dd756
-rw-r--r--TODO5
-rw-r--r--ip6t_MAP66.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/TODO b/TODO
index 08d03e4..796c918 100644
--- a/TODO
+++ b/TODO
@@ -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]), \