Lines Matching refs:orig
513 int net_icmpv4_send_error(struct net_pkt *orig, uint8_t type, uint8_t code) in net_icmpv4_send_error() argument
521 net_pkt_cursor_init(orig); in net_icmpv4_send_error()
523 ip_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(orig, &ipv4_access); in net_icmpv4_send_error()
534 orig, &icmpv4_access); in net_icmpv4_send_error()
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()
576 net_pkt_copy(pkt, orig, copy_len)) { in net_icmpv4_send_error()
583 net_pkt_lladdr_dst(pkt)->addr = net_pkt_lladdr_src(orig)->addr; in net_icmpv4_send_error()
584 net_pkt_lladdr_dst(pkt)->len = net_pkt_lladdr_src(orig)->len; 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()