Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IpsetCreate (0.1 sec)

  1. cni/pkg/ipset/nldeps_linux.go

    type realDeps struct{}
    
    func (m *realDeps) ipsetIPHashCreate(name string, v6 bool) error {
    	var family uint8
    
    	if v6 {
    		family = unix.AF_INET6
    	} else {
    		family = unix.AF_INET
    	}
    	err := netlink.IpsetCreate(name, "hash:ip", netlink.IpsetCreateOptions{Comments: true, Replace: true, Family: family})
    	// Note there appears to be a bug in vishvananda/netlink here:
    	// https://github.com/vishvananda/netlink/issues/992
    	//
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jul 18 23:53:18 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top