summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_var.h
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2007-06-15 18:23:08 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2007-06-15 18:23:08 +0000
commitf436c78cb6491d8683072efdb5f8859e0f47fbc2 (patch)
tree047d89a7652636c7822d9e6028689289e70bcbf7 /sys/netinet/tcp_var.h
parent0bc06951a0d06a0401b4b4079f71d9299e8449b5 (diff)
Drop the current random timestamps and the current ISN generation
code and replace both with a RFC1948 based method, so TCP clients now have monotonic ISN/timestamps. The server side uses completely random ISN/timestamps and does time-wait recycling (on port reuse). ok djm@, mcbride@; thanks to lots of testers
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r--sys/netinet/tcp_var.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index d639001a425..755690d44e0 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_var.h,v 1.81 2007/02/01 19:55:37 jmc Exp $ */
+/* $OpenBSD: tcp_var.h,v 1.82 2007/06/15 18:23:07 markus Exp $ */
/* $NetBSD: tcp_var.h,v 1.17 1996/02/13 23:44:24 christos Exp $ */
/*
@@ -657,10 +657,12 @@ void tcp_rndiss_init(void);
tcp_seq tcp_rndiss_next(void);
u_int16_t
tcp_rndiss_encrypt(u_int16_t);
+void tcp_set_iss(struct tcpcb *);
+void tcp_set_tsm(struct tcpcb *);
int syn_cache_add(struct sockaddr *, struct sockaddr *,
struct tcphdr *, unsigned int, struct socket *,
- struct mbuf *, u_char *, int, struct tcp_opt_info *);
+ struct mbuf *, u_char *, int, struct tcp_opt_info *, tcp_seq *);
void syn_cache_unreach(struct sockaddr *, struct sockaddr *,
struct tcphdr *);
struct socket *syn_cache_get(struct sockaddr *, struct sockaddr *,