[haiku-commits] r35410 - haiku/trunk/src/servers/net

Author: stpere
Date: 2010-02-05 03:30:38 +0100 (Fri, 05 Feb 2010)
New Revision: 35410
Changeset: http://dev.haiku-os.org/changeset/35410/haiku
Ticket: http://dev.haiku-os.org/ticket/3912

Modified:
   haiku/trunk/src/servers/net/NetServer.cpp
Log:
NetServer: Clear the IFF_AUTO_CONFIGURED as needed. It was cleared at reboot, 
but not when the config file was updated.

Fixing ticket #3912.


Modified: haiku/trunk/src/servers/net/NetServer.cpp
===================================================================
--- haiku/trunk/src/servers/net/NetServer.cpp   2010-02-05 00:55:33 UTC (rev 
35409)
+++ haiku/trunk/src/servers/net/NetServer.cpp   2010-02-05 02:30:38 UTC (rev 
35410)
@@ -686,6 +686,9 @@
 
                if (flags != 0) {
                        request.ifr_flags = (currentFlags & ~IFF_CONFIGURING) | 
flags;
+                       if (!autoConfigured)
+                               request.ifr_flags = request.ifr_flags & 
~IFF_AUTO_CONFIGURED;
+
                        if (ioctl(familySocket, SIOCSIFFLAGS, &request, 
sizeof(struct ifreq)) < 0)
                                fprintf(stderr, "%s: Setting flags failed: 
%s\n", Name(), strerror(errno));
                }


Other related posts:

  • » [haiku-commits] r35410 - haiku/trunk/src/servers/net - stpere