From 69dac2ea476a3a195830675b299808cdb7c7c532 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sat, 20 Jul 2002 22:46:20 +0000 Subject: [PATCH] Don't export 'struct ipq' from kernel, instead #ifdef _KERNEL. As kernel data structures pick up security and synchronization primitives, it becomes increasingly desirable not to arbitrarily export them via include files to userland, as the userland applications pick up new #include dependencies. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs --- sys/netinet/ip_var.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h index e084d1d8096a..79f833610afa 100644 --- a/sys/netinet/ip_var.h +++ b/sys/netinet/ip_var.h @@ -50,6 +50,7 @@ struct ipovly { struct in_addr ih_dst; /* destination internet address */ }; +#ifdef _KERNEL /* * Ip reassembly queue structure. Each fragment * being reassembled is attached to one of these structures. @@ -68,6 +69,7 @@ struct ipq { u_int16_t ipq_div_cookie; /* ipfw divert cookie */ #endif }; +#endif /* _KERNEL */ /* * Structure stored in mbuf in inpcb.ip_options