aboutgitcodebugslistschat
path: root/test/lib/git:
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2025-12-02 15:02:06 +1100
committerStefano Brivio <sbrivio@redhat.com>2025-12-02 23:07:17 +0100
commit3b8b8342999b9dfd5f68adc7a5855c4e9a134892 (patch)
tree7c434346c9bbb790bb930cdf26954b508d8954f7 /test/lib/git:
parentb0523f6b0629358024e95b5d01dc81512cfa8e10 (diff)
downloadpasst-3b8b8342999b9dfd5f68adc7a5855c4e9a134892.tar
passt-3b8b8342999b9dfd5f68adc7a5855c4e9a134892.tar.gz
passt-3b8b8342999b9dfd5f68adc7a5855c4e9a134892.tar.bz2
passt-3b8b8342999b9dfd5f68adc7a5855c4e9a134892.tar.lz
passt-3b8b8342999b9dfd5f68adc7a5855c4e9a134892.tar.xz
passt-3b8b8342999b9dfd5f68adc7a5855c4e9a134892.tar.zst
passt-3b8b8342999b9dfd5f68adc7a5855c4e9a134892.zip
util, flow, pif: Simplify sock_l4_sa() interface
sock_l4_sa() has a somewhat confusing 'v6only' option controlling whether to set the IPV6_V6ONLY socket option. Usually it's set when the given address is IPv6, but not when we want to create a dual stack listening socket. The latter only makes sense when the address is :: however. Clarify this by only keeping the v6only option in an internal helper sock_l4_(). External users will call either sock_l4() which always creates a socket bound to a specific IP version, or sock_l4_dualstack() which creates a dual stack socket, but takes only a port not an address. We drop the '_sa' suffix while we're at it - it exists because this used to be an internal version with a sock_l4() wrapper. The wrapper no longer exists so the '_sa' is no longer useful. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib/git:')
0 files changed, 0 insertions, 0 deletions