Try fix shifting errors in first block
This commit is contained in:
parent
266ab1d036
commit
6b478c87f1
2 changed files with 26 additions and 3 deletions
|
|
@ -132,9 +132,9 @@ action delta_ipv4_from_v6_to_v4()
|
|||
|
||||
Does NOT contain payload! -> can be done manually */
|
||||
|
||||
shift_tmp = (bit<16>) (hdr.ipv4.version << 12) +
|
||||
(bit<16>) (hdr.ipv4.ihl << 8) +
|
||||
(bit<16>) (hdr.ipv4.diff_serv << 2) +
|
||||
shift_tmp = ((bit<16>) hdr.ipv4.version) << 12) +
|
||||
((bit<16>) hdr.ipv4.ihl) << 8) +
|
||||
((bit<16>) hdr.ipv4.diff_serv) << 2) +
|
||||
((bit<16>) hdr.ipv4.ecn);
|
||||
tmp = tmp + shift_tmp;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue