1 diff -urN iptraf-3.0.0/src/dirs.h iptraf-3.0.0.new/src/dirs.h
2 --- iptraf-3.0.0/src/dirs.h 2005-09-13 08:42:54.000000000 +0200
3 +++ iptraf-3.0.0.new/src/dirs.h 2006-04-16 16:08:27.000000000 +0200
7 #define ETHFILE get_path(T_WORKDIR, "ethernet.desc")
8 -#define FDDIFILE get_path(T_WORKDIR, "fddi.desc")
11 * The rvnamed program file
12 diff -urN iptraf-3.0.0/src/hostmon.c iptraf-3.0.0.new/src/hostmon.c
13 --- iptraf-3.0.0/src/hostmon.c 2005-09-13 08:42:54.000000000 +0200
14 +++ iptraf-3.0.0.new/src/hostmon.c 2006-04-16 16:29:27.000000000 +0200
16 #include <netinet/in.h>
17 #include <linux/if_packet.h>
18 #include <linux/if_ether.h>
19 -#include <linux/if_fddi.h>
20 #include <linux/if_tr.h>
21 #include <net/if_arp.h>
24 wprintw(table->tabwin, "Ethernet");
25 else if (entry->un.desc.linktype == LINK_PLIP)
26 wprintw(table->tabwin, "PLIP");
27 - else if (entry->un.desc.linktype == LINK_FDDI)
28 - wprintw(table->tabwin, "FDDI");
30 wprintw(table->tabwin, " HW addr: %s", entry->un.desc.ascaddr);
33 unsigned long long updtime_usec = 0;
35 struct desclist elist; /* Ethernet description list */
36 - struct desclist flist; /* FDDI description list */
37 + struct desclist flist; /* Other links description list */
38 struct desclist *list = NULL;
43 initethtab(&table, options->actmode);
44 loaddesclist(&elist, LINK_ETHERNET, WITHETCETHERS);
45 - loaddesclist(&flist, LINK_FDDI, WITHETCETHERS);
48 if (strcmp(current_logfile, "") == 0) {
50 if (pkt_result != PACKET_OK)
53 - if ((linktype == LINK_ETHERNET) || (linktype == LINK_FDDI)
54 - || (linktype == LINK_PLIP) || (linktype == LINK_TR) ||
55 - (linktype == LINK_VLAN)) {
56 + if ((linktype == LINK_ETHERNET) || (linktype == LINK_PLIP) || (linktype == LINK_TR) || (linktype == LINK_VLAN)) {
58 if (fromaddr.sll_protocol == htons(ETH_P_IP))
61 memcpy(scratch_daddr, ((struct ethhdr *) buf)->h_dest,
64 - } else if (linktype == LINK_FDDI) {
65 - memcpy(scratch_saddr, ((struct fddihdr *) buf)->saddr,
67 - memcpy(scratch_daddr, ((struct fddihdr *) buf)->daddr,
70 } else if (linktype == LINK_TR) {
71 memcpy(scratch_saddr, ((struct trh_hdr *) buf)->saddr,
73 diff -urN iptraf-3.0.0/src/ifaces.c iptraf-3.0.0.new/src/ifaces.c
74 --- iptraf-3.0.0/src/ifaces.c 2005-09-13 08:42:54.000000000 +0200
75 +++ iptraf-3.0.0.new/src/ifaces.c 2006-04-16 16:10:10.000000000 +0200
77 extern int daemonized;
80 - { "lo", "eth", "sl", "ppp", "ippp", "plip", "fddi", "isdn", "dvb",
81 + { "lo", "eth", "sl", "ppp", "ippp", "plip", "isdn", "dvb",
82 "pvc", "hdlc", "ipsec", "sbni", "tr", "wvlan", "wlan", "sm2", "sm3",
83 "pent", "lec", "brg", "tun", "tap", "cipcb", "tunl", "vlan"
85 diff -urN iptraf-3.0.0/src/landesc.c iptraf-3.0.0.new/src/landesc.c
86 --- iptraf-3.0.0/src/landesc.c 2005-09-13 08:42:54.000000000 +0200
87 +++ iptraf-3.0.0.new/src/landesc.c 2006-04-16 16:10:29.000000000 +0200
90 if (linktype == LINK_ETHERNET)
91 fd = fopen(ETHFILE, "r");
92 - else if (linktype == LINK_FDDI)
93 - fd = fopen(FDDIFILE, "r");
99 if (linktype == LINK_ETHERNET)
100 fd = fopen(ETHFILE, "w");
101 - else if (linktype == LINK_FDDI)
102 - fd = fopen(FDDIFILE, "w");
106 diff -urN iptraf-3.0.0/src/links.h iptraf-3.0.0.new/src/links.h
107 --- iptraf-3.0.0/src/links.h 2005-09-13 08:42:54.000000000 +0200
108 +++ iptraf-3.0.0.new/src/links.h 2006-04-16 16:10:39.000000000 +0200
110 #define LINK_ISDN_RAWIP 6
111 #define LINK_ISDN_CISCOHDLC 7
112 #define LINK_CISCOHDLC 7
117 diff -urN iptraf-3.0.0/src/log.c iptraf-3.0.0.new/src/log.c
118 --- iptraf-3.0.0/src/log.c 2005-09-13 08:42:54.000000000 +0200
119 +++ iptraf-3.0.0.new/src/log.c 2006-04-16 16:10:53.000000000 +0200
121 ptmp->un.desc.ascaddr);
122 else if (ptmp->un.desc.linktype == LINK_PLIP)
123 fprintf(fd, "\nPLIP address: %s", ptmp->un.desc.ascaddr);
124 - else if (ptmp->un.desc.linktype == LINK_FDDI)
125 - fprintf(fd, "\nFDDI address: %s", ptmp->un.desc.ascaddr);
127 if (ptmp->un.desc.withdesc)
128 fprintf(fd, " (%s)", ptmp->un.desc.desc);
129 diff -urN iptraf-3.0.0/src/options.c iptraf-3.0.0.new/src/options.c
130 --- iptraf-3.0.0/src/options.c 2005-09-13 08:42:54.000000000 +0200
131 +++ iptraf-3.0.0.new/src/options.c 2006-04-16 16:23:52.000000000 +0200
133 tx_additem(menu, NULL, NULL);
134 tx_additem(menu, " ^E^thernet/PLIP host descriptions...",
135 "Manages descriptions for Ethernet and PLIP addresses");
136 - tx_additem(menu, " ^F^DDI/Token Ring host descriptions...",
137 - "Manages descriptions for FDDI and FDDI addresses");
138 tx_additem(menu, NULL, NULL);
139 tx_additem(menu, " E^x^it configuration", "Returns to main menu");
143 ethdescmgr(LINK_ETHERNET);
146 - ethdescmgr(LINK_FDDI);
150 indicatesetting(row, options, statwin);
151 diff -urN iptraf-3.0.0/src/othptab.c iptraf-3.0.0.new/src/othptab.c
152 --- iptraf-3.0.0/src/othptab.c 2005-09-13 08:42:54.000000000 +0200
153 +++ iptraf-3.0.0.new/src/othptab.c 2006-04-16 16:24:21.000000000 +0200
155 #include <asm/types.h>
156 #include <linux/if_ether.h>
157 #include <linux/if_tr.h>
158 -#include <linux/if_fddi.h>
163 new_entry->smacaddr);
164 convmacaddr(((struct ethhdr *) packet)->h_dest,
165 new_entry->dmacaddr);
166 - } else if (linkproto == LINK_FDDI) {
167 - convmacaddr(((struct fddihdr *) packet)->saddr,
168 - new_entry->smacaddr);
169 - convmacaddr(((struct fddihdr *) packet)->daddr,
170 - new_entry->dmacaddr);
171 } else if (linkproto == LINK_TR) {
172 convmacaddr(((struct trh_hdr *) packet)->saddr,
173 new_entry->smacaddr);
175 strcat(msgstring, scratchpad);
177 if ((entry->linkproto == LINK_ETHERNET) ||
178 - (entry->linkproto == LINK_PLIP) ||
179 - (entry->linkproto == LINK_FDDI)) {
180 + (entry->linkproto == LINK_PLIP)) {
181 sprintf(scratchpad, " from %s to %s on %s",
182 entry->smacaddr, entry->dmacaddr, entry->iface);
184 diff -urN iptraf-3.0.0/src/packet.c iptraf-3.0.0.new/src/packet.c
185 --- iptraf-3.0.0/src/packet.c 2005-09-13 08:42:54.000000000 +0200
186 +++ iptraf-3.0.0.new/src/packet.c 2006-04-16 16:11:55.000000000 +0200
188 #include <sys/ioctl.h>
189 #include <linux/if_packet.h>
190 #include <linux/if_ether.h>
191 -#include <linux/if_fddi.h>
192 #include <linux/if_tr.h>
193 #include <linux/isdn.h>
194 #include <linux/sockios.h>
196 result = LINK_ETHERNET;
197 else if (strncmp(ifname, "plip", 4) == 0)
199 - else if (strncmp(ifname, "fddi", 4) == 0) /* For some Ethernet- */
200 - result = LINK_ETHERNET; /* emulated FDDI ifaces */
201 else if (strncmp(ifname, "dvb", 3) == 0)
202 result = LINK_ETHERNET;
203 else if (strncmp(ifname, "sbni", 4) == 0)
209 - result = LINK_FDDI;
212 case ARPHRD_IEEE802_TR:
215 *packet = tpacket + 4;
219 - *packet = tpacket + sizeof(struct fddihdr);
220 - *readlen -= sizeof(struct fddihdr);
223 - * Move IP data into an aligned buffer. 96 bytes should be sufficient
224 - * for IP and TCP headers with reasonable numbers of options and some
228 - memmove(aligned_buf, *packet, min(SNAPSHOT_LEN, *readlen));
229 - *packet = aligned_buf;
233 * Token Ring patch supplied by Tomas Dvorak
234 diff -urN iptraf-3.0.0/src/promisc.c iptraf-3.0.0.new/src/promisc.c
235 --- iptraf-3.0.0/src/promisc.c 2005-09-13 08:42:54.000000000 +0200
236 +++ iptraf-3.0.0.new/src/promisc.c 2006-04-16 16:12:56.000000000 +0200
240 if ((strncmp(buf, "eth", 3) == 0) ||
241 - (strncmp(buf, "fddi", 4) == 0) ||
242 (strncmp(buf, "tr", 2) == 0) ||
243 + (strncmp(buf, "vlan", 4) == 0) ||
244 (strncmp(ptmp->params.ifname, "wvlan", 4) == 0) ||
245 (strncmp(ptmp->params.ifname, "lec", 3) == 0) ||
246 (accept_unsupported_interfaces)) {
249 while (ptmp != NULL) {
250 if (((strncmp(ptmp->params.ifname, "eth", 3) == 0) ||
251 - (strncmp(ptmp->params.ifname, "fddi", 4) == 0) ||
252 + (strncmp(ptmp->params.ifname, "vlan", 4) == 0) ||
253 (strncmp(ptmp->params.ifname, "tr", 2) == 0) ||
254 (strncmp(ptmp->params.ifname, "wvlan", 4) == 0) ||
255 (strncmp(ptmp->params.ifname, "lec", 3) == 0)) &&
256 diff -urN iptraf-3.0.0/src/rvnamed.h iptraf-3.0.0.new/src/rvnamed.h
257 --- iptraf-3.0.0/src/rvnamed.h 2005-09-13 08:42:54.000000000 +0200
258 +++ iptraf-3.0.0.new/src/rvnamed.h 2006-04-16 16:13:39.000000000 +0200
260 #include <netinet/in.h>
261 #include <arpa/inet.h>
263 -#define CHILDSOCKNAME "/dev/rvndcldcomsk"
264 -#define PARENTSOCKNAME "/dev/rvndpntcomsk"
265 -#define IPTSOCKNAME "/dev/rvndiptcomsk"
266 +#define CHILDSOCKNAME "/tmp/rvndcldcomsk"
267 +#define PARENTSOCKNAME "/tmp/rvndpntcomsk"
268 +#define IPTSOCKNAME "/tmp/rvndiptcomsk"
270 #define SOCKET_PREFIX "isock"
272 diff -urN iptraf-3.0.0/src/tcptable.c iptraf-3.0.0.new/src/tcptable.c
273 --- iptraf-3.0.0/src/tcptable.c 2005-09-13 08:42:54.000000000 +0200
274 +++ iptraf-3.0.0.new/src/tcptable.c 2006-04-16 16:13:54.000000000 +0200
277 if ((linkproto == LINK_ETHERNET) || (linkproto == LINK_PLIP)) {
278 convmacaddr(((struct ethhdr *) packet)->h_source, newmacaddr);
279 - } else if (linkproto == LINK_FDDI) {
280 - convmacaddr(((struct fddihdr *) packet)->saddr, newmacaddr);
281 } else if (linkproto == LINK_TR) {
282 convmacaddr(((struct trh_hdr *) packet)->saddr, newmacaddr);
284 diff -urN iptraf-3.0.0/src/tcptable.h iptraf-3.0.0.new/src/tcptable.h
285 --- iptraf-3.0.0/src/tcptable.h 2005-09-13 08:42:54.000000000 +0200
286 +++ iptraf-3.0.0.new/src/tcptable.h 2006-04-16 16:14:03.000000000 +0200
288 #include <asm/types.h>
289 #include <linux/if_packet.h>
290 #include <linux/if_ether.h>
291 -#include <linux/if_fddi.h>
292 #include <linux/if_tr.h>
294 #include <netinet/ip.h>