Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Oct 2005 10:29:41 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        kamal kc <kamal_ckk@yahoo.com>
Cc:        freebsd <freebsd-hackers@freebsd.org>, freebsd <freebsd-net@freebsd.org>
Subject:   Re: in_cksum() for ip packets with multiple mbufs
Message-ID:  <20051024072941.GA1944@flame.pc>
In-Reply-To: <20051024052700.63215.qmail@web35705.mail.mud.yahoo.com>
References:  <20051023120442.GB29924@flame.pc> <20051024052700.63215.qmail@web35705.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-10-23 22:27, kamal kc <kamal_ckk@yahoo.com> wrote:
> one thing i would like to ask?
>
> does it make any difference if i free the mbuf 'm' passed to
> if_output() and pass my own mbuf to if_output.
>
> is the original mbuf referenced by any other pointers or global
> variables ??

If you are hooking your own functions right before if_output, then it
shouldn't be a problem.

> >     - If you are not *REALLY* copying the data of the mbuf, then the
> >       name of copy_the_memorybuffer() is very confusing.
>
> i didn't showed in the above code snippet but actually i am copying
> the data contained in the mbufs in a character array.

AH!  That makes more sense then :)

> thanks to you that the problem was solved (i don't
> know if it is completely ok). i found that
>    - i had made mistake in computing checksum.
>       earlier checksum was computed over the whole dat

Nice.  Glad to know it's fixed now.




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