patch-src_promisc_c 1.1 KB

12345678910111213141516171819202122
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- iptraf-3.0.0.orig/src/promisc.c 2005-09-13 08:42:54.000000000 +0200
  3. +++ iptraf-3.0.0/src/promisc.c 2008-10-09 17:34:11.000000000 +0200
  4. @@ -81,8 +81,8 @@ void init_promisc_list(struct promisc_st
  5. */
  6. if ((strncmp(buf, "eth", 3) == 0) ||
  7. - (strncmp(buf, "fddi", 4) == 0) ||
  8. (strncmp(buf, "tr", 2) == 0) ||
  9. + (strncmp(buf, "vlan", 4) == 0) ||
  10. (strncmp(ptmp->params.ifname, "wvlan", 4) == 0) ||
  11. (strncmp(ptmp->params.ifname, "lec", 3) == 0) ||
  12. (accept_unsupported_interfaces)) {
  13. @@ -195,7 +195,7 @@ void srpromisc(int mode, struct promisc_
  14. while (ptmp != NULL) {
  15. if (((strncmp(ptmp->params.ifname, "eth", 3) == 0) ||
  16. - (strncmp(ptmp->params.ifname, "fddi", 4) == 0) ||
  17. + (strncmp(ptmp->params.ifname, "vlan", 4) == 0) ||
  18. (strncmp(ptmp->params.ifname, "tr", 2) == 0) ||
  19. (strncmp(ptmp->params.ifname, "wvlan", 4) == 0) ||
  20. (strncmp(ptmp->params.ifname, "lec", 3) == 0)) &&