github.com/sagernet/netlink@v0.0.0-20240612041022-b9a21c07ac6a/route_unspecified.go (about)

     1  //go:build !linux
     2  // +build !linux
     3  
     4  package netlink
     5  
     6  import "strconv"
     7  
     8  func (r *Route) ListFlags() []string {
     9  	return []string{}
    10  }
    11  
    12  func (n *NexthopInfo) ListFlags() []string {
    13  	return []string{}
    14  }
    15  
    16  func (s Scope) String() string {
    17  	return "unknown"
    18  }
    19  
    20  func (p RouteProtocol) String() string {
    21  	return strconv.Itoa(int(p))
    22  }