Lines Matching refs:af
1313 int af; in socket_get_family() local
1314 socklen_t sl = sizeof(af); in socket_get_family()
1316 if (getsockopt(fd, SOL_SOCKET, SO_DOMAIN, &af, &sl) < 0) in socket_get_family()
1319 if (sl != sizeof(af)) in socket_get_family()
1322 return af; in socket_get_family()
1325 int socket_set_recvpktinfo(int fd, int af, bool b) { in socket_set_recvpktinfo() argument
1328 if (af == AF_UNSPEC) { in socket_set_recvpktinfo()
1329 r = socket_get_family(fd, &af); in socket_set_recvpktinfo()
1334 switch (af) { in socket_set_recvpktinfo()
1353 int socket_set_unicast_if(int fd, int af, int ifi) { in socket_set_unicast_if() argument
1357 if (af == AF_UNSPEC) { in socket_set_unicast_if()
1358 r = socket_get_family(fd, &af); in socket_set_unicast_if()
1363 switch (af) { in socket_set_unicast_if()
1376 int socket_set_option(int fd, int af, int opt_ipv4, int opt_ipv6, int val) { in socket_set_option() argument
1379 if (af == AF_UNSPEC) { in socket_set_option()
1380 r = socket_get_family(fd, &af); in socket_set_option()
1385 switch (af) { in socket_set_option()
1398 int socket_get_mtu(int fd, int af, size_t *ret) { in socket_get_mtu() argument
1401 if (af == AF_UNSPEC) { in socket_get_mtu()
1402 r = socket_get_family(fd, &af); in socket_get_mtu()
1407 switch (af) { in socket_get_mtu()