2002-01-24 11:23:40 +03:00
|
|
|
/* $NetBSD: ip_auth.h,v 1.10 2002/01/24 08:23:41 martti Exp $ */
|
1997-07-06 08:58:52 +04:00
|
|
|
|
|
|
|
/*
|
2002-01-24 11:21:30 +03:00
|
|
|
* Copyright (C) 1997-2001 by Darren Reed & Guido Van Rooij.
|
1997-07-06 08:58:52 +04:00
|
|
|
*
|
2002-01-24 11:21:30 +03:00
|
|
|
* See the IPFILTER.LICENCE file for details on licencing.
|
1997-07-06 08:58:52 +04:00
|
|
|
*
|
2002-01-24 11:21:30 +03:00
|
|
|
* Id: ip_auth.h,v 2.3.2.5 2001/11/04 13:15:51 darrenr Exp
|
1997-07-06 08:58:52 +04:00
|
|
|
*
|
|
|
|
*/
|
1998-02-10 04:26:19 +03:00
|
|
|
#ifndef _NETINET_IP_AUTH_H_
|
|
|
|
#define _NETINET_IP_AUTH_H_
|
1997-07-06 08:58:52 +04:00
|
|
|
|
|
|
|
#define FR_NUMAUTH 32
|
|
|
|
|
|
|
|
typedef struct frauth {
|
|
|
|
int fra_age;
|
|
|
|
int fra_index;
|
|
|
|
u_32_t fra_pass;
|
|
|
|
fr_info_t fra_info;
|
|
|
|
#if SOLARIS
|
|
|
|
queue_t *fra_q;
|
|
|
|
#endif
|
|
|
|
} frauth_t;
|
|
|
|
|
|
|
|
typedef struct frauthent {
|
|
|
|
struct frentry fae_fr;
|
|
|
|
struct frauthent *fae_next;
|
|
|
|
u_long fae_age;
|
|
|
|
} frauthent_t;
|
|
|
|
|
1999-12-12 14:11:15 +03:00
|
|
|
typedef struct fr_authstat {
|
|
|
|
U_QUAD_T fas_hits;
|
|
|
|
U_QUAD_T fas_miss;
|
|
|
|
u_long fas_nospace;
|
|
|
|
u_long fas_added;
|
|
|
|
u_long fas_sendfail;
|
|
|
|
u_long fas_sendok;
|
|
|
|
u_long fas_queok;
|
|
|
|
u_long fas_quefail;
|
|
|
|
u_long fas_expire;
|
|
|
|
frauthent_t *fas_faelist;
|
|
|
|
} fr_authstat_t;
|
|
|
|
|
1997-07-06 08:58:52 +04:00
|
|
|
|
|
|
|
extern frentry_t *ipauth;
|
|
|
|
extern struct fr_authstat fr_authstats;
|
|
|
|
extern int fr_defaultauthage;
|
|
|
|
extern int fr_authsize;
|
|
|
|
extern int fr_authused;
|
2000-05-03 15:12:03 +04:00
|
|
|
extern int fr_auth_lock;
|
1999-12-12 14:11:15 +03:00
|
|
|
extern u_32_t fr_checkauth __P((ip_t *, fr_info_t *));
|
1997-07-06 08:58:52 +04:00
|
|
|
extern void fr_authexpire __P((void));
|
|
|
|
extern void fr_authunload __P((void));
|
|
|
|
extern mb_t *fr_authpkts[];
|
|
|
|
extern int fr_newauth __P((mb_t *, fr_info_t *, ip_t *));
|
2002-01-24 11:21:30 +03:00
|
|
|
#if defined(__NetBSD__) || defined(__OpenBSD__) || \
|
|
|
|
(__FreeBSD_version >= 300003)
|
|
|
|
extern int fr_auth_ioctl __P((caddr_t, int, u_long, frentry_t *, frentry_t **));
|
1997-07-06 08:58:52 +04:00
|
|
|
#else
|
2002-01-24 11:21:30 +03:00
|
|
|
extern int fr_auth_ioctl __P((caddr_t, int, int, frentry_t *, frentry_t **));
|
1997-07-06 08:58:52 +04:00
|
|
|
#endif
|
1998-02-10 04:26:19 +03:00
|
|
|
#endif /* _NETINET_IP_AUTH_H_ */
|