Date: Thu, 25 Jun 1998 21:28:04 +0200 (SAT) From: John Hay <jhay@mikom.csir.co.za> To: FreeBSD-current@FreeBSD.ORG Subject: expanding the hack in netinet/tcp_var.h Message-ID: <199806251928.VAA11474@zibbi.mikom.csir.co.za>
next in thread | raw e-mail | index | archive | help
Hi,
Is there anybody that will mind if I extend the "evil hack" in tcp_var.h?
Or are you suppose to include sys/socketvar.h before you include netinet/
tcp_var.h, if you also have included netinet/in_pcb.h? The only thing
that needs socketvar.h is struct xsocket.
This patch makes ucd-snmp-3.5 compile again.
--
John Hay -- John.Hay@mikom.csir.co.za
--- /sys/netinet/tcp_var.h Sat May 16 14:08:15 1998
+++ /usr/include/netinet/tcp_var.h Thu Jun 25 21:15:41 1998
@@ -284,18 +284,18 @@
u_long tcps_badsyn; /* bogus SYN, e.g. premature ACK */
u_long tcps_mturesent; /* resends due to MTU discovery */
u_long tcps_listendrop; /* listen queue overflows */
};
/*
* TCB structure exported to user-land via sysctl(3).
- * Evil hack: declare only if in_pcb.h has been included.
- * Not all of our clients do.
+ * Evil hack: declare only if in_pcb.h and sys/socketvar.h has been
+ * included. Not all of our clients do.
*/
-#ifdef _NETINET_IN_PCB_H_
+#if defined(_NETINET_IN_PCB_H_) && defined(_SYS_SOCKETVAR_H_)
struct xtcpcb {
size_t xt_len;
struct inpcb xt_inp;
struct tcpcb xt_tp;
struct xsocket xt_socket;
u_quad_t xt_alignment_hack;
};
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806251928.VAA11474>
