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:
parent
767d444609
commit
de4212d411
@ -686,6 +686,9 @@ NetServer::_ConfigureInterface(int socket, BMessage& interface,
|
|||||||
|
|
||||||
if (flags != 0) {
|
if (flags != 0) {
|
||||||
request.ifr_flags = (currentFlags & ~IFF_CONFIGURING) | flags;
|
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)
|
if (ioctl(familySocket, SIOCSIFFLAGS, &request, sizeof(struct ifreq)) < 0)
|
||||||
fprintf(stderr, "%s: Setting flags failed: %s\n", Name(), strerror(errno));
|
fprintf(stderr, "%s: Setting flags failed: %s\n", Name(), strerror(errno));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user