Deleted Added
full compact
tcp_syncache.c (174248) tcp_syncache.c (174388)
1/*-
2 * Copyright (c) 2001 McAfee, Inc.
3 * Copyright (c) 2006 Andre Oppermann, Internet Business Solutions AG
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Jonathan Lemon
7 * and McAfee Research, the Security Research Division of McAfee, Inc. under
8 * DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the

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

26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001 McAfee, Inc.
3 * Copyright (c) 2006 Andre Oppermann, Internet Business Solutions AG
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Jonathan Lemon
7 * and McAfee Research, the Security Research Division of McAfee, Inc. under
8 * DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the

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

26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/netinet/tcp_syncache.c 174248 2007-12-04 07:11:13Z silby $");
34__FBSDID("$FreeBSD: head/sys/netinet/tcp_syncache.c 174388 2007-12-07 01:46:13Z kmacy $");
35
36#include "opt_inet.h"
37#include "opt_inet6.h"
38#include "opt_ipsec.h"
39#include "opt_mac.h"
40
41#include <sys/param.h>
42#include <sys/systm.h>

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

130 u_int8_t sc_flags;
131#define SCF_NOOPT 0x01 /* no TCP options */
132#define SCF_WINSCALE 0x02 /* negotiated window scaling */
133#define SCF_TIMESTAMP 0x04 /* negotiated timestamps */
134 /* MSS is implicit */
135#define SCF_UNREACH 0x10 /* icmp unreachable received */
136#define SCF_SIGNATURE 0x20 /* send MD5 digests */
137#define SCF_SACK 0x80 /* send SACK option */
35
36#include "opt_inet.h"
37#include "opt_inet6.h"
38#include "opt_ipsec.h"
39#include "opt_mac.h"
40
41#include <sys/param.h>
42#include <sys/systm.h>

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

130 u_int8_t sc_flags;
131#define SCF_NOOPT 0x01 /* no TCP options */
132#define SCF_WINSCALE 0x02 /* negotiated window scaling */
133#define SCF_TIMESTAMP 0x04 /* negotiated timestamps */
134 /* MSS is implicit */
135#define SCF_UNREACH 0x10 /* icmp unreachable received */
136#define SCF_SIGNATURE 0x20 /* send MD5 digests */
137#define SCF_SACK 0x80 /* send SACK option */
138#ifndef DISABLE_TCP_OFFLOAD
139 void *sc_pspare[2]; /* toepcb / toe_usrreqs */
140#endif
138#ifdef MAC
139 struct label *sc_label; /* MAC label reference */
140#endif
141};
142
143struct syncache_head {
144 struct mtx sch_mtx;
145 TAILQ_HEAD(sch_head, syncache) sch_bucket;

--- 1570 unchanged lines hidden ---
141#ifdef MAC
142 struct label *sc_label; /* MAC label reference */
143#endif
144};
145
146struct syncache_head {
147 struct mtx sch_mtx;
148 TAILQ_HEAD(sch_head, syncache) sch_bucket;

--- 1570 unchanged lines hidden ---