Searched refs:du_pkt (Results 1 – 1 of 1) sorted by relevance
635 struct net_pkt *du_pkt; in create_icmpv4_dest_unreach() local640 du_pkt = net_pkt_alloc_with_buffer(iface, sizeof(struct net_ipv4_hdr) + in create_icmpv4_dest_unreach()645 if (du_pkt == NULL) { in create_icmpv4_dest_unreach()653 ret = net_ipv4_create(du_pkt, src4, dest4); in create_icmpv4_dest_unreach()659 ret = net_icmpv4_create(du_pkt, NET_ICMPV4_DST_UNREACH, 0); in create_icmpv4_dest_unreach()667 ret = net_pkt_write(du_pkt, &du_hdr, sizeof(du_hdr)); in create_icmpv4_dest_unreach()673 net_pkt_cursor_init(du_pkt); in create_icmpv4_dest_unreach()674 net_ipv4_finalize(du_pkt, IPPROTO_ICMP); in create_icmpv4_dest_unreach()676 net_pkt_set_iface(du_pkt, iface); in create_icmpv4_dest_unreach()678 *pkt = du_pkt; in create_icmpv4_dest_unreach()