[uClibc-cvs] uClibc/include/netinet ip_tcp.h,1.3,1.4
Erik Andersen
andersen at uclibc.org
Wed Oct 8 19:35:18 UTC 2003
Update of /var/cvs/uClibc/include/netinet
In directory winder:/tmp/cvs-serv31749/include/netinet
Modified Files:
ip_tcp.h
Log Message:
Atsushi Nemoto writes:
I found inappropriate data types are used in some places in networking
codes.
* tcp_seq is 32bit (u_long -> u_int32_t)
* in_addt_t should be used for internet address (unsigned long -> in_addr_t)
* socklen_t should be used for accept()
This is a patch against uclibc-0.9.21 (can be applied for current
CVS). 64bit platforms (sizeof(int)!=sizeof(long)) will need this. I
believe this patch does not harm any 32bit platforms.
Index: ip_tcp.h
===================================================================
RCS file: /var/cvs/uClibc/include/netinet/ip_tcp.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ip_tcp.h 9 Jul 2000 02:16:27 -0000 1.3
+++ ip_tcp.h 8 Oct 2003 19:35:11 -0000 1.4
@@ -24,7 +24,7 @@
#include <linux/socket.h>
#include <sys/types.h>
-typedef u_long tcp_seq;
+typedef u_int32_t tcp_seq;
/*
* TCP header.
* Per RFC 793, September, 1981.
More information about the uClibc-cvs
mailing list