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:
parent
5319fa1b3e
commit
eccb214897
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user