aboutsummaryrefslogtreecommitdiff
path: root/lib/stream.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-11-29 13:48:30 -0800
committerBen Pfaff <blp@nicira.com>2010-11-29 16:29:11 -0800
commit4408d18aac89b94249c46f39757026cb337b949f (patch)
tree13453491cf3295d22872d6ecf3bd4475366a96ed /lib/stream.c
parentbc4a55cd19281f65718230ae14a25c3f1077b8ec (diff)
Convert stream and vconn interfaces to use ovs_be16, ovs_be32.
Diffstat (limited to 'lib/stream.c')
-rw-r--r--lib/stream.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/stream.c b/lib/stream.c
index eb75be8d..44d94d79 100644
--- a/lib/stream.c
+++ b/lib/stream.c
@@ -280,7 +280,7 @@ stream_get_name(const struct stream *stream)
/* Returns the IP address of the peer, or 0 if the peer is not connected over
* an IP-based protocol or if its IP address is not yet known. */
-uint32_t
+ovs_be32
stream_get_remote_ip(const struct stream *stream)
{
return stream->remote_ip;
@@ -288,7 +288,7 @@ stream_get_remote_ip(const struct stream *stream)
/* Returns the transport port of the peer, or 0 if the connection does not
* contain a port or if the port is not yet known. */
-uint16_t
+ovs_be16
stream_get_remote_port(const struct stream *stream)
{
return stream->remote_port;
@@ -296,7 +296,7 @@ stream_get_remote_port(const struct stream *stream)
/* Returns the IP address used to connect to the peer, or 0 if the connection
* is not an IP-based protocol or if its IP address is not yet known. */
-uint32_t
+ovs_be32
stream_get_local_ip(const struct stream *stream)
{
return stream->local_ip;
@@ -304,7 +304,7 @@ stream_get_local_ip(const struct stream *stream)
/* Returns the transport port used to connect to the peer, or 0 if the
* connection does not contain a port or if the port is not yet known. */
-uint16_t
+ovs_be16
stream_get_local_port(const struct stream *stream)
{
return stream->local_port;
@@ -623,25 +623,25 @@ stream_init(struct stream *stream, struct stream_class *class,
}
void
-stream_set_remote_ip(struct stream *stream, uint32_t ip)
+stream_set_remote_ip(struct stream *stream, ovs_be32 ip)
{
stream->remote_ip = ip;
}
void
-stream_set_remote_port(struct stream *stream, uint16_t port)
+stream_set_remote_port(struct stream *stream, ovs_be16 port)
{
stream->remote_port = port;
}
void
-stream_set_local_ip(struct stream *stream, uint32_t ip)
+stream_set_local_ip(struct stream *stream, ovs_be32 ip)
{
stream->local_ip = ip;
}
void
-stream_set_local_port(struct stream *stream, uint16_t port)
+stream_set_local_port(struct stream *stream, ovs_be16 port)
{
stream->local_port = port;
}