Skip to content

feat: forward local accept IP to the connection tagger#189

Merged
englishm merged 1 commit into
cloudflare:mainfrom
itzmanish:plumb-conn-interface
Jul 20, 2026
Merged

feat: forward local accept IP to the connection tagger#189
englishm merged 1 commit into
cloudflare:mainfrom
itzmanish:plumb-conn-interface

Conversation

@itzmanish

Copy link
Copy Markdown
Contributor

Expose the local IP a connection was accepted on and pass it to the relay's ConnectionTagger, so embedders can classify by inbound interface (e.g. an internal-facing VIP) even on a wildcard/anycast bind. The local port is always our fixed listening port, so only the destination IP the peer targeted is carried.

moq-native-ietf: add ConnInfo::local_ip, set from
quinn::Connection::local_ip() (the destination IP the establishing datagram arrived on). None when the platform does not expose it.

moq-relay-ietf: add ConnectionMeta::local_ip with a with_local_ip() builder and forward ConnInfo::local_ip into ConnectionTagger::tag.

Expose the local IP a connection was accepted on and pass it to the
relay's ConnectionTagger, so embedders can classify by inbound interface
(e.g. an internal-facing VIP) even on a wildcard/anycast bind. The local
port is always our fixed listening port, so only the destination IP the
peer targeted is carried.

moq-native-ietf: add ConnInfo::local_ip, set from
quinn::Connection::local_ip() (the destination IP the establishing
datagram arrived on). None when the platform does not expose it.

moq-relay-ietf: add ConnectionMeta::local_ip with a with_local_ip()
builder and forward ConnInfo::local_ip into ConnectionTagger::tag.
@englishm
englishm merged commit 9ff6c7e into cloudflare:main Jul 20, 2026
2 checks passed
@itzmanish
itzmanish deleted the plumb-conn-interface branch July 20, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants