When sending packets using sendto() the caller can specify MSG_CONFIRM
MSG_CONFIRM (since Linux 2.3.15)
Tell the link layer that forward progress happened: you got a successful reply from the other side. If the link layer doesn't get this it will regularly reprobe the neighbor (e.g., via a
unicast ARP). Valid only on SOCK_DGRAM and SOCK_RAW sockets and currently implemented only for IPv4 and IPv6. See arp(7) for details.
UDPSocket should support this, probably by adding a SetMsgConfirm(bool confirm) method.
Comment 1 by bugdroid1@chromium.org
, Mar 15 2018