]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
[core] Use switch_stun_ipv6_t for STUN IPv6 write paths. (#3037)
authorDmitry Verenitsin <morbit85@gmail.com>
Tue, 26 May 2026 15:11:11 +0000 (20:11 +0500)
committerGitHub <noreply@github.com>
Tue, 26 May 2026 15:11:11 +0000 (18:11 +0300)
commitbf9c95e8909b33ecbede63fa4649edf4f3434257
treed905291a57c1a043f9499608a1bd6708db9960ce
parent9da537a19f881b67f35bd98895f5939983ccff73
[core] Use switch_stun_ipv6_t for STUN IPv6 write paths. (#3037)

Route IPv6 writes in `switch_stun_packet_attribute_add_binded_address`
and `switch_stun_packet_attribute_add_xor_binded_address` through
`switch_stun_ipv6_t` (16-byte `address[]`) instead of `switch_stun_ip_t`
(4-byte `uint32_t address`).

Add IPv4/IPv6 unit tests for both encoders.

Co-authored-by: Andrey Volk <andywolk@gmail.com>
src/switch_stun.c
tests/unit/Makefile.am
tests/unit/conf_stun/freeswitch.xml [new file with mode: 0644]
tests/unit/switch_stun.c [new file with mode: 0644]