Skip to content

Implement bitwise operations for Ipv4Addr #2398

@canndrew

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the RFC.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions