Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Remove unused fields and outdated comment.



details:   https://anonhg.NetBSD.org/src/rev/1dee9609aed3
branches:  trunk
changeset: 360855:1dee9609aed3
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue Apr 03 08:46:01 2018 +0000

description:
Remove unused fields and outdated comment.

diffstat:

 sys/netinet/ip_var.h |  15 +--------------
 1 files changed, 1 insertions(+), 14 deletions(-)

diffs (40 lines):

diff -r 4509d184c4cf -r 1dee9609aed3 sys/netinet/ip_var.h
--- a/sys/netinet/ip_var.h      Tue Apr 03 08:18:11 2018 +0000
+++ b/sys/netinet/ip_var.h      Tue Apr 03 08:46:01 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_var.h,v 1.122 2018/01/10 10:56:30 knakahara Exp $   */
+/*     $NetBSD: ip_var.h,v 1.123 2018/04/03 08:46:01 maxv Exp $        */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -68,22 +68,10 @@
 
 /*
  * IP sequence queue structure.
- *
- * XXX -- The following explains why the ipqe_m field is here, for TCP's use:
- * We want to avoid doing m_pullup on incoming packets but that
- * means avoiding dtom on the tcp reassembly code.  That in turn means
- * keeping an mbuf pointer in the reassembly queue (since we might
- * have a cluster).  As a quick hack, the source & destination
- * port numbers (which are no longer needed once we've located the
- * tcpcb) are overlayed with an mbuf pointer.
  */
 TAILQ_HEAD(ipqehead, ipqent);
 struct ipqent {
        TAILQ_ENTRY(ipqent) ipqe_q;
-       union {
-               struct ip       *_ip;
-               struct tcpiphdr *_tcp;
-       } _ipqe_u1;
        struct mbuf     *ipqe_m;        /* point to first mbuf */
        struct mbuf     *ipre_mlast;    /* point to last mbuf */
        u_int8_t        ipqe_mff;       /* for IP fragmentation */
@@ -95,7 +83,6 @@
        u_int32_t ipqe_len;
        u_int32_t ipqe_flags;
 };
-#define        ipqe_tcp        _ipqe_u1._tcp
 
 /*
  * Structure stored in mbuf in inpcb.ip_options



Home | Main Index | Thread Index | Old Index