1 #ifndef ETHERNET_PACKET_H
2 #define ETHERNET_PACKET_H
4 #include "ethernet_hdr.h"
19 string mac2string(u_char []) ;
47 void setEtherDHost(u_char []) ;
56 void setEtherSHost(u_char []) ;
65 void setEtherType(u_short) ;
74 string getEtherDHost() ;
83 string getEtherSHost() ;
92 u_short getEtherType() ;
96 #endif // ETHERNET_PACKET_H
The ethernet_packet class contains function to change the ethernet information in bytes from the ethe...
Definition: ethernet_packet.h:14
The sniff_ethernet struct defines the header of an ethernet frame, and is used to parse the packet re...
Definition: ethernet_hdr.h:17
sniff_ethernet ethernet
Definition: ethernet_packet.h:17