Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splitting doesn't show split subnets in CIDR #4

Open
tecknicaltom opened this issue Nov 12, 2021 · 0 comments
Open

Splitting doesn't show split subnets in CIDR #4

tecknicaltom opened this issue Nov 12, 2021 · 0 comments

Comments

@tecknicaltom
Copy link

When using sipcalc to split a network, the output does not show any of the resulting subnets in CIDR format. Instead, the section headers confusingly prints out the CIDR provided on the cmdline. For example:

$ sipcalc -s /17 -u 192.168.0.0/16  | grep /
-[ipv4 : 192.168.0.0/16] - 0
-[ipv4 : 192.168.0.0/16] - 0
-[ipv4 : 192.168.0.0/16] - 0

I see two potential ways to fix this:

  1. Add CIDR notation as an output line to print_cidr_info_v4
  2. Change the section header to reflect the subnet being printed. (e.g. with the above cmdline you'd see section headers:
    -[ipv4 : 192.168.0.0/17] - 0
    -[ipv4 : 192.168.0.128/17] - 0
    

I can supply a PR with either or both of these changes if you can share which you'd prefer.

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

No branches or pull requests

1 participant