Author: hselasky
Date: Thu Oct 8 11:25:19 2020
New Revision: 366535
URL: https://svnweb.freebsd.org/changeset/base/366535
Log:
The ethernet header structure is read-only. Add const keyword.
(This is a diff reduction towards D26254)
MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking
Modified:
head/sys/kern/uipc_mbufhash.c
Modified: head/sys/kern/uipc_mbufhash.c
==============================================================================
--- head/sys/kern/uipc_mbufhash.c Thu Oct 8 11:04:32 2020
(r366534)
+++ head/sys/kern/uipc_mbufhash.c Thu Oct 8 11:25:19 2020
(r366535)
@@ -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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"