*BSD News Article 79844


Return to BSD News archive

Newsgroups: comp.bugs.4bsd
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.erols.net!news.mathworks.com!uunet!news-in2.uu.net!world!kh
From: kh@world.std.com (Kurt Hackenberg)
Subject: Re: un-freed mbuf in ip_output
Message-ID: <Dyq3DE.59@world.std.com>
Organization: The World Public Access UNIX, Brookline, MA
References: <52srh5$hip@monaco.csl.rdc.toshiba.co.jp>
Date: Thu, 3 Oct 1996 23:17:37 GMT
Lines: 15

jinmei@isl.rdc.toshiba.co.jp (JINMEI Tatuya) writes:

>If we encounter some error in the ip_output function in ip_output.c of
>Net/3, we go to bad: label at the end of the functin and free the
>outgoing packet:

>bad:
>	m_freem(m0);
>	goto done;

>But sometimes m0 is not the entire outgoing packet.


I believe m_freem() frees the whole mbuf list -- that is, the whole
packet -- not just the first mbuf.  Go read m_freem().