fix code formatting and set mesh MTU to 1532

compat version 15 of batman-adv needs 1532 bytes hard-if MTU to carry
full size 1500 ethernet frames.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2015-01-18 06:42:20 +01:00
parent 688cf3af5c
commit 2932c56295
1 changed files with 6 additions and 2 deletions

View File

@ -31,7 +31,11 @@ local function configure_radio(radio, index, config)
if config.vlan_batadv then
uci:section('network', 'interface', mesh,
{ proto = 'none', mtu = '1536',})
{
proto = 'none',
mtu = '1536',
}
)
uci:section('network', 'interface', mesh .. '_vbatadv',
{
ifname = '@' .. mesh .. '.' .. config.vlan_batadv,
@ -44,7 +48,7 @@ local function configure_radio(radio, index, config)
uci:section('network', 'interface', mesh,
{
proto = 'batadv',
mtu = '1528',
mtu = '1532',
mesh = 'bat0',
}
)