Searched refs:net_pkt_data (Results 1 – 13 of 13) sorted by relevance
/Zephyr-latest/tests/net/ieee802154/l2/src/ |
D | ieee802154_test.c | 498 pkt_hexdump(net_pkt_data(current_pkt), net_pkt_get_len(current_pkt)); 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() 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() 739 if (!ieee802154_validate_frame(net_pkt_data(current_pkt), in test_dgram_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() 1176 pkt_hexdump(net_pkt_data(current_pkt), net_pkt_get_len(current_pkt)); in test_recv_and_send_ack_reply() [all …]
|
D | ieee802154_shell_test.c | 151 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()
|
/Zephyr-latest/subsys/net/l2/ethernet/ |
D | arp.h | 26 #define NET_ARP_HDR(pkt) ((struct net_arp_hdr *)net_pkt_data(pkt))
|
/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | ieee802154.c | 137 fs = ieee802154_validate_fc_seq(net_pkt_data(pkt), NULL, &len); in ieee802154_handle_ack() 371 if (!ieee802154_validate_frame(net_pkt_data(pkt), net_pkt_get_len(pkt), &mpdu)) { in ieee802154_recv() 451 ll_hdr_len = (uint8_t *)mpdu.payload - net_pkt_data(pkt); in ieee802154_recv()
|
D | ieee802154_frame.c | 869 p_buf = net_pkt_data(pkt); in ieee802154_create_mac_cmd_frame() 911 uint8_t *p_buf = net_pkt_data(pkt); in ieee802154_create_ack_frame() 966 ll_hdr_len = (uint8_t *)mpdu->payload - net_pkt_data(pkt); in ieee802154_decipher_data_frame() 980 if (!ieee802154_decrypt_auth(&ctx->sec_ctx, net_pkt_data(pkt), ll_hdr_len, payload_len, in ieee802154_decipher_data_frame()
|
/Zephyr-latest/tests/net/arp/src/ |
D | main.c | 95 hdr = (struct net_eth_hdr *)net_pkt_data(pkt); in tester_send() 274 struct net_eth_hdr *hdr = (struct net_eth_hdr *)net_pkt_data(pkt); in setup_eth_header() 619 eth_hdr = (struct net_eth_hdr *)net_pkt_data(pkt); in ZTEST()
|
/Zephyr-latest/tests/net/checksum_offload/src/ |
D | main.c | 190 memcpy(lladdr, ((struct net_eth_hdr *)net_pkt_data(pkt))->src.addr, in test_receiving() 192 memcpy(((struct net_eth_hdr *)net_pkt_data(pkt))->src.addr, in test_receiving() 193 ((struct net_eth_hdr *)net_pkt_data(pkt))->dst.addr, in test_receiving() 195 memcpy(((struct net_eth_hdr *)net_pkt_data(pkt))->dst.addr, in test_receiving()
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_native_posix.c | 99 uint8_t *msg_start = net_pkt_data(pkt); in check_gptp_msg()
|
D | eth_sam_gmac.c | 543 uint8_t *msg_start = net_pkt_data(pkt); in check_gptp_msg()
|
/Zephyr-latest/include/zephyr/net/ |
D | ethernet.h | 59 #define NET_ETH_HDR(pkt) ((struct net_eth_hdr *)net_pkt_data(pkt))
|
D | net_pkt.h | 1265 static inline uint8_t *net_pkt_data(struct net_pkt *pkt) in net_pkt_data() function 1277 return !pkt->buffer || !net_pkt_data(pkt) || pkt->buffer->len == 0; in net_pkt_is_empty()
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | sockets_can.c | 105 (struct can_frame *)net_pkt_data(pkt); in zcan_received_cb()
|
/Zephyr-latest/modules/openthread/platform/ |
D | radio.c | 184 if ((*net_pkt_data(pkt) & FRAME_TYPE_MASK) != FRAME_TYPE_ACK) { in ieee802154_handle_ack()
|