Source-Changes-HG archive

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

src: Remove misleading comments.



details:   https://anonhg.NetBSD.org/src/rev/91dca9002be9
branches:  trunk
changeset: 318320:91dca9002be9
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed Apr 18 06:17:43 2018 +0000
description:
Remove misleading comments.

diffstat:

 sys/netinet/tcp_subr.c      |  9 ++-------
 sys/netinet6/udp6_usrreq.c  |  9 ++-------
 sys/netipsec/ipsec_netbsd.c |  9 ++-------
 3 files changed, 6 insertions(+), 21 deletions(-)

diffs (90 lines):

diff -r 9d5cf3f00147 -r 91dca9002be9 sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c    Wed Apr 18 06:13:23 2018 +0000
+++ b/sys/netinet/tcp_subr.c    Wed Apr 18 06:17:43 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_subr.c,v 1.276 2018/03/29 18:54:48 maxv Exp $      */
+/*     $NetBSD: tcp_subr.c,v 1.277 2018/04/18 06:17:43 maxv Exp $      */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.276 2018/03/29 18:54:48 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.277 2018/04/18 06:17:43 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1423,11 +1423,6 @@
        }
 
        if (ip6) {
-               /*
-                * XXX: We assume that when ip6 is non NULL,
-                * M and OFF are valid.
-                */
-
                /* check if we can safely examine src and dst ports */
                if (m->m_pkthdr.len < off + sizeof(th)) {
                        if (cmd == PRC_MSGSIZE)
diff -r 9d5cf3f00147 -r 91dca9002be9 sys/netinet6/udp6_usrreq.c
--- a/sys/netinet6/udp6_usrreq.c        Wed Apr 18 06:13:23 2018 +0000
+++ b/sys/netinet6/udp6_usrreq.c        Wed Apr 18 06:17:43 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udp6_usrreq.c,v 1.139 2018/04/12 06:49:39 maxv Exp $ */
+/* $NetBSD: udp6_usrreq.c,v 1.140 2018/04/18 06:17:44 maxv Exp $ */
 /* $KAME: udp6_usrreq.c,v 1.86 2001/05/27 17:33:00 itojun Exp $ */
 /* $KAME: udp6_output.c,v 1.43 2001/10/15 09:19:52 itojun Exp $ */
 
@@ -63,7 +63,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udp6_usrreq.c,v 1.139 2018/04/12 06:49:39 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udp6_usrreq.c,v 1.140 2018/04/18 06:17:44 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -230,11 +230,6 @@
        }
 
        if (ip6) {
-               /*
-                * XXX: We assume that when IPV6 is non NULL,
-                * M and OFF are valid.
-                */
-
                /* check if we can safely examine src and dst ports */
                if (m->m_pkthdr.len < off + sizeof(*uhp)) {
                        if (cmd == PRC_MSGSIZE)
diff -r 9d5cf3f00147 -r 91dca9002be9 sys/netipsec/ipsec_netbsd.c
--- a/sys/netipsec/ipsec_netbsd.c       Wed Apr 18 06:13:23 2018 +0000
+++ b/sys/netipsec/ipsec_netbsd.c       Wed Apr 18 06:17:43 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipsec_netbsd.c,v 1.49 2018/04/18 06:13:23 maxv Exp $   */
+/*     $NetBSD: ipsec_netbsd.c,v 1.50 2018/04/18 06:17:44 maxv Exp $   */
 /*     $KAME: esp_input.c,v 1.60 2001/09/04 08:43:19 itojun Exp $      */
 /*     $KAME: ah_input.c,v 1.64 2001/09/04 08:43:19 itojun Exp $       */
 
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipsec_netbsd.c,v 1.49 2018/04/18 06:13:23 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipsec_netbsd.c,v 1.50 2018/04/18 06:17:44 maxv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -202,11 +202,6 @@
        }
 
        if (ip6) {
-               /*
-                * XXX: We assume that when ip6 is non NULL,
-                * M and OFF are valid.
-                */
-
                /* check if we can safely examine src and dst ports */
                if (m->m_pkthdr.len < off + sizeof(ah))
                        return NULL;



Home | Main Index | Thread Index | Old Index