diff options
author | 2010-05-19 13:11:25 +0000 | |
---|---|---|
committer | 2010-05-19 13:11:25 +0000 | |
commit | 19fe863a4996ab485631ba8338871e9cd304e89b (patch) | |
tree | d2751596e9b7644385aff0e214f78042f63d2e82 | |
parent | Spin up secondary CPUs on hppa multiprocessor kernels. At this stage we (diff) | |
download | wireguard-openbsd-19fe863a4996ab485631ba8338871e9cd304e89b.tar.xz wireguard-openbsd-19fe863a4996ab485631ba8338871e9cd304e89b.zip |
Set RTF_MPLS when playing with MPLS routes since this is now required.
OK michele@
-rw-r--r-- | sbin/route/route.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index 3b3de7edc95..2b8f7627841 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.143 2010/05/19 10:30:27 claudio Exp $ */ +/* $OpenBSD: route.c,v 1.144 2010/05/19 13:11:25 claudio Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -423,6 +423,7 @@ newroute(int argc, char **argv) case K_MPLS: af = AF_MPLS; aflen = sizeof(struct sockaddr_mpls); + fmask |= RTF_MPLS; break; case K_MPLSLABEL: if (!--argc) @@ -432,6 +433,7 @@ newroute(int argc, char **argv) "-inet or -inet6"); getmplslabel(*++argv, 0); mpls_flags = MPLS_OP_PUSH; + flags |= RTF_MPLS; break; case K_IN: if (!--argc) @@ -449,6 +451,7 @@ newroute(int argc, char **argv) errx(1, "-out requires -push, -pop, " "-swap"); getmplslabel(*++argv, 0); + flags |= RTF_MPLS; break; case K_POP: if (af != AF_MPLS) |