summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2001-06-23 19:43:21 +0000
committeriedowse <iedowse@FreeBSD.org>2001-06-23 19:43:21 +0000
commitdd53c9014eb416417cb746063d7cd8385096ce35 (patch)
tree99ec7e9456e1c6a6ad70863104b49dce3c96cf1c /include
parent0235c0e8cbac19c911822f6ca12627292b50c4ff (diff)
downloadFreeBSD-src-dd53c9014eb416417cb746063d7cd8385096ce35.zip
FreeBSD-src-dd53c9014eb416417cb746063d7cd8385096ce35.tar.gz
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.
Diffstat (limited to 'include')
-rw-r--r--include/rpc/clnt.h1
1 files changed, 1 insertions, 0 deletions
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
OpenPOWER on IntegriCloud