From owner-freebsd-questions Fri Sep 6 03:45:43 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA16294 for questions-outgoing; Fri, 6 Sep 1996 03:45:43 -0700 (PDT) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA16287 for ; Fri, 6 Sep 1996 03:45:40 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.5/8.6.5) with SMTP id DAA06009; Fri, 6 Sep 1996 03:45:35 -0700 (PDT) Message-Id: <199609061045.DAA06009@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: Christoph Kukulies cc: freebsd-questions@freefall.freebsd.org Subject: Re: catching a ping In-reply-to: Your message of "Fri, 06 Sep 1996 12:28:52 +0200." <199609061028.MAA20524@gilberto.physik.rwth-aachen.de> From: David Greenman Reply-To: dg@root.com Date: Fri, 06 Sep 1996 03:45:35 -0700 Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> >Is there a way to test if some host is pinging me in intervals? >> >I tried systat -netstat and did a ping -c 1 and the >> >connection didn't show up (would port 7 be used in that case) >> >> Ping uses ICMP echo requests, so I don't know what you mean by "port 7". > >I meant /etc/services echo 7/tcp That's the echo port for TCP, but this has nothing at all to do with 'ping'. Ping isn't a TCP (or UDP) application...it uses the ICMP protocol and thus doesn't involve /etc/services. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project