aboutgitcodebugslistschat
path: root/test/lib
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2025-12-18 17:22:41 +1100
committerStefano Brivio <sbrivio@redhat.com>2025-12-23 15:24:56 +0100
commit0f4ba615f59379edff5057c30b31328d60d71d08 (patch)
treec341012f8381610ab4f03bc043f5834e699e5fa0 /test/lib
parent75dcbc300bf09c3649823b12d30c4f24de7271d4 (diff)
downloadpasst-0f4ba615f59379edff5057c30b31328d60d71d08.tar
passt-0f4ba615f59379edff5057c30b31328d60d71d08.tar.gz
passt-0f4ba615f59379edff5057c30b31328d60d71d08.tar.bz2
passt-0f4ba615f59379edff5057c30b31328d60d71d08.tar.lz
passt-0f4ba615f59379edff5057c30b31328d60d71d08.tar.xz
passt-0f4ba615f59379edff5057c30b31328d60d71d08.tar.zst
passt-0f4ba615f59379edff5057c30b31328d60d71d08.zip
tcp: Combine tcp_sock_init_one() and tcp_sock_init() into tcp_listen()
Despite the name, these two functions are specifically for creating listening sockets, not any others. Recent changes mean that there's always exactly one call of tcp_sock_init_one() call per call to tcp_sock_init(). So combine them into tcp_listen(). While we're there remove a redundant check for (s > FD_REF_MAX). pif_sock_l4() already checks for this (and must, in order to properly populate the epoll reference). Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib')
0 files changed, 0 insertions, 0 deletions