Fix build broken by r275195.

This commit is contained in:
Alexander V. Chernikov 2014-11-27 23:10:03 +00:00
parent 74860d4f7c
commit 1a3a2b6798
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275197

View file

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