mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
4f18efe220
commit
69dac2ea47
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue