Skip to content

Commit

Permalink
Merge pull request #163 from polycube-network/pr/fix_horus_fix
Browse files Browse the repository at this point in the history
pcn-iptables: fix wrong const type
  • Loading branch information
frisso committed Jun 28, 2019
2 parents ff6e368 + 851c3f5 commit bfaf880
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/services/pcn-firewall/src/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ namespace HorusConst {

// apply Horus mitigator optimization if there are at least # rules
// matching the pattern, at ruleset begin
const uint8_t MIN_RULE_SIZE_FOR_HORUS = 1;
const uint32_t MIN_RULE_SIZE_FOR_HORUS = 1;
const uint32_t MAX_RULE_SIZE_FOR_HORUS = 2048;
}

Expand Down
4 changes: 2 additions & 2 deletions src/services/pcn-iptables/src/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ const uint8_t DSTPORT = 4;

// apply Horus mitigator optimization if there are at least # rules
// matching the pattern, at ruleset begin
const uint8_t MIN_RULE_SIZE_FOR_HORUS = 1;
const uint8_t MAX_RULE_SIZE_FOR_HORUS = 2048;
const uint32_t MIN_RULE_SIZE_FOR_HORUS = 1;
const uint32_t MAX_RULE_SIZE_FOR_HORUS = 2048;

// Enable Horus optimization
// We want to disable Horus by default while we decide a policy to apply it or
Expand Down

0 comments on commit bfaf880

Please sign in to comment.