From owner-freebsd-questions Fri Sep 6 08:15:30 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA00284 for questions-outgoing; Fri, 6 Sep 1996 08:15:30 -0700 (PDT) Received: from jack.Colorado.EDU (jack.Colorado.EDU [128.138.149.29]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA00279 for ; Fri, 6 Sep 1996 08:15:27 -0700 (PDT) Received: from jack (localhost [127.0.0.1]) by jack.Colorado.EDU (8.7.5/8.7.3/CNS-4.0p) with SMTP id JAA21728; Fri, 6 Sep 1996 09:12:18 -0600 (MDT) Message-ID: <32303F51.2047@Colorado.EDU> Date: Fri, 06 Sep 1996 09:12:17 -0600 From: "Mark O'Lear" Organization: University of Colorado X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.4 sun4m) MIME-Version: 1.0 To: Christoph Kukulies CC: dg@root.com, freebsd-questions@freefall.freebsd.org Subject: Re: catching a ping References: <199609061028.MAA20524@gilberto.physik.rwth-aachen.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Christoph Kukulies wrote: > > > >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 > > > You could use netstat -s and look at the ICMP echo requests/replies stat. > > > > -DG > > > > David Greenman > > Core-team/Principal Architect, The FreeBSD Project > > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de ICMP echo requests and "/etc/services echo 7/tcp" are two different things. Echo (tcp/udp port 7) is used to echo everything you type to it. If you telnet to port 7 on a machine that allows it, it will echo everything you type back to you. ICMP packets on the other hand don't have ports associated with them, and echo requests/replies are just one of their uses. -- Mark O'Lear \ e-mail: Mark.Olear@Colorado.EDU University of Colorado \ phone: (303) 492-3798 Telecomm. Svcs. (CB 313) \ fax: (303) 492-5105 Boulder, CO 80309 \