Commit 7b576887 authored by Jiri Popelka's avatar Jiri Popelka

fixed clearing flags in ifconfig (RHBZ #450252)

parent 1f2c75dc
...@@ -441,7 +441,7 @@ int main(int argc, char **argv) ...@@ -441,7 +441,7 @@ int main(int argc, char **argv)
} }
if (!strcmp(*spp, "-allmulti")) { if (!strcmp(*spp, "-allmulti")) {
goterr |= clr_flag(ifr.ifr_name, IFF_ALLMULTI); goterr |= clr_flag(ifr.ifr_name, IFF_ALLMULTI);
if (test_flag(ifr.ifr_name, IFF_MULTICAST) > 0) if (test_flag(ifr.ifr_name, IFF_ALLMULTI) > 0)
fprintf(stderr, _("Warning: Interface %s still in ALLMULTI mode.\n"), ifr.ifr_name); fprintf(stderr, _("Warning: Interface %s still in ALLMULTI mode.\n"), ifr.ifr_name);
spp++; spp++;
continue; continue;
...@@ -465,7 +465,7 @@ int main(int argc, char **argv) ...@@ -465,7 +465,7 @@ int main(int argc, char **argv)
if (!strcmp(*spp, "-dynamic")) { if (!strcmp(*spp, "-dynamic")) {
goterr |= clr_flag(ifr.ifr_name, IFF_DYNAMIC); goterr |= clr_flag(ifr.ifr_name, IFF_DYNAMIC);
spp++; spp++;
if (test_flag(ifr.ifr_name, IFF_MULTICAST) > 0) if (test_flag(ifr.ifr_name, IFF_DYNAMIC) > 0)
fprintf(stderr, _("Warning: Interface %s still in DYNAMIC mode.\n"), ifr.ifr_name); fprintf(stderr, _("Warning: Interface %s still in DYNAMIC mode.\n"), ifr.ifr_name);
continue; continue;
} }
...@@ -523,7 +523,7 @@ int main(int argc, char **argv) ...@@ -523,7 +523,7 @@ int main(int argc, char **argv)
if (!strcmp(*spp, "-broadcast")) { if (!strcmp(*spp, "-broadcast")) {
goterr |= clr_flag(ifr.ifr_name, IFF_BROADCAST); goterr |= clr_flag(ifr.ifr_name, IFF_BROADCAST);
if (test_flag(ifr.ifr_name, IFF_MULTICAST) > 0) if (test_flag(ifr.ifr_name, IFF_BROADCAST) > 0)
fprintf(stderr, _("Warning: Interface %s still in BROADCAST mode.\n"), ifr.ifr_name); fprintf(stderr, _("Warning: Interface %s still in BROADCAST mode.\n"), ifr.ifr_name);
spp++; spp++;
continue; continue;
...@@ -661,7 +661,7 @@ int main(int argc, char **argv) ...@@ -661,7 +661,7 @@ int main(int argc, char **argv)
if (!strcmp(*spp, "-pointopoint")) { if (!strcmp(*spp, "-pointopoint")) {
goterr |= clr_flag(ifr.ifr_name, IFF_POINTOPOINT); goterr |= clr_flag(ifr.ifr_name, IFF_POINTOPOINT);
spp++; spp++;
if (test_flag(ifr.ifr_name, IFF_MULTICAST) > 0) if (test_flag(ifr.ifr_name, IFF_POINTOPOINT) > 0)
fprintf(stderr, _("Warning: Interface %s still in POINTOPOINT mode.\n"), ifr.ifr_name); fprintf(stderr, _("Warning: Interface %s still in POINTOPOINT mode.\n"), ifr.ifr_name);
continue; continue;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment