Deleted Added
full compact
siftr.c (215553) siftr.c (215701)
1/*-
2 * Copyright (c) 2007-2009
3 * Swinburne University of Technology, Melbourne, Australia.
4 * Copyright (c) 2009-2010, The FreeBSD Foundation
5 * All rights reserved.
6 *
7 * Portions of this software were developed at the Centre for Advanced
8 * Internet Architectures, Swinburne University of Technology, Melbourne,

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

53 * Lawrence Stewart is the current maintainer, and all contact regarding
54 * SIFTR should be directed to him via email: lastewart@swin.edu.au
55 *
56 * Initial release date: June 2007
57 * Most recent update: September 2010
58 ******************************************************/
59
60#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2007-2009
3 * Swinburne University of Technology, Melbourne, Australia.
4 * Copyright (c) 2009-2010, The FreeBSD Foundation
5 * All rights reserved.
6 *
7 * Portions of this software were developed at the Centre for Advanced
8 * Internet Architectures, Swinburne University of Technology, Melbourne,

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

53 * Lawrence Stewart is the current maintainer, and all contact regarding
54 * SIFTR should be directed to him via email: lastewart@swin.edu.au
55 *
56 * Initial release date: June 2007
57 * Most recent update: September 2010
58 ******************************************************/
59
60#include <sys/cdefs.h>
61__FBSDID("$FreeBSD: head/sys/netinet/siftr.c 215553 2010-11-20 08:40:37Z lstewart $");
61__FBSDID("$FreeBSD: head/sys/netinet/siftr.c 215701 2010-11-22 19:32:54Z dim $");
62
63#include <sys/param.h>
64#include <sys/alq.h>
65#include <sys/errno.h>
66#include <sys/hash.h>
67#include <sys/kernel.h>
68#include <sys/kthread.h>
69#include <sys/lock.h>

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

255 /* # pkts skipped due to failed tcpcb lookups. */
256 uint32_t nskip_in_tcpcb;
257 uint32_t nskip_out_tcpcb;
258 /* # pkts skipped due to stack reinjection. */
259 uint32_t nskip_in_dejavu;
260 uint32_t nskip_out_dejavu;
261};
262
62
63#include <sys/param.h>
64#include <sys/alq.h>
65#include <sys/errno.h>
66#include <sys/hash.h>
67#include <sys/kernel.h>
68#include <sys/kthread.h>
69#include <sys/lock.h>

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

255 /* # pkts skipped due to failed tcpcb lookups. */
256 uint32_t nskip_in_tcpcb;
257 uint32_t nskip_out_tcpcb;
258 /* # pkts skipped due to stack reinjection. */
259 uint32_t nskip_in_dejavu;
260 uint32_t nskip_out_dejavu;
261};
262
263STATIC_DPCPU_DEFINE(struct siftr_stats, ss);
263static DPCPU_DEFINE(struct siftr_stats, ss);
264
265static volatile unsigned int siftr_exit_pkt_manager_thread = 0;
266static unsigned int siftr_enabled = 0;
267static unsigned int siftr_pkts_per_log = 1;
268static unsigned int siftr_generate_hashes = 0;
269/* static unsigned int siftr_binary_log = 0; */
270static char siftr_logfile[PATH_MAX] = "/var/log/siftr.log";
271static u_long siftr_hashmask;

--- 1285 unchanged lines hidden ---
264
265static volatile unsigned int siftr_exit_pkt_manager_thread = 0;
266static unsigned int siftr_enabled = 0;
267static unsigned int siftr_pkts_per_log = 1;
268static unsigned int siftr_generate_hashes = 0;
269/* static unsigned int siftr_binary_log = 0; */
270static char siftr_logfile[PATH_MAX] = "/var/log/siftr.log";
271static u_long siftr_hashmask;

--- 1285 unchanged lines hidden ---