Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getLinkWithDestinationOf (0.19 sec)

  1. cni/pkg/repair/netns.go

    	}
    	return res, nil
    }
    
    func findNetworkIDByIP(ip string) (int, error) {
    	link, err := getLinkWithDestinationOf(ip)
    	if err != nil {
    		return 0, fmt.Errorf("find link for %v: %v", ip, err)
    	}
    	return link.Attrs().NetNsID, nil
    }
    
    func getLinkWithDestinationOf(ip string) (netlink.Link, error) {
    	routes, err := netlink.RouteListFiltered(
    		netlink.FAMILY_V4,
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Dec 20 22:14:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
Back to top