Deleted Added
full compact
alias_sctp.c (215152) alias_sctp.c (215153)
1/**
2 * @file alias_sctp.c
3 * Copyright (c) 2008, Centre for Advanced Internet Architectures
4 * Swinburne University of Technology, Melbourne, Australia.
5 *
1/*-
2 * Copyright (c) 2008
3 * Swinburne University of Technology, Melbourne, Australia.
4 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
14 * 3. The names of the authors, the "Centre for Advanced Internet Architectures"
15 * and "Swinburne University of Technology" may not be used to endorse
16 * or promote products derived from this software without specific
17 * prior written permission.
18 *
13 *
19 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS "AS IS" AND
20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS "AS IS" AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
30 *
25 */
26
27/*
31 * Alias_sctp forms part of the libalias kernel module to handle
32 * Network Address Translation (NAT) for the SCTP protocol.
33 *
34 * This software was developed by David A. Hayes and Jason But
35 *
36 * The design is outlined in CAIA technical report number 080618A
37 * (D. Hayes and J. But, "Alias_sctp Version 0.1: SCTP NAT implementation in IPFW")
38 *

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

66 * - Generation and delivery of AbortM/ErrorM packets upon detection of NAT
67 * collisions
68 * - Per-port forwarding rules
69 * - Dynamically controllable logging and statistics
70 * - Dynamic management of timers
71 * - Dynamic control of hash-table size
72 */
73
28 * Alias_sctp forms part of the libalias kernel module to handle
29 * Network Address Translation (NAT) for the SCTP protocol.
30 *
31 * This software was developed by David A. Hayes and Jason But
32 *
33 * The design is outlined in CAIA technical report number 080618A
34 * (D. Hayes and J. But, "Alias_sctp Version 0.1: SCTP NAT implementation in IPFW")
35 *

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

63 * - Generation and delivery of AbortM/ErrorM packets upon detection of NAT
64 * collisions
65 * - Per-port forwarding rules
66 * - Dynamically controllable logging and statistics
67 * - Dynamic management of timers
68 * - Dynamic control of hash-table size
69 */
70
74/* $FreeBSD: head/sys/netinet/libalias/alias_sctp.c 215152 2010-11-12 00:19:42Z lstewart $ */
71/* $FreeBSD: head/sys/netinet/libalias/alias_sctp.c 215153 2010-11-12 00:44:18Z lstewart $ */
75
76#ifdef _KERNEL
77#include <machine/stdarg.h>
78#include <sys/param.h>
79#include <sys/systm.h>
80#include <sys/kernel.h>
81#include <sys/module.h>
82#include <sys/syslog.h>

--- 2619 unchanged lines hidden ---
72
73#ifdef _KERNEL
74#include <machine/stdarg.h>
75#include <sys/param.h>
76#include <sys/systm.h>
77#include <sys/kernel.h>
78#include <sys/module.h>
79#include <sys/syslog.h>

--- 2619 unchanged lines hidden ---