]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r329339: libsa: Consolidate tftp sendrecv into net.c sendrecv
authorkevans <kevans@FreeBSD.org>
Wed, 14 Mar 2018 03:30:34 +0000 (03:30 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 14 Mar 2018 03:30:34 +0000 (03:30 +0000)
commite63d9a7620091b7030dac0d4abc73d1641ac5faa
tree04f58ab5bd622d75f74ae17181fe3d4847ffb74d
parent378534f1ac889613f5ed596ba5a6afb9ab314aa3
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.
stand/libsa/arp.c
stand/libsa/bootp.c
stand/libsa/net.c
stand/libsa/net.h
stand/libsa/rarp.c
stand/libsa/rpc.c
stand/libsa/tftp.c