@@ -14,7 +14,7 @@ namespace {
14
14
using TUnboxedValue = NKikimr::NUdf::TUnboxedValue;
15
15
using TUnboxedValuePod = NKikimr::NUdf::TUnboxedValuePod;
16
16
17
- ui8 GetAddressRangePrefix (const TIpAddressRange & range) {
17
+ ui8 GetAddressRangePrefix (const TIpAddressRange& range) {
18
18
if (range.Contains (TIpv6Address (ui128 (0 ), TIpv6Address::Ipv6)) && range.Contains (TIpv6Address (ui128 (-1 ), TIpv6Address::Ipv6))) {
19
19
return 0 ;
20
20
}
@@ -49,7 +49,7 @@ namespace {
49
49
return {a, b, c, d};
50
50
}
51
51
52
- std::pair<TRawIp4, TRawIp4> ApplyMask (const TRawIp4 & mask) const {
52
+ std::pair<TRawIp4, TRawIp4> ApplyMask (const TRawIp4& mask) const {
53
53
return {{
54
54
ui8 (a & mask.a ),
55
55
ui8 (b & mask.b ),
@@ -67,7 +67,7 @@ namespace {
67
67
struct TRawIp4Subnet {
68
68
TRawIp4 base, mask;
69
69
70
- static TRawIp4Subnet FromIpRange (const TIpAddressRange & range) {
70
+ static TRawIp4Subnet FromIpRange (const TIpAddressRange& range) {
71
71
return {TRawIp4::FromIpAddress (*range.Begin ()), TRawIp4::MaskFromPrefix (GetAddressRangePrefix (range))};
72
72
}
73
73
@@ -112,7 +112,7 @@ namespace {
112
112
};
113
113
}
114
114
115
- std::pair<TRawIp6, TRawIp6> ApplyMask (const TRawIp6 & mask) const {
115
+ std::pair<TRawIp6, TRawIp6> ApplyMask (const TRawIp6& mask) const {
116
116
return { {
117
117
ui8 (a1 & mask.a1 ),
118
118
ui8 (a0 & mask.a0 ),
@@ -154,7 +154,7 @@ namespace {
154
154
struct TRawIp6Subnet {
155
155
TRawIp6 base, mask;
156
156
157
- static TRawIp6Subnet FromIpRange (const TIpAddressRange & range) {
157
+ static TRawIp6Subnet FromIpRange (const TIpAddressRange& range) {
158
158
return {TRawIp6::FromIpAddress (*range.Begin ()), TRawIp6::MaskFromPrefix (GetAddressRangePrefix (range))};
159
159
}
160
160
@@ -358,4 +358,4 @@ namespace {
358
358
TGetSubnet, \
359
359
TSubnetMatch, \
360
360
TGetSubnetByMask
361
- }
361
+ }
0 commit comments