*BSD News Article 89784


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!uunet!in2.uu.net!139.85.52.101!hnssysb.hns.com!usenet
From: "Kapil Chowksey (Jaeger)" <kchowksey@hss.hns.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: socket(AF_INET,SOCK_RAW,IPPROTO_ICMP) ???
Date: Fri, 21 Feb 1997 12:07:44 +0000
Organization: Hughes Software Systems
Lines: 20
Message-ID: <330D9010.F065BD4@hss.hns.com>
NNTP-Posting-Host: valhalla.hss.hns.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0 (X11; I; Linux 1.1.59 i486)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35862

hi,

Like almost half the world, I'm trying to read ICMP pkts from a
FreeBSD2.1.6-RELEASE box; I'm doing

socket(AF_INET, SOCK_RAW, IPPROTO_ICMP)

then I do recvfrom's.

The result is that I can read *all* ICMP pkt types (ECHO_RESPONSE,
TIME_EXCEEDED etc.etc.) _except_ for ICMP_ECHO (echo request)

can someone point me what changes to make to the kernel to read 'em all
properly ?

(yeah, yeah we oughtta use libpcap.)

--
Kapil Chowksey
kchowksey@hss.hns.com