Deleted Added
full compact
pfil.c (316458) pfil.c (317042)
1/* $FreeBSD: stable/11/sys/net/pfil.c 316458 2017-04-03 13:04:36Z ae $ */
1/* $FreeBSD: stable/11/sys/net/pfil.c 317042 2017-04-17 09:34:09Z ae $ */
2/* $NetBSD: pfil.c,v 1.20 2001/11/12 23:49:46 lukem Exp $ */
3
4/*-
5 * Copyright (c) 1996 Matthew R. Green
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

56static struct packet_filter_hook *pfil_chain_get(int, struct pfil_head *);
57static int pfil_chain_add(pfil_chain_t *, struct packet_filter_hook *, int);
58static int pfil_chain_remove(pfil_chain_t *, pfil_func_t, void *);
59
60LIST_HEAD(pfilheadhead, pfil_head);
61VNET_DEFINE(struct pfilheadhead, pfil_head_list);
62#define V_pfil_head_list VNET(pfil_head_list)
63VNET_DEFINE(struct rmlock, pfil_lock);
2/* $NetBSD: pfil.c,v 1.20 2001/11/12 23:49:46 lukem Exp $ */
3
4/*-
5 * Copyright (c) 1996 Matthew R. Green
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

56static struct packet_filter_hook *pfil_chain_get(int, struct pfil_head *);
57static int pfil_chain_add(pfil_chain_t *, struct packet_filter_hook *, int);
58static int pfil_chain_remove(pfil_chain_t *, pfil_func_t, void *);
59
60LIST_HEAD(pfilheadhead, pfil_head);
61VNET_DEFINE(struct pfilheadhead, pfil_head_list);
62#define V_pfil_head_list VNET(pfil_head_list)
63VNET_DEFINE(struct rmlock, pfil_lock);
64#define V_pfil_lock VNET(pfil_lock)
65
66#define PFIL_LOCK_INIT_REAL(l, t) \
67 rm_init_flags(l, "PFil " t " rmlock", RM_RECURSE)
68#define PFIL_LOCK_DESTROY_REAL(l) \
69 rm_destroy(l)
70#define PFIL_LOCK_INIT(p) do { \
71 if ((p)->flags & PFIL_FLAG_PRIVATE_LOCK) { \
72 PFIL_LOCK_INIT_REAL(&(p)->ph_lock, "private"); \

--- 356 unchanged lines hidden ---
64
65#define PFIL_LOCK_INIT_REAL(l, t) \
66 rm_init_flags(l, "PFil " t " rmlock", RM_RECURSE)
67#define PFIL_LOCK_DESTROY_REAL(l) \
68 rm_destroy(l)
69#define PFIL_LOCK_INIT(p) do { \
70 if ((p)->flags & PFIL_FLAG_PRIVATE_LOCK) { \
71 PFIL_LOCK_INIT_REAL(&(p)->ph_lock, "private"); \

--- 356 unchanged lines hidden ---