It looks like this didn't matter because this sin_port is only used for resolve_route which doesn't use sin_port data. Signed-off-by: Jason Gunthorpe <jgunthorpe@xxxxxxxxxxxxxxxxxxxx> --- libibcm/examples/cmpost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libibcm/examples/cmpost.c b/libibcm/examples/cmpost.c index b8e7d8e0710e6d..b7c95513959390 100644 --- a/libibcm/examples/cmpost.c +++ b/libibcm/examples/cmpost.c @@ -632,7 +632,7 @@ static int get_dst_addr(char *dst, struct sockaddr_in *addr_in) } *addr_in = *(struct sockaddr_in *) res->ai_addr; - addr_in->sin_port = 7471; + addr_in->sin_port = htobe16(7471); out: freeaddrinfo(res); return ret; -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html