network: NDA_LLADDR attribute can also take struct in_addr

This commit is contained in:
Yu Watanabe
2019-07-11 22:22:29 +09:00
parent 5dc3dbe855
commit 49808e0e2d
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -519,7 +519,7 @@ static int get_gateway_description(
if (!in_addr_equal(fam, &gw, gateway))
continue;
r = sd_netlink_message_read_ether_addr(m, NDA_LLADDR, &mac);
r = sd_netlink_message_read(m, NDA_LLADDR, sizeof(mac), &mac);
if (r < 0)
continue;