From 580581fd966015538b527fcd52449055b795cbf4 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Sun, 10 Oct 2021 01:09:25 +0200 Subject: conf: Avoid getifaddrs(), split L2/L3 address fetching, get filtered dumps getifaddrs() needs to allocate heap memory, and gets a ton of results we don't need. Use explicit netlink messages with "strict checking" instead. While at it, separate L2/L3 address handling, so that we don't fetch MAC addresses for IPv6, and also use netlink instead of ioctl() to get the MAC address. Signed-off-by: Stefano Brivio --- passt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'passt.h') diff --git a/passt.h b/passt.h index aef483a..4cce092 100644 --- a/passt.h +++ b/passt.h @@ -98,7 +98,7 @@ enum passt_modes { * @fd_tap_listen: File descriptor for listening AF_UNIX socket, if any * @fd_tap: File descriptor for AF_UNIX socket or tuntap device * @mac: Host MAC address - * @mac_guest: Guest MAC address + * @mac_guest: MAC address of guest or namespace, seen or configured * @v4: Enable IPv4 transport * @addr4: IPv4 address for external, routable interface * @addr4_seen: Latest IPv4 address seen as source from tap -- cgit v1.2.3