diff options
Diffstat (limited to 'src/include/ipxe')
| -rw-r--r-- | src/include/ipxe/errfile.h | 1 | ||||
| -rw-r--r-- | src/include/ipxe/socket.h | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h index 376f88c2a..ad88e91f8 100644 --- a/src/include/ipxe/errfile.h +++ b/src/include/ipxe/errfile.h @@ -217,6 +217,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #define ERRFILE_neighbour ( ERRFILE_NET | 0x00370000 ) #define ERRFILE_socket ( ERRFILE_NET | 0x00380000 ) #define ERRFILE_icmp ( ERRFILE_NET | 0x00390000 ) +#define ERRFILE_ping ( ERRFILE_NET | 0x003a0000 ) #define ERRFILE_image ( ERRFILE_IMAGE | 0x00000000 ) #define ERRFILE_elf ( ERRFILE_IMAGE | 0x00010000 ) diff --git a/src/include/ipxe/socket.h b/src/include/ipxe/socket.h index 48d7ae1a8..d4cde2efd 100644 --- a/src/include/ipxe/socket.h +++ b/src/include/ipxe/socket.h @@ -28,6 +28,11 @@ extern int udp_sock_dgram; #define UDP_SOCK_DGRAM 0x2 #define SOCK_DGRAM udp_sock_dgram +/** Echo testing streams */ +extern int ping_sock_echo; +#define PING_SOCK_ECHO 0x3 +#define SOCK_ECHO ping_sock_echo + /** @} */ /** @@ -43,6 +48,8 @@ socket_semantics_name ( int semantics ) { return "SOCK_STREAM"; } else if ( semantics == SOCK_DGRAM ) { return "SOCK_DGRAM"; + } else if ( semantics == SOCK_ECHO ) { + return "SOCK_ECHO"; } else { return "SOCK_UNKNOWN"; } @@ -69,6 +76,7 @@ socket_family_name ( int family ) { switch ( family ) { case AF_INET: return "AF_INET"; case AF_INET6: return "AF_INET6"; + case AF_FC: return "AF_FC"; default: return "AF_UNKNOWN"; } } |
