diff options
author | Michael Tuexen <tuexen@fh-muenster.de> | 2017-06-25 15:41:40 +0200 |
---|---|---|
committer | Michael Tuexen <tuexen@fh-muenster.de> | 2017-06-25 15:41:40 +0200 |
commit | 99bd32e81423f8923303a3881829870281961d85 (patch) | |
tree | bafdb817c2e72acab29f80ef2adf0eae002cb900 | |
parent | e3727657c675356a46fbc7812831aeff2c3fd8de (diff) | |
download | usrsctp-99bd32e81423f8923303a3881829870281961d85.tar.gz |
Address signess issues.
These issues are reported in https://github.com/sctplab/usrsctp/pull/150
-rw-r--r-- | programs/discard_server.c | 4 | ||||
-rw-r--r-- | programs/echo_server.c | 4 | ||||
-rw-r--r-- | programs/ekr_client.c | 2 | ||||
-rw-r--r-- | programs/ekr_loop.c | 2 | ||||
-rw-r--r-- | programs/ekr_loop_offload.c | 2 | ||||
-rw-r--r-- | programs/ekr_peer.c | 4 | ||||
-rw-r--r-- | programs/ekr_server.c | 2 | ||||
-rw-r--r-- | programs/rtcweb.c | 2 |
8 files changed, 11 insertions, 11 deletions
diff --git a/programs/discard_server.c b/programs/discard_server.c index e7c789dd..bc67cd5f 100644 --- a/programs/discard_server.c +++ b/programs/discard_server.c @@ -91,7 +91,7 @@ receive_cb(struct socket *sock, union sctp_sockstore addr, void *data, port = 0; break; } - printf("Msg of length %d received from %s:%u on stream %d with SSN %u and TSN %u, PPID %u, context %u.\n", + printf("Msg of length %d received from %s:%u on stream %u with SSN %u and TSN %u, PPID %u, context %u.\n", (int)datalen, name, port, @@ -215,7 +215,7 @@ main(int argc, char *argv[]) printf("Notification of length %llu received.\n", (unsigned long long)n); } else { if (infotype == SCTP_RECVV_RCVINFO) { - printf("Msg of length %llu received from %s:%u on stream %d with SSN %u and TSN %u, PPID %u, context %u, complete %d.\n", + printf("Msg of length %llu received from %s:%u on stream %u with SSN %u and TSN %u, PPID %u, context %u, complete %d.\n", (unsigned long long)n, inet_ntop(AF_INET6, &addr.sin6_addr, name, INET6_ADDRSTRLEN), ntohs(addr.sin6_port), rcv_info.rcv_sid, diff --git a/programs/echo_server.c b/programs/echo_server.c index 38f1e133..1eab193a 100644 --- a/programs/echo_server.c +++ b/programs/echo_server.c @@ -91,7 +91,7 @@ receive_cb(struct socket *sock, union sctp_sockstore addr, void *data, port = 0; break; } - printf("Msg of length %d received from %s:%u on stream %d with SSN %u and TSN %u, PPID %u, context %u.\n", + printf("Msg of length %d received from %s:%u on stream %u with SSN %u and TSN %u, PPID %u, context %u.\n", (int)datalen, name, port, @@ -230,7 +230,7 @@ main(int argc, char *argv[]) printf("Notification of length %llu received.\n", (unsigned long long)n); } else { if (infotype == SCTP_RECVV_RCVINFO) { - printf("Msg of length %llu received from %s:%u on stream %d with SSN %u and TSN %u, PPID %u, context %u, complete %d.\n", + printf("Msg of length %llu received from %s:%u on stream %u with SSN %u and TSN %u, PPID %u, context %u, complete %d.\n", (unsigned long long)n, inet_ntop(AF_INET6, &addr.sin6_addr, name, INET6_ADDRSTRLEN), ntohs(addr.sin6_port), rcv_info.rcv_sid, diff --git a/programs/ekr_client.c b/programs/ekr_client.c index e1ed5096..5cef40c5 100644 --- a/programs/ekr_client.c +++ b/programs/ekr_client.c @@ -134,7 +134,7 @@ receive_cb(struct socket *sock, union sctp_sockstore addr, void *data, if (flags & MSG_NOTIFICATION) { printf("Notification of length %d received.\n", (int)datalen); } else { - printf("Msg of length %d received via %p:%u on stream %d with SSN %u and TSN %u, PPID %u, context %u.\n", + printf("Msg of length %d received via %p:%u on stream %u with SSN %u and TSN %u, PPID %u, context %u.\n", (int)datalen, addr.sconn.sconn_addr, ntohs(addr.sconn.sconn_port), diff --git a/programs/ekr_loop.c b/programs/ekr_loop.c index c81a9461..798e8991 100644 --- a/programs/ekr_loop.c +++ b/programs/ekr_loop.c @@ -132,7 +132,7 @@ receive_cb(struct socket *sock, union sctp_sockstore addr, void *data, printf("Message %p received on sock = %p.\n", data, (void *)sock); if (data) { if ((flags & MSG_NOTIFICATION) == 0) { - printf("Messsage of length %d received via %p:%u on stream %d with SSN %u and TSN %u, PPID %u, context %u, flags %x.\n", + printf("Messsage of length %d received via %p:%u on stream %u with SSN %u and TSN %u, PPID %u, context %u, flags %x.\n", (int)datalen, addr.sconn.sconn_addr, ntohs(addr.sconn.sconn_port), diff --git a/programs/ekr_loop_offload.c b/programs/ekr_loop_offload.c index 1296d0f4..55f7d7fc 100644 --- a/programs/ekr_loop_offload.c +++ b/programs/ekr_loop_offload.c @@ -153,7 +153,7 @@ receive_cb(struct socket *sock, union sctp_sockstore addr, void *data, printf("Message %p received on sock = %p.\n", data, (void *)sock); if (data) { if ((flags & MSG_NOTIFICATION) == 0) { - printf("Messsage of length %d received via %p:%u on stream %d with SSN %u and TSN %u, PPID %u, context %u, flags %x.\n", + printf("Messsage of length %d received via %p:%u on stream %u with SSN %u and TSN %u, PPID %u, context %u, flags %x.\n", (int)datalen, addr.sconn.sconn_addr, ntohs(addr.sconn.sconn_port), diff --git a/programs/ekr_peer.c b/programs/ekr_peer.c index 7613e42d..b3cfe62d 100644 --- a/programs/ekr_peer.c +++ b/programs/ekr_peer.c @@ -264,7 +264,7 @@ handle_send_failed_event(struct sctp_send_failed_event *ssfe) if (ssfe->ssfe_flags & ~(SCTP_DATA_SENT | SCTP_DATA_UNSENT)) { printf("(flags = %x) ", ssfe->ssfe_flags); } - printf("message with PPID = %u, SID = %d, flags: 0x%04x due to error = 0x%08x", + printf("message with PPID = %u, SID = %u, flags: 0x%04x due to error = 0x%08x", ntohl(ssfe->ssfe_info.snd_ppid), ssfe->ssfe_info.snd_sid, ssfe->ssfe_info.snd_flags, ssfe->ssfe_error); n = ssfe->ssfe_length - sizeof(struct sctp_send_failed_event); @@ -324,7 +324,7 @@ receive_cb(struct socket *sock, union sctp_sockstore addr, void *data, if (flags & MSG_NOTIFICATION) { handle_notification((union sctp_notification *)data, datalen); } else { - printf("Msg of length %d received via %p:%u on stream %d with SSN %u and TSN %u, PPID %u, context %u.\n", + printf("Msg of length %d received via %p:%u on stream %u with SSN %u and TSN %u, PPID %u, context %u.\n", (int)datalen, addr.sconn.sconn_addr, ntohs(addr.sconn.sconn_port), diff --git a/programs/ekr_server.c b/programs/ekr_server.c index 6f812175..02f02b1c 100644 --- a/programs/ekr_server.c +++ b/programs/ekr_server.c @@ -133,7 +133,7 @@ receive_cb(struct socket *s, union sctp_sockstore addr, void *data, if (flags & MSG_NOTIFICATION) { printf("Notification of length %d received.\n", (int)datalen); } else { - printf("Msg of length %d received via %p:%u on stream %d with SSN %u and TSN %u, PPID %u, context %u.\n", + printf("Msg of length %d received via %p:%u on stream %u with SSN %u and TSN %u, PPID %u, context %u.\n", (int)datalen, addr.sconn.sconn_addr, ntohs(addr.sconn.sconn_port), diff --git a/programs/rtcweb.c b/programs/rtcweb.c index 260a41a8..23f25b74 100644 --- a/programs/rtcweb.c +++ b/programs/rtcweb.c @@ -1103,7 +1103,7 @@ handle_send_failed_event(struct sctp_send_failed_event *ssfe) if (ssfe->ssfe_flags & ~(SCTP_DATA_SENT | SCTP_DATA_UNSENT)) { printf("(flags = %x) ", ssfe->ssfe_flags); } - printf("message with PPID = %d, SID = %d, flags: 0x%04x due to error = 0x%08x", + printf("message with PPID = %u, SID = %u, flags: 0x%04x due to error = 0x%08x", ntohl(ssfe->ssfe_info.snd_ppid), ssfe->ssfe_info.snd_sid, ssfe->ssfe_info.snd_flags, ssfe->ssfe_error); n = ssfe->ssfe_length - sizeof(struct sctp_send_failed_event); |