1/* $FreeBSD: head/sys/contrib/ipfilter/netinet/ip_auth.h 145522 2005-04-25 18:43:14Z darrenr $ */ 2 |
3/* 4 * Copyright (C) 1997-2001 by Darren Reed & Guido Van Rooij. 5 * 6 * See the IPFILTER.LICENCE file for details on licencing. 7 *
|
6 * $FreeBSD: head/sys/contrib/ipfilter/netinet/ip_auth.h 110915 2003-02-15 06:23:45Z darrenr $
|
8 * $FreeBSD: head/sys/contrib/ipfilter/netinet/ip_auth.h 145522 2005-04-25 18:43:14Z darrenr $ 9 * Id: ip_auth.h,v 2.16 2003/07/25 12:29:56 darrenr Exp |
10 * 11 */ 12#ifndef __IP_AUTH_H__ 13#define __IP_AUTH_H__ 14 15#define FR_NUMAUTH 32 16 17typedef struct frauth { 18 int fra_age;
|
19 int fra_len; |
20 int fra_index; 21 u_32_t fra_pass; 22 fr_info_t fra_info;
|
19#if SOLARIS
|
23 char *fra_buf; 24#ifdef MENTAT |
25 queue_t *fra_q; 26#endif 27} frauth_t; 28 29typedef struct frauthent { 30 struct frentry fae_fr; 31 struct frauthent *fae_next; 32 u_long fae_age; 33} frauthent_t; 34 35typedef struct fr_authstat { 36 U_QUAD_T fas_hits; 37 U_QUAD_T fas_miss; 38 u_long fas_nospace; 39 u_long fas_added; 40 u_long fas_sendfail; 41 u_long fas_sendok; 42 u_long fas_queok; 43 u_long fas_quefail; 44 u_long fas_expire; 45 frauthent_t *fas_faelist; 46} fr_authstat_t; 47 48 49extern frentry_t *ipauth; 50extern struct fr_authstat fr_authstats; 51extern int fr_defaultauthage;
|
52extern int fr_authstart; 53extern int fr_authend; |
54extern int fr_authsize; 55extern int fr_authused; 56extern int fr_auth_lock;
|
50extern u_32_t fr_checkauth __P((ip_t *, fr_info_t *));
|
57extern frentry_t *fr_checkauth __P((fr_info_t *, u_32_t *)); |
58extern void fr_authexpire __P((void));
|
59extern int fr_authinit __P((void)); |
60extern void fr_authunload __P((void));
|
53extern mb_t *fr_authpkts[];
54extern int fr_newauth __P((mb_t *, fr_info_t *, ip_t *));
55#if defined(__NetBSD__) || defined(__OpenBSD__) || \
56 (__FreeBSD_version >= 300003)
57extern int fr_preauthcmd __P((u_long, frentry_t *, frentry_t **));
58extern int fr_auth_ioctl __P((caddr_t, int, u_long));
59#else
60extern int fr_preauthcmd __P((int, frentry_t *, frentry_t **));
61extern int fr_auth_ioctl __P((caddr_t, int, int));
62#endif
|
61extern int fr_authflush __P((void)); 62extern mb_t **fr_authpkts; 63extern int fr_newauth __P((mb_t *, fr_info_t *)); 64extern int fr_preauthcmd __P((ioctlcmd_t, frentry_t *, frentry_t **)); 65extern int fr_auth_ioctl __P((caddr_t, ioctlcmd_t, int)); 66 |
67#endif /* __IP_AUTH_H__ */
|