Skip to content

Commit bfaf880

Browse files
authored
Merge pull request #163 from polycube-network/pr/fix_horus_fix
pcn-iptables: fix wrong const type
2 parents ff6e368 + 851c3f5 commit bfaf880

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/services/pcn-firewall/src/defines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ namespace HorusConst {
105105

106106
// apply Horus mitigator optimization if there are at least # rules
107107
// matching the pattern, at ruleset begin
108-
const uint8_t MIN_RULE_SIZE_FOR_HORUS = 1;
108+
const uint32_t MIN_RULE_SIZE_FOR_HORUS = 1;
109109
const uint32_t MAX_RULE_SIZE_FOR_HORUS = 2048;
110110
}
111111

src/services/pcn-iptables/src/defines.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ const uint8_t DSTPORT = 4;
123123

124124
// apply Horus mitigator optimization if there are at least # rules
125125
// matching the pattern, at ruleset begin
126-
const uint8_t MIN_RULE_SIZE_FOR_HORUS = 1;
127-
const uint8_t MAX_RULE_SIZE_FOR_HORUS = 2048;
126+
const uint32_t MIN_RULE_SIZE_FOR_HORUS = 1;
127+
const uint32_t MAX_RULE_SIZE_FOR_HORUS = 2048;
128128

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

0 commit comments

Comments
 (0)