mirror of
https://passt.top/passt
synced 2025-06-17 20:55:34 +02:00
udp: Rename UDP listening sockets
EPOLL_TYPE_UDP is now only used for "listening" sockets; long lived sockets which can initiate new flows. Rename to EPOLL_TYPE_UDP_LISTEN and associated functions to match. Along with that, remove the .orig field from union udp_listen_epoll_ref, since it is now always true. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
d29fa0856e
commit
882599e180
6 changed files with 23 additions and 28 deletions
2
util.c
2
util.c
|
@ -61,7 +61,7 @@ int sock_l4_sa(const struct ctx *c, enum epoll_type type,
|
|||
proto = IPPROTO_TCP;
|
||||
socktype = SOCK_STREAM | SOCK_NONBLOCK;
|
||||
break;
|
||||
case EPOLL_TYPE_UDP:
|
||||
case EPOLL_TYPE_UDP_LISTEN:
|
||||
case EPOLL_TYPE_UDP_REPLY:
|
||||
proto = IPPROTO_UDP;
|
||||
socktype = SOCK_DGRAM | SOCK_NONBLOCK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue