Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ReadSysctl (0.09 sec)

  1. cni/pkg/iptables/iptables_linux.go

    }
    
    func DelLoopbackRoutes(cfg *Config) error {
    	return forEachLoopbackRoute(cfg, "remove", netlink.RouteDel)
    }
    
    const ipv6DisabledLo = "/proc/sys/net/ipv6/conf/lo/disable_ipv6"
    
    func ReadSysctl(key string) (string, error) {
    	data, err := os.ReadFile(key)
    	if err != nil {
    		return "", err
    	}
    	return strings.TrimSpace(string(data)), nil
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Sep 06 09:44:28 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top