Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

acl.h

Go to the documentation of this file.
00001 /*
00002  * Asterisk -- A telephony toolkit for Linux.
00003  *
00004  * Access Control of various sorts
00005  * 
00006  * Copyright (C) 1999, Mark Spencer
00007  *
00008  * Mark Spencer <markster@linux-support.net>
00009  *
00010  * This program is free software, distributed under the terms of
00011  * the GNU General Public License
00012  */
00013 
00014 #ifndef _ASTERISK_ACL_H
00015 #define _ASTERISK_ACL_H
00016 
00017 #if defined(__cplusplus) || defined(c_plusplus)
00018 extern "C" {
00019 #endif
00020 
00021 #include <netinet/in.h>
00022 
00023 /* Host based access control */
00024 
00025 struct ast_ha;
00026 
00027 extern void ast_free_ha(struct ast_ha *ha);
00028 extern struct ast_ha *ast_append_ha(char *sense, char *stuff, struct ast_ha *path);
00029 extern int ast_apply_ha(struct ast_ha *ha, struct sockaddr_in *sin);
00030 extern int ast_get_ip(struct sockaddr_in *sin, char *value);
00031 extern int inaddrcmp(struct sockaddr_in *sin1, struct sockaddr_in *sin2);
00032 extern int ast_ouraddrfor(struct in_addr *them, struct in_addr *us);
00033 extern int ast_lookup_iface(char *iface, struct in_addr *address);
00034 
00035 #if defined(__cplusplus) || defined(c_plusplus)
00036 }
00037 #endif
00038 
00039 #endif

Generated on Sun Apr 18 23:33:47 2004 for Asterisk by doxygen 1.3.6-20040222