bin/122403: [patch] type in sbin/route/route.c

Andrej Zverev andrey.zverev at electro-com.ru
Thu Apr 3 09:40:02 UTC 2008


>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:


More information about the freebsd-bugs mailing list