4 * Copyright (C) 2012 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
9 * Id: ip_auth.h,v 2.16.2.2 2006/03/16 06:45:49 darrenr Exp $
17 typedef struct frauth {
31 typedef struct frauthent {
32 struct frentry fae_fr;
33 struct frauthent *fae_next;
34 struct frauthent **fae_pnext;
39 typedef struct ipf_authstat {
49 frauthent_t *fas_faelist;
52 typedef struct ipf_auth_softc_s {
53 ipfrwlock_t ipf_authlk;
54 ipfmutex_t ipf_auth_mx;
58 int ipf_auth_defaultage;
60 ipf_authstat_t ipf_auth_stats;
66 frauthent_t *ipf_auth_entries;
67 frentry_t *ipf_auth_ip;
68 frentry_t *ipf_auth_rules;
71 extern frentry_t *ipf_auth_check __P((fr_info_t *, u_32_t *));
72 extern void ipf_auth_expire __P((ipf_main_softc_t *));
73 extern int ipf_auth_ioctl __P((ipf_main_softc_t *, caddr_t, ioctlcmd_t,
75 extern int ipf_auth_init __P((void));
76 extern int ipf_auth_main_load __P((void));
77 extern int ipf_auth_main_unload __P((void));
78 extern void ipf_auth_soft_destroy __P((ipf_main_softc_t *, void *));
79 extern void *ipf_auth_soft_create __P((ipf_main_softc_t *));
80 extern int ipf_auth_new __P((mb_t *, fr_info_t *));
81 extern int ipf_auth_precmd __P((ipf_main_softc_t *, ioctlcmd_t,
82 frentry_t *, frentry_t **));
83 extern void ipf_auth_unload __P((ipf_main_softc_t *));
84 extern int ipf_auth_waiting __P((ipf_main_softc_t *));
85 extern void ipf_auth_setlock __P((void *, int));
86 extern int ipf_auth_soft_init __P((ipf_main_softc_t *, void *));
87 extern int ipf_auth_soft_fini __P((ipf_main_softc_t *, void *));
88 extern u_32_t ipf_auth_pre_scanlist __P((ipf_main_softc_t *, fr_info_t *,
90 extern frentry_t **ipf_auth_rulehead __P((ipf_main_softc_t *));
92 #endif /* __IP_AUTH_H__ */