Home
last modified time | relevance | path

Searched refs:net_pkt (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/Zephyr-latest/include/zephyr/net/
Dnet_pkt.h91 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()
[all …]
Dieee802154_pkt.h90 struct net_pkt;
91 static inline void *net_pkt_cb(struct net_pkt *pkt);
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()
[all …]
Dudp.h54 struct net_udp_hdr *net_udp_get_hdr(struct net_pkt *pkt,
57 static inline struct net_udp_hdr *net_udp_get_hdr(struct net_pkt *pkt,
80 struct net_udp_hdr *net_udp_set_hdr(struct net_pkt *pkt,
83 static inline struct net_udp_hdr *net_udp_set_hdr(struct net_pkt *pkt, in net_udp_set_hdr()
Ddsa.h59 int dsa_tx(const struct device *dev, struct net_pkt *pkt);
75 struct net_pkt *pkt);
95 struct net_if *dsa_net_recv(struct net_if *iface, struct net_pkt **pkt);
100 typedef int (*dsa_send_t)(const struct device *dev, struct net_pkt *pkt);
161 struct net_pkt *pkt);
190 struct net_pkt *(*dsa_xmit_pkt)(struct net_if *iface,
191 struct net_pkt *pkt);
Dnet_l2.h63 enum net_verdict (*recv)(struct net_if *iface, struct net_pkt *pkt);
71 int (*send)(struct net_if *iface, struct net_pkt *pkt);
87 int (*alloc)(struct net_if *iface, struct net_pkt *pkt,
149 typedef int (*net_l2_send_t)(const struct device *dev, struct net_pkt *pkt);
154 struct net_pkt *pkt) in net_l2_send()
Dcapture.h35 struct net_pkt;
55 int (*send)(const struct device *dev, struct net_if *iface, struct net_pkt *pkt);
194 struct net_pkt *pkt) in net_capture_send()
218 void net_capture_pkt(struct net_if *iface, struct net_pkt *pkt);
220 static inline void net_capture_pkt(struct net_if *iface, struct net_pkt *pkt) in net_capture_pkt()
239 int net_capture_pkt_with_status(struct net_if *iface, struct net_pkt *pkt);
241 static inline int net_capture_pkt_with_status(struct net_if *iface, struct net_pkt *pkt) in net_capture_pkt_with_status()
/Zephyr-latest/subsys/net/l2/ethernet/gptp/
Dgptp_messages.h319 static inline uint8_t *gptp_data(struct net_pkt *pkt) in gptp_data()
333 struct net_pkt *gptp_prepare_sync(int port);
342 struct net_pkt *gptp_prepare_follow_up(int port, struct net_pkt *sync);
351 struct net_pkt *gptp_prepare_pdelay_req(int port);
361 struct net_pkt *gptp_prepare_pdelay_resp(int port,
362 struct net_pkt *req);
371 struct net_pkt *gptp_prepare_announce(int port);
381 struct net_pkt *gptp_prepare_pdelay_follow_up(int port,
382 struct net_pkt *resp);
392 void gptp_handle_sync(int port, struct net_pkt *pkt);
[all …]
Dgptp_messages.c57 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()
112 struct net_pkt *follow_up; in gptp_pdelay_response_timestamp_callback()
145 static struct net_pkt *setup_gptp_frame_debug(struct net_if *iface, in setup_gptp_frame_debug()
152 static struct net_pkt *setup_gptp_frame(struct net_if *iface, in setup_gptp_frame_debug()
156 struct net_pkt *pkt; in setup_gptp_frame_debug()
183 struct net_pkt *gptp_prepare_sync(int port) in gptp_prepare_sync()
188 struct net_pkt *pkt; in gptp_prepare_sync()
238 struct net_pkt *gptp_prepare_follow_up(int port, struct net_pkt *sync) in gptp_prepare_follow_up()
[all …]
/Zephyr-latest/subsys/net/ip/
Dnet_private.h62 extern void net_process_rx_packet(struct net_pkt *pkt);
63 extern void net_process_tx_packet(struct net_pkt *pkt);
67 extern int net_icmp_call_ipv4_handlers(struct net_pkt *pkt,
70 extern int net_icmp_call_ipv6_handlers(struct net_pkt *pkt,
161 enum net_verdict net_ipv4_input(struct net_pkt *pkt, bool is_loopback);
162 enum net_verdict net_ipv6_input(struct net_pkt *pkt, bool is_loopback);
166 static inline enum net_verdict net_ipv4_input(struct net_pkt *pkt, in net_ipv4_input()
175 static inline enum net_verdict net_ipv6_input(struct net_pkt *pkt, in net_ipv6_input()
187 extern bool net_tc_submit_to_tx_queue(uint8_t tc, struct net_pkt *pkt);
188 extern void net_tc_submit_to_rx_queue(uint8_t tc, struct net_pkt *pkt);
[all …]
D6lo.h35 int net_6lo_compress(struct net_pkt *pkt, bool iphc);
37 static inline int net_6lo_compress(struct net_pkt *pkt, bool iphc) in net_6lo_compress()
58 bool net_6lo_uncompress(struct net_pkt *pkt);
60 static inline bool net_6lo_uncompress(struct net_pkt *pkt) in net_6lo_uncompress()
92 int net_6lo_uncompress_hdr_diff(struct net_pkt *pkt);
Dudp_internal.h43 int net_udp_create(struct net_pkt *pkt, uint16_t src_port, uint16_t dst_port);
45 static inline int net_udp_create(struct net_pkt *pkt,
66 int net_udp_finalize(struct net_pkt *pkt, bool force_chksum);
68 static inline int net_udp_finalize(struct net_pkt *pkt, bool force_chksum) in net_udp_finalize()
86 struct net_udp_hdr *net_udp_input(struct net_pkt *pkt,
90 struct net_udp_hdr *net_udp_input(struct net_pkt *pkt, in net_udp_input()
Dipv4.h134 int net_ipv4_create_full(struct net_pkt *pkt,
142 static inline int net_ipv4_create_full(struct net_pkt *pkt, in net_ipv4_create_full()
172 int net_ipv4_create(struct net_pkt *pkt,
176 static inline int net_ipv4_create(struct net_pkt *pkt, in net_ipv4_create()
200 int net_ipv4_finalize(struct net_pkt *pkt, uint8_t next_header_proto);
202 static inline int net_ipv4_finalize(struct net_pkt *pkt, in net_ipv4_finalize()
243 int net_ipv4_parse_hdr_options(struct net_pkt *pkt,
247 static inline int net_ipv4_parse_hdr_options(struct net_pkt *pkt, in net_ipv4_parse_hdr_options()
333 struct net_pkt *pkt[CONFIG_NET_IPV4_FRAGMENT_MAX_PKT];
369 enum net_verdict net_ipv4_prepare_for_send(struct net_pkt *pkt);
[all …]
Dnet_pkt.c14 LOG_MODULE_REGISTER(net_pkt, CONFIG_NET_PKT_LOG_LEVEL);
154 struct net_pkt *pkt;
310 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()
431 struct net_buf *net_pkt_get_frag(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)
524 void net_pkt_unref(struct net_pkt *pkt)
620 struct net_pkt *net_pkt_ref_debug(struct net_pkt *pkt, const char *caller,
623 struct net_pkt *net_pkt_ref(struct net_pkt *pkt)
705 struct net_buf *net_pkt_frag_del_debug(struct net_pkt *pkt,
[all …]
Dicmpv4.h49 int net_icmpv4_send_error(struct net_pkt *pkt, uint8_t type, uint8_t code);
52 enum net_verdict net_icmpv4_input(struct net_pkt *pkt,
55 int net_icmpv4_create(struct net_pkt *pkt, uint8_t icmp_type, uint8_t icmp_code);
56 int net_icmpv4_finalize(struct net_pkt *pkt, bool force_chksum);
Dtcp.h91 struct net_tcp_hdr *net_tcp_input(struct net_pkt *pkt,
105 int net_tcp_finalize(struct net_pkt *pkt, bool force_chksum);
116 void tcp_input(struct net_pkt *pkt);
Dipv6.h88 struct net_pkt *pending;
131 int net_ipv6_send_ns(struct net_if *iface, struct net_pkt *pending,
161 int net_ipv6_create(struct net_pkt *pkt,
165 static inline int net_ipv6_create(struct net_pkt *pkt, in net_ipv6_create()
189 int net_ipv6_finalize(struct net_pkt *pkt, uint8_t next_header_proto);
191 static inline int net_ipv6_finalize(struct net_pkt *pkt, in net_ipv6_finalize()
246 enum net_verdict net_ipv6_prepare_for_send(struct net_pkt *pkt);
248 static inline enum net_verdict net_ipv6_prepare_for_send(struct net_pkt *pkt) in net_ipv6_prepare_for_send()
440 struct net_pkt *pkt[CONFIG_NET_IPV6_FRAGMENT_MAX_PKT];
478 int net_ipv6_find_last_ext_hdr(struct net_pkt *pkt, uint16_t *next_hdr_off,
[all …]
Dcanbus_socket.h28 enum net_verdict net_canbus_socket_input(struct net_pkt *pkt);
30 static inline enum net_verdict net_canbus_socket_input(struct net_pkt *pkt) in net_canbus_socket_input()
/Zephyr-latest/subsys/net/l2/ppp/
Dppp_internal.h46 struct net_pkt *pkt);
66 int (*parse)(struct ppp_fsm *fsm, struct net_pkt *pkt,
68 int (*nack)(struct ppp_fsm *fsm, struct net_pkt *ret_pkt,
80 struct net_pkt *pkt,
82 struct net_pkt *ret_pkt,
105 void ppp_queue_pkt(struct net_pkt *pkt);
136 void ppp_send_proto_rej(struct net_if *iface, struct net_pkt *pkt,
146 struct net_pkt *pkt);
149 struct net_pkt *pkt);
152 struct net_pkt *pkt);
[all …]
Doptions.c21 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()
98 struct net_pkt *ret_pkt;
108 static int ppp_parse_option_conf_req_unsupported(struct net_pkt *pkt, in ppp_parse_option_conf_req_unsupported()
114 struct net_pkt *ret_pkt = parse_data->ret_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()
166 struct net_pkt *ret_pkt, in ppp_config_info_req()
215 struct net_pkt *ppp_my_options_add(struct ppp_fsm *fsm, size_t packet_len) in ppp_my_options_add()
220 struct net_pkt *pkt; in ppp_my_options_add()
[all …]
Dipcp.c23 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 …]
/Zephyr-latest/subsys/net/pkt_filter/
Dethernet.c44 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()
Dbase.c80 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 …]
/Zephyr-latest/tests/net/icmpv4/src/
Dmain.c120 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()
316 static struct net_pkt *prepare_echo_request(struct net_if *iface) in prepare_echo_request()
318 struct net_pkt *pkt; in prepare_echo_request()
341 static struct net_pkt *prepare_echo_reply(struct net_if *iface) in prepare_echo_reply()
343 struct net_pkt *pkt; in prepare_echo_reply()
366 static struct net_pkt *prepare_echo_request_with_options(struct net_if *iface) in prepare_echo_request_with_options()
368 struct net_pkt *pkt; in prepare_echo_request_with_options()
[all …]
/Zephyr-latest/subsys/net/l2/openthread/
Dopenthread_utils.h17 void dump_pkt(const char *str, struct net_pkt *pkt);
31 int pkt_list_add(struct openthread_context *context, struct net_pkt *pkt);
32 struct net_pkt *pkt_list_peek(struct openthread_context *context);
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154_6lo_fragment.h24 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()
74 enum net_verdict ieee802154_6lo_reassemble(struct net_pkt *pkt);

12345678910>>...13