diff --git a/sys/net/route.h b/sys/net/route.h index 11d1f170fe26..b5d86fea9ad2 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $NetBSD: route.h,v 1.66 2008/01/21 20:04:37 dyoung Exp $ */ +/* $NetBSD: route.h,v 1.67 2008/01/21 20:25:33 dyoung Exp $ */ /* * Copyright (c) 1980, 1986, 1993 @@ -39,6 +39,10 @@ #include #include +#ifndef _KERNEL +#include +#endif + /* * Kernel resident routing tables. * @@ -46,6 +50,18 @@ * are set by making entries for all directly connected interfaces. */ +/* + * A route consists of a destination address and a reference + * to a routing entry. These are often held by protocols + * in their control blocks, e.g. inpcb. + */ +struct route { + struct rtentry *_ro_rt; + struct sockaddr *ro_sa; + LIST_ENTRY(route) ro_rtcache_next; + bool ro_invalid; +}; + /* * These numbers are used by reliable protocols for determining * retransmission behavior and are included in the routing structure. @@ -272,18 +288,6 @@ struct rttimer_queue { #define RT_DPRINTF(__fmt, ...) /* do nothing */ #endif -/* - * A route consists of a destination address and a reference - * to a routing entry. These are often held by protocols - * in their control blocks, e.g. inpcb. - */ -struct route { - struct rtentry *_ro_rt; - struct sockaddr *ro_sa; - LIST_ENTRY(route) ro_rtcache_next; - bool ro_invalid; -}; - struct rtwalk { int (*rw_f)(struct rtentry *, void *); void *rw_v;