Clang formatting

This commit is contained in:
Tomer Lev 2022-11-11 18:54:05 +02:00
parent 425a9585b4
commit 642d44009a
2 changed files with 3 additions and 2 deletions

View file

@ -3974,7 +3974,8 @@ const PortValPtr& ValManager::Port(uint32_t port_num, TransportProto port_type)
uint32_t port_masked = PortVal::Mask(port_num, port_type); uint32_t port_masked = PortVal::Mask(port_num, port_type);
if ( ports.find(port_masked) == ports.end() ) if ( ports.find(port_masked) == ports.end() )
ports[port_masked] = IntrusivePtr{AdoptRef{}, new PortVal(PortVal::Mask(port_num, port_type))}; ports[port_masked] = IntrusivePtr{AdoptRef{},
new PortVal(PortVal::Mask(port_num, port_type))};
return ports[port_masked]; return ports[port_masked];
} }

View file

@ -63,7 +63,7 @@ bool IPAnalyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet* packet)
} }
ip_hdr = std::make_shared<IP_Hdr>((const struct ip6_hdr*)data, false, ip_hdr = std::make_shared<IP_Hdr>((const struct ip6_hdr*)data, false,
static_cast<int>(len)); static_cast<int>(len));
packet->l3_proto = L3_IPV6; packet->l3_proto = L3_IPV6;
} }
else else