Selaa lähdekoodia

map: set ealen to psidlen for lw4over6

Signed-off-by: Steven Barth <[email protected]>

SVN-Revision: 45689
Steven Barth 10 vuotta sitten
vanhempi
sitoutus
1ffe824e81
2 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 1 1
      package/network/ipv6/map/Makefile
  2. 3 0
      package/network/ipv6/map/src/mapcalc.c

+ 1 - 1
package/network/ipv6/map/Makefile

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=map
 PKG_VERSION:=3
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 PKG_LICENSE:=GPL-2.0
 
 include $(INCLUDE_DIR)/package.mk

+ 3 - 0
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;