Skip to content

natmap daemon allocates on the mapping flow #31

Description

@FAZuH

31 — natmap daemon allocates on the mapping flow

What to build: the natmap daemon's mapping endpoint accepts a mapping request without an explicit host port and allocates one from its PortAllocator, returning the chosen port in the response. When the requested host port is already taken, it returns 409 exactly as today. The typed client can send the no-port form and read back the allocated port.

Blocked by: None — can start immediately.

Status: ready-for-agent

  • Mapping request with no host port → daemon allocates a free port via PortAllocator and returns it in the response
  • Mapping request with a taken host port → 409, unchanged
  • Typed client sends a mapping request without a host port and reads back the allocated port
  • Allocate→install→rollback still holds (an allocated port is released if the install fails)
  • Unit-tested over the in-process router with a fake iptables adapter; natmap lib suite green

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

    ready-for-agentFully specified, ready for an AFK agent

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions