X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fsocket-util.h;h=4ae10686556b9afbe11660e9b3079d972964e167;hb=3bcc21747fd1c8b11a92624d97ce593ee3db1bd1;hp=fe9c154e5cabd7d0e709e847958930ab4990a405;hpb=e4e4a6be82cf0a4feef45407305b360b405ed57e;p=openvswitch diff --git a/include/socket-util.h b/include/socket-util.h index fe9c154e..4ae10686 100644 --- a/include/socket-util.h +++ b/include/socket-util.h @@ -43,6 +43,7 @@ int lookup_ip(const char *host_name, struct in_addr *address); int get_socket_error(int sock); int check_connection_completion(int fd); int drain_rcvbuf(int fd); +void drain_fd(int fd, size_t n_packets); int make_unix_socket(int style, bool nonblock, bool passcred, const char *bind_path, const char *connect_path); int get_unix_name_len(socklen_t sun_len);