diff options
author | sven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756> | 2010-10-17 11:04:15 +0200 |
---|---|---|
committer | sven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756> | 2010-10-17 11:04:15 +0200 |
commit | 6090de85e16bb798deb6d63ca066bfc56744bf7d (patch) | |
tree | 2542e4ead194d1556e99978e12b4daa8101c58d8 | |
parent | 554d3661ddd91fd3f6b099d8cffa9b1c477c2b20 (diff) | |
download | NPTv6-6090de85e16bb798deb6d63ca066bfc56744bf7d.tar NPTv6-6090de85e16bb798deb6d63ca066bfc56744bf7d.zip |
git-svn-id: https://map66.svn.sourceforge.net/svnroot/map66@53 3484d885-4da6-438d-b19d-107d078dd756
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | ip6t_MAP66.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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++); |