My Project
ethernet_packet.h
1 #ifndef ETHERNET_PACKET_H
2 #define ETHERNET_PACKET_H
3 
4 #include "ethernet_hdr.h"
5 #include <string>
6 
7 
8 using namespace std ;
15 {
16 
19  string mac2string(u_char []) ;
30 
31 public:
32 
39 
47  void setEtherDHost(u_char []) ;
48 
56  void setEtherSHost(u_char []) ;
57 
65  void setEtherType(u_short) ;
66 
74  string getEtherDHost() ;
75 
83  string getEtherSHost() ;
84 
92  u_short getEtherType() ;
93 
94 };
95 
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