On 2005-10-23 22:27, kamal kc <[EMAIL PROTECTED]> 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. _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"