| /Zephyr-latest/include/zephyr/net/ | 
| D | net_pkt.h | 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()
 [all …]
 
 | 
| D | ieee802154_pkt.h | 93 static inline struct net_pkt_cb_ieee802154 *net_pkt_cb_ieee802154(struct net_pkt *pkt)  in net_pkt_cb_ieee802154()98 static inline uint8_t net_pkt_ieee802154_lqi(struct net_pkt *pkt)  in net_pkt_ieee802154_lqi()
 103 static inline void net_pkt_set_ieee802154_lqi(struct net_pkt *pkt, uint8_t lqi)  in net_pkt_set_ieee802154_lqi()
 120 static inline uint8_t net_pkt_ieee802154_rssi(struct net_pkt *pkt)  in net_pkt_ieee802154_rssi()
 137 static inline void net_pkt_set_ieee802154_rssi(struct net_pkt *pkt, uint8_t rssi)  in net_pkt_set_ieee802154_rssi()
 153 static inline int16_t net_pkt_ieee802154_rssi_dbm(struct net_pkt *pkt)  in net_pkt_ieee802154_rssi_dbm()
 171 static inline void net_pkt_set_ieee802154_rssi_dbm(struct net_pkt *pkt, int16_t rssi)  in net_pkt_set_ieee802154_rssi_dbm()
 193 static inline uint8_t net_pkt_ieee802154_txchannel(struct net_pkt *pkt)  in net_pkt_ieee802154_txchannel()
 198 static inline void net_pkt_set_ieee802154_txchannel(struct net_pkt *pkt, uint8_t channel)  in net_pkt_set_ieee802154_txchannel()
 204 static inline bool net_pkt_ieee802154_ack_fpb(struct net_pkt *pkt)  in net_pkt_ieee802154_ack_fpb()
 [all …]
 
 | 
| /Zephyr-latest/subsys/net/ip/ | 
| D | net_core.c | 66 static inline enum net_verdict process_data(struct net_pkt *pkt,  in process_data()157 static void processing_data(struct net_pkt *pkt, bool is_loopback)  in processing_data()
 194 static inline void copy_ll_addr(struct net_pkt *pkt)  in copy_ll_addr()
 206 static inline int check_ip(struct net_pkt *pkt)  in check_ip()
 366 int net_try_send_data(struct net_pkt *pkt, k_timeout_t timeout)  in net_try_send_data()
 433 static void net_rx(struct net_if *iface, struct net_pkt *pkt)  in net_rx()
 458 void net_process_rx_packet(struct net_pkt *pkt)  in net_process_rx_packet()
 467 static void net_queue_rx(struct net_if *iface, struct net_pkt *pkt)  in net_queue_rx()
 498 int net_recv_data(struct net_if *iface, struct net_pkt *pkt)  in net_recv_data()
 572 int net_try_send_data(struct net_pkt *pkt, k_timeout_t timeout)  in net_try_send_data()
 [all …]
 
 | 
| D | net_pkt.c | 154 		struct net_pkt *pkt;  member310 void net_pkt_print_frags(struct net_pkt *pkt)  in net_pkt_print_frags()
 427 struct net_buf *net_pkt_get_frag_debug(struct net_pkt *pkt, size_t min_len,  in net_pkt_get_frag_debug()
 519 void net_pkt_unref_debug(struct net_pkt *pkt, const char *caller, int line)
 620 struct net_pkt *net_pkt_ref_debug(struct net_pkt *pkt, const char *caller,
 705 struct net_buf *net_pkt_frag_del_debug(struct net_pkt *pkt,
 741 void net_pkt_frag_add_debug(struct net_pkt *pkt, struct net_buf *frag,
 763 void net_pkt_frag_insert_debug(struct net_pkt *pkt, struct net_buf *frag,
 777 void net_pkt_compact(struct net_pkt *pkt)
 886 #define NET_PKT_ALLOC_STATS_UPDATE(pkt, alloc_size, start) ({		\  argument
 [all …]
 
 | 
| D | 6lo.h | 37 static inline int net_6lo_compress(struct net_pkt *pkt, bool iphc)  in net_6lo_compress()60 static inline bool net_6lo_uncompress(struct net_pkt *pkt)  in net_6lo_uncompress()
 
 | 
| D | udp_internal.h | 68 static inline int net_udp_finalize(struct net_pkt *pkt, bool force_chksum)  in net_udp_finalize()90 struct net_udp_hdr *net_udp_input(struct net_pkt *pkt,  in net_udp_input()
 
 | 
| D | ipv4.c | 36 int net_ipv4_create_full(struct net_pkt *pkt,  in net_ipv4_create_full()90 int net_ipv4_create(struct net_pkt *pkt,  in net_ipv4_create()
 109 int net_ipv4_finalize(struct net_pkt *pkt, uint8_t next_header_proto)  in net_ipv4_finalize()
 153 int net_ipv4_parse_hdr_options(struct net_pkt *pkt,  in net_ipv4_parse_hdr_options()
 243 enum net_verdict net_ipv4_input(struct net_pkt *pkt, bool is_loopback)  in net_ipv4_input()
 455 enum net_verdict net_ipv4_prepare_for_send(struct net_pkt *pkt)  in net_ipv4_prepare_for_send()
 
 | 
| D | udp.c | 20 int net_udp_create(struct net_pkt *pkt, uint16_t src_port, uint16_t dst_port)  in net_udp_create()38 int net_udp_finalize(struct net_pkt *pkt, bool force_chksum)  in net_udp_finalize()
 64 struct net_udp_hdr *net_udp_get_hdr(struct net_pkt *pkt,  in net_udp_get_hdr()
 95 struct net_udp_hdr *net_udp_set_hdr(struct net_pkt *pkt,  in net_udp_set_hdr()
 150 struct net_udp_hdr *net_udp_input(struct net_pkt *pkt,  in net_udp_input()
 
 | 
| D | icmpv6.c | 60 int net_icmpv6_finalize(struct net_pkt *pkt, bool force_chksum)  in net_icmpv6_finalize()81 int net_icmpv6_create(struct net_pkt *pkt, uint8_t icmp_type, uint8_t icmp_code)  in net_icmpv6_create()
 100 				      struct net_pkt *pkt,  in icmpv6_handle_echo_request()
 197 	struct net_pkt *pkt;  in net_icmpv6_send_error()  local
 338 enum net_verdict net_icmpv6_input(struct net_pkt *pkt,  in net_icmpv6_input()
 
 | 
| D | igmp.c | 56 static int igmp_v2_create(struct net_pkt *pkt, const struct in_addr *addr,  in igmp_v2_create()92 static int igmp_v3_create(struct net_pkt *pkt, uint8_t type, struct net_if_mcast_addr mcast[],  in igmp_v3_create()
 186 static int igmp_v2_create_packet(struct net_pkt *pkt, const struct in_addr *dst,  in igmp_v2_create_packet()
 219 static int igmp_v3_create_packet(struct net_pkt *pkt, const struct in_addr *dst,  in igmp_v3_create_packet()
 245 static int igmp_send(struct net_pkt *pkt)  in igmp_send()
 267 	struct net_pkt *pkt = NULL;  in send_igmp_report()  local
 348 	struct net_pkt *pkt = NULL;  in send_igmp_v3_report()  local
 414 enum net_verdict net_ipv4_igmp_input(struct net_pkt *pkt, struct net_ipv4_hdr *ip_hdr)
 511 	struct net_pkt *pkt;  local
 551 	struct net_pkt *pkt;  local
 
 | 
| D | net_private.h | 185 static inline enum net_verdict net_ipv4_input(struct net_pkt *pkt,  in net_ipv4_input()194 static inline enum net_verdict net_ipv6_input(struct net_pkt *pkt,  in net_ipv6_input()
 322 #define net_calc_chksum_igmp(pkt) 0U  argument
 325 static inline uint16_t net_calc_chksum_icmpv6(struct net_pkt *pkt)  in net_calc_chksum_icmpv6()
 330 static inline uint16_t net_calc_chksum_icmpv4(struct net_pkt *pkt)  in net_calc_chksum_icmpv4()
 335 static inline uint16_t net_calc_chksum_udp(struct net_pkt *pkt)  in net_calc_chksum_udp()
 342 static inline uint16_t net_calc_verify_chksum_udp(struct net_pkt *pkt)  in net_calc_verify_chksum_udp()
 347 static inline uint16_t net_calc_chksum_tcp(struct net_pkt *pkt)  in net_calc_chksum_tcp()
 372 static inline void net_pkt_hexdump(struct net_pkt *pkt, const char *str)  in net_pkt_hexdump()
 389 static inline void net_pkt_print_buffer_info(struct net_pkt *pkt, const char *str)  in net_pkt_print_buffer_info()
 
 | 
| /Zephyr-latest/subsys/net/l2/ethernet/gptp/ | 
| D | gptp_messages.c | 27 #define NET_GPTP_INFO(msg, pkt)						\  argument57 struct gptp_hdr *gptp_get_hdr(struct net_pkt *pkt)  in gptp_get_hdr()
 81 static void gptp_sync_timestamp_callback(struct net_pkt *pkt)  in gptp_sync_timestamp_callback()
 109 static void gptp_pdelay_response_timestamp_callback(struct net_pkt *pkt)  in gptp_pdelay_response_timestamp_callback()
 156 	struct net_pkt *pkt;  in setup_gptp_frame_debug()  local
 190 	struct net_pkt *pkt;  in gptp_prepare_sync()  local
 245 	struct net_pkt *pkt;  in gptp_prepare_follow_up()  local
 295 	struct net_pkt *pkt;  in gptp_prepare_pdelay_req()  local
 355 	struct net_pkt *pkt;  in gptp_prepare_pdelay_resp()  local
 415 	struct net_pkt *pkt;  in gptp_prepare_pdelay_follow_up()  local
 [all …]
 
 | 
| /Zephyr-latest/subsys/net/pkt_filter/ | 
| D | base.c | 80 static bool apply_tests(struct npf_rule *rule, struct net_pkt *pkt)  in apply_tests()101 static enum net_verdict evaluate(sys_slist_t *rule_head, struct net_pkt *pkt)  in evaluate()
 122 static enum net_verdict lock_evaluate(struct npf_rule_list *rules, struct net_pkt *pkt)  in lock_evaluate()
 131 bool net_pkt_filter_send_ok(struct net_pkt *pkt)  in net_pkt_filter_send_ok()
 138 bool net_pkt_filter_recv_ok(struct net_pkt *pkt)  in net_pkt_filter_recv_ok()
 146 bool net_pkt_filter_local_in_recv_ok(struct net_pkt *pkt)  in net_pkt_filter_local_in_recv_ok()
 155 bool net_pkt_filter_ip_recv_ok(struct net_pkt *pkt)  in net_pkt_filter_ip_recv_ok()
 237 bool npf_iface_match(struct npf_test *test, struct net_pkt *pkt)  in npf_iface_match()
 245 bool npf_iface_unmatch(struct npf_test *test, struct net_pkt *pkt)  in npf_iface_unmatch()
 250 bool npf_orig_iface_match(struct npf_test *test, struct net_pkt *pkt)  in npf_orig_iface_match()
 [all …]
 
 | 
| D | ethernet.c | 44 bool npf_eth_src_addr_match(struct npf_test *test, struct net_pkt *pkt)  in npf_eth_src_addr_match()51 bool npf_eth_src_addr_unmatch(struct npf_test *test, struct net_pkt *pkt)  in npf_eth_src_addr_unmatch()
 56 bool npf_eth_dst_addr_match(struct npf_test *test, struct net_pkt *pkt)  in npf_eth_dst_addr_match()
 63 bool npf_eth_dst_addr_unmatch(struct npf_test *test, struct net_pkt *pkt)  in npf_eth_dst_addr_unmatch()
 68 bool npf_eth_type_match(struct npf_test *test, struct net_pkt *pkt)  in npf_eth_type_match()
 78 bool npf_eth_type_unmatch(struct npf_test *test, struct net_pkt *pkt)  in npf_eth_type_unmatch()
 
 | 
| /Zephyr-latest/tests/net/icmpv4/src/ | 
| D | main.c | 120 			    struct net_pkt *pkt,  in handle_reply_msg()175 static int verify_echo_reply(struct net_pkt *pkt)  in verify_echo_reply()
 226 static int verify_echo_reply_with_opts(struct net_pkt *pkt)  in verify_echo_reply_with_opts()
 291 static int tester_send(const struct device *dev, struct net_pkt *pkt)  in tester_send()
 318 	struct net_pkt *pkt;  in prepare_echo_request()  local
 343 	struct net_pkt *pkt;  in prepare_echo_reply()  local
 368 	struct net_pkt *pkt;  in prepare_echo_request_with_options()  local
 395 	struct net_pkt *pkt;  in prepare_echo_request_with_bad_options()  local
 446 	struct net_pkt *pkt;  in icmpv4_send_echo_req()  local
 464 	struct net_pkt *pkt;  in icmpv4_send_echo_rep()  local
 [all …]
 
 | 
| /Zephyr-latest/subsys/net/l2/ppp/ | 
| D | ipcp.c | 23 				    struct net_pkt *pkt)  in ipcp_handle()33 static int ipcp_add_address(struct ppp_context *ctx, struct net_pkt *pkt,  in ipcp_add_address()
 40 static int ipcp_add_ip_address(struct ppp_context *ctx, struct net_pkt *pkt)  in ipcp_add_ip_address()
 45 static int ipcp_add_dns1(struct ppp_context *ctx, struct net_pkt *pkt)  in ipcp_add_dns1()
 50 static int ipcp_add_dns2(struct ppp_context *ctx, struct net_pkt *pkt)  in ipcp_add_dns2()
 55 static int ipcp_ack_check_address(struct net_pkt *pkt, size_t oplen,  in ipcp_ack_check_address()
 77 static int ipcp_ack_ip_address(struct ppp_context *ctx, struct net_pkt *pkt,  in ipcp_ack_ip_address()
 84 static int ipcp_ack_dns1(struct ppp_context *ctx, struct net_pkt *pkt,  in ipcp_ack_dns1()
 91 static int ipcp_ack_dns2(struct ppp_context *ctx, struct net_pkt *pkt,  in ipcp_ack_dns2()
 98 static int ipcp_nak_override_address(struct net_pkt *pkt, size_t oplen,  in ipcp_nak_override_address()
 [all …]
 
 | 
| D | fsm.c | 58 	struct net_pkt *pkt = NULL;  in fsm_send_configure_req()  local383 	struct net_pkt *pkt = NULL;  in ppp_send_pkt()  local
 562 					       struct net_pkt *pkt,  in fsm_recv_configure_req()
 682 					       struct net_pkt *pkt,  in fsm_recv_configure_ack()
 751 						    struct net_pkt *pkt,  in fsm_recv_configure_nack_rej()
 850 					       struct net_pkt *pkt,  in fsm_recv_terminate_req()
 897 					       struct net_pkt *pkt,  in fsm_recv_terminate_ack()
 945 					  struct net_pkt *pkt)  in fsm_recv_code_rej()
 1028 			       struct net_pkt *pkt)  in ppp_fsm_input()
 1116 					   struct net_pkt *pkt)  in ppp_fsm_recv_protocol_rej()
 [all …]
 
 | 
| D | options.c | 21 int ppp_parse_options(struct ppp_fsm *fsm, struct net_pkt *pkt,  in ppp_parse_options()23 		      int (*parse)(struct net_pkt *pkt, uint8_t code,  in ppp_parse_options()
 108 static int ppp_parse_option_conf_req_unsupported(struct net_pkt *pkt,  in ppp_parse_option_conf_req_unsupported()
 141 static int ppp_parse_option_conf_req_supported(struct net_pkt *pkt,  in ppp_parse_option_conf_req_supported()
 164 			struct net_pkt *pkt,  in ppp_config_info_req()
 220 	struct net_pkt *pkt;  in ppp_my_options_add()  local
 284 static int ppp_my_option_parse(struct net_pkt *pkt, uint8_t code,  in ppp_my_option_parse()
 302 				struct net_pkt *pkt,  in ppp_my_options_parse()
 316 					struct net_pkt *pkt, uint8_t len,  in ppp_my_option_parse_conf_ack()
 330 				  struct net_pkt *pkt,  in ppp_my_options_parse_conf_ack()
 [all …]
 
 | 
| /Zephyr-latest/scripts/coredump/gdbstubs/ | 
| D | gdbstub.py | 144     def handle_register_single_read_packet(self, pkt):  argument148     def handle_register_single_write_packet(self, pkt):  argument
 154     def handle_memory_read_packet(self, pkt):  argument
 171     def handle_memory_write_packet(self, pkt):  argument
 177     def handle_general_query_packet(self, pkt):  argument
 279     def handle_thread_alive_packet(self, pkt):  argument
 290     def handle_thread_op_packet(self, pkt):  argument
 
 | 
| /Zephyr-latest/tests/net/dhcpv6/src/ | 
| D | main.c | 58 static int test_send(const struct device *dev, struct net_pkt *pkt)  in test_send()133 	struct net_pkt *pkt;  in test_dhcpv6_create_message()  local
 254 static void verify_dhcpv6_header(struct net_if *iface, struct net_pkt *pkt,  in verify_dhcpv6_header()
 273 static void verify_dhcpv6_clientid(struct net_if *iface, struct net_pkt *pkt)  in verify_dhcpv6_clientid()
 286 static void verify_dhcpv6_serverid(struct net_if *iface, struct net_pkt *pkt)  in verify_dhcpv6_serverid()
 299 static void verify_dhcpv6_no_serverid(struct net_if *iface, struct net_pkt *pkt)  in verify_dhcpv6_no_serverid()
 308 static void verify_dhcpv6_elapsed_time(struct net_if *iface, struct net_pkt *pkt,  in verify_dhcpv6_elapsed_time()
 330 static void verify_dhcpv6_ia_na(struct net_if *iface, struct net_pkt *pkt,  in verify_dhcpv6_ia_na()
 358 static void verify_dhcpv6_ia_pd(struct net_if *iface, struct net_pkt *pkt,  in verify_dhcpv6_ia_pd()
 389 						struct net_pkt *pkt)  in verify_dhcpv6_no_reconfigure_accept()
 [all …]
 
 | 
| /Zephyr-latest/subsys/net/lib/dhcpv6/ | 
| D | dhcpv6.c | 205 static int dhcpv6_add_header(struct net_pkt *pkt, enum dhcpv6_msg_type type,  in dhcpv6_add_header()220 static int dhcpv6_add_option_header(struct net_pkt *pkt,  in dhcpv6_add_option_header()
 236 static int dhcpv6_add_option_clientid(struct net_pkt *pkt,  in dhcpv6_add_option_clientid()
 252 static int dhcpv6_add_option_serverid(struct net_pkt *pkt,  in dhcpv6_add_option_serverid()
 269 static int dhcpv6_add_option_elapsed_time(struct net_pkt *pkt, uint64_t since)  in dhcpv6_add_option_elapsed_time()
 291 static int dhcpv6_add_option_ia_na(struct net_pkt *pkt, struct dhcpv6_ia_na *ia_na,  in dhcpv6_add_option_ia_na()
 350 static int dhcpv6_add_option_ia_pd(struct net_pkt *pkt, struct dhcpv6_ia_pd *ia_pd,  in dhcpv6_add_option_ia_pd()
 416 static int dhcpv6_add_option_oro(struct net_pkt *pkt, uint16_t *codes,  in dhcpv6_add_option_oro()
 493 static int dhcpv6_add_options(struct net_if *iface, struct net_pkt *pkt,  in dhcpv6_add_options()
 582 	struct net_pkt *pkt;  in dhcpv6_create_message()  local
 [all …]
 
 | 
| /Zephyr-latest/subsys/net/l2/canbus/ | 
| D | canbus_raw.c | 17 					   struct net_pkt *pkt)  in canbus_recv()31 static inline int canbus_send(struct net_if *iface, struct net_pkt *pkt)  in canbus_send()
 
 | 
| /Zephyr-latest/tests/net/net_pkt/src/ | 
| D | main.c | 46 static int fake_dev_send(const struct device *dev, struct net_pkt *pkt)  in fake_dev_send()88 static bool pkt_is_of_size(struct net_pkt *pkt, size_t size)  in pkt_is_of_size()
 93 static void pkt_print_cursor(struct net_pkt *pkt)  in pkt_print_cursor()
 111 	struct net_pkt *pkt;  in ZTEST()  local
 135 	struct net_pkt *pkt;  in ZTEST()  local
 242 	struct net_pkt *pkt;  in ZTEST()  local
 425 	struct net_pkt *pkt;  in ZTEST()  local
 517 	struct net_pkt *pkt;  in ZTEST()  local
 788 	struct net_pkt *pkt;  in ZTEST()  local
 904 	struct net_pkt *pkt;  in ZTEST()  local
 [all …]
 
 | 
| /Zephyr-latest/subsys/net/l2/ieee802154/ | 
| D | ieee802154_6lo_fragment.c | 42 	struct net_pkt *pkt;	       /* Reassemble packet */  member229 static void update_protocol_header_lengths(struct net_pkt *pkt, uint16_t size)  in update_protocol_header_lengths()
 304 static inline struct frag_cache *set_reass_cache(struct net_pkt *pkt, uint16_t size, uint16_t tag)  in set_reass_cache()
 345 static inline void fragment_append(struct net_pkt *pkt, struct net_buf *frag)  in fragment_append()
 358 static inline size_t fragment_cached_pkt_len(struct net_pkt *pkt)  in fragment_cached_pkt_len()
 404 static void fragment_move_back(struct net_pkt *pkt, struct net_buf *frag, struct net_buf *stop)  in fragment_move_back()
 426 static inline void fragment_remove_headers(struct net_pkt *pkt)  in fragment_remove_headers()
 445 static inline void fragment_reconstruct_packet(struct net_pkt *pkt)  in fragment_reconstruct_packet()
 468 static inline bool fragment_packet_valid(struct net_pkt *pkt)  in fragment_packet_valid()
 481 static inline enum net_verdict fragment_add_to_cache(struct net_pkt *pkt)  in fragment_add_to_cache()
 [all …]
 
 | 
| D | ieee802154_6lo_fragment.h | 24 static inline bool ieee802154_6lo_requires_fragmentation(struct net_pkt *pkt, uint8_t ll_hdr_len,  in ieee802154_6lo_requires_fragmentation()31 						    struct net_pkt *pkt, uint16_t hdr_diff,  in ieee802154_6lo_fragment_ctx_init()
 
 |