Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Oct 2020 08:31:21 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r366884 - stable/12/sys/kern
Message-ID:  <202010200831.09K8VLhV019284@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Tue Oct 20 08:31:20 2020
New Revision: 366884
URL: https://svnweb.freebsd.org/changeset/base/366884

Log:
  MFC r366535:
  The ethernet header structure is read-only. Add const keyword.
  
  (This is a diff reduction towards D26254)
  
  Sponsored by:		Mellanox Technologies // NVIDIA Networking

Modified:
  stable/12/sys/kern/uipc_mbufhash.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/kern/uipc_mbufhash.c
==============================================================================
--- stable/12/sys/kern/uipc_mbufhash.c	Tue Oct 20 08:30:26 2020	(r366883)
+++ stable/12/sys/kern/uipc_mbufhash.c	Tue Oct 20 08:31:20 2020	(r366884)
@@ -78,7 +78,7 @@ m_ether_tcpip_hash(const uint32_t flags, const struct 
 		struct ether_vlan_header vlan;
 		uint32_t port;
 	} buf;
-	struct ether_header *eh;
+	const struct ether_header *eh;
 	const struct ether_vlan_header *vlan;
 #ifdef INET
 	const struct ip *ip;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010200831.09K8VLhV019284>