Date: Wed, 15 Apr 1998 22:38:24 +0300 (EEST) From: Andrew Stesin <stesin@gu.net> To: hackers@FreeBSD.ORG Subject: FreeBSD and Linux "raw" sockets different? Message-ID: <Pine.BSF.3.96.980415223207.21015E-100000@beast.gu.net>
next in thread | raw e-mail | index | archive | help
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 <mkimball@xmission.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980415223207.21015E-100000>