Skip to content

Commit

Permalink
Enable arith for checksum target field (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninbas authored May 19, 2017
1 parent 9a05ff5 commit 789ef98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bm_sim/P4Objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1856,6 +1856,7 @@ P4Objects::init_checksums(const Json::Value &cfg_root) {
header_id_t header_id = get_header_id(header_name);
const string field_name = cfg_cksum_field[1].asString();
int field_offset = get_field_offset(header_id, field_name);
enable_arith(header_id, field_offset);

Checksum *checksum;
if (checksum_type == "ipv4") {
Expand Down

0 comments on commit 789ef98

Please sign in to comment.