lib/socket-util.c
/* Returns true if 'sa' represents an IPv4 or IPv6 address, false otherwise. */
Returns true if 'sa' represents an IPv4 or IPv6 address, false otherwise.
Returns true if ' sa ' represents an IPv4 or IPv6 address false otherwise .
bool
sa_is_ip(const struct sockaddr *sa)
{
    return sa->sa_family == AF_INET || sa->sa_family == AF_INET6;
}
bool sa_is_ip ( const struct sockaddr * sa ) { return sa -> sa_family == AF_INET || sa -> sa_family == AF_INET6 ; }
Returns true if 'sa' represents an IPv4 or IPv6 address, false otherwise.
Returns true if ' sa ' represents an IPv4 or IPv6 address false otherwise .