summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_asconf.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2007-09-10 17:06:25 +0000
committerrrs <rrs@FreeBSD.org>2007-09-10 17:06:25 +0000
commit1b1d8efe7c5c04a996d506e80bd5a2495bd3eeb8 (patch)
tree3f2005f2098cca5d2196f3fa10ec95b5d77d31b9 /sys/netinet/sctp_asconf.c
parentac7ab500b599547badd5a6b24625311f1a03f5fa (diff)
downloadFreeBSD-src-1b1d8efe7c5c04a996d506e80bd5a2495bd3eeb8.zip
FreeBSD-src-1b1d8efe7c5c04a996d506e80bd5a2495bd3eeb8.tar.gz
- Added some comments to tell where the htcp
code comes from. - Fix a LOR on Mac OS X: Do not hold an stcb lock when calling soisconnected for a socket which has the SS_INCOMP bit set on so_state. - fix a comment to be non c++ style. Approved by: re@freebsd.org (B Mah)
Diffstat (limited to 'sys/netinet/sctp_asconf.c')
-rw-r--r--sys/netinet/sctp_asconf.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/sys/netinet/sctp_asconf.c b/sys/netinet/sctp_asconf.c
index e75f5de..9fa0b47 100644
--- a/sys/netinet/sctp_asconf.c
+++ b/sys/netinet/sctp_asconf.c
@@ -1026,13 +1026,12 @@ void
sctp_assoc_immediate_retrans(struct sctp_tcb *stcb, struct sctp_nets *dstnet)
{
int error;
- struct sctp_tmit_chunk *chk;
+ struct sctp_tmit_chunk *debug_chk; /* for debug */
- //for debug
- if (dstnet->dest_state & SCTP_ADDR_UNCONFIRMED) {
- SCTPDBG(SCTP_DEBUG_ASCONF1, "assoc_immediate_retrans: specified destination is UNCONFIRMED\n");
- return;
- }
+ if (dstnet->dest_state & SCTP_ADDR_UNCONFIRMED) {
+ SCTPDBG(SCTP_DEBUG_ASCONF1, "assoc_immediate_retrans: specified destination is UNCONFIRMED\n");
+ return;
+ }
if (stcb->asoc.deleted_primary == NULL) {
SCTPDBG(SCTP_DEBUG_ASCONF1, "assoc_immediate_retrans: Funny, old primary is not stored\n");
return;
@@ -1065,10 +1064,10 @@ sctp_assoc_immediate_retrans(struct sctp_tcb *stcb, struct sctp_nets *dstnet)
#endif
/* Debug code */
SCTPDBG(SCTP_DEBUG_ASCONF1, "assoc_immediate_retrans: calling chunk_output, retran_cnt is %d\n", stcb->asoc.sent_queue_retran_cnt);
- TAILQ_FOREACH(chk, &stcb->asoc.sent_queue, sctp_next) {
+ TAILQ_FOREACH(debug_chk, &stcb->asoc.sent_queue, sctp_next) {
SCTPDBG(SCTP_DEBUG_ASCONF1, "assoc_immediate_retrans: chk->whoTo is ");
- SCTPDBG_ADDR(SCTP_DEBUG_ASCONF1, &chk->whoTo->ro._l_addr.sa);
- SCTPDBG(SCTP_DEBUG_ASCONF1, "state is %d\n", chk->sent);
+ SCTPDBG_ADDR(SCTP_DEBUG_ASCONF1, &debug_chk->whoTo->ro._l_addr.sa);
+ SCTPDBG(SCTP_DEBUG_ASCONF1, "state is %d\n", debug_chk->sent);
}
/* end Debug code */
sctp_chunk_output(stcb->sctp_ep, stcb, SCTP_OUTPUT_FROM_T3, SCTP_SO_NOT_LOCKED);
OpenPOWER on IntegriCloud