From caa0af9fbab4db10bf61499d09564f8f7d5a27ce Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Tue, 16 Sep 2008 11:53:33 +0000 Subject: [PATCH] struct packet_filter_hook is actually implementation detail; hide it --- sys/net/pfil.c | 13 ++++++++++++- sys/net/pfil.h | 14 ++------------ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/sys/net/pfil.c b/sys/net/pfil.c index 82125c37cb..2183fa44fd 100644 --- a/sys/net/pfil.c +++ b/sys/net/pfil.c @@ -1,5 +1,5 @@ /* $NetBSD: pfil.c,v 1.20 2001/11/12 23:49:46 lukem Exp $ */ -/* $DragonFly: src/sys/net/pfil.c,v 1.11 2008/09/14 11:13:00 sephe Exp $ */ +/* $DragonFly: src/sys/net/pfil.c,v 1.12 2008/09/16 11:53:33 sephe Exp $ */ /* * Copyright (c) 1996 Matthew R. Green @@ -42,6 +42,17 @@ #include #include +/* + * The packet filter hooks are designed for anything to call them to + * possibly intercept the packet. + */ +struct packet_filter_hook { + TAILQ_ENTRY(packet_filter_hook) pfil_link; + pfil_func_t pfil_func; + void *pfil_arg; + int pfil_flags; +}; + #define PFIL_CFGPORT cpu_portfn(0) struct netmsg_pfil { diff --git a/sys/net/pfil.h b/sys/net/pfil.h index a028e6567a..2ae5a7bbcd 100644 --- a/sys/net/pfil.h +++ b/sys/net/pfil.h @@ -1,5 +1,5 @@ /* $NetBSD: pfil.h,v 1.22 2003/06/23 12:57:08 martin Exp $ */ -/* $DragonFly: src/sys/net/pfil.h,v 1.9 2008/09/15 05:11:02 sephe Exp $ */ +/* $DragonFly: src/sys/net/pfil.h,v 1.10 2008/09/16 11:53:33 sephe Exp $ */ /* * Copyright (c) 1996 Matthew R. Green @@ -44,20 +44,10 @@ struct mbuf; struct ifnet; +struct packet_filter_hook; typedef int (*pfil_func_t)(void *, struct mbuf **, struct ifnet *, int); -/* - * The packet filter hooks are designed for anything to call them to - * possibly intercept the packet. - */ -struct packet_filter_hook { - TAILQ_ENTRY(packet_filter_hook) pfil_link; - pfil_func_t pfil_func; - void *pfil_arg; - int pfil_flags; -}; - #define PFIL_IN 0x00000001 #define PFIL_OUT 0x00000002 #define PFIL_ALL (PFIL_IN|PFIL_OUT) -- 2.41.0