ifdef update

This commit is contained in:
Nico Schottelius 2019-07-10 13:46:00 +02:00
parent ade37e1a94
commit 0178a1a224

View file

@ -5,7 +5,7 @@
#include "headers.p4"
#include "settings.p4"
#define NICO_DELTA_CHECKSUM 1
#define USE_NICO_DELTA_CHECKSUM 1
/*************************************************************************
* Parser
@ -193,7 +193,7 @@ control MyIngress(inout headers hdr,
}
}
if(hdr.udp.isValid()) {
#ifdef NICO_DELTA_CHECKSUM
#ifdef USE_NICO_DELTA_CHECKSUM
v4sum();
v6sum();
bit<16> diff = meta.v6sum - meta.v4sum;