Searched refs:pkt_family (Results 1 – 2 of 2) sorted by relevance
643 uint8_t pkt_family = net_pkt_family(pkt); in net_conn_input() local651 if (IS_ENABLED(CONFIG_NET_IP) && (pkt_family == AF_INET || pkt_family == AF_INET6)) { in net_conn_input()662 if (!conn_are_endpoints_valid(pkt, pkt_family, ip_hdr, src_port, dst_port)) { in net_conn_input()666 } else if (IS_ENABLED(CONFIG_NET_SOCKETS_PACKET) && pkt_family == AF_PACKET) { in net_conn_input()670 } else if (IS_ENABLED(CONFIG_NET_SOCKETS_CAN) && pkt_family == AF_CAN) { in net_conn_input()699 if (IS_ENABLED(CONFIG_NET_IPV4) && pkt_family == AF_INET) { in net_conn_input()706 } else if (IS_ENABLED(CONFIG_NET_IPV6) && pkt_family == AF_INET6) { in net_conn_input()723 conn->family != pkt_family) { in net_conn_input()737 if (!(conn->family == AF_INET6 && pkt_family == AF_INET && in net_conn_input()755 if (IS_ENABLED(CONFIG_NET_SOCKETS_PACKET) && pkt_family == AF_PACKET) { in net_conn_input()[all …]
276 uint8_t pkt_family = net_pkt_family(pkt); in npf_ip_src_addr_match() local279 if (IS_ENABLED(CONFIG_NET_IPV4) && pkt_family == AF_INET) { in npf_ip_src_addr_match()285 } else if (IS_ENABLED(CONFIG_NET_IPV6) && pkt_family == AF_INET6) { in npf_ip_src_addr_match()