diff options
author | rrs <rrs@FreeBSD.org> | 2007-09-10 21:01:56 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-09-10 21:01:56 +0000 |
commit | 8696d874baa451824ac57a33534b4e5eb59a1488 (patch) | |
tree | e37db3143652bfc027a21eaaab302b716b882c30 | |
parent | e39286e7b46a449938b534444b32ebecda2d26b3 (diff) | |
download | FreeBSD-src-8696d874baa451824ac57a33534b4e5eb59a1488.zip FreeBSD-src-8696d874baa451824ac57a33534b4e5eb59a1488.tar.gz |
- Removed debug code and more C++ style comments in the mobility
code in sctp_asconf.c
Approved by: re@freebsd.org (B Mah)
-rw-r--r-- | sys/netinet/sctp_asconf.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/netinet/sctp_asconf.c b/sys/netinet/sctp_asconf.c index 9fa0b47..a72fa1e 100644 --- a/sys/netinet/sctp_asconf.c +++ b/sys/netinet/sctp_asconf.c @@ -1026,7 +1026,6 @@ void sctp_assoc_immediate_retrans(struct sctp_tcb *stcb, struct sctp_nets *dstnet) { int error; - struct sctp_tmit_chunk *debug_chk; /* for debug */ if (dstnet->dest_state & SCTP_ADDR_UNCONFIRMED) { SCTPDBG(SCTP_DEBUG_ASCONF1, "assoc_immediate_retrans: specified destination is UNCONFIRMED\n"); @@ -1062,14 +1061,6 @@ sctp_assoc_immediate_retrans(struct sctp_tcb *stcb, struct sctp_nets *dstnet) #ifdef SCTP_AUDITING_ENABLED sctp_auditing(4, stcb->sctp_ep, stcb->asoc.deleted_primary); #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(debug_chk, &stcb->asoc.sent_queue, sctp_next) { - SCTPDBG(SCTP_DEBUG_ASCONF1, "assoc_immediate_retrans: chk->whoTo is "); - 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); if ((stcb->asoc.num_send_timers_up == 0) && (stcb->asoc.sent_queue_cnt > 0)) { @@ -1090,7 +1081,6 @@ void sctp_net_immediate_retrans(struct sctp_tcb *stcb, struct sctp_nets *net) { struct sctp_tmit_chunk *chk; - int cnt = 0; /* debug */ SCTPDBG(SCTP_DEBUG_ASCONF1, "net_immediate_retrans:\n"); SCTPDBG(SCTP_DEBUG_ASCONF1, "RTO is %d\n", net->RTO); @@ -1103,11 +1093,9 @@ sctp_net_immediate_retrans(struct sctp_tcb *stcb, struct sctp_nets *net) if (chk->sent < SCTP_DATAGRAM_RESEND) { chk->sent = SCTP_DATAGRAM_RESEND; sctp_ucount_incr(stcb->asoc.sent_queue_retran_cnt); - cnt++; } } } - SCTPDBG(SCTP_DEBUG_ASCONF1, "%d chunks are marked to RESEND, retran_cnt is %d\n", cnt, stcb->asoc.sent_queue_retran_cnt); } static void @@ -1170,9 +1158,8 @@ sctp_path_check_and_react(struct sctp_tcb *stcb, struct sctp_ifa *newifa) stcb->sctp_ep->def_vrf_id); if (net->ro.ro_rt == NULL) continue; - //have to be considered... - changed = 0; + changed = 0; if (net->ro._l_addr.sa.sa_family == AF_INET) { if (sctp_v4src_match_nexthop(newifa, (sctp_route_t *) & net->ro)) changed = 1; |