From andrey.zverev@electro-com.ru  Thu Apr  3 09:35:41 2008
Return-Path: <andrey.zverev@electro-com.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 53BED1065672
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  3 Apr 2008 09:35:41 +0000 (UTC)
	(envelope-from andrey.zverev@electro-com.ru)
Received: from mail.electro-com.ru (mail.electro-com.ru [86.110.161.242])
	by mx1.freebsd.org (Postfix) with ESMTP id 1CCB28FC20
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  3 Apr 2008 09:35:41 +0000 (UTC)
	(envelope-from andrey.zverev@electro-com.ru)
Received: from az by mail.electro-com.ru with local (Exim 4.66 (FreeBSD))
	(envelope-from <andrey.zverev@electro-com.ru>)
	id 1JhLhJ-000I5p-0R
	for FreeBSD-gnats-submit@freebsd.org; Thu, 03 Apr 2008 13:25:29 +0400
Message-Id: <E1JhLhJ-000I5p-0R@mail.electro-com.ru>
Date: Thu, 03 Apr 2008 13:25:29 +0400
From: Andrej Zverev <andrey.zverev@electro-com.ru>
Sender: Andrej Zverev <andrey.zverev@electro-com.ru>
Reply-To: Andrej Zverev <andrey.zverev@electro-com.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] type in sbin/route/route.c
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         122403
>Category:       bin
>Synopsis:       [patch] route(8): typo in sbin/route/route.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ru
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 03 09:40:02 UTC 2008
>Closed-Date:    Tue Apr 15 10:03:33 UTC 2008
>Last-Modified:  Tue Apr 15 10:10:01 UTC 2008
>Originator:     Andrej Zverev
>Release:        
>Organization:
>Environment:


	
>Description:
	I think it is typo
	
>How-To-Repeat:
	%route -vn get 1.1.1.1 | head -1
	u: inet 1.1.1.1; u: link ; RTM_GET: Report Metrics: len 164, pid: 0, seq 1, errno 0, flags:<UP,GATEWAY,HOST,STATIC>
	
>Fix:
	%route -vn get 1.1.1.1 | head -1
	so_dst: inet 1.1.1.1; so_ifp: link ; RTM_GET: Report Metrics: len 164, pid: 0, seq 1, errno 0, flags:<UP,GATEWAY,HOST,STATIC>

	

--- patch-route.c begins here ---
--- sbin/route/route.c.orig	2008-04-03 13:02:48.000000000 +0400
+++ sbin/route/route.c	2008-04-03 13:01:20.000000000 +0400
@@ -1187,7 +1187,7 @@
 #define NEXTADDR(w, u) \
 	if (rtm_addrs & (w)) {\
 	    l = SA_SIZE(&(u.sa)); memmove(cp, &(u), l); cp += l;\
-	    if (verbose) sodump(&(u),"u");\
+	    if (verbose) sodump(&(u),#u);\
 	}
 
 	errno = 0;
--- patch-route.c ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: ru 
State-Changed-When: Thu Apr 10 12:16:53 UTC 2008 
State-Changed-Why:  
Fixed in 8.0-CURRENT. 


Responsible-Changed-From-To: freebsd-bugs->ru 
Responsible-Changed-By: ru 
Responsible-Changed-When: Thu Apr 10 12:16:53 UTC 2008 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=122403 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/122403: commit references a PR
Date: Thu, 10 Apr 2008 12:16:32 +0000 (UTC)

 ru          2008-04-10 12:16:20 UTC
 
   FreeBSD src repository
 
   Modified files:
     sbin/route           route.c 
   Log:
   Fix printing of sockaddr prefixes in verbose mode.
   
   PR:             bin/122403
   Submitted by:   az
   MFC after:      3 days
   
   Revision  Changes    Path
   1.85      +1 -1      src/sbin/route/route.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: ru 
State-Changed-When: Tue Apr 15 10:02:48 UTC 2008 
State-Changed-Why:  
Fixed in 7.0-STABLE. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122403 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/122403: commit references a PR
Date: Tue, 15 Apr 2008 10:02:28 +0000 (UTC)

 ru          2008-04-15 10:02:24 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_7)
     sbin/route           route.c 
   Log:
   MFC: 1.85: Fix printing of sockaddr prefixes in verbose mode.
   
   PR:             bin/122403
   
   Revision  Changes    Path
   1.81.2.3  +1 -1      src/sbin/route/route.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
