mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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>
This commit is contained in:
parent
22907f2d29
commit
2d758d909a
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue