aboutgitcodebugslistschat
path: root/passt.h
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-10 01:09:25 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-10 01:13:27 +0200
commit580581fd966015538b527fcd52449055b795cbf4 (patch)
treeb86f30622ca5df499e538f011772d3a1132277ad /passt.h
parente871fa9f224dd0cba8d01b16f3c7a4fc06cdc1ed (diff)
downloadpasst-580581fd966015538b527fcd52449055b795cbf4.tar
passt-580581fd966015538b527fcd52449055b795cbf4.tar.gz
passt-580581fd966015538b527fcd52449055b795cbf4.tar.bz2
passt-580581fd966015538b527fcd52449055b795cbf4.tar.lz
passt-580581fd966015538b527fcd52449055b795cbf4.tar.xz
passt-580581fd966015538b527fcd52449055b795cbf4.tar.zst
passt-580581fd966015538b527fcd52449055b795cbf4.zip
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 <sbrivio@redhat.com>
Diffstat (limited to 'passt.h')
-rw-r--r--passt.h2
1 files changed, 1 insertions, 1 deletions
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