Module Name: src
Committed By: maxv
Date: Sat Jun 2 11:56:57 UTC 2018
Modified Files:
src/sys/netinet: ip_output.c
Log Message:
Copy more mbuf flags.
To generate a diff of this commit:
cvs rdiff -u -r1.305 -r1.306 src/sys/netinet/ip_output.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/netinet/ip_output.c
diff -u src/sys/netinet/ip_output.c:1.305 src/sys/netinet/ip_output.c:1.306
--- src/sys/netinet/ip_output.c:1.305 Tue May 29 17:21:57 2018
+++ src/sys/netinet/ip_output.c Sat Jun 2 11:56:57 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_output.c,v 1.305 2018/05/29 17:21:57 maxv Exp $ */
+/* $NetBSD: ip_output.c,v 1.306 2018/06/02 11:56:57 maxv Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.305 2018/05/29 17:21:57 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.306 2018/06/02 11:56:57 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -863,8 +863,8 @@ ip_fragment(struct mbuf *m, struct ifnet
mhip = mtod(m, struct ip *);
*mhip = *ip;
- /* we must inherit MCAST and BCAST flags */
- m->m_flags |= m0->m_flags & (M_MCAST|M_BCAST);
+ /* we must inherit the flags */
+ m->m_flags |= m0->m_flags & M_COPYFLAGS;
if (hlen > sizeof(struct ip)) {
mhlen = ip_optcopy(ip, mhip) + sizeof(struct ip);