1 .\" This man page is Copyright (C) 1999 Andi Kleen <ak@muc.de>.
2 .\" Permission is granted to distribute possibly modified copies
3 .\" of this page provided the header is included verbatim,
4 .\" and in case of nontrivial modification author and date
5 .\" of the modification is added to the header.
6 .\" $Id: icmp.7,v 1.6 2000/08/14 08:03:45 ak Exp $
7 .TH ICMP 7 1999-04-27 "Linux Man Page" "Linux Programmer's Manual"
9 icmp, IPPROTO_ICMP \- Linux IPv4 ICMP kernel module.
11 This kernel protocol module implements the Internet Control Message Protocol
12 defined in RFC792. It is used to signal error conditions and for diagnosis.
13 The user doesn't interact directly with this module; instead it communicates
14 with the other protocols in the kernel and these pass the ICMP
15 errors to the application layers. The kernel ICMP module also
16 answers ICMP requests.
18 A user protocol may receive ICMP packets for all local sockets by opening
19 a raw socket with the protocol
24 The types of ICMP packets passed to the socket can be filtered using the
26 socket option. ICMP packets are always processed by the kernel too, even
27 when passed to a user socket.
29 Linux limits the rate of ICMP error packets to each destination.
33 are also limited by the destination route of the incoming packets.
35 ICMP supports a sysctl interface to configure some global IP parameters.
36 The sysctls can be accessed by reading or writing the
37 .B /proc/sys/net/ipv4/*
40 interface. Most of these sysctls are rate limitations for specific ICMP types.
41 Linux 2.2 uses a token bucket filter to limit ICMPs.
42 .\" XXX better description needed
43 The value is the timeout in jiffies until the token bucket filter is cleared
44 after a burst. A jiffy is a system dependent unit, usually 10ms on x86 and
45 about 1ms on alpha and IA64.
47 .B icmp_destunreach_rate
48 Maximum rate to send ICMP Destination Unreachable packets. This limits the
49 rate at which packets are sent to any individual route or destination.
50 The limit does not affect sending of
52 packets needed for path MTU discovery.
54 .B icmp_echo_ignore_all
55 If this value is non-zero, Linux will ignore all
59 .B icmp_echo_ignore_broadcasts
60 If this value is non-zero, Linux will ignore all
62 packets sent to broadcast addresses.
64 .B icmp_echoreply_rate
65 Maximum rate for sending
67 packets in response to
71 .B icmp_paramprob_rate
72 Maximum rate for sending
75 These packets are sent when a packet arrives with an invalid IP header.
77 .B icmp_timeexceed_rate
78 Maximum rate for sending
80 packets. These packets are
81 sent to prevent loops when a packet has crossed too many hops.
83 As many other implementations don't support
85 raw sockets, this feature
86 should not be relied on in portable programs.
87 .\" not really true ATM
89 .\" Linux ICMP should be compliant to RFC1122.
92 packets are not sent when Linux is not acting as a router.
93 They are also only accepted from the old gateway defined in the routing table and
94 the redirect routes are expired after some time.
96 The 64-bit timestamp returned by
98 is in milliseconds since January 1, 1970.
100 Linux ICMP internally uses a raw socket to send ICMPs. This raw socket
103 output with a zero inode.
108 request was removed in 2.2.
111 .B ICMP_SOURCE_QUENCH
112 was removed in Linux 2.2.
116 RFC792 for a description of the ICMP protocol.