Re: [vpp-dev] IP4 checksum calculation error

2017-08-17 Thread Tomas Brännström
gt; > *From:* vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] *On > Behalf Of *Tomas Brännström > *Sent:* Wednesday, August 16, 2017 1:49 PM > *To:* vpp-dev > *Subject:* [vpp-dev] IP4 checksum calculation error > > > > Hi > > I'm having a quite annoyi

Re: [vpp-dev] IP4 checksum calculation error

2017-08-16 Thread Dave Barach (dbarach)
Wednesday, August 16, 2017 1:49 PM To: vpp-dev Subject: [vpp-dev] IP4 checksum calculation error Hi I'm having a quite annoying problem. I have a node that among other things removes a small 1-2 byte header from the packet, so the IP checksum needs to be recalculated. For this I use the "

[vpp-dev] IP4 checksum calculation error

2017-08-16 Thread Tomas Brännström
Hi I'm having a quite annoying problem. I have a node that among other things removes a small 1-2 byte header from the packet, so the IP checksum needs to be recalculated. For this I use the "ip4_header_checksum" function. However, the result is completely wrong and I can't tell why. The IP4 header