From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4ee823925b31cb04 X-Google-Attributes: gidfee84,public From: mogul@actitis.pa.dec.com (Jeffrey Mogul) Subject: Re: Tru64 Unix and ICMP timestamp requests Date: 2000/03/13 Message-ID: <8aja7k$6v1@usenet.pa.dec.com>#1/1 X-Deja-AN: 596936684 References: Organization: DEC Western Research Newsgroups: comp.unix.osf.osf1 In article , "Jimmy Kelley" writes: |> Is there some way to disable responses to ICMP timestamp requests in Tru64 |> UNIX v 4.0f? I checked the source code; there is indeed a way, although it takes a little explanation. There's a kernel global variable (in 4.0F; I'm not sure about earlier releases) called "icmp_rejectcodemask". This is a bit mask, where each bit corresponds to an ICMP message type code. If a bit is set, incoming messages with the corresponding type are not handled by the ICMP protocol code (although they ARE passed along to the raw-IP input code). You can set multiple bits, to disable multiple ICMP types. To disable responses to ICMP timestamp requests, for example, in C the appropriate assignment would be: icmp_rejectcodemask |= (1<