libntirpc question
by Becker, Jeffrey C. (ARC-TN)[InuTeq, LLC]
Hi,
In libntirpc/ntirpc/rpc/svc.h, we see…
/*
* Approved way of getting addresses
*/
#define svc_getcaller_netbuf(x) (&(x)->xp_remote.nb)
#define svc_getlocal_netbuf(x) (&(x)->xp_local.nb)
#define svc_getrpccaller(x) (&(x)->xp_remote.ss)
#define svc_getrpclocal(x) (&(x)->xp_local.ss)
I assume these return addresses in network order, and ntohl should be used to convert these to host order. Is that correct? Thanks.
-Jeff