Re: amd64 vs i386 in_cksum_hdr() with unaligned data

2013-02-01 Thread Karim Fodil-Lemelin
On 01/02/2013 9:53 AM, Karim Fodil-Lemelin wrote: Hi -net, Sorry for the lengthy email. TLDR: If the IP header is not aligned on an even address then the amd64 version of in_cksum_hdr() will not work while the i386 version of it will. I came across this problem while working on custom softw

amd64 vs i386 in_cksum_hdr() with unaligned data

2013-02-01 Thread Karim Fodil-Lemelin
Hi -net, Sorry for the lengthy email. TLDR: If the IP header is not aligned on an even address then the amd64 version of in_cksum_hdr() will not work while the i386 version of it will. I came across this problem while working on custom software using the FreeBSD bridge. Our code sometimes de