summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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]), \