Mercurial > hg > freeDiameter
changeset 68:f09247048015
Add stream information in debug messages
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 30 Nov 2009 17:47:15 +0900 |
parents | f0215a3edca9 |
children | a8aa7ea6d629 |
files | freeDiameter/sctp.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/freeDiameter/sctp.c Mon Nov 30 17:32:35 2009 +0900 +++ b/freeDiameter/sctp.c Mon Nov 30 17:47:15 2009 +0900 @@ -1016,12 +1016,12 @@ goto incomplete; } - TRACE_DEBUG(FULL, "Received %db data on socket %d", datasize, sock); - /* Handle the case where the data received is a notification */ if (mhdr.msg_flags & MSG_NOTIFICATION) { union sctp_notification * notif = (union sctp_notification *) data; + TRACE_DEBUG(FULL, "Received %db data of notification on socket %d", datasize, sock); + switch (notif->sn_header.sn_type) { case SCTP_ASSOC_CHANGE: @@ -1114,6 +1114,9 @@ *strid = sndrcv->sinfo_stream; } + TRACE_DEBUG(FULL, "Received %db data on socket %d, stream %hu", datasize, sock, *strid); + } else { + TRACE_DEBUG(FULL, "Received %db data on socket %d (stream ignored)", datasize, sock); } return 0;