Match -current output. Every configured address should have a local route
authormpi <mpi@openbsd.org>
Fri, 17 Apr 2015 07:46:10 +0000 (07:46 +0000)
committermpi <mpi@openbsd.org>
Fri, 17 Apr 2015 07:46:10 +0000 (07:46 +0000)
and remove redundant loopback cloning route.

Note that tests using IPv6 still contain two routes to "::1" this should
cause no harm but is being investigated.

regress/sbin/route/rttest14.ok
regress/sbin/route/rttest16.ok
regress/sbin/route/rttest17.ok

index 9505400..e487b04 100644 (file)
@@ -4,10 +4,8 @@ Internet6:
 Destination                        Gateway                        Flags   Refs      Use   Mtu  Prio Iface
 ::1                                ::1                            UHl        0        0 32768     1 lo10001
 ::1                                ::1                            UH         0        0 32768     4 lo10001
-fd88::/64                          fe80::1%lo10002                U          0        0 32768     4 lo10002
 fd88::1                            fd88::1                        UHl        0        0 32768     1 lo10002
 fd88::666                          fd99::1                        UGHS       0        0  1500     8 lo10003
-fd99::/64                          fe80::1%lo10003                U          0        0 32768     4 lo10003
 fd99::1                            fd99::1                        UHl        1        0 32768     1 lo10003
 fe80::%lo10001/64                  fe80::1%lo10001                U          0        0 32768     4 lo10001
 fe80::1%lo10001                    fe80::1%lo10001                UHl        0        0 32768     1 lo10001
index 1a93889..9eab945 100644 (file)
@@ -4,10 +4,8 @@ Internet6:
 Destination                        Gateway                        Flags   Refs      Use   Mtu  Prio Iface
 ::1                                ::1                            UHl        0        0 32768     1 lo10001
 ::1                                ::1                            UH         0        0 32768     4 lo10001
-fd88::/64                          fe80::1%lo10002                U          0        0 32768     4 lo10002
 fd88::1                            fd88::1                        UHl        0        0 32768     1 lo10002
 fd88::666                          fd99::1                        UGHS       0        0 32768     8 lo10002
-fd99::/64                          fe80::1%lo10003                U          0        0 32768     4 lo10003
 fd99::1                            fd99::1                        UHl        1        0 32768     1 lo10003
 fe80::%lo10001/64                  fe80::1%lo10001                U          0        0 32768     4 lo10001
 fe80::1%lo10001                    fe80::1%lo10001                UHl        0        0 32768     1 lo10001
index e6feaeb..fabfd37 100644 (file)
@@ -3,3 +3,7 @@ Routing tables
 Internet:
 Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface
 10.8.1/24          192.0.2.4          UGS        0        0 32768     8 lo10004
+192.0.2.1          192.0.2.1          UHl        0        0 32768     1 lo10001
+192.0.2.2          192.0.2.2          UHl        0        0 32768     1 lo10002
+192.0.2.3          192.0.2.3          UHl        0        0 32768     1 lo10003
+192.0.2.4          192.0.2.4          UHl        1        0 32768     1 lo10004