mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:52:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			307 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			307 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <bits/stdint.h>
 | |
| #include <sys/cdefs.h>
 | |
| 
 | |
| __BEGIN_DECLS
 | |
| 
 | |
| struct icmphdr {
 | |
|     uint8_t type;
 | |
|     uint8_t code;
 | |
|     uint16_t checksum;
 | |
|     union {
 | |
|         struct {
 | |
|             uint16_t id;
 | |
|             uint16_t sequence;
 | |
|         } echo;
 | |
|         uint32_t gateway;
 | |
|     } un;
 | |
| };
 | |
| 
 | |
| __END_DECLS
 | 
