Lines Matching refs:sa_family
205 if (IS_ENABLED(CONFIG_NET_IPV6) && addr->sa_family == AF_INET6) { in setup_iface()
220 } else if (IS_ENABLED(CONFIG_NET_IPV4) && addr->sa_family == AF_INET) { in setup_iface()
253 if (IS_ENABLED(CONFIG_NET_IPV6) && addr->sa_family == AF_INET6) { in cleanup_iface()
264 } else if (IS_ENABLED(CONFIG_NET_IPV4) && addr->sa_family == AF_INET) { in cleanup_iface()
314 if (IS_ENABLED(CONFIG_NET_IPV6) && remote.sa_family == AF_INET6) { in net_capture_setup()
323 } else if (IS_ENABLED(CONFIG_NET_IPV4) && remote.sa_family == AF_INET) { in net_capture_setup()
333 NET_ERR("Invalid address family %d", remote.sa_family); in net_capture_setup()
389 if (peer.sa_family != local.sa_family) { in net_capture_setup()
391 "(%d vs %d)", peer.sa_family, local.sa_family); in net_capture_setup()
622 if (IS_ENABLED(CONFIG_NET_IPV4) && ctx->local.sa_family == AF_INET) { in capture_send()
624 } else if (IS_ENABLED(CONFIG_NET_IPV6) && ctx->local.sa_family == AF_INET6) { in capture_send()
639 net_pkt_set_family(ip, ctx->local.sa_family); in capture_send()
648 if (IS_ENABLED(CONFIG_NET_IPV4) && ctx->local.sa_family == AF_INET) { in capture_send()
654 } else if (IS_ENABLED(CONFIG_NET_IPV6) && ctx->local.sa_family == AF_INET6) { in capture_send()
680 net_pkt_set_family(pkt, ctx->local.sa_family); in capture_send()
685 if (IS_ENABLED(CONFIG_NET_IPV4) && ctx->local.sa_family == AF_INET) { in capture_send()
690 } else if (IS_ENABLED(CONFIG_NET_IPV6) && ctx->local.sa_family == AF_INET6) { in capture_send()