1 /* $NetBSD: ip_auth.h,v 1.5 2007/04/14 20:34:36 martin Exp $ */
4 * Copyright (C) 1997-2001 by Darren Reed & Guido Van Rooij.
6 * See the IPFILTER.LICENCE file for details on licencing.
8 * Id: ip_auth.h,v 2.16.2.4 2008/03/16 06:58:36 darrenr Exp
11 #ifndef _NETINET_IP_AUTH_H_
12 #define _NETINET_IP_AUTH_H_
16 typedef struct frauth
{
30 typedef struct frauthent
{
31 struct frentry fae_fr
;
32 struct frauthent
*fae_next
;
33 struct frauthent
**fae_pnext
;
38 typedef struct fr_authstat
{
48 frauthent_t
*fas_faelist
;
52 extern frentry_t
*ipauth
;
53 extern struct fr_authstat fr_authstats
;
54 extern int fr_defaultauthage
;
55 extern int fr_authstart
;
56 extern int fr_authend
;
57 extern int fr_authsize
;
58 extern int fr_authused
;
59 extern int fr_auth_lock
;
60 extern frentry_t
*fr_checkauth
__P((fr_info_t
*, u_32_t
*));
61 extern void fr_authexpire
__P((void));
62 extern int fr_authinit
__P((void));
63 extern void fr_authunload
__P((void));
64 extern int fr_authflush
__P((void));
65 extern mb_t
**fr_authpkts
;
66 extern int fr_newauth
__P((mb_t
*, fr_info_t
*));
67 extern int fr_preauthcmd
__P((ioctlcmd_t
, frentry_t
*, frentry_t
**));
68 extern int fr_auth_ioctl
__P((void *, ioctlcmd_t
, int, int, void *));
69 extern int fr_auth_waiting
__P((void));
71 #endif /* __IP_AUTH_H__ */