diff options
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/if_cdce.c | 9 |
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; |