summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-13 11:09:52 +0000
committerbde <bde@FreeBSD.org>1998-07-13 11:09:52 +0000
commitb384a06abb90f7bb9d5b255c124ec54539f2da85 (patch)
tree90dcb3ace169a8f9a97695797498cfa5e3a50a2b /sys/netinet
parent853889649e34f32a7692dad91f9f249a5cbcca44 (diff)
downloadFreeBSD-src-b384a06abb90f7bb9d5b255c124ec54539f2da85.zip
FreeBSD-src-b384a06abb90f7bb9d5b255c124ec54539f2da85.tar.gz
Declare tcp_seq and tcp_cc as fixed-size types. Half fixed type
mismatches exposed by this (the prototype for tcp_respond() didn't match the function definition lexically, and still depends on a gcc feature to match if ints have more than 32 bits).
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp.h6
-rw-r--r--sys/netinet/tcp_var.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/tcp.h b/sys/netinet/tcp.h
index 253ddb3..89624e3 100644
--- a/sys/netinet/tcp.h
+++ b/sys/netinet/tcp.h
@@ -31,14 +31,14 @@
* SUCH DAMAGE.
*
* @(#)tcp.h 8.1 (Berkeley) 6/10/93
- * $Id: tcp.h,v 1.8 1997/02/22 09:41:37 peter Exp $
+ * $Id: tcp.h,v 1.9 1998/06/08 09:47:42 bde Exp $
*/
#ifndef _NETINET_TCP_H_
#define _NETINET_TCP_H_
-typedef u_long tcp_seq;
-typedef u_long tcp_cc; /* connection count per rfc1644 */
+typedef u_int32_t tcp_seq;
+typedef u_int32_t tcp_cc; /* connection count per rfc1644 */
/*
* TCP header.
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index 39b87ba..48b00b7 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_var.h 8.4 (Berkeley) 5/24/95
- * $Id: tcp_var.h,v 1.44 1998/05/15 20:11:35 wollman Exp $
+ * $Id: tcp_var.h,v 1.45 1998/06/27 07:30:45 jhay Exp $
*/
#ifndef _NETINET_TCP_VAR_H_
@@ -362,7 +362,7 @@ struct tcpcb *
int tcp_output __P((struct tcpcb *));
void tcp_quench __P((struct inpcb *, int));
void tcp_respond __P((struct tcpcb *,
- struct tcpiphdr *, struct mbuf *, u_long, u_long, int));
+ struct tcpiphdr *, struct mbuf *, tcp_seq, tcp_seq, int));
struct rtentry *
tcp_rtlookup __P((struct inpcb *));
void tcp_setpersist __P((struct tcpcb *));
OpenPOWER on IntegriCloud