NetServer: Clear the IFF_AUTO_CONFIGURED as needed. It was cleared at reboot, but not when the config file was updated.

Fixing ticket #3912.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35410 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Saint-Pierre 2010-02-05 02:30:38 +00:00
parent 767d444609
commit de4212d411

View File

@ -686,6 +686,9 @@ NetServer::_ConfigureInterface(int socket, BMessage& interface,
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));
}