aboutgitcodebugslistschat
path: root/epoll_type.h
Commit message (Collapse)AuthorAgeFilesLines
* util: sock_l4() determine protocol from epoll type rather than the reverseDavid Gibson2024-07-051-0/+41
sock_l4() creates a socket of the given IP protocol number, and adds it to the epoll state. Currently it determines the correct tag for the epoll data based on the protocol. However, we have some future cases where we might want different semantics, and therefore epoll types, for sockets of the same protocol. So, change sock_l4() to take the epoll type as an explicit parameter, and determine the protocol from that. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>