cvs commit: src/sys/net if_loop.c
Mike Silbersack
silby at FreeBSD.org
Tue May 27 19:04:34 PDT 2003
silby 2003/05/27 19:04:33 PDT
FreeBSD src repository
Modified files:
sys/net if_loop.c
Log:
Replace a handrolled defrag function with m_defrag. The handrolled
function couldn't handle chains of > MCLBYTES, and it had a bug which
caused corruption and panics in certain low mbuf situations.
Additionally, change the failure case so that looutput returns ENOBUFS
rather than attempting to pass on non-defragmented mbuf chains.
Finally, remove the printf which would happen every time the low memory
situation occured. It served no useful purpose other than to clue me
in as to what was causing the panic in question. :)
MFC after: 4 days
Revision Changes Path
1.83 +14 -21 src/sys/net/if_loop.c
More information about the cvs-src
mailing list