handle indianess in ip checksum calc with odd lengths

Reviewer: @jnealtowns