iptraf + ath0 (patch)

Jakub Sochacki soshi at epf.pl
Sat Jan 14 11:21:48 CET 2006


Witam
Moj iptraf nie potrafił się dogadać z interfejsem ath0. W załączeniu 
łatka poprawiająca to zachowanie. Niech ktoś zechce rzucić na to okiem i 
dodać do zasobów.
pozdrawiam
soshhi


--------------------
Szukasz doświadczonej firmy poligraficznej? Zależy Ci na terminowości i atrakcyjnych cenach?
Zapraszamy do nas!
http://www.foldruk.pl/
-------------- next part --------------
--- iptraf-iface.patch.orig	2006-01-14 10:12:08.066276250 +0000
+++ iptraf-iface.patch	2006-01-14 10:11:10.662688750 +0000
@@ -6,7 +6,7 @@
  
  extern int accept_unsupported_interfaces;
 -#define NUM_SUPPORTED_IFACES 20
-+#define NUM_SUPPORTED_IFACES 23
++#define NUM_SUPPORTED_IFACES 24
  
  extern int daemonized;
  
@@ -14,7 +14,7 @@
      { "lo", "eth", "sl", "ppp", "ippp", "plip", "fddi", "isdn", "dvb",
        "pvc", "hdlc", "ipsec", "sbni", "tr", "wvlan", "wlan", "sm2", "sm3",
 -      "pent", "lec" };
-+      "pent", "lec", "cipcb", "tunl", "bond" };
++      "pent", "lec", "cipcb", "tunl", "bond", "ath" };
  
  char *ltrim(char *buf)
  {
@@ -36,6 +36,15 @@
 diff -urN iptraf-2.7.0.org/src/packet.c iptraf-2.7.0/src/packet.c
 --- iptraf-2.7.0.org/src/packet.c	2003-09-16 00:01:34.000000000 +0200
 +++ iptraf-2.7.0/src/packet.c	2003-09-16 00:05:03.000000000 +0200
+@@ -90,7 +90,7 @@
+ 	    result = LINK_ETHERNET;
+ 	else if (strncmp(ifname, "ipsec", 5) == 0)
+ 	    result = LINK_ETHERNET;
+-	else if ((strncmp(ifname, "wvlan", 5) == 0) || (strncmp(ifname, "wlan", 4) == 0))
++	else if ((strncmp(ifname, "wvlan", 5) == 0) || (strncmp(ifname, "wlan", 4) == 0)|| (strncmp(ifname, "ath", 3) == 0))
+ 	    result = LINK_ETHERNET;
+         else if ((strncmp(ifname, "sm2", 3) == 0) || (strncmp(ifname, "sm3", 3) == 0))
+             result = LINK_ETHERNET;
 @@ -139,7 +139,13 @@
          break;
      case ARPHRD_DLCI:
-------------- next part --------------
--- iptraf-vlan.patch.orig	2006-01-14 10:12:18.722942250 +0000
+++ iptraf-vlan.patch	2006-01-14 10:11:15.530993000 +0000
@@ -37,16 +37,16 @@
  #include "error.h"
  
  extern int accept_unsupported_interfaces;
--#define NUM_SUPPORTED_IFACES 23
-+#define NUM_SUPPORTED_IFACES 24
+-#define NUM_SUPPORTED_IFACES 24
++#define NUM_SUPPORTED_IFACES 25
  
  extern int daemonized;
  
  char ifaces[][6] =
      { "lo", "eth", "sl", "ppp", "ippp", "plip", "fddi", "isdn", "dvb",
        "pvc", "hdlc", "ipsec", "sbni", "tr", "wvlan", "wlan", "sm2", "sm3",
--      "pent", "lec", "cipcb", "tunl", "bond" };
-+      "pent", "lec", "cipcb", "tunl", "bond", "vlan" };
+-      "pent", "lec", "cipcb", "tunl", "bond", "ath" };
++      "pent", "lec", "cipcb", "tunl", "bond", "ath", "vlan" };
  
  char *ltrim(char *buf)
  {


More information about the pld-devel-pl mailing list