From 1a3a2b6798b40604cfb3d0bdbccf16fed432863f Mon Sep 17 00:00:00 2001 From: "Alexander V. Chernikov" Date: Thu, 27 Nov 2014 23:10:03 +0000 Subject: [PATCH] Fix build broken by r275195. --- sys/net/if_ethersubr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 2709c5efb28..9ba1f636063 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -234,12 +234,14 @@ ether_output(struct ifnet *ifp, struct mbuf *m, #endif case pseudo_AF_HDRCMPLT: { + const struct ether_header *eh; + hdrcmplt = 1; /* FALLTHROUGH */ case AF_UNSPEC: loop_copy = 0; /* if this is for us, don't do it */ - eh = (struct ether_header *)dst->sa_data; + eh = (const struct ether_header *)dst->sa_data; (void)memcpy(edst, eh->ether_dhost, sizeof (edst)); type = eh->ether_type; break;