Package: iptraf
Version: 3.0.0-6
I'am using bonding to have fail-over networkdevice an it's not possible
to access it with iptraf for looking upcoming/down traffic.
Would it be possible to add this to the iptraf-package? :)
I solved this with some changed in the source code:
Steps i did (orig-sourcecode got patched with -diif files from debian):
---------------------------------
ifaces.c
---------------------------------
#define NUM_SUPPORTED_IFACES 28
to (just increasing the number with 1)
#define NUM_SUPPORTED_IFACES 29
---------------------------------
ifaces.c
---------------------------------
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", "ath",
"ra"
};
to (i just added "bond",)
char ifaces[][6] =
{ "lo", "eth", "bond", "sl", "ppp", "ippp", "plip", "fddi", "isdn",
"dvb",
"pvc", "hdlc", "ipsec", "sbni", "tr", "wvlan", "wlan", "sm2", "sm3",
"pent", "lec", "brg", "tun", "tap", "cipcb", "tunl", "vlan", "ath",
"ra"
};
---------------------------------
packets.c
---------------------------------
if (strncmp(ifname, "eth", 3) == 0)
result = LINK_ETHERNET;
else if (strncmp(ifname, "ath", 3) == 0)
result = LINK_ETHERNET;
to (adding a new else-if statement with bond)
if (strncmp(ifname, "eth", 3) == 0)
result = LINK_ETHERNET;
else if (strncmp(ifname, "bond", 3) == 0)
result = LINK_ETHERNET;
else if (strncmp(ifname, "ath", 3) == 0)
result = LINK_ETHERNET;
-----------------------------------
--
Mit freundlichen Grüßen
Denis Klimek
-------------------------------------
Denis Klimek, Inhaber & Projektleiter
Diagonalstr. 3
D-20537 Hamburg
-------------------------------------
Telefon: +49 (0) 40 / 411 85 984
Telefon: +49 (0) 40 / 235 591 99
Mobil: +49 (0) 176/ 298 299 06
E-Mail: de...@serverleih.de
Website: www.Serverleih.de
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org