mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
networkctl: Add support to display VXLan remote address
This commit is contained in:
@@ -1549,9 +1549,17 @@ static int link_status_one(
|
||||
}
|
||||
|
||||
if (IN_SET(info->vxlan_info.group_family, AF_INET, AF_INET6)) {
|
||||
const char *p;
|
||||
|
||||
r = in_addr_is_multicast(info->vxlan_info.group_family, &info->vxlan_info.group);
|
||||
if (r <= 0)
|
||||
p = "Remote:";
|
||||
else
|
||||
p = "Group:";
|
||||
|
||||
r = table_add_many(table,
|
||||
TABLE_EMPTY,
|
||||
TABLE_STRING, "Group:",
|
||||
TABLE_STRING, p,
|
||||
info->vxlan_info.group_family == AF_INET ? TABLE_IN_ADDR : TABLE_IN6_ADDR,
|
||||
&info->vxlan_info.group);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user