client-interface-cleanup #6

Merged
johnnylee merged 14 commits from client-interface-cleanup into main 2025-09-17 08:00:13 +00:00
Showing only changes of commit a0b7ecbfe0 - Show all commits

View File

@ -163,16 +163,12 @@ func (r *remoteFSM) stateServer_onSyn(msg controlMsg[packetSyn]) {
r.lastSeen = time.Now() r.lastSeen = time.Now()
p := msg.Packet p := msg.Packet
if p.TraceID == r.traceID {
return
}
r.traceID = p.TraceID
// Before we can respond to this packet, we need to make sure the
// route is setup properly.
conf := r.conf() conf := r.conf()
// New trace ID => Update the route configuration.
if p.TraceID != r.traceID {
r.traceID = p.TraceID
conf.Up = true conf.Up = true
conf.Direct = p.Direct conf.Direct = p.Direct
conf.DirectAddr = msg.SrcAddr conf.DirectAddr = msg.SrcAddr
@ -181,6 +177,7 @@ func (r *remoteFSM) stateServer_onSyn(msg controlMsg[packetSyn]) {
r.updateConf(conf) r.updateConf(conf)
r.logf("Got SYN.") r.logf("Got SYN.")
}
r.sendControl(conf, packetAck{ r.sendControl(conf, packetAck{
TraceID: p.TraceID, TraceID: p.TraceID,