wild stab at supporting PPP ('Linux cooked capture') packets..

This commit is contained in:
Arnout Engelen
2004-09-02 16:10:25 +00:00
parent 19f633f2d4
commit 8697bf01a1
5 changed files with 71 additions and 36 deletions

View File

@@ -7,6 +7,7 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "nethogs.h"
extern "C"
{
@@ -54,6 +55,6 @@ private:
short int sa_family;
};
Packet * getPacket (const struct pcap_pkthdr * header, const u_char * packet);
Packet * getPacket (const struct pcap_pkthdr * header, const u_char * packet, packet_type packettype);
#endif