Browse Source

ifdef update

master
Nico Schottelius 3 years ago
parent
commit
0178a1a224
  1. 4
      p4src/checksum_diff.p4

4
p4src/checksum_diff.p4

@ -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…
Cancel
Save