HomeFreeBSD

MFC r329339: libsa: Consolidate tftp sendrecv into net.c sendrecv

Description

MFC r329339: libsa: Consolidate tftp sendrecv into net.c sendrecv

bootp/arp/rarp/rpc all use the sendrecv implementation in net.c. tftp has
its own implementation because it passes an extra parameter into the recv
callback for the received payload type to be held.

These sendrecv implementations are otherwise equivalent, so consolidate
them. The other users of sendrecv won't be using the extra argument to recv,
but this gives us only one place to worry about respecting timeouts and one
consistent timeout behavior.

Details

Provenance
kevansAuthored on
Parents
rS330897: Partial merge of the SPDX changes
Branches
Unknown
Tags
Unknown