diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-10-10 01:09:25 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-10-10 01:13:27 +0200 |
commit | 580581fd966015538b527fcd52449055b795cbf4 (patch) | |
tree | b86f30622ca5df499e538f011772d3a1132277ad /passt.h | |
parent | e871fa9f224dd0cba8d01b16f3c7a4fc06cdc1ed (diff) | |
download | passt-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |