NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/52815: "route monitor" prints incorrect interface flag name

>Number:         52815
>Category:       bin
>Synopsis:       "route monitor" prints incorrect interface flag name
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 13 09:15:00 +0000 2017
>Originator:     Tomoyuki Sahara
>Release:        6.1.5
Internet Initiative Japan Inc.
NetBSD 6.1.5_PATCH NetBSD 6.1.5_PATCH (GENERIC) #0: Wed May 20 11:03:23 JST 2015 amd64

"monitor" mode of route(8) command prints all routing messages sent on the system.  For RTM_IFINFO, route(8) shows the flag name for each interface flags.  But it fails to spell "PROMISC" correctly.

1. Set promiscuous flag of a network interface:

# tcpdump -ni wm0 &

2. Run "route" command in monitor mode:

# route monitor &

3. Emit RTM_IFINFO messages:

# ifconfig wm0 down

"route monitor" shows something like:

got message of size 152 on Wed Dec 13 17:26:21 2017                            
RTM_IFINFO: iface status change: len 152, if# 2, carrier: active, flags: <BROADCAST,RUNNING,PPROMISC,ALLMULTI,SIMPLEX,MULTICAST>

"PPROMISC" should be "PROMISC".
cvs diff: Diffing .
Index: route.c
RCS file: /cvsroot/src/sbin/route/route.c,v
retrieving revision
diff -u -r1.136.2.1 route.c
--- route.c     17 Oct 2012 21:57:07 -0000
+++ route.c     13 Dec 2017 09:05:36 -0000
@@ -1717,7 +1717,7 @@
 const char routeflags[] =
 const char ifnetflags[] =
 const char addrnames[] =

Home | Main Index | Thread Index | Old Index