summaryrefslogtreecommitdiffstats
path: root/sys/net/pfil.h
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2013-08-24 10:36:33 +0000
committerandre <andre@FreeBSD.org>2013-08-24 10:36:33 +0000
commitf0d721b842a1a9782a947267e3c0724066e223a0 (patch)
treeeb56507a7b6483a999116b24cf34add6363c5c24 /sys/net/pfil.h
parent8095dac6a243c9f42f6ec86e671e00b39b0c133f (diff)
downloadFreeBSD-src-f0d721b842a1a9782a947267e3c0724066e223a0.zip
FreeBSD-src-f0d721b842a1a9782a947267e3c0724066e223a0.tar.gz
Internalize pfil_hook_get(). There are no outside consumers of
this API, it is only safe for internal use and even the pfil(9) man page says so in the BUGS section. Reviewed by: eri
Diffstat (limited to 'sys/net/pfil.h')
-rw-r--r--sys/net/pfil.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/net/pfil.h b/sys/net/pfil.h
index b91328f..5c763dc 100644
--- a/sys/net/pfil.h
+++ b/sys/net/pfil.h
@@ -132,16 +132,4 @@ struct pfil_head *pfil_head_get(int, u_long);
#define PFIL_LIST_LOCK() mtx_lock(&pfil_global_lock)
#define PFIL_LIST_UNLOCK() mtx_unlock(&pfil_global_lock)
-static __inline struct packet_filter_hook *
-pfil_hook_get(int dir, struct pfil_head *ph)
-{
-
- if (dir == PFIL_IN)
- return (TAILQ_FIRST(&ph->ph_in));
- else if (dir == PFIL_OUT)
- return (TAILQ_FIRST(&ph->ph_out));
- else
- return (NULL);
-}
-
#endif /* _NET_PFIL_H_ */
OpenPOWER on IntegriCloud