aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/map/src
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2015-05-16 10:12:15 +0000
committerSteven Barth <cyrus@openwrt.org>2015-05-16 10:12:15 +0000
commit1ffe824e81442089f0c70c40a3968313aa9b537f (patch)
treebc9cf70cca3ee04438aabf140e935783f11da77c /package/network/ipv6/map/src
parent356a9f0280f36bdbca83bc0bc9f6e80106fc446c (diff)
downloadupstream-1ffe824e81442089f0c70c40a3968313aa9b537f.tar.gz
upstream-1ffe824e81442089f0c70c40a3968313aa9b537f.tar.bz2
upstream-1ffe824e81442089f0c70c40a3968313aa9b537f.zip
map: set ealen to psidlen for lw4over6
Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 45689
Diffstat (limited to 'package/network/ipv6/map/src')
-rw-r--r--package/network/ipv6/map/src/mapcalc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/ipv6/map/src/mapcalc.c b/package/network/ipv6/map/src/mapcalc.c
index b4b3d736f0..b61e157fc3 100644
--- a/package/network/ipv6/map/src/mapcalc.c
+++ b/package/network/ipv6/map/src/mapcalc.c
@@ -226,6 +226,9 @@ int main(int argc, char *argv[])
if (offset < 0)
offset = (lw4o6) ? 0 : (legacy) ? 4 : 6;
+ if (lw4o6 && ealen < 0 && psidlen >= 0)
+ ealen = psidlen;
+
// Find PD
struct blob_attr *c, *cur;
unsigned rem;