NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/46000: Remove duplicat RS_LOCAL in defs.h from routed.
>Number: 46000
>Category: bin
>Synopsis: Remove duplicat RS_LOCAL in defs.h from routed.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 12 11:50:00 +0000 2012
>Originator: Henning Petersen
>Release: NetBSD-current
>Organization:
>Environment:
>Description:
Remove duplicat RS_LOCAL in defs.h from routed.
Founf by cppcheck.
>How-To-Repeat:
>Fix:
diff -u -p -r1.26 defs.h
--- sbin/routed/defs.h 29 Aug 2011 14:35:04 -0000 1.26
+++ sbin/routed/defs.h 2 Feb 2012 09:46:09 -0000
@@ -207,9 +207,9 @@ struct rt_entry {
# define RS_IF 0x001 /* for network interface */
# define RS_NET_INT 0x002 /* authority route */
# define RS_NET_SYN 0x004 /* fake net route for subnet */
-# define RS_NO_NET_SYN (RS_LOCAL | RS_LOCAL | RS_IF)
# define RS_SUBNET 0x008 /* subnet route from any source */
# define RS_LOCAL 0x010 /* loopback for pt-to-pt */
+# define RS_NO_NET_SYN (RS_LOCAL | RS_IF)
# define RS_MHOME 0x020 /* from -m */
# define RS_STATIC 0x040 /* from the kernel */
# define RS_RDISC 0x080 /* from router discovery */
Home |
Main Index |
Thread Index |
Old Index