adding types
This commit is contained in:
		
							
								
								
									
										11
									
								
								src/types.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								src/types.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
 | 
			
		||||
#ifndef TYPES_H_
 | 
			
		||||
#define TYPES_H_
 | 
			
		||||
typedef uint32_t ipaddr_n_t; // IPv4 address network order
 | 
			
		||||
typedef uint32_t ipaddr_h_t; // IPv4 address host order
 | 
			
		||||
typedef uint16_t port_n_t; // port network order
 | 
			
		||||
typedef uint16_t port_h_t; // port host order
 | 
			
		||||
typedef unsigned char macaddr_t;
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
		Reference in New Issue
	
	Block a user