mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 15:08:53 +00:00
netsock2: Define AST_AF_* enum constants to their AF_* equivalents
This patch explicitly defines AST_AF_* enum constants to their sys/socket.h defined equivalents. It is certainly unclear why these constants actually have to exist, given that netsock2.h includes sys/socket.h; however, since the code base is already liberally sprinkled with the usage of AST_AF_* (as well as with direct calls to AF_*), this will at least keep the semantics consistent between their usage across systems. ........ Merged revisions 402503 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -208,7 +208,7 @@ enum ast_acl_sense ast_apply_acl(struct ast_acl_list *acl_list, const struct ast
|
|||||||
*
|
*
|
||||||
* \param addr The IP address found. The address family is used
|
* \param addr The IP address found. The address family is used
|
||||||
* as an input parameter to filter the returned addresses. If
|
* as an input parameter to filter the returned addresses. If
|
||||||
* it is 0, both IPv4 and IPv6 addresses can be returned.
|
* it is AST_AF_UNSPEC, both IPv4 and IPv6 addresses can be returned.
|
||||||
* \param hostname The hostname to look up
|
* \param hostname The hostname to look up
|
||||||
*
|
*
|
||||||
* \retval 0 Success
|
* \retval 0 Success
|
||||||
|
@@ -37,9 +37,9 @@ extern "C" {
|
|||||||
* ever include socket.h.
|
* ever include socket.h.
|
||||||
*/
|
*/
|
||||||
enum {
|
enum {
|
||||||
AST_AF_UNSPEC = 0,
|
AST_AF_UNSPEC = AF_UNSPEC,
|
||||||
AST_AF_INET = 2,
|
AST_AF_INET = AF_INET,
|
||||||
AST_AF_INET6 = 10,
|
AST_AF_INET6 = AF_INET6,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum ast_transport {
|
enum ast_transport {
|
||||||
|
Reference in New Issue
Block a user