Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Redefine the structure, not to rely...



details:   https://anonhg.NetBSD.org/src/rev/5cfac21f7ccc
branches:  trunk
changeset: 318599:5cfac21f7ccc
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue May 01 07:03:33 2018 +0000
description:
Redefine the structure, not to rely on tcpiphdr.

diffstat:

 sys/netinet/tcp_debug.h |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r cf98144f9c67 -r 5cfac21f7ccc sys/netinet/tcp_debug.h
--- a/sys/netinet/tcp_debug.h   Tue May 01 06:50:06 2018 +0000
+++ b/sys/netinet/tcp_debug.h   Tue May 01 07:03:33 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_debug.h,v 1.17 2007/03/04 06:03:22 christos Exp $  */
+/*     $NetBSD: tcp_debug.h,v 1.18 2018/05/01 07:03:33 maxv Exp $      */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -44,7 +44,10 @@
        short   td_ostate;
        void *  td_tcb;
        int     td_family;
-       struct  tcpiphdr td_ti;
+       struct {
+               struct ip ip4;
+               struct tcphdr th;
+       } __packed td_ti;
        struct {
 #ifdef INET6
                struct ip6_hdr ip6;



Home | Main Index | Thread Index | Old Index