Home
last modified time | relevance | path

Searched refs:net_pkt_write (Results 1 – 25 of 76) sorted by relevance

1234

/Zephyr-Core-3.7.0/subsys/net/ip/
Dicmpv4.c126 if (net_pkt_write(reply, opt_data + offset, opt_len)) { in icmpv4_update_record_route()
155 if (net_pkt_write(reply, opt_data + offset, skip)) { in icmpv4_update_record_route()
163 if (net_pkt_write(reply, (void *)src, addr_len)) { in icmpv4_update_record_route()
171 if (net_pkt_write(reply, opt_data + offset, opt_len - offset)) { in icmpv4_update_record_route()
258 if (net_pkt_write(reply, opt_data + offset, opt_len)) { in icmpv4_update_time_stamp()
297 if (net_pkt_write(reply, opt_data + offset, skip)) { in icmpv4_update_time_stamp()
317 if (net_pkt_write(reply, (void *)src, addr_len)) { in icmpv4_update_time_stamp()
335 if (net_pkt_write(reply, opt_data + offset, opt_len - offset)) { in icmpv4_update_time_stamp()
Dicmp.c180 net_pkt_write(pkt, params->data, params->data_size); in send_icmpv4_echo_request()
186 net_pkt_write(pkt, &time_stamp, sizeof(time_stamp)); in send_icmpv4_echo_request()
301 net_pkt_write(pkt, params->data, params->data_size); in send_icmpv6_echo_request()
307 net_pkt_write(pkt, &time_stamp, sizeof(time_stamp)); in send_icmpv6_echo_request()
Dicmpv6.c260 ret = net_pkt_write(pkt, net_pkt_lladdr_src(orig)->addr, in net_icmpv6_send_error()
269 ret = net_pkt_write(pkt, net_pkt_lladdr_dst(orig)->addr, in net_icmpv6_send_error()
Digmp.c87 if (net_pkt_write(pkt, &igmp->chksum, sizeof(igmp->chksum))) { in igmp_v2_create()
168 if (net_pkt_write(pkt, &mcast[i].sources[j].in_addr.s_addr, in igmp_v3_create()
181 if (net_pkt_write(pkt, &igmp->chksum, sizeof(igmp->chksum))) { in igmp_v3_create()
/Zephyr-Core-3.7.0/tests/net/ipv6_fragment/src/
Dmain.c982 net_pkt_write(recv_pkt, buf_ip_dst, sizeof(buf_ip_dst)); in test_pkt_loopback()
983 net_pkt_write(recv_pkt, buf_ip_src, sizeof(buf_ip_src)); in test_pkt_loopback()
1705 ret = net_pkt_write(pkt, ipv6_udp, sizeof(ipv6_udp)); in ZTEST()
1740 ret = net_pkt_write(pkt, ipv6_hbho, sizeof(ipv6_hbho)); in ZTEST()
1775 ret = net_pkt_write(pkt, ipv6_hbho_1, sizeof(ipv6_hbho_1)); in ZTEST()
1818 ret = net_pkt_write(pkt, ipv6_hbho_2, sizeof(ipv6_hbho_2)); in ZTEST()
1861 ret = net_pkt_write(pkt, ipv6_hbho_3, sizeof(ipv6_hbho_3)); in ZTEST()
1902 ret = net_pkt_write(pkt, ipv6_hbho_frag, sizeof(ipv6_hbho_frag)); in ZTEST()
1939 ret = net_pkt_write(pkt, ipv6_hbho_frag_1, in ZTEST()
1990 ret = net_pkt_write(pkt, ipv6_hbho, sizeof(ipv6_hbho)); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/net/icmpv4/src/
Dmain.c326 if (net_pkt_write(pkt, icmpv4_echo_req, sizeof(icmpv4_echo_req))) { in prepare_echo_request()
351 if (net_pkt_write(pkt, icmpv4_echo_rep, sizeof(icmpv4_echo_rep))) { in prepare_echo_reply()
376 if (net_pkt_write(pkt, icmpv4_echo_req_opt, in prepare_echo_request_with_options()
403 if (net_pkt_write(pkt, icmpv4_echo_req_opt_bad, in prepare_echo_request_with_bad_options()
/Zephyr-Core-3.7.0/tests/net/ieee802154/custom_l2/src/
Dmain.c85 ret = net_pkt_write(tx_pkt, TEST_PAYLOAD, sizeof(TEST_PAYLOAD)); in ZTEST()
109 ret = net_pkt_write(rx_pkt, TEST_PAYLOAD, sizeof(TEST_PAYLOAD)); in ZTEST()
/Zephyr-Core-3.7.0/tests/net/ipv4_fragment/src/
Dmain.c318 net_pkt_write(recv_pkt, buf_ip_dst, sizeof(buf_ip_dst)); in sender_iface()
319 net_pkt_write(recv_pkt, buf_ip_src, sizeof(buf_ip_src)); in sender_iface()
615 ret = net_pkt_write(pkt, ipv4_udp, sizeof(ipv4_udp)); in ZTEST()
621 ret = net_pkt_write(pkt, test_tmp_buf, sizeof(test_tmp_buf)); in ZTEST()
685 ret = net_pkt_write(pkt, ipv4_tcp, sizeof(ipv4_tcp)); in ZTEST()
691 ret = net_pkt_write(pkt, tmp_buf, sizeof(tmp_buf)); in ZTEST()
756 ret = net_pkt_write(pkt, ipv4_udp_frag, sizeof(ipv4_udp_frag)); in ZTEST()
828 ret = net_pkt_write(pkt, ipv4_udp_do_not_frag, sizeof(ipv4_udp_do_not_frag)); in ZTEST()
834 ret = net_pkt_write(pkt, tmp_buf, sizeof(tmp_buf)); in ZTEST()
/Zephyr-Core-3.7.0/tests/net/dhcpv4/client/src/
Dmain.c292 if (net_pkt_write(pkt, offer, 4)) { in prepare_dhcp_offer()
301 if (net_pkt_write(pkt, offer + 8, sizeof(offer) - 8)) { in prepare_dhcp_offer()
333 if (net_pkt_write(pkt, ack, 4)) { in prepare_dhcp_ack()
342 if (net_pkt_write(pkt, ack + 8, sizeof(ack) - 8)) { in prepare_dhcp_ack()
/Zephyr-Core-3.7.0/drivers/ethernet/
Deth_stellaris.c160 if (net_pkt_write(pkt, data, count)) { in eth_stellaris_rx_pkt()
172 if (net_pkt_write(pkt, data, count)) { in eth_stellaris_rx_pkt()
190 if (net_pkt_write(pkt, data, count)) { in eth_stellaris_rx_pkt()
/Zephyr-Core-3.7.0/tests/net/net_pkt/src/
Dmain.c310 ret = net_pkt_write(pkt, small_buffer, 9); in ZTEST()
442 ret = net_pkt_write(pkt, small_buffer, 20); in ZTEST()
692 zassert_true(net_pkt_write(dummy_pkt, in ZTEST()
743 zassert_true(net_pkt_write(dummy_pkt, in ZTEST()
764 zassert_true(net_pkt_write(dummy_pkt, in ZTEST()
796 ret = net_pkt_write(pkt, buf, sizeof(buf)); in ZTEST()
942 zassert_true(net_pkt_write(pkt, "1234", 4) == 0, "Pkt write failed"); in ZTEST()
983 res = net_pkt_write(pkt_src, "0123", 4); in ZTEST()
1091 net_pkt_write(pkt, small_buffer, CONFIG_NET_BUF_DATA_SIZE * 2 + 3); in ZTEST()
1138 net_pkt_write(pkt, small_buffer, CONFIG_NET_BUF_DATA_SIZE * 2 + 3); in ZTEST()
/Zephyr-Core-3.7.0/subsys/net/l2/ethernet/lldp/
Dlldp.c118 ret = net_pkt_write(pkt, (uint8_t *)lldp->lldpdu, in lldp_send()
126 ret = net_pkt_write(pkt, (uint8_t *)lldp->optional_du, in lldp_send()
137 ret = net_pkt_write(pkt, (uint8_t *)&tlv_end, sizeof(tlv_end)); in lldp_send()
/Zephyr-Core-3.7.0/tests/net/dhcpv4/server/src/
Dmain.c185 net_pkt_write(pkt, &msg, sizeof(msg)); in client_prepare_test_msg()
186 net_pkt_write(pkt, empty_buf, SIZE_OF_SNAME); in client_prepare_test_msg()
187 net_pkt_write(pkt, empty_buf, SIZE_OF_FILE); in client_prepare_test_msg()
188 net_pkt_write(pkt, cookie, SIZE_OF_MAGIC_COOKIE); in client_prepare_test_msg()
198 net_pkt_write(pkt, requested_ip, sizeof(*requested_ip)); in client_prepare_test_msg()
204 net_pkt_write(pkt, server_id, sizeof(*server_id)); in client_prepare_test_msg()
214 net_pkt_write(pkt, test_ctx.client_id, strlen(test_ctx.client_id)); in client_prepare_test_msg()
/Zephyr-Core-3.7.0/tests/net/lib/mdns_responder/src/
Dmain.c303 res = net_pkt_write(pkt, ipv6_hdr_start, sizeof(ipv6_hdr_start)); in send_msg()
309 res = net_pkt_write(pkt, ipv6_hdr_rest, sizeof(ipv6_hdr_rest)); in send_msg()
325 res = net_pkt_write(pkt, data, len); in send_msg()
/Zephyr-Core-3.7.0/tests/subsys/modem/modem_ppp/src/
Dmain.c368 ret = net_pkt_write(pkt, ppp_frame_unwrapped, sizeof(ppp_frame_unwrapped)); in ZTEST()
423 ret = net_pkt_write(pkt, ip_frame_unwrapped, sizeof(ip_frame_unwrapped)); in ZTEST()
450 ret = net_pkt_write(pkts[i], ip_frame_unwrapped, sizeof(ip_frame_unwrapped)); in ZTEST()
/Zephyr-Core-3.7.0/tests/net/ipv6/src/
Dmain.c243 net_pkt_write(pkt, &hdr, sizeof(struct net_eth_hdr)); in prepare_ra_message()
244 net_pkt_write(pkt, icmpv6_ra, sizeof(icmpv6_ra)); in prepare_ra_message()
276 zassert_ok(net_pkt_write(pkt, na_flags, sizeof(na_flags))); in inject_na_message()
277 zassert_ok(net_pkt_write(pkt, target, sizeof(struct in6_addr))); in inject_na_message()
278 zassert_ok(net_pkt_write(pkt, na_tlla_opt, sizeof(na_tlla_opt))); in inject_na_message()
715 net_pkt_write(pkt, icmpv6_ns_invalid, sizeof(icmpv6_ns_invalid)); in ZTEST()
738 net_pkt_write(pkt, icmpv6_ns_no_sllao, sizeof(icmpv6_ns_no_sllao)); in ZTEST()
1042 net_pkt_write(pkt, ipv6_hbho, sizeof(ipv6_hbho)); in ZTEST()
1093 net_pkt_write(pkt, ipv6_hbho_1, sizeof(ipv6_hbho_1)); in ZTEST()
1154 net_pkt_write(pkt, ipv6_hbho_2, sizeof(ipv6_hbho_2)); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/subsys/net/l2/ppp/
Dpap.c33 (void)net_pkt_write(pkt, payload, sizeof(payload)); in pap_config_info_add()
/Zephyr-Core-3.7.0/drivers/net/
Dcanbus.c46 if (net_pkt_write(pkt, frame, sizeof(struct can_frame))) { in net_canbus_recv()
/Zephyr-Core-3.7.0/tests/net/bridge/src/
Dmain.c257 ret = net_pkt_write(pkt, &eth_hdr, sizeof(eth_hdr)); in _recv_data()
260 ret = net_pkt_write(pkt, data, sizeof(data)); in _recv_data()
/Zephyr-Core-3.7.0/samples/net/wpan_serial/src/
Dmain.c186 net_pkt_write(pkt, cfg, 2); in send_data()
187 net_pkt_write(pkt, data, len); in send_data()
/Zephyr-Core-3.7.0/subsys/net/lib/capture/
Dcooked.c347 ret = net_pkt_write(pkt, hdr, hdr_len); in create_sll_header()
430 ret = net_pkt_write(pkt, data, data_len); in net_capture_data()
/Zephyr-Core-3.7.0/tests/net/icmpv6/src/
Dmain.c165 net_pkt_write(pkt, data, len); in create_pkt()
/Zephyr-Core-3.7.0/tests/net/npf/src/
Dmain.c66 ret = net_pkt_write(pkt, &eth_hdr, sizeof(eth_hdr)); in build_test_pkt()
71 ret = net_pkt_write(pkt, dummy_data, size - sizeof(eth_hdr)); in build_test_pkt()
/Zephyr-Core-3.7.0/subsys/usb/device/class/netusb/
Dfunction_eem.c187 if (net_pkt_write(pkt, ptr, eem_size - sizeof(sentinel))) { in eem_read_cb()
/Zephyr-Core-3.7.0/include/zephyr/net/
Dnet_pkt.h2305 int net_pkt_write(struct net_pkt *pkt, const void *data, size_t length);
2321 return net_pkt_write(pkt, &data, sizeof(uint8_t)); in net_pkt_write_u8()
2340 return net_pkt_write(pkt, &data_be16, sizeof(uint16_t)); in net_pkt_write_be16()
2359 return net_pkt_write(pkt, &data_be32, sizeof(uint32_t)); in net_pkt_write_be32()
2378 return net_pkt_write(pkt, &data_le32, sizeof(uint32_t)); in net_pkt_write_le32()
2397 return net_pkt_write(pkt, &data_le16, sizeof(uint16_t)); in net_pkt_write_le16()

1234