Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet sync comment with reality



details:   https://anonhg.NetBSD.org/src/rev/89578ba7c422
branches:  trunk
changeset: 566045:89578ba7c422
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Apr 26 05:05:49 2004 +0000

description:
sync comment with reality

diffstat:

 sys/netinet/tcp_subr.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (39 lines):

diff -r 4ee67dc8c368 -r 89578ba7c422 sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c    Mon Apr 26 04:39:17 2004 +0000
+++ b/sys/netinet/tcp_subr.c    Mon Apr 26 05:05:49 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_subr.c,v 1.167 2004/04/26 03:54:29 itojun Exp $    */
+/*     $NetBSD: tcp_subr.c,v 1.168 2004/04/26 05:05:49 itojun Exp $    */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -98,7 +98,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.167 2004/04/26 03:54:29 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.168 2004/04/26 05:05:49 itojun Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -1631,7 +1631,9 @@
  *
  * Parameters:
  * m           pointer to head of mbuf chain
- * off0                offset to TCP header within the mbuf chain
+ * th          pointer to tcp header
+ * thoff       offset to TCP header within the mbuf chain
+ *             (if you don't know the value, set to -1)
  * len         length of TCP segment data, excluding options
  * optlen      length of TCP segment options
  * buf         pointer to storage for computed MD5 digest
@@ -1641,9 +1643,6 @@
  * When called from tcp_input(), we can be sure that th_sum has been
  * zeroed out and verified already.
  *
- * This function is for IPv4 use only. Calling this function with an
- * IPv6 packet in the mbuf chain will yield undefined results.
- *
  * Return 0 if successful, otherwise return -1.
  *
  * XXX The key is retrieved from the system's PF_KEY SADB, by keying a



Home | Main Index | Thread Index | Old Index