Date: Thu, 8 Oct 2020 11:25:19 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r366535 - head/sys/kern Message-ID: <202010081125.098BPJjI006491@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010081125.098BPJjI006491>