Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Remove the non-IKE part of the computation, too.
details: https://anonhg.NetBSD.org/src/rev/fc711fd795d5
branches: trunk
changeset: 323107:fc711fd795d5
user: maxv <maxv%NetBSD.org@localhost>
date: Thu May 31 13:51:56 2018 +0000
description:
Remove the non-IKE part of the computation, too.
diffstat:
sys/netinet/udp_usrreq.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diffs (31 lines):
diff -r 0dac152adaf7 -r fc711fd795d5 sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c Thu May 31 10:14:21 2018 +0000
+++ b/sys/netinet/udp_usrreq.c Thu May 31 13:51:56 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udp_usrreq.c,v 1.253 2018/05/31 07:03:57 maxv Exp $ */
+/* $NetBSD: udp_usrreq.c,v 1.254 2018/05/31 13:51:56 maxv Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.253 2018/05/31 07:03:57 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.254 2018/05/31 13:51:56 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1259,11 +1259,7 @@
struct mbuf *m = *mp;
uint32_t *marker;
- /*
- * Collapse the mbuf chain if the first mbuf is too short.
- * The longest case is: UDP + max(Non-ESP, Non-IKE) + ESP.
- */
- minlen = off + 2 * sizeof(uint32_t) + sizeof(struct esp);
+ minlen = off + sizeof(struct esp);
if (minlen > m->m_pkthdr.len)
minlen = m->m_pkthdr.len;
Home |
Main Index |
Thread Index |
Old Index