- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for prefixContainIP (0.32 sec)
-
pkg/util/iptree/iptree.go
return ancestor.Masked() } // prefixContainIP returns true if the given IP is contained with the prefix, // is not the network address and also, if IPv4, is not the broadcast address. // This is required because the Kubernetes allocators reserve these addresses // so IPAddresses can not block deletion of this ranges. func prefixContainIP(prefix netip.Prefix, ip netip.Addr) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:04 UTC 2023 - 17.7K bytes - Viewed (0) -
pkg/util/iptree/iptree_test.go
ip: netip.MustParseAddr("2001:db2:1:2:3::1"), }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := prefixContainIP(tt.prefix, tt.ip); got != tt.want { t.Errorf("prefixContainIP() = %v, want %v", got, tt.want) } }) } } func BenchmarkInsertUpdate(b *testing.B) { r := New[bool]()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:04 UTC 2023 - 17.8K bytes - Viewed (0)