Lines Matching defs:pkt
356 static inline struct net_linkaddr *net_pkt_lladdr_if(struct net_pkt *pkt) in net_pkt_lladdr_if()
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()
1227 #define net_pkt_set_tx_stats_tick(pkt, tick) net_pkt_set_stats_tick(pkt, tick) argument
1228 #define net_pkt_set_rx_stats_tick(pkt, tick) net_pkt_set_stats_tick(pkt, tick) argument
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()
1255 #define net_pkt_set_tx_stats_tick(pkt, tick) argument
1256 #define net_pkt_set_rx_stats_tick(pkt, tick) argument
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()
1407 #define NET_IPV6_HDR(pkt) ((struct net_ipv6_hdr *)net_pkt_ip_data(pkt)) argument
1408 #define NET_IPV4_HDR(pkt) ((struct net_ipv4_hdr *)net_pkt_ip_data(pkt)) argument
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()
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()
1457 static inline bool net_pkt_filter_ip_recv_ok(struct net_pkt *pkt) in net_pkt_filter_ip_recv_ok()
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()
1577 #define net_pkt_get_frag(pkt, min_len, timeout) \ argument
1581 #define net_pkt_unref(pkt) net_pkt_unref_debug(pkt, __func__, __LINE__) argument
1585 #define net_pkt_ref(pkt) net_pkt_ref_debug(pkt, __func__, __LINE__) argument
1600 #define net_pkt_frag_del(pkt, parent, frag) \ argument
1605 #define net_pkt_frag_add(pkt, frag) \ argument
1610 #define net_pkt_frag_insert(pkt, frag) \ argument
1627 #define net_pkt_print_frags(pkt) argument
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()
2315 static inline int net_pkt_read_u8(struct net_pkt *pkt, uint8_t *data) in net_pkt_read_u8()
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()
2612 static inline int net_pkt_acknowledge_data(struct net_pkt *pkt, in net_pkt_acknowledge_data()