Skip to content

Set ss_len when creating SockAddr from std #468

@Berrysoft

Description

@Berrysoft

The sockaddr_storage type of BSD contains a field ss_len that represents the size of the sockaddr. When converting from SocketAddr etc., we need to set them correctly. Otherwise, it may report wrong result when comparing addresses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions