diff options
author | chris <> | 2002-10-21 10:31:39 +0000 |
---|---|---|
committer | chris <> | 2002-10-21 10:31:39 +0000 |
commit | c280b1f728edcb239f18ac0d2b23c684cf37afe6 (patch) | |
tree | 3985c6e16eedafb944a6d7599ce50a88fe1d1a05 /iftop.c | |
parent | 5ef015aea21fcbf741d43f39fb1a85a00b536689 (diff) | |
download | iftop-c280b1f728edcb239f18ac0d2b23c684cf37afe6.zip |
""
Diffstat (limited to 'iftop.c')
-rw-r--r-- | iftop.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) { |