From owner-freebsd-bugs Tue Aug 29 1:10: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0BDA937B43C for ; Tue, 29 Aug 2000 01:10:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id BAA17434; Tue, 29 Aug 2000 01:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Tue, 29 Aug 2000 01:10:02 -0700 (PDT) Message-Id: <200008290810.BAA17434@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ruslan Ermilov Subject: Re: kern/20877: ICMP error msg on UDP port unreachable is incorrect Reply-To: Ruslan Ermilov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/20877; it has been noted by GNATS. From: Ruslan Ermilov To: Frank Volf Cc: bug-followup@FreeBSD.org, Garrett Wollman , Sheldon Hearn Subject: Re: kern/20877: ICMP error msg on UDP port unreachable is incorrect Date: Tue, 29 Aug 2000 10:49:06 +0300 On Tue, Aug 29, 2000 at 01:03:44AM +0200, Frank Volf wrote: > > Ruslan, > > I verified your patch, and it seems to work for udp based traceroutes. > I do have two questions though: > > 1) You might have broken ipfw, ipfilter and possibly other packet filtering > systems that are called in ip_input(); if they use icmp_error() and they > did the right thing (fixing ip_id e.a) then they do now the wrong thing > :-) > No they do not "fix" it, and so they were broken as well. It could be checked by putting the following ipfw(8) rule: ipfw add 10 unreach host ip from foo to bar > 2) I do not understand why you remove HTONS(ip->ip_id) from ip_forward(). > I have the feeling, without being able to pin point it, that you have > broken something: because now you change the ip_id for every ip packet > that goes through ip_forward()! If this was not broken before it must > be broken now (or I must get some sleep....). > Because HTONS(ip->ip_id) has migrated to icmp_error() where it should be. Try `traceroute -m1 1.2.3.4' via FreeBSD router from one-hop-away host. BTW NetBSD had this bug fixed since January 1999 in a similar fashion. -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message