Added basic packet-structure
This commit is contained in:
		
							parent
							
								
									3f7c92ba7e
								
							
						
					
					
						commit
						b8b2bb7202
					
				
							
								
								
									
										19
									
								
								DTO/packet.hpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								DTO/packet.hpp
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,19 @@
 | 
				
			|||||||
 | 
					#ifndef C42FA9F6_8CF3_453F_8FA0_918E543DCD59
 | 
				
			||||||
 | 
					#define C42FA9F6_8CF3_453F_8FA0_918E543DCD59
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <time.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					struct Packet {
 | 
				
			||||||
 | 
					    time_t timestamp;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    char srcMac[17];
 | 
				
			||||||
 | 
					    char dstMac[17];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    unsigned int size;
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    char signal;
 | 
				
			||||||
 | 
					    unsigned int frequency;
 | 
				
			||||||
 | 
					    unsigned char linkSpeed;
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif /* C42FA9F6_8CF3_453F_8FA0_918E543DCD59 */
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user