Lines Matching refs:sa_family
99 if (addr1->sa_family != addr2->sa_family)
103 || addr1->sa_family != addr2->sa_family)
108 switch (addr1->sa_family) {
153 if (addr1->sa_family != addr2->sa_family)
157 || addr1->sa_family != addr2->sa_family)
162 switch (addr1->sa_family) {
218 if (addr1->sa_family != addr2->sa_family)
222 || addr1->sa_family != addr2->sa_family)
227 switch (addr1->sa_family) {
266 int s = socket(remote->sa_family, SOCK_DGRAM, 0); in getlocaladdr()
346 if ((s = socket(remote->sa_family, SOCK_DGRAM, 0)) < 0) {
355 setsockopt_bypass(s, remote->sa_family);
540 if (src->sa_family != dst->sa_family) {
560 if (src->sa_family != ss.ss_family) {
566 switch (src->sa_family) {
703 if (ss.ss_family == src->sa_family && memcmp(&ss, src, sysdep_sa_len(src)) == 0) {
715 sendsock = socket(src->sa_family, SOCK_DGRAM, 0);
739 if (src->sa_family == AF_INET6 &&
749 if (setsockopt_bypass(sendsock, src->sa_family) < 0) {
865 new->sa_family = AF_INET6;
867 new->sa_family = AF_INET;
906 if (saddr->sa_family == AF_UNSPEC)
1042 switch (b->sa_family) {
1055 "invalid family: %d\n", b->sa_family);
1061 "unexpected inconsistency: %d %zu\n", b->sa_family, l);
1102 if (naddr->sa.sa.sa_family != saddr->sa_family) in naddr_score()
1147 switch (addr->sa_family) { in extract_port()
1155 plog(LLV_ERROR, LOCATION, NULL, "unknown AF: %u\n", addr->sa_family); in extract_port()
1170 switch (addr->sa_family) { in get_port_ptr()
1178 plog(LLV_ERROR, LOCATION, NULL, "unknown AF: %u\n", addr->sa_family); in get_port_ptr()