From owner-freebsd-bugs@FreeBSD.ORG Wed May 28 08:50:14 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 445F437B401 for ; Wed, 28 May 2003 08:50:14 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 212B343FA3 for ; Wed, 28 May 2003 08:50:13 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4SFoCUp094478 for ; Wed, 28 May 2003 08:50:12 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4SFoCAd094477; Wed, 28 May 2003 08:50:12 -0700 (PDT) Resent-Date: Wed, 28 May 2003 08:50:12 -0700 (PDT) Resent-Message-Id: <200305281550.h4SFoCAd094477@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eric AUGE Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6475937B401 for ; Wed, 28 May 2003 08:47:52 -0700 (PDT) Received: from eauge.fr.cw.net (eauge.fr.cw.net [62.4.0.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DFD443FBD for ; Wed, 28 May 2003 08:47:51 -0700 (PDT) (envelope-from eau@eauge.fr.cw.net) Received: (from eau@localhost) by eauge.fr.cw.net (8.12.6p2/8.12.6/Submit) id h4SFix5h000784; Wed, 28 May 2003 17:44:59 +0200 (CEST) (envelope-from eau) Message-Id: <200305281544.h4SFix5h000784@eauge.fr.cw.net> Date: Wed, 28 May 2003 17:44:59 +0200 (CEST) From: Eric AUGE To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/52758: bogus default IP route (netstat -rn/route add) handling/display. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Eric AUGE List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2003 15:50:14 -0000 >Number: 52758 >Category: bin >Synopsis: bogus default IP route (netstat -rn/route add) handling/display. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 28 08:50:12 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Eric AUGE >Release: FreeBSD 5.0-RELEASE-p7 i386 >Organization: no >Environment: System: FreeBSD eauge.fr.cw.net 5.0-RELEASE-p7 FreeBSD 5.0-RELEASE-p7 #2: Mon Mar 31 15:41:21 CEST 2003 root@eauge.fr.cw.net:/usr/obj/usr/src/sys/EAUGE-5 i386 CPU: Pentium III/Pentium III Xeon/Celeron (701.59-MHz 686-class CPU) >Description: First i add IP default bogus routes by giving a bad netmask value (i assume it's netmask according to man (8) route) root@eauge ~ # route add default 200.200.200.200 10.10.10.10 add net default: gateway 200.200.200.200 root@eauge ~ # route add default 127.0.0.45 62.4.8.9 10.0.0.0 ... ... root@eauge ~ # route add default 127.0.0.3 62.4.1.125 ... After Adding looking at the IP routes show strange entries, and everything still works correctly, this work with local and remote bogus addresses, then some hosts (cvsup2.fr.freebsd.org) just doesn't work with standards errors and then works again, etc... root@eauge ~ # netstat -rn -f inet Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 0&0xa0a0a0a 200.200.200.200 UGSc 0 0 lo0 => 0&0x3e040809 127.0.0.45 UGSc 0 0 lo0 => 0&0x3e04017d 127.0.0.3 UGSc 0 0 lo0 => 0&0xffffff18 127.0.0.3 UGSc 0 0 lo0 => 0&0x64646464 127.0.0.2 UGSc 0 0 lo0 => 0&0x3e0403fe 127.0.0.2 UGSc 0 0 lo0 => 0&0x3e0402fe 127.0.0.1 UGSc 0 0 lo0 => 0&0x1010101 127.0.0.2 UGSc 2 0 lo0 => 0&0xa000000 127.0.0.3 UGSc 0 0 lo0 => default 62.4.1.254 UGSc 16 393 fxp0 62.4/23 link#1 UC 2 0 fxp0 62.4.0.126 127.0.0.1 UGHS 0 0 lo0 62.4.0.254 00:03:6b:c0:e8:80 UHLW 0 0 fxp0 433 62.4.1.254 00:03:6b:c0:e8:80 UHLW 7 0 fxp0 981 127.0.0.1 127.0.0.1 UH 2 216 lo0 >How-To-Repeat: Just insert bogus routes, using the commands above to see. >Fix: No fix yet, working on a patch. >Release-Note: >Audit-Trail: >Unformatted: