Skip to content

UDP: no destination port in the type callback #497

Description

@hannesm

when implementing a DNS client, I would like to register the same callback on several ports. I can do so, but inside of the callback I cannot distinguish which port was written to (thus I cannot verify that the remote IP, remote port, local IP, local port are a good combination of datagrams to accept).

for now, only the source IP address is checked against an expected one, is this sufficient?

there's some asymmetry in the type callback, including a src and src_port, and a dst, but no dst_port.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions