Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / dist / ipf / netinet / ip_auth.h
blob28b6e455ec2a00fc08bd935ebd1a66a5e6404de7
1 /* $NetBSD: ip_auth.h,v 1.5 2007/04/14 20:34:36 martin Exp $ */
3 /*
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_
14 #define FR_NUMAUTH 32
16 typedef struct frauth {
17 int fra_age;
18 int fra_len;
19 int fra_index;
20 u_32_t fra_pass;
21 fr_info_t fra_info;
22 char *fra_buf;
23 u_32_t fra_flx;
24 #ifdef MENTAT
25 queue_t *fra_q;
26 mb_t *fra_m;
27 #endif
28 } frauth_t;
30 typedef struct frauthent {
31 struct frentry fae_fr;
32 struct frauthent *fae_next;
33 struct frauthent **fae_pnext;
34 u_long fae_age;
35 int fae_ref;
36 } frauthent_t;
38 typedef struct fr_authstat {
39 U_QUAD_T fas_hits;
40 U_QUAD_T fas_miss;
41 u_long fas_nospace;
42 u_long fas_added;
43 u_long fas_sendfail;
44 u_long fas_sendok;
45 u_long fas_queok;
46 u_long fas_quefail;
47 u_long fas_expire;
48 frauthent_t *fas_faelist;
49 } fr_authstat_t;
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__ */