diff options
Diffstat (limited to 'net-analyzer/iptraf/files/iptraf-3.0.0-atheros.patch')
-rw-r--r-- | net-analyzer/iptraf/files/iptraf-3.0.0-atheros.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/net-analyzer/iptraf/files/iptraf-3.0.0-atheros.patch b/net-analyzer/iptraf/files/iptraf-3.0.0-atheros.patch new file mode 100644 index 0000000..a903cfd --- /dev/null +++ b/net-analyzer/iptraf/files/iptraf-3.0.0-atheros.patch @@ -0,0 +1,42 @@ +Add support for 'ath' interfaces + +--- iptraf-3.0.0/src/ifaces.c ++++ iptraf-3.0.0/src/ifaces.c +@@ -32,14 +32,14 @@ + #include "error.h" + + extern int accept_unsupported_interfaces; +-#define NUM_SUPPORTED_IFACES 26 ++#define NUM_SUPPORTED_IFACES 27 + + 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", "brg", "tun", "tap", "cipcb", "tunl", "vlan" ++ "pent", "lec", "brg", "tun", "tap", "cipcb", "tunl", "vlan", "ath" + }; + + char *ltrim(char *buf) +--- iptraf-3.0.0/src/packet.c ++++ iptraf-3.0.0/src/packet.c +@@ -110,6 +110,8 @@ + result = LINK_ETHERNET; + else if (strncmp(ifname, "tap", 3) == 0) + result = LINK_ETHERNET; ++ else if (strncmp(ifname, "ath", 3) == 0) ++ result = LINK_ETHERNET; + else if ((strncmp(ifname, "isdn", 4) == 0) && (isdn_fd != -1)) { + isdnent = isdn_table_lookup(isdnlist, ifname, isdn_fd); + +--- iptraf-3.0.0/src/promisc.c ++++ iptraf-3.0.0/src/promisc.c +@@ -83,6 +83,7 @@ + if ((strncmp(buf, "eth", 3) == 0) || + (strncmp(buf, "fddi", 4) == 0) || + (strncmp(buf, "tr", 2) == 0) || ++ (strncmp(buf, "ath", 3) == 0) || + (strncmp(ptmp->params.ifname, "wvlan", 4) == 0) || + (strncmp(ptmp->params.ifname, "lec", 3) == 0) || + (accept_unsupported_interfaces)) { |