2011-12-06 18:15:09 +00:00
|
|
|
diff -up net-tools-1.60/ifconfig.c.clear-flag net-tools-1.60/ifconfig.c
|
|
|
|
--- net-tools-1.60/ifconfig.c.clear-flag 2011-12-06 12:58:18.000000000 +0100
|
|
|
|
+++ net-tools-1.60/ifconfig.c 2011-12-06 13:02:37.881413090 +0100
|
|
|
|
@@ -464,7 +464,7 @@ int main(int argc, char **argv)
|
2008-07-10 08:33:33 +00:00
|
|
|
}
|
|
|
|
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;
|
|
|
|
@@ -488,7 +488,7 @@ int main(int argc, char **argv)
|
|
|
|
if (!strcmp(*spp, "-dynamic")) {
|
|
|
|
goterr |= clr_flag(ifr.ifr_name, IFF_DYNAMIC);
|
2011-12-06 18:15:09 +00:00
|
|
|
spp++;
|
2008-07-10 08:33:33 +00:00
|
|
|
- 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;
|
2011-12-06 18:15:09 +00:00
|
|
|
}
|
|
|
|
@@ -546,7 +546,7 @@ int main(int argc, char **argv)
|
2008-07-10 08:33:33 +00:00
|
|
|
|
|
|
|
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;
|
2011-12-06 18:15:09 +00:00
|
|
|
@@ -685,7 +685,7 @@ int main(int argc, char **argv)
|
2008-07-10 08:33:33 +00:00
|
|
|
if (!strcmp(*spp, "-pointopoint")) {
|
|
|
|
goterr |= clr_flag(ifr.ifr_name, IFF_POINTOPOINT);
|
2011-12-06 18:15:09 +00:00
|
|
|
spp++;
|
2008-07-10 08:33:33 +00:00
|
|
|
- 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;
|
2011-12-06 18:15:09 +00:00
|
|
|
}
|