X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstream.h;h=2482bf20ceb5267e313b3ae6920aa7986cf488fa;hb=0a6f55420508c31af9fe41aafdd26ce8462cc1be;hp=5c536c6ae5ff1af0548e4bb5f715ebb9a50cb12b;hpb=480ce8abca4ae262a4148fe757aebe3e0ddba6f6;p=openvswitch diff --git a/lib/stream.h b/lib/stream.h index 5c536c6a..2482bf20 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -20,6 +20,7 @@ #include #include #include +#include "openvswitch/types.h" #include "vlog.h" struct pstream; @@ -33,10 +34,10 @@ int stream_open(const char *name, struct stream **); int stream_open_block(int error, struct stream **); void stream_close(struct stream *); const char *stream_get_name(const struct stream *); -uint32_t stream_get_remote_ip(const struct stream *); -uint16_t stream_get_remote_port(const struct stream *); -uint32_t stream_get_local_ip(const struct stream *); -uint16_t stream_get_local_port(const struct stream *); +ovs_be32 stream_get_remote_ip(const struct stream *); +ovs_be16 stream_get_remote_port(const struct stream *); +ovs_be32 stream_get_local_ip(const struct stream *); +ovs_be16 stream_get_local_port(const struct stream *); int stream_connect(struct stream *); int stream_recv(struct stream *, void *buffer, size_t n); int stream_send(struct stream *, const void *buffer, size_t n);