repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PMAP: allow to ask for tcp/udp port, dont assume users only ever want the tcp port
[deb_libnfs.git]
/
portmap
/
portmap.c
diff --git
a/portmap/portmap.c
b/portmap/portmap.c
index f8c434d19950e449c0f7bb701c6b32cb992eba8b..d2ec4b883cba60c7401379a1faa2012c96451829 100644
(file)
--- a/
portmap/portmap.c
+++ b/
portmap/portmap.c
@@
-46,7
+46,7
@@
int rpc_pmap_null_async(struct rpc_context *rpc, rpc_cb cb, void *private_data)
return 0;
}
return 0;
}
-int rpc_pmap_getport_async(struct rpc_context *rpc, int program, int version, rpc_cb cb, void *private_data)
+int rpc_pmap_getport_async(struct rpc_context *rpc, int program, int version,
int protocol,
rpc_cb cb, void *private_data)
{
struct rpc_pdu *pdu;
struct pmap_mapping m;
{
struct rpc_pdu *pdu;
struct pmap_mapping m;
@@
-59,7
+59,7
@@
int rpc_pmap_getport_async(struct rpc_context *rpc, int program, int version, rp
m.prog = program;
m.vers = version;
m.prog = program;
m.vers = version;
- m.prot =
IPPROTO_TCP
;
+ m.prot =
protocol
;
m.port = 0;
if (xdr_pmap_mapping(&pdu->xdr, &m) == 0) {
rpc_set_error(rpc, "XDR error: Failed to encode data for portmap/getport call");
m.port = 0;
if (xdr_pmap_mapping(&pdu->xdr, &m) == 0) {
rpc_set_error(rpc, "XDR error: Failed to encode data for portmap/getport call");