uipc_accf.c (e57c2b130f2cd40967cf20698d376cc5ada95871) uipc_accf.c (13e403fdeadd26f9748ba83ea50ee271fbfc862a)
1/*-
2 * Copyright (c) 2000 Paycounter, Inc.
3 * Copyright (c) 2005 Robert N. M. Watson
4 * Author: Alfred Perlstein <alfred@paycounter.com>, <alfred@FreeBSD.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

49
50static struct mtx accept_filter_mtx;
51MTX_SYSINIT(accept_filter, &accept_filter_mtx, "accept_filter_mtx",
52 MTX_DEF);
53#define ACCEPT_FILTER_LOCK() mtx_lock(&accept_filter_mtx)
54#define ACCEPT_FILTER_UNLOCK() mtx_unlock(&accept_filter_mtx)
55
56static SLIST_HEAD(, accept_filter) accept_filtlsthd =
1/*-
2 * Copyright (c) 2000 Paycounter, Inc.
3 * Copyright (c) 2005 Robert N. M. Watson
4 * Author: Alfred Perlstein <alfred@paycounter.com>, <alfred@FreeBSD.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

49
50static struct mtx accept_filter_mtx;
51MTX_SYSINIT(accept_filter, &accept_filter_mtx, "accept_filter_mtx",
52 MTX_DEF);
53#define ACCEPT_FILTER_LOCK() mtx_lock(&accept_filter_mtx)
54#define ACCEPT_FILTER_UNLOCK() mtx_unlock(&accept_filter_mtx)
55
56static SLIST_HEAD(, accept_filter) accept_filtlsthd =
57 SLIST_HEAD_INITIALIZER(&accept_filtlsthd);
57 SLIST_HEAD_INITIALIZER(accept_filtlsthd);
58
59MALLOC_DEFINE(M_ACCF, "accf", "accept filter data");
60
61static int unloadable = 0;
62
63SYSCTL_DECL(_net_inet); /* XXX: some header should do this for me */
64SYSCTL_NODE(_net_inet, OID_AUTO, accf, CTLFLAG_RW, 0, "Accept filters");
65SYSCTL_INT(_net_inet_accf, OID_AUTO, unloadable, CTLFLAG_RW, &unloadable, 0,

--- 233 unchanged lines hidden ---
58
59MALLOC_DEFINE(M_ACCF, "accf", "accept filter data");
60
61static int unloadable = 0;
62
63SYSCTL_DECL(_net_inet); /* XXX: some header should do this for me */
64SYSCTL_NODE(_net_inet, OID_AUTO, accf, CTLFLAG_RW, 0, "Accept filters");
65SYSCTL_INT(_net_inet_accf, OID_AUTO, unloadable, CTLFLAG_RW, &unloadable, 0,

--- 233 unchanged lines hidden ---