[SSI] openssi/nfs-utils/utils/statd rmtcall.c,1.1.15.1,1.1.15.2

Roger Tsang <[email protected]> Thu, 15 Jul 2010 03:38:33 +0000
Newsgroups gmane.linux.cluster.ssic.cvs
Message-ID <[email protected]>
Update of /cvsroot/ssic-linux/openssi/nfs-utils/utils/statd
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv11728/utils/statd

Modified Files:
      Tag: CENTOS
	rmtcall.c 
Log Message:
Import from nfs-utils-1.0.6-93.EL4.src.rpm for CentOS 4


Index: rmtcall.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/nfs-utils/utils/statd/Attic/rmtcall.c,v
retrieving revision 1.1.15.1
retrieving revision 1.1.15.2
diff -u -d -r1.1.15.1 -r1.1.15.2
--- rmtcall.c	4 Jul 2010 22:21:51 -0000	1.1.15.1
+++ rmtcall.c	15 Jul 2010 03:38:31 -0000	1.1.15.2
@@ -68,16 +68,7 @@
 	memset(&sin, 0, sizeof(sin));
 	sin.sin_family = AF_INET;
 	sin.sin_addr.s_addr = INADDR_ANY;
-	/*
-	 * If a local hostname is given (-n option to statd), bind to the address
-	 * specified. This is required to support clients that ignore the mon_name in
-	 * the statd protocol but use the source address from the request packet.
-	 */
-	if (MY_NAME) {
-		struct hostent *hp = gethostbyname(MY_NAME);
-		if (hp)
-			sin.sin_addr = *(struct in_addr *) hp->h_addr;
-	}
+
 	if (port != 0) {
 		sin.sin_port = htons(port);
 		if (bind(sockfd, &sin, sizeof(sin)) == 0)


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first