From 7fe2781a15bb6aa5b0b3f6b3f82fcc537034bb6f Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Sun, 23 Jan 2005 03:32:36 +0000 Subject: Allow this to work on __STRICT_ALIGN archs, ok dhartmei@ --- sys/dev/usb/if_cdce.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys/dev/usb/if_cdce.c') diff --git a/sys/dev/usb/if_cdce.c b/sys/dev/usb/if_cdce.c index eb6678dd0b6..8e4eaf745d9 100644 --- a/sys/dev/usb/if_cdce.c +++ b/sys/dev/usb/if_cdce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cdce.c,v 1.6 2004/11/10 10:14:48 grange Exp $ */ +/* $OpenBSD: if_cdce.c,v 1.7 2005/01/23 03:32:35 drahn Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000-2003 Bill Paul @@ -644,6 +644,13 @@ cdce_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) } ifp->if_ipackets++; + +#ifdef __STRICT_ALIGNMENT + bcopy(m->m_data, m->m_data + ETHER_ALIGN, + total_len); + m->m_data += ETHER_ALIGN; +#endif + m->m_pkthdr.len = m->m_len = total_len; m->m_pkthdr.rcvif = ifp; -- cgit v1.2.3