- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for MaxElem (0.06 sec)
-
pkg/proxy/ipvs/ipset/ipset.go
} // check max elem value of ipset if set.MaxElem <= 0 { return fmt.Errorf("invalid MaxElem %d", set.MaxElem) } return nil } // setIPSetDefaults sets some IPSet fields if not present to their default values. func (set *IPSet) setIPSetDefaults() { // Setting default values if not present if set.HashSize == 0 { set.HashSize = 1024 } if set.MaxElem == 0 { set.MaxElem = 65536 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 17.1K bytes - Viewed (0) -
pkg/proxy/ipvs/ipset/ipset_test.go
SetType: HashIPPort, HashFamily: ProtocolFamilyIPV4, HashSize: 1024, MaxElem: 1024, }, expectErr: false, desc: "No Port range", }, { // case[1] ipset: &IPSet{ Name: "SET", SetType: BitmapPort, HashFamily: ProtocolFamilyIPV6, HashSize: 65535, MaxElem: 2048, PortRange: DefaultPortRange, }, expectErr: false,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 41.5K bytes - Viewed (0)