1 --- iptraf-3.0.1.orig/src/hostmon.c 2007-09-25 11:18:56.000000000 +0200
2 +++ iptraf-3.0.1/src/hostmon.c 2013-03-04 11:41:08.000000000 +0100
3 @@ -32,7 +32,6 @@ details.
4 #include <linux/if_ether.h>
5 #include <linux/netdevice.h>
6 #include <linux/if_fddi.h>
7 -#include <linux/if_tr.h>
8 #include <net/if_arp.h>
11 @@ -294,8 +293,6 @@ void printethent(struct ethtab *table, s
12 wprintw(table->tabwin, "Ethernet");
13 else if (entry->un.desc.linktype == LINK_PLIP)
14 wprintw(table->tabwin, "PLIP");
15 - else if (entry->un.desc.linktype == LINK_FDDI)
16 - wprintw(table->tabwin, "FDDI");
18 wprintw(table->tabwin, " HW addr: %s", entry->un.desc.ascaddr);
20 @@ -723,7 +720,6 @@ void hostmon(const struct OPTIONS *optio
21 unsigned long long updtime_usec = 0;
23 struct desclist elist; /* Ethernet description list */
24 - struct desclist flist; /* FDDI description list */
25 struct desclist *list = NULL;
28 @@ -787,7 +783,6 @@ void hostmon(const struct OPTIONS *optio
30 initethtab(&table, options->actmode);
31 loaddesclist(&elist, LINK_ETHERNET, WITHETCETHERS);
32 - loaddesclist(&flist, LINK_FDDI, WITHETCETHERS);
35 if (strcmp(current_logfile, "") == 0) {
36 @@ -901,8 +896,7 @@ void hostmon(const struct OPTIONS *optio
37 if (pkt_result != PACKET_OK)
40 - if ((linktype == LINK_ETHERNET) || (linktype == LINK_FDDI)
41 - || (linktype == LINK_PLIP) || (linktype == LINK_TR) ||
42 + if ((linktype == LINK_ETHERNET) || (linktype == LINK_PLIP) ||
43 (linktype == LINK_VLAN)) {
45 if (fromaddr.sll_protocol == htons(ETH_P_IP))
46 @@ -921,18 +915,6 @@ void hostmon(const struct OPTIONS *optio
47 memcpy(scratch_daddr, ((struct ethhdr *) buf)->h_dest,
50 - } else if (linktype == LINK_FDDI) {
51 - memcpy(scratch_saddr, ((struct fddihdr *) buf)->saddr,
53 - memcpy(scratch_daddr, ((struct fddihdr *) buf)->daddr,
56 - } else if (linktype == LINK_TR) {
57 - memcpy(scratch_saddr, ((struct trh_hdr *) buf)->saddr,
59 - memcpy(scratch_daddr, ((struct trh_hdr *) buf)->daddr,
64 entry = in_ethtable(&table, linktype, scratch_saddr);
65 @@ -999,7 +981,6 @@ void hostmon(const struct OPTIONS *optio
67 destroyethtab(&table);
68 destroydesclist(&elist);
69 - destroydesclist(&flist);
70 unmark_facility(LANMONIDFILE, ifptr);
71 strcpy(current_logfile, "");