]> git.ipfire.org Git - thirdparty/asterisk.git/commit
netsock2: ast_addressfamily_to_sockaddrsize and ast_sockaddr_from_sockaddr.
authorJaco Kroon <jaco@uls.co.za>
Tue, 3 Dec 2019 18:27:38 +0000 (20:27 +0200)
committerJaco Kroon <jaco@uls.co.za>
Fri, 10 Jan 2020 07:57:35 +0000 (01:57 -0600)
commitb92b0469ff17273fbf97a7c33ec2573fafc4d09e
tree7f5af9097b04ec532f3802bed2535220638ab7e6
parent3746b1e09ed0b2f791c4fbd2b5be7e2ba07e41a5
netsock2: ast_addressfamily_to_sockaddrsize and ast_sockaddr_from_sockaddr.

ast_addressfamily_to_sockaddrize will determine the size that's
required, and ast_sockaddr_from_sockaddr then wraps this new function
and ast_sockaddr_copy_sockaddr to copy arbitrary sockaddr's (without
knowing the address family) into the ast_sockaddr structure.

Change-Id: Iee604e96e9096c79b477d6e5ff310cf0b06dae86
Signed-off-by: Jaco Kroon <jaco@uls.co.za>
include/asterisk/netsock2.h