X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fstatus.c;h=0df9ce3d9d717f002c22dbe338a5fe075ec079c7;hb=2ed7d6e227c009f0f6bdabbb85262d8aac896e00;hp=644e3a45ff7da9b20a7f5cfbfbc8aa0843614061;hpb=7d674866d2c95d9027fc2e64d1acc2044e2c004a;p=openvswitch diff --git a/ofproto/status.c b/ofproto/status.c index 644e3a45..0df9ce3d 100644 --- a/ofproto/status.c +++ b/ofproto/status.c @@ -101,10 +101,10 @@ rconn_status_cb(struct status_reply *sr, void *rconn_) status_reply_put(sr, "name=%s", rconn_get_target(rconn)); if (remote_ip) { status_reply_put(sr, "remote-ip="IP_FMT, IP_ARGS(&remote_ip)); - status_reply_put(sr, "remote-port=%d", + status_reply_put(sr, "remote-port=%d", ntohs(rconn_get_remote_port(rconn))); status_reply_put(sr, "local-ip="IP_FMT, IP_ARGS(&local_ip)); - status_reply_put(sr, "local-port=%d", + status_reply_put(sr, "local-port=%d", ntohs(rconn_get_local_port(rconn))); } status_reply_put(sr, "state=%s", rconn_get_state(rconn));