Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Feb 2005 18:52:08 -0700 (MST)
From:      Swami Pichumani <swami@cs.utah.edu>
To:        cvs-all@freebsd.org
Subject:   question on mbuf(m_copyback) code 
Message-ID:  <Pine.LNX.4.61.0502201846210.28727@gradofc8.cs.utah.edu>

next in thread | raw e-mail | index | archive | help
Hi all,
I had a question on the m_copyback code (I use pretty old version but feel 
this might still be same).
Inside the while(len>0) loop, the first line kinda seems odd. It subtracts 
the off (which becomes after first iteration) from m_len(which is supposed 
to tell the amount of data in the particular mbuf) to find the free space 
i nthe mbuf. This obviously would not work without m_len getting initialized 
to MLEN (or MHLEN), which is not the right thing to do (since when an 
mbuf has 0 data when initialized and m_len would be zero).

thanks in advance for any comments on this,

-swami



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.61.0502201846210.28727>