Lines Matching refs:AF_INET
705 if (remote->sa_family == AF_INET) in wg_peer_set_sockaddr()
778 case AF_INET: in wg_aip_add()
854 case AF_INET: in wg_aip_lookup()
892 case AF_INET: in wg_aip_remove_all()
941 ret = wg_socket_open(&so4, AF_INET, &bound_port, sc); in wg_socket_init()
997 if (af == AF_INET) { in wg_socket_open()
1000 sin.sin_family = AF_INET; in wg_socket_open()
1031 if (bound_sa->sa_family == AF_INET) in wg_socket_open()
1138 if (sa->sa_family == AF_INET && so->so_so4 != NULL) { in wg_send()
1814 *af = AF_INET; in determine_af_and_pullup()
1823 *m = m_pullup(*m, (*af == AF_INET ? sizeof(*ip) : sizeof(*ip6))); in determine_af_and_pullup()
1902 if (pkt->p_af == AF_INET) { in wg_decrypt()
1904 allowed_peer = wg_aip_lookup(sc, AF_INET, &ip->ip_src); in wg_decrypt()
2087 netisr_queue((pkt->p_af == AF_INET ? in wg_deliver_in()
2140 case AF_INET: in wg_input()
2327 (af == AF_INET ? in wg_output()
2356 if (af == AF_INET) in wg_output()
2461 if (aip->a_af == AF_INET) { in wg_ioctl_get()