projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bug: don't soisdisconnected on datagram sockets, want to reconnect
[unix-history]
/
usr
/
src
/
sys
/
netinet
/
tcp.h
diff --git
a/usr/src/sys/netinet/tcp.h
b/usr/src/sys/netinet/tcp.h
index
7f4f5c3
..
53731c8
100644
(file)
--- a/
usr/src/sys/netinet/tcp.h
+++ b/
usr/src/sys/netinet/tcp.h
@@
-3,7
+3,7
@@
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)tcp.h 6.
4
(Berkeley) %G%
+ * @(#)tcp.h 6.
5
(Berkeley) %G%
*/
typedef u_long tcp_seq;
*/
typedef u_long tcp_seq;
@@
-37,11
+37,15
@@
struct tcphdr {
#define TCPOPT_MAXSEG 2
/*
#define TCPOPT_MAXSEG 2
/*
- *
Default maximum segment size for TCP.
- *
With an IP MSS of 576, this is 536,
- *
but 512 is probably more convenient.
+ * Default maximum segment size for TCP.
+ * With an IP MSS of 576, this is 536,
+ * but 512 is probably more convenient.
*/
*/
+#ifdef lint
+#define TCP_MSS 536
+#else
#define TCP_MSS MIN(512, IP_MSS - sizeof (struct tcpiphdr))
#define TCP_MSS MIN(512, IP_MSS - sizeof (struct tcpiphdr))
+#endif
/*
* User-settable options (used with setsockopt).
/*
* User-settable options (used with setsockopt).