patch-src_othptab_c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. }
  27. @@ -376,8 +365,7 @@ void printothpentry(struct othptable *ta
  28. strcat(msgstring, scratchpad);
  29. if ((entry->linkproto == LINK_ETHERNET) ||
  30. - (entry->linkproto == LINK_PLIP) ||
  31. - (entry->linkproto == LINK_FDDI)) {
  32. + (entry->linkproto == LINK_PLIP)) {
  33. sprintf(scratchpad, " from %s to %s on %s",
  34. entry->smacaddr, entry->dmacaddr, entry->iface);