summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPeter Hessler <phessler@cvs.openbsd.org>2017-01-19 09:08:51 +0000
committerPeter Hessler <phessler@cvs.openbsd.org>2017-01-19 09:08:51 +0000
commit4c821ef1fb03de1e2618338b7bed494e32e485c3 (patch)
treeab370d44c88fca6b09c3e859e744e2ebd7559dc5 /sys
parente1fae636f2a0fa5e85edba9ddcb47ac14488037e (diff)
rtisvalid() checks for RTF_UP, so instead check for RTF_BFD
Diffstat (limited to 'sys')
-rw-r--r--sys/net/bfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bfd.c b/sys/net/bfd.c
index 6eca6377a05..d7b10a89c41 100644
--- a/sys/net/bfd.c
+++ b/sys/net/bfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bfd.c,v 1.43 2017/01/19 08:55:46 phessler Exp $ */
+/* $OpenBSD: bfd.c,v 1.44 2017/01/19 09:08:50 phessler Exp $ */
/*
* Copyright (c) 2016 Peter Hessler <phessler@openbsd.org>
@@ -902,7 +902,7 @@ bfd_send(struct bfd_config *bfd, struct mbuf *m)
{
struct rtentry *rt = bfd->bc_rt;
- if (!rtisvalid(rt) || !ISSET(rt->rt_flags, RTF_UP)) {
+ if (!rtisvalid(rt) || !ISSET(rt->rt_flags, RTF_BFD)) {
m_freem(m);
return (EHOSTDOWN);
}