From nobody@FreeBSD.org  Thu Feb  7 18:00:16 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0C73416A41A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Feb 2008 18:00:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id EB14613C465
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Feb 2008 18:00:15 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m17HwAas076905
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 7 Feb 2008 17:58:10 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m17HwARL076904;
	Thu, 7 Feb 2008 17:58:10 GMT
	(envelope-from nobody)
Message-Id: <200802071758.m17HwARL076904@www.freebsd.org>
Date: Thu, 7 Feb 2008 17:58:10 GMT
From: Ilya <admin@kiber-zona.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Problem in route
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         120361
>Category:       misc
>Synopsis:       Problem in route
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 07 18:10:00 UTC 2008
>Closed-Date:    Thu Feb 07 20:47:28 UTC 2008
>Last-Modified:  Thu Feb 07 20:47:28 UTC 2008
>Originator:     Ilya
>Release:        FreeBSD 6.2-RELEASE-p10
>Organization:
KZ TeaM
>Environment:
FreeBSD serv1.aivus.org.ua 6.2-RELEASE-p10 FreeBSD 6.2-RELEASE-p10 #0: Wed Jan 16 14:37:09 UTC 2008     root@serv1.aivus.org.ua:/usr/src/sys/i386/compile/KERNEL  i386
>Description:
Hello! Sorry for my English. At input of an erroneous command "route add -net 192.168.36.0 255.255.0.0 10.1.1.1
" in a conclusion "netstat -rn " it turns out " 0*0xa010101 255.255.0.0 UGS 0 0 lnc0 => " and to remove it it is impossible.

root@/root>netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
0&0xa010101        255.255.0.0        UGS         0        0   lnc0 =>
default            192.168.36.2       UGS         1     4150   lnc0
10.1.1/24          10.1.1.1           UGS         0        0   tun0
10.1.1.1           10.1.1.2           UH          1        0   tun0
127.0.0.1          127.0.0.1          UH          0       10    lo0
192.168.36         link#1             UC          0        0   lnc0
192.168.36.1       00:50:56:c0:00:01  UHLW        1   104474   lnc0   1199
192.168.36.2       00:50:56:f9:a6:5c  UHLW        2     3738   lnc0   1122

Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#3                        UHL         lo0
ff01:3::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0
root@/root>route delete "0&0xa010101"
route: bad address: 0&0xa010101
root@/root>

>How-To-Repeat:
In Full Description
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Thu Feb 7 20:45:25 UTC 2008 
State-Changed-Why:  
0&0xa010101 means "network 0" and netmask "10.1.1.1"; 
the format like this is for non-contiguous masks. 

To delete, 
route delete -net 0 -netmask 10.1.1.1 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120361 
>Unformatted:
