aboutgitcodebugslistschat
path: root/netlink.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-08-02 13:15:41 +1000
committerStefano Brivio <sbrivio@redhat.com>2023-08-04 01:18:06 +0200
commit7bc9b66fc2fae6b81ce497a34a5692f63691c810 (patch)
tree08a16fe11da5e54c0b5f47ba30d570a82d0a3537 /netlink.c
parent6920adda0dce8cc9fb585da658dd983833c2a928 (diff)
downloadpasst-7bc9b66fc2fae6b81ce497a34a5692f63691c810.tar
passt-7bc9b66fc2fae6b81ce497a34a5692f63691c810.tar.gz
passt-7bc9b66fc2fae6b81ce497a34a5692f63691c810.tar.bz2
passt-7bc9b66fc2fae6b81ce497a34a5692f63691c810.tar.lz
passt-7bc9b66fc2fae6b81ce497a34a5692f63691c810.tar.xz
passt-7bc9b66fc2fae6b81ce497a34a5692f63691c810.tar.zst
passt-7bc9b66fc2fae6b81ce497a34a5692f63691c810.zip
tap: More detailed error reporting in tap_ns_tun()
There are several possible failure points in tap_ns_tun(), but if anything goes wrong, we just set tun_ns_fd to -1 resulting in the same error message. Add more detailed error reporting to the various failure points. At the same time, we know this is only called from tap_sock_tun_init() which will terminate pasta if we fail, so we can simplify things a little because we don't need to close() the fd on the failure paths. Link: https://bugs.passt.top/show_bug.cgi?id=69 Link: https://github.com/containers/podman/issues/19428 Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'netlink.c')
0 files changed, 0 insertions, 0 deletions