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
This commit is contained in:
Hans Petter Selasky 2020-10-08 11:25:19 +00:00
parent 5319fa1b3e
commit eccb214897

View File

@ -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;