cvs commit: src/sys/net if_loop.c
Scott Long
scott_long at btc.adaptec.com
Tue May 27 20:18:40 PDT 2003
Mike Silbersack wrote:
> 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
Don't forget that this was approved by re@ =-)
More information about the cvs-src
mailing list