Home
last modified time | relevance | path

Searched refs:net_pkt_get_len (Results 1 – 25 of 108) sorted by relevance

12345

/Zephyr-latest/tests/net/net_pkt/src/
Dmain.c253 zassert_true(net_pkt_get_len(pkt) == 0, in ZTEST()
267 zassert_true(net_pkt_get_len(pkt) == 1, "Pkt length mismatch"); in ZTEST()
273 zassert_true(net_pkt_get_len(pkt) == 3, "Pkt length mismatch"); in ZTEST()
305 zassert_true(net_pkt_get_len(pkt) == 7, "Pkt length mismatch"); in ZTEST()
314 zassert_true(net_pkt_get_len(pkt) == 16, "Pkt length mismatch"); in ZTEST()
321 zassert_true(net_pkt_get_len(pkt) == 20, "Pkt length mismatch"); in ZTEST()
334 zassert_true(net_pkt_get_len(pkt) == 40, "Pkt length mismatch"); in ZTEST()
374 zassert_true(net_pkt_get_len(pkt) == 40, "Pkt length mismatch"); in ZTEST()
381 zassert_true(net_pkt_get_len(pkt) == 40, "Pkt length mismatch"); in ZTEST()
388 zassert_true(net_pkt_get_len(pkt) == 40, "Pkt length mismatch"); in ZTEST()
[all …]
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154_6lo_fragment.h27 return (ll_hdr_len + net_pkt_get_len(pkt) + authtag_len > IEEE802154_MTU); in ieee802154_6lo_requires_fragmentation()
37 ctx->pkt_size = net_pkt_get_len(pkt) + (iphc ? hdr_diff : -1); in ieee802154_6lo_fragment_ctx_init()
/Zephyr-latest/tests/net/ipv4_fragment/src/
Dmain.c235 zassert_equal(net_pkt_get_len(pkt), pkt_len, "IPv4 header length mismatch"); in check_ipv4_fragment_header()
255 if (net_pkt_get_len(pkt) > NET_IPV4_MTU) { in sender_iface()
257 pkt_recv_size = net_pkt_get_len(pkt); in sender_iface()
263 lower_layer_total_size += net_pkt_get_len(pkt); in sender_iface()
284 last_packet = ((pkt_recv_size + net_pkt_get_len(pkt)) >= pkt_recv_expected_size ? in sender_iface()
290 pkt_recv_size += net_pkt_get_len(pkt) - NET_IPV4H_LEN; in sender_iface()
375 upper_layer_total_size += net_pkt_get_len(pkt); in udp_data_received()
402 zassert_equal(net_pkt_get_len(pkt), pkt_len, "IPv4 header length mismatch"); in udp_data_received()
417 while (i < net_pkt_get_len(pkt)) { in udp_data_received()
456 upper_layer_total_size += net_pkt_get_len(pkt); in tcp_data_received()
[all …]
/Zephyr-latest/subsys/usb/device/class/netusb/
Dnetusb.c33 LOG_DBG("Send pkt, len %zu", net_pkt_get_len(pkt)); in netusb_send()
55 LOG_DBG("Recv pkt, len %zu", net_pkt_get_len(pkt)); in netusb_recv()
Dfunction_eem.c108 len = net_pkt_get_len(pkt) + sizeof(sentinel); in eem_send()
119 if (net_pkt_read(pkt, &tx_buf[b_idx], net_pkt_get_len(pkt))) { in eem_send()
/Zephyr-latest/tests/net/ipv6_fragment/src/
Dmain.c1040 size_t total_len = net_pkt_get_len(pkt); in verify_fragment()
1092 size_t total_len = net_pkt_get_len(pkt); in verify_fragment()
1175 recv_payload_len = net_pkt_get_len(pkt) - 40 - 1032 - 8; in verify_fragment()
1215 recv_payload_len = net_pkt_get_len(pkt) - 40 - 1032 - 8; in verify_fragment()
1255 recv_payload_len = net_pkt_get_len(pkt) - 40 - 1032 - 8; in verify_fragment()
1302 recv_payload_len = net_pkt_get_len(pkt) - 40 - 8; in verify_fragment()
1354 recv_payload_len = net_pkt_get_len(pkt) - 40 - 8; in verify_fragment()
1401 recv_payload_len = net_pkt_get_len(pkt) - 40 - 8; in verify_fragment()
1453 recv_payload_len = net_pkt_get_len(pkt) - 40 - 8; in verify_fragment()
1501 zassert_equal(net_pkt_get_len(pkt), expected_pkt_length, "Invalid packet length"); in udp_data_received()
[all …]
/Zephyr-latest/subsys/net/l2/canbus/
Dcanbus_raw.c42 ret = net_pkt_get_len(pkt); in canbus_send()
/Zephyr-latest/subsys/net/ip/
Dipv4_fragment.c102 reassembly[i].pkt[j], net_pkt_get_len(reassembly[i].pkt[j])); in reassembly_cancel()
200 ipv4_hdr->len = htons(net_pkt_get_len(pkt)); in reassemble_packet()
209 LOG_DBG("New pkt %p IPv4 len is %d bytes", pkt, net_pkt_get_len(pkt)); in reassemble_packet()
278 payload_len = net_pkt_get_len(pkt) - net_pkt_ip_hdr_len(pkt); in fragments_are_ready()
344 if (more && (net_pkt_get_len(pkt) - net_pkt_ip_hdr_len(pkt)) % 8) { in net_ipv4_handle_fragment_hdr()
628 size_t pkt_len = net_pkt_get_len(pkt); in net_ipv4_prepare_for_send_fragment()
Dudp.c51 length = net_pkt_get_len(pkt) - net_pkt_ip_hdr_len(pkt) - in net_udp_finalize()
163 if (ntohs(udp_hdr->len) != (net_pkt_get_len(pkt) - in net_udp_input()
Dipv6_fragment.c193 net_pkt_get_len(reassembly[i].pkt[j])); in reassembly_cancel()
336 len = net_pkt_get_len(pkt) - sizeof(struct net_ipv6_hdr); in reassemble_packet()
415 payload_len = net_pkt_get_len(pkt) - net_pkt_ipv6_fragment_start(pkt); in fragments_are_ready()
505 if (more && net_pkt_get_len(pkt) % 8) { in net_ipv6_handle_fragment_hdr()
757 length = net_pkt_get_len(pkt) - in net_ipv6_send_fragmented_pkt()
Dnet_core.c439 pkt_len = net_pkt_get_len(pkt); in net_rx()
475 net_stats_update_tc_recv_bytes(iface, tc, net_pkt_get_len(pkt)); in net_queue_rx()
516 iface, pkt, net_pkt_get_len(pkt)); in net_recv_data()
/Zephyr-latest/tests/net/ieee802154/l2/src/
Dieee802154_test.c498 pkt_hexdump(net_pkt_data(current_pkt), net_pkt_get_len(current_pkt)); in test_ns_sending()
501 if (net_pkt_get_len(current_pkt) != t->length || in test_ns_sending()
509 net_pkt_get_len(current_pkt), &mpdu)) { in test_ns_sending()
544 if (!ieee802154_validate_frame(net_pkt_data(tx_pkt), net_pkt_get_len(tx_pkt), &mpdu)) { in test_wait_for_ack()
561 pkt_hexdump(net_pkt_data(one_ack_pkt), net_pkt_get_len(one_ack_pkt)); in test_wait_for_ack()
737 pkt_hexdump(net_pkt_data(current_pkt), net_pkt_get_len(current_pkt)); in test_dgram_packet_sending()
740 net_pkt_get_len(current_pkt), &mpdu)) { in test_dgram_packet_sending()
960 pkt_hexdump(net_pkt_data(current_pkt), net_pkt_get_len(current_pkt)); in test_raw_packet_sending()
963 net_pkt_get_len(current_pkt), &mpdu)) { in test_raw_packet_sending()
1176 pkt_hexdump(net_pkt_data(current_pkt), net_pkt_get_len(current_pkt)); in test_recv_and_send_ack_reply()
[all …]
Dieee802154_fake_driver.c72 pkt, net_pkt_get_len(pkt)); in fake_tx()
Dieee802154_shell_test.c151 if (!ieee802154_validate_frame(net_pkt_data(current_pkt), net_pkt_get_len(current_pkt), in test_scan_shell_cmd()
349 if (!ieee802154_validate_frame(net_pkt_data(current_pkt), net_pkt_get_len(current_pkt), in ZTEST()
418 zassert_equal(net_pkt_get_len(current_pkt), IEEE802154_ACK_PKT_LENGTH, in ZTEST()
/Zephyr-latest/tests/subsys/modem/modem_ppp/src/
Dmain.c316 pkt_len = net_pkt_get_len(pkt); in ZTEST()
346 pkt_len = net_pkt_get_len(pkt); in ZTEST()
399 pkt_len = net_pkt_get_len(pkt); in ZTEST()
515 pkt_len = net_pkt_get_len(pkt); in ZTEST()
/Zephyr-latest/subsys/net/l2/dummy/
Ddummy.c44 ret = net_pkt_get_len(pkt); in dummy_send()
/Zephyr-latest/tests/net/ieee802154/6lo_fragment/src/
Dmain.c196 if (net_pkt_get_len(pkt) != (NET_IPV6UDPH_LEN + remaining)) { in compare_data()
199 net_pkt_get_len(pkt)); in compare_data()
485 printk("length before compression %zd\n", net_pkt_get_len(pkt)); in test_fragment()
534 net_pkt_get_len(f_pkt)); in test_fragment()
572 net_pkt_get_len(rxpkt)); in test_fragment()
/Zephyr-latest/samples/net/promiscuous_mode/src/
Dmain.c94 pkt, net_pkt_get_len(pkt)); in print_info()
128 len = net_pkt_get_len(pkt); in print_info()
/Zephyr-latest/subsys/net/l2/dummy/any/
Dany.c66 pkt, net_pkt_get_len(pkt)); in any_recv()
/Zephyr-latest/subsys/net/l2/virtual/
Dvirtual.c57 pkt_len = net_pkt_get_len(pkt); in virtual_recv()
72 NET_DBG("No handler, dropping pkt %p len %zu", pkt, net_pkt_get_len(pkt)); in virtual_recv()
94 pkt_len = net_pkt_get_len(pkt); in virtual_send()
/Zephyr-latest/tests/net/6lo/src/
Dmain.c401 if (net_pkt_get_len(pkt) != in compare_pkt()
406 net_pkt_get_len(pkt)); in compare_pkt()
411 if (net_pkt_get_len(pkt) != in compare_pkt()
416 net_pkt_get_len(pkt)); in compare_pkt()
421 if (net_pkt_get_len(pkt) != in compare_pkt()
426 net_pkt_get_len(pkt)); in compare_pkt()
1083 net_pkt_get_len(pkt)); in test_6lo()
1094 net_pkt_get_len(pkt)); in test_6lo()
1105 net_pkt_get_len(pkt)); in test_6lo()
/Zephyr-latest/samples/net/wpan_serial/src/
Dmain.c162 net_pkt_get_len(pkt_curr)); in interrupt_handler()
408 len = net_pkt_get_len(pkt); in tx_thread()
523 LOG_DBG("Received pkt %p, len %d", pkt, net_pkt_get_len(pkt)); in net_recv_data()
/Zephyr-latest/subsys/net/lib/shell/
Dconn.c180 net_pkt_get_len(pkt)); in tcp_sent_list_cb()
185 net_pkt_get_len(pkt)); in tcp_sent_list_cb()
/Zephyr-latest/subsys/net/l2/ppp/
Dfsm.c89 pkt, pkt ? net_pkt_get_len(pkt) : 0); in fsm_send_configure_req()
406 len = net_pkt_get_len(req_pkt); in ppp_send_pkt()
529 fsm ? fsm->name : "?", fsm, net_pkt_get_len(pkt), pkt, in ppp_send_pkt()
633 len = net_pkt_get_len(out); in fsm_recv_configure_req()
1038 fsm->name, fsm, "code", net_pkt_get_len(pkt)); in ppp_fsm_input()
1045 fsm->name, fsm, "id", net_pkt_get_len(pkt)); in ppp_fsm_input()
1052 fsm->name, fsm, "length", net_pkt_get_len(pkt)); in ppp_fsm_input()
/Zephyr-latest/tests/net/socket/af_packet_ipproto_raw/src/
Dmain.c38 NET_DBG("Dummy device: Loopbacking data (%zd bytes) to iface %d\n", net_pkt_get_len(pkt), in fake_dev_send()

12345