From: Chuck Lever Date: Thu, 14 Jan 2010 17:22:59 +0000 (-0500) Subject: sm-notify: Use getaddrinfo(3) to create bind address in smn_create_socket() X-Git-Tag: nfs-utils-1-2-2-rc7~18 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=51fdac83e3afd86d0885c6b83123758708da61b1;hp=51fdac83e3afd86d0885c6b83123758708da61b1 sm-notify: Use getaddrinfo(3) to create bind address in smn_create_socket() This patch updates the "bind to a user-specified port" arm of smn_create_socket() so it can deal with IPv6 bind addresses. A single getaddrinfo(3) call can convert a user-specified bind address or hostname to a socket address, optionally plant a provided port number, or whip up an appropriate wildcard address for use as the main socket's bind address. Signed-off-by: Chuck Lever ---