svn commit: r366885 - stable/11/sys/kern
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Oct 20 08:31:55 UTC 2020
Author: hselasky
Date: Tue Oct 20 08:31:55 2020
New Revision: 366885
URL: https://svnweb.freebsd.org/changeset/base/366885
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/11/sys/kern/uipc_mbufhash.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/kern/uipc_mbufhash.c
==============================================================================
--- stable/11/sys/kern/uipc_mbufhash.c Tue Oct 20 08:31:20 2020 (r366884)
+++ stable/11/sys/kern/uipc_mbufhash.c Tue Oct 20 08:31:55 2020 (r366885)
@@ -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-stable-11
mailing list