From 23917a5e48525eb528467cce6a93fd480f1b314e Mon Sep 17 00:00:00 2001 From: perry Date: Wed, 4 Jan 2006 21:10:09 +0000 Subject: [PATCH] #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.) --- sys/net/pfil.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/net/pfil.h b/sys/net/pfil.h index b7e2e824daa1..998d15d799ee 100644 --- a/sys/net/pfil.h +++ b/sys/net/pfil.h @@ -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 @@ struct pfil_head { }; 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 @@ pfil_hook_get(int dir, struct pfil_head *ph) return (NULL); } +#endif /* _KERNEL */ + /* XXX */ #if defined(_KERNEL_OPT) #include "ipfilter.h" @@ -129,6 +133,6 @@ pfil_hook_get(int dir, struct pfil_head *ph) #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_ */