diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-05-08 18:46:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-05-08 18:46:38 +0000 |
commit | f75a369da47aa412b1c76a6d206f66aab17ee8f9 (patch) | |
tree | 3bc3510f5eef3e37b2603735866ce04df243c00c /sys/net | |
parent | 4cd52948580cebe6b137c67e8102785102e6f172 (diff) |
rtalloc2() and rtalloc_noclone() inside NPF > 0
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/route.c | 5 |
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. |