summaryrefslogtreecommitdiff
path: root/package/iptraf
diff options
context:
space:
mode:
Diffstat (limited to 'package/iptraf')
-rw-r--r--package/iptraf/Makefile40
-rw-r--r--package/iptraf/patches/patch-src_Makefile22
-rw-r--r--package/iptraf/patches/patch-src_hostmon_c51
-rw-r--r--package/iptraf/patches/patch-src_ifstats_c6
-rw-r--r--package/iptraf/patches/patch-src_isdntab_c10
-rw-r--r--package/iptraf/patches/patch-src_othptab_c47
-rw-r--r--package/iptraf/patches/patch-src_packet_c88
-rw-r--r--package/iptraf/patches/patch-src_revname_c6
-rw-r--r--package/iptraf/patches/patch-src_tcptable_c12
-rw-r--r--package/iptraf/patches/patch-src_tcptable_h33
-rw-r--r--package/iptraf/patches/patch-src_tr_c9
-rw-r--r--package/iptraf/patches/patch-support_listbox_c6
12 files changed, 179 insertions, 151 deletions
diff --git a/package/iptraf/Makefile b/package/iptraf/Makefile
index 9c167c60b..74184e90d 100644
--- a/package/iptraf/Makefile
+++ b/package/iptraf/Makefile
@@ -1,43 +1,37 @@
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
-include ${TOPDIR}/rules.mk
+include ${ADK_TOPDIR}/rules.mk
PKG_NAME:= iptraf
-PKG_VERSION:= 3.0.0
+PKG_VERSION:= 3.0.1
PKG_RELEASE:= 1
-PKG_MD5SUM:= 377371c28ee3c21a76f7024920649ea8
-PKG_DESCR:= A console-based network monitoring program.
-PKG_SECTION:= net
+PKG_HASH:= 95a069af8c4d22206985f6ce69acc27cfcfef1d58ad6ab8dbb10c698642ac08a
+PKG_DESCR:= console-based network monitoring program.
+PKG_SECTION:= net/perf
PKG_DEPENDS:= libncurses
PKG_BUILDDEP:= ncurses
PKG_URL:= http://iptraf.seul.org/
PKG_SITES:= ftp://iptraf.seul.org/pub/iptraf/
-include ${TOPDIR}/mk/package.mk
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
+WRKSRC= ${WRKDIST}/src
-$(eval $(call PKG_template,IPTRAF,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+include ${ADK_TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,IPTRAF,iptraf,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
CONFIG_STYLE:= manual
-BUILD_STYLE:= manual
INSTALL_STYLE:= manual
-TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
-
-do-build:
- ${MAKE} -C ${WRKBUILD}/src \
- ${TARGET_CONFIGURE_OPTS} \
- CFLAGS="${TARGET_CFLAGS}" \
- DEBUG="" \
- INCLUDEDIR="-I../support -I${STAGING_TARGET_DIR}/usr/include" \
- LDOPTS="${TARGET_LDFLAGS}" \
- PLATFORM="-DPLATFORM=\\\"Linux/${ARCH}\\\"" \
- TARGET="/usr/bin" \
- WORKDIR="/var/lib/iptraf" \
- all
+TARGET_CPPFLAGS+= -D_GNU_SOURCE
+TARGET_LDFLAGS+= -ltinfo
+XAKE_FLAGS+= PLATFORM="-DPLATFORM=\\\"Linux/${ARCH}\\\"" \
+ TARGET="/usr/bin" \
+ WORKDIR="/var/lib/iptraf"
do-install:
${INSTALL_DIR} ${IDIR_IPTRAF}/usr/bin
- ${INSTALL_BIN} ${WRKBUILD}/src/iptraf ${IDIR_IPTRAF}/usr/bin/
+ ${INSTALL_BIN} ${WRKBUILD}/iptraf ${IDIR_IPTRAF}/usr/bin/
-include ${TOPDIR}/mk/pkg-bottom.mk
+include ${ADK_TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/iptraf/patches/patch-src_Makefile b/package/iptraf/patches/patch-src_Makefile
index c73f68411..031a96362 100644
--- a/package/iptraf/patches/patch-src_Makefile
+++ b/package/iptraf/patches/patch-src_Makefile
@@ -1,11 +1,13 @@
$Id$
---- iptraf-3.0.0.orig/src/Makefile 2005-09-13 11:11:17.000000000 +0200
-+++ iptraf-3.0.0/src/Makefile 2011-01-21 13:46:03.628658655 +0100
-@@ -18,7 +18,8 @@ VERSION = -DVERSION=\"$(VERNUMBER)\"
+--- iptraf-3.0.1.orig/src/Makefile 2005-09-13 11:11:17.000000000 +0200
++++ iptraf-3.0.1/src/Makefile 2024-02-25 18:13:10.945645560 +0100
+@@ -17,8 +17,9 @@ VERSION = -DVERSION=\"$(VERNUMBER)\"
+ #
BINDIR = ../../iptraf-$(VERNUMBER).bin.$(ARCH)
- CC = gcc
+-CC = gcc
-LIBS = -L../support -ltextbox -lpanel -lncurses # in this order!
++CC ?= gcc
+LIBS ?=
+LIBS += -ltextbox -lpanel -lncurses # in this order!
@@ -32,7 +34,17 @@ $Id$
# You can uncomment this one to disable the backspace key in input fields.
# This means you must use the Del key or Ctrl+H combination to erase the
-@@ -106,33 +109,31 @@ error.o log.o mode.o getpath.o bar.o par
+@@ -98,41 +101,39 @@ LOCKDIR = /var/run/iptraf
+ # Object file names
+
+ OBJS = iptraf.o itrafmon.o packet.o tcptable.o othptab.o ifstats.o deskman.o \
+-ipcsum.o hostmon.o fltedit.o tr.o cidr.o \
++ipcsum.o hostmon.o fltedit.o cidr.o \
+ fltselect.o ipfilter.o fltmgr.o ipfrag.o serv.o servname.o instances.o \
+-timer.o revname.o pktsize.o landesc.o isdntab.o options.o promisc.o ifaces.o \
++timer.o revname.o pktsize.o landesc.o options.o promisc.o ifaces.o \
+ error.o log.o mode.o getpath.o bar.o parseproto.o
+
BINS = iptraf rvnamed rawtime
all: $(BINS)
diff --git a/package/iptraf/patches/patch-src_hostmon_c b/package/iptraf/patches/patch-src_hostmon_c
index 0c77aad22..da8d6ff69 100644
--- a/package/iptraf/patches/patch-src_hostmon_c
+++ b/package/iptraf/patches/patch-src_hostmon_c
@@ -1,15 +1,14 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- iptraf-3.0.0.orig/src/hostmon.c 2005-09-13 08:42:54.000000000 +0200
-+++ iptraf-3.0.0/src/hostmon.c 2008-10-09 17:34:11.000000000 +0200
-@@ -30,7 +30,6 @@ details.
- #include <netinet/in.h>
- #include <linux/if_packet.h>
+--- iptraf-3.0.1.orig/src/hostmon.c 2007-09-25 11:18:56.000000000 +0200
++++ iptraf-3.0.1/src/hostmon.c 2013-03-04 11:41:08.000000000 +0100
+@@ -32,7 +32,6 @@ details.
#include <linux/if_ether.h>
--#include <linux/if_fddi.h>
- #include <linux/if_tr.h>
+ #include <linux/netdevice.h>
+ #include <linux/if_fddi.h>
+-#include <linux/if_tr.h>
#include <net/if_arp.h>
#include <stdlib.h>
-@@ -293,8 +292,6 @@ void printethent(struct ethtab *table, s
+ #include <time.h>
+@@ -294,8 +293,6 @@ void printethent(struct ethtab *table, s
wprintw(table->tabwin, "Ethernet");
else if (entry->un.desc.linktype == LINK_PLIP)
wprintw(table->tabwin, "PLIP");
@@ -18,16 +17,15 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
wprintw(table->tabwin, " HW addr: %s", entry->un.desc.ascaddr);
-@@ -722,7 +719,7 @@ void hostmon(const struct OPTIONS *optio
+@@ -723,7 +720,6 @@ void hostmon(const struct OPTIONS *optio
unsigned long long updtime_usec = 0;
struct desclist elist; /* Ethernet description list */
- struct desclist flist; /* FDDI description list */
-+ struct desclist flist; /* Other links description list */
struct desclist *list = NULL;
FILE *logfile = NULL;
-@@ -786,7 +783,6 @@ void hostmon(const struct OPTIONS *optio
+@@ -787,7 +783,6 @@ void hostmon(const struct OPTIONS *optio
initethtab(&table, options->actmode);
loaddesclist(&elist, LINK_ETHERNET, WITHETCETHERS);
@@ -35,18 +33,17 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
if (logging) {
if (strcmp(current_logfile, "") == 0) {
-@@ -900,9 +896,7 @@ void hostmon(const struct OPTIONS *optio
+@@ -901,8 +896,7 @@ void hostmon(const struct OPTIONS *optio
if (pkt_result != PACKET_OK)
continue;
- if ((linktype == LINK_ETHERNET) || (linktype == LINK_FDDI)
- || (linktype == LINK_PLIP) || (linktype == LINK_TR) ||
-- (linktype == LINK_VLAN)) {
-+ if ((linktype == LINK_ETHERNET) || (linktype == LINK_PLIP) || (linktype == LINK_TR) || (linktype == LINK_VLAN)) {
++ if ((linktype == LINK_ETHERNET) || (linktype == LINK_PLIP) ||
+ (linktype == LINK_VLAN)) {
if (fromaddr.sll_protocol == htons(ETH_P_IP))
- is_ip = 1;
-@@ -920,12 +914,6 @@ void hostmon(const struct OPTIONS *optio
+@@ -921,18 +915,6 @@ void hostmon(const struct OPTIONS *optio
memcpy(scratch_daddr, ((struct ethhdr *) buf)->h_dest,
ETH_ALEN);
list = &elist;
@@ -56,6 +53,20 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
- memcpy(scratch_daddr, ((struct fddihdr *) buf)->daddr,
- FDDI_K_ALEN);
- list = &flist;
- } else if (linktype == LINK_TR) {
- memcpy(scratch_saddr, ((struct trh_hdr *) buf)->saddr,
- TR_ALEN);
+- } else if (linktype == LINK_TR) {
+- memcpy(scratch_saddr, ((struct trh_hdr *) buf)->saddr,
+- TR_ALEN);
+- memcpy(scratch_daddr, ((struct trh_hdr *) buf)->daddr,
+- TR_ALEN);
+- list = &flist;
+ }
+
+ entry = in_ethtable(&table, linktype, scratch_saddr);
+@@ -999,7 +981,6 @@ void hostmon(const struct OPTIONS *optio
+ doupdate();
+ destroyethtab(&table);
+ destroydesclist(&elist);
+- destroydesclist(&flist);
+ unmark_facility(LANMONIDFILE, ifptr);
+ strcpy(current_logfile, "");
+ }
diff --git a/package/iptraf/patches/patch-src_ifstats_c b/package/iptraf/patches/patch-src_ifstats_c
index 555c93075..ac8f39d61 100644
--- a/package/iptraf/patches/patch-src_ifstats_c
+++ b/package/iptraf/patches/patch-src_ifstats_c
@@ -1,6 +1,6 @@
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- iptraf-3.0.0.orig/src/ifstats.c 2005-09-13 08:42:54.000000000 +0200
-+++ iptraf-3.0.0/src/ifstats.c 2009-05-21 23:05:17.000000000 +0200
+--- iptraf-3.0.1.orig/src/ifstats.c 2005-09-13 08:42:54.000000000 +0200
++++ iptraf-3.0.1/src/ifstats.c 2013-03-04 11:35:39.000000000 +0100
@@ -167,7 +167,7 @@ void initiflist(struct iflist **list)
*/
@@ -19,7 +19,7 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
(*ptmp)->index = plast->index + 1;
plast->next_entry = *ptmp;
(*ptmp)->prev_entry = plast;
-@@ -879,7 +879,7 @@ void detstats(char *iface, const struct
+@@ -879,7 +879,7 @@ void detstats(char *iface, const struct
update_panels();
doupdate();
diff --git a/package/iptraf/patches/patch-src_isdntab_c b/package/iptraf/patches/patch-src_isdntab_c
new file mode 100644
index 000000000..cec46b383
--- /dev/null
+++ b/package/iptraf/patches/patch-src_isdntab_c
@@ -0,0 +1,10 @@
+--- iptraf-3.0.1.orig/src/isdntab.c 2005-09-13 08:42:54.000000000 +0200
++++ iptraf-3.0.1/src/isdntab.c 2024-02-25 18:12:43.421645934 +0100
+@@ -20,7 +20,6 @@ details.
+ #include <stdlib.h>
+ #include <string.h>
+ #include <sys/ioctl.h>
+-#include <linux/isdn.h>
+ #include "isdntab.h"
+
+
diff --git a/package/iptraf/patches/patch-src_othptab_c b/package/iptraf/patches/patch-src_othptab_c
index e6b0a9829..3264a6c20 100644
--- a/package/iptraf/patches/patch-src_othptab_c
+++ b/package/iptraf/patches/patch-src_othptab_c
@@ -1,32 +1,14 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- iptraf-3.0.0.orig/src/othptab.c 2005-09-13 08:42:54.000000000 +0200
-+++ iptraf-3.0.0/src/othptab.c 2009-05-21 23:02:50.000000000 +0200
-@@ -17,13 +17,12 @@ details.
- ***/
-
+--- iptraf-3.0.1.orig/src/othptab.c 2007-09-25 11:47:35.000000000 +0200
++++ iptraf-3.0.1/src/othptab.c 2013-03-04 11:39:50.000000000 +0100
+@@ -20,7 +20,6 @@ details.
#include <asm/types.h>
-+#include "options.h"
-+#include "tcptable.h"
+ #include <sys/socket.h>
#include <linux/if_ether.h>
- #include <linux/if_tr.h>
--#include <linux/if_fddi.h>
+-#include <linux/if_tr.h>
+ #include <linux/netdevice.h>
+ #include <linux/if_fddi.h>
#include <winops.h>
- #include "arphdr.h"
--#include "options.h"
--#include "tcptable.h"
- #include "othptab.h"
- #include "deskman.h"
- #include "attrs.h"
-@@ -128,7 +127,7 @@ struct othptabent *add_othp_entry(struct
- *nomem = 1;
- return NULL;
- }
-- bzero(new_entry, sizeof(struct othptabent));
-+ memset(new_entry, 0, sizeof(struct othptabent));
-
- new_entry->is_ip = is_ip;
- new_entry->fragment = fragment;
-@@ -139,11 +138,6 @@ struct othptabent *add_othp_entry(struct
+@@ -142,16 +141,6 @@ struct othptabent *add_othp_entry(struct
new_entry->smacaddr);
convmacaddr(((struct ethhdr *) packet)->h_dest,
new_entry->dmacaddr);
@@ -35,10 +17,15 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
- new_entry->smacaddr);
- convmacaddr(((struct fddihdr *) packet)->daddr,
- new_entry->dmacaddr);
- } else if (linkproto == LINK_TR) {
- convmacaddr(((struct trh_hdr *) packet)->saddr,
- new_entry->smacaddr);
-@@ -373,8 +367,7 @@ void printothpentry(struct othptable *ta
+- } else if (linkproto == LINK_TR) {
+- convmacaddr(((struct trh_hdr *) packet)->saddr,
+- new_entry->smacaddr);
+- convmacaddr(((struct trh_hdr *) packet)->daddr,
+- new_entry->dmacaddr);
+ }
+ }
+
+@@ -376,8 +365,7 @@ void printothpentry(struct othptable *ta
strcat(msgstring, scratchpad);
if ((entry->linkproto == LINK_ETHERNET) ||
diff --git a/package/iptraf/patches/patch-src_packet_c b/package/iptraf/patches/patch-src_packet_c
index 1bc9b5964..87c1c1ff4 100644
--- a/package/iptraf/patches/patch-src_packet_c
+++ b/package/iptraf/patches/patch-src_packet_c
@@ -1,24 +1,38 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- iptraf-3.0.0.orig/src/packet.c 2005-09-13 08:42:54.000000000 +0200
-+++ iptraf-3.0.0/src/packet.c 2009-05-21 23:03:57.000000000 +0200
-@@ -35,7 +35,6 @@ details.
- #include <sys/ioctl.h>
- #include <linux/if_packet.h>
+--- iptraf-3.0.1.orig/src/packet.c 2007-09-25 11:21:18.000000000 +0200
++++ iptraf-3.0.1/src/packet.c 2024-02-25 18:13:41.165645150 +0100
+@@ -36,8 +36,6 @@ details.
#include <linux/if_ether.h>
--#include <linux/if_fddi.h>
- #include <linux/if_tr.h>
- #include <linux/isdn.h>
+ #include <linux/netdevice.h>
+ #include <linux/if_fddi.h>
+-#include <linux/if_tr.h>
+-#include <linux/isdn.h>
#include <linux/sockios.h>
-@@ -81,8 +80,6 @@ unsigned short getlinktype(unsigned shor
+ #include <msgboxes.h>
+ #include "deskman.h"
+@@ -107,21 +105,7 @@ unsigned short getlinktype(unsigned shor
result = LINK_ETHERNET;
- else if (strncmp(ifname, "plip", 4) == 0)
- result = LINK_PLIP;
-- else if (strncmp(ifname, "fddi", 4) == 0) /* For some Ethernet- */
-- result = LINK_ETHERNET; /* emulated FDDI ifaces */
- else if (strncmp(ifname, "dvb", 3) == 0)
+ else if (strncmp(ifname, "tap", 3) == 0)
result = LINK_ETHERNET;
- else if (strncmp(ifname, "sbni", 4) == 0)
-@@ -136,9 +133,6 @@ unsigned short getlinktype(unsigned shor
+- else if ((strncmp(ifname, "isdn", 4) == 0) && (isdn_fd != -1)) {
+- isdnent = isdn_table_lookup(isdnlist, ifname, isdn_fd);
+-
+- switch (isdnent->encap) {
+- case ISDN_NET_ENCAP_RAWIP:
+- result = LINK_ISDN_RAWIP;
+- break;
+- case ISDN_NET_ENCAP_CISCOHDLC:
+- result = LINK_ISDN_CISCOHDLC;
+- break;
+- default:
+- result = LINK_INVALID;
+- break;
+- }
+- } else if (accept_unsupported_interfaces)
++ else if (accept_unsupported_interfaces)
+ result = LINK_ETHERNET;
+ break;
+ case ARPHRD_LOOPBACK:
+@@ -136,9 +120,6 @@ unsigned short getlinktype(unsigned shor
case ARPHRD_PPP:
result = LINK_PPP;
break;
@@ -28,7 +42,7 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
case ARPHRD_IEEE802:
case ARPHRD_IEEE802_TR:
result = LINK_TR;
-@@ -194,19 +188,6 @@ void adjustpacket(char *tpacket, unsigne
+@@ -194,36 +175,6 @@ void adjustpacket(char *tpacket, unsigne
*packet = tpacket + 4;
*readlen -= 4;
break;
@@ -45,15 +59,29 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
- memmove(aligned_buf, *packet, min(SNAPSHOT_LEN, *readlen));
- *packet = aligned_buf;
- break;
- case LINK_TR:
- /*
- * Token Ring patch supplied by Tomas Dvorak
-@@ -337,7 +318,7 @@ int processpacket(char *tpacket, char **
- * Prepare ISDN reference descriptor and table.
- */
-
-- bzero(&isdntable, sizeof(struct isdntab));
-+ memset(&isdntable, 0, sizeof(struct isdntab));
- isdn_iface_check(&isdnfd, ifname);
-
- /*
+- case LINK_TR:
+- /*
+- * Token Ring patch supplied by Tomas Dvorak
+- */
+-
+- /*
+- * Get the start of the IP packet from the Token Ring frame.
+- */
+- dataoffset = get_tr_ip_offset(tpacket);
+- *packet = tpacket + dataoffset;
+- *readlen -= dataoffset;
+- /*
+- * Move IP datagram into an aligned buffer.
+- */
+- memmove(aligned_buf, *packet, min(SNAPSHOT_LEN, *readlen));
+- *packet = aligned_buf;
+- break;
+ case LINK_IPIP:
+ *packet = tpacket;
+ break;
+@@ -463,5 +414,4 @@ void pkt_cleanup(void)
+ close(isdnfd);
+ isdnfd = -1;
+ destroyfraglist();
+- destroy_isdn_table(&isdntable);
+ }
diff --git a/package/iptraf/patches/patch-src_revname_c b/package/iptraf/patches/patch-src_revname_c
index 97aae6f8c..d6b4d4d5c 100644
--- a/package/iptraf/patches/patch-src_revname_c
+++ b/package/iptraf/patches/patch-src_revname_c
@@ -1,7 +1,7 @@
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- iptraf-3.0.0.orig/src/revname.c 2005-09-13 08:42:54.000000000 +0200
-+++ iptraf-3.0.0/src/revname.c 2009-05-21 23:03:07.000000000 +0200
-@@ -164,7 +164,7 @@ int revname(int *lookup, struct in_addr
+--- iptraf-3.0.1.orig/src/revname.c 2005-09-13 08:42:54.000000000 +0200
++++ iptraf-3.0.1/src/revname.c 2013-03-04 11:35:39.000000000 +0100
+@@ -164,7 +164,7 @@ int revname(int *lookup, struct in_addr
struct timeval tv;
int sstat = 0;
diff --git a/package/iptraf/patches/patch-src_tcptable_c b/package/iptraf/patches/patch-src_tcptable_c
index 6ac96e6d1..80b74ba4f 100644
--- a/package/iptraf/patches/patch-src_tcptable_c
+++ b/package/iptraf/patches/patch-src_tcptable_c
@@ -1,6 +1,6 @@
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- iptraf-3.0.0.orig/src/tcptable.c 2005-09-13 08:42:54.000000000 +0200
-+++ iptraf-3.0.0/src/tcptable.c 2009-05-21 23:07:02.000000000 +0200
+--- iptraf-3.0.1.orig/src/tcptable.c 2005-09-13 08:42:54.000000000 +0200
++++ iptraf-3.0.1/src/tcptable.c 2013-03-04 11:38:22.000000000 +0100
@@ -17,6 +17,7 @@ details.
***/
@@ -29,7 +29,7 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
/*
* Set raw port numbers
-@@ -596,12 +597,10 @@ void updateentry(struct tcptable *table,
+@@ -596,14 +597,10 @@ void updateentry(struct tcptable *table,
tableentry->spanbr += bcount;
if (opts->mac) {
@@ -40,6 +40,8 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
convmacaddr(((struct ethhdr *) packet)->h_source, newmacaddr);
- } else if (linkproto == LINK_FDDI) {
- convmacaddr(((struct fddihdr *) packet)->saddr, newmacaddr);
- } else if (linkproto == LINK_TR) {
- convmacaddr(((struct trh_hdr *) packet)->saddr, newmacaddr);
+- } else if (linkproto == LINK_TR) {
+- convmacaddr(((struct trh_hdr *) packet)->saddr, newmacaddr);
}
+
+ if (tableentry->smacaddr[0] != '\0') {
diff --git a/package/iptraf/patches/patch-src_tcptable_h b/package/iptraf/patches/patch-src_tcptable_h
index a20d69969..f2a0d15c6 100644
--- a/package/iptraf/patches/patch-src_tcptable_h
+++ b/package/iptraf/patches/patch-src_tcptable_h
@@ -1,27 +1,10 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- iptraf-3.0.0.orig/src/tcptable.h 2005-09-13 08:42:54.000000000 +0200
-+++ iptraf-3.0.0/src/tcptable.h 2009-05-21 22:49:05.000000000 +0200
-@@ -6,7 +6,6 @@
-
- ***/
-
--#include <stdlib.h>
- #include <string.h>
- #include <unistd.h>
- #include <fcntl.h>
-@@ -14,15 +13,12 @@
- #include <panel.h>
- #include <netdb.h>
- #include <time.h>
--#include <sys/types.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- #include <arpa/inet.h>
- #include <net/if_arp.h>
--#include <asm/types.h>
- #include <linux/if_packet.h>
+--- iptraf-3.0.1.orig/src/tcptable.h 2007-09-25 11:46:03.000000000 +0200
++++ iptraf-3.0.1/src/tcptable.h 2013-03-04 11:35:47.000000000 +0100
+@@ -24,7 +24,6 @@
#include <linux/if_ether.h>
--#include <linux/if_fddi.h>
- #include <linux/if_tr.h>
- #include <net/if.h>
+ #include <linux/netdevice.h>
+ #include <linux/if_fddi.h>
+-#include <linux/if_tr.h>
+ // #include <net/if.h>
#include <netinet/ip.h>
+ #include <netinet/udp.h>
diff --git a/package/iptraf/patches/patch-src_tr_c b/package/iptraf/patches/patch-src_tr_c
index 391c26e6c..09c6b544d 100644
--- a/package/iptraf/patches/patch-src_tr_c
+++ b/package/iptraf/patches/patch-src_tr_c
@@ -1,12 +1,13 @@
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- iptraf-3.0.0.orig/src/tr.c 2005-09-13 08:42:54.000000000 +0200
-+++ iptraf-3.0.0/src/tr.c 2009-05-21 22:59:57.000000000 +0200
-@@ -6,7 +6,7 @@
+--- iptraf-3.0.1.orig/src/tr.c 2005-09-13 08:42:54.000000000 +0200
++++ iptraf-3.0.1/src/tr.c 2013-03-04 11:41:40.000000000 +0100
+@@ -6,8 +6,7 @@
* Copyright (c) Gerard Paul Java 2002
*/
-#include <asm/types.h>
+-#include <linux/if_tr.h>
+#include <sys/types.h>
- #include <linux/if_tr.h>
#include <netinet/in.h>
+ unsigned int get_tr_ip_offset(unsigned char *pkt)
diff --git a/package/iptraf/patches/patch-support_listbox_c b/package/iptraf/patches/patch-support_listbox_c
index df5521b7f..0d760507a 100644
--- a/package/iptraf/patches/patch-support_listbox_c
+++ b/package/iptraf/patches/patch-support_listbox_c
@@ -1,7 +1,7 @@
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- iptraf-3.0.0.orig/support/listbox.c 2002-07-19 18:48:11.000000000 +0200
-+++ iptraf-3.0.0/support/listbox.c 2009-05-21 23:06:00.000000000 +0200
-@@ -19,7 +19,7 @@ void tx_init_listbox(struct scroll_list
+--- iptraf-3.0.1.orig/support/listbox.c 2002-07-19 18:48:11.000000000 +0200
++++ iptraf-3.0.1/support/listbox.c 2013-03-04 11:35:39.000000000 +0100
+@@ -19,7 +19,7 @@ void tx_init_listbox(struct scroll_list
int mainattr, int borderattr, int selectattr,
int keyattr)
{