summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO2
-rw-r--r--ip6t_MAP66.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/TODO b/TODO
index af06487..b89eed6 100644
--- a/TODO
+++ b/TODO
@@ -3,8 +3,6 @@ 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
-* one map16 function for all cases?
-
* Implment bit-offset for arbitrary prefix length
* Check compat with tcpdump. Linux2.4 needs to copy skb() for that -> oops
diff --git a/ip6t_MAP66.c b/ip6t_MAP66.c
index b863c1c..dcdea68 100644
--- a/ip6t_MAP66.c
+++ b/ip6t_MAP66.c
@@ -32,7 +32,9 @@ static inline u_int16_t add16(
}
/* Calc one's complement csum */
-static inline u_int16_t csum16(const u_int16_t *buf, int len)
+static inline u_int16_t csum16(
+ const u_int16_t *buf,
+ int len)
{
u_int16_t csum = 0;
while(len--) csum = add16(csum, *buf++);