From dd53c9014eb416417cb746063d7cd8385096ce35 Mon Sep 17 00:00:00 2001 From: iedowse Date: Sat, 23 Jun 2001 19:43:21 +0000 Subject: Add a new clnt_control() request `CLSET_CONNECT' that controls whether or not connect(2) is used for UDP client sockets. The default is not to connect(), so existing clients will see no change in behaviour. The use of connect(2) for UDP clients has a number of advantages: only replies from the intended address are received, and ICMP errors pertaining to the connection are reported back to the application. --- include/rpc/clnt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/rpc') diff --git a/include/rpc/clnt.h b/include/rpc/clnt.h index f845e8e..1303690 100644 --- a/include/rpc/clnt.h +++ b/include/rpc/clnt.h @@ -229,6 +229,7 @@ struct rpc_timers { #define CLSET_RETRY_TIMEOUT 4 /* set retry timeout (timeval) */ #define CLGET_RETRY_TIMEOUT 5 /* get retry timeout (timeval) */ #define CLSET_ASYNC 19 +#define CLSET_CONNECT 20 /* Use connect() for UDP. (int) */ /* * void -- cgit v1.1