From owner-freebsd-hackers Wed Apr 15 12:47:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA22072 for freebsd-hackers-outgoing; Wed, 15 Apr 1998 12:47:05 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from beast.gu.net (beast-fxp0.gu.net [194.93.191.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA22036 for ; Wed, 15 Apr 1998 19:46:43 GMT (envelope-from stesin@gu.net) Received: from localhost (localhost [127.0.0.1]) by beast.gu.net (8.8.8/8.8.8) with SMTP id WAA22023 for ; Wed, 15 Apr 1998 22:38:24 +0300 (EEST) (envelope-from stesin@gu.net) Date: Wed, 15 Apr 1998 22:38:24 +0300 (EEST) From: Andrew Stesin Reply-To: stesin@gu.net To: hackers@FreeBSD.ORG Subject: FreeBSD and Linux "raw" sockets different? Message-ID: X-NCC-RegID: ua.gu MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I'm trying to port a useful network diag tool to FreeBSD-2.2.x, `mtr' (see http://www.mkimball.org/mtr.html). mtr-0.17 works fine on my collegue's Linux where I saw it today. Got a problem due to some differences between the ways how Linux and FreeBSD "raw" sockets work. Here is what the `mtr' author responded to my question; anyone cares to help me finding the difference and making a port? Thanks! Best regards, Andrew Stesin nic-hdl: ST73-RIPE ---------- Forwarded message ---------- Date: Wed, 15 Apr 1998 13:48:09 -0700 From: Matt Kimball To: stesin@gu.net Cc: mtr@lists.xmission.com Subject: mtr and FreeBSD On Wed, Apr 15, 1998 at 01:07:01PM -0600, stesin@gu.net wrote: > The tool is really nice (had a look at it on Linux). > I compiled it today on FreeBSD 2.2-970907-RELENG (pre-2.2.6) system. > > configures -- fine, clean. compiles -- fine, clean. > > When launched -- always silent, no matter interactive or not. > > It turned out that on FreeBSD-2.2.x something differs from Linux > (where mtr works fine) -- when compiled and launched on Linux > system, mtr sends nice ICMP packets as was intended. > > When on FreeBSD -- it sends RAW packets (?! IPPROTO_ICMP doesn't > work in net.c ?) here is what tcpdump said me: > > 21:26:05.760206 194.93.171.9 > 194.93.190.226: ip-proto-255 44 This is a known problem. I got the same results under FreeBSD, when I tried it. So far, I haven't been able to find either documentation about using raw sockets under FreeBSD or a FreeBSD networking guru to tell me what I am doing wrong. Matt Kimball mkimball@xmission.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message