Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
iptraf
iptraf-3.0.0-dev.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File iptraf-3.0.0-dev.patch of Package iptraf
--- src/ifaces.c +++ src/ifaces.c @@ -32,14 +32,15 @@ #include "error.h" extern int accept_unsupported_interfaces; -#define NUM_SUPPORTED_IFACES 26 +#define NUM_SUPPORTED_IFACES 33 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", + "dsl", "modem", "ni", "br", "tap", "dummy", "vmnet" }; char *ltrim(char *buf) --- src/packet.c +++ src/packet.c @@ -121,8 +121,12 @@ result = LINK_INVALID; break; } - } else if (accept_unsupported_interfaces) + } + else if(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 (accept_unsupported_interfaces) result = LINK_ETHERNET; + break; case ARPHRD_LOOPBACK: result = LINK_LOOPBACK; --- src/promisc.c +++ src/promisc.c @@ -85,6 +85,11 @@ (strncmp(buf, "tr", 2) == 0) || (strncmp(ptmp->params.ifname, "wvlan", 4) == 0) || (strncmp(ptmp->params.ifname, "lec", 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 || (accept_unsupported_interfaces)) { strcpy(ifr.ifr_name, buf);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor