summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2005-01-23 03:32:36 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2005-01-23 03:32:36 +0000
commit7fe2781a15bb6aa5b0b3f6b3f82fcc537034bb6f (patch)
treecde0de4d9e08ea9d79134cf715c7d74fecf312d9 /sys/dev
parentc735e6eb3d6f8b2beb58bfe7324c2658c0200789 (diff)
Allow this to work on __STRICT_ALIGN archs, ok dhartmei@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/if_cdce.c9
1 files changed, 8 insertions, 1 deletions
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 <wpaul@windriver.com>
@@ -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;