In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Changes

Jump to navigation Jump to search
249 bytes added ,  14:42, 4 October 2011
add ICMP functions
Line 183: Line 183:  
| 0x30  
 
| 0x30  
 
| ICMPSocket  
 
| ICMPSocket  
 +
| int domain
 
|  
 
|  
|  
+
| returns new socket
| secret
   
|-
 
|-
 
| 0x31  
 
| 0x31  
| ICMPPing
+
| ICMPEcho
 +
| (vector 2 in 0 out) struct {int socket, u32 has_addr, u64 timeout, struct sockaddr_in addr}, u8 echodata[]
 
|  
 
|  
|  
+
| echodata is optional/[http://en.wikipedia.org/wiki/Ping#ICMP_packet size limited by MTU]
| secret
   
|-
 
|-
 
| 0x32  
 
| 0x32  
 
| ICMPCancel  
 
| ICMPCancel  
 +
| int socket
 
|  
 
|  
|  
+
| Cancels an outstanding echo request
| secret
   
|-
 
|-
 
| 0x33  
 
| 0x33  
 
| ICMPClose  
 
| ICMPClose  
 +
| int socket
 
|  
 
|  
 
|  
 
|  
| secret
   
|}
 
|}
  

Navigation menu