Skip to content

RFC 7252: bind response matching to endpoint, MID, and token #21

Closed

Description

@maikebing

Scope

At baseline 1abe69a, Matcher primarily uses token lookup for responses and does not consistently verify the response source endpoint. Piggybacked ACK MID mismatches are logged but can continue through matching. Empty ACK/RST matching must also bind the remote endpoint.

References:

  • RFC 7252 §4.4 (ACK/RST endpoint and MID matching)
  • RFC 7252 §5.3.2 (response/request matching)

Acceptance criteria

  • A response from the wrong address or port cannot complete a unicast exchange merely because its token matches.
  • A piggybacked response must match endpoint, MID, and token.
  • Empty ACK/RST must match endpoint and MID; a wrong-source message cannot change exchange state.
  • Correct-source separate responses, retransmissions, duplicate handling, Observe notifications, and IPv4/IPv6 port comparisons remain valid.
  • Existing multicast behavior, if supported, is documented as an explicit exception with regression coverage; unsupported multicast is not advertised as complete.
  • Add baseline-failing and fixed regression tests without changing the public host API.

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