OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [include/] [netinet/] [ip_auth.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1254 phoenix
//==========================================================================
2
//
3
//      include/netinet/ip_auth.h
4
//
5
//      
6
//
7
//==========================================================================
8
//####BSDCOPYRIGHTBEGIN####
9
//
10
// -------------------------------------------
11
//
12
// Portions of this software may have been derived from OpenBSD or other sources,
13
// and are covered by the appropriate copyright disclaimers included herein.
14
//
15
// -------------------------------------------
16
//
17
//####BSDCOPYRIGHTEND####
18
//==========================================================================
19
//#####DESCRIPTIONBEGIN####
20
//
21
// Author(s):    gthomas
22
// Contributors: gthomas
23
// Date:         2000-01-10
24
// Purpose:      
25
// Description:  
26
//              
27
//
28
//####DESCRIPTIONEND####
29
//
30
//==========================================================================
31
 
32
 
33
/* $OpenBSD: ip_auth.h,v 1.4 1999/12/15 05:20:21 kjell Exp $ */
34
/*
35
 * Copyright (C) 1997-1998 by Darren Reed & Guido Van Rooij.
36
 *
37
 * Redistribution and use in source and binary forms are permitted
38
 * provided that this notice is preserved and due credit is given
39
 * to the original author and the contributors.
40
 *
41
 */
42
 
43
#ifndef _NETINET_IP_AUTH_H__
44
#define _NETINET_IP_AUTH_H__
45
 
46
#define FR_NUMAUTH      32
47
 
48
typedef struct  frauth {
49
        int     fra_age;
50
        int     fra_index;
51
        u_32_t  fra_pass;
52
        fr_info_t       fra_info;
53
#if SOLARIS
54
        queue_t *fra_q;
55
#endif
56
} frauth_t;
57
 
58
typedef struct  frauthent  {
59
        struct  frentry fae_fr;
60
        struct  frauthent       *fae_next;
61
        u_long  fae_age;
62
} frauthent_t;
63
 
64
typedef struct  fr_authstat {
65
        U_QUAD_T        fas_hits;
66
        U_QUAD_T        fas_miss;
67
        u_long          fas_nospace;
68
        u_long          fas_added;
69
        u_long          fas_sendfail;
70
        u_long          fas_sendok;
71
        u_long          fas_queok;
72
        u_long          fas_quefail;
73
        u_long          fas_expire;
74
        frauthent_t     *fas_faelist;
75
} fr_authstat_t;
76
 
77
 
78
extern  frentry_t       *ipauth;
79
extern  struct fr_authstat      fr_authstats;
80
extern  int     fr_defaultauthage;
81
extern  int     fr_authstart;
82
extern  int     fr_authend;
83
extern  int     fr_authsize;
84
extern  int     fr_authused;
85
extern  u_32_t  fr_checkauth __P((ip_t *, fr_info_t *));
86
extern  void    fr_authexpire __P((void));
87
extern  void    fr_authunload __P((void));
88
extern  mb_t    *fr_authpkts[];
89
#if defined(_KERNEL) && SOLARIS
90
extern  int     fr_newauth __P((mb_t *, fr_info_t *, ip_t *, qif_t *));
91
#else
92
extern  int     fr_newauth __P((mb_t *, fr_info_t *, ip_t *));
93
#endif
94
#if defined(__NetBSD__) || defined(__OpenBSD__)
95
extern  int     fr_auth_ioctl __P((caddr_t, u_long, frentry_t *, frentry_t **));
96
#else
97
extern  int     fr_auth_ioctl __P((caddr_t, int, frentry_t *, frentry_t **));
98
#endif
99
#endif  /* _NETINET_IP_AUTH_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.