Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net #ifdef _KERNEL some function prototypes and an inlin...



details:   https://anonhg.NetBSD.org/src/rev/a98cadf9e561
branches:  trunk
changeset: 586887:a98cadf9e561
user:      perry <perry%NetBSD.org@localhost>
date:      Wed Jan 04 21:10:09 2006 +0000

description:
#ifdef _KERNEL some function prototypes and an inline function
definition.

XXX It may be that this file needs more namespace cleaning (or the
files that include it, like if.h, might need it.)

diffstat:

 sys/net/pfil.h |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r d6bb70f541c4 -r a98cadf9e561 sys/net/pfil.h
--- a/sys/net/pfil.h    Wed Jan 04 20:56:05 2006 +0000
+++ b/sys/net/pfil.h    Wed Jan 04 21:10:09 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pfil.h,v 1.26 2005/12/24 20:45:09 perry Exp $  */
+/*     $NetBSD: pfil.h,v 1.27 2006/01/04 21:10:09 perry Exp $  */
 
 /*
  * Copyright (c) 1996 Matthew R. Green
@@ -85,6 +85,8 @@
 };
 typedef struct pfil_head pfil_head_t;
 
+#ifdef _KERNEL
+
 int    pfil_run_hooks(struct pfil_head *, struct mbuf **, struct ifnet *,
            int);
 
@@ -114,6 +116,8 @@
                return (NULL);
 }
 
+#endif /* _KERNEL */
+
 /* XXX */
 #if defined(_KERNEL_OPT)
 #include "ipfilter.h"
@@ -129,6 +133,6 @@
 #ifdef _KERNEL
 /* in sys/net/if.c */
 extern struct pfil_head if_pfil; /* packet filtering hook for interfaces */
-#endif
+#endif /* _KERNEL */
 
 #endif /* !_NET_PFIL_H_ */



Home | Main Index | Thread Index | Old Index