diff --git a/common/control/bind_finder.go b/common/control/bind_finder.go index 4d40b0d..2383217 100644 --- a/common/control/bind_finder.go +++ b/common/control/bind_finder.go @@ -1,6 +1,7 @@ package control import ( + "net" "net/netip" ) @@ -12,8 +13,9 @@ type InterfaceFinder interface { } type Interface struct { - Index int - MTU int - Name string - Addresses []netip.Prefix + Index int + MTU int + Name string + Addresses []netip.Prefix + HardwareAddr net.HardwareAddr } diff --git a/common/control/bind_finder_default.go b/common/control/bind_finder_default.go index 76dacbd..9d9230e 100644 --- a/common/control/bind_finder_default.go +++ b/common/control/bind_finder_default.go @@ -31,10 +31,11 @@ func (f *DefaultInterfaceFinder) Update() error { return err } interfaces = append(interfaces, Interface{ - Index: netIf.Index, - MTU: netIf.MTU, - Name: netIf.Name, - Addresses: common.Map(ifAddrs, M.PrefixFromNet), + Index: netIf.Index, + MTU: netIf.MTU, + Name: netIf.Name, + Addresses: common.Map(ifAddrs, M.PrefixFromNet), + HardwareAddr: netIf.HardwareAddr, }) } f.interfaces = interfaces