add dante subscription discovery via arc protocol

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ian Gulliver
2026-01-23 11:30:40 -08:00
parent a157a2a5e4
commit 47b48337b3
6 changed files with 467 additions and 6 deletions

View File

@@ -75,9 +75,13 @@ func (t *Tendrils) handlePTPPacket(ifaceName string, srcIP net.IP, data []byte)
t.nodes.SetDanteClockMaster(srcIP)
}
func (n *Nodes) UpdateDante(name string, ip net.IP) {
func (n *Nodes) UpdateDante(name string, ip net.IP, arcPort int) {
if n.t.DebugDante {
log.Printf("[dante] mdns response: %s -> %s", name, ip)
log.Printf("[dante] mdns response: %s -> %s (arc port %d)", name, ip, arcPort)
}
n.Update(nil, nil, []net.IP{ip}, "", name, "dante")
if arcPort > 0 {
go n.t.probeDanteDeviceWithPort(ip, arcPort)
}
}