summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Popelka <jpopelka@redhat.com>2011-12-07 19:04:35 +0100
committerJiri Popelka <jpopelka@redhat.com>2012-01-05 12:22:43 +0100
commit7b576887254696cb60c42c11e7bae4bb0babaf23 (patch)
tree142721bc960450ed82de936d192f043a9868facb
parent1f2c75dcb9998b2f4875adaa9c0e798d83aaaa77 (diff)
downloadnet-tools-7b576887254696cb60c42c11e7bae4bb0babaf23.tar.gz
net-tools-7b576887254696cb60c42c11e7bae4bb0babaf23.tar.bz2
net-tools-7b576887254696cb60c42c11e7bae4bb0babaf23.zip
fixed clearing flags in ifconfig (RHBZ #450252)
-rw-r--r--ifconfig.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ifconfig.c b/ifconfig.c
index 44cea40..bc405c6 100644
--- a/ifconfig.c
+++ b/ifconfig.c
@@ -441,7 +441,7 @@ int main(int argc, char **argv)
}
if (!strcmp(*spp, "-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);
spp++;
continue;
@@ -465,7 +465,7 @@ int main(int argc, char **argv)
if (!strcmp(*spp, "-dynamic")) {
goterr |= clr_flag(ifr.ifr_name, IFF_DYNAMIC);
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);
continue;
}
@@ -523,7 +523,7 @@ int main(int argc, char **argv)
if (!strcmp(*spp, "-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);
spp++;
continue;
@@ -661,7 +661,7 @@ int main(int argc, char **argv)
if (!strcmp(*spp, "-pointopoint")) {
goterr |= clr_flag(ifr.ifr_name, IFF_POINTOPOINT);
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);
continue;
}