Skip to content

ipaddress.IPv6Network should not have a broadcast_address property #111442

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

Open
rpigott opened this issue Oct 29, 2023 · 0 comments
Open

ipaddress.IPv6Network should not have a broadcast_address property #111442

rpigott opened this issue Oct 29, 2023 · 0 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@rpigott
Copy link
Contributor

rpigott commented Oct 29, 2023

Bug report

Bug description:

ipv6 does not have broadcast addresses. The below result is nonsense since the returned addr is not a broadcast address, but one of the reserved anycast addresses on the network.

import ipaddress
ipaddress.ip_network("2600::/64").broadcast_address # IPv6Address('2600::ffff:ffff:ffff:ffff')

CPython versions tested on:

3.11

Operating systems tested on:

Linux

Linked PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants