Skip to content

Commit

Permalink
batadv.lua: lookup mac of base interface (i.e. eth0 vs eth0.1 = strip…
Browse files Browse the repository at this point in the history
… vlan suffix) since vlan might not exist yet on firstboot
  • Loading branch information
altergui committed Aug 14, 2014
1 parent a59389d commit 8f3e8cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lime-proto-batadv/src/batadv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function batadv.setup_interface(ifname, args)
-- We change the 7nt bit to 1 to give it locally administered meaning
-- Then use it as the new mac address prefix "02:00:49"
if ifname:match("^eth") then
local vlanMacAddr = network.get_mac(ifname)
local vlanMacAddr = network.get_mac(ifname:gsub("%..*", ""))
vlanMacAddr[1] = "02"
vlanMacAddr[2] = "00"
vlanMacAddr[3] = "49"
Expand Down

0 comments on commit 8f3e8cd

Please sign in to comment.