diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-05-19 13:11:26 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-05-19 13:11:26 +0000 |
commit | 97cb057ee8d8076b03265ddcfdcefba230da2fa5 (patch) | |
tree | 0cafebb22307006667eb6f82e10acffb54f15e4e /sbin | |
parent | b55cd01222e32683cdbcdc39fad006e485e69535 (diff) |
Set RTF_MPLS when playing with MPLS routes since this is now required.
OK michele@
Diffstat (limited to 'sbin')
-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) |