- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for offsetAddress (0.14 sec)
-
pkg/registry/core/service/ipallocator/ipallocator.go
rangeOffset := calculateRangeOffset(cidr) offsetAddress, err := addOffsetAddress(ipFirst, uint64(rangeOffset)) if err != nil { return nil, err } a := &Allocator{ cidr: cidr, prefix: prefix, firstAddress: ipFirst, lastAddress: ipLast, rangeOffset: rangeOffset, offsetAddress: offsetAddress, size: size, family: family,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:04 UTC 2023 - 17K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/ipallocator_test.go
}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { got, err := addOffsetAddress(tt.address, tt.offset) if !reflect.DeepEqual(got, tt.want) || err != nil { t.Errorf("offsetAddress() = %v, want %v", got, tt.want) } // double check to avoid mistakes on the hardcoded values // avoid large numbers or it will timeout the test if tt.offset < 2048 { want := tt.address
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jun 25 13:14:46 UTC 2023 - 24.2K bytes - Viewed (0)