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 /tcp.c | |
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 'tcp.c')
0 files changed, 0 insertions, 0 deletions