Try replacing += syntax with explicit
This commit is contained in:
parent
ff383e3b08
commit
c714b2748b
1 changed files with 1 additions and 1 deletions
|
@ -623,7 +623,7 @@ Echo or Echo Reply Message
|
|||
action v4sum() {
|
||||
bit<16> localsum = 0;
|
||||
|
||||
localsum += hdr.ipv4.src[15:0]; // 16 bit
|
||||
localsum = localsum + hdr.ipv4.src[15:0]; // 16 bit
|
||||
localsum += hdr.ipv4.src[31:16]; // 16 bit
|
||||
localsum += hdr.ipv4.dst[15:0]; // 16 bit
|
||||
localsum += hdr.ipv4.dst[31:16]; // 16 bit
|
||||
|
|
Loading…
Reference in a new issue