aboutsummaryrefslogtreecommitdiff
path: root/lib/socket-util.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-03-29 14:42:20 -0700
committerBen Pfaff <blp@nicira.com>2011-05-16 13:40:47 -0700
commitdbba996be2f0d96f4d2999d51c4ef1d16809bad9 (patch)
tree1638a30b965d9ebdd9ddc5ab875b0793769b4592 /lib/socket-util.h
parent118c46769fce3be2c70dae494b02753c1db1780d (diff)
Convert remaining network-byte-order "uint<N>_t"s into "ovs_be<N>"s.
I looked at almost every uint<N>_t in the tree to determine whether it was really in network byte order, and converted the ones that were. The only remaining ones, modulo my mistakes, are in openflow.h. I'm not sure whether we should convert those, because there might be some value in remaining close to upstream for this header.
Diffstat (limited to 'lib/socket-util.h')
-rw-r--r--lib/socket-util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/socket-util.h b/lib/socket-util.h
index 8bc26bcb..03f4449b 100644
--- a/lib/socket-util.h
+++ b/lib/socket-util.h
@@ -20,6 +20,7 @@
#include <sys/types.h>
#include <netinet/in.h>
#include <stdbool.h>
+#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,