#include <stdio.h>
#include "common.h"
#include "Util.h"

static uint8 ip_packet[] = {
	0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00, 0x00, 0x01,
	0x00, 0x06, 0x00, 0x14, 0x82, 0xb0, 0x82, 0xb1,
	0x00, 0x00, 0xa1, 0xfe, 0x00, 0x00, 0x00, 0x00,
	0x05, 0x02, 0x7f, 0xff, 0xd5, 0x80, 0x00, 0x00
};

int main () {
  uint16 res = Util::computeChecksum((const uint16*)ip_packet, 32);
  uint8* rst = (uint8*)&res;
  printf("Checksum = %x %x\n", rst[0], rst[1]);
}

