Opened 5 years ago

Closed 17 months ago

#646 closed (worksforme)

iptraf wont' compile unless patch is applied -patch included

Reported by: snake98 Owned by: somebody
Keywords: Cc:

Description (last modified by snake98)

Okay to fix iptraf so it compiles do the following

opt/4.1.0/mipsel-linux/sys-include/include/linux/if_fddi.h


add
#include <linux/netdevice.h>


After
#ifndef _LINUX_IF_FDDI_H
#define _LINUX_IF_FDDI_H

Then apply this patch, or edit the files directly
http://bugs.gentoo.org/attachment.cgi?id=63723&action=view

diff -ur iptraf-2.7.0/src/packet.c iptraf-2.7.0-2.6.11-r2/src/packet.c
--- iptraf-2.7.0/src/packet.c   2005-07-17 05:45:44.000000000 +0200
+++ iptraf-2.7.0-2.6.11-r2/src/packet.c 2005-07-17 05:43:50.000000000 +0200
@@ -32,6 +32,9 @@
 #include <sys/time.h>
 #include <net/if_arp.h>
 #include <net/if.h>
+#ifdef _NET_IF_H
+#define  _LINUX_IF_H
+#endif
 #include <sys/ioctl.h>
 #include <linux/if_packet.h>
 #include <linux/if_ether.h>
diff -ur iptraf-2.7.0/src/tcptable.h iptraf-2.7.0-2.6.11-r2/src/tcptable.h
--- iptraf-2.7.0/src/tcptable.h 2001-12-28 03:16:39.000000000 +0100
+++ iptraf-2.7.0-2.6.11-r2/src/tcptable.h       2005-07-17 05:44:02.000000000 +0200
@@ -20,11 +20,15 @@
 #include <arpa/inet.h>
 #include <net/if_arp.h>
 #include <asm/types.h>
+#include <net/if.h>
+#ifdef _NET_IF_H
+#define  _LINUX_IF_H
+#endif
 #include <linux/if_packet.h>
 #include <linux/if_ether.h>
 #include <linux/if_fddi.h>
 #include <linux/if_tr.h>
-#include <net/if.h>
+//#include <net/if.h>
 #include <netinet/ip.h>
 #include <netinet/udp.h>
 #include "servname.h"
diff -ur iptraf-2.7.0/src/othptab.c.orig iptraf-2.7.0/src/othptab.c
--- iptraf-2.7.0/src/othptab.c.orig  2005-07-18 20:06:35.000000000 +0100
+++ iptraf-2.7.0/src/othptab.c       2005-07-18 20:07:25.000000000 +0100
@@ -17,15 +17,12 @@
 ***/

 #include <asm/types.h>
-#include <linux/if_ether.h>
-#include <linux/if_tr.h>
-#include <linux/if_fddi.h>
 #include <netinet/ip6.h>
 #include <netinet/icmp6.h>
 #include <winops.h>
+#include "tcptable.h"
 #include "arphdr.h"
 #include "options.h"
-#include "tcptable.h"
 #include "othptab.h"
 #include "deskman.h"
 #include "attrs.h"

Change History (2)

comment:1 Changed 5 years ago by snake98

  • Description modified (diff)

comment:2 Changed 17 months ago by Sash

  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.