]>
git.saurik.com Git - apple/xnu.git/blob - bsd/netinet/ip_auth.h
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
23 * Copyright (C) 1997 by Darren Reed & Guido Van Rooij.
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.
35 typedef struct fr_authstat
{
47 typedef struct frauth
{
57 typedef struct frauthent
{
58 struct frentry fae_fr
;
59 struct frauthent
*fae_next
;
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
*));
78 extern int fr_newauth
__P((mb_t
*, fr_info_t
*, ip_t
*));
80 #if defined(__NetBSD__) || defined(__OpenBSD__) || (__FreeBSD_version >= 300003)
81 extern int fr_auth_ioctl
__P((caddr_t
, u_long
, frentry_t
*, frentry_t
**));
83 extern int fr_auth_ioctl
__P((caddr_t
, int, frentry_t
*, frentry_t
**));
85 #endif /* __IP_AUTH_H__ */