The mbuf put on the interface queue contains the 4-byte pseudoheader.

Account for this in the byte count.
This commit is contained in:
Hartmut Brandt 2003-07-15 10:30:57 +00:00
parent 21a023e9c8
commit 198b0c39a9

View File

@ -228,7 +228,8 @@ atm_output(struct ifnet *ifp, struct mbuf *m0, struct sockaddr *dst,
* Queue message on interface, and start output if interface
* not yet active.
*/
if (!IF_HANDOFF(&ifp->if_snd, m, ifp))
if (!IF_HANDOFF_ADJ(&ifp->if_snd, m, ifp,
-(int)sizeof(struct atm_pseudohdr)))
return (ENOBUFS);
return (error);