Re: IP cheksum and libnet_pblock_coalesce

Kenichi MORI <[email protected]> Fri, 24 Sep 2004 20:08:19 -0700
Newsgroups gmane.comp.security.libnet
Message-ID <[email protected]>
Hello,

 Raynal wrote:
> 
> I dont understand why you call libnet_ip_check() :
> u_int16_t
> libnet_ip_check(u_int16_t *addr, int len)
> {
>     int sum;
> 
>     sum = libnet_in_cksum(addr, len);
>     return (LIBNET_CKSUM_CARRY(sum));
> }
> 
> When you call libnet_pblock_coalesce() checksums are computed, so you
> dont have to force any re-computation.
> 
> 	Fred

My situation was little different, I only use libnet_build_ipv4() &
libnet_build_tcp() functions.

But, I'm sorry I missed the messages #1513.
I think if I applied the pache, I was able to resolve the problem.
(Now that I changed my code and there is no error).

Thanks.

-Kenichi