struct packet_filter_hook is actually implementation detail; hide it
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 16 Sep 2008 11:53:33 +0000 (11:53 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 16 Sep 2008 11:53:33 +0000 (11:53 +0000)
sys/net/pfil.c
sys/net/pfil.h

index 82125c3..2183fa4 100644 (file)
@@ -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
 #include <net/pfil.h>
 #include <net/netmsg2.h>
 
+/*
+ * 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 {
index a028e65..2ae5a7b 100644 (file)
@@ -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
 
 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)