moq-webrtc: answer each peer from the local address it reached on a multi-homed wildcard bind

Aperta
#10,324 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start by tracing Server::bind and Server::feed, then follow how Datagram.local and Transmit.src_ip move through the mux to the agent. Check the relay embedding documentation and the behavior introduced in PR #10317. Done means replies use the local IP each peer reached, with a test covering two loopback aliases on a wildcard bind.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

moq-webrtc's server answers from whatever source address the kernel picks, on both of its sockets:

  • Server::bind on a wildcard address (0.0.0.0, [::]) replies with UdpSocket::send_to.
  • Server::feed replies through moq_tokio::quic::demux::WebRtc::send with Transmit.src_ip: None.

On a host with several local addresses, the kernel's route lookup can pick a different source than the address the peer sent to. ICE matches a check's response by its 4-tuple, so the check fails, and DTLS and RTP replies from the wrong address are dropped. The relay embedding doc already warns embedders to set src_ip to the Datagram.local being answered.

Possible shape:

  • Carry the local IP each inbound datagram arrived on (Datagram.local from the feed, IP_PKTINFO/IPV6_RECVPKTINFO on a bound socket) through the mux to the agent.
  • Answer each remote from the local IP it last reached, which for a connected session is the selected pair's.
  • Test it with two loopback aliases on a wildcard bind.

Found while landing Server::feed (https://github.com/moq-dev/moq/pull/10317), which kept the bound server's behavior.

(Written by Claude Opus 5.5)

Lingua principale
Rust
Stelle
1.6k
Fork
251
Merge medio
10h 10m
PR unite (30g)
832

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di moq-dev/moq

Tutte le issue di moq-dev/moq

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.