We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4cde2de + d509182 commit b50b84cCopy full SHA for b50b84c
2 files changed
src/services/pcn-k8switch/src/Service.cpp
@@ -325,7 +325,7 @@ void Service::updateKernelServiceMap() {
325
// In doesn't indicate a real backend
326
backend value{
327
.ip = utils::ip_string_to_be_uint(getVip()),
328
- .port = consistent_array.size(),
+ .port = uint8_t(consistent_array.size()),
329
.proto = 0,
330
};
331
// logger()->trace("Setting Service map with key: {0} and value: {1}",
src/services/pcn-nat/src/Nat.cpp
@@ -163,7 +163,7 @@ std::shared_ptr<NattingTable> Nat::getNattingTable(
163
.dst_ip = utils::ip_string_to_be_uint(internalDst),
164
.src_port = htons(internalSport),
165
.dst_port = htons(internalDport),
166
- .proto = std::stol(proto),
+ .proto = uint8_t(std::stol(proto)),
167
168
169
st_v value = table.get(map_key);
0 commit comments