Home
last modified time | relevance | path

Searched refs:net_pkt_iface (Results 1 – 25 of 64) sorted by relevance

123

/Zephyr-latest/subsys/net/ip/
Dnet_core.c90 net_stats_update_processing_error(net_pkt_iface(pkt)); in process_data()
96 ret = net_if_recv_data(net_pkt_iface(pkt), pkt); in process_data()
101 net_pkt_iface(pkt)); in process_data()
146 net_stats_update_ip_errors_protoerr(net_pkt_iface(pkt)); in process_data()
147 net_stats_update_ip_errors_vhlerr(net_pkt_iface(pkt)); in process_data()
234 if (net_if_l2(net_pkt_iface(pkt)) == &NET_L2_GET_NAME(DUMMY)) { in check_ip()
307 if (net_if_l2(net_pkt_iface(pkt)) == &NET_L2_GET_NAME(DUMMY)) { in check_ip()
322 (net_ipv4_is_addr_bcast(net_pkt_iface(pkt), in check_ip()
357 net_stats_update_ipv6_drop(net_pkt_iface(pkt)); in check_ip()
359 net_stats_update_ipv4_drop(net_pkt_iface(pkt)); in check_ip()
[all …]
Dipv6_nbr.c492 net_pkt_iface(pkt), \
493 net_if_get_by_iface(net_pkt_iface(pkt))); \
510 net_pkt_iface(pkt), \
511 net_if_get_by_iface(net_pkt_iface(pkt))); \
831 mtu = net_if_get_mtu(net_pkt_iface(pkt)); in net_ipv6_prepare_for_send()
836 ret = net_ipv6_send_fragmented_pkt(net_pkt_iface(pkt), in net_ipv6_prepare_for_send()
873 net_if_flag_is_set(net_pkt_iface(pkt), NET_IF_POINTOPOINT) || in net_ipv6_prepare_for_send()
874 net_if_flag_is_set(net_pkt_iface(pkt), NET_IF_IPV6_NO_ND)) { in net_ipv6_prepare_for_send()
915 iface = net_pkt_iface(pkt); in net_ipv6_prepare_for_send()
988 ret = net_ipv6_send_ns(net_pkt_iface(pkt), pkt, in net_ipv6_prepare_for_send()
[all …]
Dicmpv6.c72 if (net_if_need_calc_tx_checksum(net_pkt_iface(pkt), NET_IF_CHECKSUM_IPV6_ICMP) || in net_icmpv6_finalize()
124 reply = net_pkt_alloc_with_buffer(net_pkt_iface(pkt), payload_len, in icmpv6_handle_echo_request()
133 src = net_if_ipv6_select_src_addr(net_pkt_iface(pkt), in icmpv6_handle_echo_request()
176 net_stats_update_icmp_sent(net_pkt_iface(reply)); in icmpv6_handle_echo_request()
185 net_stats_update_icmp_drop(net_pkt_iface(pkt)); in icmpv6_handle_echo_request()
236 pkt = net_pkt_alloc_with_buffer(net_pkt_iface(orig), in net_icmpv6_send_error()
286 src = net_if_ipv6_select_src_addr(net_pkt_iface(pkt), in net_icmpv6_send_error()
323 net_stats_update_icmp_sent(net_pkt_iface(pkt)); in net_icmpv6_send_error()
331 net_stats_update_icmp_drop(net_pkt_iface(orig)); in net_icmpv6_send_error()
351 if (net_if_need_calc_rx_checksum(net_pkt_iface(pkt), NET_IF_CHECKSUM_IPV6_ICMP) || in net_icmpv6_input()
[all …]
Dicmpv4.c69 if (net_if_need_calc_tx_checksum(net_pkt_iface(pkt), NET_IF_CHECKSUM_IPV4_ICMP) || in net_icmpv4_finalize()
446 reply = net_pkt_alloc_with_buffer(net_pkt_iface(pkt), in icmpv4_handle_echo_request()
457 net_ipv4_is_addr_bcast(net_pkt_iface(pkt), in icmpv4_handle_echo_request()
459 src = net_if_ipv4_select_src_addr(net_pkt_iface(pkt), in icmpv4_handle_echo_request()
500 net_stats_update_icmp_sent(net_pkt_iface(reply)); in icmpv4_handle_echo_request()
508 net_stats_update_icmp_drop(net_pkt_iface(pkt)); in icmpv4_handle_echo_request()
542 if (net_ipv4_is_addr_bcast(net_pkt_iface(orig), in net_icmpv4_send_error()
563 pkt = net_pkt_alloc_with_buffer(net_pkt_iface(orig), in net_icmpv4_send_error()
592 net_stats_update_icmp_sent(net_pkt_iface(orig)); in net_icmpv4_send_error()
600 net_stats_update_icmp_drop(net_pkt_iface(orig)); in net_icmpv4_send_error()
[all …]
Dipv4.c66 ipv4_hdr->ttl = net_if_ipv4_get_mcast_ttl(net_pkt_iface(pkt)); in net_ipv4_create_full()
73 ipv4_hdr->ttl = net_if_ipv4_get_ttl(net_pkt_iface(pkt)); in net_ipv4_create_full()
131 if (net_if_need_calc_tx_checksum(net_pkt_iface(pkt), NET_IF_CHECKSUM_IPV4_HEADER)) { in net_ipv4_finalize()
261 net_stats_update_ipv4_recv(net_pkt_iface(pkt)); in net_ipv4_input()
320 if (net_ipv4_is_addr_bcast(net_pkt_iface(pkt), (struct in_addr *)hdr->src)) { in net_ipv4_input()
326 !net_ipv4_is_addr_bcast(net_pkt_iface(pkt), (struct in_addr *)hdr->dst) && in net_ipv4_input()
332 if (net_if_need_calc_rx_checksum(net_pkt_iface(pkt), NET_IF_CHECKSUM_IPV4_HEADER) && in net_ipv4_input()
357 net_ipv4_is_addr_bcast(net_pkt_iface(pkt), (struct in_addr *)hdr->dst))) { in net_ipv4_input()
429 tunnel_iface = net_ipip_get_virtual_interface(net_pkt_iface(pkt)); in net_ipv4_input()
431 return net_if_l2(tunnel_iface)->recv(net_pkt_iface(pkt), pkt); in net_ipv4_input()
[all …]
Dipv6_mld.c87 net_pkt_iface(pkt), &dst), in mld_create_packet()
134 net_stats_update_icmp_drop(net_pkt_iface(pkt)); in mld_send()
135 net_stats_update_ipv6_mld_drop(net_pkt_iface(pkt)); in mld_send()
142 net_stats_update_icmp_sent(net_pkt_iface(pkt)); in mld_send()
143 net_stats_update_ipv6_mld_sent(net_pkt_iface(pkt)); in mld_send()
430 net_stats_update_ipv6_mld_recv(net_pkt_iface(pkt)); in handle_mld_query()
451 return send_mld_report(net_pkt_iface(pkt)); in handle_mld_query()
454 net_stats_update_ipv6_mld_drop(net_pkt_iface(pkt)); in handle_mld_query()
Dcanbus_socket.c25 if (net_if_l2(net_pkt_iface(pkt)) == &NET_L2_GET_NAME(CANBUS_RAW)) { in net_canbus_socket_input()
Dipv6.c95 net_if_ipv6_get_mcast_hop_limit(net_pkt_iface(pkt)); in net_ipv6_create()
103 net_if_ipv6_get_hop_limit(net_pkt_iface(pkt)); in net_ipv6_create()
328 found = net_route_get_info(net_pkt_iface(pkt), in ipv6_route_packet()
348 net_pkt_set_orig_iface(pkt, net_pkt_iface(pkt)); in ipv6_route_packet()
355 net_pkt_orig_iface(pkt) != net_pkt_iface(pkt) && in ipv6_route_packet()
363 net_pkt_iface(pkt)); in ipv6_route_packet()
374 net_pkt_iface(pkt), ret); in ipv6_route_packet()
387 pkt, net_pkt_iface(pkt), ret); in ipv6_route_packet()
479 struct net_if *pkt_iface = net_pkt_iface(pkt); in net_ipv6_input()
800 tunnel_iface = net_ipip_get_virtual_interface(net_pkt_iface(pkt)); in net_ipv6_input()
[all …]
Digmp.c197 net_pkt_iface(pkt), in igmp_v2_create_packet()
228 ret = net_ipv4_create_full(pkt, net_if_ipv4_select_src_addr(net_pkt_iface(pkt), dst), dst, in igmp_v3_create_packet()
254 net_stats_update_ipv4_igmp_drop(net_pkt_iface(pkt)); in igmp_send()
258 net_stats_update_ipv4_igmp_sent(net_pkt_iface(pkt)); in igmp_send()
484 net_stats_update_ipv4_igmp_recv(net_pkt_iface(pkt));
488 (void)send_igmp_v3_report(net_pkt_iface(pkt), igmpv3_hdr);
491 (void)send_igmp_report(net_pkt_iface(pkt), igmpv2_hdr);
501 net_stats_update_ipv4_igmp_drop(net_pkt_iface(pkt));
Dudp.c56 if (net_if_need_calc_tx_checksum(net_pkt_iface(pkt), type) || force_chksum) { in net_udp_finalize()
171 (net_if_need_calc_rx_checksum(net_pkt_iface(pkt), type) || in net_udp_input()
190 net_stats_update_udp_chkerr(net_pkt_iface(pkt)); in net_udp_input()
Dpacket_socket.c33 if (dsa_is_port_master(net_pkt_iface(pkt))) { in net_packet_socket_input()
Dipv4_fragment.c217 if (net_recv_data(net_pkt_iface(pkt), pkt) >= 0) { in reassemble_packet()
433 frag_pkt = net_pkt_alloc_with_buffer(net_pkt_iface(pkt), fit_len + in send_ipv4_fragment()
645 mtu = net_if_get_mtu(net_pkt_iface(pkt)); in net_ipv4_prepare_for_send_fragment()
650 ret = net_ipv4_send_fragmented_pkt(net_pkt_iface(pkt), pkt, pkt_len, mtu); in net_ipv4_prepare_for_send_fragment()
Dconnection.c607 struct net_if *pkt_iface = net_pkt_iface(pkt); in conn_raw_socket()
642 struct net_if *pkt_iface = net_pkt_iface(pkt); in net_conn_input()
717 net_pkt_iface(pkt) != net_context_get_iface(conn->context)) { in net_conn_input()
/Zephyr-latest/subsys/net/l2/ethernet/
Darp.c298 entry->iface = net_pkt_iface(pkt); in arp_prepare()
360 return arp_prepare(net_pkt_iface(pkt), request_ip, NULL, in net_arp_prepare()
375 !net_if_ipv4_addr_mask_cmp(net_pkt_iface(pkt), request_ip)) { in net_arp_prepare()
376 struct net_if_ipv4 *ipv4 = net_pkt_iface(pkt)->config.ip.ipv4; in net_arp_prepare()
383 net_if_get_by_iface(net_pkt_iface(pkt)), in net_arp_prepare()
400 entry = arp_entry_find_move_first(net_pkt_iface(pkt), addr); in net_arp_prepare()
404 entry = arp_entry_find_pending(net_pkt_iface(pkt), addr); in net_arp_prepare()
428 req = arp_prepare(net_pkt_iface(pkt), addr, entry, pkt, in net_arp_prepare()
798 net_if_get_link_addr(net_pkt_iface(pkt))->addr, in net_arp_input()
812 net_arp_update(net_pkt_iface(pkt), in net_arp_input()
[all …]
Dethernet.c91 net_if_get_by_iface(net_pkt_iface(pkt)), \
92 net_pkt_iface(pkt), out, \
109 net_if_get_by_iface(net_pkt_iface(pkt)), \
110 net_pkt_iface(pkt), out, \
181 net_ipv4_is_addr_bcast(net_pkt_iface(pkt), in ethernet_check_ipv4_bcast_addr()
297 if (net_if_l2(net_pkt_iface(pkt)) == NULL) { in ethernet_recv()
305 if (net_if_l2(net_pkt_iface(pkt))->recv != NULL) { in ethernet_recv()
306 verdict = net_if_l2(net_pkt_iface(pkt))->recv(iface, pkt); in ethernet_recv()
432 if (net_ipv4_is_addr_bcast(net_pkt_iface(pkt), in ethernet_ipv4_dst_is_broadcast_or_mcast()
463 net_eth_is_vlan_enabled(ctx, net_pkt_iface(pkt))) { in ethernet_ll_prepare_on_ipv4()
[all …]
Dbridge.c413 net_if_get_by_iface(net_pkt_iface(pkt))); in bridge_iface_send()
430 net_if_get_by_iface(net_pkt_iface(pkt))); in bridge_iface_recv()
/Zephyr-latest/subsys/net/l2/ethernet/gptp/
Dgptp_messages.c87 port = gptp_get_port_number(net_pkt_iface(pkt)); in gptp_sync_timestamp_callback()
115 port = gptp_get_port_number(net_pkt_iface(pkt)); in gptp_pdelay_response_timestamp_callback()
349 struct net_if *iface = net_pkt_iface(req); in gptp_prepare_pdelay_resp()
408 struct net_if *iface = net_pkt_iface(resp); in gptp_prepare_pdelay_follow_up()
644 net_pkt_iface(pkt), in gptp_handle_pdelay_req()
812 net_pkt_iface(pkt), in gptp_send_sync()
828 net_if_queue_tx(net_pkt_iface(pkt), pkt); in gptp_send_sync()
837 net_if_queue_tx(net_pkt_iface(pkt), pkt); in gptp_send_follow_up()
846 net_if_queue_tx(net_pkt_iface(pkt), pkt); in gptp_send_announce()
873 net_if_queue_tx(net_pkt_iface(pkt), pkt); in gptp_send_pdelay_req()
[all …]
/Zephyr-latest/tests/net/socket/af_packet_ipproto_raw/src/
Dmain.c39 net_if_get_by_iface(net_pkt_iface(pkt))); in fake_dev_send()
45 ret = net_recv_data(net_pkt_iface(recv_pkt), recv_pkt); in fake_dev_send()
/Zephyr-latest/tests/net/dhcpv4/client/src/
Dmain.c427 rpkt = prepare_dhcp_offer(net_pkt_iface(pkt), msg.xid); in tester_send()
433 rpkt = prepare_dhcp_ack(net_pkt_iface(pkt), msg.xid); in tester_send()
442 if (net_recv_data(net_pkt_iface(rpkt), rpkt)) { in tester_send()
/Zephyr-latest/drivers/net/
Dloopback.c154 res = net_recv_data(net_pkt_iface(cloned), cloned); in loopback_send()
/Zephyr-latest/subsys/net/l2/ppp/
Dfsm.c578 (void)ppp_send_pkt(fsm, net_pkt_iface(pkt), PPP_TERMINATE_ACK, in fsm_recv_configure_req()
608 out = net_pkt_alloc_with_buffer(net_pkt_iface(pkt), in fsm_recv_configure_req()
723 (void)ppp_send_pkt(fsm, net_pkt_iface(pkt), PPP_TERMINATE_ACK, in fsm_recv_configure_ack()
829 (void)ppp_send_pkt(fsm, net_pkt_iface(pkt), PPP_TERMINATE_ACK, in fsm_recv_configure_nack_rej()
890 (void)ppp_send_pkt(fsm, net_pkt_iface(pkt), PPP_TERMINATE_ACK, id, in fsm_recv_terminate_req()
1107 (void)ppp_send_pkt(fsm, net_pkt_iface(pkt), PPP_CODE_REJ, in ppp_fsm_input()
1131 (void)ppp_send_pkt(fsm, net_pkt_iface(pkt), PPP_ECHO_REPLY, in ppp_fsm_recv_echo_req()
/Zephyr-latest/tests/net/route_mcast/src/
Dmain.c236 if (net_pkt_iface(pkt) == iface_1) { in iface_send()
238 } else if (net_pkt_iface(pkt) == iface_2) { in iface_send()
240 } else if (net_pkt_iface(pkt) == iface_3) { in iface_send()
/Zephyr-latest/tests/net/route/src/
Dmain.c145 net_pkt_iface(pkt), recipient); in tester_send()
183 net_pkt_iface(pkt), recipient); in tester_send_peer()
/Zephyr-latest/subsys/tracing/ctf/
Dctf_top.c663 iface = net_pkt_iface(pkt); in sys_trace_net_send_data_enter()
681 iface = net_pkt_iface(pkt); in sys_trace_net_send_data_exit()
702 iface = net_pkt_iface(pkt); in sys_trace_net_rx_time()
730 iface = net_pkt_iface(pkt); in sys_trace_net_tx_time()
/Zephyr-latest/tests/net/iface/src/
Dmain.c129 net_if_get_by_iface(net_pkt_iface(pkt)), in sender_iface()
130 net_pkt_iface(pkt)); in sender_iface()
132 if (net_if_get_by_iface(net_pkt_iface(pkt)) != data->idx) { in sender_iface()
134 data->idx, net_if_get_by_iface(net_pkt_iface(pkt))); in sender_iface()

123