MCPcopy Create free account
hub / github.com/encodeous/nylon / TableDeleteRoute

Method TableDeleteRoute

core/router.go:131–138  ·  view source on GitHub ↗
(prefix netip.Prefix)

Source from the content-addressed store, hash-verified

129}
130
131func (n *Nylon) TableDeleteRoute(prefix netip.Prefix) {
132 nf := n.router.ForwardTable.Load().Clone()
133 ne := n.router.ExitTable.Load().Clone()
134 nf.Delete(prefix)
135 ne.Delete(prefix)
136 n.router.ForwardTable.Store(nf)
137 n.router.ExitTable.Store(ne)
138}
139
140type IOPending struct {
141 // SeqnoReq values represent a pair of (seqno, hop count)

Callers

nothing calls this directly

Calls 2

CloneMethod · 0.80
DeleteMethod · 0.80

Tested by

no test coverage detected