From f75a369da47aa412b1c76a6d206f66aab17ee8f9 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 8 May 2007 18:46:38 +0000 Subject: rtalloc2() and rtalloc_noclone() inside NPF > 0 --- sys/net/route.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys') 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. -- cgit v1.2.3