summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/sctp6_usrreq.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2007-06-17 01:36:02 +0000
committerrrs <rrs@FreeBSD.org>2007-06-17 01:36:02 +0000
commita50eb788faabaf4a93e82cc35cc09d3db96c9539 (patch)
tree4021851b081dca4e0a547aaf328fad5ba03e3112 /sys/netinet6/sctp6_usrreq.c
parent6a4276ae14305505c7daf6c5c38cf89b26e623a6 (diff)
downloadFreeBSD-src-a50eb788faabaf4a93e82cc35cc09d3db96c9539.zip
FreeBSD-src-a50eb788faabaf4a93e82cc35cc09d3db96c9539.tar.gz
- For sctp_input/sctp6_input add announcment when a packet arrives (debug)
- re-factor the packet drop in sctp_output a bit more, we don't need the trim after all, but the size calc is now corrected. - When a assoc is in the COOKIE-ECHO/COOKIE-WAIT state and the user closes, it should not matter if data is queued, the assoc should be purged. - In error leg a missing free_chunk when iph comes in NULL (should not happen but just in case).
Diffstat (limited to 'sys/netinet6/sctp6_usrreq.c')
-rw-r--r--sys/netinet6/sctp6_usrreq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c
index 190a5e9..92c23f7 100644
--- a/sys/netinet6/sctp6_usrreq.c
+++ b/sys/netinet6/sctp6_usrreq.c
@@ -102,6 +102,9 @@ sctp6_input(i_pak, offp, proto)
ch = (struct sctp_chunkhdr *)((caddr_t)sh + sizeof(struct sctphdr));
iphlen = off;
offset = iphlen + sizeof(*sh) + sizeof(*ch);
+ SCTPDBG(SCTP_DEBUG_INPUT1,
+ "sctp6_input() length:%d iphlen:%d\n", pkt_len, iphlen);
+
#if defined(NFAITH) && NFAITH > 0
OpenPOWER on IntegriCloud