Add -mpls to the route monitor case. It is an allowed address family.
authorclaudio <claudio@openbsd.org>
Tue, 14 Feb 2023 11:46:08 +0000 (11:46 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 14 Feb 2023 11:46:08 +0000 (11:46 +0000)
OK sthen@ florian@

sbin/route/route.c

index 05645a6..5a6679a 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: route.c,v 1.261 2022/12/22 19:53:22 kn Exp $  */
+/*     $OpenBSD: route.c,v 1.262 2023/02/14 11:46:08 claudio Exp $     */
 /*     $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $   */
 
 /*
@@ -221,6 +221,9 @@ main(int argc, char **argv)
                                case K_INET6:
                                        af = AF_INET6;
                                        break;
+                               case K_MPLS:
+                                       af = AF_MPLS;
+                                       break;
                                case K_IFACE:
                                case K_INTERFACE:
                                        filter = ROUTE_FILTER(RTM_IFINFO) |