Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: icmp.h
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* INET An implementation of the TCP/IP protocol suite for the LINUX
[2] Fix | Delete
* operating system. INET is implemented using the BSD Socket
[3] Fix | Delete
* interface as the means of communication with the user level.
[4] Fix | Delete
*
[5] Fix | Delete
* Definitions for the ICMP protocol.
[6] Fix | Delete
*
[7] Fix | Delete
* Version: @(#)icmp.h 1.0.3 04/28/93
[8] Fix | Delete
*
[9] Fix | Delete
* Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
[10] Fix | Delete
*
[11] Fix | Delete
* This program is free software; you can redistribute it and/or
[12] Fix | Delete
* modify it under the terms of the GNU General Public License
[13] Fix | Delete
* as published by the Free Software Foundation; either version
[14] Fix | Delete
* 2 of the License, or (at your option) any later version.
[15] Fix | Delete
*/
[16] Fix | Delete
#ifndef _LINUX_ICMP_H
[17] Fix | Delete
#define _LINUX_ICMP_H
[18] Fix | Delete
[19] Fix | Delete
#include <linux/types.h>
[20] Fix | Delete
[21] Fix | Delete
#define ICMP_ECHOREPLY 0 /* Echo Reply */
[22] Fix | Delete
#define ICMP_DEST_UNREACH 3 /* Destination Unreachable */
[23] Fix | Delete
#define ICMP_SOURCE_QUENCH 4 /* Source Quench */
[24] Fix | Delete
#define ICMP_REDIRECT 5 /* Redirect (change route) */
[25] Fix | Delete
#define ICMP_ECHO 8 /* Echo Request */
[26] Fix | Delete
#define ICMP_TIME_EXCEEDED 11 /* Time Exceeded */
[27] Fix | Delete
#define ICMP_PARAMETERPROB 12 /* Parameter Problem */
[28] Fix | Delete
#define ICMP_TIMESTAMP 13 /* Timestamp Request */
[29] Fix | Delete
#define ICMP_TIMESTAMPREPLY 14 /* Timestamp Reply */
[30] Fix | Delete
#define ICMP_INFO_REQUEST 15 /* Information Request */
[31] Fix | Delete
#define ICMP_INFO_REPLY 16 /* Information Reply */
[32] Fix | Delete
#define ICMP_ADDRESS 17 /* Address Mask Request */
[33] Fix | Delete
#define ICMP_ADDRESSREPLY 18 /* Address Mask Reply */
[34] Fix | Delete
#define NR_ICMP_TYPES 18
[35] Fix | Delete
[36] Fix | Delete
[37] Fix | Delete
/* Codes for UNREACH. */
[38] Fix | Delete
#define ICMP_NET_UNREACH 0 /* Network Unreachable */
[39] Fix | Delete
#define ICMP_HOST_UNREACH 1 /* Host Unreachable */
[40] Fix | Delete
#define ICMP_PROT_UNREACH 2 /* Protocol Unreachable */
[41] Fix | Delete
#define ICMP_PORT_UNREACH 3 /* Port Unreachable */
[42] Fix | Delete
#define ICMP_FRAG_NEEDED 4 /* Fragmentation Needed/DF set */
[43] Fix | Delete
#define ICMP_SR_FAILED 5 /* Source Route failed */
[44] Fix | Delete
#define ICMP_NET_UNKNOWN 6
[45] Fix | Delete
#define ICMP_HOST_UNKNOWN 7
[46] Fix | Delete
#define ICMP_HOST_ISOLATED 8
[47] Fix | Delete
#define ICMP_NET_ANO 9
[48] Fix | Delete
#define ICMP_HOST_ANO 10
[49] Fix | Delete
#define ICMP_NET_UNR_TOS 11
[50] Fix | Delete
#define ICMP_HOST_UNR_TOS 12
[51] Fix | Delete
#define ICMP_PKT_FILTERED 13 /* Packet filtered */
[52] Fix | Delete
#define ICMP_PREC_VIOLATION 14 /* Precedence violation */
[53] Fix | Delete
#define ICMP_PREC_CUTOFF 15 /* Precedence cut off */
[54] Fix | Delete
#define NR_ICMP_UNREACH 15 /* instead of hardcoding immediate value */
[55] Fix | Delete
[56] Fix | Delete
/* Codes for REDIRECT. */
[57] Fix | Delete
#define ICMP_REDIR_NET 0 /* Redirect Net */
[58] Fix | Delete
#define ICMP_REDIR_HOST 1 /* Redirect Host */
[59] Fix | Delete
#define ICMP_REDIR_NETTOS 2 /* Redirect Net for TOS */
[60] Fix | Delete
#define ICMP_REDIR_HOSTTOS 3 /* Redirect Host for TOS */
[61] Fix | Delete
[62] Fix | Delete
/* Codes for TIME_EXCEEDED. */
[63] Fix | Delete
#define ICMP_EXC_TTL 0 /* TTL count exceeded */
[64] Fix | Delete
#define ICMP_EXC_FRAGTIME 1 /* Fragment Reass time exceeded */
[65] Fix | Delete
[66] Fix | Delete
[67] Fix | Delete
struct icmphdr {
[68] Fix | Delete
__u8 type;
[69] Fix | Delete
__u8 code;
[70] Fix | Delete
__sum16 checksum;
[71] Fix | Delete
union {
[72] Fix | Delete
struct {
[73] Fix | Delete
__be16 id;
[74] Fix | Delete
__be16 sequence;
[75] Fix | Delete
} echo;
[76] Fix | Delete
__be32 gateway;
[77] Fix | Delete
struct {
[78] Fix | Delete
__be16 __unused;
[79] Fix | Delete
__be16 mtu;
[80] Fix | Delete
} frag;
[81] Fix | Delete
__u8 reserved[4];
[82] Fix | Delete
} un;
[83] Fix | Delete
};
[84] Fix | Delete
[85] Fix | Delete
[86] Fix | Delete
/*
[87] Fix | Delete
* constants for (set|get)sockopt
[88] Fix | Delete
*/
[89] Fix | Delete
[90] Fix | Delete
#define ICMP_FILTER 1
[91] Fix | Delete
[92] Fix | Delete
struct icmp_filter {
[93] Fix | Delete
__u32 data;
[94] Fix | Delete
};
[95] Fix | Delete
[96] Fix | Delete
[97] Fix | Delete
#endif /* _LINUX_ICMP_H */
[98] Fix | Delete
[99] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function