aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/acl.h
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-19 23:17:02 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-19 23:17:02 +0000
commitc37a8a42b203bde0af14dc15b38a383ae6fbdb27 (patch)
treea00032c636bed69c8be6688a11afc43bc4053dfe /include/asterisk/acl.h
parentd03367cafcf78ba084b460c8a3555405e54362ed (diff)
split acl and netsock code into separate files, in preparation for new netsock implementation
various minor cleanups git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6165 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/acl.h')
-rwxr-xr-xinclude/asterisk/acl.h28
1 files changed, 2 insertions, 26 deletions
diff --git a/include/asterisk/acl.h b/include/asterisk/acl.h
index 3baa45e5c..dc3e3a4c0 100755
--- a/include/asterisk/acl.h
+++ b/include/asterisk/acl.h
@@ -3,9 +3,9 @@
*
* Access Control of various sorts
*
- * Copyright (C) 1999, Mark Spencer
+ * Copyright (C) 1999-2005, Digium, Inc.
*
- * Mark Spencer <markster@linux-support.net>
+ * Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
@@ -21,7 +21,6 @@ extern "C" {
#include <netinet/in.h>
#include "asterisk/io.h"
-#include "asterisk/astobj.h"
#define AST_SENSE_DENY 0
#define AST_SENSE_ALLOW 1
@@ -29,12 +28,6 @@ extern "C" {
/* Host based access control */
struct ast_ha;
-struct ast_netsock;
-
-struct ast_netsock_list {
- ASTOBJ_CONTAINER_COMPONENTS(struct ast_netsock);
- struct io_context *ioc;
-};
extern void ast_free_ha(struct ast_ha *ha);
extern struct ast_ha *ast_append_ha(char *sense, char *stuff, struct ast_ha *path);
@@ -44,25 +37,8 @@ extern int ast_get_ip_or_srv(struct sockaddr_in *sin, const char *value, const c
extern int ast_ouraddrfor(struct in_addr *them, struct in_addr *us);
extern int ast_lookup_iface(char *iface, struct in_addr *address);
extern struct ast_ha *ast_duplicate_ha_list(struct ast_ha *original);
-extern int ast_netsock_init(struct ast_netsock_list *list);
-extern struct ast_netsock *ast_netsock_bind(struct ast_netsock_list *list, struct io_context *ioc, const char *bindinfo, int defaultport, int tos, ast_io_cb callback, void *data);
-extern struct ast_netsock *ast_netsock_bindaddr(struct ast_netsock_list *list, struct io_context *ioc, struct sockaddr_in *bindaddr, int tos, ast_io_cb callback, void *data);
-extern int ast_netsock_free(struct ast_netsock_list *list, struct ast_netsock *netsock);
-extern int ast_netsock_release(struct ast_netsock_list *list);
-extern struct ast_netsock *ast_netsock_find(struct ast_netsock_list *list,
- struct sockaddr_in *sa);
-extern int ast_netsock_sockfd(struct ast_netsock *ns);
-extern const struct sockaddr_in *ast_netsock_boundaddr(struct ast_netsock *ns);
-extern void *ast_netsock_data(struct ast_netsock *ns);
extern int ast_find_ourip(struct in_addr *ourip, struct sockaddr_in bindaddr);
-/*! Compares the source address and port of two sockaddr_in */
-static inline int inaddrcmp(struct sockaddr_in *sin1, struct sockaddr_in *sin2)
-{
- return ((sin1->sin_addr.s_addr != sin2->sin_addr.s_addr )
- || (sin1->sin_port != sin2->sin_port));
-}
-
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif