diff options
author | harti <harti@FreeBSD.org> | 2003-07-22 08:20:09 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-07-22 08:20:09 +0000 |
commit | d354b9a114e905138b9d80baa00205073ee3b2c6 (patch) | |
tree | 88d3ebbee7f197e39b4f6f82ca7941dd89365a4b /sys/dev/patm | |
parent | a05513a73ba4e0fe3feec93bae5b7c009be6b38c (diff) | |
download | FreeBSD-src-d354b9a114e905138b9d80baa00205073ee3b2c6.zip FreeBSD-src-d354b9a114e905138b9d80baa00205073ee3b2c6.tar.gz |
When padding an mbuf chain to have a length that is a multiple
of 48 bytes for AAL0, we also need to update the packet header.
Spotted by: Anil Madhavapeddy <anil@recoil.org>
Diffstat (limited to 'sys/dev/patm')
-rw-r--r-- | sys/dev/patm/if_patm_tx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/patm/if_patm_tx.c b/sys/dev/patm/if_patm_tx.c index 0d46018..190ceb5 100644 --- a/sys/dev/patm/if_patm_tx.c +++ b/sys/dev/patm/if_patm_tx.c @@ -421,6 +421,7 @@ patm_tx_pad(struct patm_softc *sc, struct mbuf *m0) return (m0); } pad = 48 - plen % 48; + m0->m_pkthdr.len += pad; if (M_WRITABLE(last)) { if (M_TRAILINGSPACE(last) >= pad) { bzero(last->m_data + last->m_len, pad); |