()
| 124 | } |
| 125 | |
| 126 | func (r SelRoute) LogValue() slog.Value { |
| 127 | return slog.GroupValue( |
| 128 | slog.Any("nh", r.Nh), // Use Any if Nh is an object/interface |
| 129 | slog.String("router", string(r.NodeId)), |
| 130 | slog.String("prefix", r.Prefix.String()), |
| 131 | slog.Uint64("seqno", uint64(r.Seqno)), |
| 132 | slog.Uint64("metric", uint64(r.Metric)), |
| 133 | ) |
| 134 | } |
| 135 | |
| 136 | func (s *RouterState) GetNeighbour(node NodeId) *Neighbour { |
| 137 | nIdx := slices.IndexFunc(s.Neighbours, func(neighbour *Neighbour) bool { |