summaryrefslogtreecommitdiff
path: root/iftop.c
diff options
context:
space:
mode:
authorchris <>2002-10-21 10:31:39 +0000
committerchris <>2002-10-21 10:31:39 +0000
commitc280b1f728edcb239f18ac0d2b23c684cf37afe6 (patch)
tree3985c6e16eedafb944a6d7599ce50a88fe1d1a05 /iftop.c
parent5ef015aea21fcbf741d43f39fb1a85a00b536689 (diff)
downloadiftop-c280b1f728edcb239f18ac0d2b23c684cf37afe6.zip
""
Diffstat (limited to 'iftop.c')
-rw-r--r--iftop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/iftop.c b/iftop.c
index cc52bda..03e857d 100644
--- a/iftop.c
+++ b/iftop.c
@@ -23,7 +23,9 @@
#include "resolver.h"
#include "ui.h"
#include "options.h"
+#ifdef DLT_LINUX_SLL
#include "sll.h"
+#endif /* DLT_LINUX_SLL */
#include "threadprof.h"
#include "ether.h"
#include "ip.h"
@@ -253,6 +255,7 @@ static void handle_raw_packet(unsigned char* args, const struct pcap_pkthdr* pkt
handle_ip_packet((struct ip*)packet, -1);
}
+#ifdef DLT_LINUX_SLL
static void handle_cooked_packet(unsigned char *args, const struct pcap_pkthdr * thdr, const unsigned char * packet)
{
struct sll_header *sptr;
@@ -272,6 +275,7 @@ static void handle_cooked_packet(unsigned char *args, const struct pcap_pkthdr *
}
handle_ip_packet((struct ip*)(packet+SLL_HDR_LEN), dir);
}
+#endif /* DLT_LINUX_SLL */
static void handle_eth_packet(unsigned char* args, const struct pcap_pkthdr* pkthdr, const unsigned char* packet)
{