Home
last modified time | relevance | path

Searched refs:net_pkt_family (Results 1 – 25 of 27) sorted by relevance

12

/Zephyr-Core-3.7.0/subsys/net/ip/
Dcanbus_socket.c23 __ASSERT_NO_MSG(net_pkt_family(pkt) == AF_CAN); in net_canbus_socket_input()
Dudp.c43 enum net_if_checksum_type type = net_pkt_family(pkt) == AF_INET6 ? in net_udp_finalize()
154 enum net_if_checksum_type type = net_pkt_family(pkt) == AF_INET6 ? in net_udp_input()
175 net_pkt_family(pkt) == AF_INET) { in net_udp_input()
Dpacket_socket.c38 orig_family = net_pkt_family(pkt); in net_packet_socket_input()
Dconnection.c491 if (addr->sa_family != net_pkt_family(pkt)) { in conn_addr_cmp()
496 net_pkt_family(pkt) == AF_INET6 && in conn_addr_cmp()
516 net_pkt_family(pkt) == AF_INET && in conn_addr_cmp()
543 if (IS_ENABLED(CONFIG_NET_IPV6) && net_pkt_family(pkt) == AF_INET6) { in conn_send_icmp_error()
643 uint8_t pkt_family = net_pkt_family(pkt); in net_conn_input()
680 " family %d", net_proto2str(net_pkt_family(pkt), proto), pkt, in net_conn_input()
681 ntohs(src_port), ntohs(dst_port), net_pkt_family(pkt)); in net_conn_input()
Dnet_core.c121 uint8_t family = net_pkt_family(pkt); in process_data()
227 family = net_pkt_family(pkt); in check_ip()
420 switch (net_pkt_family(pkt)) { in net_send_data()
Dtp.c360 if (IS_ENABLED(CONFIG_NET_IPV4) && net_pkt_family(pkt) == AF_INET) { in udp_finalize_pkt()
364 if (IS_ENABLED(CONFIG_NET_IPV6) && net_pkt_family(pkt) == AF_INET6) { in udp_finalize_pkt()
373 if (IS_ENABLED(CONFIG_NET_IPV4) && net_pkt_family(pkt) == AF_INET) { in ip_header_add()
383 if (IS_ENABLED(CONFIG_NET_IPV6) && net_pkt_family(pkt) == AF_INET6) { in ip_header_add()
Dtcp.c185 switch (net_pkt_family(pkt)) { in tcp_endpoint_set()
235 NET_ERR("Unknown address family: %hu", net_pkt_family(pkt)); in tcp_endpoint_set()
364 (IS_ENABLED(CONFIG_NET_IPV6) && net_pkt_family(pkt) == AF_INET6 && \
1336 if (IS_ENABLED(CONFIG_NET_IPV4) && net_pkt_family(pkt) == AF_INET) { in tcp_finalize_pkt()
1340 if (IS_ENABLED(CONFIG_NET_IPV6) && net_pkt_family(pkt) == AF_INET6) { in tcp_finalize_pkt()
1381 if (IS_ENABLED(CONFIG_NET_IPV4) && net_pkt_family(pkt) == AF_INET) { in ip_header_add()
1387 if (IS_ENABLED(CONFIG_NET_IPV6) && net_pkt_family(pkt) == AF_INET6) { in ip_header_add()
1448 if (IS_ENABLED(CONFIG_NET_IPV4) && net_pkt_family(pkt) == AF_INET) { in is_destination_local()
1457 if (IS_ENABLED(CONFIG_NET_IPV6) && net_pkt_family(pkt) == AF_INET6) { in is_destination_local()
1489 if (IS_ENABLED(CONFIG_NET_IPV4) && net_pkt_family(pkt) == AF_INET) { in net_tcp_reply_rst()
[all …]
Dutils.c660 net_pkt_family(pkt) == AF_INET) { in net_calc_chksum()
668 net_pkt_family(pkt) == AF_INET6) { in net_calc_chksum()
674 NET_DBG("Unknown protocol family %d", net_pkt_family(pkt)); in net_calc_chksum()
Dnet_pkt.c951 sa_family_t family = net_pkt_family(pkt);
1060 hdr_len = pkt_estimate_headers_length(pkt, net_pkt_family(pkt), proto);
1146 if (!size && proto == 0 && net_pkt_family(pkt) == AF_UNSPEC) {
1161 net_pkt_family(pkt),
1863 net_pkt_set_family(clone_pkt, net_pkt_family(pkt));
1903 if (IS_ENABLED(CONFIG_NET_IPV4) && net_pkt_family(pkt) == AF_INET) {
1908 net_pkt_family(pkt) == AF_INET6) {
/Zephyr-Core-3.7.0/subsys/net/l2/ieee802154/
Dieee802154_6lo.c42 if (net_pkt_family(pkt) != AF_INET6) { in ieee802154_6lo_encode_pkt()
Dieee802154.c490 if (IS_ENABLED(CONFIG_NET_SOCKETS_PACKET) && net_pkt_family(pkt) == AF_PACKET) { in ieee802154_send()
/Zephyr-Core-3.7.0/tests/net/tcp/src/
Dmain.c397 if (net_pkt_family(pkt) == AF_INET) { in is_icmp_pkt()
447 handle_client_test(net_pkt_family(pkt), &th); in tester_send()
452 handle_server_test(net_pkt_family(pkt), &th); in tester_send()
458 handle_client_fin_wait_2_test(net_pkt_family(pkt), &th); in tester_send()
461 handle_client_closing_test(net_pkt_family(pkt), &th); in tester_send()
467 handle_data_fin1_test(net_pkt_family(pkt), &th); in tester_send()
470 handle_data_during_fin1_test(net_pkt_family(pkt), &th); in tester_send()
473 handle_syn_rst_ack(net_pkt_family(pkt), &th); in tester_send()
476 handle_server_rst_on_closed_port(net_pkt_family(pkt), &th); in tester_send()
479 handle_server_rst_on_listening_port(net_pkt_family(pkt), &th); in tester_send()
[all …]
/Zephyr-Core-3.7.0/drivers/net/
Dloopback.c127 if (net_pkt_family(pkt) == AF_INET6) { in loopback_send()
Dcanbus.c107 if (net_pkt_family(pkt) != AF_CAN) { in net_canbus_send()
Dppp.c830 if (net_pkt_family(pkt) == AF_INET) { in ppp_send()
832 } else if (net_pkt_family(pkt) == AF_INET6) { in ppp_send()
/Zephyr-Core-3.7.0/subsys/net/l2/virtual/ipip/
Dipip.c146 if (net_pkt_family(pkt) == AF_INET) { in interface_send()
149 } else if (net_pkt_family(pkt) == AF_INET6) { in interface_send()
340 if (IS_ENABLED(CONFIG_NET_IPV6) && net_pkt_family(pkt) == AF_INET6) { in interface_recv()
380 if (IS_ENABLED(CONFIG_NET_IPV4) && net_pkt_family(pkt) == AF_INET) { in interface_recv()
/Zephyr-Core-3.7.0/subsys/modem/
Dmodem_ppp.c39 if (net_pkt_family(pkt) == AF_INET) { in modem_ppp_ppp_protocol()
43 if (net_pkt_family(pkt) == AF_INET6) { in modem_ppp_ppp_protocol()
465 if ((net_pkt_is_ppp(pkt) == false) && (net_pkt_family(pkt) != AF_INET) && in modem_ppp_ppp_api_send()
466 (net_pkt_family(pkt) != AF_INET6)) { in modem_ppp_ppp_api_send()
/Zephyr-Core-3.7.0/subsys/net/pkt_filter/
Dbase.c157 struct npf_rule_list *rules = get_ip_rules(net_pkt_family(pkt)); in net_pkt_filter_ip_recv_ok()
276 uint8_t pkt_family = net_pkt_family(pkt); in npf_ip_src_addr_match()
/Zephyr-Core-3.7.0/subsys/net/l2/ethernet/
Dethernet.c132 if (net_pkt_family(pkt) == AF_INET) { in ethernet_update_length()
437 if (net_pkt_family(pkt) == AF_INET && in ethernet_fill_in_dst_on_ipv4_mcast()
497 if (net_pkt_family(pkt) == AF_INET6 && in ethernet_fill_in_dst_on_ipv6_mcast()
637 net_pkt_family(pkt) == AF_INET) { in ethernet_send()
659 net_pkt_family(pkt) == AF_INET6) { in ethernet_send()
662 net_pkt_family(pkt) == AF_PACKET) { in ethernet_send()
/Zephyr-Core-3.7.0/drivers/modem/
Dwncm14a2a.c437 if (net_pkt_family(pkt) == AF_INET6) { in pkt_setup_ip_data()
451 if (net_pkt_family(pkt) == AF_INET) { in pkt_setup_ip_data()
1664 if (net_pkt_family(pkt) == AF_INET6) { in offload_send()
1669 if (net_pkt_family(pkt) == AF_INET) { in offload_send()
Dhl7800.c1584 if (net_pkt_family(pkt) == AF_INET6) { in pkt_setup_ip_data()
1600 if (net_pkt_family(pkt) == AF_INET) { in pkt_setup_ip_data()
6140 if (net_pkt_family(pkt) == AF_INET6) { in offload_send()
6145 if (net_pkt_family(pkt) == AF_INET) { in offload_send()
/Zephyr-Core-3.7.0/subsys/net/lib/sockets/
Dsockets.c1105 addr->sa_family = net_pkt_family(pkt); in sock_get_pkt_src_addr()
1108 net_pkt_family(pkt) == AF_INET) { in sock_get_pkt_src_addr()
1131 net_pkt_family(pkt) == AF_INET6) { in sock_get_pkt_src_addr()
1197 if (net_pkt_family(pkt) == AF_INET) { in net_pkt_remote_addr_is_unspecified()
1199 } else if (net_pkt_family(pkt) == AF_INET6) { in net_pkt_remote_addr_is_unspecified()
1219 net_pkt_family(pkt) == AF_INET) { in sock_get_offload_pkt_src_addr()
1227 net_pkt_family(pkt) == AF_INET6) { in sock_get_offload_pkt_src_addr()
1373 if (IS_ENABLED(CONFIG_NET_IPV4) && net_pkt_family(pkt) == AF_INET) { in add_pktinfo()
1399 if (IS_ENABLED(CONFIG_NET_IPV6) && net_pkt_family(pkt) == AF_INET6) { in add_pktinfo()
/Zephyr-Core-3.7.0/tests/net/checksum_offload/src/
Dmain.c203 if (net_pkt_family(pkt) == AF_INET6) { in test_receiving()
955 if (net_pkt_family(pkt) == AF_INET) { in recv_cb_offload_disabled()
981 if (net_pkt_family(pkt) == AF_INET) { in recv_cb_offload_enabled()
/Zephyr-Core-3.7.0/tests/net/context/src/
Dmain.c1024 if (net_pkt_family(pkt) == AF_INET6) { in tester_send()
/Zephyr-Core-3.7.0/tests/net/net_pkt/src/
Dmain.c848 zassert_equal(net_pkt_family(cloned_pkt), AF_INET6, in ZTEST()

12