Skip to content

Implement bitwise operations for Ipv4Addr #2398

Description

@canndrew

It's natural and common to apply bitwise operations to IPv4 addresses. For instance if I have an IP address 192.168.1.23 and a netmask 255.255.255.0 I might want to calculate:

192.168.1.23 & 255.255.255.0 => 192.168.1.0

It's possible to do this by converting to u32 and back, but I shouldn't have to.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-api[DEPRECATED; DO NOT USE]

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions