Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 Update byte count and time stamps for received ...



details:   https://anonhg.NetBSD.org/src/rev/10dbaaeaaee1
branches:  trunk
changeset: 484138:10dbaaeaaee1
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Sun Mar 26 18:55:37 2000 +0000

description:
Update byte count and time stamps for received packets (as in ESP).
May help fix stalls.

diffstat:

 sys/netinet6/ah_input.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r f69a530319a6 -r 10dbaaeaaee1 sys/netinet6/ah_input.c
--- a/sys/netinet6/ah_input.c   Sun Mar 26 15:48:22 2000 +0000
+++ b/sys/netinet6/ah_input.c   Sun Mar 26 18:55:37 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ah_input.c,v 1.12 2000/03/21 23:53:30 itojun Exp $     */
+/*     $NetBSD: ah_input.c,v 1.13 2000/03/26 18:55:37 mycroft Exp $    */
 /*     $KAME: ah_input.c,v 1.22 2000/03/09 21:51:39 itojun Exp $       */
 
 /*
@@ -492,15 +492,14 @@
                        }
                }
                ip = mtod(m, struct ip *);
-#if 1
-               /*ip_len is in host endian*/
+#ifdef IPLEN_FLIPPED
                ip->ip_len = ip->ip_len - stripsiz;
 #else
-               /*ip_len is in net endian*/
                ip->ip_len = htons(ntohs(ip->ip_len) - stripsiz);
 #endif
                ip->ip_p = nxt;
-               /* forget about IP hdr checksum, the check has already been passed */
+
+               key_sa_recordxfer(sav, m);
 
                if (nxt != IPPROTO_DONE)
                        (*inetsw[ip_protox[nxt]].pr_input)(m, off, nxt);



Home | Main Index | Thread Index | Old Index