mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-09 14:36:48 +00:00
Make ACLs IPv6-capable.
ACLs can now be configured to match IPv6 networks. This is only relevant for ACLs in chan_sip for now since other channel drivers do not support IPv6 addressing. However, once those channel drivers are outfitted to support IPv6 addressing, the ACLs will already be ready for IPv6 support. https://reviewboard.asterisk.org/r/791 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@277814 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -55,6 +55,20 @@ struct ast_sockaddr {
|
||||
socklen_t len;
|
||||
};
|
||||
|
||||
/*!
|
||||
* \brief
|
||||
* Convert an IPv4-mapped IPv6 address into an IPv4 address.
|
||||
*
|
||||
* \warning You should rarely need this function. Only call this
|
||||
* if you know what you're doing.
|
||||
*
|
||||
* \param addr The IPv4-mapped address to convert
|
||||
* \param mapped_addr The resulting IPv4 address
|
||||
* \retval 0 Unable to make the conversion
|
||||
* \retval 1 Successful conversion
|
||||
*/
|
||||
int ast_sockaddr_ipv4_mapped(const struct ast_sockaddr *addr, struct ast_sockaddr *ast_mapped);
|
||||
|
||||
/*!
|
||||
* \since 1.8
|
||||
*
|
||||
|
Reference in New Issue
Block a user