summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_var.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-07-20 22:46:20 +0000
committerrwatson <rwatson@FreeBSD.org>2002-07-20 22:46:20 +0000
commit25dc25ceae781e9920e3e273b5b74cb1b2e660ad (patch)
treeea47d7e730e03e5ddf82a047f9729ef0907566cf /sys/netinet/ip_var.h
parentc36591a07cec99c6fae74103429168b938055404 (diff)
downloadFreeBSD-src-25dc25ceae781e9920e3e273b5b74cb1b2e660ad.zip
FreeBSD-src-25dc25ceae781e9920e3e273b5b74cb1b2e660ad.tar.gz
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
Diffstat (limited to 'sys/netinet/ip_var.h')
-rw-r--r--sys/netinet/ip_var.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h
index e084d1d..79f8336 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
OpenPOWER on IntegriCloud