15 Jun
2020
15 Jun
'20
3:41 p.m.
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