Re: [PATCH v2 1/2] udp: UDP socket send queue repair

From: Willem de Bruijn
Date: Mon Aug 16 2021 - 10:43:18 EST


On Wed, Aug 11, 2021 at 8:48 AM Bui Quang Minh <minhquangbui99@xxxxxxxxx> wrote:
>
> In this patch, I implement UDP_REPAIR sockoption and a new path in
> udp_recvmsg for dumping the corked packet in UDP socket's send queue.
>
> A userspace program can use recvmsg syscall to get the packet's data and
> the msg_name information of the packet. Currently, other related
> information in inet_cork that are set in cmsg are not dumped.

[ intended to include in my previous response ]

What other related information? Fields like transmit_time and gso_size?

This would be another reason to prefer dropping the packet over trying
to restore it incompletely.