summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_seq.h
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2005-04-10 05:24:59 +0000
committerps <ps@FreeBSD.org>2005-04-10 05:24:59 +0000
commitebd6b162f88b784455e9995a341013d78332cbc0 (patch)
tree663deb5d16b5f5ca6390d4a71eb617e1137dd44f /sys/netinet/tcp_seq.h
parentf6d14de55c90b68a7b8c2be07727978a4da1f908 (diff)
downloadFreeBSD-src-ebd6b162f88b784455e9995a341013d78332cbc0.zip
FreeBSD-src-ebd6b162f88b784455e9995a341013d78332cbc0.tar.gz
- Tighten up the Timestamp checks to prevent a spoofed segment from
setting ts_recent to an arbitrary value, stopping further communication between the two hosts. - If the Echoed Timestamp is greater than the current time, fall back to the non RFC 1323 RTT calculation. Submitted by: Raja Mukerji (raja at moselle dot com) Reviewed by: Noritoshi Demizu, Mohan Srinivasan
Diffstat (limited to 'sys/netinet/tcp_seq.h')
-rw-r--r--sys/netinet/tcp_seq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/tcp_seq.h b/sys/netinet/tcp_seq.h
index dfc8f0e..7f46201 100644
--- a/sys/netinet/tcp_seq.h
+++ b/sys/netinet/tcp_seq.h
@@ -47,6 +47,7 @@
/* for modulo comparisons of timestamps */
#define TSTMP_LT(a,b) ((int)((a)-(b)) < 0)
+#define TSTMP_GT(a,b) ((int)((a)-(b)) > 0)
#define TSTMP_GEQ(a,b) ((int)((a)-(b)) >= 0)
/*
OpenPOWER on IntegriCloud