#ifdef ALTQ
/*
* disable packet drop hack.
* packetdrop should be done by queueing.
*/
#else /* !ALTQ */
/*
* Verify that we have any chance at all of being able to queue
* the packet or packet fragments
*/
if ((ifp->if_snd.ifq_len + ip->ip_len / ifp->if_mtu + 1) >=
ifp->if_snd.ifq_maxlen) {
error = ENOBUFS;
goto bad;
}
#endif /* !ALTQ */
#ifdef ALTQ
/*
* disable packet drop hack.
* packetdrop should be done by queueing.
*/
#else /* !ALTQ */
/*
* Verify that we have any chance at all of being able to queue
* the packet or packet fragments
*/
if ((ifp->if_snd.ifq_len + ip->ip_len / ifp->if_mtu + 1) >=
ifp->if_snd.ifq_maxlen) {
/* Record the drop of the packet. */
s = splimp();
for ( frag_count = 0; frag_count < ip->ip_len / ifp->if_mtu + 1; frag_count ++ ) {
IF_DROP(&(ifp->if_snd)); /* MAP 1-19-98 */
}
splx(s);
error = ENOBUFS;
goto bad;
}
#endif