From 2d758d909a9382932edbaf47e9bce35280d3fe4a Mon Sep 17 00:00:00 2001 From: Hartmut Brandt Date: Tue, 22 Jul 2003 08:20:09 +0000 Subject: 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 --- sys/dev/patm/if_patm_tx.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev/patm') diff --git a/sys/dev/patm/if_patm_tx.c b/sys/dev/patm/if_patm_tx.c index 0d460182233a..190ceb5f45c6 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); -- cgit v1.3