summaryrefslogtreecommitdiff
path: root/iftop.c
diff options
context:
space:
mode:
authorpdw <>2002-10-10 15:55:59 +0000
committerpdw <>2002-10-10 15:55:59 +0000
commit3dcbe7a6c18037b53c98414aa12e97f0ce5d5414 (patch)
tree6e8119da311e5427be86fb21c25d9914b4e906b6 /iftop.c
parent6da4be8a352ab7f680239e51b7fd52bbe311d14d (diff)
downloadiftop-3dcbe7a6c18037b53c98414aa12e97f0ce5d5414.zip
Updated SPEC file.
Updated to version 0.8pre1. Now compiles with older libpcap (without SLL support). Further fixes to display of rates.
Diffstat (limited to 'iftop.c')
-rw-r--r--iftop.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/iftop.c b/iftop.c
index 921bb6b..10a71ed 100644
--- a/iftop.c
+++ b/iftop.c
@@ -346,9 +346,14 @@ void packet_init() {
else if(dlt == DLT_RAW) {
packet_handler = handle_raw_packet;
}
+/*
+ * SLL support not available in older libpcaps
+ */
+#ifdef DLT_LINUX_SLL
else if(dlt == DLT_LINUX_SLL) {
- packet_handler = handle_cooked_packet;
+ packet_handler = handle_cooked_packet;
}
+#endif
else {
fprintf(stderr, "Unsupported datalink type: %d\n"
"Please email pdw@ex-parrot.com, quoting the datalink type and what you were\n"