aboutgitcodebugslistschat
path: root/tcp_buf.c
diff options
context:
space:
mode:
authorJon Maloy <jmaloy@redhat.com>2024-07-20 09:54:53 -0400
committerStefano Brivio <sbrivio@redhat.com>2024-07-23 16:42:27 +0200
commit9cb6b508157a92bc0c5c0f71d6b3d09a628a0766 (patch)
tree979c6bab7efa3e3ffb469936e9e315450b2530e1 /tcp_buf.c
parent882599e18008f2c08aa5b094bae06516f8219f3d (diff)
downloadpasst-9cb6b508157a92bc0c5c0f71d6b3d09a628a0766.tar
passt-9cb6b508157a92bc0c5c0f71d6b3d09a628a0766.tar.gz
passt-9cb6b508157a92bc0c5c0f71d6b3d09a628a0766.tar.bz2
passt-9cb6b508157a92bc0c5c0f71d6b3d09a628a0766.tar.lz
passt-9cb6b508157a92bc0c5c0f71d6b3d09a628a0766.tar.xz
passt-9cb6b508157a92bc0c5c0f71d6b3d09a628a0766.tar.zst
passt-9cb6b508157a92bc0c5c0f71d6b3d09a628a0766.zip
tcp: probe for SO_PEEK_OFF both in tcpv4 and tcp6
Based on an original patch by Jon Maloy: -- The recently added socket option SO_PEEK_OFF is not supported for TCP/IPv6 sockets. Until we get that support into the kernel we need to test for support in both protocols to set the global 'peek_offset_capĀ“ to true. -- Compared to the original patch: - only check for SO_PEEK_OFF support for enabled IP versions - use sa_family_t instead of int to pass the address family around Fixes: e63d281871ef ("tcp: leverage support of SO_PEEK_OFF socket option when available") Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tcp_buf.c')
0 files changed, 0 insertions, 0 deletions