Skip to content

Remove IP version and next header checks for raw sockets #1064

Open
@KingCol13

Description

@KingCol13

RawSocket will currently only send and receive packets which match the given ip_version and ip_protocol. I think the current behaviour tries to match linux sockets. It could be useful to accept all packets, independent of IpVersion and IpProtocol via the same socket however.

Currently if I want to receive Ipv4 and Ipv6 packets for TCP, UDP and ICMP the only way I can see to do this is to create 6 different sockets with 6x the number of buffers (please let me know if I'm missing something).

Perhaps the ip_version and ip_protocol fields could be made Options, or another ExtraRaw socket created if we don't want to change existing behaviour.

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