Date: Mon, 21 Feb 2005 22:08:07 -0700 (MST) From: Swami Pichumani <swami@cs.utah.edu> To: freebsd-net@freebsd.org Subject: question on mbuf(m_copyback) code Message-ID: <Pine.LNX.4.61.0502212207150.8297@blanc.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.0502212207150.8297>