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

network.ipv4_cidrにipv6 cidrを入れるとレスポンスが以上に悪化する #235

Open
h-otter opened this issue Feb 22, 2020 · 0 comments

Comments

@h-otter
Copy link
Member

h-otter commented Feb 22, 2020

以下の関数は O(2^n) を探索する。このときnはサブネットマスクの逆である。つまり、ipv6の /64 ネットワークを指定された場合は O(2^64) forを回してしまい一生帰ってこない。

https://github.com/n0stack/n0stack/blob/master/n0core/pkg/util/net/ip.go#L21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant