diff options
author | wpaul <wpaul@FreeBSD.org> | 2001-03-21 23:47:18 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2001-03-21 23:47:18 +0000 |
commit | 988be657c9e87a484477550e96682afff55992c3 (patch) | |
tree | 357a33e3ebcaf2951ee9665aa23b653341bd0728 /usr.sbin/ypserv/yp_svc_udp.c | |
parent | 9dca49adf45fea419a38f59179bfe7b058446312 (diff) | |
download | FreeBSD-src-988be657c9e87a484477550e96682afff55992c3.zip FreeBSD-src-988be657c9e87a484477550e96682afff55992c3.tar.gz |
ypserv has intimate knowledge of the server transport handle which is
needed to make the asynchronous DNS lookup mechanism work. (It needs to
be able to get/set the transaction ID in the trasport handle so it can
deliver a delayed UDP response when a reply is received from a DNS
server.) With TI-TPC, the transport handle has changed slightly (what
used to be an int is now a size_t) so we need to account for this.
Diffstat (limited to 'usr.sbin/ypserv/yp_svc_udp.c')
-rw-r--r-- | usr.sbin/ypserv/yp_svc_udp.c | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/usr.sbin/ypserv/yp_svc_udp.c b/usr.sbin/ypserv/yp_svc_udp.c index 40ee473..b62f9f9 100644 --- a/usr.sbin/ypserv/yp_svc_udp.c +++ b/usr.sbin/ypserv/yp_svc_udp.c @@ -36,23 +36,10 @@ static const char rcsid[] = #endif /* not lint */ #include <rpc/rpc.h> +#include <rpc/svc_dg.h> #include "yp_extern.h" -/* - * XXX Must not diverge from what's in src/lib/libc/rpc/svc_udp.c - */ - -/* - * kept in xprt->xp_p2 - */ -struct svcudp_data { - u_int su_iosz; /* byte size of send.recv buffer */ - u_long su_xid; /* transaction id */ - XDR su_xdrs; /* XDR handle */ - char su_verfbody[MAX_AUTH_BYTES]; /* verifier body */ - char * su_cache; /* cached data, NULL if no cache */ -}; -#define su_data(xprt) ((struct svcudp_data *)(xprt->xp_p2)) +#define su_data(xprt) ((struct svc_dg_data *)(xprt->xp_p2)) /* * We need to be able to manually set the transaction ID in the @@ -64,7 +51,7 @@ unsigned long svcudp_get_xid(xprt) SVCXPRT *xprt; { - struct svcudp_data *su; + struct svc_dg_data *su; if (xprt == NULL) return(0); @@ -77,7 +64,7 @@ svcudp_set_xid(xprt, xid) SVCXPRT *xprt; unsigned long xid; { - struct svcudp_data *su; + struct svc_dg_data *su; unsigned long old_xid; if (xprt == NULL) |