diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-08-03 17:19:47 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-08-04 01:28:14 +0200 |
commit | f62600b2df2c168cf0a4bb23730cbc23510cb53c (patch) | |
tree | d9f77e568278c70bf63421d01a134949d2f0f766 /netlink.h | |
parent | 0a568c847d58db95ffa7918d950f8164832b119f (diff) | |
download | passt-f62600b2df2c168cf0a4bb23730cbc23510cb53c.tar passt-f62600b2df2c168cf0a4bb23730cbc23510cb53c.tar.gz passt-f62600b2df2c168cf0a4bb23730cbc23510cb53c.tar.bz2 passt-f62600b2df2c168cf0a4bb23730cbc23510cb53c.tar.lz passt-f62600b2df2c168cf0a4bb23730cbc23510cb53c.tar.xz passt-f62600b2df2c168cf0a4bb23730cbc23510cb53c.tar.zst passt-f62600b2df2c168cf0a4bb23730cbc23510cb53c.zip |
netlink: Treat send() or recv() errors as fatal
Errors on send() or recv() calls on a netlink socket don't indicate errors
with the netlink operations we're attempting, but rather that something's
gone wrong with the mechanics of netlink itself. We don't really expect
this to ever happen, and if it does, it's not clear what we could to to
recover.
So, treat errors from these calls as fatal, rather than returning the error
up the stack. This makes handling failures in the callers of nl_req()
simpler.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'netlink.h')
0 files changed, 0 insertions, 0 deletions