Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Initialize m_pkthdr members explicity.
details: https://anonhg.NetBSD.org/src/rev/36ac29721a72
branches: trunk
changeset: 447556:36ac29721a72
user: knakahara <knakahara%NetBSD.org@localhost>
date: Wed Jan 16 01:50:25 2019 +0000
description:
Initialize m_pkthdr members explicity.
diffstat:
sys/kern/uipc_mbuf.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r b9ef1f92881c -r 36ac29721a72 sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c Tue Jan 15 14:23:56 2019 +0000
+++ b/sys/kern/uipc_mbuf.c Wed Jan 16 01:50:25 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_mbuf.c,v 1.230 2018/12/27 14:03:55 maxv Exp $ */
+/* $NetBSD: uipc_mbuf.c,v 1.231 2019/01/16 01:50:25 knakahara Exp $ */
/*
* Copyright (c) 1999, 2001, 2018 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.230 2018/12/27 14:03:55 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.231 2019/01/16 01:50:25 knakahara Exp $");
#ifdef _KERNEL_OPT
#include "opt_mbuftrace.h"
@@ -565,6 +565,8 @@
m->m_pkthdr.len = 0;
m->m_pkthdr.csum_flags = 0;
m->m_pkthdr.csum_data = 0;
+ m->m_pkthdr.segsz = 0;
+ m->m_pkthdr.ether_vtag = 0;
SLIST_INIT(&m->m_pkthdr.tags);
m->m_pkthdr.pattr_class = NULL;
Home |
Main Index |
Thread Index |
Old Index