ethernet_packet.h
#ifndef ETHERNET_PACKET_H
#define ETHERNET_PACKET_H
#include "ethernet_hdr.h"
#include <string>
using namespace std ;
class ethernet_packet
{
sniff_ethernet ethernet ;
string mac2string(u_char []) ;
public:
ethernet_packet();
void setEtherDHost(u_char []) ;
void setEtherSHost(u_char []) ;
void setEtherType(u_short) ;
string getEtherDHost() ;
string getEtherSHost() ;
u_short getEtherType() ;
};
#endif // ETHERNET_PACKET_H
ethernet_packet
The ethernet_packet class contains function to change the ethernet information in bytes from the ethe...
Definition: ethernet_packet.h:14
sniff_ethernet
The sniff_ethernet struct defines the header of an ethernet frame, and is used to parse the packet re...
Definition: ethernet_hdr.h:17
std
ethernet_packet::ethernet
sniff_ethernet ethernet
Definition: ethernet_packet.h:17