Author: hselasky
Date: Tue Oct 20 08:31:55 2020
New Revision: 366885
URL: https://svnweb.freebsd.org/changeset/base/366885

Log:
  MFC r366535:
  The ethernet header structure is read-only. Add const keyword.
  
  (This is a diff reduction towards D26254)
  
  Sponsored by:         Mellanox Technologies // NVIDIA Networking

Modified:
  stable/11/sys/kern/uipc_mbufhash.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/uipc_mbufhash.c
==============================================================================
--- stable/11/sys/kern/uipc_mbufhash.c  Tue Oct 20 08:31:20 2020        
(r366884)
+++ stable/11/sys/kern/uipc_mbufhash.c  Tue Oct 20 08:31:55 2020        
(r366885)
@@ -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-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to