ifdef update
This commit is contained in:
parent
ade37e1a94
commit
0178a1a224
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue