Bugzilla – Attachment 46518 Details for
Bug 105545
Support for more iptraf interfaces
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
Sample
iptraf_AS-addifaces.diff (text/plain), 2.03 KB, created by
Jan Engelhardt
on 2005-08-18 14:41:46 UTC
(
hide
)
Description:
Sample
Filename:
MIME Type:
Creator:
Jan Engelhardt
Created:
2005-08-18 14:41:46 UTC
Size:
2.03 KB
patch
obsolete
>diff -pdru iptraf-2.7.0/src/ifaces.c iptraf-2.7.0-AS/src/ifaces.c >--- iptraf-2.7.0/src/ifaces.c 2005-03-31 23:17:07.905016000 +0200 >+++ iptraf-2.7.0-AS/src/ifaces.c 2005-03-31 23:15:04.675016000 +0200 >@@ -32,14 +32,14 @@ details. > #include "error.h" > > extern int accept_unsupported_interfaces; >-#define NUM_SUPPORTED_IFACES 21 >+#define NUM_SUPPORTED_IFACES 26 > > 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", "dsl" }; >+ "pent", "lec", "dsl", "ni", "br", "tap", "dummy", "vmnet"}; > > char *ltrim(char *buf) > { >diff -pdru iptraf-2.7.0/src/packet.c iptraf-2.7.0-AS/src/packet.c >--- iptraf-2.7.0/src/packet.c 2002-05-08 11:44:08.000000000 +0200 >+++ iptraf-2.7.0-AS/src/packet.c 2005-03-31 23:15:29.205016000 +0200 >@@ -78,7 +78,9 @@ unsigned short getlinktype(unsigned shor > > switch (family) { > case ARPHRD_ETHER: >- if (strncmp(ifname, "eth", 3) == 0) >+ if(strncmp(ifname, "eth", 3) == 0 || strncmp(ifname, "ni", 2) == 0 || >+ strncmp(ifname, "tap", 3) == 0 || strncmp(ifname, "dummy", 5) == 0 || >+ strncmp(ifname, "br", 2) == 0 || strncmp(ifname, "vmnet", 5) == 0) > result = LINK_ETHERNET; > else if (strncmp(ifname, "plip", 4) == 0) > result = LINK_PLIP; >diff -pdru iptraf-2.7.0/src/promisc.c iptraf-2.7.0-AS/src/promisc.c >--- iptraf-2.7.0/src/promisc.c 2002-01-16 02:51:03.000000000 +0100 >+++ iptraf-2.7.0-AS/src/promisc.c 2005-03-31 23:15:48.475016000 +0200 >@@ -81,6 +81,11 @@ void init_promisc_list(struct promisc_st > */ > > if ((strncmp(buf, "eth", 3) == 0) || >+ strncmp(buf, "ni", 2) == 0 || >+ strncmp(buf, "tap", 3) == 0 || >+ strncmp(buf, "dummy", 5) == 0 || >+ strncmp(buf, "br", 2) == 0 || >+ strncmp(buf, "vmnet", 5) == 0 || > (strncmp(buf, "fddi", 4) == 0) || > (strncmp(ptmp->params.ifname, "wvlan", 4) == 0) || > (strncmp(ptmp->params.ifname, "lec", 3) == 0) ||
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 105545
: 46518