Lines Matching refs:reply
105 struct net_pkt *reply = NULL; in icmpv6_handle_echo_request() local
124 reply = net_pkt_alloc_with_buffer(net_pkt_iface(pkt), payload_len, in icmpv6_handle_echo_request()
127 if (!reply) { in icmpv6_handle_echo_request()
148 net_pkt_lladdr_dst(reply)->addr = NULL; in icmpv6_handle_echo_request()
149 net_pkt_lladdr_src(reply)->addr = NULL; in icmpv6_handle_echo_request()
151 net_pkt_set_ip_dscp(reply, net_pkt_ip_dscp(pkt)); in icmpv6_handle_echo_request()
152 net_pkt_set_ip_ecn(reply, net_pkt_ip_ecn(pkt)); in icmpv6_handle_echo_request()
154 if (net_ipv6_create(reply, src, (struct in6_addr *)ip_hdr->src)) { in icmpv6_handle_echo_request()
159 if (net_icmpv6_create(reply, NET_ICMPV6_ECHO_REPLY, 0) || in icmpv6_handle_echo_request()
160 net_pkt_copy(reply, pkt, payload_len)) { in icmpv6_handle_echo_request()
165 net_pkt_cursor_init(reply); in icmpv6_handle_echo_request()
166 net_ipv6_finalize(reply, IPPROTO_ICMPV6); in icmpv6_handle_echo_request()
172 if (net_send_data(reply) < 0) { in icmpv6_handle_echo_request()
176 net_stats_update_icmp_sent(net_pkt_iface(reply)); in icmpv6_handle_echo_request()
181 if (reply) { in icmpv6_handle_echo_request()
182 net_pkt_unref(reply); in icmpv6_handle_echo_request()