summaryrefslogtreecommitdiff
path: root/sys/net/rtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/rtable.h')
-rw-r--r--sys/net/rtable.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/rtable.h b/sys/net/rtable.h
index 0653d348f61..dac6fd2f190 100644
--- a/sys/net/rtable.h
+++ b/sys/net/rtable.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtable.h,v 1.18 2016/11/14 10:32:46 mpi Exp $ */
+/* $OpenBSD: rtable.h,v 1.19 2017/07/30 18:16:14 florian Exp $ */
/*
* Copyright (c) 2014-2016 Martin Pieuchot
@@ -19,7 +19,7 @@
#ifndef _NET_RTABLE_H_
#define _NET_RTABLE_H_
-#ifndef ART
+#ifndef _KERNEL
/*
* Traditional BSD routing table implementation based on a radix tree.
@@ -31,7 +31,7 @@
#define rt_plen(rt) (rtable_satoplen(rt_key(rt)->sa_family, rt_mask(rt)))
#define RT_ROOT(rt) ((rt)->rt_nodes[0].rn_flags & RNF_ROOT)
-#else /* ART */
+#else /* _KERNEL */
/*
* Newer routing table implementation based on ART (Allotment Routing
@@ -43,7 +43,7 @@
#define rt_plen(rt) ((rt)->rt_plen)
#define RT_ROOT(rt) (0)
-#endif /* ART */
+#endif /* _KERNEL */
int rtable_satoplen(sa_family_t, struct sockaddr *);