Lines Matching defs:pkt

277 static inline struct net_linkaddr *net_pkt_lladdr_if(struct net_pkt *pkt)  in net_pkt_lladdr_if()
282 static inline struct net_context *net_pkt_context(struct net_pkt *pkt) in net_pkt_context()
287 static inline void net_pkt_set_context(struct net_pkt *pkt, in net_pkt_set_context()
293 static inline struct net_if *net_pkt_iface(struct net_pkt *pkt) in net_pkt_iface()
298 static inline void net_pkt_set_iface(struct net_pkt *pkt, struct net_if *iface) in net_pkt_set_iface()
312 static inline struct net_if *net_pkt_orig_iface(struct net_pkt *pkt) in net_pkt_orig_iface()
321 static inline void net_pkt_set_orig_iface(struct net_pkt *pkt, in net_pkt_set_orig_iface()
329 static inline uint8_t net_pkt_family(struct net_pkt *pkt) in net_pkt_family()
334 static inline void net_pkt_set_family(struct net_pkt *pkt, uint8_t family) in net_pkt_set_family()
339 static inline bool net_pkt_is_gptp(struct net_pkt *pkt) in net_pkt_is_gptp()
344 static inline void net_pkt_set_gptp(struct net_pkt *pkt, bool is_gptp) in net_pkt_set_gptp()
349 static inline bool net_pkt_is_captured(struct net_pkt *pkt) in net_pkt_is_captured()
354 static inline void net_pkt_set_captured(struct net_pkt *pkt, bool is_captured) in net_pkt_set_captured()
359 static inline bool net_pkt_is_l2_bridged(struct net_pkt *pkt) in net_pkt_is_l2_bridged()
364 static inline void net_pkt_set_l2_bridged(struct net_pkt *pkt, bool is_l2_bridged) in net_pkt_set_l2_bridged()
371 static inline uint8_t net_pkt_ip_hdr_len(struct net_pkt *pkt) in net_pkt_ip_hdr_len()
376 static inline void net_pkt_set_ip_hdr_len(struct net_pkt *pkt, uint8_t len) in net_pkt_set_ip_hdr_len()
381 static inline uint8_t net_pkt_sent(struct net_pkt *pkt) in net_pkt_sent()
386 static inline void net_pkt_set_sent(struct net_pkt *pkt, bool sent) in net_pkt_set_sent()
391 static inline uint8_t net_pkt_queued(struct net_pkt *pkt) in net_pkt_queued()
396 static inline void net_pkt_set_queued(struct net_pkt *pkt, bool send) in net_pkt_set_queued()
401 static inline uint8_t net_pkt_tcp_1st_msg(struct net_pkt *pkt) in net_pkt_tcp_1st_msg()
410 static inline void net_pkt_set_tcp_1st_msg(struct net_pkt *pkt, bool is_1st) in net_pkt_set_tcp_1st_msg()
421 static inline uint8_t net_pkt_eof(struct net_pkt *pkt) in net_pkt_eof()
426 static inline void net_pkt_set_eof(struct net_pkt *pkt, bool eof) in net_pkt_set_eof()
433 static inline bool net_pkt_forwarding(struct net_pkt *pkt) in net_pkt_forwarding()
438 static inline void net_pkt_set_forwarding(struct net_pkt *pkt, bool forward) in net_pkt_set_forwarding()
443 static inline bool net_pkt_forwarding(struct net_pkt *pkt) in net_pkt_forwarding()
450 static inline uint8_t net_pkt_ipv4_ttl(struct net_pkt *pkt) in net_pkt_ipv4_ttl()
455 static inline void net_pkt_set_ipv4_ttl(struct net_pkt *pkt, in net_pkt_set_ipv4_ttl()
461 static inline uint8_t net_pkt_ipv4_opts_len(struct net_pkt *pkt) in net_pkt_ipv4_opts_len()
466 static inline void net_pkt_set_ipv4_opts_len(struct net_pkt *pkt, in net_pkt_set_ipv4_opts_len()
472 static inline uint8_t net_pkt_ipv4_ttl(struct net_pkt *pkt) in net_pkt_ipv4_ttl()
479 static inline void net_pkt_set_ipv4_ttl(struct net_pkt *pkt, in net_pkt_set_ipv4_ttl()
486 static inline uint8_t net_pkt_ipv4_opts_len(struct net_pkt *pkt) in net_pkt_ipv4_opts_len()
492 static inline void net_pkt_set_ipv4_opts_len(struct net_pkt *pkt, in net_pkt_set_ipv4_opts_len()
501 static inline uint8_t net_pkt_ipv6_ext_opt_len(struct net_pkt *pkt) in net_pkt_ipv6_ext_opt_len()
506 static inline void net_pkt_set_ipv6_ext_opt_len(struct net_pkt *pkt, in net_pkt_set_ipv6_ext_opt_len()
512 static inline uint8_t net_pkt_ipv6_next_hdr(struct net_pkt *pkt) in net_pkt_ipv6_next_hdr()
517 static inline void net_pkt_set_ipv6_next_hdr(struct net_pkt *pkt, in net_pkt_set_ipv6_next_hdr()
523 static inline uint16_t net_pkt_ipv6_ext_len(struct net_pkt *pkt) in net_pkt_ipv6_ext_len()
528 static inline void net_pkt_set_ipv6_ext_len(struct net_pkt *pkt, uint16_t len) in net_pkt_set_ipv6_ext_len()
533 static inline uint16_t net_pkt_ipv6_hdr_prev(struct net_pkt *pkt) in net_pkt_ipv6_hdr_prev()
538 static inline void net_pkt_set_ipv6_hdr_prev(struct net_pkt *pkt, in net_pkt_set_ipv6_hdr_prev()
544 static inline uint8_t net_pkt_ipv6_hop_limit(struct net_pkt *pkt) in net_pkt_ipv6_hop_limit()
549 static inline void net_pkt_set_ipv6_hop_limit(struct net_pkt *pkt, in net_pkt_set_ipv6_hop_limit()
555 static inline uint8_t net_pkt_ipv6_ext_opt_len(struct net_pkt *pkt) in net_pkt_ipv6_ext_opt_len()
562 static inline void net_pkt_set_ipv6_ext_opt_len(struct net_pkt *pkt, in net_pkt_set_ipv6_ext_opt_len()
569 static inline uint8_t net_pkt_ipv6_next_hdr(struct net_pkt *pkt) in net_pkt_ipv6_next_hdr()
576 static inline void net_pkt_set_ipv6_next_hdr(struct net_pkt *pkt, in net_pkt_set_ipv6_next_hdr()
583 static inline uint16_t net_pkt_ipv6_ext_len(struct net_pkt *pkt) in net_pkt_ipv6_ext_len()
590 static inline void net_pkt_set_ipv6_ext_len(struct net_pkt *pkt, uint16_t len) in net_pkt_set_ipv6_ext_len()
596 static inline uint16_t net_pkt_ipv6_hdr_prev(struct net_pkt *pkt) in net_pkt_ipv6_hdr_prev()
603 static inline void net_pkt_set_ipv6_hdr_prev(struct net_pkt *pkt, in net_pkt_set_ipv6_hdr_prev()
610 static inline uint8_t net_pkt_ipv6_hop_limit(struct net_pkt *pkt) in net_pkt_ipv6_hop_limit()
617 static inline void net_pkt_set_ipv6_hop_limit(struct net_pkt *pkt, in net_pkt_set_ipv6_hop_limit()
625 static inline uint16_t net_pkt_ip_opts_len(struct net_pkt *pkt) in net_pkt_ip_opts_len()
639 static inline uint16_t net_pkt_ipv6_fragment_start(struct net_pkt *pkt) in net_pkt_ipv6_fragment_start()
644 static inline void net_pkt_set_ipv6_fragment_start(struct net_pkt *pkt, in net_pkt_set_ipv6_fragment_start()
650 static inline uint16_t net_pkt_ipv6_fragment_offset(struct net_pkt *pkt) in net_pkt_ipv6_fragment_offset()
654 static inline bool net_pkt_ipv6_fragment_more(struct net_pkt *pkt) in net_pkt_ipv6_fragment_more()
659 static inline void net_pkt_set_ipv6_fragment_flags(struct net_pkt *pkt, in net_pkt_set_ipv6_fragment_flags()
665 static inline uint32_t net_pkt_ipv6_fragment_id(struct net_pkt *pkt) in net_pkt_ipv6_fragment_id()
670 static inline void net_pkt_set_ipv6_fragment_id(struct net_pkt *pkt, in net_pkt_set_ipv6_fragment_id()
676 static inline uint16_t net_pkt_ipv6_fragment_start(struct net_pkt *pkt) in net_pkt_ipv6_fragment_start()
683 static inline void net_pkt_set_ipv6_fragment_start(struct net_pkt *pkt, in net_pkt_set_ipv6_fragment_start()
690 static inline uint16_t net_pkt_ipv6_fragment_offset(struct net_pkt *pkt) in net_pkt_ipv6_fragment_offset()
697 static inline bool net_pkt_ipv6_fragment_more(struct net_pkt *pkt) in net_pkt_ipv6_fragment_more()
704 static inline void net_pkt_set_ipv6_fragment_flags(struct net_pkt *pkt, in net_pkt_set_ipv6_fragment_flags()
711 static inline uint32_t net_pkt_ipv6_fragment_id(struct net_pkt *pkt) in net_pkt_ipv6_fragment_id()
718 static inline void net_pkt_set_ipv6_fragment_id(struct net_pkt *pkt, in net_pkt_set_ipv6_fragment_id()
726 static inline uint8_t net_pkt_priority(struct net_pkt *pkt) in net_pkt_priority()
731 static inline void net_pkt_set_priority(struct net_pkt *pkt, in net_pkt_set_priority()
738 static inline uint16_t net_pkt_vlan_tag(struct net_pkt *pkt) in net_pkt_vlan_tag()
743 static inline void net_pkt_set_vlan_tag(struct net_pkt *pkt, uint16_t tag) in net_pkt_set_vlan_tag()
748 static inline uint8_t net_pkt_vlan_priority(struct net_pkt *pkt) in net_pkt_vlan_priority()
753 static inline void net_pkt_set_vlan_priority(struct net_pkt *pkt, in net_pkt_set_vlan_priority()
759 static inline bool net_pkt_vlan_dei(struct net_pkt *pkt) in net_pkt_vlan_dei()
764 static inline void net_pkt_set_vlan_dei(struct net_pkt *pkt, bool dei) in net_pkt_set_vlan_dei()
769 static inline void net_pkt_set_vlan_tci(struct net_pkt *pkt, uint16_t tci) in net_pkt_set_vlan_tci()
774 static inline uint16_t net_pkt_vlan_tci(struct net_pkt *pkt) in net_pkt_vlan_tci()
779 static inline uint16_t net_pkt_vlan_tag(struct net_pkt *pkt) in net_pkt_vlan_tag()
784 static inline void net_pkt_set_vlan_tag(struct net_pkt *pkt, uint16_t tag) in net_pkt_set_vlan_tag()
790 static inline uint8_t net_pkt_vlan_priority(struct net_pkt *pkt) in net_pkt_vlan_priority()
796 static inline bool net_pkt_vlan_dei(struct net_pkt *pkt) in net_pkt_vlan_dei()
801 static inline void net_pkt_set_vlan_dei(struct net_pkt *pkt, bool dei) in net_pkt_set_vlan_dei()
807 static inline uint16_t net_pkt_vlan_tci(struct net_pkt *pkt) in net_pkt_vlan_tci()
812 static inline void net_pkt_set_vlan_tci(struct net_pkt *pkt, uint16_t tci) in net_pkt_set_vlan_tci()
820 static inline struct net_ptp_time *net_pkt_timestamp(struct net_pkt *pkt) in net_pkt_timestamp()
825 static inline void net_pkt_set_timestamp(struct net_pkt *pkt, in net_pkt_set_timestamp()
832 static inline struct net_ptp_time *net_pkt_timestamp(struct net_pkt *pkt) in net_pkt_timestamp()
839 static inline void net_pkt_set_timestamp(struct net_pkt *pkt, in net_pkt_set_timestamp()
848 static inline uint32_t net_pkt_create_time(struct net_pkt *pkt) in net_pkt_create_time()
853 static inline void net_pkt_set_create_time(struct net_pkt *pkt, in net_pkt_set_create_time()
859 static inline uint32_t net_pkt_create_time(struct net_pkt *pkt) in net_pkt_create_time()
866 static inline void net_pkt_set_create_time(struct net_pkt *pkt, in net_pkt_set_create_time()
875 static inline uint64_t net_pkt_txtime(struct net_pkt *pkt) in net_pkt_txtime()
880 static inline void net_pkt_set_txtime(struct net_pkt *pkt, uint64_t txtime) in net_pkt_set_txtime()
885 static inline uint64_t net_pkt_txtime(struct net_pkt *pkt) in net_pkt_txtime()
892 static inline void net_pkt_set_txtime(struct net_pkt *pkt, uint64_t txtime) in net_pkt_set_txtime()
901 static inline uint32_t *net_pkt_stats_tick(struct net_pkt *pkt) in net_pkt_stats_tick()
906 static inline int net_pkt_stats_tick_count(struct net_pkt *pkt) in net_pkt_stats_tick_count()
911 static inline void net_pkt_stats_tick_reset(struct net_pkt *pkt) in net_pkt_stats_tick_reset()
916 static ALWAYS_INLINE void net_pkt_set_stats_tick(struct net_pkt *pkt, in net_pkt_set_stats_tick()
928 #define net_pkt_set_tx_stats_tick(pkt, tick) net_pkt_set_stats_tick(pkt, tick) argument
929 #define net_pkt_set_rx_stats_tick(pkt, tick) net_pkt_set_stats_tick(pkt, tick) argument
931 static inline uint32_t *net_pkt_stats_tick(struct net_pkt *pkt) in net_pkt_stats_tick()
938 static inline int net_pkt_stats_tick_count(struct net_pkt *pkt) in net_pkt_stats_tick_count()
945 static inline void net_pkt_stats_tick_reset(struct net_pkt *pkt) in net_pkt_stats_tick_reset()
950 static inline void net_pkt_set_stats_tick(struct net_pkt *pkt, uint32_t tick) in net_pkt_set_stats_tick()
956 #define net_pkt_set_tx_stats_tick(pkt, tick) argument
957 #define net_pkt_set_rx_stats_tick(pkt, tick) argument
961 static inline size_t net_pkt_get_len(struct net_pkt *pkt) in net_pkt_get_len()
966 static inline uint8_t *net_pkt_data(struct net_pkt *pkt) in net_pkt_data()
971 static inline uint8_t *net_pkt_ip_data(struct net_pkt *pkt) in net_pkt_ip_data()
976 static inline bool net_pkt_is_empty(struct net_pkt *pkt) in net_pkt_is_empty()
981 static inline struct net_linkaddr *net_pkt_lladdr_src(struct net_pkt *pkt) in net_pkt_lladdr_src()
986 static inline struct net_linkaddr *net_pkt_lladdr_dst(struct net_pkt *pkt) in net_pkt_lladdr_dst()
991 static inline void net_pkt_lladdr_swap(struct net_pkt *pkt) in net_pkt_lladdr_swap()
999 static inline void net_pkt_lladdr_clear(struct net_pkt *pkt) in net_pkt_lladdr_clear()
1006 static inline uint8_t net_pkt_ieee802154_rssi(struct net_pkt *pkt) in net_pkt_ieee802154_rssi()
1011 static inline void net_pkt_set_ieee802154_rssi(struct net_pkt *pkt, in net_pkt_set_ieee802154_rssi()
1017 static inline uint8_t net_pkt_ieee802154_lqi(struct net_pkt *pkt) in net_pkt_ieee802154_lqi()
1022 static inline void net_pkt_set_ieee802154_lqi(struct net_pkt *pkt, in net_pkt_set_ieee802154_lqi()
1028 static inline bool net_pkt_ieee802154_arb(struct net_pkt *pkt) in net_pkt_ieee802154_arb()
1033 static inline void net_pkt_set_ieee802154_arb(struct net_pkt *pkt, bool arb) in net_pkt_set_ieee802154_arb()
1038 static inline bool net_pkt_ieee802154_ack_fpb(struct net_pkt *pkt) in net_pkt_ieee802154_ack_fpb()
1043 static inline void net_pkt_set_ieee802154_ack_fpb(struct net_pkt *pkt, in net_pkt_set_ieee802154_ack_fpb()
1049 static inline bool net_pkt_ieee802154_frame_secured(struct net_pkt *pkt) in net_pkt_ieee802154_frame_secured()
1054 static inline void net_pkt_set_ieee802154_frame_secured(struct net_pkt *pkt, in net_pkt_set_ieee802154_frame_secured()
1060 static inline bool net_pkt_ieee802154_mac_hdr_rdy(struct net_pkt *pkt) in net_pkt_ieee802154_mac_hdr_rdy()
1065 static inline void net_pkt_set_ieee802154_mac_hdr_rdy(struct net_pkt *pkt, in net_pkt_set_ieee802154_mac_hdr_rdy()
1072 static inline bool net_pkt_ieee802154_fv2015(struct net_pkt *pkt) in net_pkt_ieee802154_fv2015()
1077 static inline void net_pkt_set_ieee802154_fv2015(struct net_pkt *pkt, bool fv2015) in net_pkt_set_ieee802154_fv2015()
1082 static inline bool net_pkt_ieee802154_ack_seb(struct net_pkt *pkt) in net_pkt_ieee802154_ack_seb()
1087 static inline void net_pkt_set_ieee802154_ack_seb(struct net_pkt *pkt, bool seb) in net_pkt_set_ieee802154_ack_seb()
1092 static inline uint32_t net_pkt_ieee802154_ack_fc(struct net_pkt *pkt) in net_pkt_ieee802154_ack_fc()
1097 static inline void net_pkt_set_ieee802154_ack_fc(struct net_pkt *pkt, in net_pkt_set_ieee802154_ack_fc()
1103 static inline uint8_t net_pkt_ieee802154_ack_keyid(struct net_pkt *pkt) in net_pkt_ieee802154_ack_keyid()
1108 static inline void net_pkt_set_ieee802154_ack_keyid(struct net_pkt *pkt, in net_pkt_set_ieee802154_ack_keyid()
1117 static inline bool net_pkt_ipv4_auto(struct net_pkt *pkt) in net_pkt_ipv4_auto()
1122 static inline void net_pkt_set_ipv4_auto(struct net_pkt *pkt, in net_pkt_set_ipv4_auto()
1128 static inline bool net_pkt_ipv4_auto(struct net_pkt *pkt) in net_pkt_ipv4_auto()
1135 static inline void net_pkt_set_ipv4_auto(struct net_pkt *pkt, in net_pkt_set_ipv4_auto()
1144 static inline bool net_pkt_is_lldp(struct net_pkt *pkt) in net_pkt_is_lldp()
1149 static inline void net_pkt_set_lldp(struct net_pkt *pkt, bool is_lldp) in net_pkt_set_lldp()
1154 static inline bool net_pkt_is_lldp(struct net_pkt *pkt) in net_pkt_is_lldp()
1161 static inline void net_pkt_set_lldp(struct net_pkt *pkt, bool is_lldp) in net_pkt_set_lldp()
1169 static inline bool net_pkt_is_ppp(struct net_pkt *pkt) in net_pkt_is_ppp()
1174 static inline void net_pkt_set_ppp(struct net_pkt *pkt, in net_pkt_set_ppp()
1180 static inline bool net_pkt_is_ppp(struct net_pkt *pkt) in net_pkt_is_ppp()
1187 static inline void net_pkt_set_ppp(struct net_pkt *pkt, in net_pkt_set_ppp()
1195 #define NET_IPV6_HDR(pkt) ((struct net_ipv6_hdr *)net_pkt_ip_data(pkt)) argument
1196 #define NET_IPV4_HDR(pkt) ((struct net_ipv4_hdr *)net_pkt_ip_data(pkt)) argument
1198 static inline void net_pkt_set_src_ipv6_addr(struct net_pkt *pkt) in net_pkt_set_src_ipv6_addr()
1205 static inline void net_pkt_set_overwrite(struct net_pkt *pkt, bool overwrite) in net_pkt_set_overwrite()
1210 static inline bool net_pkt_is_being_overwritten(struct net_pkt *pkt) in net_pkt_is_being_overwritten()
1289 #define net_pkt_get_frag(pkt, timeout) \ argument
1293 #define net_pkt_unref(pkt) net_pkt_unref_debug(pkt, __func__, __LINE__) argument
1297 #define net_pkt_ref(pkt) net_pkt_ref_debug(pkt, __func__, __LINE__) argument
1312 #define net_pkt_frag_del(pkt, parent, frag) \ argument
1317 #define net_pkt_frag_add(pkt, frag) \ argument
1322 #define net_pkt_frag_insert(pkt, frag) \ argument
1339 #define net_pkt_print_frags(pkt) argument
1788 static inline void net_pkt_cursor_backup(struct net_pkt *pkt, in net_pkt_cursor_backup()
1801 static inline void net_pkt_cursor_restore(struct net_pkt *pkt, in net_pkt_cursor_restore()
1815 static inline void *net_pkt_cursor_get_pos(struct net_pkt *pkt) in net_pkt_cursor_get_pos()
1912 static inline int net_pkt_read_u8(struct net_pkt *pkt, uint8_t *data) in net_pkt_read_u8()
1975 static inline int net_pkt_write_u8(struct net_pkt *pkt, uint8_t data) in net_pkt_write_u8()
1981 static inline int net_pkt_write_be16(struct net_pkt *pkt, uint16_t data) in net_pkt_write_be16()
1989 static inline int net_pkt_write_be32(struct net_pkt *pkt, uint32_t data) in net_pkt_write_be32()
1997 static inline int net_pkt_write_le32(struct net_pkt *pkt, uint32_t data) in net_pkt_write_le32()
2005 static inline int net_pkt_write_le16(struct net_pkt *pkt, uint16_t data) in net_pkt_write_le16()
2150 static inline int net_pkt_acknowledge_data(struct net_pkt *pkt, in net_pkt_acknowledge_data()