summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-05-08 18:46:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-05-08 18:46:38 +0000
commitf75a369da47aa412b1c76a6d206f66aab17ee8f9 (patch)
tree3bc3510f5eef3e37b2603735866ce04df243c00c /sys/net
parent4cd52948580cebe6b137c67e8102785102e6f172 (diff)
rtalloc2() and rtalloc_noclone() inside NPF > 0
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/route.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index a58a41afeeb..5ca39262178 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.81 2006/06/19 08:14:06 claudio Exp $ */
+/* $OpenBSD: route.c,v 1.82 2007/05/08 18:46:37 deraadt Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -254,6 +254,8 @@ rtable_exists(u_int id) /* verify table with that ID exists */
return (1);
}
+#include "pf.h"
+#if NPF > 0
void
rtalloc_noclone(struct route *ro, int howstrict)
{
@@ -313,6 +315,7 @@ miss:
splx(s);
return (newrt);
}
+#endif /* NPF > 0 */
/*
* Packet routing routines.