svn commit: r220736 - head/sbin/natd
Gleb Smirnoff
glebius at FreeBSD.org
Mon Apr 18 22:14:40 UTC 2011
On Mon, Apr 18, 2011 at 02:44:35PM -0700, Maxim Sobolev wrote:
M> On 4/18/2011 11:13 AM, Gleb Smirnoff wrote:
M> > This looks like a hack and better place for this hack would be shell
M> > scripts rather than nat daemon.
M>
M> Well, I am not sure how would you apply shell script in such case. The
M> problem with the original code is that natd just silently exits, leaving
M> machine without a network connection. For some reason this problem
M> started after upgrade from 7.4 to 8.2, perhaps there is some changes in
M> the dhclient which allows it to run is parallel with other start-up
M> activity.
M>
M> And I don't see any problem with natd waiting indefinitely on the
M> interface to acquire IP address, it's no better and no worse than the
M> current behavior when the natd simply bails out.
Hack can be applied to /etc/rc.d/natd, and better do it locally, not
in FreeBSD svn.
Example for such hack that is waiting for network in rc.d script can
be found here:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/net/quagga/files/quagga.sh.in?rev=1.18
See how $quagga_wait_for works.
--
Totus tuus, Glebius.
More information about the svn-src-head
mailing list