diff options
author | simokawa <simokawa@FreeBSD.org> | 2004-07-20 03:56:23 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2004-07-20 03:56:23 +0000 |
commit | b5eb40de5b7f387366c0b523d305700999c9a7d4 (patch) | |
tree | f39280475b06e2efd1fb33fd0be911aa3e3cd3ce /sys | |
parent | f34cff5d80a229bc2a74d693a96b9bfe4866dce0 (diff) | |
download | FreeBSD-src-b5eb40de5b7f387366c0b523d305700999c9a7d4.zip FreeBSD-src-b5eb40de5b7f387366c0b523d305700999c9a7d4.tar.gz |
Adjust packet length correctly for FreeBSD-4.
Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/firewire/if_fwe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/firewire/if_fwe.c b/sys/dev/firewire/if_fwe.c index a0acec3..eb8a942 100644 --- a/sys/dev/firewire/if_fwe.c +++ b/sys/dev/firewire/if_fwe.c @@ -618,9 +618,11 @@ fwe_as_input(struct fw_xferq *xferq) #if defined(__DragonFly__) || __FreeBSD_version < 500000 eh = (struct ether_header *)c; m->m_data += sizeof(struct ether_header); + m->m_len = m->m_pkthdr.len = fp->mode.stream.len - ETHER_ALIGN + - sizeof(struct ether_header); +#else + m->m_len = m->m_pkthdr.len = fp->mode.stream.len - ETHER_ALIGN; #endif - m->m_len = m->m_pkthdr.len = - fp->mode.stream.len - ETHER_ALIGN; m->m_pkthdr.rcvif = ifp; #if 0 FWEDEBUG(ifp, "%02x %02x %02x %02x %02x %02x\n" |