Deleted Added
full compact
sctp_timer.c (167736) sctp_timer.c (168299)
1/*-
2 * Copyright (c) 2001-2007, Cisco Systems, Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 *
7 * a) Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.

--- 17 unchanged lines hidden (view full) ---

26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31/* $KAME: sctp_timer.c,v 1.29 2005/03/06 16:04:18 itojun Exp $ */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001-2007, Cisco Systems, Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 *
7 * a) Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.

--- 17 unchanged lines hidden (view full) ---

26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31/* $KAME: sctp_timer.c,v 1.29 2005/03/06 16:04:18 itojun Exp $ */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_timer.c 167736 2007-03-20 10:23:11Z rrs $");
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_timer.c 168299 2007-04-03 11:15:32Z rrs $");
35
36#define _IP_VHL
37#include <netinet/sctp_os.h>
38#include <netinet/sctp_pcb.h>
39#ifdef INET6
40#include <netinet6/sctp6_var.h>
41#endif
42#include <netinet/sctp_var.h>

--- 152 unchanged lines hidden (view full) ---

195 if (sctp_debug_on & SCTP_DEBUG_TIMER4) {
196 printf("Audit completes retran:%d onqueue:%d\n",
197 asoc->sent_queue_retran_cnt,
198 asoc->sent_queue_cnt);
199 }
200#endif /* SCTP_DEBUG */
201}
202
35
36#define _IP_VHL
37#include <netinet/sctp_os.h>
38#include <netinet/sctp_pcb.h>
39#ifdef INET6
40#include <netinet6/sctp6_var.h>
41#endif
42#include <netinet/sctp_var.h>

--- 152 unchanged lines hidden (view full) ---

195 if (sctp_debug_on & SCTP_DEBUG_TIMER4) {
196 printf("Audit completes retran:%d onqueue:%d\n",
197 asoc->sent_queue_retran_cnt,
198 asoc->sent_queue_cnt);
199 }
200#endif /* SCTP_DEBUG */
201}
202
203
203int
204sctp_threshold_management(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
205 struct sctp_nets *net, uint16_t threshold)
206{
207 if (net) {
208 net->error_count++;
209#ifdef SCTP_DEBUG
210 if (sctp_debug_on & SCTP_DEBUG_TIMER4) {

--- 144 unchanged lines hidden (view full) ---

355 if (alt->ro.ro_rt == NULL) {
356 struct sockaddr_in6 *sin6;
357
358 sin6 = (struct sockaddr_in6 *)&alt->ro._l_addr;
359 if (sin6->sin6_family == AF_INET6) {
360 (void)sa6_embedscope(sin6, ip6_use_defzone);
361 }
362 rtalloc_ign((struct route *)&alt->ro, 0UL);
204int
205sctp_threshold_management(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
206 struct sctp_nets *net, uint16_t threshold)
207{
208 if (net) {
209 net->error_count++;
210#ifdef SCTP_DEBUG
211 if (sctp_debug_on & SCTP_DEBUG_TIMER4) {

--- 144 unchanged lines hidden (view full) ---

356 if (alt->ro.ro_rt == NULL) {
357 struct sockaddr_in6 *sin6;
358
359 sin6 = (struct sockaddr_in6 *)&alt->ro._l_addr;
360 if (sin6->sin6_family == AF_INET6) {
361 (void)sa6_embedscope(sin6, ip6_use_defzone);
362 }
363 rtalloc_ign((struct route *)&alt->ro, 0UL);
364
363 if (sin6->sin6_family == AF_INET6) {
364 (void)sa6_recoverscope(sin6);
365 }
366 if (alt->ro._s_addr) {
367 sctp_free_ifa(alt->ro._s_addr);
368 alt->ro._s_addr = NULL;
369 }
370 alt->src_addr_selected = 0;

--- 1386 unchanged lines hidden ---
365 if (sin6->sin6_family == AF_INET6) {
366 (void)sa6_recoverscope(sin6);
367 }
368 if (alt->ro._s_addr) {
369 sctp_free_ifa(alt->ro._s_addr);
370 alt->ro._s_addr = NULL;
371 }
372 alt->src_addr_selected = 0;

--- 1386 unchanged lines hidden ---