From eccb2148970790cec6074ef8f274ddce3f44dca2 Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Thu, 8 Oct 2020 11:25:19 +0000 Subject: [PATCH] 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 --- sys/kern/uipc_mbufhash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/uipc_mbufhash.c b/sys/kern/uipc_mbufhash.c index 9efc08b1432f..d027bbf6392d 100644 --- a/sys/kern/uipc_mbufhash.c +++ b/sys/kern/uipc_mbufhash.c @@ -78,7 +78,7 @@ m_ether_tcpip_hash(const uint32_t flags, const struct mbuf *m, 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;