Skip to content

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