Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mogul@actitis.pa.dec.com (Jeffrey Mogul)
Subject: Re: Tru64 Unix and ICMP timestamp requests
Date: 2000/03/13	[thread overview]
Message-ID: <8aja7k$6v1@usenet.pa.dec.com> (raw)
In-Reply-To: V3cy4.16878$ys3.106419@telenews.teleline.es

In article <V3cy4.16878$ys3.106419@telenews.teleline.es>, "Jimmy Kelley" <jimmy@federated.com> 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<<ICMP_TSTAMP);

Looking in /usr/include/netinet/ip_icmp.h, we find

   #define ICMP_TSTAMP             13              /* timestamp request */

and (1<<13) = 8192.  So, to disable responses to ICMP_TIMESTAMP,
you would set icmp_rejectcodemask = 8192.

Currently, the only way to change this variable (so far as I know)
is via dbx; instructions are at
	http://www.unix.digital.com/internet/tuning.htm#mod_atts

I was told by the kernel engineers that "we are adding this to the
on-line internet server tuning guide for the next revision.  It
keeps coming up lately."

-Jeff




      reply	other threads:[~2000-03-13  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-10  5:00 Tru64 Unix and ICMP timestamp requests Jimmy Kelley
2000-03-13  5:00 ` Jeffrey Mogul [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox