first_action += f"struct persrc_rate4_entry *rate = rate_ptr.rate;\n"
v4persrcratelimits.append((high_byte + 1) * 4096)
elif mid_byte <= 64:
first_action += f"const uint64_t srcip = BE128BEHIGH64(ip6->saddr & MASK6({mid_byte}));\n"
first_action += f"void *rate_map = &v5_src_rate_{len(v5persrcratelimits)};\n"
first_action += f"struct persrc_rate4_entry *rate = rate_ptr.rate;\n"
v4persrcratelimits.append((high_byte + 1) * 4096)
elif mid_byte <= 64:
first_action += f"const uint64_t srcip = BE128BEHIGH64(ip6->saddr & MASK6({mid_byte}));\n"
first_action += f"void *rate_map = &v5_src_rate_{len(v5persrcratelimits)};\n"