diff options
author | 2016-09-15 12:34:48 +0000 | |
---|---|---|
committer | 2016-09-15 12:34:48 +0000 | |
commit | 24685a15c2853d6c595c458f4926d1706d98ede7 (patch) | |
tree | 322168911c72a3443b7a7a6dc8691f8bf5563fd3 | |
parent | print local and remote discr as decimal, easier to compare with remote systems (diff) | |
download | wireguard-openbsd-24685a15c2853d6c595c458f4926d1706d98ede7.tar.xz wireguard-openbsd-24685a15c2853d6c595c458f4926d1706d98ede7.zip |
protect a kernel only structure with _KERNEL, means userland doesn't
need extra includes
-rw-r--r-- | sys/net/bfd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/bfd.h b/sys/net/bfd.h index b3fb79ff60c..fad98af8f33 100644 --- a/sys/net/bfd.h +++ b/sys/net/bfd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bfd.h,v 1.4 2016/09/12 15:24:51 phessler Exp $ */ +/* $OpenBSD: bfd.h,v 1.5 2016/09/15 12:34:48 phessler Exp $ */ /* * Copyright (c) 2016 Peter Hessler <phessler@openbsd.org> @@ -77,6 +77,7 @@ struct bfd_msghdr { uint32_t remotediag; }; +#ifdef _KERNEL struct bfd_softc { TAILQ_ENTRY(bfd_softc) bfd_next; struct socket *sc_so; @@ -98,6 +99,7 @@ struct bfd_softc { int mintx; int multiplier; }; +#endif /* _KERNEL */ struct bfd_flags { int version; |