diff --git a/include/asterisk/acl.h b/include/asterisk/acl.h index 89eff785708e8468967b29d14094b8a58e4f3efe..a0f06df57b58c065ea9910f3b77df8e3b9e3a21b 100644 --- a/include/asterisk/acl.h +++ b/include/asterisk/acl.h @@ -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 * 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 * * \retval 0 Success diff --git a/include/asterisk/netsock2.h b/include/asterisk/netsock2.h index 90122f6c07feab96730433cecabfc3039a09e029..b4513c604a06e9217a971feb7176384d0483aefd 100644 --- a/include/asterisk/netsock2.h +++ b/include/asterisk/netsock2.h @@ -37,9 +37,9 @@ extern "C" { * ever include socket.h. */ enum { - AST_AF_UNSPEC = 0, - AST_AF_INET = 2, - AST_AF_INET6 = 10, + AST_AF_UNSPEC = AF_UNSPEC, + AST_AF_INET = AF_INET, + AST_AF_INET6 = AF_INET6, }; enum ast_transport {