""
This commit is contained in:
4
iftop.c
4
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user