Amit Mondal wrote:
Hi,
Could anyone pls tell me the function freebsd provides for calculating
TCP
checksum.
What I am doing, I am sniffing packet using divert packet and changing
the
destination address of the packet. Now, since TCP checksum calculation
include Pseudo head (src dest IP ....) I need to recalculate TCP
checksum.
Is there any way to recalculate the checksum incrementally.
look at libalias.
(also check the port for the divert based daemon that does the mss fixup.
I forget what it is called)
if you change a few bytes in the packet you can change the checksum
appropriatly
without recalculating the whole thing. You should be able to find lots
of examples from google,
and I'm pretty sure libalias does it..
Thanks in advance.
Rgds
-Amit
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"