Lines Matching refs:current_pkt
167 extern struct net_pkt *current_pkt;
493 if (!current_pkt->frags) { in test_ns_sending()
498 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()
502 memcmp(net_pkt_data(current_pkt), t->pkt, t->length)) { in test_ns_sending()
508 if (!ieee802154_validate_frame(net_pkt_data(current_pkt), in test_ns_sending()
509 net_pkt_get_len(current_pkt), &mpdu)) { in test_ns_sending()
517 net_pkt_frag_unref(current_pkt->frags); in test_ns_sending()
518 current_pkt->frags = NULL; in test_ns_sending()
732 if (!current_pkt->frags) { in test_dgram_packet_sending()
737 pkt_hexdump(net_pkt_data(current_pkt), net_pkt_get_len(current_pkt)); in test_dgram_packet_sending()
739 if (!ieee802154_validate_frame(net_pkt_data(current_pkt), in test_dgram_packet_sending()
740 net_pkt_get_len(current_pkt), &mpdu)) { in test_dgram_packet_sending()
745 net_pkt_lladdr_src(current_pkt)->addr = net_if_get_link_addr(net_iface)->addr; in test_dgram_packet_sending()
746 net_pkt_lladdr_src(current_pkt)->len = net_if_get_link_addr(net_iface)->len; in test_dgram_packet_sending()
748 if (!ieee802154_decipher_data_frame(net_iface, current_pkt, &mpdu)) { in test_dgram_packet_sending()
761 net_pkt_frag_unref(current_pkt->frags); in test_dgram_packet_sending()
762 current_pkt->frags = NULL; in test_dgram_packet_sending()
872 if (current_pkt->frags) { in test_dgram_packet_reception()
874 net_pkt_frag_unref(current_pkt->frags); in test_dgram_packet_reception()
875 current_pkt->frags = NULL; in test_dgram_packet_reception()
955 if (!current_pkt->frags) { in test_raw_packet_sending()
960 pkt_hexdump(net_pkt_data(current_pkt), net_pkt_get_len(current_pkt)); in test_raw_packet_sending()
962 if (!ieee802154_validate_frame(net_pkt_data(current_pkt), in test_raw_packet_sending()
963 net_pkt_get_len(current_pkt), &mpdu)) { in test_raw_packet_sending()
977 net_pkt_frag_unref(current_pkt->frags); in test_raw_packet_sending()
978 current_pkt->frags = NULL; in test_raw_packet_sending()
1023 if (current_pkt->frags) { in test_raw_packet_reception()
1025 net_pkt_frag_unref(current_pkt->frags); in test_raw_packet_reception()
1026 current_pkt->frags = NULL; in test_raw_packet_reception()
1171 if (!current_pkt->frags) { in test_recv_and_send_ack_reply()
1176 pkt_hexdump(net_pkt_data(current_pkt), net_pkt_get_len(current_pkt)); in test_recv_and_send_ack_reply()
1178 if (!ieee802154_validate_frame(net_pkt_data(current_pkt), in test_recv_and_send_ack_reply()
1179 net_pkt_get_len(current_pkt), &mpdu)) { in test_recv_and_send_ack_reply()
1198 net_pkt_frag_unref(current_pkt->frags); in test_recv_and_send_ack_reply()
1199 current_pkt->frags = NULL; in test_recv_and_send_ack_reply()
1218 current_pkt = net_pkt_rx_alloc(K_FOREVER); in initialize_test_environment()
1219 if (!current_pkt) { in initialize_test_environment()
1249 net_pkt_unref(current_pkt); in initialize_test_environment()
1268 net_pkt_unref(current_pkt); in test_teardown()
1269 current_pkt = NULL; in test_teardown()