Skip to content
Snippets Groups Projects
Commit 58f7d967 authored by Steven Barth's avatar Steven Barth
Browse files

map: shorten autogenerated sub-interface names to account for limits


Signed-off-by: default avatarSteven Barth <steven@midlink.org>

SVN-Revision: 45590
parent 8084b056
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=map
PKG_VERSION:=3
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_LICENSE:=GPL-2.0
include $(INCLUDE_DIR)/package.mk
......
......@@ -176,7 +176,7 @@ proto_map_setup() {
if [ "$type" = "lw4o6" -o "$type" = "map-e" ]; then
json_init
json_add_string name "${cfg}_local"
json_add_string name "${cfg}_"
json_add_string ifname "@$(eval "echo \$RULE_${k}_PD6IFACE")"
json_add_string proto "static"
json_add_array ip6addr
......@@ -189,7 +189,7 @@ proto_map_setup() {
proto_map_teardown() {
local cfg="$1"
ifdown "${cfg}_local"
ifdown "${cfg}_"
rm -f /tmp/map-$cfg.rules
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment