mirror of
https://github.com/clearlinux/netlink.git
synced 2026-06-16 02:15:47 +00:00
+1
-1
@@ -17,7 +17,7 @@ func RouteAdd(route *Route) error {
|
||||
return routeHandle(route, req, nl.NewRtMsg())
|
||||
}
|
||||
|
||||
// RouteAdd will delete a route from the system.
|
||||
// RouteDel will delete a route from the system.
|
||||
// Equivalent to: `ip route del $route`
|
||||
func RouteDel(route *Route) error {
|
||||
req := nl.NewNetlinkRequest(syscall.RTM_DELROUTE, syscall.NLM_F_ACK)
|
||||
|
||||
Reference in New Issue
Block a user