Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Apr 2008 13:25:29 +0400
From:      Andrej Zverev <andrey.zverev@electro-com.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/122403: [patch] type in sbin/route/route.c
Message-ID:  <E1JhLhJ-000I5p-0R@mail.electro-com.ru>
Resent-Message-ID: <200804030940.m339e2fk081584@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         122403
>Category:       bin
>Synopsis:       [patch] type in sbin/route/route.c
>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:   Thu Apr 03 09:40:02 UTC 2008
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1JhLhJ-000I5p-0R>