diff options
author | Peter Hessler <phessler@cvs.openbsd.org> | 2016-09-03 14:23:15 +0000 |
---|---|---|
committer | Peter Hessler <phessler@cvs.openbsd.org> | 2016-09-03 14:23:15 +0000 |
commit | 6eb031d79d577e4be6cdb907539249dabe6c2898 (patch) | |
tree | 4526dfa6857724117b9690999795703de5da4c5b /sbin/route/route.c | |
parent | 0830530d67f3a05a84ed1a2ebcda9a76fc7df56e (diff) |
Add userland parts for BFD. Can't work if you don't have it enabled in
the kernel.
OK claudio@, henning@
Diffstat (limited to 'sbin/route/route.c')
-rw-r--r-- | sbin/route/route.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index 6cb31ab9d7b..dc0bd45a456 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.188 2016/09/01 10:41:09 bluhm Exp $ */ +/* $OpenBSD: route.c,v 1.189 2016/09/03 14:23:14 phessler Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -607,6 +607,9 @@ newroute(int argc, char **argv) usage(1+*argv); prio = getpriority(*++argv); break; + case K_BFD: + flags |= RTF_BFD; + break; default: usage(1+*argv); /* NOTREACHED */ @@ -1232,6 +1235,7 @@ char *msgtypes[] = { "RTM_IFINFO: iface status change", "RTM_IFANNOUNCE: iface arrival/departure", "RTM_DESYNC: route socket overflow", + "RTM_BFD: bidirectional forwarding detection", }; char metricnames[] = @@ -1323,6 +1327,9 @@ print_rtmsg(struct rt_msghdr *rtm, int msglen) } printf("\n"); break; + case RTM_BFD: + printf("bfd\n"); /* XXX - expand*/ + break; default: printf(", priority %d, table %u, ifidx %u, ", rtm->rtm_priority, rtm->rtm_tableid, rtm->rtm_index); |