repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add function to set the target for UDP rpc calls.
[deb_libnfs.git]
/
lib
/
init.c
diff --git
a/lib/init.c
b/lib/init.c
index aba7e5e0981205002f1c0ca71586163a8bca5fcc..b980eabeeb475a877f002a2d96da06c88b3b8b67 100644
(file)
--- a/
lib/init.c
+++ b/
lib/init.c
@@
-59,6
+59,18
@@
struct rpc_context *rpc_init_context(void)
}
}
+struct rpc_context *rpc_init_udp_context(void)
+{
+ struct rpc_context *rpc;
+
+ rpc = rpc_init_context();
+ if (rpc != NULL) {
+ rpc->is_udp = 1;
+ }
+
+ return rpc;
+}
+
void rpc_set_auth(struct rpc_context *rpc, struct AUTH *auth)
{
if (rpc->auth != NULL) {
void rpc_set_auth(struct rpc_context *rpc, struct AUTH *auth)
{
if (rpc->auth != NULL) {