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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to