diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-11-06 18:07:58 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-11-06 18:07:58 +0000 |
commit | 4340a75d414875cbcb12dc4b7b6da958b8c6ce2c (patch) | |
tree | 628629c40c4b48c2345c5ab9bf14a59c295dbe10 /sys/net | |
parent | 093fc771b1b5bfc34eb0828a0db6ed72c83ca68d (diff) |
Do not compile net/radix_mpath.c in ART-enabled kernels.
In such kernels multipath routing support is independant from the data
structure used to perform the binary lookup. Is is implemented as a
singly-listed list of route entries. This is possible because a "struct
rtentry" is no longer mapped 1:1 to a node in the tree.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/radix.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/radix.c b/sys/net/radix.c index 6b543dc3985..71d7c6d7f9e 100644 --- a/sys/net/radix.c +++ b/sys/net/radix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radix.c,v 1.51 2015/11/04 09:50:21 mpi Exp $ */ +/* $OpenBSD: radix.c,v 1.52 2015/11/06 18:07:57 mpi Exp $ */ /* $NetBSD: radix.c,v 1.20 2003/08/07 16:32:56 agc Exp $ */ /* @@ -48,6 +48,10 @@ #include <net/radix.h> +#if defined(ART) && !defined(SMALL_KERNEL) +#define SMALL_KERNEL +#endif + #ifndef SMALL_KERNEL #include <sys/socket.h> #include <net/route.h> |