svn commit: r366884 - stable/12/sys/kern

Hans Petter Selasky hselasky at FreeBSD.org
Tue Oct 20 08:31:21 UTC 2020


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;


More information about the svn-src-all mailing list