Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet fix tcp mss consideration on ipsec operation.



details:   https://anonhg.NetBSD.org/src/rev/580c47d7b13f
branches:  trunk
changeset: 475832:580c47d7b13f
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Aug 27 02:56:14 1999 +0000

description:
fix tcp mss consideration on ipsec operation.
now tcp-over-ipsec should not experience fragmentation due to
addition of ipsec header.

From: proff%suburbia.net@localhost (Julian Assange)

diffstat:

 sys/netinet/tcp_subr.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d85a736d5836 -r 580c47d7b13f sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c    Fri Aug 27 01:52:26 1999 +0000
+++ b/sys/netinet/tcp_subr.c    Fri Aug 27 02:56:14 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_subr.c,v 1.78 1999/08/25 15:23:13 itojun Exp $     */
+/*     $NetBSD: tcp_subr.c,v 1.79 1999/08/27 02:56:14 itojun Exp $     */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -268,7 +268,7 @@
                }
                if (m == NULL)
                        return NULL;
-               m->m_len = hlen + sizeof(struct tcphdr);
+               m->m_pkthdr.len = m->m_len = hlen + sizeof(struct tcphdr);
        }
        bzero(mtod(m, caddr_t), m->m_len);
        switch (tp->t_family) {



Home | Main Index | Thread Index | Old Index