Deleted Added
full compact
sctp_bsd_addr.c (232866) sctp_bsd_addr.c (234995)
1/*-
2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
3 * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved.
4 * Copyright (c) 2008-2011, by Michael Tuexen. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *

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

28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33/* $KAME: sctp_output.c,v 1.46 2005/03/06 16:04:17 itojun Exp $ */
34
35#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
3 * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved.
4 * Copyright (c) 2008-2011, by Michael Tuexen. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *

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

28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33/* $KAME: sctp_output.c,v 1.46 2005/03/06 16:04:17 itojun Exp $ */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/sys/netinet/sctp_bsd_addr.c 232866 2012-03-12 15:05:17Z rrs $");
36__FBSDID("$FreeBSD: head/sys/netinet/sctp_bsd_addr.c 234995 2012-05-04 09:27:00Z tuexen $");
37
38#include <netinet/sctp_os.h>
39#include <netinet/sctp_var.h>
40#include <netinet/sctp_pcb.h>
41#include <netinet/sctp_header.h>
42#include <netinet/sctputil.h>
43#include <netinet/sctp_output.h>
44#include <netinet/sctp_bsd_addr.h>

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

478 thisend = newval;
479 }
480 if (!(atomic_cmpset_int(&SCTP_BASE_VAR(packet_log_end), value, thisend))) {
481 goto try_again;
482 }
483 }
484 /* Sanity check */
485 if (thisend >= SCTP_PACKET_LOG_SIZE) {
37
38#include <netinet/sctp_os.h>
39#include <netinet/sctp_var.h>
40#include <netinet/sctp_pcb.h>
41#include <netinet/sctp_header.h>
42#include <netinet/sctputil.h>
43#include <netinet/sctp_output.h>
44#include <netinet/sctp_bsd_addr.h>

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

478 thisend = newval;
479 }
480 if (!(atomic_cmpset_int(&SCTP_BASE_VAR(packet_log_end), value, thisend))) {
481 goto try_again;
482 }
483 }
484 /* Sanity check */
485 if (thisend >= SCTP_PACKET_LOG_SIZE) {
486 printf("Insanity stops a log thisbegin:%d thisend:%d writers:%d lock:%d end:%d\n",
486 SCTP_PRINTF("Insanity stops a log thisbegin:%d thisend:%d writers:%d lock:%d end:%d\n",
487 thisbegin,
488 thisend,
489 SCTP_BASE_VAR(packet_log_writers),
490 grabbed_lock,
491 SCTP_BASE_VAR(packet_log_end));
492 SCTP_BASE_VAR(packet_log_end) = 0;
493 goto no_log;
494

--- 74 unchanged lines hidden ---
487 thisbegin,
488 thisend,
489 SCTP_BASE_VAR(packet_log_writers),
490 grabbed_lock,
491 SCTP_BASE_VAR(packet_log_end));
492 SCTP_BASE_VAR(packet_log_end) = 0;
493 goto no_log;
494

--- 74 unchanged lines hidden ---