X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fsocket-util.h;h=03f4449b63f6d5f2d700b1424ca97ab5de151d56;hb=9ac3fce4d5aea7e963439eb97f7c2d157aef4dfc;hp=8c5af3966e96528281127b9560329844179e0a07;hpb=279c9e030818e039bb1c26be76e2cc1e8f6b13a6;p=openvswitch diff --git a/lib/socket-util.h b/lib/socket-util.h index 8c5af396..03f4449b 100644 --- a/lib/socket-util.h +++ b/lib/socket-util.h @@ -20,6 +20,7 @@ #include #include #include +#include "openvswitch/types.h" int set_nonblocking(int fd); int get_max_fds(void); @@ -32,7 +33,7 @@ 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); -uint32_t guess_netmask(uint32_t ip); +ovs_be32 guess_netmask(ovs_be32 ip); int get_null_fd(void); bool inet_parse_active(const char *target, uint16_t default_port, @@ -50,4 +51,6 @@ int get_mtime(const char *file_name, struct timespec *mtime); void xpipe(int fds[2]); +char *describe_fd(int fd); + #endif /* socket-util.h */