4 #include "ethernet_packet.h"
5 #include <netinet/in.h>
42 void setIPSAddress(
string) ;
51 void setIPDAddress(
string) ;
60 void setIPProto(
char) ;
69 void setIPSPort(
unsigned short) ;
78 void setIPDPort(
unsigned short) ;
89 void setPayload(
char *,
int) ;
98 string getIPSAddress() ;
107 string getIPDAddress() ;
116 string getPayload() ;
134 unsigned short getIPSPort() ;
143 unsigned short getIPDPort() ;
146 #endif // IP_PACKET_H
The ethernet_packet class contains function to change the ethernet information in bytes from the ethe...
Definition: ethernet_packet.h:14
string ip_dst
Definition: ip_packet.h:20
The ip_packet class contains the information extracted from a packet received using pcap for packets ...
Definition: ip_packet.h:18
unsigned short s_port
Definition: ip_packet.h:23
char ip_p
Definition: ip_packet.h:21
string payload
Definition: ip_packet.h:24
unsigned short d_port
Definition: ip_packet.h:22