diff options
Diffstat (limited to 'package/iptraf/patches/patch-src_promisc_c')
-rw-r--r-- | package/iptraf/patches/patch-src_promisc_c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/package/iptraf/patches/patch-src_promisc_c b/package/iptraf/patches/patch-src_promisc_c new file mode 100644 index 000000000..a8b4c4f90 --- /dev/null +++ b/package/iptraf/patches/patch-src_promisc_c @@ -0,0 +1,22 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- iptraf-3.0.0.orig/src/promisc.c 2005-09-13 08:42:54.000000000 +0200 ++++ iptraf-3.0.0/src/promisc.c 2008-10-09 17:34:11.000000000 +0200 +@@ -81,8 +81,8 @@ void init_promisc_list(struct promisc_st + */ + + if ((strncmp(buf, "eth", 3) == 0) || +- (strncmp(buf, "fddi", 4) == 0) || + (strncmp(buf, "tr", 2) == 0) || ++ (strncmp(buf, "vlan", 4) == 0) || + (strncmp(ptmp->params.ifname, "wvlan", 4) == 0) || + (strncmp(ptmp->params.ifname, "lec", 3) == 0) || + (accept_unsupported_interfaces)) { +@@ -195,7 +195,7 @@ void srpromisc(int mode, struct promisc_ + + while (ptmp != NULL) { + if (((strncmp(ptmp->params.ifname, "eth", 3) == 0) || +- (strncmp(ptmp->params.ifname, "fddi", 4) == 0) || ++ (strncmp(ptmp->params.ifname, "vlan", 4) == 0) || + (strncmp(ptmp->params.ifname, "tr", 2) == 0) || + (strncmp(ptmp->params.ifname, "wvlan", 4) == 0) || + (strncmp(ptmp->params.ifname, "lec", 3) == 0)) && |