From e7733ffa39170acc47588733372fabf459a43819 Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Thu, 18 Jun 2009 17:10:43 +0000 Subject: Re-do r192913 in less intrusive way. Only do IP_RECVDSTADDR/IP_SENDSRCADDR dace for UPDv4 sockets bound to INADDR_ANY. Move the code to set IP_RECVDSTADDR/IP_SENDSRCADDR into svc_dg.c, so that both TLI and non-TLI users will be using it. Back out my previous commit to mountd. Turns out the problem was affecting more than one binary so it needs to me addressed in generic rpc code in libc in order to fix them all. Reported by: lstewart Tested by: lstewart --- include/rpc/svc_dg.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/rpc/svc_dg.h b/include/rpc/svc_dg.h index 3514745d2efd..e0d1f89a61c8 100644 --- a/include/rpc/svc_dg.h +++ b/include/rpc/svc_dg.h @@ -46,6 +46,7 @@ struct svc_dg_data { XDR su_xdrs; /* XDR handle */ char su_verfbody[MAX_AUTH_BYTES]; /* verifier body */ void *su_cache; /* cached data, NULL if none */ + struct netbuf su_srcaddr; /* dst address of last msg */ }; #define __rpcb_get_dg_xidp(x) (&((struct svc_dg_data *)(x)->xp_p2)->su_xid) -- cgit v1.3