Subject: Bug?
To: 'tech-net@netbsd.org' <tech-net@netbsd.org>
From: Ravi Ramamirtham <ramamirtham@process.com>
List: tech-net
Date: 10/03/2002 15:57:10
Hi,
I noticed the following code fragment in the tcp_respond() function in
tcp_subr.c. This applies to NetBSD 1.5 stable
MGETHDR(m, M_DONTWAIT, MT_HEADER);
if(m) {
MCLGET(m, M_DONTWAIT);
if ((m->m_flags & M_EXT) == 0) {
m_freem(m);
m = NULL;
}
}
......
Is this correct? Why is MCLGET being called *right* after MGETHDR succeeds
in getting a packet header mbuf?
Thanks
-Ravi