1RPC_LOCALADDR(9) Linux Networking RPC_LOCALADDR(9)
2
3
4
6 rpc_localaddr - discover local endpoint address for an RPC client
7
9 int rpc_localaddr(struct rpc_clnt * clnt, struct sockaddr * buf,
10 size_t buflen);
11
13 clnt
14 RPC client structure
15
16 buf
17 target buffer
18
19 buflen
20 size of target buffer, in bytes
21
23 Returns zero and fills in “buf” and “buflen” if successful; otherwise,
24 a negative errno is returned.
25
26 This works even if the underlying transport is not currently connected,
27 or if the upper layer never previously provided a source address.
28
30 multiple calls in succession may give different results, depending on
31 how local networking configuration changes over time.
32
34Kernel Hackers Manual 3.10 June 2019 RPC_LOCALADDR(9)