Deleted Added
full compact
uipc_accf.c (77598) uipc_accf.c (109623)
1/*
2 * Copyright (c) 2000 Paycounter, Inc.
3 * Author: Alfred Perlstein <alfred@paycounter.com>, <alfred@FreeBSD.org>
4 * 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
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*
2 * Copyright (c) 2000 Paycounter, Inc.
3 * Author: Alfred Perlstein <alfred@paycounter.com>, <alfred@FreeBSD.org>
4 * 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
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/kern/uipc_accf.c 77598 2001-06-01 21:47:34Z jesper $
27 * $FreeBSD: head/sys/kern/uipc_accf.c 109623 2003-01-21 08:56:16Z alfred $
28 */
29
30#define ACCEPT_FILTER_MOD
31
32#include "opt_param.h"
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/domain.h>

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

110accept_filt_generic_mod_event(module_t mod, int event, void *data)
111{
112 struct accept_filter *p;
113 struct accept_filter *accfp = (struct accept_filter *) data;
114 int s, error;
115
116 switch (event) {
117 case MOD_LOAD:
28 */
29
30#define ACCEPT_FILTER_MOD
31
32#include "opt_param.h"
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/domain.h>

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

110accept_filt_generic_mod_event(module_t mod, int event, void *data)
111{
112 struct accept_filter *p;
113 struct accept_filter *accfp = (struct accept_filter *) data;
114 int s, error;
115
116 switch (event) {
117 case MOD_LOAD:
118 MALLOC(p, struct accept_filter *, sizeof(*p), M_ACCF, M_WAITOK);
118 MALLOC(p, struct accept_filter *, sizeof(*p), M_ACCF, 0);
119 bcopy(accfp, p, sizeof(*p));
120 s = splnet();
121 error = accept_filt_add(p);
122 splx(s);
123 break;
124
125 case MOD_UNLOAD:
126 /*

--- 24 unchanged lines hidden ---
119 bcopy(accfp, p, sizeof(*p));
120 s = splnet();
121 error = accept_filt_add(p);
122 splx(s);
123 break;
124
125 case MOD_UNLOAD:
126 /*

--- 24 unchanged lines hidden ---