This commit is contained in:
Quentin McGaw
2023-06-28 14:42:18 +00:00
parent 92011205be
commit c3eca4a17c
8 changed files with 62 additions and 5 deletions

View File

@@ -32,6 +32,11 @@ type Route struct {
Type int
}
func (r Route) String() string {
return fmt.Sprintf("{link %d, dst %s, src %s, gw %s, priority %d, family %d, table %d, type %d}",
r.LinkIndex, r.Dst, r.Src, r.Gw, r.Priority, r.Family, r.Table, r.Type)
}
type Rule struct {
Priority int
Family int