fff-babeld: add MTU option to babelpeers #125

Open
jkimmel wants to merge 2 commits from jkimmel/firmware:babelpeermtu into master
2 changed files with 6 additions and 1 deletions
Showing only changes of commit f333c3c822 - Show all commits

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-babeld
PKG_RELEASE:=7
PKG_RELEASE:=8
include $(INCLUDE_DIR)/package.mk

View File

@ -35,6 +35,7 @@ configure() {
local prefixname="babelpeer_$name"
local vlan
local type
local mtu
# get iface
if vlan=$(uci -q get gateway.$name.vlan); then
@ -52,10 +53,14 @@ configure() {
# get rxcost
rxcost=$(uci -q get gateway.$name.rxcost) || rxcost=96
# get mtu
mtu=$(uci -q get gateway.$name.mtu) || mtu=1500
# add interface
uci set network.$prefixname=interface
uci set network.$prefixname.proto=static
uci set network.$prefixname.ifname=$iface
uci set network.$prefixname.mtu=$mtu
# add iif-rules
babel_add_iifrules "$prefixname" || { echo "Could not add iif-rules for babelpeer $name"; exit 1; }