Base: Clean up explicit uses of namespaces in places where they're not necessary.

This commit covers all of the common and base classes.
This commit is contained in:
Tim Wojtulewicz 2020-08-21 09:29:37 -07:00
parent 9f802b2a4d
commit fe0c22c789
240 changed files with 6823 additions and 6787 deletions

View file

@ -37,7 +37,7 @@ int ones_complement_checksum(const void* p, int b, uint32_t sum)
return sum;
}
int ones_complement_checksum(const zeek::IPAddr& a, uint32_t sum)
int ones_complement_checksum(const IPAddr& a, uint32_t sum)
{
const uint32_t* bytes;
int len = a.GetBytes(&bytes);
@ -60,7 +60,7 @@ int icmp_checksum(const struct icmp* icmpp, int len)
}
#ifdef ENABLE_MOBILE_IPV6
int mobility_header_checksum(const zeek::IP_Hdr* ip)
int mobility_header_checksum(const IP_Hdr* ip)
{
const ip6_mobility* mh = ip->MobilityHeader();
@ -85,7 +85,7 @@ int mobility_header_checksum(const zeek::IP_Hdr* ip)
}
#endif
int icmp6_checksum(const struct icmp* icmpp, const zeek::IP_Hdr* ip, int len)
int icmp6_checksum(const struct icmp* icmpp, const IP_Hdr* ip, int len)
{
// ICMP6 uses the same checksum function as ICMP4 but a different
// pseudo-header over which it is computed.
@ -133,8 +133,8 @@ char addr_to_class(uint32_t addr)
return 'A';
}
const char* fmt_conn_id(const zeek::IPAddr& src_addr, uint32_t src_port,
const zeek::IPAddr& dst_addr, uint32_t dst_port)
const char* fmt_conn_id(const IPAddr& src_addr, uint32_t src_port,
const IPAddr& dst_addr, uint32_t dst_port)
{
static char buffer[512];
@ -148,8 +148,8 @@ const char* fmt_conn_id(const zeek::IPAddr& src_addr, uint32_t src_port,
const char* fmt_conn_id(const uint32_t* src_addr, uint32_t src_port,
const uint32_t* dst_addr, uint32_t dst_port)
{
zeek::IPAddr src(IPv6, src_addr, zeek::IPAddr::Network);
zeek::IPAddr dst(IPv6, dst_addr, zeek::IPAddr::Network);
IPAddr src(IPv6, src_addr, IPAddr::Network);
IPAddr dst(IPv6, dst_addr, IPAddr::Network);
return fmt_conn_id(src, src_port, dst, dst_port);
}