]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Handle IPv4 mapped IPv6 clients when NAT is enabled
authorMatthew Jordan <mjordan@digium.com>
Wed, 8 Apr 2015 11:53:16 +0000 (11:53 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 8 Apr 2015 11:53:16 +0000 (11:53 +0000)
commitbe13c72142d9bf8a7a22308ad2e4142c819775af
tree0f4f4eef7c15927ac68055f8f95af87893d10469
parentf324870dab2f13a0314bd7203dad52392b6089bf
chan_sip: Handle IPv4 mapped IPv6 clients when NAT is enabled

When udpbindaddr is set to the IPv6 bind all address of '::', Asterisk will
attempt to handle both IPv4 and IPv6 addresses, although the information will
be stored in a struct with an AF_INET6 address type. However, the current
NAT handling code won't handle the IPv4 mapped IPv6 addresses correctly.
This patch adds an additional check for the mapped address case, allowing
the NAT code to handle clients even when the address is IPv6.

Review: https://reviewboard.asterisk.org/r/4563/

ASTERISK-18032 #close
Reported by: Christoph Timm
patches:
  nat_with_ipv6.diff submitted by Valentin Vidić (License 6697)
........

Merged revisions 434288 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@434289 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c