Yep, network order.
Daniel
On 6/15/20 11:41 AM, Becker, Jeffrey C. (ARC-TN)[InuTeq, LLC] via Devel
wrote:
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
_______________________________________________
Devel mailing list -- devel(a)lists.nfs-ganesha.org
To unsubscribe send an email to devel-leave(a)lists.nfs-ganesha.org