]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/netinet/ip_auth.h
This commit was generated by cvs2svn to compensate for changes in r47136,
[FreeBSD/FreeBSD.git] / sys / netinet / ip_auth.h
1 /*
2  * Copyright (C) 1997 by Darren Reed & Guido Van Rooij.
3  *
4  * Redistribution and use in source and binary forms are permitted
5  * provided that this notice is preserved and due credit is given
6  * to the original author and the contributors.
7  *
8  * $Id: ip_auth.h,v 1.1.1.1 1997/11/16 05:55:52 peter Exp $
9  *
10  */
11 #ifndef __IP_AUTH_H__
12 #define __IP_AUTH_H__
13
14 #define FR_NUMAUTH      32
15
16 typedef struct  fr_authstat {
17         U_QUAD_T        fas_hits;
18         U_QUAD_T        fas_miss;
19         u_long          fas_nospace;
20         u_long          fas_added;
21         u_long          fas_sendfail;
22         u_long          fas_sendok;
23         u_long          fas_queok;
24         u_long          fas_quefail;
25         u_long          fas_expire;
26 } fr_authstat_t;
27
28 typedef struct  frauth {
29         int     fra_age;
30         int     fra_index;
31         u_32_t  fra_pass;
32         fr_info_t       fra_info;
33 #if SOLARIS
34         queue_t *fra_q;
35 #endif
36 } frauth_t;
37
38 typedef struct  frauthent  {
39         struct  frentry fae_fr;
40         struct  frauthent       *fae_next;
41         u_long  fae_age;
42 } frauthent_t;
43
44
45 extern  frentry_t       *ipauth;
46 extern  struct fr_authstat      fr_authstats;
47 extern  int     fr_defaultauthage;
48 extern  int     fr_authstart;
49 extern  int     fr_authend;
50 extern  int     fr_authsize;
51 extern  int     fr_authused;
52 extern  int     fr_checkauth __P((ip_t *, fr_info_t *));
53 extern  void    fr_authexpire __P((void));
54 extern  void    fr_authunload __P((void));
55 extern  mb_t    *fr_authpkts[];
56 #if defined(_KERNEL) && SOLARIS
57 extern  int     fr_newauth __P((mb_t *, fr_info_t *, ip_t *, qif_t *));
58 #else
59 extern  int     fr_newauth __P((mb_t *, fr_info_t *, ip_t *));
60 #endif
61 #if defined(__NetBSD__) || defined(__OpenBSD__) || (__FreeBSD_version >= 300003)
62 extern  int     fr_auth_ioctl __P((caddr_t, u_long, frentry_t *, frentry_t **));
63 #else
64 extern  int     fr_auth_ioctl __P((caddr_t, int, frentry_t *, frentry_t **));
65 #endif
66 #endif  /* __IP_AUTH_H__ */