From: Andrei Tatar Date: Thu, 30 May 2024 12:58:31 +0000 (+0200) Subject: socket.c: Update to posix-socket poll setup API X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=caa7d5316acdbc73af4ffeef39b1c6cb2002f751;p=unikraft%2Flibs%2Flwip.git socket.c: Update to posix-socket poll setup API This change updates the posix-socket interface of lwip to use the new poll setup API introduced with explicitly polled sockets. Signed-off-by: Andrei Tatar Approved-by: Razvan Deaconescu Reviewed-by: Razvan Deaconescu GitHub-Closes: #58 --- diff --git a/sockets.c b/sockets.c index 7eb0af1..57ef737 100644 --- a/sockets.c +++ b/sockets.c @@ -475,7 +475,7 @@ lwip_posix_socket_event_callback(struct lwip_sock *sock, } static void -lwip_posix_socket_poll(posix_sock *file) +lwip_posix_socket_poll_setup(posix_sock *file) { int lwip_fd; unsigned revents; @@ -520,7 +520,7 @@ static struct posix_socket_ops lwip_posix_socket_ops = { .write = lwip_posix_socket_write, .close = lwip_posix_socket_close, .ioctl = lwip_posix_socket_ioctl, - .poll = lwip_posix_socket_poll, + .poll_setup = lwip_posix_socket_poll_setup, }; POSIX_SOCKET_FAMILY_REGISTER(AF_INET, &lwip_posix_socket_ops);