tvhdebug(LS_SATIPS, "%i/%s/%d: %s from %s:%d %s",
rs->frontend, rs->session, rs->stream,
- caller, hc->hc_peer_ipstr, IP_PORT(*hc->hc_peer), buf);
+ caller, hc->hc_peer_ipstr, ntohs(IP_PORT(*hc->hc_peer)), buf);
ok:
errcode = 0;
}
tvhdebug(LS_SATIPS, "-/%s/%i: teardown from %s:%d",
- hc->hc_session, stream, hc->hc_peer_ipstr, IP_PORT(*hc->hc_peer));
+ hc->hc_session, stream, hc->hc_peer_ipstr, ntohs(IP_PORT(*hc->hc_peer)));
pthread_mutex_lock(&rtsp_lock);
rs = rtsp_find_session(hc, stream);
inet_ntop(ip.ss_family, IP_IN_ADDR(ip), tbuf, sizeof(tbuf));
tvhtrace(LS_UPNP, "%s - received data from %s:%hu [size=%zi]",
conn == multicast ? "multicast" : "unicast",
- tbuf, (unsigned short) IP_PORT(ip), size);
+ tbuf, (unsigned short) ntohs(IP_PORT(ip)), size);
tvhlog_hexdump(LS_UPNP, buf, size);
}
/* TODO: a filter */