Deleted Added
full compact
send.c (215317) send.c (215701)
1/*-
2 * Copyright (c) 2009-2010 Ana Kukec <anchie@FreeBSD.org>
3 * All rights reserved.
4 *
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

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

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.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009-2010 Ana Kukec <anchie@FreeBSD.org>
3 * All rights reserved.
4 *
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

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

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.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/netinet6/send.c 215317 2010-11-14 20:38:11Z dim $");
28__FBSDID("$FreeBSD: head/sys/netinet6/send.c 215701 2010-11-22 19:32:54Z dim $");
29
30#include <sys/param.h>
31#include <sys/kernel.h>
32#include <sys/mbuf.h>
33#include <sys/module.h>
34#include <sys/priv.h>
35#include <sys/protosw.h>
36#include <sys/systm.h>

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

55#include <netinet6/scope6_var.h>
56#include <netinet6/send.h>
57
58MALLOC_DEFINE(M_SEND, "send", "Secure Neighbour Discovery");
59
60/*
61 * The socket used to communicate with the SeND daemon.
62 */
29
30#include <sys/param.h>
31#include <sys/kernel.h>
32#include <sys/mbuf.h>
33#include <sys/module.h>
34#include <sys/priv.h>
35#include <sys/protosw.h>
36#include <sys/systm.h>

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

55#include <netinet6/scope6_var.h>
56#include <netinet6/send.h>
57
58MALLOC_DEFINE(M_SEND, "send", "Secure Neighbour Discovery");
59
60/*
61 * The socket used to communicate with the SeND daemon.
62 */
63STATIC_VNET_DEFINE(struct socket *, send_so);
63static VNET_DEFINE(struct socket *, send_so);
64#define V_send_so VNET(send_so)
65
66u_long send_sendspace = 8 * (1024 + sizeof(struct sockaddr_send));
67u_long send_recvspace = 9216;
68
69struct mtx send_mtx;
70#define SEND_LOCK_INIT() mtx_init(&send_mtx, "send_mtx", NULL, MTX_DEF)
71#define SEND_LOCK() mtx_lock(&send_mtx)

--- 296 unchanged lines hidden ---
64#define V_send_so VNET(send_so)
65
66u_long send_sendspace = 8 * (1024 + sizeof(struct sockaddr_send));
67u_long send_recvspace = 9216;
68
69struct mtx send_mtx;
70#define SEND_LOCK_INIT() mtx_init(&send_mtx, "send_mtx", NULL, MTX_DEF)
71#define SEND_LOCK() mtx_lock(&send_mtx)

--- 296 unchanged lines hidden ---