Lines Matching refs:net_pkt
91 struct net_pkt { struct
356 static inline struct net_linkaddr *net_pkt_lladdr_if(struct net_pkt *pkt) in net_pkt_lladdr_if() argument
361 static inline struct net_context *net_pkt_context(struct net_pkt *pkt) in net_pkt_context()
366 static inline void net_pkt_set_context(struct net_pkt *pkt, in net_pkt_set_context()
372 static inline struct net_if *net_pkt_iface(struct net_pkt *pkt) in net_pkt_iface()
377 static inline void net_pkt_set_iface(struct net_pkt *pkt, struct net_if *iface) in net_pkt_set_iface()
393 static inline struct net_if *net_pkt_orig_iface(struct net_pkt *pkt) in net_pkt_orig_iface()
402 static inline void net_pkt_set_orig_iface(struct net_pkt *pkt, in net_pkt_set_orig_iface()
413 static inline uint8_t net_pkt_family(struct net_pkt *pkt) in net_pkt_family()
418 static inline void net_pkt_set_family(struct net_pkt *pkt, uint8_t family) in net_pkt_set_family()
423 static inline bool net_pkt_is_ptp(struct net_pkt *pkt) in net_pkt_is_ptp()
428 static inline void net_pkt_set_ptp(struct net_pkt *pkt, bool is_ptp) in net_pkt_set_ptp()
433 static inline bool net_pkt_is_tx_timestamping(struct net_pkt *pkt) in net_pkt_is_tx_timestamping()
444 static inline void net_pkt_set_tx_timestamping(struct net_pkt *pkt, bool is_timestamping) in net_pkt_set_tx_timestamping()
454 static inline bool net_pkt_is_rx_timestamping(struct net_pkt *pkt) in net_pkt_is_rx_timestamping()
465 static inline void net_pkt_set_rx_timestamping(struct net_pkt *pkt, bool is_timestamping) in net_pkt_set_rx_timestamping()
475 static inline bool net_pkt_is_captured(struct net_pkt *pkt) in net_pkt_is_captured()
480 static inline void net_pkt_set_captured(struct net_pkt *pkt, bool is_captured) in net_pkt_set_captured()
485 static inline bool net_pkt_is_l2_bridged(struct net_pkt *pkt) in net_pkt_is_l2_bridged()
490 static inline void net_pkt_set_l2_bridged(struct net_pkt *pkt, bool is_l2_bridged) in net_pkt_set_l2_bridged()
497 static inline bool net_pkt_is_l2_processed(struct net_pkt *pkt) in net_pkt_is_l2_processed()
502 static inline void net_pkt_set_l2_processed(struct net_pkt *pkt, in net_pkt_set_l2_processed()
508 static inline bool net_pkt_is_chksum_done(struct net_pkt *pkt) in net_pkt_is_chksum_done()
513 static inline void net_pkt_set_chksum_done(struct net_pkt *pkt, in net_pkt_set_chksum_done()
519 static inline uint8_t net_pkt_ip_hdr_len(struct net_pkt *pkt) in net_pkt_ip_hdr_len()
530 static inline void net_pkt_set_ip_hdr_len(struct net_pkt *pkt, uint8_t len) in net_pkt_set_ip_hdr_len()
540 static inline uint8_t net_pkt_ip_dscp(struct net_pkt *pkt) in net_pkt_ip_dscp()
551 static inline void net_pkt_set_ip_dscp(struct net_pkt *pkt, uint8_t dscp) in net_pkt_set_ip_dscp()
561 static inline uint8_t net_pkt_ip_ecn(struct net_pkt *pkt) in net_pkt_ip_ecn()
572 static inline void net_pkt_set_ip_ecn(struct net_pkt *pkt, uint8_t ecn) in net_pkt_set_ip_ecn()
582 static inline uint8_t net_pkt_eof(struct net_pkt *pkt) in net_pkt_eof()
587 static inline void net_pkt_set_eof(struct net_pkt *pkt, bool eof) in net_pkt_set_eof()
592 static inline bool net_pkt_forwarding(struct net_pkt *pkt) in net_pkt_forwarding()
597 static inline void net_pkt_set_forwarding(struct net_pkt *pkt, bool forward) in net_pkt_set_forwarding()
603 static inline uint8_t net_pkt_ipv4_ttl(struct net_pkt *pkt) in net_pkt_ipv4_ttl()
608 static inline void net_pkt_set_ipv4_ttl(struct net_pkt *pkt, in net_pkt_set_ipv4_ttl()
614 static inline uint8_t net_pkt_ipv4_opts_len(struct net_pkt *pkt) in net_pkt_ipv4_opts_len()
619 static inline void net_pkt_set_ipv4_opts_len(struct net_pkt *pkt, in net_pkt_set_ipv4_opts_len()
625 static inline uint8_t net_pkt_ipv4_ttl(struct net_pkt *pkt) in net_pkt_ipv4_ttl()
632 static inline void net_pkt_set_ipv4_ttl(struct net_pkt *pkt, in net_pkt_set_ipv4_ttl()
639 static inline uint8_t net_pkt_ipv4_opts_len(struct net_pkt *pkt) in net_pkt_ipv4_opts_len()
645 static inline void net_pkt_set_ipv4_opts_len(struct net_pkt *pkt, in net_pkt_set_ipv4_opts_len()
654 static inline uint8_t net_pkt_ipv6_ext_opt_len(struct net_pkt *pkt) in net_pkt_ipv6_ext_opt_len()
659 static inline void net_pkt_set_ipv6_ext_opt_len(struct net_pkt *pkt, in net_pkt_set_ipv6_ext_opt_len()
665 static inline uint8_t net_pkt_ipv6_next_hdr(struct net_pkt *pkt) in net_pkt_ipv6_next_hdr()
670 static inline void net_pkt_set_ipv6_next_hdr(struct net_pkt *pkt, in net_pkt_set_ipv6_next_hdr()
676 static inline uint16_t net_pkt_ipv6_ext_len(struct net_pkt *pkt) in net_pkt_ipv6_ext_len()
681 static inline void net_pkt_set_ipv6_ext_len(struct net_pkt *pkt, uint16_t len) in net_pkt_set_ipv6_ext_len()
686 static inline uint16_t net_pkt_ipv6_hdr_prev(struct net_pkt *pkt) in net_pkt_ipv6_hdr_prev()
691 static inline void net_pkt_set_ipv6_hdr_prev(struct net_pkt *pkt, in net_pkt_set_ipv6_hdr_prev()
697 static inline uint8_t net_pkt_ipv6_hop_limit(struct net_pkt *pkt) in net_pkt_ipv6_hop_limit()
702 static inline void net_pkt_set_ipv6_hop_limit(struct net_pkt *pkt, in net_pkt_set_ipv6_hop_limit()
708 static inline uint8_t net_pkt_ipv6_ext_opt_len(struct net_pkt *pkt) in net_pkt_ipv6_ext_opt_len()
715 static inline void net_pkt_set_ipv6_ext_opt_len(struct net_pkt *pkt, in net_pkt_set_ipv6_ext_opt_len()
722 static inline uint8_t net_pkt_ipv6_next_hdr(struct net_pkt *pkt) in net_pkt_ipv6_next_hdr()
729 static inline void net_pkt_set_ipv6_next_hdr(struct net_pkt *pkt, in net_pkt_set_ipv6_next_hdr()
736 static inline uint16_t net_pkt_ipv6_ext_len(struct net_pkt *pkt) in net_pkt_ipv6_ext_len()
743 static inline void net_pkt_set_ipv6_ext_len(struct net_pkt *pkt, uint16_t len) in net_pkt_set_ipv6_ext_len()
749 static inline uint16_t net_pkt_ipv6_hdr_prev(struct net_pkt *pkt) in net_pkt_ipv6_hdr_prev()
756 static inline void net_pkt_set_ipv6_hdr_prev(struct net_pkt *pkt, in net_pkt_set_ipv6_hdr_prev()
763 static inline uint8_t net_pkt_ipv6_hop_limit(struct net_pkt *pkt) in net_pkt_ipv6_hop_limit()
770 static inline void net_pkt_set_ipv6_hop_limit(struct net_pkt *pkt, in net_pkt_set_ipv6_hop_limit()
778 static inline uint16_t net_pkt_ip_opts_len(struct net_pkt *pkt) in net_pkt_ip_opts_len()
792 static inline bool net_pkt_ipv4_pmtu(struct net_pkt *pkt) in net_pkt_ipv4_pmtu()
797 static inline void net_pkt_set_ipv4_pmtu(struct net_pkt *pkt, bool value) in net_pkt_set_ipv4_pmtu()
802 static inline bool net_pkt_ipv4_pmtu(struct net_pkt *pkt) in net_pkt_ipv4_pmtu()
809 static inline void net_pkt_set_ipv4_pmtu(struct net_pkt *pkt, bool value) in net_pkt_set_ipv4_pmtu()
817 static inline uint16_t net_pkt_ipv4_fragment_offset(struct net_pkt *pkt) in net_pkt_ipv4_fragment_offset()
822 static inline bool net_pkt_ipv4_fragment_more(struct net_pkt *pkt) in net_pkt_ipv4_fragment_more()
827 static inline void net_pkt_set_ipv4_fragment_flags(struct net_pkt *pkt, uint16_t flags) in net_pkt_set_ipv4_fragment_flags()
832 static inline uint32_t net_pkt_ipv4_fragment_id(struct net_pkt *pkt) in net_pkt_ipv4_fragment_id()
837 static inline void net_pkt_set_ipv4_fragment_id(struct net_pkt *pkt, uint32_t id) in net_pkt_set_ipv4_fragment_id()
842 static inline uint16_t net_pkt_ipv4_fragment_offset(struct net_pkt *pkt) in net_pkt_ipv4_fragment_offset()
849 static inline bool net_pkt_ipv4_fragment_more(struct net_pkt *pkt) in net_pkt_ipv4_fragment_more()
856 static inline void net_pkt_set_ipv4_fragment_flags(struct net_pkt *pkt, uint16_t flags) in net_pkt_set_ipv4_fragment_flags()
862 static inline uint32_t net_pkt_ipv4_fragment_id(struct net_pkt *pkt) in net_pkt_ipv4_fragment_id()
869 static inline void net_pkt_set_ipv4_fragment_id(struct net_pkt *pkt, uint32_t id) in net_pkt_set_ipv4_fragment_id()
877 static inline uint16_t net_pkt_ipv6_fragment_start(struct net_pkt *pkt) in net_pkt_ipv6_fragment_start()
882 static inline void net_pkt_set_ipv6_fragment_start(struct net_pkt *pkt, in net_pkt_set_ipv6_fragment_start()
888 static inline uint16_t net_pkt_ipv6_fragment_offset(struct net_pkt *pkt) in net_pkt_ipv6_fragment_offset()
892 static inline bool net_pkt_ipv6_fragment_more(struct net_pkt *pkt) in net_pkt_ipv6_fragment_more()
897 static inline void net_pkt_set_ipv6_fragment_flags(struct net_pkt *pkt, in net_pkt_set_ipv6_fragment_flags()
903 static inline uint32_t net_pkt_ipv6_fragment_id(struct net_pkt *pkt) in net_pkt_ipv6_fragment_id()
908 static inline void net_pkt_set_ipv6_fragment_id(struct net_pkt *pkt, in net_pkt_set_ipv6_fragment_id()
914 static inline uint16_t net_pkt_ipv6_fragment_start(struct net_pkt *pkt) in net_pkt_ipv6_fragment_start()
921 static inline void net_pkt_set_ipv6_fragment_start(struct net_pkt *pkt, in net_pkt_set_ipv6_fragment_start()
928 static inline uint16_t net_pkt_ipv6_fragment_offset(struct net_pkt *pkt) in net_pkt_ipv6_fragment_offset()
935 static inline bool net_pkt_ipv6_fragment_more(struct net_pkt *pkt) in net_pkt_ipv6_fragment_more()
942 static inline void net_pkt_set_ipv6_fragment_flags(struct net_pkt *pkt, in net_pkt_set_ipv6_fragment_flags()
949 static inline uint32_t net_pkt_ipv6_fragment_id(struct net_pkt *pkt) in net_pkt_ipv6_fragment_id()
956 static inline void net_pkt_set_ipv6_fragment_id(struct net_pkt *pkt, in net_pkt_set_ipv6_fragment_id()
965 static inline bool net_pkt_is_ip_reassembled(struct net_pkt *pkt) in net_pkt_is_ip_reassembled()
970 static inline void net_pkt_set_ip_reassembled(struct net_pkt *pkt, in net_pkt_set_ip_reassembled()
976 static inline bool net_pkt_is_ip_reassembled(struct net_pkt *pkt) in net_pkt_is_ip_reassembled()
983 static inline void net_pkt_set_ip_reassembled(struct net_pkt *pkt, in net_pkt_set_ip_reassembled()
991 static inline uint8_t net_pkt_priority(struct net_pkt *pkt) in net_pkt_priority()
996 static inline void net_pkt_set_priority(struct net_pkt *pkt, in net_pkt_set_priority()
1003 static inline bool net_pkt_is_cooked_mode(struct net_pkt *pkt) in net_pkt_is_cooked_mode()
1008 static inline void net_pkt_set_cooked_mode(struct net_pkt *pkt, bool value) in net_pkt_set_cooked_mode()
1013 static inline bool net_pkt_is_cooked_mode(struct net_pkt *pkt) in net_pkt_is_cooked_mode()
1020 static inline void net_pkt_set_cooked_mode(struct net_pkt *pkt, bool value) in net_pkt_set_cooked_mode()
1028 static inline uint16_t net_pkt_vlan_tag(struct net_pkt *pkt) in net_pkt_vlan_tag()
1033 static inline void net_pkt_set_vlan_tag(struct net_pkt *pkt, uint16_t tag) in net_pkt_set_vlan_tag()
1038 static inline uint8_t net_pkt_vlan_priority(struct net_pkt *pkt) in net_pkt_vlan_priority()
1043 static inline void net_pkt_set_vlan_priority(struct net_pkt *pkt, in net_pkt_set_vlan_priority()
1049 static inline bool net_pkt_vlan_dei(struct net_pkt *pkt) in net_pkt_vlan_dei()
1054 static inline void net_pkt_set_vlan_dei(struct net_pkt *pkt, bool dei) in net_pkt_set_vlan_dei()
1059 static inline void net_pkt_set_vlan_tci(struct net_pkt *pkt, uint16_t tci) in net_pkt_set_vlan_tci()
1064 static inline uint16_t net_pkt_vlan_tci(struct net_pkt *pkt) in net_pkt_vlan_tci()
1069 static inline uint16_t net_pkt_vlan_tag(struct net_pkt *pkt) in net_pkt_vlan_tag()
1076 static inline void net_pkt_set_vlan_tag(struct net_pkt *pkt, uint16_t tag) in net_pkt_set_vlan_tag()
1082 static inline uint8_t net_pkt_vlan_priority(struct net_pkt *pkt) in net_pkt_vlan_priority()
1089 static inline bool net_pkt_vlan_dei(struct net_pkt *pkt) in net_pkt_vlan_dei()
1096 static inline void net_pkt_set_vlan_dei(struct net_pkt *pkt, bool dei) in net_pkt_set_vlan_dei()
1102 static inline uint16_t net_pkt_vlan_tci(struct net_pkt *pkt) in net_pkt_vlan_tci()
1109 static inline void net_pkt_set_vlan_tci(struct net_pkt *pkt, uint16_t tci) in net_pkt_set_vlan_tci()
1117 static inline struct net_ptp_time *net_pkt_timestamp(struct net_pkt *pkt) in net_pkt_timestamp()
1122 static inline void net_pkt_set_timestamp(struct net_pkt *pkt, in net_pkt_set_timestamp()
1129 static inline net_time_t net_pkt_timestamp_ns(struct net_pkt *pkt) in net_pkt_timestamp_ns()
1134 static inline void net_pkt_set_timestamp_ns(struct net_pkt *pkt, net_time_t timestamp) in net_pkt_set_timestamp_ns()
1139 static inline struct net_ptp_time *net_pkt_timestamp(struct net_pkt *pkt) in net_pkt_timestamp()
1146 static inline void net_pkt_set_timestamp(struct net_pkt *pkt, in net_pkt_set_timestamp()
1153 static inline net_time_t net_pkt_timestamp_ns(struct net_pkt *pkt) in net_pkt_timestamp_ns()
1160 static inline void net_pkt_set_timestamp_ns(struct net_pkt *pkt, net_time_t timestamp) in net_pkt_set_timestamp_ns()
1170 static inline uint32_t net_pkt_create_time(struct net_pkt *pkt) in net_pkt_create_time()
1175 static inline void net_pkt_set_create_time(struct net_pkt *pkt, in net_pkt_set_create_time()
1181 static inline uint32_t net_pkt_create_time(struct net_pkt *pkt) in net_pkt_create_time()
1188 static inline void net_pkt_set_create_time(struct net_pkt *pkt, in net_pkt_set_create_time()
1200 static inline uint32_t *net_pkt_stats_tick(struct net_pkt *pkt) in net_pkt_stats_tick()
1205 static inline int net_pkt_stats_tick_count(struct net_pkt *pkt) in net_pkt_stats_tick_count()
1210 static inline void net_pkt_stats_tick_reset(struct net_pkt *pkt) in net_pkt_stats_tick_reset()
1215 static ALWAYS_INLINE void net_pkt_set_stats_tick(struct net_pkt *pkt, in net_pkt_set_stats_tick()
1230 static inline uint32_t *net_pkt_stats_tick(struct net_pkt *pkt) in net_pkt_stats_tick()
1237 static inline int net_pkt_stats_tick_count(struct net_pkt *pkt) in net_pkt_stats_tick_count()
1244 static inline void net_pkt_stats_tick_reset(struct net_pkt *pkt) in net_pkt_stats_tick_reset()
1249 static inline void net_pkt_set_stats_tick(struct net_pkt *pkt, uint32_t tick) in net_pkt_set_stats_tick()
1260 static inline size_t net_pkt_get_len(struct net_pkt *pkt) in net_pkt_get_len()
1265 static inline uint8_t *net_pkt_data(struct net_pkt *pkt) in net_pkt_data()
1270 static inline uint8_t *net_pkt_ip_data(struct net_pkt *pkt) in net_pkt_ip_data()
1275 static inline bool net_pkt_is_empty(struct net_pkt *pkt) in net_pkt_is_empty()
1280 static inline struct net_linkaddr *net_pkt_lladdr_src(struct net_pkt *pkt) in net_pkt_lladdr_src()
1285 static inline struct net_linkaddr *net_pkt_lladdr_dst(struct net_pkt *pkt) in net_pkt_lladdr_dst()
1290 static inline void net_pkt_lladdr_swap(struct net_pkt *pkt) in net_pkt_lladdr_swap()
1298 static inline void net_pkt_lladdr_clear(struct net_pkt *pkt) in net_pkt_lladdr_clear()
1304 static inline uint16_t net_pkt_ll_proto_type(struct net_pkt *pkt) in net_pkt_ll_proto_type()
1309 static inline void net_pkt_set_ll_proto_type(struct net_pkt *pkt, uint16_t type) in net_pkt_set_ll_proto_type()
1315 static inline bool net_pkt_ipv4_acd(struct net_pkt *pkt) in net_pkt_ipv4_acd()
1320 static inline void net_pkt_set_ipv4_acd(struct net_pkt *pkt, in net_pkt_set_ipv4_acd()
1326 static inline bool net_pkt_ipv4_acd(struct net_pkt *pkt) in net_pkt_ipv4_acd()
1333 static inline void net_pkt_set_ipv4_acd(struct net_pkt *pkt, in net_pkt_set_ipv4_acd()
1342 static inline bool net_pkt_is_lldp(struct net_pkt *pkt) in net_pkt_is_lldp()
1347 static inline void net_pkt_set_lldp(struct net_pkt *pkt, bool is_lldp) in net_pkt_set_lldp()
1352 static inline bool net_pkt_is_lldp(struct net_pkt *pkt) in net_pkt_is_lldp()
1359 static inline void net_pkt_set_lldp(struct net_pkt *pkt, bool is_lldp) in net_pkt_set_lldp()
1367 static inline bool net_pkt_is_ppp(struct net_pkt *pkt) in net_pkt_is_ppp()
1372 static inline void net_pkt_set_ppp(struct net_pkt *pkt, in net_pkt_set_ppp()
1378 static inline bool net_pkt_is_ppp(struct net_pkt *pkt) in net_pkt_is_ppp()
1385 static inline void net_pkt_set_ppp(struct net_pkt *pkt, in net_pkt_set_ppp()
1394 static inline void *net_pkt_cb(struct net_pkt *pkt) in net_pkt_cb()
1399 static inline void *net_pkt_cb(struct net_pkt *pkt) in net_pkt_cb()
1410 static inline void net_pkt_set_src_ipv6_addr(struct net_pkt *pkt) in net_pkt_set_src_ipv6_addr()
1417 static inline void net_pkt_set_overwrite(struct net_pkt *pkt, bool overwrite) in net_pkt_set_overwrite()
1422 static inline bool net_pkt_is_being_overwritten(struct net_pkt *pkt) in net_pkt_is_being_overwritten()
1429 bool net_pkt_filter_send_ok(struct net_pkt *pkt);
1430 bool net_pkt_filter_recv_ok(struct net_pkt *pkt);
1434 static inline bool net_pkt_filter_send_ok(struct net_pkt *pkt) in net_pkt_filter_send_ok()
1441 static inline bool net_pkt_filter_recv_ok(struct net_pkt *pkt) in net_pkt_filter_recv_ok()
1453 bool net_pkt_filter_ip_recv_ok(struct net_pkt *pkt);
1457 static inline bool net_pkt_filter_ip_recv_ok(struct net_pkt *pkt) in net_pkt_filter_ip_recv_ok()
1468 bool net_pkt_filter_local_in_recv_ok(struct net_pkt *pkt);
1472 static inline bool net_pkt_filter_local_in_recv_ok(struct net_pkt *pkt) in net_pkt_filter_local_in_recv_ok()
1482 static inline struct sockaddr *net_pkt_remote_address(struct net_pkt *pkt) in net_pkt_remote_address()
1487 static inline void net_pkt_set_remote_address(struct net_pkt *pkt, in net_pkt_set_remote_address()
1511 K_MEM_SLAB_DEFINE(name, sizeof(struct net_pkt), count, 4); \
1574 struct net_buf *net_pkt_get_frag_debug(struct net_pkt *pkt, size_t min_len,
1580 void net_pkt_unref_debug(struct net_pkt *pkt, const char *caller, int line);
1583 struct net_pkt *net_pkt_ref_debug(struct net_pkt *pkt, const char *caller,
1596 struct net_buf *net_pkt_frag_del_debug(struct net_pkt *pkt,
1603 void net_pkt_frag_add_debug(struct net_pkt *pkt, struct net_buf *frag,
1608 void net_pkt_frag_insert_debug(struct net_pkt *pkt, struct net_buf *frag,
1625 void net_pkt_print_frags(struct net_pkt *pkt);
1698 struct net_buf *net_pkt_get_frag(struct net_pkt *pkt, size_t min_len,
1712 void net_pkt_unref(struct net_pkt *pkt);
1725 struct net_pkt *net_pkt_ref(struct net_pkt *pkt);
1761 struct net_buf *net_pkt_frag_del(struct net_pkt *pkt,
1773 void net_pkt_frag_add(struct net_pkt *pkt, struct net_buf *frag);
1783 void net_pkt_frag_insert(struct net_pkt *pkt, struct net_buf *frag);
1792 void net_pkt_compact(struct net_pkt *pkt);
1815 typedef void (*net_pkt_allocs_cb_t)(struct net_pkt *pkt,
1838 struct net_pkt *net_pkt_alloc_debug(k_timeout_t timeout,
1843 struct net_pkt *net_pkt_alloc_from_slab_debug(struct k_mem_slab *slab,
1849 struct net_pkt *net_pkt_rx_alloc_debug(k_timeout_t timeout,
1854 struct net_pkt *net_pkt_alloc_on_iface_debug(struct net_if *iface,
1861 struct net_pkt *net_pkt_rx_alloc_on_iface_debug(struct net_if *iface,
1869 int net_pkt_alloc_buffer_debug(struct net_pkt *pkt,
1878 int net_pkt_alloc_buffer_raw_debug(struct net_pkt *pkt, size_t size,
1885 struct net_pkt *net_pkt_alloc_with_buffer_debug(struct net_if *iface,
1898 struct net_pkt *net_pkt_rx_alloc_with_buffer_debug(struct net_if *iface,
1911 int net_pkt_alloc_buffer_with_reserve_debug(struct net_pkt *pkt,
1936 struct net_pkt *net_pkt_alloc(k_timeout_t timeout);
1954 struct net_pkt *net_pkt_alloc_from_slab(struct k_mem_slab *slab,
1969 struct net_pkt *net_pkt_rx_alloc(k_timeout_t timeout);
1981 struct net_pkt *net_pkt_alloc_on_iface(struct net_if *iface,
1987 struct net_pkt *net_pkt_rx_alloc_on_iface(struct net_if *iface,
2009 int net_pkt_alloc_buffer(struct net_pkt *pkt,
2034 int net_pkt_alloc_buffer_with_reserve(struct net_pkt *pkt,
2054 int net_pkt_alloc_buffer_raw(struct net_pkt *pkt, size_t size,
2070 struct net_pkt *net_pkt_alloc_with_buffer(struct net_if *iface,
2079 struct net_pkt *net_pkt_rx_alloc_with_buffer(struct net_if *iface,
2095 void net_pkt_append_buffer(struct net_pkt *pkt, struct net_buf *buffer);
2107 size_t net_pkt_available_buffer(struct net_pkt *pkt);
2124 size_t net_pkt_available_payload_buffer(struct net_pkt *pkt,
2135 void net_pkt_trim_buffer(struct net_pkt *pkt);
2151 int net_pkt_remove_tail(struct net_pkt *pkt, size_t length);
2160 void net_pkt_cursor_init(struct net_pkt *pkt);
2168 static inline void net_pkt_cursor_backup(struct net_pkt *pkt, in net_pkt_cursor_backup()
2181 static inline void net_pkt_cursor_restore(struct net_pkt *pkt, in net_pkt_cursor_restore()
2195 static inline void *net_pkt_cursor_get_pos(struct net_pkt *pkt) in net_pkt_cursor_get_pos()
2220 int net_pkt_skip(struct net_pkt *pkt, size_t length);
2236 int net_pkt_memset(struct net_pkt *pkt, int byte, size_t length);
2251 int net_pkt_copy(struct net_pkt *pkt_dst,
2252 struct net_pkt *pkt_src,
2264 struct net_pkt *net_pkt_clone(struct net_pkt *pkt, k_timeout_t timeout);
2275 struct net_pkt *net_pkt_rx_clone(struct net_pkt *pkt, k_timeout_t timeout);
2285 struct net_pkt *net_pkt_shallow_clone(struct net_pkt *pkt,
2301 int net_pkt_read(struct net_pkt *pkt, void *data, size_t length);
2315 static inline int net_pkt_read_u8(struct net_pkt *pkt, uint8_t *data) in net_pkt_read_u8()
2332 int net_pkt_read_be16(struct net_pkt *pkt, uint16_t *data);
2346 int net_pkt_read_le16(struct net_pkt *pkt, uint16_t *data);
2360 int net_pkt_read_be32(struct net_pkt *pkt, uint32_t *data);
2375 int net_pkt_write(struct net_pkt *pkt, const void *data, size_t length);
2389 static inline int net_pkt_write_u8(struct net_pkt *pkt, uint8_t data) in net_pkt_write_u8()
2406 static inline int net_pkt_write_be16(struct net_pkt *pkt, uint16_t data) in net_pkt_write_be16()
2425 static inline int net_pkt_write_be32(struct net_pkt *pkt, uint32_t data) in net_pkt_write_be32()
2444 static inline int net_pkt_write_le32(struct net_pkt *pkt, uint32_t data) in net_pkt_write_le32()
2463 static inline int net_pkt_write_le16(struct net_pkt *pkt, uint16_t data) in net_pkt_write_le16()
2477 size_t net_pkt_remaining_data(struct net_pkt *pkt);
2491 int net_pkt_update_length(struct net_pkt *pkt, size_t length);
2505 int net_pkt_pull(struct net_pkt *pkt, size_t length);
2515 uint16_t net_pkt_get_current_offset(struct net_pkt *pkt);
2528 bool net_pkt_is_contiguous(struct net_pkt *pkt, size_t size);
2538 size_t net_pkt_get_contiguous_len(struct net_pkt *pkt);
2589 void *net_pkt_get_data(struct net_pkt *pkt,
2605 int net_pkt_set_data(struct net_pkt *pkt,
2612 static inline int net_pkt_acknowledge_data(struct net_pkt *pkt, in net_pkt_acknowledge_data()