Deleted Added
sdiff udiff text old ( 110915 ) new ( 145522 )
full compact
1/*
2 * Copyright (C) 1997-2001 by Darren Reed & Guido Van Rooij.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 *
6 * $FreeBSD: head/sys/contrib/ipfilter/netinet/ip_auth.h 110915 2003-02-15 06:23:45Z darrenr $
7 *
8 */
9#ifndef __IP_AUTH_H__
10#define __IP_AUTH_H__
11
12#define FR_NUMAUTH 32
13
14typedef struct frauth {
15 int fra_age;
16 int fra_index;
17 u_32_t fra_pass;
18 fr_info_t fra_info;
19#if SOLARIS
20 queue_t *fra_q;
21#endif
22} frauth_t;
23
24typedef struct frauthent {
25 struct frentry fae_fr;
26 struct frauthent *fae_next;
27 u_long fae_age;

--- 11 unchanged lines hidden (view full) ---

39 u_long fas_expire;
40 frauthent_t *fas_faelist;
41} fr_authstat_t;
42
43
44extern frentry_t *ipauth;
45extern struct fr_authstat fr_authstats;
46extern int fr_defaultauthage;
47extern int fr_authsize;
48extern int fr_authused;
49extern int fr_auth_lock;
50extern u_32_t fr_checkauth __P((ip_t *, fr_info_t *));
51extern void fr_authexpire __P((void));
52extern 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
63#endif /* __IP_AUTH_H__ */