aboutgitcodebugslistschat
path: root/doc
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2025-04-17 11:55:41 +1000
committerStefano Brivio <sbrivio@redhat.com>2025-04-22 12:42:00 +0200
commit4668e9137806b551f6ee44609064cc40243c2b6b (patch)
tree6e6572139c1079884c986d9a81f32e3e2ac10fcc /doc
parent9128f6e8f47d94c761b5fd8c0d0b8308758cbdc5 (diff)
downloadpasst-4668e9137806b551f6ee44609064cc40243c2b6b.tar
passt-4668e9137806b551f6ee44609064cc40243c2b6b.tar.gz
passt-4668e9137806b551f6ee44609064cc40243c2b6b.tar.bz2
passt-4668e9137806b551f6ee44609064cc40243c2b6b.tar.lz
passt-4668e9137806b551f6ee44609064cc40243c2b6b.tar.xz
passt-4668e9137806b551f6ee44609064cc40243c2b6b.tar.zst
passt-4668e9137806b551f6ee44609064cc40243c2b6b.zip
treewide: Improve robustness against sockaddrs of unexpected family
inany_from_sockaddr() expects a socket address of family AF_INET or AF_INET6 and ASSERT()s if it gets anything else. In many of the callers we can handle an unexpected family more gracefully, though, e.g. by failing a single flow rather than killing passt. Change inany_from_sockaddr() to return an error instead of ASSERT()ing, and handle those errors in the callers. Improve the reporting of any such errors while we're at it. With this greater robustness, allow inany_from_sockaddr() to take a void * rather than specifically a union sockaddr_inany *. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions