From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 12 Dec 2001 07:27:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 12 Dec 2001 07:27:39 -0500 Received: from imag.imag.fr ([129.88.30.1]:32672 "EHLO imag.imag.fr") by vger.kernel.org with ESMTP id ; Wed, 12 Dec 2001 07:27:25 -0500 Date: Wed, 12 Dec 2001 13:27:22 +0100 From: Pierre Lombard To: linux-kernel@vger.kernel.org Subject: [PATCH] small doc update for /proc/sys/net/ipv4/icmp_rate{mask,limit} Message-ID: <20011212122722.GA21997@sci41.imag.fr> Mail-Followup-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline User-Agent: Mutt/1.3.24i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, Comments in the C code are incorrect and the documentation is outdated. Attached patch is for 2.4.17-pre8 but probably applies cleanly against 2.5.x too. -- Best regards, Pierre Lombard --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="20011212-icmpmask.diff" --- linux-2.4.17-pre8~/Documentation/networking/ip-sysctl.txt Wed Dec 12 12:52:25 2001 +++ linux-2.4.17-pre8/Documentation/networking/ip-sysctl.txt Wed Dec 12 12:53:17 2001 @@ -309,13 +309,20 @@ ICMP ECHO requests sent to it or just those to broadcast/multicast addresses, respectively. -icmp_destunreach_rate - INTEGER -icmp_paramprob_rate - INTEGER -icmp_timeexceed_rate - INTEGER -icmp_echoreply_rate - INTEGER (not enabled per default) - Limit the maximal rates for sending ICMP packets to specific targets. +icmp_ratelimit - INTEGER + Limit the maximal rates for sending ICMP packets whose type matches + icmp_ratemask (see below) to specific targets. 0 to disable any limiting, otherwise the maximal rate in jiffies(1) - See the source for more information. + Default: 1 + +icmp_ratemask - INTEGER + Mask made of ICMP types for which rates are being limited. + Default: 6168 + Note: 6168 = 0x1818 = 1<