For example in the following example:
p.srcip = p.srcip;
if (heavy_hitter[p.srcip] == 0) {
hh_counter[p.srcip] = hh_counter[p.srcip] + 1;
if (hh_counter[p.srcip] == THRESHOLD) {
heavy_hitter[p.srcip] = 1;
}
}
We need to deal with p.srcip and heavy_hitter[p.srcip] separately
For example in the following example:
p.srcip = p.srcip;
if (heavy_hitter[p.srcip] == 0) {
hh_counter[p.srcip] = hh_counter[p.srcip] + 1;
if (hh_counter[p.srcip] == THRESHOLD) {
heavy_hitter[p.srcip] = 1;
}
}
We need to deal with p.srcip and heavy_hitter[p.srcip] separately