Skip to content

Comments

Fix aggregate-approx option#441

Merged
Mzack9999 merged 5 commits intomainfrom
issue-430-fix-aa-flag
Sep 6, 2024
Merged

Fix aggregate-approx option#441
Mzack9999 merged 5 commits intomainfrom
issue-430-fix-aa-flag

Conversation

@RamanaReddy0M
Copy link
Contributor

@RamanaReddy0M RamanaReddy0M commented Jun 27, 2024

@RamanaReddy0M RamanaReddy0M requested a review from ehsandeep June 27, 2024 13:36
@RamanaReddy0M RamanaReddy0M self-assigned this Jun 27, 2024
@ehsandeep ehsandeep requested a review from dogancanbakir June 28, 2024 08:03
for _, ip := range ips {
if n, ok := cidrs[ip.IP.Mask(net.CIDRMask(24, 32)).String()]; ok {
var baseNet byte
var nowN, newN byte
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

names can be more descriptive

var baseNet byte
var nowN, newN byte
for i := 8; i > 0; i-- {
nowN = n.IP[3] & (1 << (i - 1)) >> (i - 1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be a small function with a descriptive name

@Mzack9999 Mzack9999 self-requested a review September 4, 2024 16:23
@Mzack9999 Mzack9999 merged commit 40291b3 into main Sep 6, 2024
@Mzack9999 Mzack9999 deleted the issue-430-fix-aa-flag branch September 6, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug with -aa

3 participants