From owner-freebsd-questions Tue Sep 7 16: 7:17 1999 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 5009714E08 for ; Tue, 7 Sep 1999 16:07:11 -0700 (PDT) (envelope-from marc@oldserver.demon.nl) Received: from [212.238.105.241] (helo=interim) by post.mail.nl.demon.net with smtp (Exim 2.02 #1) id 11OUKN-0000Ue-00; Tue, 7 Sep 1999 23:07:04 +0000 Message-ID: <061f01bef985$8aacce60$0300000a@oldserver.demon.nl> From: "Marc Schneiders" To: Cc: "Rogier Wolff" Subject: MTR: "You've got a broken (FreeBSD?) system" Date: Wed, 8 Sep 1999 01:05:48 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I was advised to complain to "the FreeBSD team" by the maintainer of mtr (Matt/My Trace Route) about bad packet length in FreeBSD. Relevant portions of the mail about the problem below. Any comment? Marc Schneiders marc@oldserver.demon.nl | > Rogier Wolff wrote: | > | Marc Schneiders wrote: | > | > I installed mtr on a new FreeBSD 4.0 (current) system. Got the message | > | > mentioned in the subject. And the output is funny, not like I had it | > before | > | > om another machine running FreeBSD. Any suggestions? | > | | > | "You've got a broken (Free)bsd system" means that your OS INSISTS that | > | mtr sends bad packets. (with the length field wrong!) | > | > My goodness. Is it bad for my health? Seriously, what is this all about? | > Thought BSD was the standard for this sort of thing. | | Yep. Me too. | | The length field of the packet needs to be generated by MTR. It needs | to be in network-byte-order. So I send a packet with say 64 bytes | (0x40) and set the length field to 0x40 0x00 (I always forget the | big/little endian thingy, so maybe all of this is actually the other | way around. Forgive me...) Then BSD says: "He's sending a packet with | 64 bytes, but sets the lenght to 16K (0x4000). That's not OK." and | returns error. When I set the lenght to 16K (0x4000) (0x00 0x40 in | bytes), BSD suddenly accepts the packet. | | Instead of returning errors, Digital Unix just crashes. Kernel crash. | Go figure. | | Oh, the printf may mess up your screen. It is supposed to annoy | you. (Is it working? ;-) You should complain to your OS vendor(read that | word liberally) about this. Delete the "printf" line from the source, | or change the BSD_BUG =0 line near the top of "net.c" to bsd_bug=1; | But first complain to the freebsd team.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message