|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. ! 3: * ! 4: * @APPLE_LICENSE_HEADER_START@ ! 5: * ! 6: * The contents of this file constitute Original Code as defined in and ! 7: * are subject to the Apple Public Source License Version 1.1 (the ! 8: * "License"). You may not use this file except in compliance with the ! 9: * License. Please obtain a copy of the License at ! 10: * http://www.apple.com/publicsource and read it before using this file. ! 11: * ! 12: * This Original Code and all software distributed under the License are ! 13: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER ! 14: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, ! 15: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, ! 16: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the ! 17: * License for the specific language governing rights and limitations ! 18: * under the License. ! 19: * ! 20: * @APPLE_LICENSE_HEADER_END@ ! 21: */ ! 22: /* ! 23: * Copyright (C) 1997 by Darren Reed & Guido Van Rooij. ! 24: * ! 25: * Redistribution and use in source and binary forms are permitted ! 26: * provided that this notice is preserved and due credit is given ! 27: * to the original author and the contributors. ! 28: * ! 29: */ ! 30: #ifndef __IP_AUTH_H__ ! 31: #define __IP_AUTH_H__ ! 32: ! 33: #define FR_NUMAUTH 32 ! 34: ! 35: typedef 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: } fr_authstat_t; ! 46: ! 47: typedef struct frauth { ! 48: int fra_age; ! 49: int fra_index; ! 50: u_32_t fra_pass; ! 51: fr_info_t fra_info; ! 52: #if SOLARIS ! 53: queue_t *fra_q; ! 54: #endif ! 55: } frauth_t; ! 56: ! 57: typedef struct frauthent { ! 58: struct frentry fae_fr; ! 59: struct frauthent *fae_next; ! 60: u_long fae_age; ! 61: } frauthent_t; ! 62: ! 63: ! 64: extern frentry_t *ipauth; ! 65: extern struct fr_authstat fr_authstats; ! 66: extern int fr_defaultauthage; ! 67: extern int fr_authstart; ! 68: extern int fr_authend; ! 69: extern int fr_authsize; ! 70: extern int fr_authused; ! 71: extern int fr_checkauth __P((ip_t *, fr_info_t *)); ! 72: extern void fr_authexpire __P((void)); ! 73: extern void fr_authunload __P((void)); ! 74: extern mb_t *fr_authpkts[]; ! 75: #if defined(_KERNEL) && SOLARIS ! 76: extern int fr_newauth __P((mb_t *, fr_info_t *, ip_t *, qif_t *)); ! 77: #else ! 78: extern int fr_newauth __P((mb_t *, fr_info_t *, ip_t *)); ! 79: #endif ! 80: #if defined(__NetBSD__) || defined(__OpenBSD__) || (__FreeBSD_version >= 300003) ! 81: extern int fr_auth_ioctl __P((caddr_t, u_long, frentry_t *, frentry_t **)); ! 82: #else ! 83: extern int fr_auth_ioctl __P((caddr_t, int, frentry_t *, frentry_t **)); ! 84: #endif ! 85: #endif /* __IP_AUTH_H__ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.