To also recognize mac addresses from interfaces this commit is added. Signed-off-by: Christian Korber <[email protected]> --- modules/plugin_neigh.uc | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/modules/plugin_neigh.uc b/modules/plugin_neigh.uc
index a01a7fc..ac3bbe1 100644
--- a/modules/plugin_neigh.uc
+++ b/modules/plugin_neigh.uc
@@ -9,6 +9,11 @@ function get_arp_cache() {
if (data.lladdr && data.dst)
ret[data.dst] = data.lladdr;
+ cache = rtnl.request(rtnl.const.RTM_GETLINK, rtnl.const.NLM_F_DUMP, {
family: AF_INET });
+ for (let data in cache)
+ if (data.address)
+ ret[data.address] = data.address;
+
return ret;
}
--
2.47.3
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
