Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet comments
details: https://anonhg.NetBSD.org/src/rev/364aad5f00f1
branches: trunk
changeset: 764253:364aad5f00f1
user: yamt <yamt%NetBSD.org@localhost>
date: Thu Apr 14 15:48:48 2011 +0000
description:
comments
diffstat:
sys/netinet/tcp_input.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diffs (41 lines):
diff -r 0f08a080b512 -r 364aad5f00f1 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c Thu Apr 14 15:45:27 2011 +0000
+++ b/sys/netinet/tcp_input.c Thu Apr 14 15:48:48 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_input.c,v 1.307 2011/03/09 00:44:23 yamt Exp $ */
+/* $NetBSD: tcp_input.c,v 1.308 2011/04/14 15:48:48 yamt Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -145,7 +145,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.307 2011/03/09 00:44:23 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.308 2011/04/14 15:48:48 yamt Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -1685,7 +1685,7 @@
* Calculate the RTT from the returned time stamp and the
* connection's time base. If the time stamp is later than
* the current time, or is extremely old, fall back to non-1323
- * RTT calculation. Since ts_ecr is unsigned, we can test both
+ * RTT calculation. Since ts_rtt is unsigned, we can test both
* at the same time.
*/
ts_rtt = TCP_TIMESTAMP(tp) - opti.ts_ecr + 1;
@@ -2990,6 +2990,13 @@
}
#endif
+/*
+ * tcp_dooptions: parse and process tcp options.
+ *
+ * returns -1 if this segment should be dropped. (eg. wrong signature)
+ * otherwise returns 0.
+ */
+
static int
tcp_dooptions(struct tcpcb *tp, const u_char *cp, int cnt,
struct tcphdr *th,
Home |
Main Index |
Thread Index |
Old Index