libgpg-error: fix riscv64
[openadk.git] / package / iptraf / patches / patch-src_othptab_c
blob3264a6c20a10f5de2582ebde8ca151cd6a591ed5
1 --- iptraf-3.0.1.orig/src/othptab.c     2007-09-25 11:47:35.000000000 +0200
2 +++ iptraf-3.0.1/src/othptab.c  2013-03-04 11:39:50.000000000 +0100
3 @@ -20,7 +20,6 @@ details.
4  #include <asm/types.h>
5  #include <sys/socket.h>
6  #include <linux/if_ether.h>
7 -#include <linux/if_tr.h>
8  #include <linux/netdevice.h>
9  #include <linux/if_fddi.h>
10  #include <winops.h>
11 @@ -142,16 +141,6 @@ struct othptabent *add_othp_entry(struct
12                          new_entry->smacaddr);
13              convmacaddr(((struct ethhdr *) packet)->h_dest,
14                          new_entry->dmacaddr);
15 -        } else if (linkproto == LINK_FDDI) {
16 -            convmacaddr(((struct fddihdr *) packet)->saddr,
17 -                        new_entry->smacaddr);
18 -            convmacaddr(((struct fddihdr *) packet)->daddr,
19 -                        new_entry->dmacaddr);
20 -        } else if (linkproto == LINK_TR) {
21 -            convmacaddr(((struct trh_hdr *) packet)->saddr,
22 -                        new_entry->smacaddr);
23 -            convmacaddr(((struct trh_hdr *) packet)->daddr,
24 -                        new_entry->dmacaddr);
25          }
26      }
28 @@ -376,8 +365,7 @@ void printothpentry(struct othptable *ta
29          strcat(msgstring, scratchpad);
31          if ((entry->linkproto == LINK_ETHERNET) ||
32 -            (entry->linkproto == LINK_PLIP) ||
33 -            (entry->linkproto == LINK_FDDI)) {
34 +            (entry->linkproto == LINK_PLIP)) {
35              sprintf(scratchpad, " from %s to %s on %s",
36                      entry->smacaddr, entry->dmacaddr, entry->iface);