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

iface: check for ipv4 subnet broadcast addrs everywhere #462

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

Dirbaio
Copy link
Member

@Dirbaio Dirbaio commented Apr 7, 2021

#377 introduced subnet broadcast addr handling, but only in some places, causing #461.

This introduces is_broadcast_v4 and is_unicast_v4 functions which are equivalent to the wire ones except they check for subnet broadcast addrs. All uses for IPv4 addresses is replaced with these.

IPv6 is left untouched as there's no such thing as a "ipv6 subnet broadcast addr"

@Dirbaio Dirbaio force-pushed the subnet-broadcast-fix branch from 18afae0 to 93dc892 Compare April 7, 2021 00:23
@Dirbaio Dirbaio merged commit 58ce157 into master Apr 7, 2021
@Dirbaio Dirbaio deleted the subnet-broadcast-fix branch April 7, 2021 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant