This repository was archived by the owner on Jul 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +1
-20
lines changed
Expand file tree Collapse file tree 3 files changed +1
-20
lines changed Original file line number Diff line number Diff line change 1- VERSION =1.2.1
1+ VERSION =1.2.2
22PACKAGES_DIR =compiled_packages
33
44all : test build
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ func main() {
3737 }()
3838
3939 go nm .SendPings ()
40- go nm .PersistentRoutes ()
4140
4241 nm .MonitorNeighbors ()
4342}
Original file line number Diff line number Diff line change @@ -190,24 +190,6 @@ func (nm *NeighborManager) SendPings() {
190190 }
191191}
192192
193- func (nm * NeighborManager ) PersistentRoutes () {
194- for {
195- nm .mu .Lock ()
196- neighbors := make ([]Neighbor , len (nm .reachableNeighbors ))
197- copy (neighbors , nm .reachableNeighbors )
198- nm .mu .Unlock ()
199-
200- log .Printf ("Adding persistent routes for %d neighbors" , len (neighbors ))
201- for _ , n := range neighbors {
202- if err := netutils .AddRoute (n .ip , n .linkIndex ); err != nil {
203- log .Printf ("Failed to add route for neighbor %s: %v" , n .ip .String (), err )
204- }
205- }
206-
207- <- time .After (30 * time .Second )
208- }
209- }
210-
211193func (nm * NeighborManager ) Cleanup () {
212194 nm .mu .Lock ()
213195 defer nm .mu .Unlock ()
You can’t perform that action at this time.
0 commit comments