/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Definitions for the ICMP protocol. * * Version: @(#)icmp.h 1.0.3 04/28/93 * * Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version.
*/ #ifndef _UAPI_LINUX_ICMP_H #define _UAPI_LINUX_ICMP_H
/* Codes for REDIRECT. */ #define ICMP_REDIR_NET 0/* Redirect Net */ #define ICMP_REDIR_HOST 1/* Redirect Host */ #define ICMP_REDIR_NETTOS 2/* Redirect Net for TOS */ #define ICMP_REDIR_HOSTTOS 3/* Redirect Host for TOS */
/* Codes for TIME_EXCEEDED. */ #define ICMP_EXC_TTL 0/* TTL count exceeded */ #define ICMP_EXC_FRAGTIME 1/* Fragment Reass time exceeded */
/* Codes for EXT_ECHO (PROBE) */ #define ICMP_EXT_ECHO 42 #define ICMP_EXT_ECHOREPLY 43 #define ICMP_EXT_CODE_MAL_QUERY 1/* Malformed Query */ #define ICMP_EXT_CODE_NO_IF 2/* No such Interface */ #define ICMP_EXT_CODE_NO_TABLE_ENT 3/* No such Table Entry */ #define ICMP_EXT_CODE_MULT_IFS 4/* Multiple Interfaces Satisfy Query */
/* Constants for EXT_ECHO (PROBE) */ #define ICMP_EXT_ECHOREPLY_ACTIVE (1 << 2)/* active bit in reply message */ #define ICMP_EXT_ECHOREPLY_IPV4 (1 << 1)/* ipv4 bit in reply message */ #define ICMP_EXT_ECHOREPLY_IPV6 1/* ipv6 bit in reply message */ #define ICMP_EXT_ECHO_CTYPE_NAME 1 #define ICMP_EXT_ECHO_CTYPE_INDEX 2 #define ICMP_EXT_ECHO_CTYPE_ADDR 3 #define ICMP_AFI_IP 1/* Address Family Identifier for ipv4 */ #define ICMP_AFI_IP6 2/* Address Family Identifier for ipv6 */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.