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 <andrei@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #58
}
static void
-lwip_posix_socket_poll(posix_sock *file)
+lwip_posix_socket_poll_setup(posix_sock *file)
{
int lwip_fd;
unsigned revents;
.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);