<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.sbin/rpc.statd/statd.c, branch releng/9.2</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>Fix the nfs related daemons so that they don't intermittently</title>
<updated>2011-06-02T20:15:32+00:00</updated>
<author>
<name>Rick Macklem</name>
<email>rmacklem@FreeBSD.org</email>
</author>
<published>2011-06-02T20:15:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6924e68e11d31cd378f101ebfa7d0a8f3784d3e6'/>
<id>6924e68e11d31cd378f101ebfa7d0a8f3784d3e6</id>
<content type='text'>
fail with "bind: address already in use". This problem was reported
to the freebsd-stable@ mailing list on Feb. 19 under the subject
heading "statd/lockd startup failure" by george+freebsd at m5p dot com.
The problem is that the first combination of {udp,tcp X ipv4,ipv6}
would select a port# dynamically, but one of the other three combinations
would have that port# already in use. The patch is somewhat involved
because it was requested by dougb@ that the four combinations use the
same port# wherever possible. The patch splits the create_service()
function into two functions. The first goes as far as bind(2) in a
loop for up to GETPORT_MAXTRY - 1 times, attempting to use the same port#
for all four cases. If these attempts fail, the last attempt allows
the 4 cases to use different port #s. After this function has succeeded,
the second function, called complete_service(), does the rest of what
create_service() did.
The three daemons mountd, rpc.lockd and rpc.statd all have a
create_service() function that is patched in a similar way. However,
create_service() has non-trivial differences for the three daemons
that made it impractical to share the same functions between them.

Reviewed by:	jhb
MFC after:	2 weeks
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fail with "bind: address already in use". This problem was reported
to the freebsd-stable@ mailing list on Feb. 19 under the subject
heading "statd/lockd startup failure" by george+freebsd at m5p dot com.
The problem is that the first combination of {udp,tcp X ipv4,ipv6}
would select a port# dynamically, but one of the other three combinations
would have that port# already in use. The patch is somewhat involved
because it was requested by dougb@ that the four combinations use the
same port# wherever possible. The patch splits the create_service()
function into two functions. The first goes as far as bind(2) in a
loop for up to GETPORT_MAXTRY - 1 times, attempting to use the same port#
for all four cases. If these attempts fail, the last attempt allows
the 4 cases to use different port #s. After this function has succeeded,
the second function, called complete_service(), does the rest of what
create_service() did.
The three daemons mountd, rpc.lockd and rpc.statd all have a
create_service() function that is patched in a similar way. However,
create_service() has non-trivial differences for the three daemons
that made it impractical to share the same functions between them.

Reviewed by:	jhb
MFC after:	2 weeks
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix apparent mis-paste in previous check-in by author.</title>
<updated>2008-04-06T22:08:17+00:00</updated>
<author>
<name>Alexander Kabaev</name>
<email>kan@FreeBSD.org</email>
</author>
<published>2008-04-06T22:08:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4760d2ac3f8ef310e0a75c362be373d696676b9a'/>
<id>4760d2ac3f8ef310e0a75c362be373d696676b9a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Call listen(2) on bound tcp sockets before passing them to svc_tli_create.</title>
<updated>2008-04-06T13:52:17+00:00</updated>
<author>
<name>Doug Rabson</name>
<email>dfr@FreeBSD.org</email>
</author>
<published>2008-04-06T13:52:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0e7cce1381c2ea7d75bd02308aa9921f4b30e62e'/>
<id>0e7cce1381c2ea7d75bd02308aa9921f4b30e62e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Check the correct variables for malloc failures.</title>
<updated>2007-11-07T10:21:36+00:00</updated>
<author>
<name>Matteo Riondato</name>
<email>matteo@FreeBSD.org</email>
</author>
<published>2007-11-07T10:21:36+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=96e460ec534f08eb10f4399f79381ae333de9e3c'/>
<id>96e460ec534f08eb10f4399f79381ae333de9e3c</id>
<content type='text'>
Submitted by:	Michiel Boland &lt;michiel@boland.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Submitted by:	Michiel Boland &lt;michiel@boland.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add the -h &lt;bindip&gt; option to rpc.statd, similar to the one in nfsd(8)</title>
<updated>2007-11-01T20:13:33+00:00</updated>
<author>
<name>Matteo Riondato</name>
<email>matteo@FreeBSD.org</email>
</author>
<published>2007-11-01T20:13:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3c2ff3b0a5acd5d15b61b775537addc201e86314'/>
<id>3c2ff3b0a5acd5d15b61b775537addc201e86314</id>
<content type='text'>
and in mountd(8)

-h bindip
Specify specific IP addresses to bind to for TCP and UDP requests.
This option may be specified multiple times.  If no -h option is
specified, rpc.statd will bind to INADDR_ANY.  Note that when specifying
IP addresses with -h, rpc.statd will automatically add 127.0.0.1 and if
IPv6 is enabled, ::1 to the list.

(coming for rpc.lockd too)

PR:		bin/98500
MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
and in mountd(8)

-h bindip
Specify specific IP addresses to bind to for TCP and UDP requests.
This option may be specified multiple times.  If no -h option is
specified, rpc.statd will bind to INADDR_ANY.  Note that when specifying
IP addresses with -h, rpc.statd will automatically add 127.0.0.1 and if
IPv6 is enabled, ::1 to the list.

(coming for rpc.lockd too)

PR:		bin/98500
MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>The call to init_file() needs to be moved outside the loop in statd.c,</title>
<updated>2007-08-05T16:33:06+00:00</updated>
<author>
<name>Don Lewis</name>
<email>truckman@FreeBSD.org</email>
</author>
<published>2007-08-05T16:33:06+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f61a23adcc8e033780415050ab80169af5c510ff'/>
<id>f61a23adcc8e033780415050ab80169af5c510ff</id>
<content type='text'>
otherwise mmap() gets called multiple times, which eventually fails due
to address space exhaustion on i386.

Approved by:	re (kensmith)
MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
otherwise mmap() gets called multiple times, which eventually fails due
to address space exhaustion on i386.

Approved by:	re (kensmith)
MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>Add the "-p" option, which allows to specify a port which the daemon</title>
<updated>2007-04-03T21:15:00+00:00</updated>
<author>
<name>Matteo Riondato</name>
<email>matteo@FreeBSD.org</email>
</author>
<published>2007-04-03T21:15:00+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=74e69f9e667590c361d803c788003d1730505c52'/>
<id>74e69f9e667590c361d803c788003d1730505c52</id>
<content type='text'>
should bind to.

PR:		bin/94920
Reviewed by:	alfred@
MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
should bind to.

PR:		bin/94920
Reviewed by:	alfred@
MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>compile under WARNS=6</title>
<updated>2006-09-13T05:01:25+00:00</updated>
<author>
<name>Philippe Charnier</name>
<email>charnier@FreeBSD.org</email>
</author>
<published>2006-09-13T05:01:25+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e55942e33c36f1a6f8c857d8de83702c5a590664'/>
<id>e55942e33c36f1a6f8c857d8de83702c5a590664</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add FBSDID. Use getopt(3).</title>
<updated>2004-04-04T19:46:14+00:00</updated>
<author>
<name>Philippe Charnier</name>
<email>charnier@FreeBSD.org</email>
</author>
<published>2004-04-04T19:46:14+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1c38ed81bc741744f45b8e90de252de991c33ef6'/>
<id>1c38ed81bc741744f45b8e90de252de991c33ef6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement nonblocking tpc-connections. rpcgen -m does still</title>
<updated>2003-01-16T07:27:30+00:00</updated>
<author>
<name>Martin Blapp</name>
<email>mbr@FreeBSD.org</email>
</author>
<published>2003-01-16T07:27:30+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=bcb53b16068cf226b69d1af946341d2dafd23c97'/>
<id>bcb53b16068cf226b69d1af946341d2dafd23c97</id>
<content type='text'>
produce backcompatible code.

Reviewed by:	rwatson
Obtained from:	NetBSD
MFC after:	1 day
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
produce backcompatible code.

Reviewed by:	rwatson
Obtained from:	NetBSD
MFC after:	1 day
</pre>
</div>
</content>
</entry>
</feed>
