This commit is contained in:
Nico Schottelius 2019-07-21 10:52:00 +02:00
parent 6b478c87f1
commit 71686bfa53

View file

@ -132,10 +132,10 @@ action delta_ipv4_from_v6_to_v4()
Does NOT contain payload! -> can be done manually */ Does NOT contain payload! -> can be done manually */
shift_tmp = ((bit<16>) hdr.ipv4.version) << 12) + shift_tmp = ( ((bit<16>) hdr.ipv4.version) << 12) +
((bit<16>) hdr.ipv4.ihl) << 8) + ( ((bit<16>) hdr.ipv4.ihl) << 8) +
((bit<16>) hdr.ipv4.diff_serv) << 2) + ( ((bit<16>) hdr.ipv4.diff_serv) << 2) +
((bit<16>) hdr.ipv4.ecn); ( (bit<16>) hdr.ipv4.ecn);
tmp = tmp + shift_tmp; tmp = tmp + shift_tmp;
// tmp = tmp + (bit<16>) hdr.ipv4.version; /* 4 bit */ // tmp = tmp + (bit<16>) hdr.ipv4.version; /* 4 bit */