~guilhem-fr/asterisk/11

Viewing all changes in revision 24012.

  • Committer: mjordan
  • Date: 2015-04-08 11:51:24 UTC
  • Revision ID: svn-v4:f38db490-d61c-443f-a65b-d21fe96a405b:branches/11:434288
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)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: