_ZNK4pcpp13EnumClassHashINS_12Asn1TagClassELb0EEclES1_:
  123|      8|		{
  124|      8|			return static_cast<std::underlying_type_t<EnumClass>>(value);
  125|      8|		}
_ZNK4pcpp13EnumClassHashINS_20Asn1UniversalTagTypeELb0EEclES1_:
  123|     76|		{
  124|     76|			return static_cast<std::underlying_type_t<EnumClass>>(value);
  125|     76|		}
_ZNK4pcpp13EnumClassHashINS_17LdapOperationType5ValueELb0EEclES2_:
  123|  15.8k|		{
  124|  15.8k|			return static_cast<std::underlying_type_t<EnumClass>>(value);
  125|  15.8k|		}
_ZNK4pcpp13EnumClassHashINS_14LdapResultCode5ValueELb0EEclES2_:
  123|  4.03k|		{
  124|  4.03k|			return static_cast<std::underlying_type_t<EnumClass>>(value);
  125|  4.03k|		}
_ZNK4pcpp13EnumClassHashINS_22LdapSearchRequestLayer18SearchRequestScope5ValueELb0EEclES3_:
  123|  1.36k|		{
  124|  1.36k|			return static_cast<std::underlying_type_t<EnumClass>>(value);
  125|  1.36k|		}
_ZNK4pcpp13EnumClassHashINS_22LdapSearchRequestLayer12DerefAliases5ValueELb0EEclES3_:
  123|     10|		{
  124|     10|			return static_cast<std::underlying_type_t<EnumClass>>(value);
  125|     10|		}
NflogLayer.cpp:_ZN4pcppL5alignILi4EEEii:
   51|  14.2k|	{
   52|       |		// Only works for alignment with power of 2
   53|  14.2k|		constexpr bool isPowerOfTwo = alignment && ((alignment & (alignment - 1)) == 0);
  ------------------
  |  Branch (53:33): [True: 0, Folded]
  |  Branch (53:46): [True: 0, Folded]
  ------------------
   54|  14.2k|		static_assert(isPowerOfTwo, "Alignment must be a power of 2");
   55|  14.2k|		int mask = alignment - 1;
   56|  14.2k|		return (number + mask) & ~mask;
   57|  14.2k|	}

_ZN4pcpp11IPv4AddressC2Ej:
   38|   884k|		{
   39|   884k|			memcpy(m_Bytes.data(), &addrAsInt, sizeof(addrAsInt));
   40|   884k|		}
_ZN4pcpp11IPv4AddressC2EPKh:
   46|  10.4k|		IPv4Address(const uint8_t bytes[4]) : IPv4Address(bytes, 4)
   47|  10.4k|		{}
_ZNK4pcpp11IPv4Address7toBytesEv:
   71|   695k|		{
   72|   695k|			return m_Bytes.data();
   73|   695k|		}
_ZN4pcpp11IPv6AddressC2EPKh:
  174|   156k|		IPv6Address(const uint8_t bytes[16]) : IPv6Address(bytes, 16)
  175|   156k|		{}
_ZNK4pcpp11IPv6Address7toBytesEv:
  197|   109k|		{
  198|   109k|			return m_Bytes.data();
  199|   109k|		}
_ZNK4pcpp11IPv6Address6copyToEPh:
  255|  46.1k|		{
  256|  46.1k|			copyTo(arr, 16);
  257|  46.1k|		}
_ZN4pcpp9IPAddressC2ERKNS_11IPv4AddressE:
  335|   282k|		IPAddress(const IPv4Address& addr) : m_Type(IPv4AddressType), m_IPv4(addr)
  336|   282k|		{}
_ZN4pcpp9IPAddressC2ERKNS_11IPv6AddressE:
  340|  44.9k|		IPAddress(const IPv6Address& addr) : m_Type(IPv6AddressType), m_IPv6(addr)
  341|  44.9k|		{}
_ZNK4pcpp9IPAddress7getIPv4Ev:
  394|   247k|		{
  395|   247k|			return m_IPv4;
  396|   247k|		}
_ZNK4pcpp9IPAddress7getIPv6Ev:
  401|  44.9k|		{
  402|  44.9k|			return m_IPv6;
  403|  44.9k|		}
_ZNK4pcpp11IPv4Address5toIntEv:
  156|   249k|	{
  157|   249k|		uint32_t addr = 0;
  158|   249k|		memcpy(&addr, m_Bytes.data(), m_Bytes.size() * sizeof(uint8_t));
  159|   249k|		return addr;
  160|   249k|	}
_ZN4pcpp11IPv4AddressC2Ev:
   33|  44.9k|		IPv4Address() = default;
_ZN4pcpp11IPv6AddressC2Ev:
  168|   282k|		IPv6Address() = default;

_ZN4pcpp6Logger11getInstanceEv:
  367|  21.6M|		{
  368|  21.6M|			static Logger instance;
  369|  21.6M|			return instance;
  370|  21.6M|		}
_ZN4pcpp6Logger12suppressLogsEv:
  319|  3.41k|		{
  320|  3.41k|			m_LogsEnabled = false;
  321|  3.41k|		}
_ZN4pcpp9LogSourceC2ENS_9LogModuleEPKcS3_i:
  137|   180k|		    : file(file), function(function), line(line), logModule(logModule)
  138|   180k|		{}
_ZN4pcpp8internal10LogContext4initENS_8LogLevelERKNS_9LogSourceE:
  187|   180k|			{
  188|   180k|				m_Source = source;
  189|   180k|				m_Level = level;
  190|   180k|				m_Stream.clear();
  191|   180k|				m_Stream.str({});
  192|   180k|			}
_ZNK4pcpp6Logger14isDebugEnabledENS_9LogModuleE:
  278|  81.8k|		{
  279|  81.8k|			return m_LogModulesArray[module] == LogLevel::Debug;
  280|  81.8k|		}
_ZNK4pcpp6Logger9shouldLogENS_8LogLevelENS_9LogModuleE:
  287|  21.5M|		{
  288|  21.5M|			return level != LogLevel::Off && m_LogModulesArray[module] >= level;
  ------------------
  |  Branch (288:11): [True: 21.5M, False: 0]
  |  Branch (288:37): [True: 180k, False: 21.4M]
  ------------------
  289|  21.5M|		}
_ZN4pcpp8internal10LogContextlsIA52_cEERS1_RKT_:
  198|  4.43k|			{
  199|  4.43k|				m_Stream << value;
  200|  4.43k|				return *this;
  201|  4.43k|			}
_ZN4pcpp8internal10LogContextlsINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEERS1_RKT_:
  198|    175|			{
  199|    175|				m_Stream << value;
  200|    175|				return *this;
  201|    175|			}
_ZN4pcpp8internal10LogContextlsIA2_cEERS1_RKT_:
  198|    175|			{
  199|    175|				m_Stream << value;
  200|    175|				return *this;
  201|    175|			}
_ZN4pcpp8internal10LogContextlsIA20_cEERS1_RKT_:
  198|    175|			{
  199|    175|				m_Stream << value;
  200|    175|				return *this;
  201|    175|			}
_ZN4pcpp8internal10LogContextlsIA46_cEERS1_RKT_:
  198|  7.71k|			{
  199|  7.71k|				m_Stream << value;
  200|  7.71k|				return *this;
  201|  7.71k|			}
_ZN4pcpp8internal10LogContextlsIA86_cEERS1_RKT_:
  198|    918|			{
  199|    918|				m_Stream << value;
  200|    918|				return *this;
  201|    918|			}
_ZN4pcpp8internal10LogContextlsIA26_cEERS1_RKT_:
  198|    398|			{
  199|    398|				m_Stream << value;
  200|    398|				return *this;
  201|    398|			}
_ZN4pcpp8internal10LogContextlsIA31_cEERS1_RKT_:
  198|  32.8k|			{
  199|  32.8k|				m_Stream << value;
  200|  32.8k|				return *this;
  201|  32.8k|			}
_ZN4pcpp8internal10LogContextlsIA25_cEERS1_RKT_:
  198|  36.9k|			{
  199|  36.9k|				m_Stream << value;
  200|  36.9k|				return *this;
  201|  36.9k|			}
_ZN4pcpp8internal10LogContextlsIA50_cEERS1_RKT_:
  198|  3.79k|			{
  199|  3.79k|				m_Stream << value;
  200|  3.79k|				return *this;
  201|  3.79k|			}
_ZN4pcpp8internal10LogContextlsIA77_cEERS1_RKT_:
  198|    111|			{
  199|    111|				m_Stream << value;
  200|    111|				return *this;
  201|    111|			}
_ZN4pcpp8internal10LogContextlsIA70_cEERS1_RKT_:
  198|  1.62k|			{
  199|  1.62k|				m_Stream << value;
  200|  1.62k|				return *this;
  201|  1.62k|			}
_ZN4pcpp8internal10LogContextlsIA39_cEERS1_RKT_:
  198|  3.99k|			{
  199|  3.99k|				m_Stream << value;
  200|  3.99k|				return *this;
  201|  3.99k|			}
_ZN4pcpp8internal10LogContextlsIA21_cEERS1_RKT_:
  198|    198|			{
  199|    198|				m_Stream << value;
  200|    198|				return *this;
  201|    198|			}
_ZN4pcpp8internal10LogContextlsIA54_cEERS1_RKT_:
  198|  1.24k|			{
  199|  1.24k|				m_Stream << value;
  200|  1.24k|				return *this;
  201|  1.24k|			}
_ZN4pcpp8internal10LogContextlsIA44_cEERS1_RKT_:
  198|  1.79k|			{
  199|  1.79k|				m_Stream << value;
  200|  1.79k|				return *this;
  201|  1.79k|			}
_ZN4pcpp8internal10LogContextlsIA33_cEERS1_RKT_:
  198|    551|			{
  199|    551|				m_Stream << value;
  200|    551|				return *this;
  201|    551|			}
_ZN4pcpp8internal10LogContextlsIA45_cEERS1_RKT_:
  198|  15.2k|			{
  199|  15.2k|				m_Stream << value;
  200|  15.2k|				return *this;
  201|  15.2k|			}
_ZN4pcpp8internal10LogContextlsIA36_cEERS1_RKT_:
  198|    373|			{
  199|    373|				m_Stream << value;
  200|    373|				return *this;
  201|    373|			}
_ZN4pcpp8internal10LogContextlsIA14_cEERS1_RKT_:
  198|    551|			{
  199|    551|				m_Stream << value;
  200|    551|				return *this;
  201|    551|			}
_ZN4pcpp8internal10LogContextlsIA72_cEERS1_RKT_:
  198|  5.58k|			{
  199|  5.58k|				m_Stream << value;
  200|  5.58k|				return *this;
  201|  5.58k|			}
_ZN4pcpp8internal10LogContextlsIiEERS1_RKT_:
  198|  55.6k|			{
  199|  55.6k|				m_Stream << value;
  200|  55.6k|				return *this;
  201|  55.6k|			}
_ZN4pcpp8internal10LogContextlsIA142_cEERS1_RKT_:
  198|    920|			{
  199|    920|				m_Stream << value;
  200|    920|				return *this;
  201|    920|			}
_ZN4pcpp8internal10LogContextlsIA76_cEERS1_RKT_:
  198|  2.57k|			{
  199|  2.57k|				m_Stream << value;
  200|  2.57k|				return *this;
  201|  2.57k|			}
_ZN4pcpp8internal10LogContextlsIA85_cEERS1_RKT_:
  198|  5.46k|			{
  199|  5.46k|				m_Stream << value;
  200|  5.46k|				return *this;
  201|  5.46k|			}
_ZN4pcpp8internal10LogContextlsIA75_cEERS1_RKT_:
  198|  3.51k|			{
  199|  3.51k|				m_Stream << value;
  200|  3.51k|				return *this;
  201|  3.51k|			}
_ZN4pcpp8internal10LogContextlsIA84_cEERS1_RKT_:
  198|  1.66k|			{
  199|  1.66k|				m_Stream << value;
  200|  1.66k|				return *this;
  201|  1.66k|			}
_ZN4pcpp8internal10LogContextlsIA69_cEERS1_RKT_:
  198|  3.92k|			{
  199|  3.92k|				m_Stream << value;
  200|  3.92k|				return *this;
  201|  3.92k|			}
_ZN4pcpp8internal10LogContextlsIA73_cEERS1_RKT_:
  198|    410|			{
  199|    410|				m_Stream << value;
  200|    410|				return *this;
  201|    410|			}
_ZN4pcpp8internal10LogContextlsIA98_cEERS1_RKT_:
  198|  17.7k|			{
  199|  17.7k|				m_Stream << value;
  200|  17.7k|				return *this;
  201|  17.7k|			}
_ZN4pcpp8internal10LogContextlsIA43_cEERS1_RKT_:
  198|  15.7k|			{
  199|  15.7k|				m_Stream << value;
  200|  15.7k|				return *this;
  201|  15.7k|			}
_ZN4pcpp8internal10LogContextlsIA38_cEERS1_RKT_:
  198|  2.89k|			{
  199|  2.89k|				m_Stream << value;
  200|  2.89k|				return *this;
  201|  2.89k|			}
_ZN4pcpp8internal10LogContextlsIA40_cEERS1_RKT_:
  198|  36.9k|			{
  199|  36.9k|				m_Stream << value;
  200|  36.9k|				return *this;
  201|  36.9k|			}
_ZN4pcpp8internal10LogContextlsIA41_cEERS1_RKT_:
  198|  1.79k|			{
  199|  1.79k|				m_Stream << value;
  200|  1.79k|				return *this;
  201|  1.79k|			}
_ZN4pcpp8internal10LogContextlsIA141_cEERS1_RKT_:
  198|  1.08k|			{
  199|  1.08k|				m_Stream << value;
  200|  1.08k|				return *this;
  201|  1.08k|			}
_ZN4pcpp8internal10LogContextlsIA67_cEERS1_RKT_:
  198|  4.41k|			{
  199|  4.41k|				m_Stream << value;
  200|  4.41k|				return *this;
  201|  4.41k|			}
_ZN4pcpp9LogSourceC2Ev:
  124|      2|		constexpr LogSource() = default;
_ZN4pcpp8internal10LogContextC2Ev:
  175|      2|			LogContext() = default;

_ZN4pcpp10MacAddressC2EPKh:
   36|   614k|		explicit MacAddress(const uint8_t addr[6]) : MacAddress(addr, 6)
   37|   614k|		{}
_ZN4pcpp10MacAddressC2Ehhhhhh:
   73|      4|		    : m_Address{ firstOctet, secondOctet, thirdOctet, fourthOctet, fifthOctet, sixthOctet }
   74|      4|		{}
_ZNK4pcpp10MacAddresseqERKS0_:
   93|  17.8k|		{
   94|  17.8k|			return m_Address == other.m_Address;
   95|  17.8k|		}
_ZNK4pcpp10MacAddressneERKS0_:
  101|  17.8k|		{
  102|  17.8k|			return !operator==(other);
  103|  17.8k|		}
_ZN4pcpp10MacAddressC2IA18_cvEERKT_:
   61|      4|		MacAddress(const T& addr) : MacAddress(static_cast<std::string>(addr))
   62|      4|		{}

_ZN4pcpp8internal17DynamicObjectPoolINS0_10LogContextELb1EED2Ev:
   57|      1|			{
   58|      1|				clear();
   59|      1|			}
_ZN4pcpp8internal17DynamicObjectPoolINS0_10LogContextELb1EE5clearEv:
  175|      1|			{
  176|      1|				std::unique_lock<std::mutex> lock(m_Mutex);
  177|      3|				while (!m_Pool.empty())
  ------------------
  |  Branch (177:12): [True: 2, False: 1]
  ------------------
  178|      2|				{
  179|      2|					delete m_Pool.top();
  180|      2|					m_Pool.pop();
  181|      2|				}
  182|      1|			}
_ZN4pcpp8internal17DynamicObjectPoolINS0_10LogContextELb1EE11preallocateEm:
  158|      1|			{
  159|      1|				std::unique_lock<std::mutex> lock(m_Mutex);
  160|       |
  161|      1|				if (m_MaxPoolSize < count)
  ------------------
  |  Branch (161:9): [True: 0, False: 1]
  ------------------
  162|      0|				{
  163|      0|					throw std::invalid_argument("Preallocated objects cannot exceed the maximum pool size");
  164|      0|				}
  165|       |
  166|       |				// If the pool is already larger than the requested count, we don't need to do anything.
  167|      3|				for (std::size_t i = m_Pool.size(); i < count; i++)
  ------------------
  |  Branch (167:41): [True: 2, False: 1]
  ------------------
  168|      2|				{
  169|      2|					m_Pool.push(new T());
  170|      2|				}
  171|      1|			}
_ZN4pcpp8internal17DynamicObjectPoolINS0_10LogContextELb1EEC2Emm:
   36|      1|			    : m_MaxPoolSize(maxPoolSize)
   37|      1|			{
   38|      1|				if (initialSize > maxPoolSize)
  ------------------
  |  Branch (38:9): [True: 0, False: 1]
  ------------------
   39|      0|				{
   40|      0|					throw std::invalid_argument("Preallocated objects cannot exceed the maximum pool size");
   41|      0|				}
   42|       |
   43|      1|				if (initialSize > 0)
  ------------------
  |  Branch (43:9): [True: 1, False: 0]
  ------------------
   44|      1|				{
   45|      1|					this->preallocate(initialSize);
   46|      1|				}
   47|      1|			}
_ZN4pcpp8internal17DynamicObjectPoolINS0_10LogContextELb1EE13acquireObjectEv:
   68|   180k|			{
   69|   180k|				return std::unique_ptr<T>(acquireObjectRaw());
   70|   180k|			}
_ZN4pcpp8internal17DynamicObjectPoolINS0_10LogContextELb1EE16acquireObjectRawEv:
   79|   180k|			{
   80|   180k|				std::unique_lock<std::mutex> lock(m_Mutex);
   81|       |
   82|   180k|				if (m_Pool.empty())
  ------------------
  |  Branch (82:9): [True: 0, False: 180k]
  ------------------
   83|      0|				{
   84|       |					// We don't need the lock anymore, so release it.
   85|      0|					lock.unlock();
   86|      0|					return new T();
   87|      0|				}
   88|       |
   89|   180k|				T* obj = m_Pool.top();
   90|   180k|				m_Pool.pop();
   91|   180k|				return obj;
   92|   180k|			}
_ZN4pcpp8internal17DynamicObjectPoolINS0_10LogContextELb1EE13releaseObjectENSt3__110unique_ptrIS2_NS4_14default_deleteIS2_EEEE:
  101|   180k|			{
  102|   180k|				releaseObjectRaw(obj.release());
  103|   180k|			}
_ZN4pcpp8internal17DynamicObjectPoolINS0_10LogContextELb1EE16releaseObjectRawEPS2_:
  112|   180k|			{
  113|   180k|				std::unique_lock<std::mutex> lock(m_Mutex);
  114|       |
  115|   180k|				if (m_MaxPoolSize == INFINITE_POOL_SIZE || m_Pool.size() < m_MaxPoolSize)
  ------------------
  |  Branch (115:9): [True: 0, False: 180k]
  |  Branch (115:48): [True: 180k, False: 0]
  ------------------
  116|   180k|				{
  117|   180k|					m_Pool.push(obj);
  118|   180k|				}
  119|      0|				else
  120|      0|				{
  121|       |					// We don't need the lock anymore, so release it.
  122|      0|					lock.unlock();
  123|      0|					delete obj;
  124|      0|				}
  125|   180k|			}

_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEEC2Ev:
   59|  3.41k|		PointerVector() = default;
_ZNK4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|   149k|		{
  217|   149k|			return m_Vector.size();
  218|   149k|		}
_ZNK4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE2atEi:
  319|   123k|		{
  320|   123k|			return m_Vector.at(index);
  321|   123k|		}
_ZNK4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE4sizeEv:
  216|  76.2k|		{
  217|  76.2k|			return m_Vector.size();
  218|  76.2k|		}
_ZNK4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE2atEi:
  319|   200k|		{
  320|   200k|			return m_Vector.at(index);
  321|   200k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEED2Ev:
   78|  3.41k|		{
   79|  3.41k|			freeVectorUnsafe(m_Vector);
   80|  3.41k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  3.41k|		{
  363|  3.41k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 3.39k, False: 3.41k]
  ------------------
  364|  3.39k|			{
  365|  3.39k|				Deleter{}(obj);
  366|  3.39k|			}
  367|  3.41k|		}
_ZNK4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE5frontEv:
  238|  3.39k|		{
  239|  3.39k|			return m_Vector.front();
  240|  3.39k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|  3.39k|		{
  148|  3.39k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 3.39k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|  3.39k|			try
  154|  3.39k|			{
  155|  3.39k|				m_Vector.push_back(element);
  156|  3.39k|			}
  157|  3.39k|			catch (const std::exception&)
  158|  3.39k|			{
  159|      0|				if (freeElementOnError)
  ------------------
  |  Branch (159:9): [True: 0, False: 0]
  ------------------
  160|      0|				{
  161|      0|					Deleter{}(element);
  162|      0|				}
  163|      0|				throw;
  164|      0|			}
  165|  3.39k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEEC2Ev:
   59|  63.8k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEEC2Ev:
   59|  8.45k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEED2Ev:
   78|  63.8k|		{
   79|  63.8k|			freeVectorUnsafe(m_Vector);
   80|  63.8k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  63.8k|		{
  363|  63.8k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 291k, False: 63.8k]
  ------------------
  364|   291k|			{
  365|   291k|				Deleter{}(obj);
  366|   291k|			}
  367|  63.8k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|   291k|		{
  173|   291k|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 291k]
  ------------------
  174|      0|			{
  175|      0|				throw std::invalid_argument("Element is nullptr");
  176|      0|			}
  177|       |
  178|       |			// Release is called after the raw pointer is already inserted into the vector to prevent
  179|       |			// a memory leak if push_back throws.
  180|       |			// cppcheck-suppress danglingLifetime
  181|   291k|			m_Vector.push_back(element.get());
  182|   291k|			element.release();
  183|   291k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEED2Ev:
   78|  8.45k|		{
   79|  8.45k|			freeVectorUnsafe(m_Vector);
   80|  8.45k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  8.45k|		{
  363|  8.45k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 21.3k, False: 8.45k]
  ------------------
  364|  21.3k|			{
  365|  21.3k|				Deleter{}(obj);
  366|  21.3k|			}
  367|  8.45k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|  21.3k|		{
  148|  21.3k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 21.3k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|  21.3k|			try
  154|  21.3k|			{
  155|  21.3k|				m_Vector.push_back(element);
  156|  21.3k|			}
  157|  21.3k|			catch (const std::exception&)
  158|  21.3k|			{
  159|      0|				if (freeElementOnError)
  ------------------
  |  Branch (159:9): [True: 0, False: 0]
  ------------------
  160|      0|				{
  161|      0|					Deleter{}(element);
  162|      0|				}
  163|      0|				throw;
  164|      0|			}
  165|  21.3k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|   114k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|   114k|		{
   79|   114k|			freeVectorUnsafe(m_Vector);
   80|   114k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|   114k|		{
  363|   114k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 173k, False: 114k]
  ------------------
  364|   173k|			{
  365|   173k|				Deleter{}(obj);
  366|   173k|			}
  367|   114k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|   173k|		{
  148|   173k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 173k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|   173k|			try
  154|   173k|			{
  155|   173k|				m_Vector.push_back(element);
  156|   173k|			}
  157|   173k|			catch (const std::exception&)
  158|   173k|			{
  159|      0|				if (freeElementOnError)
  ------------------
  |  Branch (159:9): [True: 0, False: 0]
  ------------------
  160|      0|				{
  161|      0|					Deleter{}(element);
  162|      0|				}
  163|      0|				throw;
  164|      0|			}
  165|   173k|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|      5|		{
  363|      5|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 1, False: 5]
  ------------------
  364|      1|			{
  365|      1|				Deleter{}(obj);
  366|      1|			}
  367|      5|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  1.10k|		{
  363|  1.10k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 78, False: 1.10k]
  ------------------
  364|     78|			{
  365|     78|				Deleter{}(obj);
  366|     78|			}
  367|  1.10k|		}
_ZNK4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE2atEi:
  319|  81.7k|		{
  320|  81.7k|			return m_Vector.at(index);
  321|  81.7k|		}
_ZNK4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE4sizeEv:
  216|  1.38k|		{
  217|  1.38k|			return m_Vector.size();
  218|  1.38k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEEC2Ev:
   59|   162k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEED2Ev:
   78|   162k|		{
   79|   162k|			freeVectorUnsafe(m_Vector);
   80|   162k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|   162k|		{
  363|   162k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 344k, False: 162k]
  ------------------
  364|   344k|			{
  365|   344k|				Deleter{}(obj);
  366|   344k|			}
  367|   162k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|   344k|		{
  173|   344k|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 344k]
  ------------------
  174|      0|			{
  175|      0|				throw std::invalid_argument("Element is nullptr");
  176|      0|			}
  177|       |
  178|       |			// Release is called after the raw pointer is already inserted into the vector to prevent
  179|       |			// a memory leak if push_back throws.
  180|       |			// cppcheck-suppress danglingLifetime
  181|   344k|			m_Vector.push_back(element.get());
  182|   344k|			element.release();
  183|   344k|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|  1.10k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|  1.10k|		{
   79|  1.10k|			freeVectorUnsafe(m_Vector);
   80|  1.10k|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|     78|		{
  173|     78|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 78]
  ------------------
  174|      0|			{
  175|      0|				throw std::invalid_argument("Element is nullptr");
  176|      0|			}
  177|       |
  178|       |			// Release is called after the raw pointer is already inserted into the vector to prevent
  179|       |			// a memory leak if push_back throws.
  180|       |			// cppcheck-suppress danglingLifetime
  181|     78|			m_Vector.push_back(element.get());
  182|     78|			element.release();
  183|     78|		}
_ZNK4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|    440|		{
  217|    440|			return m_Vector.size();
  218|    440|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|      5|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|      5|		{
   79|      5|			freeVectorUnsafe(m_Vector);
   80|      5|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|      1|		{
  173|      1|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 1]
  ------------------
  174|      0|			{
  175|      0|				throw std::invalid_argument("Element is nullptr");
  176|      0|			}
  177|       |
  178|       |			// Release is called after the raw pointer is already inserted into the vector to prevent
  179|       |			// a memory leak if push_back throws.
  180|       |			// cppcheck-suppress danglingLifetime
  181|      1|			m_Vector.push_back(element.get());
  182|      1|			element.release();
  183|      1|		}
_ZNK4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|      2|		{
  217|      2|			return m_Vector.size();
  218|      2|		}

_ZN4pcpp20byteArrayToHexStringEPKhmi:
   17|   186k|	{
   18|   186k|		if (stringSizeLimit <= 0)
  ------------------
  |  Branch (18:7): [True: 103k, False: 82.2k]
  ------------------
   19|   103k|		{
   20|   103k|			stringSizeLimit = static_cast<int>(byteArrSize);
   21|   103k|		}
   22|       |
   23|   186k|		std::stringstream dataStream;
   24|   186k|		dataStream << std::hex;
   25|  1.41M|		for (size_t i = 0; i < byteArrSize; ++i)
  ------------------
  |  Branch (25:22): [True: 1.23M, False: 172k]
  ------------------
   26|  1.23M|		{
   27|  1.23M|			if (i >= static_cast<size_t>(stringSizeLimit))
  ------------------
  |  Branch (27:8): [True: 14.1k, False: 1.22M]
  ------------------
   28|  14.1k|			{
   29|  14.1k|				break;
   30|  14.1k|			}
   31|       |
   32|  1.22M|			dataStream << std::setw(2) << std::setfill('0') << static_cast<int>(byteArr[i]);
   33|  1.22M|		}
   34|       |
   35|   186k|		return dataStream.str();
   36|   186k|	}
_ZN4pcpp20hexStringToByteArrayERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPhm:
   56|  65.6k|	{
   57|  65.6k|		if (hexString.size() % 2 != 0)
  ------------------
  |  Branch (57:7): [True: 0, False: 65.6k]
  ------------------
   58|      0|		{
   59|      0|			PCPP_LOG_ERROR("Input string is in odd size");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE CommonLogModuleGenericUtils
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE CommonLogModuleGenericUtils
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   60|      0|			return 0;
   61|      0|		}
   62|       |
   63|  65.6k|		memset(resultByteArr, 0, resultByteArrSize);
   64|   511k|		for (size_t i = 0; i < hexString.length(); i += 2)
  ------------------
  |  Branch (64:22): [True: 445k, False: 65.6k]
  ------------------
   65|   445k|		{
   66|   445k|			if (i >= resultByteArrSize * 2)
  ------------------
  |  Branch (66:8): [True: 0, False: 445k]
  ------------------
   67|      0|			{
   68|      0|				return resultByteArrSize;
   69|      0|			}
   70|       |
   71|   445k|			const int firstChar = char2int(hexString[i]);
   72|   445k|			const int secondChar = char2int(hexString[i + 1]);
   73|   445k|			if (firstChar < 0 || secondChar < 0)
  ------------------
  |  Branch (73:8): [True: 0, False: 445k]
  |  Branch (73:25): [True: 0, False: 445k]
  ------------------
   74|      0|			{
   75|      0|				PCPP_LOG_ERROR("Input string has an illegal character");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE CommonLogModuleGenericUtils
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE CommonLogModuleGenericUtils
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   76|      0|				resultByteArr[0] = '\0';
   77|      0|				return 0;
   78|      0|			}
   79|       |
   80|   445k|			resultByteArr[i / 2] = (firstChar << 4) | secondChar;
   81|   445k|		}
   82|       |
   83|  65.6k|		return hexString.length() / 2;
   84|  65.6k|	}
_ZN4pcpp21cross_platform_memmemEPKcmS1_m:
   87|  64.3k|	{
   88|  64.3k|		char* ptr = const_cast<char*>(haystack);
   89|   437k|		while (needleLen <= (haystackLen - (ptr - haystack)))
  ------------------
  |  Branch (89:10): [True: 436k, False: 782]
  ------------------
   90|   436k|		{
   91|   436k|			if (nullptr !=
  ------------------
  |  Branch (91:8): [True: 412k, False: 24.1k]
  ------------------
   92|   436k|			    (ptr = static_cast<char*>(memchr(ptr, static_cast<int>(*needle), haystackLen - (ptr - haystack)))))
   93|   412k|			{
   94|       |				// check if there is room to do a memcmp
   95|   412k|				if (needleLen > (haystackLen - (ptr - haystack)))
  ------------------
  |  Branch (95:9): [True: 216, False: 412k]
  ------------------
   96|    216|				{
   97|    216|					return nullptr;
   98|    216|				}
   99|       |
  100|   412k|				if (0 == memcmp(ptr, needle, needleLen))
  ------------------
  |  Branch (100:9): [True: 39.1k, False: 373k]
  ------------------
  101|  39.1k|				{
  102|  39.1k|					return ptr;
  103|  39.1k|				}
  104|   373k|				++ptr;
  105|   373k|			}
  106|  24.1k|			else
  107|  24.1k|			{
  108|  24.1k|				break;
  109|  24.1k|			}
  110|   436k|		}
  111|       |
  112|  24.9k|		return nullptr;
  113|  64.3k|	}
GeneralUtils.cpp:_ZN4pcppL8char2intEc:
   39|   891k|	{
   40|   891k|		if (input >= '0' && input <= '9')
  ------------------
  |  Branch (40:7): [True: 891k, False: 0]
  |  Branch (40:23): [True: 750k, False: 140k]
  ------------------
   41|   750k|		{
   42|   750k|			return input - '0';
   43|   750k|		}
   44|   140k|		if (input >= 'A' && input <= 'F')
  ------------------
  |  Branch (44:7): [True: 140k, False: 0]
  |  Branch (44:23): [True: 0, False: 140k]
  ------------------
   45|      0|		{
   46|      0|			return input - 'A' + 10;
   47|      0|		}
   48|   140k|		if (input >= 'a' && input <= 'f')
  ------------------
  |  Branch (48:7): [True: 140k, False: 0]
  |  Branch (48:23): [True: 140k, False: 0]
  ------------------
   49|   140k|		{
   50|   140k|			return input - 'a' + 10;
   51|   140k|		}
   52|      0|		return -1;
   53|   140k|	}

_ZNK4pcpp11IPv4Address8toStringEv:
   32|   587k|	{
   33|   587k|		char addrBuffer[INET_ADDRSTRLEN];
   34|       |
   35|   587k|		if (inet_ntop(AF_INET, toBytes(), addrBuffer, sizeof(addrBuffer)) != nullptr)
  ------------------
  |  Branch (35:7): [True: 587k, False: 0]
  ------------------
   36|   587k|		{
   37|   587k|			return addrBuffer;
   38|   587k|		}
   39|       |
   40|      0|		return {};
   41|   587k|	}
_ZN4pcpp11IPv4AddressC2EPKhm:
   50|  10.4k|	{
   51|  10.4k|		if (bytes == nullptr)
  ------------------
  |  Branch (51:7): [True: 0, False: 10.4k]
  ------------------
   52|      0|		{
   53|      0|			throw std::invalid_argument("Buffer pointer is null");
   54|      0|		}
   55|       |
   56|  10.4k|		if (size < 4)
  ------------------
  |  Branch (56:7): [True: 0, False: 10.4k]
  ------------------
   57|      0|		{
   58|      0|			throw std::out_of_range("Buffer size is smaller than IPv4 address size");
   59|      0|		}
   60|  10.4k|		memcpy(m_Bytes.data(), bytes, 4 * sizeof(uint8_t));
   61|  10.4k|	}
_ZN4pcpp11IPv4AddressC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   64|  75.0k|	{
   65|  75.0k|		if (inet_pton(AF_INET, addrAsString.data(), m_Bytes.data()) <= 0)
  ------------------
  |  Branch (65:7): [True: 85, False: 74.9k]
  ------------------
   66|     85|		{
   67|     85|			throw std::invalid_argument("Not a valid IPv4 address: " + addrAsString);
   68|     85|		}
   69|  75.0k|	}
_ZNK4pcpp11IPv6Address8toStringEv:
  102|   109k|	{
  103|   109k|		char addrBuffer[INET6_ADDRSTRLEN];
  104|       |
  105|   109k|		if (inet_ntop(AF_INET6, toBytes(), addrBuffer, sizeof(addrBuffer)) != nullptr)
  ------------------
  |  Branch (105:7): [True: 109k, False: 0]
  ------------------
  106|   109k|		{
  107|   109k|			return addrBuffer;
  108|   109k|		}
  109|       |
  110|      0|		return {};
  111|   109k|	}
_ZN4pcpp11IPv6AddressC2EPKhm:
  119|   156k|	{
  120|   156k|		if (bytes == nullptr)
  ------------------
  |  Branch (120:7): [True: 0, False: 156k]
  ------------------
  121|      0|		{
  122|      0|			throw std::invalid_argument("Buffer pointer is null");
  123|      0|		}
  124|       |
  125|   156k|		if (size < 16)
  ------------------
  |  Branch (125:7): [True: 0, False: 156k]
  ------------------
  126|      0|		{
  127|      0|			throw std::out_of_range("Buffer size is smaller than IPv6 address size");
  128|      0|		}
  129|   156k|		std::memcpy(m_Bytes.data(), bytes, 16 * sizeof(uint8_t));
  130|   156k|	}
_ZN4pcpp11IPv6AddressC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  133|      2|	{
  134|      2|		if (inet_pton(AF_INET6, addrAsString.data(), m_Bytes.data()) <= 0)
  ------------------
  |  Branch (134:7): [True: 0, False: 2]
  ------------------
  135|      0|		{
  136|      0|			throw std::invalid_argument("Not a valid IPv6 address: " + addrAsString);
  137|      0|		}
  138|      2|	}
_ZNK4pcpp11IPv6Address6copyToEPhm:
  149|  46.1k|	{
  150|  46.1k|		const size_t requiredSize = m_Bytes.size();
  151|       |
  152|  46.1k|		if (buffer == nullptr)
  ------------------
  |  Branch (152:7): [True: 0, False: 46.1k]
  ------------------
  153|      0|		{
  154|      0|			if (size != 0)
  ------------------
  |  Branch (154:8): [True: 0, False: 0]
  ------------------
  155|      0|			{
  156|      0|				throw std::invalid_argument("Buffer is null but size is not zero");
  157|      0|			}
  158|       |
  159|      0|			return requiredSize;
  160|      0|		}
  161|       |
  162|  46.1k|		if (size < requiredSize)
  ------------------
  |  Branch (162:7): [True: 0, False: 46.1k]
  ------------------
  163|      0|		{
  164|      0|			return requiredSize;
  165|      0|		}
  166|       |
  167|  46.1k|		std::memcpy(buffer, m_Bytes.data(), requiredSize);
  168|  46.1k|		return requiredSize;
  169|  46.1k|	}

_ZN4pcpp6LoggerC2Ev:
   55|      1|	Logger::Logger() : m_LogsEnabled(true), m_LogPrinter(&printToCerr)
   56|      1|	{
   57|      1|		m_LogModulesArray.fill(LogLevel::Info);
   58|      1|	}
_ZN4pcpp6Logger16createLogContextENS_8LogLevelERKNS_9LogSourceE:
   89|   180k|	{
   90|   180k|		if (m_UseContextPooling)
  ------------------
  |  Branch (90:7): [True: 180k, False: 0]
  ------------------
   91|   180k|		{
   92|   180k|			auto ctx = m_LogContextPool.acquireObject();
   93|   180k|			ctx->init(level, source);
   94|   180k|			return ctx;
   95|   180k|		}
   96|      0|		return std::make_unique<internal::LogContext>(level, source);
   97|   180k|	}
_ZN4pcpp6Logger4emitENSt3__110unique_ptrINS_8internal10LogContextENS1_14default_deleteIS4_EEEE:
  100|   180k|	{
  101|   180k|		emit(message->m_Source, message->m_Level, message->m_Stream.str());
  102|       |		// Pushes the message back to the pool if pooling is enabled. Otherwise, the message is deleted.
  103|   180k|		if (m_UseContextPooling)
  ------------------
  |  Branch (103:7): [True: 180k, False: 0]
  ------------------
  104|   180k|		{
  105|   180k|			m_LogContextPool.releaseObject(std::move(message));
  106|   180k|		}
  107|   180k|	}
_ZN4pcpp6Logger4emitERKNS_9LogSourceENS_8LogLevelERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
  110|   180k|	{
  111|       |		// If the log level is an error, save the error to the last error message variable.
  112|   180k|		if (logLevel == LogLevel::Error)
  ------------------
  |  Branch (112:7): [True: 179k, False: 928]
  ------------------
  113|   179k|		{
  114|   179k|			static_assert(m_LastError.size() >= 1,
  115|   179k|			              "Last error buffer size must be at least 1 to hold a null terminator");
  116|       |
  117|       |			// Copy the message to the last error buffer, leaving space for null terminator
  118|   179k|			auto const copied = message.copy(m_LastError.data(), m_LastError.size() - 1);
  119|   179k|			m_LastError[copied] = '\0';
  120|   179k|		}
  121|   180k|		if (m_LogsEnabled)
  ------------------
  |  Branch (121:7): [True: 0, False: 180k]
  ------------------
  122|      0|		{
  123|      0|			m_LogPrinter(logLevel, message, source.file, source.function, source.line);
  124|      0|		}
  125|   180k|	}

_ZNK4pcpp10MacAddress8toStringEv:
   11|   591k|	{
   12|   591k|		char str[19];
   13|   591k|		if (snprintf(str, sizeof str, "%02x:%02x:%02x:%02x:%02x:%02x", m_Address[0], m_Address[1], m_Address[2],
  ------------------
  |  Branch (13:7): [True: 0, False: 591k]
  ------------------
   14|   591k|		             m_Address[3], m_Address[4], m_Address[5]) < 0)
   15|      0|		{
   16|      0|			throw std::runtime_error("Conversion of MAC address to string failed");
   17|      0|		}
   18|   591k|		return str;
   19|   591k|	}
_ZN4pcpp10MacAddressC2EPKhm:
   22|   614k|	{
   23|   614k|		if (addr == nullptr)
  ------------------
  |  Branch (23:7): [True: 0, False: 614k]
  ------------------
   24|      0|		{
   25|      0|			throw std::invalid_argument("Address pointer is null");
   26|      0|		}
   27|       |
   28|   614k|		if (size < 6)
  ------------------
  |  Branch (28:7): [True: 0, False: 614k]
  ------------------
   29|      0|		{
   30|      0|			throw std::out_of_range("Buffer size is smaller than MAC address size (6 bytes)");
   31|      0|		}
   32|       |
   33|   614k|		std::copy(addr, addr + 6, m_Address.begin());
   34|   614k|	}
_ZN4pcpp10MacAddressC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   37|      4|	{
   38|      4|		constexpr size_t validMacAddressLength = 17;
   39|      4|		unsigned int values[6];
   40|      4|		if (address.size() != validMacAddressLength ||
  ------------------
  |  Branch (40:7): [True: 0, False: 4]
  ------------------
   41|       |		    // NOLINTNEXTLINE(cert-err34-c)
   42|      4|		    sscanf(address.c_str(), "%x:%x:%x:%x:%x:%x", &values[0], &values[1], &values[2], &values[3], &values[4],
  ------------------
  |  Branch (42:7): [True: 0, False: 4]
  ------------------
   43|      4|		           &values[5]) != 6)
   44|      0|		{
   45|      0|			throw std::invalid_argument("Invalid MAC address format, should be xx:xx:xx:xx:xx:xx");
   46|      0|		}
   47|     28|		for (int i = 0; i < 6; ++i)
  ------------------
  |  Branch (47:19): [True: 24, False: 4]
  ------------------
   48|     24|		{
   49|     24|			m_Address[i] = values[i];
   50|     24|		}
   51|      4|	}

_ZN4pcpp9mkUtcTimeER2tm:
  222|    205|	{
  223|       |#if defined(_WIN32)
  224|       |		return _mkgmtime(&time);
  225|       |#else
  226|    205|		return timegm(&time);
  227|    205|#endif
  228|    205|	}
_ZN4pcpp11hostToNet16Et:
  241|  5.79k|	{
  242|       |		return htobe16(host);
  243|  5.79k|	}
_ZN4pcpp11netToHost16Et:
  246|  11.5k|	{
  247|       |		return be16toh(net);
  248|  11.5k|	}
_ZN4pcpp11hostToNet32Ej:
  251|  5.79k|	{
  252|       |		return htobe32(host);
  253|  5.79k|	}
_ZN4pcpp11netToHost32Ej:
  256|  46.3k|	{
  257|       |		return be32toh(net);
  258|  46.3k|	}

_ZN4pcpp8ArpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  152|  4.78k|		    : Layer(data, dataLen, prevLayer, packet, ARP)
  153|  4.78k|		{
  154|  4.78k|			m_DataLen = sizeof(arphdr);
  155|  4.78k|		}
_ZNK4pcpp8ArpLayer12getArpHeaderEv:
  202|  10.2k|		{
  203|  10.2k|			return reinterpret_cast<arphdr*>(m_Data);
  204|  10.2k|		}
_ZNK4pcpp8ArpLayer19getSenderMacAddressEv:
  214|    152|		{
  215|    152|			return MacAddress(getArpHeader()->senderMacAddr);
  216|    152|		}
_ZNK4pcpp8ArpLayer15getSenderIpAddrEv:
  228|    908|		{
  229|    908|			return getArpHeader()->senderIpAddr;
  230|    908|		}
_ZNK4pcpp8ArpLayer15getTargetIpAddrEv:
  235|    756|		{
  236|    756|			return getArpHeader()->targetIpAddr;
  237|    756|		}
_ZN4pcpp8ArpLayer14parseNextLayerEv:
  243|  4.78k|		{}
_ZNK4pcpp8ArpLayer12getHeaderLenEv:
  247|  1.33k|		{
  248|  1.33k|			return sizeof(arphdr);
  249|  1.33k|		}
_ZNK4pcpp8ArpLayer16getOsiModelLayerEv:
  271|  1.33k|		{
  272|  1.33k|			return OsiModelNetworkLayer;
  273|  1.33k|		}
_ZN4pcpp8ArpLayer11isDataValidEPKhm:
  280|  2.99k|		{
  281|  2.99k|			return canReinterpretAs<arphdr>(data, dataLen);
  282|  2.99k|		}

_ZNK4pcpp10Asn1Record10getTagTypeEv:
  164|  65.0k|		{
  165|  65.0k|			return m_TagType;
  166|  65.0k|		}
_ZNK4pcpp10Asn1Record14getTotalLengthEv:
  176|   746k|		{
  177|   746k|			return m_TotalLength;
  178|   746k|		}
_ZN4pcpp21Asn1ConstructedRecord13getSubRecordsEv:
  313|  87.9k|		{
  314|  87.9k|			decodeValueIfNeeded();
  315|  87.9k|			return m_SubRecords;
  316|  87.9k|		};
_ZNK4pcpp14Asn1NullRecord11decodeValueEPKh:
  689|    410|		{}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EE11decodeValueEPKh:
  554|   109k|		{
  555|   109k|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  556|   109k|		}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EE8getValueEv:
  538|  1.35k|		{
  539|  1.35k|			decodeValueIfNeeded();
  540|  1.35k|			return m_Value;
  541|  1.35k|		};
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE12EE11decodeValueEPKh:
  554|    107|		{
  555|    107|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  556|    107|		}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE22EE11decodeValueEPKh:
  554|     92|		{
  555|     92|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  556|     92|		}
_ZN4pcpp10Asn1Record6castAsINS_18Asn1SequenceRecordEEEPT_v:
  188|  80.8k|		{
  189|  80.8k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  80.8k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 2.28k, False: 78.5k]
  ------------------
  191|  2.28k|			{
  192|  2.28k|				throw std::bad_cast();
  193|  2.28k|			}
  194|  78.5k|			return result;
  195|  80.8k|		}
_ZNK4pcpp17Asn1IntegerRecord11getIntValueIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS4_EE5valueEiE4typeELi0EEES4_v:
  425|  5.30k|		{
  426|  5.30k|			decodeValueIfNeeded();
  427|  5.30k|			return m_Value.getInt<T>();
  428|  5.30k|		}
_ZNK4pcpp17Asn1IntegerRecord6BigInt6getIntIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS5_EE5valueEiE4typeELi0EEES5_v:
  477|  5.30k|			{
  478|  5.30k|				if (!canFit<T>())
  ------------------
  |  Branch (478:9): [True: 0, False: 5.30k]
  ------------------
  479|      0|				{
  480|      0|					throw std::overflow_error("Value cannot fit into requested int type");
  481|      0|				}
  482|       |
  483|  5.30k|				std::stringstream sstream;
  484|  5.30k|				sstream << std::hex << m_Value;
  485|       |
  486|  5.30k|				uint64_t result;
  487|  5.30k|				sstream >> result;
  488|  5.30k|				return static_cast<T>(result);
  489|  5.30k|			}
_ZNK4pcpp17Asn1IntegerRecord6BigInt6canFitIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS5_EE5valueEiE4typeELi0EEEbv:
  492|  5.30k|			{
  493|  5.30k|				return sizeof(T) >= (m_Value.size() + 1) / 2;
  494|  5.30k|			}
_ZN4pcpp10Asn1Record6castAsINS_21Asn1OctetStringRecordEEEPT_v:
  188|  1.35k|		{
  189|  1.35k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  1.35k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 0, False: 1.35k]
  ------------------
  191|      0|			{
  192|      0|				throw std::bad_cast();
  193|      0|			}
  194|  1.35k|			return result;
  195|  1.35k|		}
_ZN4pcpp10Asn1Record6castAsINS_21Asn1ConstructedRecordEEEPT_v:
  188|  23.1k|		{
  189|  23.1k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  23.1k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 600, False: 22.5k]
  ------------------
  191|    600|			{
  192|    600|				throw std::bad_cast();
  193|    600|			}
  194|  22.5k|			return result;
  195|  23.1k|		}
_ZN4pcpp18Asn1SequenceRecordC2Ev:
  368|  84.3k|		Asn1SequenceRecord() = default;
_ZN4pcpp21Asn1ConstructedRecordC2Ev:
  319|   162k|		Asn1ConstructedRecord() = default;
_ZN4pcpp13Asn1SetRecordC2Ev:
  387|  13.3k|		Asn1SetRecord() = default;
_ZN4pcpp17Asn1IntegerRecordC2Ev:
  447|  87.7k|		Asn1IntegerRecord() = default;
_ZN4pcpp19Asn1PrimitiveRecordC2Ev:
  398|  97.6k|		Asn1PrimitiveRecord() = default;
_ZN4pcpp20Asn1EnumeratedRecordC2Ev:
  527|  22.1k|		Asn1EnumeratedRecord() = default;
_ZN4pcpp21Asn1OctetStringRecordC2Ev:
  594|   122k|		Asn1OctetStringRecord() = default;
_ZN4pcpp20Asn1UTF8StringRecordC2Ev:
  612|    107|		Asn1UTF8StringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE12EEC2Ev:
  544|    107|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  545|    107|		{}
_ZN4pcpp25Asn1PrintableStringRecordC2Ev:
  628|     25|		Asn1PrintableStringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE19EEC2Ev:
  544|     25|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  545|     25|		{}
_ZN4pcpp19Asn1IA5StringRecordC2Ev:
  644|     92|		Asn1IA5StringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE22EEC2Ev:
  544|     92|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  545|     92|		{}
_ZN4pcpp17Asn1BooleanRecordC2Ev:
  672|  6.67k|		Asn1BooleanRecord() = default;
_ZN4pcpp19Asn1BitStringRecordC2Ev:
  925|    981|		Asn1BitStringRecord() = default;
_ZN4pcpp26Asn1ObjectIdentifierRecordC2Ev:
  780|  1.25k|		Asn1ObjectIdentifierRecord() = default;
_ZN4pcpp17Asn1UtcTimeRecordC2Ev:
  840|    140|		Asn1UtcTimeRecord() = default;
_ZN4pcpp14Asn1TimeRecordC2Ev:
  809|  1.02k|		Asn1TimeRecord() = default;
_ZN4pcpp25Asn1GeneralizedTimeRecordC2Ev:
  864|    885|		Asn1GeneralizedTimeRecord() = default;
_ZN4pcpp17Asn1GenericRecordC2Ev:
  278|  28.2k|		Asn1GenericRecord() = default;
_ZN4pcpp10Asn1RecordC2Ev:
  207|   411k|		Asn1Record() = default;
_ZN4pcpp10Asn1RecordD2Ev:
  197|   411k|		virtual ~Asn1Record() = default;
_ZN4pcpp17Asn1IntegerRecord6BigIntC2Ev:
  458|  87.7k|			BigInt() = default;
_ZN4pcpp20Asn1ObjectIdentifierC2Ev:
  747|  1.25k|		Asn1ObjectIdentifier() = default;
_ZN4pcpp19Asn1BitStringRecord6BitSetC2Ev:
  904|    981|			BitSet() = default;
_ZN4pcpp17Asn1GenericRecordD2Ev:
  268|  28.2k|		~Asn1GenericRecord() override = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EEC2Ev:
  544|   122k|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  545|   122k|		{}
_ZN4pcpp10Asn1Record6castAsINS_20Asn1EnumeratedRecordEEEPT_v:
  188|  5.30k|		{
  189|  5.30k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  5.30k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 0, False: 5.30k]
  ------------------
  191|      0|			{
  192|      0|				throw std::bad_cast();
  193|      0|			}
  194|  5.30k|			return result;
  195|  5.30k|		}

_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2EhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  265|  61.2k|			prefix_and_ip(uint8_t prefixVal, const std::string& ipAddrVal) : prefix(prefixVal), ipAddr(ipAddrVal)
  266|  61.2k|			{}
_ZN4pcpp8BgpLayer9isBgpPortEtt:
   66|   279k|		{
   67|   279k|			return portSrc == 179 || portDst == 179;
  ------------------
  |  Branch (67:11): [True: 15.0k, False: 264k]
  |  Branch (67:29): [True: 32.2k, False: 231k]
  ------------------
   68|   279k|		}
_ZNK4pcpp8BgpLayer16getOsiModelLayerEv:
   92|  17.3k|		{
   93|  17.3k|			return OsiModelApplicationLayer;
   94|  17.3k|		}
_ZN4pcpp8BgpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  107|   155k|		    : Layer(data, dataLen, prevLayer, packet, BGP)
  108|   155k|		{}
_ZNK4pcpp8BgpLayer14getBasicHeaderEv:
  111|  1.38M|		{
  112|  1.38M|			return reinterpret_cast<bgp_common_header*>(m_Data);
  113|  1.38M|		}
_ZN4pcpp19BgpOpenMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  172|  22.5k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  173|  22.5k|		{}
_ZNK4pcpp19BgpOpenMessageLayer16getOpenMsgHeaderEv:
  194|  29.6k|		{
  195|  29.6k|			return reinterpret_cast<bgp_open_message*>(m_Data);
  196|  29.6k|		}
_ZNK4pcpp19BgpOpenMessageLayer17getBgpMessageTypeEv:
  234|  12.6k|		{
  235|  12.6k|			return BgpLayer::Open;
  236|  12.6k|		}
_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2Ev:
  259|  13.3k|			prefix_and_ip() : prefix(0), ipAddr(IPv4Address::Zero)
  260|  13.3k|			{}
_ZN4pcpp21BgpUpdateMessageLayer14path_attributeC2Ev:
  285|  31.9k|			{}
_ZN4pcpp21BgpUpdateMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  302|   122k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  303|   122k|		{}
_ZNK4pcpp21BgpUpdateMessageLayer17getBgpMessageTypeEv:
  397|  49.0k|		{
  398|  49.0k|			return BgpLayer::Update;
  399|  49.0k|		}
_ZN4pcpp27BgpNotificationMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  434|  3.97k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  435|  3.97k|		{}
_ZNK4pcpp27BgpNotificationMessageLayer17getBgpMessageTypeEv:
  499|  2.68k|		{
  500|  2.68k|			return BgpLayer::Notification;
  501|  2.68k|		}
_ZN4pcpp24BgpKeepaliveMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  523|  3.71k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  524|  3.71k|		{}
_ZNK4pcpp24BgpKeepaliveMessageLayer17getBgpMessageTypeEv:
  540|  2.97k|		{
  541|  2.97k|			return BgpLayer::Keepalive;
  542|  2.97k|		}
_ZN4pcpp27BgpRouteRefreshMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  570|  2.68k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  571|  2.68k|		{}
_ZNK4pcpp27BgpRouteRefreshMessageLayer17getBgpMessageTypeEv:
  589|  2.14k|		{
  590|  2.14k|			return BgpLayer::RouteRefresh;
  591|  2.14k|		}
_ZN4pcpp19BgpOpenMessageLayer18optional_parameterC2Ev:
  157|  15.8k|			optional_parameter() = default;

_ZN4pcpp14CiscoHdlcLayer11isDataValidEPKhm:
   60|    327|		{
   61|    327|			return data && dataLen >= sizeof(cisco_hdlc_header);
  ------------------
  |  Branch (61:11): [True: 327, False: 0]
  |  Branch (61:19): [True: 327, False: 0]
  ------------------
   62|    327|		}
_ZN4pcpp14CiscoHdlcLayerC2EPhmPNS_6PacketE:
   28|    327|		CiscoHdlcLayer(uint8_t* data, size_t dataLen, Packet* packet) : Layer(data, dataLen, nullptr, packet, CiscoHDLC)
   29|    327|		{}
_ZNK4pcpp14CiscoHdlcLayer12getHeaderLenEv:
   68|    109|		{
   69|    109|			return sizeof(cisco_hdlc_header);
   70|    109|		}
_ZNK4pcpp14CiscoHdlcLayer16getOsiModelLayerEv:
   81|    109|		{
   82|    109|			return OsiModelDataLinkLayer;
   83|    109|		}
_ZNK4pcpp14CiscoHdlcLayer18getCiscoHdlcHeaderEv:
   97|    327|		{
   98|    327|			return reinterpret_cast<cisco_hdlc_header*>(m_Data);
   99|    327|		}

_ZN4pcpp9CotpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   38|  20.1k|		    : Layer(data, dataLen, prevLayer, packet, COTP)
   39|  20.1k|		{}
_ZNK4pcpp9CotpLayer12getHeaderLenEv:
   58|  23.0k|		{
   59|  23.0k|			return sizeof(cotphdr);
   60|  23.0k|		}
_ZN4pcpp9CotpLayer22computeCalculateFieldsEv:
   76|  2.83k|		{}
_ZNK4pcpp9CotpLayer16getOsiModelLayerEv:
   90|  2.83k|		{
   91|  2.83k|			return OsiModelTransportLayer;
   92|  2.83k|		}

_ZNK4pcpp9DhcpLayer9getOpCodeEv:
  609|  2.78k|		{
  610|  2.78k|			return static_cast<BootpOpCodes>(getDhcpHeader()->opCode);
  611|  2.78k|		}
_ZNK4pcpp9DhcpLayer13getDhcpHeaderEv:
  603|  22.2k|		{
  604|  22.2k|			return reinterpret_cast<dhcp_header*>(m_Data);
  605|  22.2k|		}
_ZNK4pcpp9DhcpLayer18getClientIpAddressEv:
  616|  2.78k|		{
  617|  2.78k|			return getDhcpHeader()->clientIpAddress;
  618|  2.78k|		}
_ZNK4pcpp9DhcpLayer16getYourIpAddressEv:
  643|  2.78k|		{
  644|  2.78k|			return getDhcpHeader()->yourIpAddress;
  645|  2.78k|		}
_ZNK4pcpp9DhcpLayer18getServerIpAddressEv:
  630|  2.78k|		{
  631|  2.78k|			return getDhcpHeader()->serverIpAddress;
  632|  2.78k|		}
_ZNK4pcpp9DhcpLayer19getGatewayIpAddressEv:
  657|  2.78k|		{
  658|  2.78k|			return getDhcpHeader()->gatewayIpAddress;
  659|  2.78k|		}
_ZNK4pcpp10DhcpOption16getValueAsIpAddrEv:
  400|  2.74k|		{
  401|  2.74k|			return getValueAs<uint32_t>();
  402|  2.74k|		}
_ZNK4pcpp10DhcpOption16getValueAsStringEi:
  420|  2.74k|		{
  421|       |			// TODO: This will burn if valueOffset is negative.
  422|       |			// Should negative offsets even be allowed? Potentially change it to size_t?
  423|  2.74k|			if (m_Data == nullptr || getDataSize() < static_cast<size_t>(valueOffset) + 1)
  ------------------
  |  Branch (423:8): [True: 0, False: 2.74k]
  |  Branch (423:29): [True: 230, False: 2.51k]
  ------------------
  424|    230|				return "";
  425|       |
  426|  2.51k|			return std::string(reinterpret_cast<const char*>(m_Data->recordValue) + valueOffset,
  427|  2.51k|			                   static_cast<int>(m_Data->recordLen) - valueOffset);
  428|  2.74k|		}
_ZNK4pcpp10DhcpOption12getTotalSizeEv:
  471|  1.24M|		{
  472|  1.24M|			if (m_Data == nullptr)
  ------------------
  |  Branch (472:8): [True: 0, False: 1.24M]
  ------------------
  473|      0|				return 0;
  474|       |
  475|  1.24M|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (475:8): [True: 15.8k, False: 1.22M]
  ------------------
  476|  1.22M|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (476:8): [True: 940k, False: 285k]
  ------------------
  477|   956k|				return sizeof(uint8_t);
  478|       |
  479|   285k|			return sizeof(uint8_t) * 2 + static_cast<size_t>(m_Data->recordLen);
  480|  1.24M|		}
_ZNK4pcpp10DhcpOption11getDataSizeEv:
  483|  9.57k|		{
  484|  9.57k|			if (m_Data == nullptr)
  ------------------
  |  Branch (484:8): [True: 0, False: 9.57k]
  ------------------
  485|      0|				return 0;
  486|       |
  487|  9.57k|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (487:8): [True: 0, False: 9.57k]
  ------------------
  488|  9.57k|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (488:8): [True: 434, False: 9.14k]
  ------------------
  489|    434|				return 0;
  490|       |
  491|  9.14k|			return m_Data->recordLen;
  492|  9.57k|		}
_ZN4pcpp10DhcpOptionC2EPh:
  391|   264k|		explicit DhcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  392|   264k|		{}
_ZN4pcpp10DhcpOption9canAssignEPKhm:
  453|   264k|		{
  454|   264k|			auto data = reinterpret_cast<TLVRawData const*>(recordRawData);
  455|   264k|			if (data == nullptr)
  ------------------
  |  Branch (455:8): [True: 0, False: 264k]
  ------------------
  456|      0|				return false;
  457|       |
  458|   264k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (458:8): [True: 9.08k, False: 255k]
  ------------------
  459|  9.08k|				return false;
  460|       |
  461|   255k|			if (data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (461:8): [True: 3.18k, False: 252k]
  ------------------
  462|   252k|			    data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (462:8): [True: 190k, False: 62.2k]
  ------------------
  463|   193k|				return true;
  464|       |
  465|  62.2k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  466|   255k|		}
_ZN4pcpp9DhcpLayer11isDataValidEPKhm:
  595|  14.1k|		{
  596|  14.1k|			return canReinterpretAs<dhcp_header>(data, dataLen);
  597|  14.1k|		}
_ZN4pcpp9DhcpLayer14parseNextLayerEv:
  744|  13.9k|		{}
_ZNK4pcpp9DhcpLayer12getHeaderLenEv:
  748|   131k|		{
  749|   131k|			return m_DataLen;
  750|   131k|		}
_ZNK4pcpp9DhcpLayer16getOsiModelLayerEv:
  765|  2.78k|		{
  766|  2.78k|			return OsiModelApplicationLayer;
  767|  2.78k|		}
_ZNK4pcpp9DhcpLayer17getOptionsBasePtrEv:
  771|   128k|		{
  772|   128k|			return m_Data + sizeof(dhcp_header);
  773|   128k|		}
_ZN4pcpp9DhcpLayer11isDhcpPortsEtt:
  785|   317k|	{
  786|   317k|		return ((portSrc == 68 && portDst == 67) || (portSrc == 67 && portDst == 68) ||
  ------------------
  |  Branch (786:12): [True: 4.72k, False: 313k]
  |  Branch (786:29): [True: 1.63k, False: 3.08k]
  |  Branch (786:48): [True: 12.6k, False: 303k]
  |  Branch (786:65): [True: 12.5k, False: 85]
  ------------------
  787|   303k|		        (portSrc == 67 && portDst == 67));
  ------------------
  |  Branch (787:12): [True: 85, False: 303k]
  |  Branch (787:29): [True: 0, False: 85]
  ------------------
  788|   317k|	}
_ZN4pcpp9DhcpLayerD2Ev:
  592|  13.9k|		~DhcpLayer() override = default;

_ZN4pcpp12DhcpV6OptionC2EPh:
  192|  30.4k|		explicit DhcpV6Option(uint8_t* optionRawData) : TLVRecord(optionRawData)
  193|  30.4k|		{}
_ZN4pcpp11DhcpV6Layer14parseNextLayerEv:
  353|  18.1k|		{}
_ZNK4pcpp11DhcpV6Layer12getHeaderLenEv:
  357|  32.3k|		{
  358|  32.3k|			return m_DataLen;
  359|  32.3k|		}
_ZN4pcpp11DhcpV6Layer22computeCalculateFieldsEv:
  363|  3.48k|		{}
_ZNK4pcpp11DhcpV6Layer16getOsiModelLayerEv:
  368|  3.48k|		{
  369|  3.48k|			return OsiModelApplicationLayer;
  370|  3.48k|		}
_ZNK4pcpp11DhcpV6Layer17getOptionsBasePtrEv:
  374|  28.8k|		{
  375|  28.8k|			return m_Data + sizeof(dhcpv6_header);
  376|  28.8k|		}
_ZNK4pcpp11DhcpV6Layer13getDhcpHeaderEv:
  378|  10.4k|		{
  379|  10.4k|			return reinterpret_cast<dhcpv6_header*>(m_Data);
  380|  10.4k|		}
_ZN4pcpp11DhcpV6Layer12isDhcpV6PortEt:
  389|   269k|	{
  390|   269k|		return (port == 546) || (port == 547);
  ------------------
  |  Branch (390:10): [True: 11.9k, False: 257k]
  |  Branch (390:27): [True: 6.24k, False: 251k]
  ------------------
  391|   269k|	}
_ZN4pcpp11DhcpV6Layer11isDataValidEPKhm:
  394|  18.2k|	{
  395|  18.2k|		return data && dataLen >= sizeof(dhcpv6_header);
  ------------------
  |  Branch (395:10): [True: 18.2k, False: 0]
  |  Branch (395:18): [True: 18.1k, False: 130]
  ------------------
  396|  18.2k|	}

_ZN4pcpp8DnsLayer14parseNextLayerEv:
  354|  68.3k|		{}
_ZNK4pcpp8DnsLayer12getHeaderLenEv:
  359|   147k|		{
  360|   147k|			return m_DataLen;
  361|   147k|		}  // No layer above DNS
_ZN4pcpp8DnsLayer22computeCalculateFieldsEv:
  365|  9.55k|		{}
_ZNK4pcpp8DnsLayer16getOsiModelLayerEv:
  370|  12.9k|		{
  371|  12.9k|			return OsiModelApplicationLayer;
  372|  12.9k|		}
_ZN4pcpp15DnsOverTcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  440|  17.7k|		    : DnsLayer(data, dataLen, prevLayer, packet, sizeof(uint16_t))
  441|  17.7k|		{}
_ZN4pcpp8DnsLayer9isDnsPortEt:
  469|   874k|	{
  470|   874k|		switch (port)
  471|   874k|		{
  472|  36.3k|		case 53:
  ------------------
  |  Branch (472:3): [True: 36.3k, False: 838k]
  ------------------
  473|  41.9k|		case 5353:
  ------------------
  |  Branch (473:3): [True: 5.60k, False: 869k]
  ------------------
  474|  68.3k|		case 5355:
  ------------------
  |  Branch (474:3): [True: 26.3k, False: 848k]
  ------------------
  475|  68.3k|			return true;
  476|   806k|		default:
  ------------------
  |  Branch (476:3): [True: 806k, False: 68.3k]
  ------------------
  477|   806k|			return false;
  478|   874k|		}
  479|   874k|	}
_ZN4pcpp8DnsLayer11isDataValidEPKhmb:
  482|   521k|	{
  483|   521k|		size_t minSize = sizeof(dnshdr) + (dnsOverTcp ? sizeof(uint16_t) : 0);
  ------------------
  |  Branch (483:38): [True: 217k, False: 303k]
  ------------------
  484|   521k|		return data && dataLen >= minSize;
  ------------------
  |  Branch (484:10): [True: 521k, False: 0]
  |  Branch (484:18): [True: 462k, False: 58.4k]
  ------------------
  485|   521k|	}

_ZNK4pcpp12IDnsResource15getNextResourceEv:
   47|   663k|		{
   48|   663k|			return m_NextResource;
   49|   663k|		}
_ZN4pcpp12IDnsResource15setNextResourceEPS0_:
   51|   198k|		{
   52|   198k|			m_NextResource = next;
   53|   198k|		}
_ZNK4pcpp12IDnsResource7getNameEv:
   78|   121k|		{
   79|   121k|			return m_DecodedName;
   80|   121k|		}
_ZN4pcpp8DnsQueryC2EPNS_8DnsLayerEm:
  117|   100k|		DnsQuery(DnsLayer* dnsLayer, size_t offsetInLayer) : IDnsResource(dnsLayer, offsetInLayer)
  118|   100k|		{}
_ZN4pcpp8DnsQueryC2EPh:
  120|  12.9k|		explicit DnsQuery(uint8_t* emptyRawData) : IDnsResource(emptyRawData)
  121|  12.9k|		{}
_ZNK4pcpp8DnsQuery7getSizeEv:
  128|   195k|		{
  129|   195k|			return m_NameLength + 2 * sizeof(uint16_t);
  130|   195k|		}
_ZNK4pcpp8DnsQuery7getTypeEv:
  132|   105k|		{
  133|   105k|			return DnsQueryType;
  134|   105k|		}
_ZN4pcpp11DnsResourceC2EPNS_8DnsLayerEmNS_15DnsResourceTypeE:
  147|  70.8k|		    : IDnsResource(dnsLayer, offsetInLayer)
  148|  70.8k|		{
  149|  70.8k|			m_ResourceType = resourceType;
  150|  70.8k|		}
_ZN4pcpp11DnsResourceC2EPhNS_15DnsResourceTypeE:
  153|  38.8k|		    : IDnsResource(emptyRawData), m_ResourceType(resType)
  154|  38.8k|		{}
_ZNK4pcpp11DnsResource7getSizeEv:
  219|   226k|		{
  220|   226k|			return m_NameLength + 3 * sizeof(uint16_t) + sizeof(uint32_t) + getDataLength();
  221|   226k|		}
_ZNK4pcpp11DnsResource7getTypeEv:
  223|   186k|		{
  224|   186k|			return m_ResourceType;
  225|   186k|		}
_ZN4pcpp12IDnsResourceD2Ev:
   60|   223k|		virtual ~IDnsResource() = default;

_ZN4pcpp19IPv4DnsResourceDataC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  157|  12.9k|		explicit IPv4DnsResourceData(const std::string& addrAsString) : m_Data(addrAsString)
  158|  12.9k|		{}
_ZN4pcpp16IDnsResourceDataC2Ev:
   29|  25.9k|		{}
_ZN4pcpp16IDnsResourceDataD2Ev:
   37|  12.9k|		virtual ~IDnsResourceData() = default;
_ZN4pcpp22GenericDnsResourceDataD2Ev:
  316|  12.9k|		{
  317|  12.9k|			if (m_Data != nullptr)
  ------------------
  |  Branch (317:8): [True: 12.9k, False: 0]
  ------------------
  318|  12.9k|				delete[] m_Data;
  319|  12.9k|		}
_ZNK4pcpp16IDnsResourceData8isTypeOfINS_19IPv4DnsResourceDataEEEbv:
   43|  25.9k|		{
   44|  25.9k|			return dynamic_cast<const IDnsResourceDataType*>(this) != nullptr;
   45|  25.9k|		}

_ZN4pcpp9DoIpLayer10isDoIpPortEt:
  667|   468k|	{
  668|   468k|		auto portAsEnum = static_cast<DoIpPorts>(port);
  669|   468k|		return (portAsEnum == DoIpPorts::TCP_UDP_PORT || portAsEnum == DoIpPorts::TLS_PORT);
  ------------------
  |  Branch (669:11): [True: 57.1k, False: 411k]
  |  Branch (669:52): [True: 0, False: 411k]
  ------------------
  670|   468k|	}
_ZNK4pcpp9DoIpLayer12getHeaderLenEv:
  628|  7.94k|		{
  629|  7.94k|			return m_DataLen;
  630|  7.94k|		}
_ZN4pcpp9DoIpLayer22computeCalculateFieldsEv:
  635|  8.97k|		{}
_ZNK4pcpp9DoIpLayer16getOsiModelLayerEv:
  638|  8.97k|		{
  639|  8.97k|			return OsiModelApplicationLayer;
  640|  8.97k|		}
_ZNK4pcpp21DoIpGenericHeaderNack14getPayloadTypeEv:
  792|  11.8k|		{
  793|  11.8k|			return DoIpPayloadTypes::GENERIC_HEADER_NACK;
  794|  11.8k|		}
_ZN4pcpp21DoIpGenericHeaderNack14isDataLenValidEm:
  800|  7.12k|		{
  801|  7.12k|			return (dataLen == FIXED_LEN);
  802|  7.12k|		}
_ZN4pcpp32DoIpVehicleIdentificationRequestC2EPhmPNS_5LayerEPNS_6PacketE:
  836|  3.80k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
  837|  3.80k|		{}
_ZNK4pcpp32DoIpVehicleIdentificationRequest14getPayloadTypeEv:
  844|  6.66k|		{
  845|  6.66k|			return DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST;
  846|  6.66k|		}
_ZN4pcpp32DoIpVehicleIdentificationRequest14isDataLenValidEm:
  852|  3.80k|		{
  853|  3.80k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
  854|  3.80k|		}
_ZNK4pcpp39DoIpVehicleIdentificationRequestWithEID14getPayloadTypeEv:
  892|  2.94k|		{
  893|  2.94k|			return DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID;
  894|  2.94k|		}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithEID14isDataLenValidEm:
  900|  1.65k|		{
  901|  1.65k|			return (dataLen == FIXED_LEN);
  902|  1.65k|		}
_ZNK4pcpp39DoIpVehicleIdentificationRequestWithVIN14getPayloadTypeEv:
  953|  2.89k|		{
  954|  2.89k|			return DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN;
  955|  2.89k|		}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithVIN14isDataLenValidEm:
  961|  1.61k|		{
  962|  1.61k|			return (dataLen == FIXED_LEN);
  963|  1.61k|		}
_ZNK4pcpp30DoIpVehicleAnnouncementMessage14getPayloadTypeEv:
 1070|  3.13k|		{
 1071|  3.13k|			return DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE;
 1072|  3.13k|		}
_ZN4pcpp30DoIpVehicleAnnouncementMessage14isDataLenValidEm:
 1078|  1.74k|		{
 1079|  1.74k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1079:12): [True: 1.74k, False: 0]
  |  Branch (1079:36): [True: 0, False: 0]
  ------------------
 1080|  1.74k|		}
_ZNK4pcpp28DoIpRoutingActivationRequest14getPayloadTypeEv:
 1178|  3.71k|		{
 1179|  3.71k|			return DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST;
 1180|  3.71k|		}
_ZN4pcpp28DoIpRoutingActivationRequest14isDataLenValidEm:
 1186|  2.06k|		{
 1187|  2.06k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1187:12): [True: 0, False: 2.06k]
  |  Branch (1187:36): [True: 2.06k, False: 0]
  ------------------
 1188|  2.06k|		}
_ZNK4pcpp29DoIpRoutingActivationResponse14getPayloadTypeEv:
 1291|  2.92k|		{
 1292|  2.92k|			return DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE;
 1293|  2.92k|		}
_ZN4pcpp29DoIpRoutingActivationResponse14isDataLenValidEm:
 1299|  1.62k|		{
 1300|  1.62k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1300:12): [True: 1.62k, False: 0]
  |  Branch (1300:36): [True: 0, False: 0]
  ------------------
 1301|  1.62k|		}
_ZN4pcpp21DoIpAliveCheckRequestC2EPhmPNS_5LayerEPNS_6PacketE:
 1343|  4.83k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
 1344|  4.83k|		{}
_ZNK4pcpp21DoIpAliveCheckRequest14getPayloadTypeEv:
 1351|  8.60k|		{
 1352|  8.60k|			return DoIpPayloadTypes::ALIVE_CHECK_REQUEST;
 1353|  8.60k|		}
_ZN4pcpp21DoIpAliveCheckRequest14isDataLenValidEm:
 1359|  4.83k|		{
 1360|  4.83k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
 1361|  4.83k|		}
_ZNK4pcpp22DoIpAliveCheckResponse14getPayloadTypeEv:
 1401|  5.05k|		{
 1402|  5.05k|			return DoIpPayloadTypes::ALIVE_CHECK_RESPONSE;
 1403|  5.05k|		}
_ZN4pcpp22DoIpAliveCheckResponse14isDataLenValidEm:
 1408|  2.81k|		{
 1409|  2.81k|			return (dataLen == FIXED_LEN);
 1410|  2.81k|		}
_ZN4pcpp23DoIpEntityStatusRequestC2EPhmPNS_5LayerEPNS_6PacketE:
 1445|  4.44k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
 1446|  4.44k|		{}
_ZNK4pcpp23DoIpEntityStatusRequest14getPayloadTypeEv:
 1453|  7.99k|		{
 1454|  7.99k|			return DoIpPayloadTypes::ENTITY_STATUS_REQUEST;
 1455|  7.99k|		}
_ZN4pcpp23DoIpEntityStatusRequest14isDataLenValidEm:
 1461|  4.57k|		{
 1462|  4.57k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
 1463|  4.57k|		}
_ZNK4pcpp24DoIpEntityStatusResponse14getPayloadTypeEv:
 1495|  8.96k|		{
 1496|  8.96k|			return DoIpPayloadTypes::ENTITY_STATUS_RESPONSE;
 1497|  8.96k|		}
_ZN4pcpp24DoIpEntityStatusResponse14isDataLenValidEm:
 1548|  5.37k|		{
 1549|  5.37k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1549:12): [True: 0, False: 5.37k]
  |  Branch (1549:36): [True: 5.37k, False: 0]
  ------------------
 1550|  5.37k|		}
_ZN4pcpp30DoIpDiagnosticPowerModeRequestC2EPhmPNS_5LayerEPNS_6PacketE:
 1592|  3.16k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
 1593|  3.16k|		{}
_ZNK4pcpp30DoIpDiagnosticPowerModeRequest14getPayloadTypeEv:
 1600|  5.34k|		{
 1601|  5.34k|			return DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST;
 1602|  5.34k|		}
_ZN4pcpp30DoIpDiagnosticPowerModeRequest14isDataLenValidEm:
 1608|  3.16k|		{
 1609|  3.16k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
 1610|  3.16k|		}
_ZNK4pcpp31DoIpDiagnosticPowerModeResponse14getPayloadTypeEv:
 1650|  2.01k|		{
 1651|  2.01k|			return DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE;
 1652|  2.01k|		}
_ZN4pcpp31DoIpDiagnosticPowerModeResponse14isDataLenValidEm:
 1658|  1.20k|		{
 1659|  1.20k|			return (dataLen == FIXED_LEN);
 1660|  1.20k|		}
_ZNK4pcpp21DoIpDiagnosticMessage14getPayloadTypeEv:
 1766|  10.2k|		{
 1767|  10.2k|			return DoIpPayloadTypes::DIAGNOSTIC_MESSAGE;
 1768|  10.2k|		}
_ZNK4pcpp21DoIpDiagnosticMessage12getHeaderLenEv:
 1772|  7.19k|		{
 1773|  7.19k|			return sizeof(doiphdr) + 2 * sizeof(uint16_t);
 1774|  7.19k|		}
_ZN4pcpp21DoIpDiagnosticMessage14isDataLenValidEm:
 1779|  6.16k|		{
 1780|  6.16k|			return (dataLen >= MIN_LEN);
 1781|  6.16k|		}
_ZN4pcpp33DoIpDiagnosticResponseMessageBase14isDataLenValidEm:
 1823|  1.53k|		{
 1824|  1.53k|			return (dataLen >= FIXED_LEN);
 1825|  1.53k|		}
_ZNK4pcpp24DoIpDiagnosticMessageAck14getPayloadTypeEv:
 1884|  1.19k|		{
 1885|  1.19k|			return DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK;
 1886|  1.19k|		}
_ZNK4pcpp25DoIpDiagnosticMessageNack14getPayloadTypeEv:
 1928|  1.45k|		{
 1929|  1.45k|			return DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK;
 1930|  1.45k|		}
_ZN4pcpp9DoIpLayer22isProtocolVersionValidEhhNS_16DoIpPayloadTypesE:
  673|  54.3k|	{
  674|  54.3k|		const DoIpProtocolVersion parsedVersion = static_cast<DoIpProtocolVersion>(version);
  675|       |
  676|  54.3k|		switch (parsedVersion)
  677|  54.3k|		{
  678|      0|		case DoIpProtocolVersion::RESERVED_VER:
  ------------------
  |  Branch (678:3): [True: 0, False: 54.3k]
  ------------------
  679|      0|		{
  680|      0|			PCPP_LOG_DEBUG("[Malformed doip packet]: Reserved ISO DoIP protocol version detected: 0x"
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  681|      0|			               << std::hex << static_cast<int>(version));
  682|      0|			return false;
  683|      0|		}
  684|  3.03k|		case DoIpProtocolVersion::DEFAULT_VALUE:
  ------------------
  |  Branch (684:3): [True: 3.03k, False: 51.3k]
  ------------------
  685|  3.03k|			if (type != DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN &&
  ------------------
  |  Branch (685:8): [True: 2.99k, False: 36]
  ------------------
  686|  2.99k|			    type != DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID &&
  ------------------
  |  Branch (686:8): [True: 2.99k, False: 0]
  ------------------
  687|  2.99k|			    type != DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST)
  ------------------
  |  Branch (687:8): [True: 142, False: 2.85k]
  ------------------
  688|    142|			{
  689|    142|				PCPP_LOG_DEBUG("[Malformed doip packet]: Invalid/unsupported DoIP version!");
  ------------------
  |  |  425|    142|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    142|	do                                                                                                                 \
  |  |  |  |  413|    142|	{                                                                                                                  \
  |  |  |  |  414|    142|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    142|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    142|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 142]
  |  |  |  |  ------------------
  |  |  |  |  416|    142|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|    142|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 142]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  690|    142|				return false;
  691|    142|			}
  692|  2.92k|		case DoIpProtocolVersion::ISO13400_2010:
  ------------------
  |  Branch (692:3): [True: 36, False: 54.3k]
  ------------------
  693|  52.4k|		case DoIpProtocolVersion::ISO13400_2012:
  ------------------
  |  Branch (693:3): [True: 49.5k, False: 4.80k]
  ------------------
  694|  53.9k|		case DoIpProtocolVersion::ISO13400_2019:
  ------------------
  |  Branch (694:3): [True: 1.49k, False: 52.8k]
  ------------------
  695|  53.9k|		case DoIpProtocolVersion::ISO13400_2019_AMD1:
  ------------------
  |  Branch (695:3): [True: 0, False: 54.3k]
  ------------------
  696|  53.9k|		{
  697|  53.9k|			if (version != static_cast<uint8_t>(~inVersion))
  ------------------
  |  Branch (697:8): [True: 1.62k, False: 52.3k]
  ------------------
  698|  1.62k|			{
  699|  1.62k|				PCPP_LOG_DEBUG("[Malformed doip packet]: Protocol version and inverse version mismatch! Version: 0x"
  ------------------
  |  |  425|  1.62k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  1.62k|	do                                                                                                                 \
  |  |  |  |  413|  1.62k|	{                                                                                                                  \
  |  |  |  |  414|  1.62k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.62k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.62k|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 1.62k]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.62k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  1.62k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.62k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  700|  1.62k|				               << std::hex << static_cast<int>(version) << ", Inverted: 0x"
  701|  1.62k|				               << static_cast<int>(inVersion));
  702|  1.62k|				return false;
  703|  1.62k|			}
  704|  52.3k|			return true;
  705|  53.9k|		}
  706|    245|		default:
  ------------------
  |  Branch (706:3): [True: 245, False: 54.1k]
  ------------------
  707|    245|			PCPP_LOG_DEBUG("[Malformed doip packet]: Unknown DoIP protocol version: 0x" << std::hex
  ------------------
  |  |  425|    245|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    245|	do                                                                                                                 \
  |  |  |  |  413|    245|	{                                                                                                                  \
  |  |  |  |  414|    245|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    245|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    245|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 245]
  |  |  |  |  ------------------
  |  |  |  |  416|    245|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|    245|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 245]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  708|    245|			                                                                            << static_cast<int>(version));
  709|    245|			return false;
  710|  54.3k|		}
  711|  54.3k|	}
_ZN4pcpp9DoIpLayer18isPayloadTypeValidEt:
  714|  56.2k|	{
  715|  56.2k|		const DoIpPayloadTypes payloadType = static_cast<DoIpPayloadTypes>(type);
  716|       |
  717|  56.2k|		switch (payloadType)
  718|  56.2k|		{
  719|  7.25k|		case DoIpPayloadTypes::GENERIC_HEADER_NACK:
  ------------------
  |  Branch (719:3): [True: 7.25k, False: 48.9k]
  ------------------
  720|  11.0k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST:
  ------------------
  |  Branch (720:3): [True: 3.84k, False: 52.4k]
  ------------------
  721|  12.8k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID:
  ------------------
  |  Branch (721:3): [True: 1.71k, False: 54.5k]
  ------------------
  722|  14.4k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN:
  ------------------
  |  Branch (722:3): [True: 1.65k, False: 54.5k]
  ------------------
  723|  16.2k|		case DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE:
  ------------------
  |  Branch (723:3): [True: 1.75k, False: 54.4k]
  ------------------
  724|  18.6k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST:
  ------------------
  |  Branch (724:3): [True: 2.42k, False: 53.8k]
  ------------------
  725|  20.4k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE:
  ------------------
  |  Branch (725:3): [True: 1.82k, False: 54.4k]
  ------------------
  726|  25.3k|		case DoIpPayloadTypes::ALIVE_CHECK_REQUEST:
  ------------------
  |  Branch (726:3): [True: 4.90k, False: 51.3k]
  ------------------
  727|  29.9k|		case DoIpPayloadTypes::ALIVE_CHECK_RESPONSE:
  ------------------
  |  Branch (727:3): [True: 4.52k, False: 51.7k]
  ------------------
  728|  34.4k|		case DoIpPayloadTypes::ENTITY_STATUS_REQUEST:
  ------------------
  |  Branch (728:3): [True: 4.58k, False: 51.6k]
  ------------------
  729|  39.9k|		case DoIpPayloadTypes::ENTITY_STATUS_RESPONSE:
  ------------------
  |  Branch (729:3): [True: 5.46k, False: 50.7k]
  ------------------
  730|  43.1k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST:
  ------------------
  |  Branch (730:3): [True: 3.17k, False: 53.0k]
  ------------------
  731|  44.3k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE:
  ------------------
  |  Branch (731:3): [True: 1.20k, False: 55.0k]
  ------------------
  732|  50.5k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE:
  ------------------
  |  Branch (732:3): [True: 6.20k, False: 50.0k]
  ------------------
  733|  51.8k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK:
  ------------------
  |  Branch (733:3): [True: 1.29k, False: 54.9k]
  ------------------
  734|  54.3k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK:
  ------------------
  |  Branch (734:3): [True: 2.53k, False: 53.7k]
  ------------------
  735|  54.3k|			return true;
  736|       |
  737|  1.87k|		default:
  ------------------
  |  Branch (737:3): [True: 1.87k, False: 54.3k]
  ------------------
  738|  1.87k|			PCPP_LOG_DEBUG("[Malformed doip packet]: Invalid DoIP payload type: 0x" << std::hex << type);
  ------------------
  |  |  425|  1.87k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  1.87k|	do                                                                                                                 \
  |  |  |  |  413|  1.87k|	{                                                                                                                  \
  |  |  |  |  414|  1.87k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.87k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.87k|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 1.87k]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.87k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  1.87k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.87k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  739|  1.87k|			return false;
  740|  56.2k|		}
  741|  56.2k|	}
_ZN4pcpp9DoIpLayer20isPayloadLengthValidEjm:
  744|  52.3k|	{
  745|  52.3k|		const size_t actualPayloadLen = dataLen - DOIP_HEADER_LEN;
  746|       |
  747|  52.3k|		if (payloadLength != actualPayloadLen)
  ------------------
  |  Branch (747:7): [True: 3.06k, False: 49.2k]
  ------------------
  748|  3.06k|		{
  749|  3.06k|			PCPP_LOG_DEBUG("[Malformed doip packet]: Payload length mismatch: expected "
  ------------------
  |  |  425|  3.06k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  3.06k|	do                                                                                                                 \
  |  |  |  |  413|  3.06k|	{                                                                                                                  \
  |  |  |  |  414|  3.06k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.06k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.06k|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 3.06k]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.06k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  3.06k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.06k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  750|  3.06k|			               << payloadLength << " bytes, but got " << actualPayloadLen << " bytes.");
  751|  3.06k|			return false;
  752|  3.06k|		}
  753|       |
  754|  49.2k|		return true;
  755|  52.3k|	}

_ZN4pcpp12EthDot3LayerC2EPhmPNS_6PacketE:
   38|  3.19k|		    : Layer(data, dataLen, nullptr, packet, EthernetDot3)
   39|  3.19k|		{}
_ZNK4pcpp12EthDot3Layer12getEthHeaderEv:
   62|  4.03k|		{
   63|  4.03k|			return reinterpret_cast<ether_dot3_header*>(m_Data);
   64|  4.03k|		}
_ZNK4pcpp12EthDot3Layer12getSourceMacEv:
   69|  2.01k|		{
   70|  2.01k|			return MacAddress(getEthHeader()->srcMac);
   71|  2.01k|		}
_ZNK4pcpp12EthDot3Layer10getDestMacEv:
   83|  2.01k|		{
   84|  2.01k|			return MacAddress(getEthHeader()->dstMac);
   85|  2.01k|		}
_ZNK4pcpp12EthDot3Layer12getHeaderLenEv:
  101|  1.00k|		{
  102|  1.00k|			return sizeof(ether_dot3_header);
  103|  1.00k|		}
_ZN4pcpp12EthDot3Layer22computeCalculateFieldsEv:
  107|  1.00k|		{}
_ZNK4pcpp12EthDot3Layer16getOsiModelLayerEv:
  112|  1.00k|		{
  113|  1.00k|			return OsiModelDataLinkLayer;
  114|  1.00k|		}

_ZN4pcpp8EthLayerC2EPhmPNS_6PacketE:
   74|   806k|		EthLayer(uint8_t* data, size_t dataLen, Packet* packet) : Layer(data, dataLen, nullptr, packet, Ethernet)
   75|   806k|		{}
_ZN4pcpp8EthLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   83|     24|		    : Layer(data, dataLen, prevLayer, packet, Ethernet)
   84|     24|		{}
_ZNK4pcpp8EthLayer12getEthHeaderEv:
   99|  1.53M|		{
  100|  1.53M|			return reinterpret_cast<ether_header*>(m_Data);
  101|  1.53M|		}
_ZNK4pcpp8EthLayer12getSourceMacEv:
  106|   293k|		{
  107|   293k|			return MacAddress(getEthHeader()->srcMac);
  108|   293k|		}
_ZNK4pcpp8EthLayer10getDestMacEv:
  120|   293k|		{
  121|   293k|			return MacAddress(getEthHeader()->dstMac);
  122|   293k|		}
_ZNK4pcpp8EthLayer12getHeaderLenEv:
  139|   255k|		{
  140|   255k|			return sizeof(ether_header);
  141|   255k|		}
_ZNK4pcpp8EthLayer16getOsiModelLayerEv:
  149|   146k|		{
  150|   146k|			return OsiModelDataLinkLayer;
  151|   146k|		}

_ZN4pcpp8FtpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   17|  9.69k|		    : SingleCommandTextProtocol(data, dataLen, prevLayer, packet, FTPControl) {};
_ZN4pcpp8FtpLayer9isFtpPortEt:
   25|   289k|		{
   26|   289k|			return port == 21;
   27|   289k|		}
_ZN4pcpp8FtpLayer13isFtpDataPortEt:
   32|   279k|		{
   33|   279k|			return port == 20;
   34|   279k|		}
_ZN4pcpp8FtpLayer14parseNextLayerEv:
   40|  9.69k|		{}
_ZNK4pcpp8FtpLayer12getHeaderLenEv:
   44|  1.93k|		{
   45|  1.93k|			return m_DataLen;
   46|  1.93k|		}
_ZN4pcpp8FtpLayer22computeCalculateFieldsEv:
   50|  1.93k|		{}
_ZNK4pcpp8FtpLayer16getOsiModelLayerEv:
   54|  1.93k|		{
   55|  1.93k|			return OsiModelApplicationLayer;
   56|  1.93k|		}
_ZN4pcpp16FtpResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  396|  9.69k|		    : FtpLayer(data, dataLen, prevLayer, packet) {};
_ZN4pcpp12FtpDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  448|  3.22k|		    : PayloadLayer(data, dataLen, prevLayer, packet)
  449|  3.22k|		{
  450|  3.22k|			m_Protocol = FTPData;
  451|  3.22k|		};

_ZNK4pcpp8GreLayer16getOsiModelLayerEv:
  137|  9.29k|		{
  138|  9.29k|			return OsiModelNetworkLayer;
  139|  9.29k|		}
_ZN4pcpp8GreLayerC2EPhmPNS_5LayerEPNS_6PacketEh:
  143|  83.4k|		    : Layer(data, dataLen, prevLayer, packet, protocol)
  144|  83.4k|		{}
_ZN4pcpp10GREv0LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  175|  9.79k|		    : GreLayer(data, dataLen, prevLayer, packet, GREv0)
  176|  9.79k|		{}
_ZNK4pcpp10GREv0Layer12getGreHeaderEv:
  191|  14.1k|		{
  192|  14.1k|			return reinterpret_cast<gre_basic_header*>(m_Data);
  193|  14.1k|		}
_ZN4pcpp10GREv0Layer11isDataValidEPKhm:
  248|  9.79k|		{
  249|  9.79k|			return data && dataLen >= sizeof(gre_basic_header);
  ------------------
  |  Branch (249:11): [True: 9.79k, False: 0]
  |  Branch (249:19): [True: 9.79k, False: 0]
  ------------------
  250|  9.79k|		}
_ZN4pcpp10GREv1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  273|  73.6k|		    : GreLayer(data, dataLen, prevLayer, packet, GREv1)
  274|  73.6k|		{}
_ZNK4pcpp10GREv1Layer12getGreHeaderEv:
  291|  14.7k|		{
  292|  14.7k|			return reinterpret_cast<gre1_header*>(m_Data);
  293|  14.7k|		}
_ZN4pcpp10GREv1Layer11isDataValidEPKhm:
  318|  73.6k|		{
  319|  73.6k|			return data && dataLen >= sizeof(gre1_header);
  ------------------
  |  Branch (319:11): [True: 73.6k, False: 0]
  |  Branch (319:19): [True: 73.6k, False: 0]
  ------------------
  320|  73.6k|		}
_ZN4pcpp13PPP_PPTPLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  344|  66.4k|		    : Layer(data, dataLen, prevLayer, packet, PPP_PPTP)
  345|  66.4k|		{}
_ZNK4pcpp13PPP_PPTPLayer17getPPP_PPTPHeaderEv:
  358|  72.3k|		{
  359|  72.3k|			return reinterpret_cast<ppp_pptp_header*>(m_Data);
  360|  72.3k|		}
_ZNK4pcpp13PPP_PPTPLayer12getHeaderLenEv:
  375|  73.5k|		{
  376|  73.5k|			return sizeof(ppp_pptp_header);
  377|  73.5k|		}
_ZNK4pcpp13PPP_PPTPLayer8toStringEv:
  384|  11.8k|		{
  385|  11.8k|			return "PPP for PPTP Layer";
  386|  11.8k|		}
_ZNK4pcpp13PPP_PPTPLayer16getOsiModelLayerEv:
  389|  5.94k|		{
  390|  5.94k|			return OsiModelSesionLayer;
  391|  5.94k|		}
_ZN4pcpp13PPP_PPTPLayer11isDataValidEPKhm:
  395|  66.4k|	{
  396|  66.4k|		return data && dataLen >= sizeof(ppp_pptp_header);
  ------------------
  |  Branch (396:10): [True: 66.4k, False: 0]
  |  Branch (396:18): [True: 66.4k, False: 0]
  ------------------
  397|  66.4k|	}

_ZN4pcpp10GtpV1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  291|  31.6k|		    : Layer(data, dataLen, prevLayer, packet, GTPv1)
  292|  31.6k|		{}
_ZNK4pcpp10GtpV1Layer9getHeaderEv:
  322|   131k|		{
  323|   131k|			return reinterpret_cast<gtpv1_header*>(m_Data);
  324|   131k|		}
_ZN4pcpp10GtpV1Layer11isGTPv1PortEt:
  387|   323k|		{
  388|   323k|			return port == 2152 /* GTP-U */ || port == 2123 /* GTP-C */;
  ------------------
  |  Branch (388:11): [True: 31.8k, False: 291k]
  |  Branch (388:39): [True: 0, False: 291k]
  ------------------
  389|   323k|		}
_ZNK4pcpp10GtpV1Layer16getOsiModelLayerEv:
  409|  4.53k|		{
  410|  4.53k|			return OsiModelTransportLayer;
  411|  4.53k|		}
_ZN4pcpp16GtpV2MessageTypeC2ENS0_5ValueE:
  595|    164|		constexpr GtpV2MessageType(Value value) : m_Value(value)
  596|    164|		{}
_ZNK4pcpp16GtpV2MessageTypecvNS0_5ValueEEv:
  609|    164|		{
  610|    164|			return m_Value;
  611|    164|		}
_ZN4pcpp10GtpV2Layer11isGTPv2PortEt:
  997|   410k|		{
  998|   410k|			return port == 2123;
  999|   410k|		}

_ZN4pcpp11HttpMessage10isHttpPortEt:
   75|   817k|		{
   76|   817k|			return port == 80 || port == 8080;
  ------------------
  |  Branch (76:11): [True: 50.1k, False: 766k]
  |  Branch (76:25): [True: 1.28k, False: 765k]
  ------------------
   77|   817k|		}
_ZNK4pcpp22HttpResponseStatusCode17isUnsupportedCodeEv:
  454|  11.7k|		{
  455|  11.7k|			return m_Value > 599;
  456|  11.7k|		}
_ZNK4pcpp11HttpMessage16getOsiModelLayerEv:
   88|  3.18k|		{
   89|  3.18k|			return OsiModelApplicationLayer;
   90|  3.18k|		}
_ZN4pcpp11HttpMessageC2EPhmPNS_5LayerEPNS_6PacketEh:
   94|  16.3k|		    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, protocol)
   95|  16.3k|		{}
_ZNK4pcpp11HttpMessage32getHeaderFieldNameValueSeparatorEv:
  108|  16.3k|		{
  109|  16.3k|			return ':';
  110|  16.3k|		}
_ZNK4pcpp11HttpMessage43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  112|  16.3k|		{
  113|  16.3k|			return true;
  114|  16.3k|		}
_ZN4pcpp22HttpResponseStatusCodeC2ENS0_5ValueE:
  416|    594|		HttpResponseStatusCode(Value statusCode) : m_Value(statusCode)
  417|    594|		{}
_ZNK4pcpp22HttpResponseStatusCodecvNS0_5ValueEEv:
  431|  22.0k|		{
  432|  22.0k|			return m_Value;
  433|  22.0k|		}
_ZNK4pcpp20HttpRequestFirstLine7getSizeEv:
  613|  7.50k|		{
  614|  7.50k|			return m_FirstLineEndOffset;
  615|  7.50k|		}
_ZN4pcpp20HttpRequestFirstLine29HttpRequestFirstLineExceptionD2Ev:
  634|  5.38k|			{}
_ZNK4pcpp21HttpResponseFirstLine7getSizeEv:
  733|  15.1k|		{
  734|  15.1k|			return m_FirstLineEndOffset;
  735|  15.1k|		}
_ZN4pcpp21HttpResponseFirstLine30HttpResponseFirstLineExceptionD2Ev:
  755|  10.9k|			{}
_ZN4pcpp22HttpResponseStatusCodeC2Ev:
  411|  10.9k|		HttpResponseStatusCode() = default;

_ZN4pcpp7IPLayerC2Ev:
   20|  1.01M|		IPLayer() = default;
_ZN4pcpp7IPLayerD2Ev:
   32|  1.01M|		virtual ~IPLayer() = default;

_ZN4pcpp25AuthenticationHeaderLayer11isDataValidEPKhm:
  177|  4.49k|	{
  178|  4.49k|		if (dataLen < sizeof(ipsec_authentication_header))
  ------------------
  |  Branch (178:7): [True: 0, False: 4.49k]
  ------------------
  179|      0|			return false;
  180|       |
  181|  4.49k|		size_t payloadLen = 4 * (data[1] + 2);
  182|  4.49k|		if (payloadLen < sizeof(ipsec_authentication_header) || payloadLen > dataLen)
  ------------------
  |  Branch (182:7): [True: 132, False: 4.36k]
  |  Branch (182:59): [True: 6, False: 4.35k]
  ------------------
  183|    138|			return false;
  184|       |
  185|  4.35k|		return true;
  186|  4.49k|	}
_ZN4pcpp25AuthenticationHeaderLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   54|  4.35k|		    : Layer(data, dataLen, prevLayer, packet, AuthenticationHeader)
   55|  4.35k|		{}
_ZN4pcpp8ESPLayer11isDataValidEPKhm:
  189|  5.27k|	{
  190|  5.27k|		return data && dataLen >= sizeof(ipsec_esp);
  ------------------
  |  Branch (190:10): [True: 5.27k, False: 0]
  |  Branch (190:18): [True: 5.27k, False: 0]
  ------------------
  191|  5.27k|	}
_ZN4pcpp8ESPLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  126|  5.27k|		    : Layer(data, dataLen, prevLayer, packet, ESP)
  127|  5.27k|		{}
_ZNK4pcpp25AuthenticationHeaderLayer11getAHHeaderEv:
   61|  9.42k|		{
   62|  9.42k|			return reinterpret_cast<ipsec_authentication_header*>(m_Data);
   63|  9.42k|		}
_ZNK4pcpp25AuthenticationHeaderLayer12getHeaderLenEv:
   90|  5.07k|		{
   91|  5.07k|			return static_cast<size_t>(4) * (getAHHeader()->payloadLen + 2);
   92|  5.07k|		}
_ZN4pcpp25AuthenticationHeaderLayer22computeCalculateFieldsEv:
  100|    711|		{}
_ZNK4pcpp25AuthenticationHeaderLayer16getOsiModelLayerEv:
  105|    711|		{
  106|    711|			return OsiModelNetworkLayer;
  107|    711|		}
_ZNK4pcpp8ESPLayer12getESPHeaderEv:
  130|  1.84k|		{
  131|  1.84k|			return reinterpret_cast<ipsec_esp*>(m_Data);
  132|  1.84k|		}
_ZNK4pcpp8ESPLayer12getHeaderLenEv:
  150|  6.19k|		{
  151|  6.19k|			return sizeof(ipsec_esp);
  152|  6.19k|		}
_ZN4pcpp8ESPLayer22computeCalculateFieldsEv:
  159|    920|		{}
_ZNK4pcpp8ESPLayer16getOsiModelLayerEv:
  164|    920|		{
  165|    920|			return OsiModelTransportLayer;
  166|    920|		}

_ZNK4pcpp9IPv4Layer13getIPv4HeaderEv:
  448|  6.38M|		{
  449|  6.38M|			return reinterpret_cast<iphdr*>(m_Data);
  450|  6.38M|		}
_ZNK4pcpp9IPv4Layer15getSrcIPAddressEv:
  456|  1.60k|		{
  457|  1.60k|			return getSrcIPv4Address();
  458|  1.60k|		}
_ZNK4pcpp9IPv4Layer17getSrcIPv4AddressEv:
  463|   415k|		{
  464|   415k|			return getIPv4Header()->ipSrc;
  465|   415k|		}
_ZNK4pcpp9IPv4Layer15getDstIPAddressEv:
  478|  1.60k|		{
  479|  1.60k|			return getDstIPv4Address();
  480|  1.60k|		}
_ZNK4pcpp9IPv4Layer17getDstIPv4AddressEv:
  485|   415k|		{
  486|   415k|			return getIPv4Header()->ipDst;
  487|   415k|		}
_ZNK4pcpp9IPv4Layer12getHeaderLenEv:
  582|  1.34M|		{
  583|  1.34M|			return static_cast<size_t>(static_cast<uint16_t>(getIPv4Header()->internetHeaderLength) * 4) +
  584|  1.34M|			       m_TempHeaderExtension;
  585|  1.34M|		}
_ZNK4pcpp9IPv4Layer16getOsiModelLayerEv:
  598|   145k|		{
  599|   145k|			return OsiModelNetworkLayer;
  600|   145k|		}
_ZN4pcpp9IPv4Layer11isDataValidEPKhm:
  627|   878k|	{
  628|   878k|		const iphdr* hdr = reinterpret_cast<const iphdr*>(data);
  629|   878k|		return canReinterpretAs<iphdr>(data, dataLen) && hdr->ipVersion == 4 && hdr->internetHeaderLength >= 5;
  ------------------
  |  Branch (629:10): [True: 869k, False: 9.29k]
  |  Branch (629:52): [True: 864k, False: 4.88k]
  |  Branch (629:75): [True: 864k, False: 295]
  ------------------
  630|   878k|	}

_ZNK4pcpp13IPv6Extension15getExtensionLenEv:
   41|  34.2k|		{
   42|  34.2k|			return 8 * (getBaseHeader()->headerLen + 1);
   43|  34.2k|		}
_ZNK4pcpp13IPv6Extension16getExtensionTypeEv:
   47|  17.1k|		{
   48|  17.1k|			return m_ExtType;
   49|  17.1k|		}
_ZNK4pcpp13IPv6Extension13getNextHeaderEv:
   56|  31.9k|		{
   57|  31.9k|			return m_NextHeader;
   58|  31.9k|		}
_ZN4pcpp13IPv6ExtensionC2EPNS_14IDataContainerEm:
   69|  17.6k|		    : m_NextHeader(nullptr), m_ExtType(IPv6ExtensionUnknown), m_DataContainer(dataContainer), m_Offset(offset),
   70|  17.6k|		      m_ShadowData(nullptr)
   71|  17.6k|		{}
_ZNK4pcpp13IPv6Extension13getBaseHeaderEv:
   87|  63.6k|		{
   88|  63.6k|			return (ipv6_ext_base_header*)getDataPtr();
   89|  63.6k|		}
_ZN4pcpp13IPv6Extension13setNextHeaderEPS0_:
   92|  6.86k|		{
   93|  6.86k|			m_NextHeader = nextHeader;
   94|  6.86k|		}
_ZN4pcpp23IPv6FragmentationHeaderC2EPNS_14IDataContainerEm:
  155|    306|		IPv6FragmentationHeader(IDataContainer* dataContainer, size_t offset) : IPv6Extension(dataContainer, offset)
  156|    306|		{
  157|    306|			m_ExtType = IPv6Fragmentation;
  158|    306|		}
_ZN4pcpp18IPv6HopByHopHeaderC2EPNS_14IDataContainerEm:
  326|  16.3k|		IPv6HopByHopHeader(IDataContainer* dataContainer, size_t offset) : IPv6TLVOptionHeader(dataContainer, offset)
  327|  16.3k|		{
  328|  16.3k|			m_ExtType = IPv6HopByHop;
  329|  16.3k|		}
_ZN4pcpp17IPv6RoutingHeaderC2EPNS_14IDataContainerEm:
  415|    448|		IPv6RoutingHeader(IDataContainer* dataContainer, size_t offset) : IPv6Extension(dataContainer, offset)
  416|    448|		{
  417|    448|			m_ExtType = IPv6Routing;
  418|    448|		}
_ZNK4pcpp24IPv6AuthenticationHeader15getExtensionLenEv:
  481|  1.05k|		{
  482|  1.05k|			return 4 * (getBaseHeader()->headerLen + 2);
  483|  1.05k|		}
_ZN4pcpp24IPv6AuthenticationHeaderC2EPNS_14IDataContainerEm:
  486|    528|		IPv6AuthenticationHeader(IDataContainer* dataContainer, size_t offset) : IPv6Extension(dataContainer, offset)
  487|    528|		{
  488|    528|			m_ExtType = IPv6AuthenticationHdr;
  489|    528|		}

_ZN4pcpp9IPv6Layer11isDataValidEPKhm:
  246|   152k|	{
  247|   152k|		auto ip6Header = reinterpret_cast<const ip6_hdr*>(data);
  248|   152k|		return canReinterpretAs<ip6_hdr>(data, dataLen) && ip6Header->ipVersion == 6;
  ------------------
  |  Branch (248:10): [True: 150k, False: 1.46k]
  |  Branch (248:54): [True: 149k, False: 1.94k]
  ------------------
  249|   152k|	}
_ZNK4pcpp9IPv6Layer13getIPv6HeaderEv:
   81|   618k|		{
   82|   618k|			return reinterpret_cast<ip6_hdr*>(m_Data);
   83|   618k|		}
_ZNK4pcpp9IPv6Layer15getSrcIPAddressEv:
   89|  1.34k|		{
   90|  1.34k|			return getSrcIPv6Address();
   91|  1.34k|		}
_ZNK4pcpp9IPv6Layer17getSrcIPv6AddressEv:
   96|  77.6k|		{
   97|  77.6k|			return getIPv6Header()->ipSrc;
   98|  77.6k|		}
_ZNK4pcpp9IPv6Layer15getDstIPAddressEv:
  118|  1.34k|		{
  119|  1.34k|			return getDstIPv6Address();
  120|  1.34k|		}
_ZNK4pcpp9IPv6Layer17getDstIPv6AddressEv:
  125|  77.6k|		{
  126|  77.6k|			return getIPv6Header()->ipDst;
  127|  77.6k|		}
_ZNK4pcpp9IPv6Layer12getHeaderLenEv:
  175|   348k|		{
  176|   348k|			return sizeof(ip6_hdr) + m_ExtensionsLen;
  177|   348k|		}
_ZNK4pcpp9IPv6Layer16getOsiModelLayerEv:
  189|  27.2k|		{
  190|  27.2k|			return OsiModelNetworkLayer;
  191|  27.2k|		}

_ZNK4pcpp9IcmpLayer15isMessageOfTypeENS_15IcmpMessageTypeE:
  369|  53.8k|		{
  370|  53.8k|			return getMessageType() == type;
  371|  53.8k|		}
_ZN4pcpp9IcmpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  346|  39.2k|		    : Layer(data, dataLen, prevLayer, packet, ICMP)
  347|  39.2k|		{}
_ZNK4pcpp9IcmpLayer13getIcmpHeaderEv:
  359|   213k|		{
  360|   213k|			return reinterpret_cast<icmphdr*>(m_Data);
  361|   213k|		}
_ZNK4pcpp9IcmpLayer16getOsiModelLayerEv:
  612|  7.11k|		{
  613|  7.11k|			return OsiModelNetworkLayer;
  614|  7.11k|		}
_ZN4pcpp9IcmpLayer11isDataValidEPKhm:
  620|  39.8k|	{
  621|  39.8k|		if (dataLen < sizeof(icmphdr))
  ------------------
  |  Branch (621:7): [True: 232, False: 39.6k]
  ------------------
  622|    232|			return false;
  623|       |
  624|  39.6k|		uint8_t type = data[0];
  625|       |
  626|       |		// ICMP_ECHO_REQUEST, ICMP_ECHO_REPLY, ICMP_ROUTER_SOL, ICMP_INFO_REQUEST, ICMP_INFO_REPLY
  627|  39.6k|		if (type == 8 || type == 0 || type == 10 || type == 15 || type == 16)
  ------------------
  |  Branch (627:7): [True: 198, False: 39.4k]
  |  Branch (627:20): [True: 1.52k, False: 37.8k]
  |  Branch (627:33): [True: 2.17k, False: 35.7k]
  |  Branch (627:47): [True: 1.96k, False: 33.7k]
  |  Branch (627:61): [True: 2.58k, False: 31.1k]
  ------------------
  628|  8.45k|			return true;
  629|       |
  630|       |		// ICMP_TIMESTAMP_REQUEST, ICMP_TIMESTAMP_REPLY
  631|  31.1k|		if (type == 13 || type == 14)
  ------------------
  |  Branch (631:7): [True: 130, False: 31.0k]
  |  Branch (631:21): [True: 4.94k, False: 26.0k]
  ------------------
  632|  5.07k|			return dataLen >= sizeof(icmp_timestamp_request);
  633|       |
  634|       |		// ICMP_ADDRESS_MASK_REPLY, ICMP_ADDRESS_MASK_REQUEST
  635|  26.0k|		if (type == 17 || type == 18)
  ------------------
  |  Branch (635:7): [True: 3.62k, False: 22.4k]
  |  Branch (635:21): [True: 5.54k, False: 16.9k]
  ------------------
  636|  9.17k|			return dataLen >= sizeof(icmp_address_mask_request);
  637|       |
  638|       |		// ICMP_DEST_UNREACHABLE
  639|  16.9k|		if (type == 3)
  ------------------
  |  Branch (639:7): [True: 3.42k, False: 13.4k]
  ------------------
  640|  3.42k|			return dataLen >= sizeof(icmp_destination_unreachable);
  641|       |
  642|       |		// ICMP_REDIRECT
  643|  13.4k|		if (type == 5)
  ------------------
  |  Branch (643:7): [True: 1.42k, False: 12.0k]
  ------------------
  644|  1.42k|			return dataLen >= sizeof(icmp_redirect);
  645|       |
  646|       |		// ICMP_TIME_EXCEEDED, ICMP_SOURCE_QUENCH
  647|  12.0k|		if (type == 4 || type == 11)
  ------------------
  |  Branch (647:7): [True: 2.15k, False: 9.91k]
  |  Branch (647:20): [True: 2.99k, False: 6.92k]
  ------------------
  648|  5.15k|			return dataLen >= sizeof(icmp_time_exceeded);
  649|       |
  650|       |		// ICMP_PARAM_PROBLEM
  651|  6.92k|		if (type == 12)
  ------------------
  |  Branch (651:7): [True: 3.87k, False: 3.04k]
  ------------------
  652|  3.87k|			return dataLen >= sizeof(icmp_param_problem);
  653|       |
  654|       |		// ICMP_ROUTER_ADV
  655|  3.04k|		if (type == 9)
  ------------------
  |  Branch (655:7): [True: 2.88k, False: 156]
  ------------------
  656|  2.88k|			return dataLen >= sizeof(icmp_router_advertisement_hdr);
  657|       |
  658|    156|		return false;
  659|  3.04k|	}

_ZN4pcpp11IcmpV6LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  132|  2.38k|		    : Layer(data, dataLen, prevLayer, packet, ICMPv6)
  133|  2.38k|		{}
_ZN4pcpp11IcmpV6Layer14parseNextLayerEv:
  170|  2.38k|		{}
_ZNK4pcpp11IcmpV6Layer12getHeaderLenEv:
  174|    899|		{
  175|    899|			return m_DataLen;
  176|    899|		}
_ZNK4pcpp11IcmpV6Layer16getOsiModelLayerEv:
  182|    589|		{
  183|    589|			return OsiModelNetworkLayer;
  184|    589|		}
_ZNK4pcpp11IcmpV6Layer15getIcmpv6HeaderEv:
  194|  2.04k|		{
  195|  2.04k|			return reinterpret_cast<icmpv6hdr*>(m_Data);
  196|  2.04k|		}
_ZN4pcpp15ICMPv6EchoLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  219|    556|		    : IcmpV6Layer(data, dataLen, prevLayer, packet)
  220|    556|		{}

_ZN4pcpp11IgmpV1Layer11isDataValidEPKhm:
  244|  3.12k|		{
  245|  3.12k|			return canReinterpretAs<igmp_header>(data, dataLen);
  246|  3.12k|		}
_ZN4pcpp11IgmpV1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  220|  3.12k|		    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv1)
  221|  3.12k|		{}
_ZN4pcpp9IgmpLayerC2EPhmPNS_5LayerEPNS_6PacketEh:
  142|  14.0k|		    : Layer(data, dataLen, prevLayer, packet, igmpVer)
  143|  14.0k|		{}
_ZN4pcpp11IgmpV2Layer11isDataValidEPKhm:
  287|  7.32k|		{
  288|  7.32k|			return canReinterpretAs<igmp_header>(data, dataLen);
  289|  7.32k|		}
_ZN4pcpp11IgmpV2LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  261|  7.32k|		    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv2)
  262|  7.32k|		{}
_ZN4pcpp16IgmpV3QueryLayer11isDataValidEPKhm:
  374|  1.43k|		{
  375|  1.43k|			return canReinterpretAs<igmpv3_query_header>(data, dataLen);
  376|  1.43k|		}
_ZN4pcpp17IgmpV3ReportLayer11isDataValidEPKhm:
  477|  2.14k|		{
  478|  2.14k|			return canReinterpretAs<igmpv3_report_header>(data, dataLen);
  479|  2.14k|		}
_ZN4pcpp17IgmpV3ReportLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  394|  2.14k|		    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv3)
  395|  2.14k|		{}
_ZNK4pcpp9IgmpLayer13getIgmpHeaderEv:
  158|  10.7k|		{
  159|  10.7k|			return reinterpret_cast<igmp_header*>(m_Data);
  160|  10.7k|		}
_ZN4pcpp9IgmpLayer14parseNextLayerEv:
  192|  14.0k|		{}
_ZNK4pcpp9IgmpLayer12getHeaderLenEv:
  196|  4.20k|		{
  197|  4.20k|			return sizeof(igmp_header);
  198|  4.20k|		}
_ZNK4pcpp9IgmpLayer16getOsiModelLayerEv:
  203|  2.89k|		{
  204|  2.89k|			return OsiModelNetworkLayer;
  205|  2.89k|		}
_ZNK4pcpp16IgmpV3QueryLayer20getIgmpV3QueryHeaderEv:
  319|  1.07k|		{
  320|  1.07k|			return reinterpret_cast<igmpv3_query_header*>(m_Data);
  321|  1.07k|		}
_ZNK4pcpp17IgmpV3ReportLayer15getReportHeaderEv:
  405|    432|		{
  406|    432|			return reinterpret_cast<igmpv3_report_header*>(m_Data);
  407|    432|		}
_ZNK4pcpp17IgmpV3ReportLayer12getHeaderLenEv:
  468|    864|		{
  469|    864|			return m_DataLen;
  470|    864|		}

_ZN4pcpp8LLCLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   37|  3.52k|		    : Layer(data, dataLen, prevLayer, packet, LLC)
   38|  3.52k|		{}
_ZNK4pcpp8LLCLayer12getLlcHeaderEv:
   49|  2.25k|		{
   50|  2.25k|			return reinterpret_cast<llc_header*>(m_Data);
   51|  2.25k|		};
_ZN4pcpp8LLCLayer22computeCalculateFieldsEv:
   60|    916|		{}
_ZNK4pcpp8LLCLayer12getHeaderLenEv:
   64|    916|		{
   65|    916|			return sizeof(llc_header);
   66|    916|		}
_ZNK4pcpp8LLCLayer16getOsiModelLayerEv:
   73|    916|		{
   74|    916|			return OsiModelDataLinkLayer;
   75|    916|		}

_ZNK4pcpp5Layer12getNextLayerEv:
  126|  87.7M|		{
  127|  87.7M|			return m_NextLayer;
  128|  87.7M|		}
_ZNK4pcpp5Layer12getPrevLayerEv:
  132|  1.88M|		{
  133|  1.88M|			return m_PrevLayer;
  134|  1.88M|		}
_ZNK4pcpp5Layer11getProtocolEv:
  138|  62.8M|		{
  139|  62.8M|			return m_Protocol;
  140|  62.8M|		}
_ZNK4pcpp5Layer7getDataEv:
  149|   284k|		{
  150|   284k|			return m_Data;
  151|   284k|		}
_ZNK4pcpp5Layer10getDataLenEv:
  155|  3.29M|		{
  156|  3.29M|			return m_DataLen;
  157|  3.29M|		}
_ZNK4pcpp5Layer19getLayerPayloadSizeEv:
  167|  66.6k|		{
  168|  66.6k|			return m_DataLen - getHeaderLen();
  169|  66.6k|		}
_ZNK4pcpp5Layer19isAllocatedToPacketEv:
  181|  4.63M|		{
  182|  4.63M|			return m_AllocationInfo.attachedPacket != nullptr;
  183|  4.63M|		}
_ZNK4pcpp5Layer10getDataPtrEm:
  211|  97.7k|		{
  212|  97.7k|			return static_cast<uint8_t*>(m_Data + offset);
  213|  97.7k|		}
_ZN4pcpp5LayerC2EPhmPS0_PNS_6PacketEh:
  248|  4.51M|		    : m_Data(data), m_DataLen(dataLen), m_Protocol(protocol), m_NextLayer(nullptr), m_PrevLayer(prevLayer),
  249|  4.51M|		      m_AllocationInfo{ packet, false }
  250|  4.51M|		{}
_ZN4pcpp5Layer17getAttachedPacketEv:
  259|  4.42M|		{
  260|  4.42M|			return m_AllocationInfo.attachedPacket;
  261|  4.42M|		}
_ZNK4pcpp5Layer17getAttachedPacketEv:
  266|  2.95k|		{
  267|  2.95k|			return m_AllocationInfo.attachedPacket;
  268|  2.95k|		}
_ZN4pcpp5Layer12setNextLayerEPS0_:
  271|  3.63M|		{
  272|  3.63M|			m_NextLayer = nextLayer;
  273|  3.63M|		}
_ZNK4pcpp5Layer12hasNextLayerEv:
  299|  6.34M|		{
  300|  6.34M|			return m_NextLayer != nullptr;
  301|  6.34M|		}
_ZN4pcpp5Layer16canReinterpretAsINS_6arphdrEEEbPKhm:
  559|  2.99k|		{
  560|  2.99k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 2.99k, False: 0]
  |  Branch (560:30): [True: 2.97k, False: 21]
  ------------------
  561|  2.99k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_5iphdrEEEbPKhm:
  559|   878k|		{
  560|   878k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 878k, False: 0]
  |  Branch (560:30): [True: 869k, False: 9.29k]
  ------------------
  561|   878k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11dhcp_headerEEEbPKhm:
  559|  14.1k|		{
  560|  14.1k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 14.1k, False: 0]
  |  Branch (560:30): [True: 13.9k, False: 198]
  ------------------
  561|  14.1k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vrrp_headerEEEbPKhm:
  559|  6.91k|		{
  560|  6.91k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 6.91k, False: 0]
  |  Branch (560:30): [True: 6.91k, False: 0]
  ------------------
  561|  6.91k|		}
_ZN4pcpp14IDataContainerD2Ev:
   29|  4.63M|		virtual ~IDataContainer() = default;
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  359|   130k|		{
  360|   130k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  361|   130k|			                                               std::forward<Args>(extraArgs)...);
  362|   130k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|   177k|		{
  384|   177k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 177k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|   177k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|   177k|			setNextLayer(newLayer);
  392|   177k|			return newLayer;
  393|   177k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|   875k|		{
  455|   875k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|   875k|			                                                       std::forward<Args>(extraArgs)...);
  457|   875k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|   877k|		{
  477|   877k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 863k, False: 14.3k]
  ------------------
  478|   863k|			{
  479|   863k|				return m_NextLayer;
  480|   863k|			}
  481|       |
  482|  14.3k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|   877k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|   877k|		{
  429|   877k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 863k, False: 14.3k]
  ------------------
  430|   863k|			{
  431|   863k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|   863k|			}
  433|  14.3k|			return nullptr;
  434|   877k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|   863k|		{
  330|   863k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 863k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|   863k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|   863k|			setNextLayer(newLayer);
  337|   863k|			return newLayer;
  338|   863k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|   261k|		{
  330|   261k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 261k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|   261k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|   261k|			setNextLayer(newLayer);
  337|   261k|			return newLayer;
  338|   261k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|   152k|		{
  455|   152k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|   152k|			                                                       std::forward<Args>(extraArgs)...);
  457|   152k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|   152k|		{
  477|   152k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 149k, False: 3.24k]
  ------------------
  478|   149k|			{
  479|   149k|				return m_NextLayer;
  480|   149k|			}
  481|       |
  482|  3.24k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|   152k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|   152k|		{
  429|   152k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 149k, False: 3.24k]
  ------------------
  430|   149k|			{
  431|   149k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|   149k|			}
  433|  3.24k|			return nullptr;
  434|   152k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7ip6_hdrEEEbPKhm:
  559|   152k|		{
  560|   152k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 152k, False: 0]
  |  Branch (560:30): [True: 150k, False: 1.46k]
  ------------------
  561|   152k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|   149k|		{
  330|   149k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 149k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|   149k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|   149k|			setNextLayer(newLayer);
  337|   149k|			return newLayer;
  338|   149k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9VlanLayerEJEEEPS0_PhmDpOT0_:
  315|  56.5k|		{
  316|  56.5k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  56.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|   198k|		{
  330|   198k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 198k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|   198k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|   198k|			setNextLayer(newLayer);
  337|   198k|			return newLayer;
  338|   198k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9MplsLayerEJEEEPS0_PhmDpOT0_:
  315|  4.47k|		{
  316|  4.47k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  4.47k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9MplsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  4.47k|		{
  330|  4.47k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 4.47k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  4.47k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  4.47k|			setNextLayer(newLayer);
  337|  4.47k|			return newLayer;
  338|  4.47k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_13PPP_PPTPLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  66.4k|		{
  455|  66.4k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  66.4k|			                                                       std::forward<Args>(extraArgs)...);
  457|  66.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_13PPP_PPTPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  66.4k|		{
  477|  66.4k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 66.4k, False: 0]
  ------------------
  478|  66.4k|			{
  479|  66.4k|				return m_NextLayer;
  480|  66.4k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  66.4k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  66.4k|		{
  429|  66.4k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 66.4k, False: 0]
  ------------------
  430|  66.4k|			{
  431|  66.4k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  66.4k|			}
  433|      0|			return nullptr;
  434|  66.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  66.4k|		{
  330|  66.4k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 66.4k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  66.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  66.4k|			setNextLayer(newLayer);
  337|  66.4k|			return newLayer;
  338|  66.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8EthLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|     24|		{
  330|     24|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 24]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|     24|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|     24|			setNextLayer(newLayer);
  337|     24|			return newLayer;
  338|     24|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmDpOT0_:
  315|  95.5k|		{
  316|  95.5k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  95.5k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vlan_headerEEEbPKhm:
  559|   142k|		{
  560|   142k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 142k, False: 0]
  |  Branch (560:30): [True: 141k, False: 129]
  ------------------
  561|   142k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|   320k|		{
  477|   320k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 317k, False: 2.46k]
  ------------------
  478|   317k|			{
  479|   317k|				return m_NextLayer;
  480|   317k|			}
  481|       |
  482|  2.46k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|   320k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|   320k|		{
  429|   320k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 317k, False: 2.46k]
  ------------------
  430|   317k|			{
  431|   317k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|   317k|			}
  433|  2.46k|			return nullptr;
  434|   320k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|   317k|		{
  330|   317k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 317k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|   317k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|   317k|			setNextLayer(newLayer);
  337|   317k|			return newLayer;
  338|   317k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|   514k|		{
  477|   514k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 504k, False: 10.1k]
  ------------------
  478|   504k|			{
  479|   504k|				return m_NextLayer;
  480|   504k|			}
  481|       |
  482|  10.1k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|   514k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|   514k|		{
  429|   514k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 504k, False: 10.1k]
  ------------------
  430|   504k|			{
  431|   504k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|   504k|			}
  433|  10.1k|			return nullptr;
  434|   514k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|   504k|		{
  330|   504k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 504k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|   504k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|   504k|			setNextLayer(newLayer);
  337|   504k|			return newLayer;
  338|   504k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IcmpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  39.8k|		{
  477|  39.8k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 39.2k, False: 646]
  ------------------
  478|  39.2k|			{
  479|  39.2k|				return m_NextLayer;
  480|  39.2k|			}
  481|       |
  482|    646|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  39.8k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  39.8k|		{
  429|  39.8k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 39.2k, False: 646]
  ------------------
  430|  39.2k|			{
  431|  39.2k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  39.2k|			}
  433|    646|			return nullptr;
  434|  39.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  39.2k|		{
  330|  39.2k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 39.2k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  39.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  39.2k|			setNextLayer(newLayer);
  337|  39.2k|			return newLayer;
  338|  39.2k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  9.79k|		{
  477|  9.79k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 9.79k, False: 0]
  ------------------
  478|  9.79k|			{
  479|  9.79k|				return m_NextLayer;
  480|  9.79k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  9.79k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  9.79k|		{
  429|  9.79k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 9.79k, False: 0]
  ------------------
  430|  9.79k|			{
  431|  9.79k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  9.79k|			}
  433|      0|			return nullptr;
  434|  9.79k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  9.79k|		{
  330|  9.79k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 9.79k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  9.79k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  9.79k|			setNextLayer(newLayer);
  337|  9.79k|			return newLayer;
  338|  9.79k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv1LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  73.6k|		{
  477|  73.6k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 73.6k, False: 0]
  ------------------
  478|  73.6k|			{
  479|  73.6k|				return m_NextLayer;
  480|  73.6k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  73.6k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  73.6k|		{
  429|  73.6k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 73.6k, False: 0]
  ------------------
  430|  73.6k|			{
  431|  73.6k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  73.6k|			}
  433|      0|			return nullptr;
  434|  73.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  73.6k|		{
  330|  73.6k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 73.6k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  73.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  73.6k|			setNextLayer(newLayer);
  337|  73.6k|			return newLayer;
  338|  73.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11IgmpV1LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  3.12k|		{
  477|  3.12k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 3.12k, False: 0]
  ------------------
  478|  3.12k|			{
  479|  3.12k|				return m_NextLayer;
  480|  3.12k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  3.12k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11IgmpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  3.12k|		{
  429|  3.12k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 3.12k, False: 0]
  ------------------
  430|  3.12k|			{
  431|  3.12k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  3.12k|			}
  433|      0|			return nullptr;
  434|  3.12k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11igmp_headerEEEbPKhm:
  559|  10.4k|		{
  560|  10.4k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 10.4k, False: 0]
  |  Branch (560:30): [True: 10.4k, False: 0]
  ------------------
  561|  10.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11IgmpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  3.12k|		{
  330|  3.12k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 3.12k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  3.12k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  3.12k|			setNextLayer(newLayer);
  337|  3.12k|			return newLayer;
  338|  3.12k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11IgmpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  7.32k|		{
  477|  7.32k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 7.32k, False: 0]
  ------------------
  478|  7.32k|			{
  479|  7.32k|				return m_NextLayer;
  480|  7.32k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  7.32k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  7.32k|		{
  429|  7.32k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 7.32k, False: 0]
  ------------------
  430|  7.32k|			{
  431|  7.32k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  7.32k|			}
  433|      0|			return nullptr;
  434|  7.32k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  7.32k|		{
  330|  7.32k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 7.32k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  7.32k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  7.32k|			setNextLayer(newLayer);
  337|  7.32k|			return newLayer;
  338|  7.32k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_16IgmpV3QueryLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  1.43k|		{
  477|  1.43k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 1.43k, False: 0]
  ------------------
  478|  1.43k|			{
  479|  1.43k|				return m_NextLayer;
  480|  1.43k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  1.43k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_16IgmpV3QueryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  1.43k|		{
  429|  1.43k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 1.43k, False: 0]
  ------------------
  430|  1.43k|			{
  431|  1.43k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  1.43k|			}
  433|      0|			return nullptr;
  434|  1.43k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_19igmpv3_query_headerEEEbPKhm:
  559|  1.43k|		{
  560|  1.43k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 1.43k, False: 0]
  |  Branch (560:30): [True: 1.43k, False: 0]
  ------------------
  561|  1.43k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16IgmpV3QueryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  1.43k|		{
  330|  1.43k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 1.43k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  1.43k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  1.43k|			setNextLayer(newLayer);
  337|  1.43k|			return newLayer;
  338|  1.43k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17IgmpV3ReportLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  2.14k|		{
  477|  2.14k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 2.14k, False: 0]
  ------------------
  478|  2.14k|			{
  479|  2.14k|				return m_NextLayer;
  480|  2.14k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  2.14k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  2.14k|		{
  429|  2.14k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 2.14k, False: 0]
  ------------------
  430|  2.14k|			{
  431|  2.14k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  2.14k|			}
  433|      0|			return nullptr;
  434|  2.14k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20igmpv3_report_headerEEEbPKhm:
  559|  2.14k|		{
  560|  2.14k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 2.14k, False: 0]
  |  Branch (560:30): [True: 2.14k, False: 0]
  ------------------
  561|  2.14k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  2.14k|		{
  330|  2.14k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 2.14k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  2.14k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  2.14k|			setNextLayer(newLayer);
  337|  2.14k|			return newLayer;
  338|  2.14k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_25AuthenticationHeaderLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  4.49k|		{
  477|  4.49k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 4.35k, False: 138]
  ------------------
  478|  4.35k|			{
  479|  4.35k|				return m_NextLayer;
  480|  4.35k|			}
  481|       |
  482|    138|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  4.49k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  4.49k|		{
  429|  4.49k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 4.35k, False: 138]
  ------------------
  430|  4.35k|			{
  431|  4.35k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  4.35k|			}
  433|    138|			return nullptr;
  434|  4.49k|		}
_ZN4pcpp5Layer18constructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  4.35k|		{
  330|  4.35k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 4.35k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  4.35k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  4.35k|			setNextLayer(newLayer);
  337|  4.35k|			return newLayer;
  338|  4.35k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  5.27k|		{
  477|  5.27k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 5.27k, False: 0]
  ------------------
  478|  5.27k|			{
  479|  5.27k|				return m_NextLayer;
  480|  5.27k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  5.27k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  5.27k|		{
  429|  5.27k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 5.27k, False: 0]
  ------------------
  430|  5.27k|			{
  431|  5.27k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  5.27k|			}
  433|      0|			return nullptr;
  434|  5.27k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  5.27k|		{
  330|  5.27k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 5.27k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  5.27k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  5.27k|			setNextLayer(newLayer);
  337|  5.27k|			return newLayer;
  338|  5.27k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  3.48k|		{
  477|  3.48k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 3.48k, False: 0]
  ------------------
  478|  3.48k|			{
  479|  3.48k|				return m_NextLayer;
  480|  3.48k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  3.48k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  3.48k|		{
  429|  3.48k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 3.48k, False: 0]
  ------------------
  430|  3.48k|			{
  431|  3.48k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  3.48k|			}
  433|      0|			return nullptr;
  434|  3.48k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  3.48k|		{
  330|  3.48k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 3.48k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  3.48k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  3.48k|			setNextLayer(newLayer);
  337|  3.48k|			return newLayer;
  338|  3.48k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV3LayerENS_12PayloadLayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  3.43k|		{
  477|  3.43k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 3.43k, False: 0]
  ------------------
  478|  3.43k|			{
  479|  3.43k|				return m_NextLayer;
  480|  3.43k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  3.43k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  3.43k|		{
  429|  3.43k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 3.43k, False: 0]
  ------------------
  430|  3.43k|			{
  431|  3.43k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  3.43k|			}
  433|      0|			return nullptr;
  434|  3.43k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  7.02k|		{
  330|  7.02k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 7.02k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  7.02k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  7.02k|			setNextLayer(newLayer);
  337|  7.02k|			return newLayer;
  338|  7.02k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  31.7k|		{
  455|  31.7k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  31.7k|			                                                       std::forward<Args>(extraArgs)...);
  457|  31.7k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  90.4k|		{
  455|  90.4k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  90.4k|			                                                       std::forward<Args>(extraArgs)...);
  457|  90.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  6.77k|		{
  455|  6.77k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  6.77k|			                                                       std::forward<Args>(extraArgs)...);
  457|  6.77k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv1LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  5.48k|		{
  455|  5.48k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  5.48k|			                                                       std::forward<Args>(extraArgs)...);
  457|  5.48k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  3.12k|		{
  455|  3.12k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  3.12k|			                                                       std::forward<Args>(extraArgs)...);
  457|  3.12k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mDpOT0_:
  359|  51.2k|		{
  360|  51.2k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  361|  51.2k|			                                               std::forward<Args>(extraArgs)...);
  362|  51.2k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mS5_DpOT0_:
  383|  51.2k|		{
  384|  51.2k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 51.2k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  51.2k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  51.2k|			setNextLayer(newLayer);
  392|  51.2k|			return newLayer;
  393|  51.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmDpOT0_:
  315|  3.59k|		{
  316|  3.59k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  3.59k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ArpLayerEJEEEPS0_PhmDpOT0_:
  315|  1.81k|		{
  316|  1.81k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  1.81k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  4.78k|		{
  330|  4.78k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 4.78k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  4.78k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  4.78k|			setNextLayer(newLayer);
  337|  4.78k|			return newLayer;
  338|  4.78k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  41.9k|		{
  455|  41.9k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  41.9k|			                                                       std::forward<Args>(extraArgs)...);
  457|  41.9k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  41.9k|		{
  477|  41.9k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 41.9k, False: 0]
  ------------------
  478|  41.9k|			{
  479|  41.9k|				return m_NextLayer;
  480|  41.9k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  41.9k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  41.9k|		{
  429|  41.9k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 41.9k, False: 0]
  ------------------
  430|  41.9k|			{
  431|  41.9k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  41.9k|			}
  433|      0|			return nullptr;
  434|  41.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  41.9k|		{
  330|  41.9k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 41.9k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  41.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  41.9k|			setNextLayer(newLayer);
  337|  41.9k|			return newLayer;
  338|  41.9k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  1.06k|		{
  455|  1.06k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  1.06k|			                                                       std::forward<Args>(extraArgs)...);
  457|  1.06k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  1.06k|		{
  477|  1.06k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 1.06k, False: 0]
  ------------------
  478|  1.06k|			{
  479|  1.06k|				return m_NextLayer;
  480|  1.06k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  1.06k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  1.06k|		{
  429|  1.06k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 1.06k, False: 0]
  ------------------
  430|  1.06k|			{
  431|  1.06k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  1.06k|			}
  433|      0|			return nullptr;
  434|  1.06k|		}
_ZN4pcpp5Layer18constructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  1.06k|		{
  330|  1.06k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 1.06k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  1.06k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  1.06k|			setNextLayer(newLayer);
  337|  1.06k|			return newLayer;
  338|  1.06k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  3.78k|		{
  455|  3.78k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  3.78k|			                                                       std::forward<Args>(extraArgs)...);
  457|  3.78k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  3.78k|		{
  477|  3.78k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 3.52k, False: 257]
  ------------------
  478|  3.52k|			{
  479|  3.52k|				return m_NextLayer;
  480|  3.52k|			}
  481|       |
  482|    257|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  3.78k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  3.78k|		{
  429|  3.78k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 3.52k, False: 257]
  ------------------
  430|  3.52k|			{
  431|  3.52k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  3.52k|			}
  433|    257|			return nullptr;
  434|  3.78k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  3.52k|		{
  330|  3.52k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 3.52k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  3.52k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  3.52k|			setNextLayer(newLayer);
  337|  3.52k|			return newLayer;
  338|  3.52k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20ssl_tls_record_layerEEEbPKhm:
  559|   215k|		{
  560|   215k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 215k, False: 0]
  |  Branch (560:30): [True: 215k, False: 0]
  ------------------
  561|   215k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  359|   215k|		{
  360|   215k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  361|   215k|			                                               std::forward<Args>(extraArgs)...);
  362|   215k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|   215k|		{
  384|   215k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 215k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|   215k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|   215k|			setNextLayer(newLayer);
  392|   215k|			return newLayer;
  393|   215k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7tpkthdrEEEbPKhm:
  559|   125k|		{
  560|   125k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 125k, False: 0]
  |  Branch (560:30): [True: 121k, False: 3.70k]
  ------------------
  561|   125k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16HttpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  5.38k|		{
  330|  5.38k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 5.38k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  5.38k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  5.38k|			setNextLayer(newLayer);
  337|  5.38k|			return newLayer;
  338|  5.38k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17HttpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  10.9k|		{
  330|  10.9k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 10.9k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  10.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  10.9k|			setNextLayer(newLayer);
  337|  10.9k|			return newLayer;
  338|  10.9k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  509|  47.2k|		{
  510|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  511|  47.2k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  512|  47.2k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  513|  47.2k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  538|  47.2k|		{
  539|  47.2k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  540|  47.2k|			                                                         std::forward<Args>(extraArgs)...);
  541|  47.2k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (541:8): [True: 43.3k, False: 3.96k]
  ------------------
  542|  43.3k|			{
  543|  43.3k|				return nextLayer;
  544|  43.3k|			}
  545|       |
  546|       |			// factory failed, construct fallback layer
  547|  3.96k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  548|  47.2k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  359|  16.7k|		{
  360|  16.7k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  361|  16.7k|			                                               std::forward<Args>(extraArgs)...);
  362|  16.7k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|  16.7k|		{
  384|  16.7k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 16.7k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  16.7k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  16.7k|			setNextLayer(newLayer);
  392|  16.7k|			return newLayer;
  393|  16.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_15DnsOverTcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  17.7k|		{
  330|  17.7k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 17.7k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  17.7k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  17.7k|			setNextLayer(newLayer);
  337|  17.7k|			return newLayer;
  338|  17.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11TelnetLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  49.9k|		{
  330|  49.9k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 49.9k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  49.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  49.9k|			setNextLayer(newLayer);
  337|  49.9k|			return newLayer;
  338|  49.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16FtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  9.69k|		{
  330|  9.69k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 9.69k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  9.69k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  9.69k|			setNextLayer(newLayer);
  337|  9.69k|			return newLayer;
  338|  9.69k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12FtpDataLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  3.22k|		{
  330|  3.22k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 3.22k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  3.22k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  3.22k|			setNextLayer(newLayer);
  337|  3.22k|			return newLayer;
  338|  3.22k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9DoIpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  509|  49.2k|		{
  510|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  511|  49.2k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  512|  49.2k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  513|  49.2k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9DoIpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  538|  49.2k|		{
  539|  49.2k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  540|  49.2k|			                                                         std::forward<Args>(extraArgs)...);
  541|  49.2k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (541:8): [True: 49.1k, False: 150]
  ------------------
  542|  49.1k|			{
  543|  49.1k|				return nextLayer;
  544|  49.1k|			}
  545|       |
  546|       |			// factory failed, construct fallback layer
  547|    150|			return constructNextLayer<TFallback>(data, dataLen, packet);
  548|  49.2k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9DoIpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|  49.2k|		{
  384|  49.2k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 49.2k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  49.2k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  49.2k|			setNextLayer(newLayer);
  392|  49.2k|			return newLayer;
  393|  49.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9TpktLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  21.9k|		{
  330|  21.9k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 21.9k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  21.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  21.9k|			setNextLayer(newLayer);
  337|  21.9k|			return newLayer;
  338|  21.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17SmtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|    160|		{
  330|    160|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 160]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|    160|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|    160|			setNextLayer(newLayer);
  337|    160|			return newLayer;
  338|    160|		}
_ZN4pcpp5Layer18constructNextLayerINS_16SmtpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|    120|		{
  330|    120|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 120]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|    120|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|    120|			setNextLayer(newLayer);
  337|    120|			return newLayer;
  338|    120|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  509|  37.8k|		{
  510|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  511|  37.8k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  512|  37.8k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  513|  37.8k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  538|  37.8k|		{
  539|  37.8k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  540|  37.8k|			                                                         std::forward<Args>(extraArgs)...);
  541|  37.8k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (541:8): [True: 29.9k, False: 7.89k]
  ------------------
  542|  29.9k|			{
  543|  29.9k|				return nextLayer;
  544|  29.9k|			}
  545|       |
  546|       |			// factory failed, construct fallback layer
  547|  7.89k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  548|  37.8k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|  58.5k|		{
  384|  58.5k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 58.5k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  58.5k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  58.5k|			setNextLayer(newLayer);
  392|  58.5k|			return newLayer;
  393|  58.5k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  509|      5|		{
  510|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  511|      5|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  512|      5|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  513|      5|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  538|      5|		{
  539|      5|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  540|      5|			                                                         std::forward<Args>(extraArgs)...);
  541|      5|			if (nextLayer != nullptr)
  ------------------
  |  Branch (541:8): [True: 5, False: 0]
  ------------------
  542|      5|			{
  543|      5|				return nextLayer;
  544|      5|			}
  545|       |
  546|       |			// factory failed, construct fallback layer
  547|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  548|      5|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|      5|		{
  384|      5|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 5]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|      5|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|      5|			setNextLayer(newLayer);
  392|      5|			return newLayer;
  393|      5|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  509|  1.10k|		{
  510|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  511|  1.10k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  512|  1.10k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  513|  1.10k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  538|  1.10k|		{
  539|  1.10k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  540|  1.10k|			                                                         std::forward<Args>(extraArgs)...);
  541|  1.10k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (541:8): [True: 1.10k, False: 0]
  ------------------
  542|  1.10k|			{
  543|  1.10k|				return nextLayer;
  544|  1.10k|			}
  545|       |
  546|       |			// factory failed, construct fallback layer
  547|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  548|  1.10k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|  1.10k|		{
  384|  1.10k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 1.10k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  1.10k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  1.10k|			setNextLayer(newLayer);
  392|  1.10k|			return newLayer;
  393|  1.10k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11ModbusLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|      5|		{
  330|      5|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 5]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|      5|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|      5|			setNextLayer(newLayer);
  337|      5|			return newLayer;
  338|      5|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  21.9k|		{
  455|  21.9k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  21.9k|			                                                       std::forward<Args>(extraArgs)...);
  457|  21.9k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  21.9k|		{
  477|  21.9k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 20.1k, False: 1.79k]
  ------------------
  478|  20.1k|			{
  479|  20.1k|				return m_NextLayer;
  480|  20.1k|			}
  481|       |
  482|  1.79k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  21.9k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  21.9k|		{
  429|  21.9k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 20.1k, False: 1.79k]
  ------------------
  430|  20.1k|			{
  431|  20.1k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  20.1k|			}
  433|  1.79k|			return nullptr;
  434|  21.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  20.1k|		{
  330|  20.1k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 20.1k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  20.1k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  20.1k|			setNextLayer(newLayer);
  337|  20.1k|			return newLayer;
  338|  20.1k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  14.1k|		{
  455|  14.1k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  14.1k|			                                                       std::forward<Args>(extraArgs)...);
  457|  14.1k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  14.1k|		{
  477|  14.1k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 13.9k, False: 198]
  ------------------
  478|  13.9k|			{
  479|  13.9k|				return m_NextLayer;
  480|  13.9k|			}
  481|       |
  482|    198|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  14.1k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  14.1k|		{
  429|  14.1k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 13.9k, False: 198]
  ------------------
  430|  13.9k|			{
  431|  13.9k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  13.9k|			}
  433|    198|			return nullptr;
  434|  14.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  13.9k|		{
  330|  13.9k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 13.9k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  13.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  13.9k|			setNextLayer(newLayer);
  337|  13.9k|			return newLayer;
  338|  13.9k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10VxlanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|     24|		{
  455|     24|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|     24|			                                                       std::forward<Args>(extraArgs)...);
  457|     24|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10VxlanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|     24|		{
  477|     24|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 24, False: 0]
  ------------------
  478|     24|			{
  479|     24|				return m_NextLayer;
  480|     24|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|     24|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10VxlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|     24|		{
  429|     24|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 24, False: 0]
  ------------------
  430|     24|			{
  431|     24|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|     24|			}
  433|      0|			return nullptr;
  434|     24|		}
_ZN4pcpp5Layer16canReinterpretAsINS_12vxlan_headerEEEbPKhm:
  559|     24|		{
  560|     24|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 24, False: 0]
  |  Branch (560:30): [True: 24, False: 0]
  ------------------
  561|     24|		}
_ZN4pcpp5Layer18constructNextLayerINS_10VxlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|     24|		{
  330|     24|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 24]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|     24|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|     24|			setNextLayer(newLayer);
  337|     24|			return newLayer;
  338|     24|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmDpOT0_:
  315|  50.5k|		{
  316|  50.5k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  50.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  50.5k|		{
  330|  50.5k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 50.5k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  50.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  50.5k|			setNextLayer(newLayer);
  337|  50.5k|			return newLayer;
  338|  50.5k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mDpOT1_:
  509|  69.6k|		{
  510|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  511|  69.6k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  512|  69.6k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  513|  69.6k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mS8_DpOT1_:
  538|  69.6k|		{
  539|  69.6k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  540|  69.6k|			                                                         std::forward<Args>(extraArgs)...);
  541|  69.6k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (541:8): [True: 66.4k, False: 3.20k]
  ------------------
  542|  66.4k|			{
  543|  66.4k|				return nextLayer;
  544|  66.4k|			}
  545|       |
  546|       |			// factory failed, construct fallback layer
  547|  3.20k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  548|  69.6k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSA_EEES5_T_S4_mS7_DpOT0_:
  383|  69.6k|		{
  384|  69.6k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 69.6k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  69.6k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  69.6k|			setNextLayer(newLayer);
  392|  69.6k|			return newLayer;
  393|  69.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmDpOT0_:
  315|  10.8k|		{
  316|  10.8k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  10.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  10.8k|		{
  330|  10.8k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 10.8k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  10.8k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  10.8k|			setNextLayer(newLayer);
  337|  10.8k|			return newLayer;
  338|  10.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmDpOT0_:
  315|  31.6k|		{
  316|  31.6k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  31.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  31.6k|		{
  330|  31.6k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 31.6k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  31.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  31.6k|			setNextLayer(newLayer);
  337|  31.6k|			return newLayer;
  338|  31.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmDpOT0_:
  315|  18.1k|		{
  316|  18.1k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  18.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  18.1k|		{
  330|  18.1k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 18.1k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  18.1k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  18.1k|			setNextLayer(newLayer);
  337|  18.1k|			return newLayer;
  338|  18.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmDpOT0_:
  315|  14.4k|		{
  316|  14.4k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  14.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  14.4k|		{
  330|  14.4k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 14.4k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  14.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  14.4k|			setNextLayer(newLayer);
  337|  14.4k|			return newLayer;
  338|  14.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmDpOT0_:
  315|    775|		{
  316|    775|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|    775|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|    775|		{
  330|    775|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 775]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|    775|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|    775|			setNextLayer(newLayer);
  337|    775|			return newLayer;
  338|    775|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  509|  1.82k|		{
  510|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  511|  1.82k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  512|  1.82k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  513|  1.82k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  538|  1.82k|		{
  539|  1.82k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  540|  1.82k|			                                                         std::forward<Args>(extraArgs)...);
  541|  1.82k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (541:8): [True: 1.82k, False: 0]
  ------------------
  542|  1.82k|			{
  543|  1.82k|				return nextLayer;
  544|  1.82k|			}
  545|       |
  546|       |			// factory failed, construct fallback layer
  547|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  548|  1.82k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|  1.82k|		{
  384|  1.82k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 1.82k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  1.82k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  1.82k|			setNextLayer(newLayer);
  392|  1.82k|			return newLayer;
  393|  1.82k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  509|  36.9k|		{
  510|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  511|  36.9k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  512|  36.9k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  513|  36.9k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  538|  36.9k|		{
  539|  36.9k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  540|  36.9k|			                                                         std::forward<Args>(extraArgs)...);
  541|  36.9k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (541:8): [True: 171, False: 36.8k]
  ------------------
  542|    171|			{
  543|    171|				return nextLayer;
  544|    171|			}
  545|       |
  546|       |			// factory failed, construct fallback layer
  547|  36.8k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  548|  36.9k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|  36.9k|		{
  384|  36.9k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 36.9k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  36.9k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  36.9k|			setNextLayer(newLayer);
  392|  36.9k|			return newLayer;
  393|  36.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8EthLayerEJEEEPS0_PhmDpOT0_:
  315|     24|		{
  316|     24|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|     24|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  14.5k|		{
  455|  14.5k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  14.5k|			                                                       std::forward<Args>(extraArgs)...);
  457|  14.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  14.5k|		{
  477|  14.5k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 13.6k, False: 835]
  ------------------
  478|  13.6k|			{
  479|  13.6k|				return m_NextLayer;
  480|  13.6k|			}
  481|       |
  482|    835|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  14.5k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  14.5k|		{
  429|  14.5k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 13.6k, False: 835]
  ------------------
  430|  13.6k|			{
  431|  13.6k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  13.6k|			}
  433|    835|			return nullptr;
  434|  14.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  13.6k|		{
  330|  13.6k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 13.6k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  13.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  13.6k|			setNextLayer(newLayer);
  337|  13.6k|			return newLayer;
  338|  13.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  2.99k|		{
  455|  2.99k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  2.99k|			                                                       std::forward<Args>(extraArgs)...);
  457|  2.99k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  2.99k|		{
  477|  2.99k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 2.97k, False: 21]
  ------------------
  478|  2.97k|			{
  479|  2.97k|				return m_NextLayer;
  480|  2.97k|			}
  481|       |
  482|     21|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  2.99k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  2.99k|		{
  429|  2.99k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 2.97k, False: 21]
  ------------------
  430|  2.97k|			{
  431|  2.97k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  2.97k|			}
  433|     21|			return nullptr;
  434|  2.99k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|   142k|		{
  455|   142k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|   142k|			                                                       std::forward<Args>(extraArgs)...);
  457|   142k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|   142k|		{
  477|   142k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 141k, False: 129]
  ------------------
  478|   141k|			{
  479|   141k|				return m_NextLayer;
  480|   141k|			}
  481|       |
  482|    129|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|   142k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|   142k|		{
  429|   142k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 141k, False: 129]
  ------------------
  430|   141k|			{
  431|   141k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|   141k|			}
  433|    129|			return nullptr;
  434|   142k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  359|  20.6k|		{
  360|  20.6k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  361|  20.6k|			                                               std::forward<Args>(extraArgs)...);
  362|  20.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmDpOT0_:
  315|  44.9k|		{
  316|  44.9k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  44.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  44.9k|		{
  330|  44.9k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 44.9k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  44.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  44.9k|			setNextLayer(newLayer);
  337|  44.9k|			return newLayer;
  338|  44.9k|		}

_ZN4pcpp9LdapLayer10isLdapPortEt:
  347|   188k|		{
  348|   188k|			return port == 389;
  349|   188k|		}
_ZN4pcpp17LdapOperationTypeC2ENS0_5ValueE:
   74|  4.10k|		constexpr LdapOperationType(Value value) : m_Value(value)
   75|  4.10k|		{}
_ZNK4pcpp17LdapOperationTypecvNS0_5ValueEEv:
   88|  50.4k|		{
   89|  50.4k|			return m_Value;
   90|  50.4k|		}
_ZNK4pcpp9LdapLayer12getHeaderLenEv:
  366|  56.9k|		{
  367|  56.9k|			return m_Asn1Record->getTotalLength();
  368|  56.9k|		}
_ZN4pcpp9LdapLayer22computeCalculateFieldsEv:
  371|  7.92k|		{}
_ZNK4pcpp9LdapLayer16getOsiModelLayerEv:
  374|  7.92k|		{
  375|  7.92k|			return OsiModelApplicationLayer;
  376|  7.92k|		}
_ZNK4pcpp9LdapLayer21getExtendedInfoStringEv:
  389|  9.16k|		{
  390|  9.16k|			return "";
  391|  9.16k|		}
_ZN4pcpp17LdapResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  447|  11.9k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  448|  11.9k|		{}
_ZN4pcpp20LdapBindRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  555|  3.45k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  556|  3.45k|		{}
_ZN4pcpp21LdapBindResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  602|  1.07k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  603|  1.07k|		{}
_ZNK4pcpp22LdapUnbindRequestLayer20getLdapOperationTypeEv:
  622|  2.08k|		{
  623|  2.08k|			return LdapOperationType::UnbindRequest;
  624|  2.08k|		}
_ZN4pcpp22LdapUnbindRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  636|  5.26k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  637|  5.26k|		{}
_ZN4pcpp22LdapSearchRequestLayer18SearchRequestScopeC2ENS1_5ValueE:
  674|  1.35k|			constexpr SearchRequestScope(Value value) : m_Value(value)
  675|  1.35k|			{}
_ZN4pcpp22LdapSearchRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  820|  3.38k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  821|  3.38k|		{}
_ZN4pcpp26LdapSearchResultEntryLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  862|  1.10k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  863|  1.10k|		{}
_ZN4pcpp25LdapSearchResultDoneLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  895|  6.35k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  896|  6.35k|		{}
_ZN4pcpp23LdapModifyResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  928|    980|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  929|    980|		{}
_ZN4pcpp20LdapAddResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  961|     30|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  962|     30|		{}
_ZN4pcpp23LdapDeleteResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  994|    225|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  995|    225|		{}
_ZN4pcpp25LdapModifyDNResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
 1027|  2.17k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
 1028|  2.17k|		{}
_ZN4pcpp24LdapCompareResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
 1060|  1.14k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
 1061|  1.14k|		{}
_ZN4pcpp9LdapLayerD2Ev:
  299|  49.0k|		~LdapLayer() override = default;

_ZN4pcpp11ModbusLayer12isModbusPortEt:
  100|  64.1k|		{
  101|  64.1k|			return port == 502;
  102|  64.1k|		}
_ZN4pcpp11ModbusLayer11isDataValidEPKhm:
  109|      5|		{
  110|      5|			return data != nullptr && dataSize >= sizeof(modbus_header);
  ------------------
  |  Branch (110:11): [True: 5, False: 0]
  |  Branch (110:30): [True: 5, False: 0]
  ------------------
  111|      5|		}
_ZN4pcpp11ModbusLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   87|      5|		    : Layer(data, dataLen, prevLayer, packet, Modbus)
   88|      5|		{}
_ZN4pcpp11ModbusLayer14parseNextLayerEv:
  145|      5|		{}
_ZNK4pcpp11ModbusLayer12getHeaderLenEv:
  150|      1|		{
  151|      1|			return sizeof(modbus_header);
  152|      1|		}
_ZN4pcpp11ModbusLayer22computeCalculateFieldsEv:
  156|      1|		{}
_ZNK4pcpp11ModbusLayer16getOsiModelLayerEv:
  164|      1|		{
  165|      1|			return OsiModelApplicationLayer;
  166|      1|		}

_ZN4pcpp9MplsLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   38|  4.47k|		    : Layer(data, dataLen, prevLayer, packet, MPLS)
   39|  4.47k|		{}
_ZNK4pcpp9MplsLayer13getMplsHeaderEv:
   27|  10.0k|		{
   28|  10.0k|			return reinterpret_cast<mpls_header*>(m_Data);
   29|  10.0k|		}
_ZNK4pcpp9MplsLayer6getTTLEv:
   53|  1.01k|		{
   54|  1.01k|			return getMplsHeader()->ttl;
   55|  1.01k|		}
_ZNK4pcpp9MplsLayer12getHeaderLenEv:
   95|  4.98k|		{
   96|  4.98k|			return sizeof(mpls_header);
   97|  4.98k|		}
_ZNK4pcpp9MplsLayer16getOsiModelLayerEv:
  106|    508|		{
  107|    508|			return OsiModelNetworkLayer;
  108|    508|		}

_ZN4pcpp10MySqlLayer11isMySqlPortEt:
  307|   130k|		{
  308|   130k|			return port == 3306;
  309|   130k|		}
_ZN4pcpp16MySqlMessageTypeC2ENS0_5ValueE:
  126|    156|		constexpr MySqlMessageType(Value value) : m_Value(value)
  127|    156|		{}
_ZNK4pcpp12MySqlMessage21getTotalMessageLengthEv:
  205|    156|		{
  206|    156|			return m_DataLen;
  207|    156|		}
_ZN4pcpp12MySqlMessageC2EPKhmRKNS_16MySqlMessageTypeENS_18MySqlMessageOriginE:
  216|     78|		    : m_Data(data), m_DataLen(dataLen), m_MessageType(messageType), m_MessageOrigin(origin)
  217|     78|		{}
_ZNK4pcpp10MySqlLayer12getHeaderLenEv:
  363|    220|		{
  364|    220|			return m_DataLen;
  365|    220|		}
_ZN4pcpp10MySqlLayer14parseNextLayerEv:
  369|  1.10k|		{}
_ZN4pcpp10MySqlLayer22computeCalculateFieldsEv:
  373|    220|		{}
_ZNK4pcpp10MySqlLayer16getOsiModelLayerEv:
  377|    220|		{
  378|    220|			return OsiModelApplicationLayer;
  379|    220|		}
_ZN4pcpp10MySqlLayerC2EPhmPNS_5LayerEPNS_6PacketENS_18MySqlMessageOriginE:
  390|  1.10k|		    : Layer(data, dataLen, prevLayer, packet, MySQL), m_MessageOrigin(origin)
  391|  1.10k|		{}
_ZN4pcpp12MySqlMessageD2Ev:
  172|     78|		virtual ~MySqlMessage() = default;
_ZN4pcpp10MySqlLayerD2Ev:
  301|  1.10k|		~MySqlLayer() override = default;

_ZN4pcpp28NDPNeighborSolicitationLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  177|    620|		    : NDPLayerBase(data, dataLen, prevLayer, packet)
  178|    620|		{}
_ZN4pcpp12NDPLayerBaseC2EPhmPNS_5LayerEPNS_6PacketE:
  140|    620|		    : IcmpV6Layer(data, dataLen, prevLayer, packet)
  141|    620|		{}
_ZN4pcpp12NDPLayerBaseD2Ev:
  102|    620|		~NDPLayerBase() override = default;
_ZNK4pcpp12NDPLayerBase20getNdpOptionsBasePtrEv:
  148|    310|		{
  149|    310|			return m_Data + getNdpHeaderLen();
  150|    310|		};
_ZN4pcpp9NdpOptionC2EPh:
   37|    310|		explicit NdpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
   38|    310|		{}
_ZNK4pcpp28NDPNeighborSolicitationLayer11getTargetIPEv:
  195|    310|		{
  196|    310|			return IPv6Address(getNdpHeader()->targetIP);
  197|    310|		};
_ZNK4pcpp28NDPNeighborSolicitationLayer12getNdpHeaderEv:
  212|    310|		{
  213|    310|			return reinterpret_cast<ndpneighborsolicitationhdr*>(m_Data);
  214|    310|		}
_ZNK4pcpp28NDPNeighborSolicitationLayer15getNdpHeaderLenEv:
  216|    620|		{
  217|    620|			return sizeof(ndpneighborsolicitationhdr);
  218|    620|		};

_ZN4pcpp10NflogLayerC2EPhmPNS_6PacketE:
  151|  1.82k|		NflogLayer(uint8_t* data, size_t dataLen, Packet* packet) : Layer(data, dataLen, nullptr, packet, NFLOG)
  152|  1.82k|		{}
_ZN4pcpp8NflogTlvC2EPh:
   89|  4.50k|		{
   90|  4.50k|			assign(recordRawData);
   91|  4.50k|		}
_ZNK4pcpp8NflogTlv12getTotalSizeEv:
   95|  14.2k|		{
   96|       |			// as in
   97|       |			// https://github.com/the-tcpdump-group/libpcap/blob/766b607d60d8038087b49fc4cf433dac3dcdb49c/pcap-util.c#L371-L374
   98|  14.2k|			return align<4>(m_Data->recordLen);
   99|  14.2k|		}
_ZN4pcpp8NflogTlv6assignEPh:
  104|  13.5k|		{
  105|  13.5k|			m_Data = reinterpret_cast<NflogTLVRawData*>(recordRawData);
  106|  13.5k|		}
_ZN4pcpp8NflogTlv9canAssignEPKhm:
  113|  4.50k|		{
  114|  4.50k|			return recordRawData != nullptr && tlvDataLen >= sizeof(NflogTLVRawData::recordLen);
  ------------------
  |  Branch (114:11): [True: 4.50k, False: 0]
  |  Branch (114:39): [True: 4.48k, False: 19]
  ------------------
  115|  4.50k|		}
_ZNK4pcpp8NflogTlv6isNullEv:
  119|  13.5k|		{
  120|  13.5k|			return (m_Data == nullptr);
  121|  13.5k|		}
_ZNK4pcpp8NflogTlv7getTypeEv:
  125|  1.80k|		{
  126|  1.80k|			return m_Data->recordType;
  127|  1.80k|		}
_ZNK4pcpp8NflogTlv16getRecordBasePtrEv:
  131|  11.6k|		{
  132|  11.6k|			return reinterpret_cast<uint8_t*>(m_Data);
  133|  11.6k|		}
_ZN4pcpp10NflogLayer22computeCalculateFieldsEv:
  193|    910|		void computeCalculateFields() override {};
_ZNK4pcpp10NflogLayer16getOsiModelLayerEv:
  198|    910|		{
  199|    910|			return OsiModelDataLinkLayer;
  200|    910|		}
_ZNK4pcpp10NflogLayer14getTlvsBasePtrEv:
  210|  3.30k|		{
  211|  3.30k|			return m_Data + sizeof(nflog_header);
  212|  3.30k|		}
_ZN4pcpp10NflogLayerD2Ev:
  154|  1.82k|		~NflogLayer() override = default;

_ZNK4pcpp8NtpLayer12getNtpHeaderEv:
  150|   120k|		{
  151|   120k|			return reinterpret_cast<ntp_header*>(m_Data);
  152|   120k|		}
_ZN4pcpp8NtpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  318|  14.4k|		    : Layer(data, dataLen, prevLayer, packet, NTP)
  319|  14.4k|		{}
_ZN4pcpp8NtpLayer9isNTPPortEt:
  532|   231k|		{
  533|   231k|			return port == 123;
  534|   231k|		}
_ZN4pcpp8NtpLayer14parseNextLayerEv:
  540|  14.4k|		{}
_ZNK4pcpp8NtpLayer12getHeaderLenEv:
  544|  5.79k|		{
  545|  5.79k|			return m_DataLen;
  546|  5.79k|		}
_ZN4pcpp8NtpLayer22computeCalculateFieldsEv:
  550|  2.89k|		{}
_ZNK4pcpp8NtpLayer16getOsiModelLayerEv:
  554|  2.89k|		{
  555|  2.89k|			return OsiModelApplicationLayer;
  556|  2.89k|		}

_ZN4pcpp17NullLoopbackLayer11isDataValidEPKhm:
   87|  6.29k|		{
   88|  6.29k|			return data != nullptr && dataLen >= sizeof(uint32_t);
  ------------------
  |  Branch (88:11): [True: 6.29k, False: 0]
  |  Branch (88:30): [True: 3.78k, False: 2.51k]
  ------------------
   89|  6.29k|		}
_ZN4pcpp17NullLoopbackLayerC2EPhmPNS_6PacketE:
   39|  3.78k|		    : Layer(data, dataLen, nullptr, packet, NULL_LOOPBACK)
   40|  3.78k|		{}
_ZNK4pcpp17NullLoopbackLayer12getHeaderLenEv:
   67|  1.24k|		{
   68|  1.24k|			return sizeof(uint32_t);
   69|  1.24k|		}
_ZN4pcpp17NullLoopbackLayer22computeCalculateFieldsEv:
   73|  1.24k|		{}
_ZNK4pcpp17NullLoopbackLayer16getOsiModelLayerEv:
   78|  1.24k|		{
   79|  1.24k|			return OsiModelDataLinkLayer;
   80|  1.24k|		}

_ZNK4pcpp10PPPoELayer14getPPPoEHeaderEv:
   81|  5.82k|		{
   82|  5.82k|			return reinterpret_cast<pppoe_header*>(m_Data);
   83|  5.82k|		}
_ZNK4pcpp10PPPoELayer16getOsiModelLayerEv:
   91|  4.12k|		{
   92|  4.12k|			return OsiModelDataLinkLayer;
   93|  4.12k|		}
_ZN4pcpp10PPPoELayerC2EPhmPNS_5LayerEPNS_6PacketEh:
   98|  42.9k|		    : Layer(data, dataLen, prevLayer, packet, protocol)
   99|  42.9k|		{}
_ZN4pcpp17PPPoESessionLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  117|  41.9k|		    : PPPoELayer(data, dataLen, prevLayer, packet, PPPoESession)
  118|  41.9k|		{}
_ZNK4pcpp17PPPoESessionLayer12getHeaderLenEv:
  156|  99.5k|		{
  157|  99.5k|			return sizeof(pppoe_header) + sizeof(uint16_t);
  158|  99.5k|		}
_ZN4pcpp19PPPoEDiscoveryLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  284|  1.06k|		    : PPPoELayer(data, dataLen, prevLayer, packet, PPPoEDiscovery)
  285|  1.06k|		{
  286|  1.06k|			m_DataLen = getHeaderLen();
  287|  1.06k|		}
_ZN4pcpp19PPPoEDiscoveryLayer14parseNextLayerEv:
  354|  1.06k|		{}
_ZNK4pcpp19PPPoEDiscoveryLayer8toStringEv:
  360|    424|		{
  361|    424|			return "PPP-over-Ethernet Discovery (" + codeToString((PPPoELayer::PPPoECode)getPPPoEHeader()->code) + ")";
  362|    424|		}
_ZN4pcpp17PPPoESessionLayer11isDataValidEPKhm:
  380|  41.9k|	{
  381|  41.9k|		return data && dataLen >= sizeof(pppoe_header) + sizeof(uint16_t);
  ------------------
  |  Branch (381:10): [True: 41.9k, False: 0]
  |  Branch (381:18): [True: 41.9k, False: 0]
  ------------------
  382|  41.9k|	}
_ZN4pcpp19PPPoEDiscoveryLayer11isDataValidEPKhm:
  385|  1.06k|	{
  386|  1.06k|		return data && dataLen >= sizeof(pppoe_header);
  ------------------
  |  Branch (386:10): [True: 1.06k, False: 0]
  |  Branch (386:18): [True: 1.06k, False: 0]
  ------------------
  387|  1.06k|	}

_ZNK4pcpp6Packet13getFirstLayerEv:
  208|  16.5M|		{
  209|  16.5M|			return m_FirstLayer;
  210|  16.5M|		}
_ZN4pcpp6PacketC2ERKS0_:
  149|   778k|		{
  150|   778k|			copyDataFrom(other);
  151|   778k|		}
_ZN4pcpp6PacketD2Ev:
  141|   953k|		{
  142|   953k|			destructPacketData();
  143|   953k|		}
_ZNK4pcpp6Packet12getRawPacketEv:
  164|   174k|		{
  165|   174k|			return m_RawPacket;
  166|   174k|		}
_ZNK4pcpp6Packet14getLayerOfTypeINS_7IPLayerEEEPT_b:
  389|  2.95k|	{
  390|  2.95k|		if (!reverse)
  ------------------
  |  Branch (390:7): [True: 2.95k, False: 0]
  ------------------
  391|  2.95k|		{
  392|  2.95k|			return searchLayerStackForType<TLayer>(
  393|  2.95k|			    m_FirstLayer, [](Layer* layer) { return layer->getNextLayer(); }, false);
  394|  2.95k|		}
  395|       |
  396|       |		// lookup in reverse order
  397|      0|		return searchLayerStackForType<TLayer>(m_LastLayer, [](Layer* layer) { return layer->getPrevLayer(); }, false);
  398|  2.95k|	}
_ZN4pcpp6Packet23searchLayerStackForTypeINS_7IPLayerEZNKS0_14getLayerOfTypeIS2_EEPT_bEUlPNS_5LayerEE_EES5_S7_T0_b:
  412|  2.95k|	{
  413|  2.95k|		if (curLayer == nullptr)
  ------------------
  |  Branch (413:7): [True: 0, False: 2.95k]
  ------------------
  414|      0|			return nullptr;
  415|       |
  416|  2.95k|		if (skipFirst)
  ------------------
  |  Branch (416:7): [True: 0, False: 2.95k]
  ------------------
  417|      0|		{
  418|      0|			curLayer = nextLayerFn(curLayer);
  419|      0|		}
  420|       |
  421|  7.66k|		while (curLayer != nullptr)
  ------------------
  |  Branch (421:10): [True: 7.66k, False: 0]
  ------------------
  422|  7.66k|		{
  423|  7.66k|			auto* curLayerCasted = dynamic_cast<TLayer*>(curLayer);
  424|  7.66k|			if (curLayerCasted != nullptr)
  ------------------
  |  Branch (424:8): [True: 2.95k, False: 4.71k]
  ------------------
  425|  2.95k|				return curLayerCasted;
  426|       |
  427|  4.71k|			curLayer = nextLayerFn(curLayer);
  428|  4.71k|		}
  429|       |
  430|      0|		return nullptr;
  431|  2.95k|	}
_ZZNK4pcpp6Packet14getLayerOfTypeINS_7IPLayerEEEPT_bENKUlPNS_5LayerEE_clES6_:
  393|  4.71k|			    m_FirstLayer, [](Layer* layer) { return layer->getNextLayer(); }, false);

_ZN4pcpp18PacketTrailerLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   40|  41.1k|		    : Layer(data, dataLen, prevLayer, packet, PacketTrailer)
   41|  41.1k|		{}
_ZNK4pcpp18PacketTrailerLayer12getHeaderLenEv:
   70|  79.9k|		{
   71|  79.9k|			return m_DataLen;
   72|  79.9k|		}
_ZN4pcpp18PacketTrailerLayer22computeCalculateFieldsEv:
   76|  41.1k|		{}

_ZN4pcpp12PayloadLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   22|   288k|		    : Layer(data, dataLen, prevLayer, packet, GenericPayload)
   23|   288k|		{}
_ZN4pcpp12PayloadLayer14parseNextLayerEv:
   58|   288k|		{}
_ZNK4pcpp12PayloadLayer12getHeaderLenEv:
   62|  58.5k|		{
   63|  58.5k|			return m_DataLen;
   64|  58.5k|		}
_ZN4pcpp12PayloadLayer22computeCalculateFieldsEv:
   68|  51.4k|		{}
_ZNK4pcpp12PayloadLayer16getOsiModelLayerEv:
   79|  51.4k|		{
   80|  51.4k|			return OsiModelApplicationLayer;
   81|  51.4k|		}

_ZN4pcpp13PostgresLayer14isPostgresPortEt:
  509|   130k|		{
  510|   130k|			return port == 5432;
  511|   130k|		}
_ZN4pcpp19PostgresMessageTypeC2ENS0_5ValueE:
  151|      1|		constexpr PostgresMessageType(Value value) : m_Value(value)
  152|      1|		{}
_ZNK4pcpp15PostgresMessage21getTotalMessageLengthEv:
  234|      2|		{
  235|      2|			return m_DataLen;
  236|      2|		}
_ZN4pcpp15PostgresMessageC2EPKhmRKNS_19PostgresMessageTypeE:
  244|      1|		    : m_Data(data), m_DataLen(dataLen), m_MessageType(messageType)
  245|      1|		{}
_ZNK4pcpp13PostgresLayer12getHeaderLenEv:
  567|      1|		{
  568|      1|			return m_DataLen;
  569|      1|		}
_ZN4pcpp13PostgresLayer14parseNextLayerEv:
  573|      5|		{}
_ZN4pcpp13PostgresLayer22computeCalculateFieldsEv:
  577|      1|		{}
_ZNK4pcpp13PostgresLayer16getOsiModelLayerEv:
  581|      1|		{
  582|      1|			return OsiModelApplicationLayer;
  583|      1|		}
_ZN4pcpp13PostgresLayerC2EPhmPNS_5LayerEPNS_6PacketENS_21PostgresMessageOriginE:
  595|      5|		    : Layer(data, dataLen, prevLayer, packet, Postgres), m_MessageOrigin(messageOrigin)
  596|      5|		{}
_ZN4pcpp15PostgresMessageD2Ev:
  201|      1|		virtual ~PostgresMessage() = default;
_ZN4pcpp13PostgresLayerD2Ev:
  504|      5|		~PostgresLayer() override = default;

_ZN4pcpp8internal27protoFamilyContainsProtocolEjh:
  294|  15.3M|		{
  295|  15.3M|			auto const protocolToFamily = static_cast<ProtocolTypeFamily>(protocol);
  296|  15.3M|			return (protocolToFamily == (family & 0xff) || protocolToFamily << 8 == (family & 0xff00) ||
  ------------------
  |  Branch (296:12): [True: 79.6k, False: 15.2M]
  |  Branch (296:51): [True: 40.3k, False: 15.1M]
  ------------------
  297|  15.1M|			        protocolToFamily << 16 == (family & 0xff0000) || protocolToFamily << 24 == (family & 0xff000000));
  ------------------
  |  Branch (297:12): [True: 0, False: 15.1M]
  |  Branch (297:61): [True: 0, False: 15.1M]
  ------------------
  298|  15.3M|		}

_ZN4pcpp11RadiusLayer12isRadiusPortEt:
  274|   363k|	{
  275|   363k|		switch (port)
  276|   363k|		{
  277|  10.6k|		case 1812:
  ------------------
  |  Branch (277:3): [True: 10.6k, False: 353k]
  ------------------
  278|  11.5k|		case 1813:
  ------------------
  |  Branch (278:3): [True: 930, False: 362k]
  ------------------
  279|  11.5k|		case 3799:
  ------------------
  |  Branch (279:3): [True: 0, False: 363k]
  ------------------
  280|  11.5k|			return true;
  281|   352k|		default:
  ------------------
  |  Branch (281:3): [True: 352k, False: 11.5k]
  ------------------
  282|   352k|			return false;
  283|   363k|		}
  284|   363k|	}  // isRadiusPort
_ZN4pcpp11RadiusLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  152|  10.8k|		    : Layer(data, dataLen, prevLayer, packet, Radius)
  153|  10.8k|		{}
_ZNK4pcpp11RadiusLayer15getRadiusHeaderEv:
  181|  21.7k|		{
  182|  21.7k|			return reinterpret_cast<radius_header*>(m_Data);
  183|  21.7k|		}
_ZN4pcpp11RadiusLayer14parseNextLayerEv:
  258|  10.8k|		{}
_ZNK4pcpp11RadiusLayer16getOsiModelLayerEv:
  266|  2.17k|		{
  267|  2.17k|			return OsiModelApplicationLayer;
  268|  2.17k|		}
_ZN4pcpp11RadiusLayerD2Ev:
  175|  10.8k|		~RadiusLayer() override = default;

_ZNK4pcpp9RawPacket10getRawDataEv:
  462|  2.68M|		{
  463|  2.68M|			return m_RawData;
  464|  2.68M|		}
_ZNK4pcpp9RawPacket16getLinkLayerTypeEv:
  469|   953k|		{
  470|   953k|			return m_LinkLayerType;
  471|   953k|		}
_ZNK4pcpp9RawPacket13getRawDataLenEv:
  481|  2.79M|		{
  482|  2.79M|			return m_RawDataLen;
  483|  2.79M|		}
_ZNK4pcpp9RawPacket18getPacketTimeStampEv:
  494|   175k|		{
  495|   175k|			return m_TimeStamp;
  496|   175k|		}
_ZN4pcpp9RawPacketC2Ev:
  312|  3.41k|		RawPacket() = default;

_ZN4pcpp11S7CommLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   94|  13.6k|		    : Layer(data, dataLen, prevLayer, packet, S7COMM)
   95|  13.6k|		{
   96|  13.6k|			m_Parameter = nullptr;
   97|  13.6k|		}
_ZN4pcpp11S7CommLayerD2Ev:
  100|  13.6k|		{
  101|  13.6k|			if (m_Parameter)
  ------------------
  |  Branch (101:8): [True: 0, False: 13.6k]
  ------------------
  102|      0|				delete m_Parameter;
  103|  13.6k|		}
_ZNK4pcpp11S7CommLayer12getHeaderLenEv:
  146|  1.88k|		{
  147|  1.88k|			return m_DataLen;
  148|  1.88k|		}
_ZN4pcpp11S7CommLayer22computeCalculateFieldsEv:
  152|  1.88k|		{}
_ZN4pcpp11S7CommLayer14parseNextLayerEv:
  156|  13.6k|		{}
_ZNK4pcpp11S7CommLayer16getOsiModelLayerEv:
  167|  1.88k|		{
  168|  1.88k|			return OsiModelApplicationLayer;
  169|  1.88k|		}
_ZNK4pcpp11S7CommLayer15getS7commHeaderEv:
  173|  3.77k|		{
  174|  3.77k|			return reinterpret_cast<s7commhdr*>(m_Data);
  175|  3.77k|		}

_ZN4pcpp8SSHLayer9isSSHPortEtt:
   93|   231k|		{
   94|   231k|			return portSrc == 22 || portDst == 22;
  ------------------
  |  Branch (94:11): [True: 6.16k, False: 225k]
  |  Branch (94:28): [True: 8.38k, False: 217k]
  ------------------
   95|   231k|		}
_ZN4pcpp8SSHLayer22computeCalculateFieldsEv:
  105|  3.12k|		{}
_ZNK4pcpp8SSHLayer16getOsiModelLayerEv:
  108|  3.12k|		{
  109|  3.12k|			return OsiModelApplicationLayer;
  110|  3.12k|		}
_ZN4pcpp8SSHLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  115|  16.7k|		    : Layer(data, dataLen, prevLayer, packet, SSH)
  116|  16.7k|		{}
_ZNK4pcpp24SSHIdentificationMessage12getHeaderLenEv:
  149|  2.05k|		{
  150|  2.05k|			return m_DataLen;
  151|  2.05k|		}
_ZN4pcpp24SSHIdentificationMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  161|  1.71k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  162|  1.71k|		{}
_ZN4pcpp19SSHHandshakeMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  261|  8.33k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  262|  8.33k|		{}
_ZNK4pcpp19SSHHandshakeMessage16getMsgBaseHeaderEv:
  265|  12.9k|		{
  266|  12.9k|			return reinterpret_cast<ssh_message_base*>(m_Data);
  267|  12.9k|		}
_ZN4pcpp19SSHEncryptedMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  395|  6.72k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  396|  6.72k|		{}
_ZNK4pcpp19SSHEncryptedMessage12getHeaderLenEv:
  402|  7.97k|		{
  403|  7.97k|			return m_DataLen;
  404|  7.97k|		}

_ZN4pcpp10SSLVersionC2Et:
  155|   310k|		{
  156|   310k|			m_SSLVersionValue = sslVersionValue;
  157|   310k|		}
_ZN4pcpp10SSLVersion6asUIntEv:
  168|  10.7k|		{
  169|  10.7k|			return m_SSLVersionValue;
  170|  10.7k|		}

_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  946|  6.43k|	{
  947|  6.43k|		size_t vecSize = m_ExtensionList.size();
  948|  12.2k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 8.79k, False: 3.48k]
  ------------------
  949|  8.79k|		{
  950|  8.79k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  8.79k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 2.95k, False: 5.84k]
  ------------------
  952|  2.95k|				return static_cast<TExtension*>(curElem);
  953|  8.79k|		}
  954|       |
  955|  3.48k|		return nullptr;
  956|  6.43k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  946|  6.43k|	{
  947|  6.43k|		size_t vecSize = m_ExtensionList.size();
  948|  49.7k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 44.2k, False: 5.57k]
  ------------------
  949|  44.2k|		{
  950|  44.2k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  44.2k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 853, False: 43.3k]
  ------------------
  952|    853|				return static_cast<TExtension*>(curElem);
  953|  44.2k|		}
  954|       |
  955|  5.57k|		return nullptr;
  956|  6.43k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  959|  4.34k|	{
  960|  4.34k|		size_t vecSize = m_ExtensionList.size();
  961|  7.82k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 4.04k, False: 3.77k]
  ------------------
  962|  4.04k|		{
  963|  4.04k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  4.04k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 570, False: 3.47k]
  ------------------
  965|    570|				return static_cast<TExtension*>(curElem);
  966|  4.04k|		}
  967|       |
  968|  3.77k|		return nullptr;
  969|  4.34k|	}
_ZN4pcpp14SSLCipherSuiteC2EtNS_23SSLKeyExchangeAlgorithmENS_26SSLAuthenticationAlgorithmENS_30SSLSymetricEncryptionAlgorithmENS_19SSLHashingAlgorithmEPKc:
   36|    658|		    : m_Id(id), m_KeyExAlg(keyExAlg), m_AuthAlg(authAlg), m_SymKeyAlg(symKeyAlg), m_MACAlg(MACAlg), m_Name(name)
   37|    658|		{}
_ZNK4pcpp12SSLExtension18getExtensionStructEv:
  187|   705k|		{
  188|   705k|			return reinterpret_cast<SSLExtensionStruct*>(m_RawData);
  189|   705k|		}
_ZN4pcpp18SSLx509CertificateC2EPhmb:
  255|  21.3k|		    : m_Data(data), m_DataLen(dataLen), m_AllDataExists(allDataExists)
  256|  21.3k|		{}
_ZNK4pcpp21SSLClientHelloMessage20getClientHelloHeaderEv:
  402|  12.8k|		{
  403|  12.8k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  404|  12.8k|		}
_ZNK4pcpp21SSLServerHelloMessage20getServerHelloHeaderEv:
  538|  8.12k|		{
  539|  8.12k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  540|  8.12k|		}
_ZN4pcpp22SSLHelloRequestMessageC2EPhmPNS_17SSLHandshakeLayerE:
  676|  27.6k|		    : SSLHandshakeMessage(data, dataLen, container)
  677|  27.6k|		{}
_ZN4pcpp27SSLServerKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  699|  3.66k|		    : SSLHandshakeMessage(data, dataLen, container)
  700|  3.66k|		{}
_ZN4pcpp27SSLClientKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  733|  2.85k|		    : SSLHandshakeMessage(data, dataLen, container)
  734|  2.85k|		{}
_ZN4pcpp25SSLServerHelloDoneMessageC2EPhmPNS_17SSLHandshakeLayerE:
  803|  1.63k|		    : SSLHandshakeMessage(data, dataLen, container)
  804|  1.63k|		{}
_ZN4pcpp27SSLCertificateVerifyMessageC2EPhmPNS_17SSLHandshakeLayerE:
  826|    870|		    : SSLHandshakeMessage(data, dataLen, container)
  827|    870|		{}
_ZN4pcpp18SSLFinishedMessageC2EPhmPNS_17SSLHandshakeLayerE:
  860|    875|		    : SSLHandshakeMessage(data, dataLen, container)
  861|    875|		{}
_ZN4pcpp26SSLNewSessionTicketMessageC2EPhmPNS_17SSLHandshakeLayerE:
  893|  2.00k|		    : SSLHandshakeMessage(data, dataLen, container)
  894|  2.00k|		{}
_ZN4pcpp17SSLUnknownMessageC2EPhmPNS_17SSLHandshakeLayerE:
  927|  48.5k|		    : SSLHandshakeMessage(data, dataLen, container)
  928|  48.5k|		{}
_ZN4pcpp19SSLHandshakeMessageD2Ev:
  306|   173k|		virtual ~SSLHandshakeMessage() = default;
_ZN4pcpp21SSLClientHelloMessageD2Ev:
  397|  35.8k|		~SSLClientHelloMessage() override = default;
_ZN4pcpp21SSLServerHelloMessageD2Ev:
  533|  27.9k|		~SSLServerHelloMessage() override = default;
_ZN4pcpp21SSLCertificateMessageD2Ev:
  641|  8.45k|		~SSLCertificateMessage() override = default;
_ZN4pcpp28SSLCertificateRequestMessageD2Ev:
  767|  12.7k|		~SSLCertificateRequestMessage() override = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_32SSLServerNameIndicationExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  95.2k|		{
  153|  95.2k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 95.2k]
  |  Branch (153:27): [True: 0, False: 95.2k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  95.2k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  95.2k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 2.52k, False: 92.7k]
  ------------------
  160|  2.52k|			{
  161|  2.52k|				return nullptr;
  162|  2.52k|			}
  163|       |
  164|  92.7k|			return std::make_unique<T>(data, dataLen);
  165|  95.2k|		}
_ZN4pcpp12SSLExtensionD2Ev:
  123|   291k|		virtual ~SSLExtension() = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_29SSLSupportedVersionsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  7.35k|		{
  153|  7.35k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 7.35k]
  |  Branch (153:27): [True: 0, False: 7.35k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  7.35k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  7.35k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 772, False: 6.58k]
  ------------------
  160|    772|			{
  161|    772|				return nullptr;
  162|    772|			}
  163|       |
  164|  6.58k|			return std::make_unique<T>(data, dataLen);
  165|  7.35k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_27TLSSupportedGroupsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  15.2k|		{
  153|  15.2k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 15.2k]
  |  Branch (153:27): [True: 0, False: 15.2k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  15.2k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  15.2k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 121, False: 15.1k]
  ------------------
  160|    121|			{
  161|    121|				return nullptr;
  162|    121|			}
  163|       |
  164|  15.1k|			return std::make_unique<T>(data, dataLen);
  165|  15.2k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_25TLSECPointFormatExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  17.1k|		{
  153|  17.1k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 17.1k]
  |  Branch (153:27): [True: 0, False: 17.1k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  17.1k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  17.1k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 0, False: 17.1k]
  ------------------
  160|      0|			{
  161|      0|				return nullptr;
  162|      0|			}
  163|       |
  164|  17.1k|			return std::make_unique<T>(data, dataLen);
  165|  17.1k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionIS0_TnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS2_10unique_ptrIS4_NS2_14default_deleteIS4_EEEEPhm:
  152|   168k|		{
  153|   168k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 168k]
  |  Branch (153:27): [True: 0, False: 168k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|   168k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|   168k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 8.79k, False: 159k]
  ------------------
  160|  8.79k|			{
  161|  8.79k|				return nullptr;
  162|  8.79k|			}
  163|       |
  164|   159k|			return std::make_unique<T>(data, dataLen);
  165|   168k|		}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_27TLSSupportedGroupsExtensionEEEPT_v:
  946|  6.43k|	{
  947|  6.43k|		size_t vecSize = m_ExtensionList.size();
  948|  30.5k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 26.9k, False: 3.60k]
  ------------------
  949|  26.9k|		{
  950|  26.9k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  26.9k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 2.83k, False: 24.1k]
  ------------------
  952|  2.83k|				return static_cast<TExtension*>(curElem);
  953|  26.9k|		}
  954|       |
  955|  3.60k|		return nullptr;
  956|  6.43k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_25TLSECPointFormatExtensionEEEPT_v:
  946|  6.43k|	{
  947|  6.43k|		size_t vecSize = m_ExtensionList.size();
  948|  30.6k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 27.0k, False: 3.50k]
  ------------------
  949|  27.0k|		{
  950|  27.0k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  27.0k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 2.92k, False: 24.1k]
  ------------------
  952|  2.92k|				return static_cast<TExtension*>(curElem);
  953|  27.0k|		}
  954|       |
  955|  3.50k|		return nullptr;
  956|  6.43k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  959|  8.68k|	{
  960|  8.68k|		size_t vecSize = m_ExtensionList.size();
  961|  17.9k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 9.82k, False: 8.08k]
  ------------------
  962|  9.82k|		{
  963|  9.82k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  9.82k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 606, False: 9.21k]
  ------------------
  965|    606|				return static_cast<TExtension*>(curElem);
  966|  9.82k|		}
  967|       |
  968|  8.08k|		return nullptr;
  969|  8.68k|	}

_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLClientHelloMessageEEEPT_v:
  444|  18.5k|	{
  445|  18.5k|		size_t vecSize = m_MessageList.size();
  446|  35.8k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 23.6k, False: 12.1k]
  ------------------
  447|  23.6k|		{
  448|  23.6k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  23.6k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 6.43k, False: 17.2k]
  ------------------
  450|  6.43k|				return (THandshakeMessage*)curElem;
  451|  23.6k|		}
  452|       |
  453|       |		// element not found
  454|  12.1k|		return nullptr;
  455|  18.5k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLServerHelloMessageEEEPT_v:
  444|  18.5k|	{
  445|  18.5k|		size_t vecSize = m_MessageList.size();
  446|  40.0k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 25.8k, False: 14.2k]
  ------------------
  447|  25.8k|		{
  448|  25.8k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  25.8k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 4.34k, False: 21.4k]
  ------------------
  450|  4.34k|				return (THandshakeMessage*)curElem;
  451|  25.8k|		}
  452|       |
  453|       |		// element not found
  454|  14.2k|		return nullptr;
  455|  18.5k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_19SSLHandshakeMessageEEEPT_v:
  444|  18.5k|	{
  445|  18.5k|		size_t vecSize = m_MessageList.size();
  446|  18.5k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 17.4k, False: 1.09k]
  ------------------
  447|  17.4k|		{
  448|  17.4k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  17.4k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 17.4k, False: 0]
  ------------------
  450|  17.4k|				return (THandshakeMessage*)curElem;
  451|  17.4k|		}
  452|       |
  453|       |		// element not found
  454|  1.09k|		return nullptr;
  455|  18.5k|	}  // getHandshakeMessageOfType
_ZNK4pcpp8SSLLayer14getRecordLayerEv:
  227|   435k|		{
  228|   435k|			return reinterpret_cast<ssl_tls_record_layer*>(m_Data);
  229|   435k|		}
_ZNK4pcpp8SSLLayer16getOsiModelLayerEv:
  247|  34.8k|		{
  248|  34.8k|			return OsiModelPresentationLayer;
  249|  34.8k|		}
_ZN4pcpp8SSLLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  253|   215k|		    : Layer(data, dataLen, prevLayer, packet, SSL)
  254|   215k|		{}
_ZN4pcpp17SSLHandshakeLayer22computeCalculateFieldsEv:
  346|  18.5k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  364|  70.6k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  365|  70.6k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayer22computeCalculateFieldsEv:
  375|  11.1k|		{}
_ZN4pcpp13SSLAlertLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  390|  5.03k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  391|  5.03k|		{}
_ZN4pcpp13SSLAlertLayer22computeCalculateFieldsEv:
  407|    839|		{}
_ZN4pcpp23SSLApplicationDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  422|  25.2k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  423|  25.2k|		{}
_ZN4pcpp23SSLApplicationDataLayer22computeCalculateFieldsEv:
  440|  4.32k|		{}
_ZN4pcpp8SSLLayer9isSSLPortEt:
  489|   748k|	{
  490|   748k|		if (port == 443)  // HTTPS, this is likely case
  ------------------
  |  Branch (490:7): [True: 127k, False: 620k]
  ------------------
  491|   127k|			return true;
  492|       |
  493|   620k|		switch (port)
  494|   620k|		{
  495|    130|		case 261:  // NSIIOPS
  ------------------
  |  Branch (495:3): [True: 130, False: 620k]
  ------------------
  496|  3.49k|		case 448:  // DDM-SSL
  ------------------
  |  Branch (496:3): [True: 3.36k, False: 617k]
  ------------------
  497|  3.56k|		case 465:  // SMTPS
  ------------------
  |  Branch (497:3): [True: 70, False: 620k]
  ------------------
  498|  3.69k|		case 563:  // NNTPS
  ------------------
  |  Branch (498:3): [True: 130, False: 620k]
  ------------------
  499|  3.82k|		case 614:  // SSHELL
  ------------------
  |  Branch (499:3): [True: 132, False: 620k]
  ------------------
  500|  3.82k|		case 636:  // LDAPS
  ------------------
  |  Branch (500:3): [True: 0, False: 620k]
  ------------------
  501|  4.21k|		case 989:  // FTPS - data
  ------------------
  |  Branch (501:3): [True: 395, False: 620k]
  ------------------
  502|  4.21k|		case 990:  // FTPS - control
  ------------------
  |  Branch (502:3): [True: 0, False: 620k]
  ------------------
  503|  4.21k|		case 992:  // Telnet over TLS/SSL
  ------------------
  |  Branch (503:3): [True: 0, False: 620k]
  ------------------
  504|  4.90k|		case 993:  // IMAPS
  ------------------
  |  Branch (504:3): [True: 686, False: 620k]
  ------------------
  505|  4.90k|		case 994:  // IRCS
  ------------------
  |  Branch (505:3): [True: 0, False: 620k]
  ------------------
  506|  5.63k|		case 995:  // POP3S
  ------------------
  |  Branch (506:3): [True: 733, False: 620k]
  ------------------
  507|  5.63k|			return true;
  508|   615k|		default:
  ------------------
  |  Branch (508:3): [True: 615k, False: 5.63k]
  ------------------
  509|   615k|			return false;
  510|   620k|		}
  511|   620k|	}  // isSSLPort

_ZN4pcpp8SdpLayerC2ERKS0_:
   94|  3.97k|		SdpLayer(const SdpLayer& other) : TextBasedProtocolMessage(other)
   95|  3.97k|		{}
_ZNK4pcpp8SdpLayer16getOsiModelLayerEv:
  148|  3.97k|		{
  149|  3.97k|			return OsiModelSesionLayer;
  150|  3.97k|		}
_ZNK4pcpp8SdpLayer32getHeaderFieldNameValueSeparatorEv:
  157|  53.9k|		{
  158|  53.9k|			return '=';
  159|  53.9k|		}
_ZNK4pcpp8SdpLayer43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  161|  53.9k|		{
  162|  53.9k|			return false;
  163|  53.9k|		}

_ZN4pcpp25SingleCommandTextProtocolC2EPhmPNS_5LayerEPNS_6PacketEh:
   23|  9.97k|		    : Layer(data, dataLen, prevLayer, packet, protocol) {};

_ZN4pcpp8SipLayer9isSipPortEt:
  113|  1.10M|		{
  114|  1.10M|			return port == 5060 || port == 5061;
  ------------------
  |  Branch (114:11): [True: 139k, False: 961k]
  |  Branch (114:27): [True: 0, False: 961k]
  ------------------
  115|  1.10M|		}
_ZNK4pcpp8SipLayer16getOsiModelLayerEv:
   97|  6.26k|		{
   98|  6.26k|			return OsiModelSesionLayer;
   99|  6.26k|		}
_ZN4pcpp8SipLayerC2EPhmPNS_5LayerEPNS_6PacketEh:
  141|  66.6k|		    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, protocol)
  142|  66.6k|		{}
_ZNK4pcpp8SipLayer32getHeaderFieldNameValueSeparatorEv:
  155|  66.6k|		{
  156|  66.6k|			return ':';
  157|  66.6k|		}
_ZNK4pcpp8SipLayer43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  159|  66.6k|		{
  160|  66.6k|			return true;
  161|  66.6k|		}
_ZNK4pcpp19SipRequestFirstLine7getSizeEv:
  584|  69.2k|		{
  585|  69.2k|			return m_FirstLineEndOffset;
  586|  69.2k|		}
_ZN4pcpp19SipRequestFirstLine28SipRequestFirstLineExceptionD2Ev:
  605|  58.9k|			{}
_ZNK4pcpp20SipResponseFirstLine7getSizeEv:
  709|  9.93k|		{
  710|  9.93k|			return m_FirstLineEndOffset;
  711|  9.93k|		}
_ZN4pcpp20SipResponseFirstLine29SipResponseFirstLineExceptionD2Ev:
  730|  7.69k|			{}

_ZN4pcpp8SllLayerC2EPhmPNS_6PacketE:
   43|   131k|		SllLayer(uint8_t* data, size_t dataLen, Packet* packet) : Layer(data, dataLen, nullptr, packet, SLL)
   44|   131k|		{}
_ZNK4pcpp8SllLayer12getSllHeaderEv:
   57|   152k|		{
   58|   152k|			return reinterpret_cast<sll_header*>(m_Data);
   59|   152k|		}
_ZNK4pcpp8SllLayer12getHeaderLenEv:
   78|  97.1k|		{
   79|  97.1k|			return sizeof(sll_header);
   80|  97.1k|		}
_ZNK4pcpp8SllLayer16getOsiModelLayerEv:
   88|  21.8k|		{
   89|  21.8k|			return OsiModelDataLinkLayer;
   90|  21.8k|		}

_ZN4pcpp9SmtpLayer10isSmtpPortEt:
   28|   206k|		{
   29|   206k|			return port == 25 || port == 587;
  ------------------
  |  Branch (29:11): [True: 2.47k, False: 204k]
  |  Branch (29:25): [True: 0, False: 204k]
  ------------------
   30|   206k|		}
_ZN4pcpp17SmtpResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  251|    160|		    : SmtpLayer(data, dataLen, prevLayer, packet) {};
_ZN4pcpp9SmtpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   18|    280|		    : SingleCommandTextProtocol(data, dataLen, prevLayer, packet, SMTP) {};
_ZN4pcpp9SmtpLayer14parseNextLayerEv:
   36|    280|		{}
_ZNK4pcpp9SmtpLayer12getHeaderLenEv:
   40|     56|		{
   41|     56|			return m_DataLen;
   42|     56|		}
_ZN4pcpp9SmtpLayer22computeCalculateFieldsEv:
   46|     56|		{}
_ZNK4pcpp9SmtpLayer16getOsiModelLayerEv:
   50|     56|		{
   51|     56|			return OsiModelApplicationLayer;
   52|     56|		}
_ZN4pcpp16SmtpRequestLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  121|    120|		    : SmtpLayer(data, dataLen, prevLayer, packet) {};

_ZN4pcpp11SomeIpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   85|  30.7k|		    : Layer(data, dataLen, prevLayer, packet, SomeIP)
   86|  30.7k|		{}
_ZNK4pcpp11SomeIpLayer15getSomeIpHeaderEv:
  120|  43.8k|		{
  121|  43.8k|			return reinterpret_cast<someiphdr*>(m_Data);
  122|  43.8k|		}
_ZNK4pcpp11SomeIpLayer12getHeaderLenEv:
  252|  35.1k|		{
  253|  35.1k|			return sizeof(uint32_t) * 2 + getLengthField();
  254|  35.1k|		}
_ZN4pcpp11SomeIpLayer22computeCalculateFieldsEv:
  258|  1.01k|		{}
_ZNK4pcpp11SomeIpLayer16getOsiModelLayerEv:
  268|  4.39k|		{
  269|  4.39k|			return OsiModelApplicationLayer;
  270|  4.39k|		}
_ZN4pcpp13SomeIpTpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  310|  2.55k|		    : SomeIpLayer(data, dataLen, prevLayer, packet)
  311|  2.55k|		{}

_ZN4pcpp14SomeIpSdOptionC2EPKNS_14IDataContainerEm:
  107|  4.18k|		    : m_DataContainer(dataContainer), m_Offset(offset), m_ShadowData(nullptr), m_DataLen(0)
  108|  4.18k|		{}
_ZNK4pcpp13SomeIpSdEntry9getLengthEv:
  412|  3.00k|		{
  413|  3.00k|			return sizeof(someipsdhdrentry);
  414|  3.00k|		}
_ZN4pcpp13SomeIpSdLayer14isSomeIpSdPortEt:
  542|   363k|		{
  543|   363k|			return port == 30490;
  544|   363k|		}
_ZN4pcpp13SomeIpSdLayer22computeCalculateFieldsEv:
  595|  3.05k|		void computeCalculateFields() override {};

_ZN4pcpp9TLVRecordIhhED2Ev:
   53|   603k|		virtual ~TLVRecord() = default;
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEED2Ev:
  222|   597k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp9TLVRecordIttEC2ERKS1_:
   48|  7.65k|		{
   49|  7.65k|			m_Data = other.m_Data;
   50|  7.65k|		}
_ZN4pcpp9TLVRecordIttED2Ev:
   53|  31.2k|		virtual ~TLVRecord() = default;
_ZN4pcpp9TLVRecordIttEaSERKS1_:
   77|  20.2k|		{
   78|  20.2k|			m_Data = other.m_Data;
   79|  20.2k|			return *this;
   80|  20.2k|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIjEET_m:
  162|  2.74k|		{
  163|  2.74k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (163:8): [True: 2.45k, False: 290]
  ------------------
  164|  2.45k|				return 0;
  165|       |
  166|    290|			T result;
  167|    290|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  168|    290|			return result;
  169|  2.74k|		}
_ZN4pcpp9TLVRecordIhhEC2ERKS1_:
   48|   234k|		{
   49|   234k|			m_Data = other.m_Data;
   50|   234k|		}
_ZNK4pcpp9TLVRecordIhhE14getValueOffsetEv:
  195|  4.37k|		{
  196|  4.37k|			return 0;
  197|  4.37k|		}
_ZN4pcpp9TLVRecordIhhEaSERKS1_:
   77|   452k|		{
   78|   452k|			m_Data = other.m_Data;
   79|   452k|			return *this;
   80|   452k|		}
_ZN4pcpp9TLVRecordIhhE6assignEPh:
   58|  1.36M|		{
   59|  1.36M|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   60|  1.36M|		}
_ZN4pcpp9TLVRecordIhhE9canAssignEPKhm:
   67|   166k|		{
   68|   166k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (68:11): [True: 166k, False: 0]
  ------------------
   69|   166k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (69:11): [True: 164k, False: 1.94k]
  ------------------
   70|   166k|		}
_ZN4pcpp9TLVRecordIttE6assignEPh:
   58|  61.1k|		{
   59|  61.1k|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   60|  61.1k|		}
_ZN4pcpp9TLVRecordIhhEC2EPh:
   40|   768k|		{
   41|   768k|			assign(recordRawData);
   42|   768k|		}
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEED2Ev:
  222|  13.9k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEEC2Ev:
  211|  13.9k|		{
  212|  13.9k|			m_RecordCount = static_cast<size_t>(-1);
  213|  13.9k|		}
_ZNK4pcpp9TLVRecordIhhE6isNullEv:
  128|  1.75M|		{
  129|  1.75M|			return (m_Data == nullptr);
  130|  1.75M|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIhEET_m:
  162|  4.08k|		{
  163|  4.08k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (163:8): [True: 0, False: 4.08k]
  ------------------
  164|      0|				return 0;
  165|       |
  166|  4.08k|			T result;
  167|  4.08k|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  168|  4.08k|			return result;
  169|  4.08k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE12getTLVRecordEjPhm:
  298|  11.1k|		{
  299|  11.1k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|   150k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 143k, False: 6.53k]
  ------------------
  301|   143k|			{
  302|   143k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 4.59k, False: 139k]
  ------------------
  303|  4.59k|				{
  304|  4.59k|					return curRec;
  305|  4.59k|				}
  306|       |
  307|   139k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|   139k|			}
  309|       |
  310|  6.53k|			curRec.assign(nullptr);
  311|  6.53k|			return curRec;  // for NRVO optimization
  312|  11.1k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getFirstTLVRecordEPhm:
  239|  16.6k|		{
  240|  16.6k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  16.6k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 0, False: 16.6k]
  ------------------
  242|      0|				return resRec;
  243|       |
  244|  16.6k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  16.6k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 195, False: 16.4k]
  ------------------
  247|    195|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  16.6k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 16.4k, False: 195]
  |  Branch (250:29): [True: 0, False: 16.4k]
  |  Branch (250:48): [True: 0, False: 16.4k]
  ------------------
  251|      0|				resRec.assign(nullptr);
  252|       |
  253|  16.6k|			return resRec;
  254|  16.6k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE16getNextTLVRecordERS1_PKhm:
  264|   247k|		{
  265|   247k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|   247k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 247k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|   247k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 10.3k, False: 237k]
  ------------------
  271|   247k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|   247k|			                                  record.getTotalSize()))
  273|  10.3k|				return resRec;
  274|       |
  275|   237k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|   237k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 0, False: 237k]
  ------------------
  278|      0|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|   237k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 0, False: 237k]
  ------------------
  282|      0|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|   237k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 237k, False: 0]
  |  Branch (285:28): [True: 1.54k, False: 235k]
  ------------------
  286|  1.54k|				resRec.assign(nullptr);
  287|       |
  288|   237k|			return resRec;
  289|   247k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getTLVRecordCountEPhm:
  322|  59.9k|		{
  323|  59.9k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (323:8): [True: 57.1k, False: 2.78k]
  ------------------
  324|  57.1k|				return m_RecordCount;
  325|       |
  326|  2.78k|			m_RecordCount = 0;
  327|  2.78k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  328|  57.1k|			while (!curRec.isNull())
  ------------------
  |  Branch (328:11): [True: 54.4k, False: 2.78k]
  ------------------
  329|  54.4k|			{
  330|  54.4k|				m_RecordCount++;
  331|  54.4k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  332|  54.4k|			}
  333|       |
  334|  2.78k|			return m_RecordCount;
  335|  59.9k|		}
_ZNK4pcpp9TLVRecordIhhE7getTypeEv:
  110|   348k|		{
  111|   348k|			if (m_Data == nullptr)
  ------------------
  |  Branch (111:8): [True: 0, False: 348k]
  ------------------
  112|      0|				return 0;
  113|       |
  114|   348k|			return m_Data->recordType;
  115|   348k|		}
_ZN4pcpp9TLVRecordIhhE15purgeRecordDataEv:
  146|  56.1k|		{
  147|  56.1k|			if (!isNull())
  ------------------
  |  Branch (147:8): [True: 56.1k, False: 0]
  ------------------
  148|  56.1k|			{
  149|  56.1k|				delete[] m_Data;
  150|  56.1k|				m_Data = nullptr;
  151|  56.1k|			}
  152|  56.1k|		}
_ZNK4pcpp9TLVRecordIhhE16getRecordBasePtrEv:
  140|  2.34M|		{
  141|  2.34M|			return reinterpret_cast<uint8_t*>(m_Data);
  142|  2.34M|		}
_ZN4pcpp9TLVRecordIttEC2EPh:
   40|  30.4k|		{
   41|  30.4k|			assign(recordRawData);
   42|  30.4k|		}
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEED2Ev:
  222|  18.1k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEEC2Ev:
  211|  18.1k|		{
  212|  18.1k|			m_RecordCount = static_cast<size_t>(-1);
  213|  18.1k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getFirstTLVRecordEPhm:
  239|  10.2k|		{
  240|  10.2k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  10.2k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 0, False: 10.2k]
  ------------------
  242|      0|				return resRec;
  243|       |
  244|  10.2k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  10.2k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 121, False: 10.0k]
  ------------------
  247|    121|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  10.2k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 10.0k, False: 121]
  |  Branch (250:29): [True: 0, False: 10.0k]
  |  Branch (250:48): [True: 0, False: 10.0k]
  ------------------
  251|      0|				resRec.assign(nullptr);
  252|       |
  253|  10.2k|			return resRec;
  254|  10.2k|		}
_ZN4pcpp9TLVRecordIttE9canAssignEPKhm:
   67|  30.4k|		{
   68|  30.4k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (68:11): [True: 30.4k, False: 0]
  ------------------
   69|  30.4k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (69:11): [True: 25.3k, False: 5.09k]
  ------------------
   70|  30.4k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE16getNextTLVRecordERS1_PKhm:
  264|  20.2k|		{
  265|  20.2k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|  20.2k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 20.2k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|  20.2k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 5.09k, False: 15.1k]
  ------------------
  271|  20.2k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|  20.2k|			                                  record.getTotalSize()))
  273|  5.09k|				return resRec;
  274|       |
  275|  15.1k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|  15.1k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 0, False: 15.1k]
  ------------------
  278|      0|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|  15.1k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 0, False: 15.1k]
  ------------------
  282|      0|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|  15.1k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 15.1k, False: 0]
  |  Branch (285:28): [True: 3.46k, False: 11.6k]
  ------------------
  286|  3.46k|				resRec.assign(nullptr);
  287|       |
  288|  15.1k|			return resRec;
  289|  20.2k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE12getTLVRecordEjPhm:
  298|  3.36k|		{
  299|  3.36k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|  8.28k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 6.44k, False: 1.84k]
  ------------------
  301|  6.44k|			{
  302|  6.44k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 1.52k, False: 4.92k]
  ------------------
  303|  1.52k|				{
  304|  1.52k|					return curRec;
  305|  1.52k|				}
  306|       |
  307|  4.92k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|  4.92k|			}
  309|       |
  310|  1.84k|			curRec.assign(nullptr);
  311|  1.84k|			return curRec;  // for NRVO optimization
  312|  3.36k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getTLVRecordCountEPhm:
  322|  14.4k|		{
  323|  14.4k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (323:8): [True: 11.0k, False: 3.48k]
  ------------------
  324|  11.0k|				return m_RecordCount;
  325|       |
  326|  3.48k|			m_RecordCount = 0;
  327|  3.48k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  328|  11.1k|			while (!curRec.isNull())
  ------------------
  |  Branch (328:11): [True: 7.65k, False: 3.48k]
  ------------------
  329|  7.65k|			{
  330|  7.65k|				m_RecordCount++;
  331|  7.65k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  332|  7.65k|			}
  333|       |
  334|  3.48k|			return m_RecordCount;
  335|  14.4k|		}
_ZNK4pcpp9TLVRecordIttE6isNullEv:
  128|  64.9k|		{
  129|  64.9k|			return (m_Data == nullptr);
  130|  64.9k|		}
_ZNK4pcpp9TLVRecordIttE16getRecordBasePtrEv:
  140|  96.0k|		{
  141|  96.0k|			return reinterpret_cast<uint8_t*>(m_Data);
  142|  96.0k|		}
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEED2Ev:
  222|   864k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEEC2Ev:
  211|   864k|		{
  212|   864k|			m_RecordCount = static_cast<size_t>(-1);
  213|   864k|		}
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEED2Ev:
  222|  16.3k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEEC2Ev:
  211|  1.82k|		{
  212|  1.82k|			m_RecordCount = static_cast<size_t>(-1);
  213|  1.82k|		}
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEED2Ev:
  222|  1.82k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEEC2Ev:
  211|  1.06k|		{
  212|  1.06k|			m_RecordCount = static_cast<size_t>(-1);
  213|  1.06k|		}
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEED2Ev:
  222|  1.06k|		virtual ~TLVRecordReader() = default;
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE12getTLVRecordEjPhm:
  298|  93.0k|		{
  299|  93.0k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|   117k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 80.8k, False: 36.9k]
  ------------------
  301|  80.8k|			{
  302|  80.8k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 56.1k, False: 24.6k]
  ------------------
  303|  56.1k|				{
  304|  56.1k|					return curRec;
  305|  56.1k|				}
  306|       |
  307|  24.6k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|  24.6k|			}
  309|       |
  310|  36.9k|			curRec.assign(nullptr);
  311|  36.9k|			return curRec;  // for NRVO optimization
  312|  93.0k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE17getFirstTLVRecordEPhm:
  239|   149k|		{
  240|   149k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|   149k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 32.3k, False: 116k]
  ------------------
  242|  32.3k|				return resRec;
  243|       |
  244|   116k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|   116k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 2.55k, False: 114k]
  ------------------
  247|  2.55k|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|   116k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 114k, False: 2.55k]
  |  Branch (250:29): [True: 0, False: 114k]
  |  Branch (250:48): [True: 250, False: 114k]
  ------------------
  251|    250|				resRec.assign(nullptr);
  252|       |
  253|   116k|			return resRec;
  254|   149k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE16getNextTLVRecordERS1_PKhm:
  264|   204k|		{
  265|   204k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|   204k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 204k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|   204k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 45.3k, False: 159k]
  ------------------
  271|   204k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|   204k|			                                  record.getTotalSize()))
  273|  45.3k|				return resRec;
  274|       |
  275|   159k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|   159k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 2.13k, False: 157k]
  ------------------
  278|  2.13k|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|   159k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 2.13k, False: 157k]
  ------------------
  282|  2.13k|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|   159k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 157k, False: 2.13k]
  |  Branch (285:28): [True: 10.3k, False: 147k]
  ------------------
  286|  10.3k|				resRec.assign(nullptr);
  287|       |
  288|   159k|			return resRec;
  289|   204k|		}
_ZNK4pcpp9TLVRecordIhhE9isNotNullEv:
  134|   180k|		{
  135|   180k|			return (m_Data != nullptr);
  136|   180k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEE20changeTLVRecordCountEi:
  343|  56.1k|		{
  344|  56.1k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (344:8): [True: 0, False: 56.1k]
  ------------------
  345|      0|				m_RecordCount += changedBy;
  346|  56.1k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEC2Ev:
  211|   597k|		{
  212|   597k|			m_RecordCount = static_cast<size_t>(-1);
  213|   597k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEaSERKS2_:
  227|  93.0k|		{
  228|  93.0k|			m_RecordCount = other.m_RecordCount;
  229|  93.0k|			return *this;
  230|  93.0k|		}
_ZN4pcpp15TLVRecordReaderINS_15RadiusAttributeEEC2Ev:
  211|  10.8k|		{
  212|  10.8k|			m_RecordCount = static_cast<size_t>(-1);
  213|  10.8k|		}
_ZN4pcpp15TLVRecordReaderINS_15RadiusAttributeEED2Ev:
  222|  10.8k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_9NdpOptionEEC2Ev:
  211|    620|		{
  212|    620|			m_RecordCount = static_cast<size_t>(-1);
  213|    620|		}
_ZN4pcpp15TLVRecordReaderINS_9NdpOptionEED2Ev:
  222|    620|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEEC2Ev:
  211|  16.3k|		{
  212|  16.3k|			m_RecordCount = static_cast<size_t>(-1);
  213|  16.3k|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE17getFirstTLVRecordEPhm:
  239|    310|		{
  240|    310|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|    310|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 310, False: 0]
  ------------------
  242|    310|				return resRec;
  243|       |
  244|      0|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|      0|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 0, False: 0]
  ------------------
  247|      0|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|      0|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 0, False: 0]
  |  Branch (250:29): [True: 0, False: 0]
  |  Branch (250:48): [True: 0, False: 0]
  ------------------
  251|      0|				resRec.assign(nullptr);
  252|       |
  253|      0|			return resRec;
  254|    310|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE12getTLVRecordEjPhm:
  298|    310|		{
  299|    310|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|    310|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 0, False: 310]
  ------------------
  301|      0|			{
  302|      0|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 0, False: 0]
  ------------------
  303|      0|				{
  304|      0|					return curRec;
  305|      0|				}
  306|       |
  307|      0|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|      0|			}
  309|       |
  310|    310|			curRec.assign(nullptr);
  311|    310|			return curRec;  // for NRVO optimization
  312|    310|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE12getTLVRecordEjPhm:
  298|  1.78k|		{
  299|  1.78k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|  2.99k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 1.20k, False: 1.78k]
  ------------------
  301|  1.20k|			{
  302|  1.20k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 0, False: 1.20k]
  ------------------
  303|      0|				{
  304|      0|					return curRec;
  305|      0|				}
  306|       |
  307|  1.20k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|  1.20k|			}
  309|       |
  310|  1.78k|			curRec.assign(nullptr);
  311|  1.78k|			return curRec;  // for NRVO optimization
  312|  1.78k|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE17getFirstTLVRecordEPhm:
  239|  2.69k|		{
  240|  2.69k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  2.69k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 16, False: 2.68k]
  ------------------
  242|     16|				return resRec;
  243|       |
  244|  2.68k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  2.68k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 684, False: 1.99k]
  ------------------
  247|    684|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  2.68k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 1.99k, False: 684]
  |  Branch (250:29): [True: 0, False: 1.99k]
  |  Branch (250:48): [True: 909, False: 1.08k]
  ------------------
  251|    909|				resRec.assign(nullptr);
  252|       |
  253|  2.68k|			return resRec;
  254|  2.69k|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE16getNextTLVRecordERS1_PKhm:
  264|  1.80k|		{
  265|  1.80k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|  1.80k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 1.80k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|  1.80k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 3, False: 1.80k]
  ------------------
  271|  1.80k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|  1.80k|			                                  record.getTotalSize()))
  273|      3|				return resRec;
  274|       |
  275|  1.80k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|  1.80k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 48, False: 1.75k]
  ------------------
  278|     48|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|  1.80k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 48, False: 1.75k]
  ------------------
  282|     48|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|  1.80k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 1.75k, False: 48]
  |  Branch (285:28): [True: 1.03k, False: 720]
  ------------------
  286|  1.03k|				resRec.assign(nullptr);
  287|       |
  288|  1.80k|			return resRec;
  289|  1.80k|		}

_ZN4pcpp8TcpLayerD2Ev:
  459|   597k|		~TcpLayer() override = default;
_ZN4pcpp9TcpOptionC2EPh:
  257|   503k|		explicit TcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  258|   503k|		{}
_ZN4pcpp9TcpOption9canAssignEPKhm:
  282|   354k|		{
  283|   354k|			const auto* data = reinterpret_cast<const TLVRawData*>(recordRawData);
  284|   354k|			if (data == nullptr)
  ------------------
  |  Branch (284:8): [True: 0, False: 354k]
  ------------------
  285|      0|				return false;
  286|       |
  287|   354k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (287:8): [True: 77.2k, False: 276k]
  ------------------
  288|  77.2k|				return false;
  289|       |
  290|   276k|			const auto recordType = getTcpOptionEnumType(data);
  291|   276k|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (291:8): [True: 158k, False: 118k]
  |  Branch (291:48): [True: 14.4k, False: 103k]
  ------------------
  292|   173k|				return true;
  293|       |
  294|   103k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  295|   276k|		}
_ZNK4pcpp9TcpOption12getTotalSizeEv:
  300|  1.52M|		{
  301|  1.52M|			if (m_Data == nullptr)
  ------------------
  |  Branch (301:8): [True: 0, False: 1.52M]
  ------------------
  302|      0|				return 0;
  303|       |
  304|  1.52M|			const auto recordType = getTcpOptionEnumType(m_Data);
  305|  1.52M|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (305:8): [True: 952k, False: 570k]
  |  Branch (305:48): [True: 81.9k, False: 488k]
  ------------------
  306|  1.03M|				return sizeof(uint8_t);
  307|       |
  308|   488k|			return static_cast<size_t>(m_Data->recordLen);
  309|  1.52M|		}
_ZN4pcpp9TcpOption20getTcpOptionEnumTypeEPKNS_9TLVRecordIhhE10TLVRawDataE:
  333|  1.79M|		{
  334|  1.79M|			if (optionRawData == nullptr)
  ------------------
  |  Branch (334:8): [True: 0, False: 1.79M]
  ------------------
  335|      0|				return TcpOptionEnumType::Unknown;
  336|       |
  337|  1.79M|			return static_cast<TcpOptionEnumType>(optionRawData->recordType);
  338|  1.79M|		}
_ZNK4pcpp8TcpLayer12getTcpHeaderEv:
  472|  2.83M|		{
  473|  2.83M|			return reinterpret_cast<tcphdr*>(m_Data);
  474|  2.83M|		}
_ZNK4pcpp8TcpLayer12getHeaderLenEv:
  566|  1.21M|		{
  567|  1.21M|			return getTcpHeader()->dataOffset * 4;
  568|  1.21M|		}
_ZNK4pcpp8TcpLayer16getOsiModelLayerEv:
  576|  93.0k|		{
  577|  93.0k|			return OsiModelTransportLayer;
  578|  93.0k|		}
_ZNK4pcpp8TcpLayer17getOptionsBasePtrEv:
  586|   329k|		{
  587|   329k|			return m_Data + sizeof(tcphdr);
  588|   329k|		}
_ZN4pcpp8TcpLayer11isDataValidEPKhm:
  597|   514k|	{
  598|   514k|		const tcphdr* hdr = reinterpret_cast<const tcphdr*>(data);
  599|   514k|		return dataLen >= sizeof(tcphdr) && hdr->dataOffset >= 5 /* the minimum TCP header size */
  ------------------
  |  Branch (599:10): [True: 514k, False: 286]
  |  Branch (599:39): [True: 512k, False: 2.08k]
  ------------------
  600|   512k|		       && dataLen >= hdr->dataOffset * sizeof(uint32_t);
  ------------------
  |  Branch (600:13): [True: 504k, False: 7.76k]
  ------------------
  601|   514k|	}

_ZN4pcpp11TelnetLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  215|  49.9k|		    : Layer(data, dataLen, prevLayer, packet, Telnet)
  216|  49.9k|		{
  217|       |			lastPositionOffset = SIZE_MAX;
  218|  49.9k|		};
_ZN4pcpp11TelnetLayer12isTelnetPortEt:
  277|   349k|		{
  278|   349k|			return port == 23;
  279|   349k|		}
_ZN4pcpp11TelnetLayer11isDataValidEPKhm:
  286|   199k|		{
  287|   199k|			return data && dataSize;
  ------------------
  |  Branch (287:11): [True: 199k, False: 0]
  |  Branch (287:19): [True: 199k, False: 0]
  ------------------
  288|   199k|		}
_ZN4pcpp11TelnetLayer14parseNextLayerEv:
  294|  49.9k|		{}
_ZNK4pcpp11TelnetLayer12getHeaderLenEv:
  298|  8.32k|		{
  299|  8.32k|			return m_DataLen;
  300|  8.32k|		}
_ZN4pcpp11TelnetLayer22computeCalculateFieldsEv:
  304|  8.32k|		{}
_ZNK4pcpp11TelnetLayer16getOsiModelLayerEv:
  308|  8.32k|		{
  309|  8.32k|			return OsiModelApplicationLayer;
  310|  8.32k|		}

_ZNK4pcpp11HeaderField12getFieldSizeEv:
   49|  2.97M|		{
   50|  2.97M|			return m_FieldSize;
   51|  2.97M|		}
_ZNK4pcpp11HeaderField13isEndOfHeaderEv:
   70|  1.13M|		{
   71|  1.13M|			return m_IsEndOfHeaderField;
   72|  1.13M|		}
_ZNK4pcpp24TextBasedProtocolMessage13getFirstFieldEv:
  123|  3.97k|		{
  124|  3.97k|			return m_FieldList;
  125|  3.97k|		}

_ZN4pcpp9TpktLayer11isDataValidEPKhm:
   92|   125k|		{
   93|   125k|			return canReinterpretAs<tpkthdr>(data, dataSize);
   94|   125k|		}
_ZN4pcpp9TpktLayer10isTpktPortEtt:
   83|   121k|		{
   84|   121k|			return portSrc == 102 || portDst == 102;
  ------------------
  |  Branch (84:11): [True: 7.40k, False: 114k]
  |  Branch (84:29): [True: 14.5k, False: 99.7k]
  ------------------
   85|   121k|		}
_ZN4pcpp9TpktLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   38|  21.9k|		    : Layer(data, dataLen, prevLayer, packet, TPKT)
   39|  21.9k|		{}
_ZNK4pcpp9TpktLayer12getHeaderLenEv:
   67|  25.0k|		{
   68|  25.0k|			return sizeof(tpkthdr);
   69|  25.0k|		}
_ZN4pcpp9TpktLayer22computeCalculateFieldsEv:
   73|  3.10k|		{}
_ZNK4pcpp9TpktLayer16getOsiModelLayerEv:
   99|  3.10k|		{
  100|  3.10k|			return OsiModelTransportLayer;
  101|  3.10k|		}
_ZNK4pcpp9TpktLayer13getTpktHeaderEv:
  109|  12.4k|		{
  110|  12.4k|			return reinterpret_cast<tpkthdr*>(m_Data);
  111|  12.4k|		}

_ZN4pcpp8UdpLayer11isDataValidEPKhm:
   97|   320k|	{
   98|   320k|		return data && dataLen >= sizeof(udphdr);
  ------------------
  |  Branch (98:10): [True: 320k, False: 0]
  |  Branch (98:18): [True: 317k, False: 2.46k]
  ------------------
   99|   320k|	}
_ZN4pcpp8UdpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   39|   317k|		    : Layer(data, dataLen, prevLayer, packet, UDP)
   40|   317k|		{}
_ZNK4pcpp8UdpLayer12getUdpHeaderEv:
   51|   836k|		{
   52|   836k|			return reinterpret_cast<udphdr*>(m_Data);
   53|   836k|		}
_ZNK4pcpp8UdpLayer12getHeaderLenEv:
   81|   131k|		{
   82|   131k|			return sizeof(udphdr);
   83|   131k|		}
_ZNK4pcpp8UdpLayer16getOsiModelLayerEv:
   91|  50.2k|		{
   92|  50.2k|			return OsiModelTransportLayer;
   93|  50.2k|		}

_ZN4pcpp9VlanLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   42|   198k|		    : Layer(data, dataLen, prevLayer, packet, VLAN)
   43|   198k|		{}
_ZNK4pcpp9VlanLayer13getVlanHeaderEv:
   59|   351k|		{
   60|   351k|			return reinterpret_cast<vlan_header*>(m_Data);
   61|   351k|		}
_ZNK4pcpp9VlanLayer12getHeaderLenEv:
  101|  29.8k|		{
  102|  29.8k|			return sizeof(vlan_header);
  103|  29.8k|		}
_ZNK4pcpp9VlanLayer16getOsiModelLayerEv:
  111|  22.5k|		{
  112|  22.5k|			return OsiModelDataLinkLayer;
  113|  22.5k|		}
_ZN4pcpp9VlanLayer11isDataValidEPKhm:
  120|   142k|		{
  121|   142k|			return canReinterpretAs<vlan_header>(data, dataLen);
  122|   142k|		}

_ZN4pcpp9VrrpLayerC2EPhmPNS_5LayerEPNS_6PacketEhNS_9IPAddress11AddressTypeE:
  129|  10.5k|		    : Layer(data, dataLen, prevLayer, packet, vrrpVer), m_AddressType(addressType)
  130|  10.5k|		{}
_ZNK4pcpp9VrrpLayer13getVrrpHeaderEv:
  135|  35.7k|		{
  136|  35.7k|			return reinterpret_cast<vrrp_header*>(m_Data);
  137|  35.7k|		}
_ZN4pcpp9VrrpLayer14parseNextLayerEv:
  248|  10.5k|		{}
_ZNK4pcpp9VrrpLayer12getHeaderLenEv:
  256|  41.1k|		{
  257|  41.1k|			return m_DataLen;
  258|  41.1k|		}
_ZNK4pcpp9VrrpLayer16getOsiModelLayerEv:
  263|  2.32k|		{
  264|  2.32k|			return OsiModelNetworkLayer;
  265|  2.32k|		}
_ZN4pcpp11VrrpV2LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  302|  3.48k|		    : VrrpLayer(data, dataLen, prevLayer, packet, VRRPv2, IPAddress::IPv4AddressType)
  303|  3.48k|		{}
_ZN4pcpp11VrrpV2Layer11isDataValidEPKhm:
  343|  3.48k|		{
  344|  3.48k|			return canReinterpretAs<vrrp_header>(data, dataLen);
  345|  3.48k|		}
_ZN4pcpp11VrrpV3LayerC2EPhmPNS_5LayerEPNS_6PacketENS_9IPAddress11AddressTypeE:
  367|  7.02k|		    : VrrpLayer(data, dataLen, prevLayer, packet, VRRPv3, addressType)
  368|  7.02k|		{}
_ZN4pcpp11VrrpV3Layer11isDataValidEPKhm:
  399|  3.43k|		{
  400|  3.43k|			return canReinterpretAs<vrrp_header>(data, dataLen);
  401|  3.43k|		}

_ZN4pcpp10VxlanLayer11isVxlanPortEt:
  120|   303k|		{
  121|   303k|			return port == 4789;
  122|   303k|		}
_ZN4pcpp10VxlanLayer11isDataValidEPKhm:
   98|     24|		{
   99|     24|			return canReinterpretAs<vxlan_header>(data, dataLen);
  100|     24|		}
_ZN4pcpp10VxlanLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   78|     24|		    : Layer(data, dataLen, prevLayer, packet, VXLAN)
   79|     24|		{}
_ZNK4pcpp10VxlanLayer12getHeaderLenEv:
  131|      3|		{
  132|      3|			return sizeof(vxlan_header);
  133|      3|		}
_ZN4pcpp10VxlanLayer22computeCalculateFieldsEv:
  137|      3|		{}
_ZNK4pcpp10VxlanLayer16getOsiModelLayerEv:
  142|      3|		{
  143|      3|			return OsiModelDataLinkLayer;
  144|      3|		}

_ZN4pcpp14WakeOnLanLayer15isWakeOnLanPortEt:
  106|  39.5k|		{
  107|  39.5k|			return (port == 0) || (port == 7) || (port == 9);
  ------------------
  |  Branch (107:11): [True: 2.05k, False: 37.5k]
  |  Branch (107:26): [True: 20, False: 37.4k]
  |  Branch (107:41): [True: 0, False: 37.4k]
  ------------------
  108|  39.5k|		}
_ZN4pcpp14WakeOnLanLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   39|    775|		    : Layer(data, dataLen, prevLayer, packet, WakeOnLan)
   40|    775|		{}
_ZNK4pcpp14WakeOnLanLayer18getWakeOnLanHeaderEv:
   66|    310|		{
   67|    310|			return reinterpret_cast<wol_header*>(m_Data);
   68|    310|		}
_ZN4pcpp14WakeOnLanLayer14parseNextLayerEv:
  120|    775|		{}
_ZNK4pcpp14WakeOnLanLayer12getHeaderLenEv:
  124|    155|		{
  125|    155|			return m_DataLen;
  126|    155|		}
_ZN4pcpp14WakeOnLanLayer22computeCalculateFieldsEv:
  130|    155|		{}
_ZNK4pcpp14WakeOnLanLayer16getOsiModelLayerEv:
  134|    155|		{
  135|    155|			return OsiModelDataLinkLayer;
  136|    155|		}

_ZN4pcpp14WireGuardLayer16isWireGuardPortsEtt:
   68|  38.7k|		{
   69|  38.7k|			return (portSrc == 51820 || portDst == 51820);
  ------------------
  |  Branch (69:12): [True: 905, False: 37.8k]
  |  Branch (69:32): [True: 915, False: 36.9k]
  ------------------
   70|  38.7k|		}
_ZNK4pcpp14WireGuardLayer14getBasicHeaderEv:
   32|    728|		{
   33|    728|			return reinterpret_cast<wg_common_header*>(m_Data);
   34|    728|		}
_ZN4pcpp14WireGuardLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   60|  1.82k|		    : Layer(data, dataLen, prevLayer, packet, WireGuard)
   61|  1.82k|		{}
_ZN4pcpp14WireGuardLayer14parseNextLayerEv:
  100|  1.82k|		{}
_ZN4pcpp14WireGuardLayer22computeCalculateFieldsEv:
  107|    364|		{}
_ZNK4pcpp14WireGuardLayer16getOsiModelLayerEv:
  115|    364|		{
  116|    364|			return OsiModelNetworkLayer;
  117|    364|		}
_ZN4pcpp33WireGuardHandshakeInitiationLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  162|    355|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  163|    355|		{}
_ZN4pcpp31WireGuardHandshakeResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  259|    205|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  260|    205|		{}
_ZN4pcpp25WireGuardCookieReplyLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  349|     15|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  350|     15|		{}
_ZN4pcpp27WireGuardTransportDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  416|  1.24k|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  417|  1.24k|		{}

_ZNK4pcpp8ArpLayer9getOpcodeEv:
   52|  7.10k|	{
   53|       |		return static_cast<ArpOpcode>(be16toh(getArpHeader()->opcode));
   54|  7.10k|	}
_ZN4pcpp8ArpLayer22computeCalculateFieldsEv:
   57|  1.33k|	{
   58|  1.33k|		arphdr* arpHeader = getArpHeader();
   59|  1.33k|		arpHeader->hardwareType = htobe16(1);  // Ethernet
   60|  1.33k|		arpHeader->hardwareSize = 6;
   61|       |		arpHeader->protocolType = htobe16(PCPP_ETHERTYPE_IP);  // assume IPv4 over ARP
   62|  1.33k|		arpHeader->protocolSize = 4;                           // assume IPv4 over ARP
   63|  1.33k|	}
_ZNK4pcpp8ArpLayer9isRequestEv:
   91|  1.33k|	{
   92|  1.33k|		return getOpcode() == pcpp::ArpOpcode::ARP_REQUEST;
   93|  1.33k|	}
_ZNK4pcpp8ArpLayer7isReplyEv:
   96|  1.33k|	{
   97|  1.33k|		return getOpcode() == pcpp::ArpOpcode::ARP_REPLY;
   98|  1.33k|	}
_ZNK4pcpp8ArpLayer8toStringEv:
  101|  2.67k|	{
  102|  2.67k|		switch (getOpcode())
  103|  2.67k|		{
  104|    756|		case ArpOpcode::ARP_REQUEST:
  ------------------
  |  Branch (104:3): [True: 756, False: 1.91k]
  ------------------
  105|    756|			return "ARP Layer, ARP request, who has " + getTargetIpAddr().toString() + " ? Tell " +
  106|    756|			       getSenderIpAddr().toString();
  107|    152|		case ArpOpcode::ARP_REPLY:
  ------------------
  |  Branch (107:3): [True: 152, False: 2.51k]
  ------------------
  108|    152|			return "ARP Layer, ARP reply, " + getSenderIpAddr().toString() + " is at " +
  109|    152|			       getSenderMacAddress().toString();
  110|  1.76k|		default:
  ------------------
  |  Branch (110:3): [True: 1.76k, False: 908]
  ------------------
  111|  1.76k|			return "ARP Layer, unknown opcode (" + std::to_string(getOpcode()) + ")";
  112|  2.67k|		}
  113|  2.67k|	}

_ZN4pcpp10Asn1Record6decodeEPKhmb:
   93|   411k|	{
   94|   411k|		uint8_t tagLen;
   95|   411k|		auto decodedRecord = decodeTagAndCreateRecord(data, dataLen, tagLen);
   96|       |
   97|   411k|		uint8_t lengthLen;
   98|   411k|		lengthLen = decodedRecord->decodeLength(data + tagLen, dataLen - tagLen);
   99|       |
  100|   411k|		decodedRecord->m_TotalLength = tagLen + lengthLen + decodedRecord->m_ValueLength;
  101|   411k|		if (decodedRecord->m_TotalLength < decodedRecord->m_ValueLength ||  // check for overflow
  ------------------
  |  Branch (101:7): [True: 1.80k, False: 409k]
  ------------------
  102|   409k|		    decodedRecord->m_TotalLength > dataLen)
  ------------------
  |  Branch (102:7): [True: 2.98k, False: 406k]
  ------------------
  103|  2.98k|		{
  104|  2.98k|			throw std::invalid_argument("Cannot decode ASN.1 record, data doesn't contain the entire record");
  105|  2.98k|		}
  106|       |
  107|   408k|		uint8_t const* startOfData = data + tagLen + lengthLen;
  108|   408k|		internal::Asn1LoadPolicy policy = lazy ? internal::Asn1LoadPolicy::Lazy : internal::Asn1LoadPolicy::Eager;
  ------------------
  |  Branch (108:37): [True: 57.6k, False: 350k]
  ------------------
  109|   408k|		decodedRecord->setEncodedValue(startOfData, policy);
  110|       |
  111|   408k|		return decodedRecord;
  112|   411k|	}
_ZN4pcpp10Asn1Record24decodeTagAndCreateRecordEPKhmRh:
  207|   411k|	{
  208|   411k|		if (dataLen < 1)
  ------------------
  |  Branch (208:7): [True: 0, False: 411k]
  ------------------
  209|      0|		{
  210|      0|			throw std::invalid_argument("Cannot decode ASN.1 record tag");
  211|      0|		}
  212|       |
  213|   411k|		tagLen = 1;
  214|       |
  215|   411k|		Asn1TagClass tagClass = Asn1TagClass::Universal;
  216|       |
  217|       |		// Check first 2 bits
  218|   411k|		auto tagClassBits = data[0] & 0xc0;
  219|   411k|		if (tagClassBits == 0)
  ------------------
  |  Branch (219:7): [True: 327k, False: 83.7k]
  ------------------
  220|   327k|		{
  221|   327k|			tagClass = Asn1TagClass::Universal;
  222|   327k|		}
  223|  83.7k|		else if ((tagClassBits & 0xc0) == 0xc0)
  ------------------
  |  Branch (223:12): [True: 3.06k, False: 80.6k]
  ------------------
  224|  3.06k|		{
  225|  3.06k|			tagClass = Asn1TagClass::Private;
  226|  3.06k|		}
  227|  80.6k|		else if ((tagClassBits & 0x80) == 0x80)
  ------------------
  |  Branch (227:12): [True: 27.0k, False: 53.5k]
  ------------------
  228|  27.0k|		{
  229|  27.0k|			tagClass = Asn1TagClass::ContextSpecific;
  230|  27.0k|		}
  231|  53.5k|		else if ((tagClassBits & 0x40) == 0x40)
  ------------------
  |  Branch (231:12): [True: 53.5k, False: 0]
  ------------------
  232|  53.5k|		{
  233|  53.5k|			tagClass = Asn1TagClass::Application;
  234|  53.5k|		}
  235|       |
  236|       |		// Check bit 6
  237|   411k|		auto tagTypeBits = data[0] & 0x20;
  238|   411k|		bool isConstructed = (tagTypeBits != 0);
  239|       |
  240|       |		// Check last 5 bits
  241|   411k|		auto tagType = data[0] & 0x1f;
  242|   411k|		if (tagType == 0x1f)
  ------------------
  |  Branch (242:7): [True: 2.18k, False: 409k]
  ------------------
  243|  2.18k|		{
  244|  2.18k|			if (dataLen < 2)
  ------------------
  |  Branch (244:8): [True: 0, False: 2.18k]
  ------------------
  245|      0|			{
  246|      0|				throw std::invalid_argument("Cannot decode ASN.1 record tag");
  247|      0|			}
  248|       |
  249|  2.18k|			if ((data[1] & 0x80) != 0)
  ------------------
  |  Branch (249:8): [True: 35, False: 2.15k]
  ------------------
  250|     35|			{
  251|     35|				throw std::invalid_argument("ASN.1 tags with value larger than 127 are not supported");
  252|     35|			}
  253|       |
  254|  2.15k|			tagType = data[1] & 0x7f;
  255|  2.15k|			tagLen = 2;
  256|  2.15k|		}
  257|       |
  258|   411k|		std::unique_ptr<Asn1Record> newRecord;
  259|       |
  260|   411k|		if (isConstructed)
  ------------------
  |  Branch (260:7): [True: 162k, False: 248k]
  ------------------
  261|   162k|		{
  262|   162k|			if (tagClass == Asn1TagClass::Universal)
  ------------------
  |  Branch (262:8): [True: 99.0k, False: 63.5k]
  ------------------
  263|  99.0k|			{
  264|  99.0k|				switch (static_cast<Asn1UniversalTagType>(tagType))
  265|  99.0k|				{
  266|  84.3k|				case Asn1UniversalTagType::Sequence:
  ------------------
  |  Branch (266:5): [True: 84.3k, False: 14.6k]
  ------------------
  267|  84.3k|				{
  268|  84.3k|					newRecord.reset(new Asn1SequenceRecord());
  269|  84.3k|					break;
  270|      0|				}
  271|  13.3k|				case Asn1UniversalTagType::Set:
  ------------------
  |  Branch (271:5): [True: 13.3k, False: 85.7k]
  ------------------
  272|  13.3k|				{
  273|  13.3k|					newRecord.reset(new Asn1SetRecord());
  274|  13.3k|					break;
  275|      0|				}
  276|  1.38k|				default:
  ------------------
  |  Branch (276:5): [True: 1.38k, False: 97.6k]
  ------------------
  277|  1.38k|				{
  278|  1.38k|					newRecord.reset(new Asn1ConstructedRecord());
  279|  1.38k|				}
  280|  99.0k|				}
  281|  99.0k|			}
  282|  63.5k|			else
  283|  63.5k|			{
  284|  63.5k|				newRecord.reset(new Asn1ConstructedRecord());
  285|  63.5k|			}
  286|   162k|		}
  287|   248k|		else
  288|   248k|		{
  289|   248k|			if (tagClass == Asn1TagClass::Universal)
  ------------------
  |  Branch (289:8): [True: 228k, False: 20.1k]
  ------------------
  290|   228k|			{
  291|   228k|				auto asn1UniversalTagType = static_cast<Asn1UniversalTagType>(tagType);
  292|   228k|				switch (asn1UniversalTagType)
  293|   228k|				{
  294|  65.6k|				case Asn1UniversalTagType::Integer:
  ------------------
  |  Branch (294:5): [True: 65.6k, False: 163k]
  ------------------
  295|  65.6k|				{
  296|  65.6k|					newRecord.reset(new Asn1IntegerRecord());
  297|  65.6k|					break;
  298|      0|				}
  299|  22.1k|				case Asn1UniversalTagType::Enumerated:
  ------------------
  |  Branch (299:5): [True: 22.1k, False: 206k]
  ------------------
  300|  22.1k|				{
  301|  22.1k|					newRecord.reset(new Asn1EnumeratedRecord());
  302|  22.1k|					break;
  303|      0|				}
  304|   122k|				case Asn1UniversalTagType::OctetString:
  ------------------
  |  Branch (304:5): [True: 122k, False: 106k]
  ------------------
  305|   122k|				{
  306|   122k|					newRecord.reset(new Asn1OctetStringRecord());
  307|   122k|					break;
  308|      0|				}
  309|    107|				case Asn1UniversalTagType::UTF8String:
  ------------------
  |  Branch (309:5): [True: 107, False: 228k]
  ------------------
  310|    107|				{
  311|    107|					newRecord.reset(new Asn1UTF8StringRecord());
  312|    107|					break;
  313|      0|				}
  314|     25|				case Asn1UniversalTagType::PrintableString:
  ------------------
  |  Branch (314:5): [True: 25, False: 228k]
  ------------------
  315|     25|				{
  316|     25|					newRecord.reset(new Asn1PrintableStringRecord());
  317|     25|					break;
  318|      0|				}
  319|     92|				case Asn1UniversalTagType::IA5String:
  ------------------
  |  Branch (319:5): [True: 92, False: 228k]
  ------------------
  320|     92|				{
  321|     92|					newRecord.reset(new Asn1IA5StringRecord());
  322|     92|					break;
  323|      0|				}
  324|  6.67k|				case Asn1UniversalTagType::Boolean:
  ------------------
  |  Branch (324:5): [True: 6.67k, False: 222k]
  ------------------
  325|  6.67k|				{
  326|  6.67k|					newRecord.reset(new Asn1BooleanRecord());
  327|  6.67k|					break;
  328|      0|				}
  329|    981|				case Asn1UniversalTagType::BitString:
  ------------------
  |  Branch (329:5): [True: 981, False: 227k]
  ------------------
  330|    981|				{
  331|    981|					newRecord.reset(new Asn1BitStringRecord());
  332|    981|					break;
  333|      0|				}
  334|    415|				case Asn1UniversalTagType::Null:
  ------------------
  |  Branch (334:5): [True: 415, False: 228k]
  ------------------
  335|    415|				{
  336|    415|					newRecord.reset(new Asn1NullRecord());
  337|    415|					break;
  338|      0|				}
  339|  1.25k|				case Asn1UniversalTagType::ObjectIdentifier:
  ------------------
  |  Branch (339:5): [True: 1.25k, False: 227k]
  ------------------
  340|  1.25k|				{
  341|  1.25k|					newRecord.reset(new Asn1ObjectIdentifierRecord());
  342|  1.25k|					break;
  343|      0|				}
  344|    140|				case Asn1UniversalTagType::UTCTime:
  ------------------
  |  Branch (344:5): [True: 140, False: 228k]
  ------------------
  345|    140|				{
  346|    140|					newRecord.reset(new Asn1UtcTimeRecord());
  347|    140|					break;
  348|      0|				}
  349|    885|				case Asn1UniversalTagType::GeneralizedTime:
  ------------------
  |  Branch (349:5): [True: 885, False: 227k]
  ------------------
  350|    885|				{
  351|    885|					newRecord.reset(new Asn1GeneralizedTimeRecord());
  352|    885|					break;
  353|      0|				}
  354|  8.14k|				default:
  ------------------
  |  Branch (354:5): [True: 8.14k, False: 220k]
  ------------------
  355|  8.14k|				{
  356|  8.14k|					newRecord.reset(new Asn1GenericRecord());
  357|  8.14k|				}
  358|   228k|				}
  359|   228k|			}
  360|  20.1k|			else
  361|  20.1k|			{
  362|  20.1k|				newRecord.reset(new Asn1GenericRecord());
  363|  20.1k|			}
  364|   248k|		}
  365|       |
  366|   411k|		newRecord->m_TagClass = tagClass;
  367|   411k|		newRecord->m_IsConstructed = isConstructed;
  368|   411k|		newRecord->m_TagType = tagType;
  369|       |
  370|   411k|		return newRecord;
  371|   411k|	}
_ZN4pcpp10Asn1Record12decodeLengthEPKhm:
  374|   411k|	{
  375|   411k|		if (dataLen < 1)
  ------------------
  |  Branch (375:7): [True: 549, False: 411k]
  ------------------
  376|    549|		{
  377|    549|			throw std::invalid_argument("Cannot decode ASN.1 record length");
  378|    549|		}
  379|       |
  380|       |		// Check 8th bit
  381|   411k|		auto lengthForm = data[0] & 0x80;
  382|       |
  383|       |		// Check if the tag is using more than one byte
  384|       |		// 8th bit at 0 means the length only uses one byte
  385|       |		// 8th bit at 1 means the length uses more than one byte. The number of bytes is encoded in the other 7 bits
  386|   411k|		if (lengthForm == 0)
  ------------------
  |  Branch (386:7): [True: 326k, False: 84.1k]
  ------------------
  387|   326k|		{
  388|   326k|			m_ValueLength = data[0];
  389|   326k|			return 1;
  390|   326k|		}
  391|       |
  392|  84.1k|		uint8_t actualLengthBytes = data[0] & 0x7F;
  393|  84.1k|		const uint8_t* actualLengthData = data + 1;
  394|       |
  395|  84.1k|		if (dataLen < static_cast<size_t>(actualLengthBytes) + 1)
  ------------------
  |  Branch (395:7): [True: 960, False: 83.2k]
  ------------------
  396|    960|		{
  397|    960|			throw std::invalid_argument("Cannot decode ASN.1 record length");
  398|    960|		}
  399|       |
  400|   380k|		for (int i = 0; i < actualLengthBytes; i++)
  ------------------
  |  Branch (400:19): [True: 297k, False: 82.9k]
  ------------------
  401|   297k|		{
  402|   297k|			size_t partialValueLength = m_ValueLength << 8;
  403|   297k|			if (partialValueLength < m_ValueLength)  // check for overflow
  ------------------
  |  Branch (403:8): [True: 259, False: 297k]
  ------------------
  404|    259|			{
  405|    259|				throw std::invalid_argument("Cannot decode ASN.1 record length");
  406|    259|			}
  407|       |
  408|   297k|			m_ValueLength = partialValueLength | actualLengthData[i];
  409|   297k|		}
  410|       |
  411|  82.9k|		return 1 + actualLengthBytes;
  412|  83.2k|	}
_ZNK4pcpp10Asn1Record19decodeValueIfNeededEv:
  415|   443k|	{
  416|       |		// TODO: This is not thread-safe and can cause issues in a multiple reader scenario.
  417|   443k|		if (m_EncodedValue != nullptr)
  ------------------
  |  Branch (417:7): [True: 404k, False: 39.2k]
  ------------------
  418|   404k|		{
  419|   404k|			decodeValue(m_EncodedValue);
  420|   404k|			m_EncodedValue = nullptr;  // Clear the encoded value after decoding
  421|   404k|		}
  422|   443k|	}
_ZN4pcpp10Asn1Record15setEncodedValueEPKhNS_8internal14Asn1LoadPolicyE:
  462|   406k|	{
  463|   406k|		m_EncodedValue = dataSource;
  464|       |
  465|   406k|		if (loadPolicy == internal::Asn1LoadPolicy::Eager)
  ------------------
  |  Branch (465:7): [True: 349k, False: 57.6k]
  ------------------
  466|   349k|		{
  467|   349k|			decodeValueIfNeeded();
  468|   349k|		}
  469|   406k|	}
_ZNK4pcpp17Asn1GenericRecord11decodeValueEPKh:
  484|  26.1k|	{
  485|  26.1k|		m_Value = std::make_unique<uint8_t[]>(m_ValueLength);
  486|  26.1k|		std::memcpy(m_Value.get(), data, m_ValueLength);
  487|  26.1k|	}
_ZNK4pcpp21Asn1ConstructedRecord11decodeValueEPKh:
  519|   159k|	{
  520|   159k|		if (!(data || m_ValueLength))
  ------------------
  |  Branch (520:9): [True: 159k, False: 0]
  |  Branch (520:17): [True: 0, False: 0]
  ------------------
  521|      0|		{
  522|      0|			return;
  523|      0|		}
  524|       |
  525|   159k|		auto value = data;
  526|   159k|		auto valueLen = m_ValueLength;
  527|       |
  528|   512k|		while (valueLen > 0)
  ------------------
  |  Branch (528:10): [True: 353k, False: 159k]
  ------------------
  529|   353k|		{
  530|   353k|			auto subRecord = Asn1Record::decode(value, valueLen, LazySubRecordDecoding);
  531|   353k|			value += subRecord->getTotalLength();
  532|   353k|			valueLen -= subRecord->getTotalLength();
  533|       |
  534|   353k|			m_SubRecords.pushBack(std::move(subRecord));
  535|   353k|		}
  536|   159k|	}
_ZN4pcpp19Asn1PrimitiveRecordC2ENS_20Asn1UniversalTagTypeE:
  583|   123k|	Asn1PrimitiveRecord::Asn1PrimitiveRecord(Asn1UniversalTagType tagType) : Asn1Record()
  584|   123k|	{
  585|   123k|		m_TagType = static_cast<uint8_t>(tagType);
  586|   123k|		m_TagClass = Asn1TagClass::Universal;
  587|   123k|		m_IsConstructed = false;
  588|   123k|	}
_ZN4pcpp17Asn1IntegerRecord6BigInt14initFromStringERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  601|  87.5k|	{
  602|  87.5k|		std::string valueStr = value;
  603|       |
  604|       |		// Optional 0x or 0X prefix
  605|  87.5k|		if (value.size() >= 2 && value[0] == '0' && (value[1] == 'x' || value[1] == 'X'))
  ------------------
  |  Branch (605:7): [True: 87.5k, False: 10]
  |  Branch (605:28): [True: 74.1k, False: 13.4k]
  |  Branch (605:48): [True: 0, False: 74.1k]
  |  Branch (605:67): [True: 0, False: 74.1k]
  ------------------
  606|      0|		{
  607|      0|			valueStr = value.substr(2);
  608|      0|		}
  609|       |
  610|  87.5k|		if (valueStr.empty())
  ------------------
  |  Branch (610:7): [True: 10, False: 87.5k]
  ------------------
  611|     10|		{
  612|     10|			throw std::invalid_argument("Value is not a valid hex stream");
  613|     10|		}
  614|       |
  615|  87.5k|		if (std::any_of(valueStr.begin(), valueStr.end(), [](char c) { return !std::isxdigit(c); }))
  ------------------
  |  Branch (615:7): [True: 0, False: 87.5k]
  ------------------
  616|      0|		{
  617|      0|			throw std::invalid_argument("Value is not a valid hex stream");
  618|      0|		}
  619|       |
  620|  87.5k|		return valueStr;
  621|  87.5k|	}
_ZN4pcpp17Asn1IntegerRecord6BigIntaSERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  624|  87.5k|	{
  625|  87.5k|		m_Value = initFromString(value);
  626|  87.5k|		return *this;
  627|  87.5k|	}
_ZNK4pcpp17Asn1IntegerRecord11decodeValueEPKh:
  692|  87.5k|	{
  693|  87.5k|		m_Value = pcpp::byteArrayToHexString(data, m_ValueLength);
  694|  87.5k|	}
_ZNK4pcpp21Asn1OctetStringRecord11decodeValueEPKh:
  721|   121k|	{
  722|   121k|		auto value = reinterpret_cast<char const*>(data);
  723|       |
  724|   121k|		m_IsPrintable = std::all_of(value, value + m_ValueLength, [](char c) { return isprint(0xff & c); });
  725|       |
  726|   121k|		if (m_IsPrintable)
  ------------------
  |  Branch (726:7): [True: 109k, False: 12.7k]
  ------------------
  727|   109k|		{
  728|   109k|			Asn1StringRecord::decodeValue(data);
  729|   109k|		}
  730|  12.7k|		else
  731|  12.7k|		{
  732|  12.7k|			m_Value = byteArrayToHexString(data, m_ValueLength);
  733|  12.7k|		}
  734|   121k|	}
_ZNK4pcpp17Asn1BooleanRecord11decodeValueEPKh:
  761|  6.66k|	{
  762|  6.66k|		m_Value = data[0] != 0;
  763|  6.66k|	}
_ZN4pcpp14Asn1NullRecordC2Ev:
  776|    415|	Asn1NullRecord::Asn1NullRecord() : Asn1PrimitiveRecord(Asn1UniversalTagType::Null)
  777|    415|	{
  778|    415|		m_ValueLength = 0;
  779|    415|		m_TotalLength = 2;
  780|    415|	}
_ZN4pcpp20Asn1ObjectIdentifierC2EPKhm:
  783|    757|	{
  784|       |		// A description of OID encoding can be found here:
  785|       |		// https://learn.microsoft.com/en-us/windows/win32/seccertenroll/about-object-identifier?redirectedfrom=MSDN
  786|       |
  787|    757|		if (!data || dataLen == 0)
  ------------------
  |  Branch (787:7): [True: 0, False: 757]
  |  Branch (787:16): [True: 40, False: 717]
  ------------------
  788|     40|		{
  789|     40|			throw std::invalid_argument("Malformed OID: Not enough bytes for the first component");
  790|     40|		}
  791|       |
  792|    717|		size_t currentByteIndex = 0;
  793|    717|		std::vector<uint32_t> components;
  794|       |
  795|    717|		uint8_t firstByte = data[currentByteIndex++];
  796|       |		// Decode the first byte: first_component * 40 + second_component
  797|    717|		components.push_back(static_cast<uint32_t>(firstByte / 40));
  798|    717|		components.push_back(static_cast<uint32_t>(firstByte % 40));
  799|       |
  800|    717|		uint32_t currentComponentValue = 0;
  801|    717|		bool componentStarted = false;
  802|       |
  803|       |		// Process remaining bytes using base-128 encoding
  804|  8.31k|		while (currentByteIndex < dataLen)
  ------------------
  |  Branch (804:10): [True: 7.59k, False: 717]
  ------------------
  805|  7.59k|		{
  806|  7.59k|			uint8_t byte = data[currentByteIndex++];
  807|       |
  808|       |			// Shift previous bits left by 7 and append lower 7 bits
  809|  7.59k|			currentComponentValue = (currentComponentValue << 7) | (byte & 0x7f);
  810|  7.59k|			componentStarted = true;
  811|       |
  812|       |			// If the MSB is 0, this is the final byte of the current value
  813|  7.59k|			if ((byte & 0x80) == 0)
  ------------------
  |  Branch (813:8): [True: 6.29k, False: 1.29k]
  ------------------
  814|  6.29k|			{
  815|  6.29k|				components.push_back(currentComponentValue);
  816|  6.29k|				currentComponentValue = 0;
  817|  6.29k|				componentStarted = false;
  818|  6.29k|			}
  819|  7.59k|		}
  820|       |
  821|    717|		if (componentStarted)
  ------------------
  |  Branch (821:7): [True: 195, False: 522]
  ------------------
  822|    195|		{
  823|    195|			throw std::invalid_argument("Malformed OID: Incomplete component at end of data");
  824|    195|		}
  825|       |
  826|    522|		m_Components = components;
  827|    522|	}
_ZNK4pcpp26Asn1ObjectIdentifierRecord11decodeValueEPKh:
  950|    757|	{
  951|    757|		m_Value = Asn1ObjectIdentifier(data, m_ValueLength);
  952|    757|	}
_ZN4pcpp14Asn1TimeRecord16validateTimezoneERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1006|    410|	{
 1007|    410|		if (timezone == "Z")
  ------------------
  |  Branch (1007:7): [True: 410, False: 0]
  ------------------
 1008|    410|		{
 1009|    410|			return;
 1010|    410|		}
 1011|       |
 1012|      0|		if (timezone.length() != 5 || (timezone[0] != '+' && timezone[0] != '-') || !std::isdigit(timezone[1]) ||
  ------------------
  |  Branch (1012:7): [True: 0, False: 0]
  |  Branch (1012:34): [True: 0, False: 0]
  |  Branch (1012:56): [True: 0, False: 0]
  |  Branch (1012:79): [True: 0, False: 0]
  ------------------
 1013|      0|		    !std::isdigit(timezone[2]) || !std::isdigit(timezone[3]) || !std::isdigit(timezone[4]))
  ------------------
  |  Branch (1013:7): [True: 0, False: 0]
  |  Branch (1013:37): [True: 0, False: 0]
  |  Branch (1013:67): [True: 0, False: 0]
  ------------------
 1014|      0|		{
 1015|      0|			throw std::invalid_argument("Invalid timezone format. Use 'Z' or '+/-HHMM'.");
 1016|      0|		}
 1017|      0|	}
_ZN4pcpp14Asn1TimeRecord15adjustTimezonesERKNSt3__16chrono10time_pointINS2_12system_clockENS2_8durationIxNS1_5ratioILl1ELl1000000EEEEEEERKNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEESJ_:
 1022|    205|	{
 1023|    205|		validateTimezone(fromTimezone);
 1024|    205|		validateTimezone(toTimezone);
 1025|       |
 1026|    205|		int fromOffsetSeconds = 0;
 1027|    205|		if (fromTimezone != "Z")
  ------------------
  |  Branch (1027:7): [True: 0, False: 205]
  ------------------
 1028|      0|		{
 1029|      0|			int fromSign = (fromTimezone[0] == '+') ? 1 : -1;
  ------------------
  |  Branch (1029:19): [True: 0, False: 0]
  ------------------
 1030|      0|			auto fromHours = std::stoi(fromTimezone.substr(1, 2));
 1031|      0|			auto fromMinutes = std::stoi(fromTimezone.substr(3, 2));
 1032|      0|			fromOffsetSeconds = fromSign * (fromHours * 3600 + fromMinutes * 60);
 1033|      0|		}
 1034|       |
 1035|    205|		int toOffsetSeconds = 0;
 1036|    205|		if (toTimezone != "Z")
  ------------------
  |  Branch (1036:7): [True: 0, False: 205]
  ------------------
 1037|      0|		{
 1038|      0|			int toSign = (toTimezone[0] == '+') ? 1 : -1;
  ------------------
  |  Branch (1038:17): [True: 0, False: 0]
  ------------------
 1039|      0|			auto toHours = std::stoi(toTimezone.substr(1, 2));
 1040|      0|			auto toMinutes = std::stoi(toTimezone.substr(3, 2));
 1041|      0|			toOffsetSeconds = toSign * (toHours * 3600 + toMinutes * 60);
 1042|      0|		}
 1043|       |
 1044|    205|		return value + std::chrono::seconds(toOffsetSeconds - fromOffsetSeconds);
 1045|    205|	}
_ZNK4pcpp25Asn1GeneralizedTimeRecord11decodeValueEPKh:
 1128|    885|	{
 1129|    885|		std::string timeString(reinterpret_cast<const char*>(data), m_ValueLength);
 1130|       |
 1131|    885|		std::string timezone = "Z";
 1132|    885|		auto timezonePos = timeString.find_first_of("+-");
 1133|    885|		if (timeString.back() == 'Z')
  ------------------
  |  Branch (1133:7): [True: 0, False: 885]
  ------------------
 1134|      0|		{
 1135|      0|			timeString.pop_back();
 1136|      0|		}
 1137|    885|		else if (timezonePos != std::string::npos)
  ------------------
  |  Branch (1137:12): [True: 330, False: 555]
  ------------------
 1138|    330|		{
 1139|    330|			timezone = timeString.substr(timezonePos);
 1140|    330|			timeString.erase(timezonePos);
 1141|    330|		}
 1142|       |
 1143|    885|		std::tm tm = {};
 1144|    885|		std::istringstream sstream(timeString);
 1145|    885|		sstream >> std::get_time(&tm, "%Y%m%d%H%M%S");
 1146|       |
 1147|    885|		if (sstream.fail())
  ------------------
  |  Branch (1147:7): [True: 680, False: 205]
  ------------------
 1148|    680|		{
 1149|    680|			throw std::runtime_error("Failed to parse ASN.1 generalized time");
 1150|    680|		}
 1151|       |
 1152|    205|		size_t dotPos = timeString.find('.');
 1153|    205|		int milliseconds = 0;
 1154|    205|		if (dotPos != std::string::npos)
  ------------------
  |  Branch (1154:7): [True: 0, False: 205]
  ------------------
 1155|      0|		{
 1156|      0|			std::string millisecondsStr = timeString.substr(dotPos + 1);
 1157|       |			// Limit the milliseconds to 3 digits
 1158|      0|			if (millisecondsStr.length() > 3)
  ------------------
  |  Branch (1158:8): [True: 0, False: 0]
  ------------------
 1159|      0|			{
 1160|      0|				timeString.erase(timezonePos);
 1161|      0|				millisecondsStr.resize(3);
 1162|      0|			}
 1163|      0|			milliseconds = std::stoi(millisecondsStr);
 1164|      0|		}
 1165|       |
 1166|    205|		auto timeValue = mkUtcTime(tm);
 1167|       |
 1168|    205|		m_Timezone = timezone;
 1169|    205|		m_Value = adjustTimezones(
 1170|    205|		    std::chrono::system_clock::from_time_t(timeValue) + std::chrono::milliseconds(milliseconds), timezone, "Z");
 1171|    205|	}
_ZN4pcpp19Asn1BitStringRecord6BitSetC2EPKhm:
 1228|    981|	Asn1BitStringRecord::BitSet::BitSet(const uint8_t* data, size_t numBits) : m_NumBits(numBits)
 1229|    981|	{
 1230|    981|		if (!data || !numBits)
  ------------------
  |  Branch (1230:7): [True: 0, False: 981]
  |  Branch (1230:16): [True: 70, False: 911]
  ------------------
 1231|     70|		{
 1232|     70|			throw std::invalid_argument("Provided data is null or num of bits is 0");
 1233|     70|		}
 1234|       |
 1235|    911|		size_t requiredBytes = (m_NumBits + 7) / 8;
 1236|    911|		m_Data.resize(requiredBytes);
 1237|    911|		std::copy_n(data, requiredBytes, m_Data.begin());
 1238|    911|	}
_ZNK4pcpp19Asn1BitStringRecord11decodeValueEPKh:
 1284|    981|	{
 1285|    981|		auto numBits = (m_ValueLength - 1) * 8 - static_cast<size_t>(data[0]);
 1286|    981|		m_Value = BitSet(data + 1, numBits);
 1287|    981|	}
Asn1Codec.cpp:_ZZN4pcpp17Asn1IntegerRecord6BigInt14initFromStringERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEENK3$_0clEc:
  615|   179k|		if (std::any_of(valueStr.begin(), valueStr.end(), [](char c) { return !std::isxdigit(c); }))
Asn1Codec.cpp:_ZZNK4pcpp21Asn1OctetStringRecord11decodeValueEPKhENK3$_0clEc:
  724|  2.62M|		m_IsPrintable = std::all_of(value, value + m_ValueLength, [](char c) { return isprint(0xff & c); });

_ZNK4pcpp8BgpLayer12getHeaderLenEv:
   17|  1.18M|	{
   18|  1.18M|		if (m_DataLen < sizeof(bgp_common_header))
  ------------------
  |  Branch (18:7): [True: 0, False: 1.18M]
  ------------------
   19|      0|		{
   20|      0|			return m_DataLen;
   21|      0|		}
   22|       |
   23|  1.18M|		uint16_t messageLen = be16toh(getBasicHeader()->length);
   24|  1.18M|		if (m_DataLen < messageLen)
  ------------------
  |  Branch (24:7): [True: 112k, False: 1.06M]
  ------------------
   25|   112k|		{
   26|   112k|			return m_DataLen;
   27|   112k|		}
   28|       |
   29|  1.06M|		return (size_t)messageLen;
   30|  1.18M|	}
_ZN4pcpp8BgpLayer13parseBgpLayerEPhmPNS_5LayerEPNS_6PacketE:
   33|   177k|	{
   34|   177k|		if (data == nullptr || dataLen < sizeof(bgp_common_header))
  ------------------
  |  Branch (34:7): [True: 0, False: 177k]
  |  Branch (34:26): [True: 9.61k, False: 168k]
  ------------------
   35|  9.61k|			return nullptr;
   36|       |
   37|   168k|		auto* bgpHeader = reinterpret_cast<bgp_common_header*>(data);
   38|       |
   39|       |		// illegal header data - length is too small
   40|   168k|		uint16_t messageLen = be16toh(bgpHeader->length);
   41|   168k|		if (dataLen < messageLen || messageLen < static_cast<uint16_t>(sizeof(bgp_common_header)))
  ------------------
  |  Branch (41:7): [True: 7.99k, False: 160k]
  |  Branch (41:31): [True: 2.23k, False: 158k]
  ------------------
   42|  10.2k|			return nullptr;
   43|       |
   44|   158k|		switch (bgpHeader->messageType)
   45|   158k|		{
   46|  22.5k|		case 1:  // OPEN
  ------------------
  |  Branch (46:3): [True: 22.5k, False: 135k]
  ------------------
   47|  22.5k|			return BgpOpenMessageLayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (47:11): [True: 22.5k, False: 0]
  ------------------
   48|  22.5k|			           ? new BgpOpenMessageLayer(data, dataLen, prevLayer, packet)
   49|  22.5k|			           : nullptr;
   50|   124k|		case 2:  // UPDATE
  ------------------
  |  Branch (50:3): [True: 124k, False: 33.2k]
  ------------------
   51|   124k|			return BgpUpdateMessageLayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (51:11): [True: 122k, False: 1.95k]
  ------------------
   52|   124k|			           ? new BgpUpdateMessageLayer(data, dataLen, prevLayer, packet)
   53|   124k|			           : nullptr;
   54|  3.97k|		case 3:  // NOTIFICATION
  ------------------
  |  Branch (54:3): [True: 3.97k, False: 154k]
  ------------------
   55|  3.97k|			return new BgpNotificationMessageLayer(data, dataLen, prevLayer, packet);
   56|  3.71k|		case 4:  // KEEPALIVE
  ------------------
  |  Branch (56:3): [True: 3.71k, False: 154k]
  ------------------
   57|  3.71k|			return new BgpKeepaliveMessageLayer(data, dataLen, prevLayer, packet);
   58|  2.68k|		case 5:  // ROUTE-REFRESH
  ------------------
  |  Branch (58:3): [True: 2.68k, False: 155k]
  ------------------
   59|  2.68k|			return new BgpRouteRefreshMessageLayer(data, dataLen, prevLayer, packet);
   60|    258|		default:
  ------------------
  |  Branch (60:3): [True: 258, False: 157k]
  ------------------
   61|    258|			return nullptr;
   62|   158k|		}
   63|   158k|	}
_ZNK4pcpp8BgpLayer22getMessageTypeAsStringEv:
   66|  52.1k|	{
   67|  52.1k|		switch (getBgpMessageType())
   68|  52.1k|		{
   69|  9.52k|		case BgpLayer::Open:
  ------------------
  |  Branch (69:3): [True: 9.52k, False: 42.6k]
  ------------------
   70|  9.52k|			return "OPEN";
   71|  36.7k|		case BgpLayer::Update:
  ------------------
  |  Branch (71:3): [True: 36.7k, False: 15.3k]
  ------------------
   72|  36.7k|			return "UPDATE";
   73|  2.01k|		case BgpLayer::Notification:
  ------------------
  |  Branch (73:3): [True: 2.01k, False: 50.1k]
  ------------------
   74|  2.01k|			return "NOTIFICATION";
   75|  2.22k|		case BgpLayer::Keepalive:
  ------------------
  |  Branch (75:3): [True: 2.22k, False: 49.9k]
  ------------------
   76|  2.22k|			return "KEEPALIVE";
   77|  1.60k|		case BgpLayer::RouteRefresh:
  ------------------
  |  Branch (77:3): [True: 1.60k, False: 50.5k]
  ------------------
   78|  1.60k|			return "ROUTE-REFRESH";
   79|      0|		default:
  ------------------
  |  Branch (79:3): [True: 0, False: 52.1k]
  ------------------
   80|      0|			return "Unknown";
   81|  52.1k|		}
   82|  52.1k|	}
_ZN4pcpp8BgpLayer14parseNextLayerEv:
   85|   155k|	{
   86|   155k|		size_t headerLen = getHeaderLen();
   87|   155k|		if (m_DataLen <= headerLen || headerLen == 0)
  ------------------
  |  Branch (87:7): [True: 25.2k, False: 130k]
  |  Branch (87:33): [True: 0, False: 130k]
  ------------------
   88|  25.2k|			return;
   89|       |
   90|   130k|		uint8_t* payload = m_Data + headerLen;
   91|   130k|		size_t payloadLen = m_DataLen - headerLen;
   92|       |
   93|   130k|		constructNextLayerFromFactory(BgpLayer::parseBgpLayer, payload, payloadLen);
   94|   130k|	}
_ZNK4pcpp8BgpLayer8toStringEv:
   97|  34.7k|	{
   98|  34.7k|		return "BGP Layer, " + getMessageTypeAsString() + " message";
   99|  34.7k|	}
_ZN4pcpp8BgpLayer22computeCalculateFieldsEv:
  102|  17.3k|	{
  103|  17.3k|		bgp_common_header* bgpHeader = getBasicHeader();
  104|  17.3k|		memset(bgpHeader->marker, 0xff, 16 * sizeof(uint8_t));
  105|  17.3k|		bgpHeader->messageType = (uint8_t)getBgpMessageType();
  106|       |		bgpHeader->length = htobe16(getHeaderLen());
  107|  17.3k|	}
_ZN4pcpp8BgpLayer11extendLayerEim:
  125|  42.9k|	{
  126|  42.9k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (126:7): [True: 42.9k, False: 0]
  ------------------
  127|  42.9k|		{
  128|  42.9k|			int rawPacketLen = getAttachedPacket()->getRawPacket()->getRawDataLen();
  129|  42.9k|			const uint8_t* rawPacketPtr = getAttachedPacket()->getRawPacket()->getRawData();
  130|       |
  131|  42.9k|			if (m_Data - rawPacketPtr + static_cast<ptrdiff_t>(offsetInLayer) > static_cast<ptrdiff_t>(rawPacketLen))
  ------------------
  |  Branch (131:8): [True: 4.43k, False: 38.5k]
  ------------------
  132|  4.43k|			{
  133|  4.43k|				PCPP_LOG_ERROR("Requested offset is larger than total packet length");
  ------------------
  |  |  443|  4.43k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  4.43k|	do                                                                                                                 \
  |  |  |  |  413|  4.43k|	{                                                                                                                  \
  |  |  |  |  414|  4.43k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  4.43k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.43k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 4.43k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  4.43k|		{                                                                                                              \
  |  |  |  |  417|  4.43k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  4.43k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.43k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  4.43k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  4.43k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  4.43k|		}                                                                                                              \
  |  |  |  |  422|  4.43k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 4.43k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  134|  4.43k|				return false;
  135|  4.43k|			}
  136|       |
  137|  38.5k|			if (m_NextLayer != nullptr && static_cast<ptrdiff_t>(offsetInLayer) > m_NextLayer->getData() - m_Data)
  ------------------
  |  Branch (137:8): [True: 34.0k, False: 4.53k]
  |  Branch (137:34): [True: 3.79k, False: 30.2k]
  ------------------
  138|  3.79k|			{
  139|  3.79k|				PCPP_LOG_ERROR("Requested offset exceeds current layer's boundary");
  ------------------
  |  |  443|  3.79k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  3.79k|	do                                                                                                                 \
  |  |  |  |  413|  3.79k|	{                                                                                                                  \
  |  |  |  |  414|  3.79k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.79k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.79k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 3.79k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.79k|		{                                                                                                              \
  |  |  |  |  417|  3.79k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  3.79k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.79k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  3.79k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  3.79k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  3.79k|		}                                                                                                              \
  |  |  |  |  422|  3.79k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.79k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  140|  3.79k|				return false;
  141|  3.79k|			}
  142|  38.5k|		}
  143|       |
  144|  34.7k|		return Layer::extendLayer(offsetInLayer, numOfBytesToExtend);
  145|  42.9k|	}
_ZN4pcpp8BgpLayer12shortenLayerEim:
  148|  44.4k|	{
  149|  44.4k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (149:7): [True: 44.4k, False: 0]
  ------------------
  150|  44.4k|		{
  151|  44.4k|			int rawPacketLen = getAttachedPacket()->getRawPacket()->getRawDataLen();
  152|  44.4k|			const uint8_t* rawPacketPtr = getAttachedPacket()->getRawPacket()->getRawData();
  153|       |
  154|  44.4k|			if (m_Data - rawPacketPtr + static_cast<ptrdiff_t>(offsetInLayer) +
  ------------------
  |  Branch (154:8): [True: 5.58k, False: 38.8k]
  ------------------
  155|  44.4k|			        static_cast<ptrdiff_t>(numOfBytesToShorten) >
  156|  44.4k|			    static_cast<ptrdiff_t>(rawPacketLen))
  157|  5.58k|			{
  158|  5.58k|				PCPP_LOG_ERROR("Requested number of bytes to shorten is larger than total packet length");
  ------------------
  |  |  443|  5.58k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  5.58k|	do                                                                                                                 \
  |  |  |  |  413|  5.58k|	{                                                                                                                  \
  |  |  |  |  414|  5.58k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  5.58k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.58k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 5.58k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  5.58k|		{                                                                                                              \
  |  |  |  |  417|  5.58k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  5.58k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.58k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  5.58k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  5.58k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  5.58k|		}                                                                                                              \
  |  |  |  |  422|  5.58k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 5.58k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  159|  5.58k|				return false;
  160|  5.58k|			}
  161|       |
  162|  38.8k|			if (m_NextLayer != nullptr &&
  ------------------
  |  Branch (162:8): [True: 32.3k, False: 6.55k]
  ------------------
  163|  32.3k|			    static_cast<ptrdiff_t>(offsetInLayer) + static_cast<ptrdiff_t>(numOfBytesToShorten) >
  ------------------
  |  Branch (163:8): [True: 1.62k, False: 30.7k]
  ------------------
  164|  32.3k|			        m_NextLayer->getData() - m_Data)
  165|  1.62k|			{
  166|  1.62k|				PCPP_LOG_ERROR("Requested number of bytes to shorten exceeds current layer's boundary");
  ------------------
  |  |  443|  1.62k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  1.62k|	do                                                                                                                 \
  |  |  |  |  413|  1.62k|	{                                                                                                                  \
  |  |  |  |  414|  1.62k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.62k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.62k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.62k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.62k|		{                                                                                                              \
  |  |  |  |  417|  1.62k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.62k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.62k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.62k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.62k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.62k|		}                                                                                                              \
  |  |  |  |  422|  1.62k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.62k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  167|  1.62k|				return false;
  168|  1.62k|			}
  169|  38.8k|		}
  170|       |
  171|  37.2k|		return Layer::shortenLayer(offsetInLayer, numOfBytesToShorten);
  172|  44.4k|	}
_ZN4pcpp19BgpOpenMessageLayer18optional_parameterC2EhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  179|  15.8k|	{
  180|  15.8k|		type = typeVal;
  181|  15.8k|		length = hexStringToByteArray(valueAsHexString, value, 32);
  182|  15.8k|	}
_ZN4pcpp19BgpOpenMessageLayer11isDataValidEPKhm:
  185|  22.5k|	{
  186|  22.5k|		if (data == nullptr || dataSize < sizeof(bgp_common_header))
  ------------------
  |  Branch (186:7): [True: 0, False: 22.5k]
  |  Branch (186:26): [True: 0, False: 22.5k]
  ------------------
  187|      0|		{
  188|      0|			return false;
  189|      0|		}
  190|       |
  191|  22.5k|		const auto* bgpHeader = reinterpret_cast<const bgp_common_header*>(data);
  192|  22.5k|		uint16_t messageLen = be16toh(bgpHeader->length);
  193|  22.5k|		return messageLen >= sizeof(bgp_open_message) && dataSize >= messageLen;
  ------------------
  |  Branch (193:10): [True: 22.5k, False: 0]
  |  Branch (193:52): [True: 22.5k, False: 0]
  ------------------
  194|  22.5k|	}
_ZN4pcpp19BgpOpenMessageLayer25optionalParamsToByteArrayERKNSt3__16vectorINS0_18optional_parameterENS1_9allocatorIS3_EEEEPhm:
  222|  9.52k|	{
  223|  9.52k|		if (resultByteArr == nullptr || maxByteArrSize == 0)
  ------------------
  |  Branch (223:7): [True: 0, False: 9.52k]
  |  Branch (223:35): [True: 0, False: 9.52k]
  ------------------
  224|      0|		{
  225|      0|			return 0;
  226|      0|		}
  227|       |
  228|  9.52k|		size_t dataLen = 0;
  229|       |
  230|  9.52k|		for (const auto& param : optionalParams)
  ------------------
  |  Branch (230:26): [True: 43.4k, False: 9.52k]
  ------------------
  231|  43.4k|		{
  232|  43.4k|			if (param.length > 32)
  ------------------
  |  Branch (232:8): [True: 0, False: 43.4k]
  ------------------
  233|      0|			{
  234|      0|				PCPP_LOG_ERROR("Illegal optional parameter length " << (int)param.length
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  235|      0|				                                                    << ", must be 32 bytes or less");
  236|      0|				break;  // illegal value
  237|      0|			}
  238|       |
  239|  43.4k|			size_t curDataSize = 2 * sizeof(uint8_t) + (size_t)param.length;
  240|       |
  241|  43.4k|			if (dataLen + curDataSize > maxByteArrSize)
  ------------------
  |  Branch (241:8): [True: 0, False: 43.4k]
  ------------------
  242|      0|			{
  243|      0|				break;
  244|      0|			}
  245|       |
  246|  43.4k|			resultByteArr[0] = param.type;
  247|  43.4k|			resultByteArr[1] = param.length;
  248|  43.4k|			if (param.length > 0)
  ------------------
  |  Branch (248:8): [True: 37.3k, False: 6.11k]
  ------------------
  249|  37.3k|			{
  250|  37.3k|				memcpy(resultByteArr + 2 * sizeof(uint8_t), param.value, param.length);
  251|  37.3k|			}
  252|       |
  253|  43.4k|			dataLen += curDataSize;
  254|  43.4k|			resultByteArr += curDataSize;
  255|  43.4k|		}
  256|       |
  257|  9.52k|		return dataLen;
  258|  9.52k|	}
_ZN4pcpp19BgpOpenMessageLayer21getOptionalParametersERNSt3__16vectorINS0_18optional_parameterENS1_9allocatorIS3_EEEE:
  272|  3.17k|	{
  273|  3.17k|		size_t headerLen = getHeaderLen();
  274|  3.17k|		bgp_open_message* msgHdr = getOpenMsgHeader();
  275|       |
  276|       |		// Parentheses around std::min avoid clashes with platform min macros (for example on Windows)
  277|  3.17k|		size_t optionalParamsLen =
  278|  3.17k|		    (std::min)(static_cast<size_t>(msgHdr->optionalParameterLength), headerLen - sizeof(bgp_open_message));
  279|       |
  280|  3.17k|		uint8_t* dataPtr = m_Data + sizeof(bgp_open_message);
  281|  3.17k|		size_t byteCount = 0;
  282|  16.9k|		while (byteCount < optionalParamsLen)
  ------------------
  |  Branch (282:10): [True: 16.1k, False: 791]
  ------------------
  283|  16.1k|		{
  284|  16.1k|			size_t remaining = optionalParamsLen - byteCount;
  285|  16.1k|			constexpr size_t optParamHdrSize = sizeof(optional_parameter::type) + sizeof(optional_parameter::length);
  286|  16.1k|			if (remaining < optParamHdrSize)
  ------------------
  |  Branch (286:8): [True: 373, False: 15.8k]
  ------------------
  287|    373|			{
  288|    373|				PCPP_LOG_ERROR("Truncated optional parameter header");
  ------------------
  |  |  443|    373|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    373|	do                                                                                                                 \
  |  |  |  |  413|    373|	{                                                                                                                  \
  |  |  |  |  414|    373|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    373|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    373|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 373, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    373|		{                                                                                                              \
  |  |  |  |  417|    373|			auto ctx =                                                                                                 \
  |  |  |  |  418|    373|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    373|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    373|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    373|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    373|		}                                                                                                              \
  |  |  |  |  422|    373|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 373]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  289|    373|				break;
  290|    373|			}
  291|       |
  292|  15.8k|			optional_parameter op;
  293|  15.8k|			op.type = dataPtr[0];
  294|  15.8k|			op.length = dataPtr[1];
  295|       |
  296|  15.8k|			size_t totalLen = optParamHdrSize + static_cast<size_t>(op.length);
  297|  15.8k|			if (totalLen > remaining)
  ------------------
  |  Branch (297:8): [True: 2.01k, False: 13.7k]
  ------------------
  298|  2.01k|			{
  299|  2.01k|				PCPP_LOG_ERROR("Optional parameter length is out of bounds: " << static_cast<int>(op.length));
  ------------------
  |  |  443|  2.01k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  2.01k|	do                                                                                                                 \
  |  |  |  |  413|  2.01k|	{                                                                                                                  \
  |  |  |  |  414|  2.01k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.01k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.01k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 2.01k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.01k|		{                                                                                                              \
  |  |  |  |  417|  2.01k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  2.01k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.01k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  2.01k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  2.01k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  2.01k|		}                                                                                                              \
  |  |  |  |  422|  2.01k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.01k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  300|  2.01k|				break;
  301|  2.01k|			}
  302|       |
  303|  13.7k|			if (op.length > 0)
  ------------------
  |  Branch (303:8): [True: 10.7k, False: 3.05k]
  ------------------
  304|  10.7k|			{
  305|  10.7k|				memcpy(op.value, dataPtr + optParamHdrSize,
  306|  10.7k|				       (std::min)(static_cast<size_t>(op.length), sizeof(op.value)));
  307|  10.7k|			}
  308|       |
  309|  13.7k|			optionalParameters.push_back(op);
  310|       |
  311|  13.7k|			byteCount += totalLen;
  312|  13.7k|			dataPtr += totalLen;
  313|  13.7k|		}
  314|  3.17k|	}
_ZN4pcpp19BgpOpenMessageLayer27getOptionalParametersLengthEv:
  317|  9.52k|	{
  318|  9.52k|		size_t headerLen = getHeaderLen();
  319|  9.52k|		bgp_open_message* msgHdr = getOpenMsgHeader();
  320|  9.52k|		auto optParamLen = static_cast<size_t>(msgHdr->optionalParameterLength);
  321|       |
  322|  9.52k|		constexpr size_t bgpOpenMsgHeaderSize = sizeof(bgp_open_message);
  323|  9.52k|		if (headerLen < optParamLen + bgpOpenMsgHeaderSize)
  ------------------
  |  Branch (323:7): [True: 920, False: 8.60k]
  ------------------
  324|    920|		{
  325|    920|			PCPP_LOG_WARN("BGP Layer optional param length exceeds total BGP message. "
  ------------------
  |  |  431|    920|#	define PCPP_LOG_WARN(message) PCPP_LOG(pcpp::LogLevel::Warn, message)
  |  |  ------------------
  |  |  |  |  412|    920|	do                                                                                                                 \
  |  |  |  |  413|    920|	{                                                                                                                  \
  |  |  |  |  414|    920|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    920|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    920|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 920, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    920|		{                                                                                                              \
  |  |  |  |  417|    920|			auto ctx =                                                                                                 \
  |  |  |  |  418|    920|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    920|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    920|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    920|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    920|		}                                                                                                              \
  |  |  |  |  422|    920|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 920]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  326|    920|			              "This packet might be malformed! Trimming to maximum allowed by BGP message length.");
  327|    920|			optParamLen = headerLen >= bgpOpenMsgHeaderSize ? headerLen - bgpOpenMsgHeaderSize : 0;
  ------------------
  |  Branch (327:18): [True: 890, False: 30]
  ------------------
  328|    920|		}
  329|       |
  330|  9.52k|		return optParamLen;
  331|  9.52k|	}
_ZN4pcpp19BgpOpenMessageLayer21setOptionalParametersERKNSt3__16vectorINS0_18optional_parameterENS1_9allocatorIS3_EEEE:
  334|  9.52k|	{
  335|  9.52k|		uint8_t newOptionalParamsData[1500];
  336|  9.52k|		size_t newOptionalParamsDataLen = optionalParamsToByteArray(optionalParameters, newOptionalParamsData, 1500);
  337|  9.52k|		size_t curOptionalParamsDataLen = getOptionalParametersLength();
  338|  9.52k|		constexpr int offsetInLayer = sizeof(bgp_open_message);
  339|       |
  340|  9.52k|		if (newOptionalParamsDataLen > curOptionalParamsDataLen)
  ------------------
  |  Branch (340:7): [True: 3.17k, False: 6.35k]
  ------------------
  341|  3.17k|		{
  342|  3.17k|			size_t numOfBytesToExtend = newOptionalParamsDataLen - curOptionalParamsDataLen;
  343|       |
  344|  3.17k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (344:8): [True: 111, False: 3.05k]
  ------------------
  345|    111|			{
  346|    111|				PCPP_LOG_ERROR("Couldn't extend BGP open layer to include the additional optional parameters");
  ------------------
  |  |  443|    111|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    111|	do                                                                                                                 \
  |  |  |  |  413|    111|	{                                                                                                                  \
  |  |  |  |  414|    111|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    111|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    111|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 111, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    111|		{                                                                                                              \
  |  |  |  |  417|    111|			auto ctx =                                                                                                 \
  |  |  |  |  418|    111|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    111|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    111|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    111|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    111|		}                                                                                                              \
  |  |  |  |  422|    111|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 111]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  347|    111|				return false;
  348|    111|			}
  349|  3.17k|		}
  350|  6.35k|		else if (newOptionalParamsDataLen < curOptionalParamsDataLen)
  ------------------
  |  Branch (350:12): [True: 5.04k, False: 1.30k]
  ------------------
  351|  5.04k|		{
  352|  5.04k|			size_t numOfBytesToShorten = curOptionalParamsDataLen - newOptionalParamsDataLen;
  353|       |
  354|  5.04k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (354:8): [True: 910, False: 4.13k]
  ------------------
  355|    910|			{
  356|    910|				PCPP_LOG_ERROR("Couldn't shorten BGP open layer to set the right size of the optional parameters data");
  ------------------
  |  |  443|    910|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    910|	do                                                                                                                 \
  |  |  |  |  413|    910|	{                                                                                                                  \
  |  |  |  |  414|    910|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    910|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    910|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 910, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    910|		{                                                                                                              \
  |  |  |  |  417|    910|			auto ctx =                                                                                                 \
  |  |  |  |  418|    910|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    910|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    910|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    910|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    910|		}                                                                                                              \
  |  |  |  |  422|    910|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 910]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  357|    910|				return false;
  358|    910|			}
  359|  5.04k|		}
  360|       |
  361|  8.50k|		if (newOptionalParamsDataLen > 0)
  ------------------
  |  Branch (361:7): [True: 4.49k, False: 4.00k]
  ------------------
  362|  4.49k|		{
  363|  4.49k|			memcpy(m_Data + offsetInLayer, newOptionalParamsData, newOptionalParamsDataLen);
  364|  4.49k|		}
  365|       |
  366|  8.50k|		getOpenMsgHeader()->optionalParameterLength = static_cast<uint8_t>(newOptionalParamsDataLen);
  367|  8.50k|		getOpenMsgHeader()->length = htobe16(sizeof(bgp_open_message) + newOptionalParamsDataLen);
  368|       |
  369|  8.50k|		return true;
  370|  9.52k|	}
_ZN4pcpp19BgpOpenMessageLayer23clearOptionalParametersEv:
  373|  3.17k|	{
  374|  3.17k|		return setOptionalParameters(std::vector<optional_parameter>());
  375|  3.17k|	}
_ZN4pcpp21BgpUpdateMessageLayer14path_attributeC2EhhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  383|  36.7k|	{
  384|  36.7k|		flags = flagsVal;
  385|  36.7k|		type = typeVal;
  386|  36.7k|		length = hexStringToByteArray(dataAsHexString, data, 32);
  387|  36.7k|	}
_ZN4pcpp21BgpUpdateMessageLayer20parsePrefixAndIPDataEPhmRNSt3__16vectorINS0_13prefix_and_ipENS2_9allocatorIS4_EEEE:
  438|  9.19k|	{
  439|  9.19k|		size_t byteCount = 0;
  440|  19.6k|		while (byteCount < dataLen)
  ------------------
  |  Branch (440:10): [True: 13.3k, False: 6.23k]
  ------------------
  441|  13.3k|		{
  442|  13.3k|			prefix_and_ip wr;
  443|  13.3k|			wr.prefix = dataPtr[0];
  444|  13.3k|			size_t curByteCount = 1;
  445|  13.3k|			if (wr.prefix == 32)
  ------------------
  |  Branch (445:8): [True: 5.22k, False: 8.16k]
  ------------------
  446|  5.22k|			{
  447|  5.22k|				uint8_t octets[4] = { dataPtr[1], dataPtr[2], dataPtr[3], dataPtr[4] };
  448|  5.22k|				wr.ipAddr = IPv4Address(octets);
  449|  5.22k|				curByteCount += 4;
  450|  5.22k|			}
  451|  8.16k|			else if (wr.prefix == 24)
  ------------------
  |  Branch (451:13): [True: 5.19k, False: 2.97k]
  ------------------
  452|  5.19k|			{
  453|  5.19k|				uint8_t octets[4] = { dataPtr[1], dataPtr[2], dataPtr[3], 0 };
  454|  5.19k|				wr.ipAddr = IPv4Address(octets);
  455|  5.19k|				curByteCount += 3;
  456|  5.19k|			}
  457|  2.97k|			else if (wr.prefix == 16)
  ------------------
  |  Branch (457:13): [True: 18, False: 2.96k]
  ------------------
  458|     18|			{
  459|     18|				uint8_t octets[4] = { dataPtr[1], dataPtr[2], 0, 0 };
  460|     18|				wr.ipAddr = IPv4Address(octets);
  461|     18|				curByteCount += 2;
  462|     18|			}
  463|  2.96k|			else if (wr.prefix == 8)
  ------------------
  |  Branch (463:13): [True: 0, False: 2.96k]
  ------------------
  464|      0|			{
  465|      0|				uint8_t octets[4] = { dataPtr[1], 0, 0, 0 };
  466|      0|				wr.ipAddr = IPv4Address(octets);
  467|      0|				curByteCount += 1;
  468|      0|			}
  469|  2.96k|			else
  470|  2.96k|			{
  471|  2.96k|				PCPP_LOG_DEBUG("Illegal prefix value " << (int)wr.prefix);
  ------------------
  |  |  425|  2.96k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  2.96k|	do                                                                                                                 \
  |  |  |  |  413|  2.96k|	{                                                                                                                  \
  |  |  |  |  414|  2.96k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.96k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.96k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 2.96k]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.96k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  2.96k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.96k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  472|  2.96k|				break;  // illegal value
  473|  2.96k|			}
  474|       |
  475|  10.4k|			result.push_back(wr);
  476|  10.4k|			dataPtr += curByteCount;
  477|  10.4k|			byteCount += curByteCount;
  478|  10.4k|		}
  479|  9.19k|	}
_ZN4pcpp21BgpUpdateMessageLayer26prefixAndIPDataToByteArrayERKNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEEPhm:
  483|  73.5k|	{
  484|  73.5k|		if (resultByteArr == nullptr || maxByteArrSize == 0)
  ------------------
  |  Branch (484:7): [True: 0, False: 73.5k]
  |  Branch (484:35): [True: 0, False: 73.5k]
  ------------------
  485|      0|		{
  486|      0|			return 0;
  487|      0|		}
  488|       |
  489|  73.5k|		size_t dataLen = 0;
  490|       |
  491|  73.5k|		for (const auto& prefixAndIp : prefixAndIpData)
  ------------------
  |  Branch (491:32): [True: 82.1k, False: 73.5k]
  ------------------
  492|  82.1k|		{
  493|  82.1k|			uint8_t curData[5];
  494|  82.1k|			curData[0] = prefixAndIp.prefix;
  495|  82.1k|			size_t curDataSize = 1;
  496|  82.1k|			const uint8_t* octets = prefixAndIp.ipAddr.toBytes();
  497|  82.1k|			if (prefixAndIp.prefix == 32)
  ------------------
  |  Branch (497:8): [True: 10.4k, False: 71.7k]
  ------------------
  498|  10.4k|			{
  499|  10.4k|				curDataSize += 4;
  500|  10.4k|				curData[1] = octets[0];
  501|  10.4k|				curData[2] = octets[1];
  502|  10.4k|				curData[3] = octets[2];
  503|  10.4k|				curData[4] = octets[3];
  504|  10.4k|			}
  505|  71.7k|			else if (prefixAndIp.prefix == 24)
  ------------------
  |  Branch (505:13): [True: 59.4k, False: 12.2k]
  ------------------
  506|  59.4k|			{
  507|  59.4k|				curDataSize += 3;
  508|  59.4k|				curData[1] = octets[0];
  509|  59.4k|				curData[2] = octets[1];
  510|  59.4k|				curData[3] = octets[2];
  511|  59.4k|			}
  512|  12.2k|			else if (prefixAndIp.prefix == 16)
  ------------------
  |  Branch (512:13): [True: 12.2k, False: 0]
  ------------------
  513|  12.2k|			{
  514|  12.2k|				curDataSize += 2;
  515|  12.2k|				curData[1] = octets[0];
  516|  12.2k|				curData[2] = octets[1];
  517|  12.2k|			}
  518|      0|			else if (prefixAndIp.prefix == 8)
  ------------------
  |  Branch (518:13): [True: 0, False: 0]
  ------------------
  519|      0|			{
  520|      0|				curDataSize += 1;
  521|      0|				curData[1] = octets[0];
  522|      0|			}
  523|      0|			else
  524|      0|			{
  525|      0|				PCPP_LOG_ERROR("Illegal prefix value " << (int)prefixAndIp.prefix);
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  526|      0|				break;  // illegal value
  527|      0|			}
  528|       |
  529|  82.1k|			if (dataLen + curDataSize > maxByteArrSize)
  ------------------
  |  Branch (529:8): [True: 0, False: 82.1k]
  ------------------
  530|      0|			{
  531|      0|				break;
  532|      0|			}
  533|       |
  534|  82.1k|			dataLen += curDataSize;
  535|       |
  536|  82.1k|			memcpy(resultByteArr, curData, curDataSize);
  537|  82.1k|			resultByteArr += curDataSize;
  538|  82.1k|		}
  539|       |
  540|  73.5k|		return dataLen;
  541|  73.5k|	}
_ZN4pcpp21BgpUpdateMessageLayer25pathAttributesToByteArrayERKNSt3__16vectorINS0_14path_attributeENS1_9allocatorIS3_EEEEPhm:
  545|  36.7k|	{
  546|  36.7k|		if (resultByteArr == nullptr || maxByteArrSize == 0)
  ------------------
  |  Branch (546:7): [True: 0, False: 36.7k]
  |  Branch (546:35): [True: 0, False: 36.7k]
  ------------------
  547|      0|		{
  548|      0|			return 0;
  549|      0|		}
  550|       |
  551|  36.7k|		size_t dataLen = 0;
  552|       |
  553|  36.7k|		for (const auto& attribute : pathAttributes)
  ------------------
  |  Branch (553:30): [True: 75.8k, False: 20.6k]
  ------------------
  554|  75.8k|		{
  555|  75.8k|			if (attribute.length > 32)
  ------------------
  |  Branch (555:8): [True: 16.1k, False: 59.6k]
  ------------------
  556|  16.1k|			{
  557|  16.1k|				PCPP_LOG_ERROR("Illegal path attribute length " << (int)attribute.length);
  ------------------
  |  |  443|  16.1k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  16.1k|	do                                                                                                                 \
  |  |  |  |  413|  16.1k|	{                                                                                                                  \
  |  |  |  |  414|  16.1k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  16.1k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.1k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 16.1k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  16.1k|		{                                                                                                              \
  |  |  |  |  417|  16.1k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  16.1k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.1k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  16.1k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  16.1k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  16.1k|		}                                                                                                              \
  |  |  |  |  422|  16.1k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 16.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  558|  16.1k|				break;  // illegal value
  559|  16.1k|			}
  560|       |
  561|  59.6k|			size_t curDataSize = 3 * sizeof(uint8_t) + (size_t)attribute.length;
  562|       |
  563|  59.6k|			if (dataLen + curDataSize > maxByteArrSize)
  ------------------
  |  Branch (563:8): [True: 0, False: 59.6k]
  ------------------
  564|      0|			{
  565|      0|				break;
  566|      0|			}
  567|       |
  568|  59.6k|			resultByteArr[0] = attribute.flags;
  569|  59.6k|			resultByteArr[1] = attribute.type;
  570|  59.6k|			resultByteArr[2] = attribute.length;
  571|  59.6k|			if (attribute.length > 0)
  ------------------
  |  Branch (571:8): [True: 43.4k, False: 16.2k]
  ------------------
  572|  43.4k|			{
  573|  43.4k|				memcpy(resultByteArr + 3 * sizeof(uint8_t), attribute.data, attribute.length);
  574|  43.4k|			}
  575|       |
  576|  59.6k|			dataLen += curDataSize;
  577|  59.6k|			resultByteArr += curDataSize;
  578|  59.6k|		}
  579|       |
  580|  36.7k|		return dataLen;
  581|  36.7k|	}
_ZNK4pcpp21BgpUpdateMessageLayer24getWithdrawnRoutesLengthEv:
  584|   305k|	{
  585|   305k|		size_t headerLen = getHeaderLen();
  586|   305k|		size_t minLen = sizeof(bgp_common_header) + sizeof(uint16_t);
  587|   305k|		if (headerLen >= minLen)
  ------------------
  |  Branch (587:7): [True: 291k, False: 13.9k]
  ------------------
  588|   291k|		{
  589|   291k|			uint16_t res = be16toh(*(uint16_t*)(m_Data + sizeof(bgp_common_header)));
  590|   291k|			if ((size_t)res > headerLen - minLen)
  ------------------
  |  Branch (590:8): [True: 46.4k, False: 245k]
  ------------------
  591|  46.4k|			{
  592|  46.4k|				return headerLen - minLen;
  593|  46.4k|			}
  594|       |
  595|   245k|			return (size_t)res;
  596|   291k|		}
  597|       |
  598|  13.9k|		return 0;
  599|   305k|	}
_ZN4pcpp21BgpUpdateMessageLayer18getWithdrawnRoutesERNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  602|  12.2k|	{
  603|  12.2k|		size_t withdrawnRouteLen = getWithdrawnRoutesLength();
  604|  12.2k|		if (withdrawnRouteLen == 0)
  ------------------
  |  Branch (604:7): [True: 10.4k, False: 1.79k]
  ------------------
  605|  10.4k|		{
  606|  10.4k|			return;
  607|  10.4k|		}
  608|       |
  609|  1.79k|		uint8_t* dataPtr = m_Data + sizeof(bgp_common_header) + sizeof(uint16_t);
  610|  1.79k|		parsePrefixAndIPData(dataPtr, withdrawnRouteLen, withdrawnRoutes);
  611|  1.79k|	}
_ZNK4pcpp21BgpUpdateMessageLayer23getPathAttributesLengthEv:
  614|   135k|	{
  615|   135k|		size_t headerLen = getHeaderLen();
  616|   135k|		size_t minLen = sizeof(bgp_common_header) + 2 * sizeof(uint16_t);
  617|   135k|		if (headerLen >= minLen)
  ------------------
  |  Branch (617:7): [True: 124k, False: 10.9k]
  ------------------
  618|   124k|		{
  619|   124k|			size_t withdrawnRouteLen = getWithdrawnRoutesLength();
  620|       |			// Ensure the memory access is within bounds
  621|   124k|			if (sizeof(bgp_common_header) + sizeof(uint16_t) + withdrawnRouteLen + sizeof(uint16_t) > headerLen)
  ------------------
  |  Branch (621:8): [True: 20.6k, False: 104k]
  ------------------
  622|  20.6k|			{
  623|  20.6k|				return 0;  // Invalid access, return 0
  624|  20.6k|			}
  625|   104k|			uint16_t res =
  626|   104k|			    be16toh(*(uint16_t*)(m_Data + sizeof(bgp_common_header) + sizeof(uint16_t) + withdrawnRouteLen));
  627|   104k|			if ((size_t)res > headerLen - minLen - withdrawnRouteLen)
  ------------------
  |  Branch (627:8): [True: 9.55k, False: 94.7k]
  ------------------
  628|  9.55k|			{
  629|  9.55k|				return headerLen - minLen - withdrawnRouteLen;
  630|  9.55k|			}
  631|       |
  632|  94.7k|			return (size_t)res;
  633|   104k|		}
  634|       |
  635|  10.9k|		return 0;
  636|   135k|	}
_ZN4pcpp21BgpUpdateMessageLayer18setWithdrawnRoutesERKNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  639|  36.7k|	{
  640|  36.7k|		uint8_t newWithdrawnRoutesData[1500];
  641|  36.7k|		size_t newWithdrawnRoutesDataLen = prefixAndIPDataToByteArray(withdrawnRoutes, newWithdrawnRoutesData, 1500);
  642|  36.7k|		size_t curWithdrawnRoutesDataLen = getWithdrawnRoutesLength();
  643|  36.7k|		int offsetInLayer = sizeof(bgp_common_header) + sizeof(uint16_t);
  644|       |
  645|  36.7k|		if (newWithdrawnRoutesDataLen > curWithdrawnRoutesDataLen)
  ------------------
  |  Branch (645:7): [True: 10.7k, False: 26.0k]
  ------------------
  646|  10.7k|		{
  647|  10.7k|			size_t numOfBytesToExtend = newWithdrawnRoutesDataLen - curWithdrawnRoutesDataLen;
  648|       |
  649|  10.7k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (649:8): [True: 2.57k, False: 8.18k]
  ------------------
  650|  2.57k|			{
  651|  2.57k|				PCPP_LOG_ERROR("Couldn't extend BGP update layer to include the additional withdrawn routes");
  ------------------
  |  |  443|  2.57k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  2.57k|	do                                                                                                                 \
  |  |  |  |  413|  2.57k|	{                                                                                                                  \
  |  |  |  |  414|  2.57k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.57k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.57k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 2.57k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.57k|		{                                                                                                              \
  |  |  |  |  417|  2.57k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  2.57k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.57k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  2.57k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  2.57k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  2.57k|		}                                                                                                              \
  |  |  |  |  422|  2.57k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.57k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  652|  2.57k|				return false;
  653|  2.57k|			}
  654|  10.7k|		}
  655|  26.0k|		else if (newWithdrawnRoutesDataLen < curWithdrawnRoutesDataLen)
  ------------------
  |  Branch (655:12): [True: 13.5k, False: 12.4k]
  ------------------
  656|  13.5k|		{
  657|  13.5k|			size_t numOfBytesToShorten = curWithdrawnRoutesDataLen - newWithdrawnRoutesDataLen;
  658|       |
  659|  13.5k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (659:8): [True: 5.30k, False: 8.28k]
  ------------------
  660|  5.30k|			{
  661|  5.30k|				PCPP_LOG_ERROR("Couldn't shorten BGP update layer to set the right size of the withdrawn routes data");
  ------------------
  |  |  443|  5.30k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  5.30k|	do                                                                                                                 \
  |  |  |  |  413|  5.30k|	{                                                                                                                  \
  |  |  |  |  414|  5.30k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  5.30k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.30k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 5.30k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  5.30k|		{                                                                                                              \
  |  |  |  |  417|  5.30k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  5.30k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.30k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  5.30k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  5.30k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  5.30k|		}                                                                                                              \
  |  |  |  |  422|  5.30k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 5.30k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  662|  5.30k|				return false;
  663|  5.30k|			}
  664|  13.5k|		}
  665|       |
  666|  28.8k|		if (newWithdrawnRoutesDataLen > 0)
  ------------------
  |  Branch (666:7): [True: 8.29k, False: 20.6k]
  ------------------
  667|  8.29k|		{
  668|  8.29k|			memcpy(m_Data + offsetInLayer, newWithdrawnRoutesData, newWithdrawnRoutesDataLen);
  669|  8.29k|		}
  670|       |
  671|  28.8k|		getBasicHeader()->length =
  672|  28.8k|		    htobe16(be16toh(getBasicHeader()->length) + newWithdrawnRoutesDataLen - curWithdrawnRoutesDataLen);
  673|       |
  674|  28.8k|		uint16_t newWithdrawnRoutesDataLenBE = htobe16(newWithdrawnRoutesDataLen);
  675|  28.8k|		memcpy(m_Data + sizeof(bgp_common_header), &newWithdrawnRoutesDataLenBE, sizeof(uint16_t));
  676|       |
  677|  28.8k|		return true;
  678|  36.7k|	}
_ZN4pcpp21BgpUpdateMessageLayer20clearWithdrawnRoutesEv:
  681|  12.2k|	{
  682|  12.2k|		return setWithdrawnRoutes(std::vector<prefix_and_ip>());
  683|  12.2k|	}
_ZN4pcpp21BgpUpdateMessageLayer17getPathAttributesERNSt3__16vectorINS0_14path_attributeENS1_9allocatorIS3_EEEE:
  686|  12.2k|	{
  687|  12.2k|		size_t pathAttrLen = getPathAttributesLength();
  688|  12.2k|		if (pathAttrLen == 0)
  ------------------
  |  Branch (688:7): [True: 4.04k, False: 8.21k]
  ------------------
  689|  4.04k|		{
  690|  4.04k|			return;
  691|  4.04k|		}
  692|       |
  693|  8.21k|		uint8_t* dataPtr = m_Data + sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + getWithdrawnRoutesLength();
  694|  8.21k|		size_t byteCount = 0;
  695|  40.1k|		while (byteCount < pathAttrLen)
  ------------------
  |  Branch (695:10): [True: 31.9k, False: 8.21k]
  ------------------
  696|  31.9k|		{
  697|  31.9k|			path_attribute pa;
  698|  31.9k|			pa.flags = dataPtr[0];
  699|  31.9k|			pa.type = dataPtr[1];
  700|  31.9k|			pa.length = dataPtr[2];
  701|  31.9k|			size_t curByteCount = 3 + pa.length;
  702|  31.9k|			if (pa.length > 0)
  ------------------
  |  Branch (702:8): [True: 23.6k, False: 8.21k]
  ------------------
  703|  23.6k|			{
  704|  23.6k|				size_t dataLenToCopy = (pa.length <= 32 ? pa.length : 32);
  ------------------
  |  Branch (704:29): [True: 15.5k, False: 8.17k]
  ------------------
  705|  23.6k|				memcpy(pa.data, dataPtr + 3, dataLenToCopy);
  706|  23.6k|			}
  707|       |
  708|  31.9k|			pathAttributes.push_back(pa);
  709|  31.9k|			dataPtr += curByteCount;
  710|  31.9k|			byteCount += curByteCount;
  711|  31.9k|		}
  712|  8.21k|	}
_ZN4pcpp21BgpUpdateMessageLayer17setPathAttributesERKNSt3__16vectorINS0_14path_attributeENS1_9allocatorIS3_EEEE:
  715|  36.7k|	{
  716|  36.7k|		uint8_t newPathAttributesData[1500];
  717|  36.7k|		size_t newPathAttributesDataLen = pathAttributesToByteArray(pathAttributes, newPathAttributesData, 1500);
  718|  36.7k|		size_t curPathAttributesDataLen = getPathAttributesLength();
  719|  36.7k|		size_t curWithdrawnRoutesDataLen = getWithdrawnRoutesLength();
  720|  36.7k|		int offsetInLayer = sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + curWithdrawnRoutesDataLen;
  721|       |
  722|  36.7k|		if (newPathAttributesDataLen > curPathAttributesDataLen)
  ------------------
  |  Branch (722:7): [True: 11.5k, False: 25.2k]
  ------------------
  723|  11.5k|		{
  724|  11.5k|			size_t numOfBytesToExtend = newPathAttributesDataLen - curPathAttributesDataLen;
  725|       |
  726|  11.5k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (726:8): [True: 3.51k, False: 8.01k]
  ------------------
  727|  3.51k|			{
  728|  3.51k|				PCPP_LOG_ERROR("Couldn't extend BGP update layer to include the additional path attributes");
  ------------------
  |  |  443|  3.51k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  3.51k|	do                                                                                                                 \
  |  |  |  |  413|  3.51k|	{                                                                                                                  \
  |  |  |  |  414|  3.51k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.51k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.51k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 3.51k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.51k|		{                                                                                                              \
  |  |  |  |  417|  3.51k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  3.51k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.51k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  3.51k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  3.51k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  3.51k|		}                                                                                                              \
  |  |  |  |  422|  3.51k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.51k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  729|  3.51k|				return false;
  730|  3.51k|			}
  731|  11.5k|		}
  732|  25.2k|		else if (newPathAttributesDataLen < curPathAttributesDataLen)
  ------------------
  |  Branch (732:12): [True: 16.9k, False: 8.29k]
  ------------------
  733|  16.9k|		{
  734|  16.9k|			size_t numOfBytesToShorten = curPathAttributesDataLen - newPathAttributesDataLen;
  735|       |
  736|  16.9k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (736:8): [True: 1.65k, False: 15.3k]
  ------------------
  737|  1.65k|			{
  738|  1.65k|				PCPP_LOG_ERROR("Couldn't shorten BGP update layer to set the right size of the path attributes data");
  ------------------
  |  |  443|  1.65k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  1.65k|	do                                                                                                                 \
  |  |  |  |  413|  1.65k|	{                                                                                                                  \
  |  |  |  |  414|  1.65k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.65k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.65k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.65k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.65k|		{                                                                                                              \
  |  |  |  |  417|  1.65k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.65k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.65k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.65k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.65k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.65k|		}                                                                                                              \
  |  |  |  |  422|  1.65k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.65k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  739|  1.65k|				return false;
  740|  1.65k|			}
  741|  16.9k|		}
  742|       |
  743|  31.6k|		if (newPathAttributesDataLen > 0)
  ------------------
  |  Branch (743:7): [True: 15.2k, False: 16.3k]
  ------------------
  744|  15.2k|		{
  745|  15.2k|			memcpy(m_Data + offsetInLayer, newPathAttributesData, newPathAttributesDataLen);
  746|  15.2k|		}
  747|       |
  748|  31.6k|		getBasicHeader()->length =
  749|  31.6k|		    htobe16(be16toh(getBasicHeader()->length) + newPathAttributesDataLen - curPathAttributesDataLen);
  750|       |
  751|  31.6k|		uint16_t newWithdrawnRoutesDataLenBE = htobe16(newPathAttributesDataLen);
  752|  31.6k|		memcpy(m_Data + sizeof(bgp_common_header) + sizeof(uint16_t) + curWithdrawnRoutesDataLen,
  753|  31.6k|		       &newWithdrawnRoutesDataLenBE, sizeof(uint16_t));
  754|       |
  755|  31.6k|		return true;
  756|  36.7k|	}
_ZN4pcpp21BgpUpdateMessageLayer19clearPathAttributesEv:
  759|  12.2k|	{
  760|  12.2k|		return setPathAttributes(std::vector<path_attribute>());
  761|  12.2k|	}
_ZNK4pcpp21BgpUpdateMessageLayer37getNetworkLayerReachabilityInfoLengthEv:
  764|  49.0k|	{
  765|  49.0k|		size_t headerLen = getHeaderLen();
  766|  49.0k|		size_t minLen = sizeof(bgp_common_header) + 2 * sizeof(uint16_t);
  767|  49.0k|		if (headerLen >= minLen)
  ------------------
  |  Branch (767:7): [True: 42.5k, False: 6.43k]
  ------------------
  768|  42.5k|		{
  769|  42.5k|			size_t withdrawnRouteLen = getWithdrawnRoutesLength();
  770|  42.5k|			size_t pathAttrLen = getPathAttributesLength();
  771|  42.5k|			int nlriSize = headerLen - minLen - withdrawnRouteLen - pathAttrLen;
  772|  42.5k|			if (nlriSize >= 0)
  ------------------
  |  Branch (772:8): [True: 35.1k, False: 7.41k]
  ------------------
  773|  35.1k|			{
  774|  35.1k|				return (size_t)nlriSize;
  775|  35.1k|			}
  776|       |
  777|  7.41k|			return 0;
  778|  42.5k|		}
  779|       |
  780|  6.43k|		return 0;
  781|  49.0k|	}
_ZN4pcpp21BgpUpdateMessageLayer31getNetworkLayerReachabilityInfoERNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  784|  12.2k|	{
  785|  12.2k|		size_t nlriSize = getNetworkLayerReachabilityInfoLength();
  786|  12.2k|		if (nlriSize == 0)
  ------------------
  |  Branch (786:7): [True: 4.85k, False: 7.39k]
  ------------------
  787|  4.85k|		{
  788|  4.85k|			return;
  789|  4.85k|		}
  790|       |
  791|  7.39k|		uint8_t* dataPtr = m_Data + sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + getWithdrawnRoutesLength() +
  792|  7.39k|		                   getPathAttributesLength();
  793|  7.39k|		parsePrefixAndIPData(dataPtr, nlriSize, nlri);
  794|  7.39k|	}
_ZN4pcpp21BgpUpdateMessageLayer11isDataValidEPKhm:
  797|   124k|	{
  798|   124k|		if (dataSize < sizeof(bgp_common_header) + 2 * sizeof(uint16_t))
  ------------------
  |  Branch (798:7): [True: 10, False: 124k]
  ------------------
  799|     10|			return false;
  800|       |
  801|   124k|		uint16_t withdrLen = be16toh(*(uint16_t*)(data + sizeof(bgp_common_header)));
  802|   124k|		if (dataSize < sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + withdrLen)
  ------------------
  |  Branch (802:7): [True: 1.04k, False: 123k]
  ------------------
  803|  1.04k|			return false;
  804|       |
  805|   123k|		uint16_t attrLen = be16toh(*(uint16_t*)(data + sizeof(bgp_common_header) + sizeof(uint16_t) + withdrLen));
  806|   123k|		if (dataSize < sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + withdrLen + attrLen)
  ------------------
  |  Branch (806:7): [True: 903, False: 122k]
  ------------------
  807|    903|			return false;
  808|       |
  809|   122k|		return true;
  810|   123k|	}
_ZN4pcpp21BgpUpdateMessageLayer31setNetworkLayerReachabilityInfoERKNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  813|  36.7k|	{
  814|  36.7k|		uint8_t newNlriData[1500];
  815|  36.7k|		size_t newNlriDataLen = prefixAndIPDataToByteArray(nlri, newNlriData, 1500);
  816|  36.7k|		size_t curNlriDataLen = getNetworkLayerReachabilityInfoLength();
  817|  36.7k|		size_t curPathAttributesDataLen = getPathAttributesLength();
  818|  36.7k|		size_t curWithdrawnRoutesDataLen = getWithdrawnRoutesLength();
  819|  36.7k|		int offsetInLayer =
  820|  36.7k|		    sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + curWithdrawnRoutesDataLen + curPathAttributesDataLen;
  821|       |
  822|  36.7k|		if (newNlriDataLen > curNlriDataLen)
  ------------------
  |  Branch (822:7): [True: 17.5k, False: 19.2k]
  ------------------
  823|  17.5k|		{
  824|  17.5k|			size_t numOfBytesToExtend = newNlriDataLen - curNlriDataLen;
  825|       |
  826|  17.5k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (826:8): [True: 3.92k, False: 13.6k]
  ------------------
  827|  3.92k|			{
  828|  3.92k|				PCPP_LOG_ERROR("Couldn't extend BGP update layer to include the additional NLRI data");
  ------------------
  |  |  443|  3.92k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  3.92k|	do                                                                                                                 \
  |  |  |  |  413|  3.92k|	{                                                                                                                  \
  |  |  |  |  414|  3.92k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.92k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.92k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 3.92k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.92k|		{                                                                                                              \
  |  |  |  |  417|  3.92k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  3.92k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.92k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  3.92k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  3.92k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  3.92k|		}                                                                                                              \
  |  |  |  |  422|  3.92k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.92k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  829|  3.92k|				return false;
  830|  3.92k|			}
  831|  17.5k|		}
  832|  19.2k|		else if (newNlriDataLen < curNlriDataLen)
  ------------------
  |  Branch (832:12): [True: 8.89k, False: 10.3k]
  ------------------
  833|  8.89k|		{
  834|  8.89k|			size_t numOfBytesToShorten = curNlriDataLen - newNlriDataLen;
  835|       |
  836|  8.89k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (836:8): [True: 410, False: 8.48k]
  ------------------
  837|    410|			{
  838|    410|				PCPP_LOG_ERROR("Couldn't shorten BGP update layer to set the right size of the NLRI data");
  ------------------
  |  |  443|    410|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    410|	do                                                                                                                 \
  |  |  |  |  413|    410|	{                                                                                                                  \
  |  |  |  |  414|    410|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    410|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    410|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 410, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    410|		{                                                                                                              \
  |  |  |  |  417|    410|			auto ctx =                                                                                                 \
  |  |  |  |  418|    410|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    410|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    410|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    410|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    410|		}                                                                                                              \
  |  |  |  |  422|    410|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 410]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  839|    410|				return false;
  840|    410|			}
  841|  8.89k|		}
  842|       |
  843|  32.4k|		if (newNlriDataLen > 0)
  ------------------
  |  Branch (843:7): [True: 14.5k, False: 17.8k]
  ------------------
  844|  14.5k|		{
  845|  14.5k|			memcpy(m_Data + offsetInLayer, newNlriData, newNlriDataLen);
  846|  14.5k|		}
  847|       |
  848|  32.4k|		getBasicHeader()->length = htobe16(be16toh(getBasicHeader()->length) + newNlriDataLen - curNlriDataLen);
  849|       |
  850|  32.4k|		return true;
  851|  36.7k|	}
_ZN4pcpp21BgpUpdateMessageLayer33clearNetworkLayerReachabilityInfoEv:
  854|  12.2k|	{
  855|  12.2k|		return setNetworkLayerReachabilityInfo(std::vector<prefix_and_ip>());
  856|  12.2k|	}
_ZNK4pcpp27BgpNotificationMessageLayer22getNotificationDataLenEv:
  900|    900|	{
  901|    900|		size_t headerLen = getHeaderLen();
  902|    900|		if (headerLen > sizeof(bgp_notification_message))
  ------------------
  |  Branch (902:7): [True: 460, False: 440]
  ------------------
  903|    460|		{
  904|    460|			return headerLen - sizeof(bgp_notification_message);
  905|    460|		}
  906|       |
  907|    440|		return 0;
  908|    900|	}
_ZNK4pcpp27BgpNotificationMessageLayer19getNotificationDataEv:
  911|    670|	{
  912|    670|		if (getNotificationDataLen() > 0)
  ------------------
  |  Branch (912:7): [True: 230, False: 440]
  ------------------
  913|    230|		{
  914|    230|			return m_Data + sizeof(bgp_notification_message);
  915|    230|		}
  916|       |
  917|    440|		return nullptr;
  918|    670|	}
_ZNK4pcpp27BgpNotificationMessageLayer30getNotificationDataAsHexStringEv:
  921|    670|	{
  922|    670|		uint8_t* notificationData = getNotificationData();
  923|    670|		if (notificationData == nullptr)
  ------------------
  |  Branch (923:7): [True: 440, False: 230]
  ------------------
  924|    440|		{
  925|    440|			return "";
  926|    440|		}
  927|       |
  928|    230|		return byteArrayToHexString(notificationData, getNotificationDataLen());
  929|    670|	}

_ZN4pcpp14CiscoHdlcLayer22computeCalculateFieldsEv:
   26|    109|	{
   27|    109|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (27:7): [True: 109, False: 0]
  ------------------
   28|    109|		{
   29|    109|			switch (m_NextLayer->getProtocol())
  ------------------
  |  Branch (29:12): [True: 0, False: 109]
  ------------------
   30|    109|			{
   31|      0|			case IPv4:
  ------------------
  |  Branch (31:4): [True: 0, False: 109]
  ------------------
   32|      0|			{
   33|      0|				setNextProtocol(CISCO_HDLC_TYPE_IP);
  ------------------
  |  |   13|      0|#define CISCO_HDLC_TYPE_IP 0x0800
  ------------------
   34|      0|				break;
   35|      0|			}
   36|      0|			case IPv6:
  ------------------
  |  Branch (36:4): [True: 0, False: 109]
  ------------------
   37|      0|			{
   38|      0|				setNextProtocol(CISCO_HDLC_TYPE_IPV6);
  ------------------
  |  |   14|      0|#define CISCO_HDLC_TYPE_IPV6 0x86DD
  ------------------
   39|      0|				break;
   40|      0|			}
   41|    109|			}
   42|    109|		}
   43|    109|	}
_ZN4pcpp14CiscoHdlcLayer14parseNextLayerEv:
   46|    327|	{
   47|    327|		auto payload = m_Data + sizeof(cisco_hdlc_header);
   48|    327|		auto payloadLen = m_DataLen - sizeof(cisco_hdlc_header);
   49|       |
   50|    327|		auto nextProtocol = be16toh(getCiscoHdlcHeader()->protocol);
   51|       |
   52|    327|		switch (nextProtocol)
   53|    327|		{
   54|      0|		case CISCO_HDLC_TYPE_IP:
  ------------------
  |  |   13|      0|#define CISCO_HDLC_TYPE_IP 0x0800
  ------------------
  |  Branch (54:3): [True: 0, False: 327]
  ------------------
   55|      0|		{
   56|      0|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   57|      0|			break;
   58|      0|		}
   59|      0|		case CISCO_HDLC_TYPE_IPV6:
  ------------------
  |  |   14|      0|#define CISCO_HDLC_TYPE_IPV6 0x86DD
  ------------------
  |  Branch (59:3): [True: 0, False: 327]
  ------------------
   60|      0|		{
   61|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   62|      0|			break;
   63|      0|		}
   64|    327|		default:
  ------------------
  |  Branch (64:3): [True: 327, False: 0]
  ------------------
   65|    327|		{
   66|    327|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   67|    327|			break;
   68|      0|		}
   69|    327|		}
   70|    327|	}
_ZNK4pcpp14CiscoHdlcLayer8toStringEv:
   73|    218|	{
   74|    218|		return "Cisco HDLC Layer";
   75|    218|	}

_ZNK4pcpp9CotpLayer8toStringEv:
   22|  5.67k|	{
   23|  5.67k|		return "Cotp Layer";
   24|  5.67k|	}
_ZN4pcpp9CotpLayer11isDataValidEPKhm:
   57|  21.9k|	{
   58|  21.9k|		if (!data || dataSize < sizeof(cotphdr))
  ------------------
  |  Branch (58:7): [True: 0, False: 21.9k]
  |  Branch (58:16): [True: 0, False: 21.9k]
  ------------------
   59|      0|			return false;
   60|       |
   61|  21.9k|		return data[1] == 0xf0 && data[0] == 2;
  ------------------
  |  Branch (61:10): [True: 20.2k, False: 1.74k]
  |  Branch (61:29): [True: 20.1k, False: 49]
  ------------------
   62|  21.9k|	}
_ZN4pcpp9CotpLayer14parseNextLayerEv:
   65|  20.1k|	{
   66|  20.1k|		size_t headerLen = getHeaderLen();
   67|  20.1k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (67:7): [True: 5.64k, False: 14.5k]
  ------------------
   68|  5.64k|			return;
   69|       |
   70|  14.5k|		uint8_t* payload = m_Data + headerLen;
   71|  14.5k|		size_t payloadLen = m_DataLen - headerLen;
   72|       |
   73|  14.5k|		tryConstructNextLayerWithFallback<S7CommLayer, PayloadLayer>(payload, payloadLen);
   74|  14.5k|	}

_ZN4pcpp9DhcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   45|  13.9k|	    : Layer(data, dataLen, prevLayer, packet, DHCP)
   46|  13.9k|	{}
_ZNK4pcpp9DhcpLayer24getClientHardwareAddressEv:
   74|  2.78k|	{
   75|  2.78k|		dhcp_header* hdr = getDhcpHeader();
   76|  2.78k|		if (hdr != nullptr && hdr->hardwareType == 1 && hdr->hardwareAddressLength == 6)
  ------------------
  |  Branch (76:7): [True: 2.78k, False: 0]
  |  Branch (76:25): [True: 2.71k, False: 66]
  |  Branch (76:51): [True: 2.67k, False: 46]
  ------------------
   77|  2.67k|			return MacAddress(hdr->clientHardwareAddress);
   78|       |
   79|    112|		PCPP_LOG_DEBUG("Hardware type isn't Ethernet or hardware addr len != 6, returning MacAddress:Zero");
  ------------------
  |  |  425|    112|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    112|	do                                                                                                                 \
  |  |  |  |  413|    112|	{                                                                                                                  \
  |  |  |  |  414|    112|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    112|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    112|#define LOG_MODULE PacketLogModuleDhcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 112]
  |  |  |  |  ------------------
  |  |  |  |  416|    112|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDhcpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|    112|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 112]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   80|       |
   81|    112|		return MacAddress::Zero;
   82|  2.78k|	}
_ZN4pcpp9DhcpLayer22computeCalculateFieldsEv:
   93|  2.78k|	{
   94|  2.78k|		dhcp_header* hdr = getDhcpHeader();
   95|       |
   96|  2.78k|		hdr->magicNumber = DHCP_MAGIC_NUMBER;
  ------------------
  |  |    9|  2.78k|#define DHCP_MAGIC_NUMBER 0x63538263
  ------------------
   97|       |
   98|  2.78k|		DhcpMessageType msgType = getMessageType();
   99|  2.78k|		switch (msgType)
  100|  2.78k|		{
  101|     29|		case DHCP_DISCOVER:
  ------------------
  |  Branch (101:3): [True: 29, False: 2.75k]
  ------------------
  102|    692|		case DHCP_REQUEST:
  ------------------
  |  Branch (102:3): [True: 663, False: 2.11k]
  ------------------
  103|    895|		case DHCP_DECLINE:
  ------------------
  |  Branch (103:3): [True: 203, False: 2.57k]
  ------------------
  104|    897|		case DHCP_RELEASE:
  ------------------
  |  Branch (104:3): [True: 2, False: 2.78k]
  ------------------
  105|    908|		case DHCP_INFORM:
  ------------------
  |  Branch (105:3): [True: 11, False: 2.77k]
  ------------------
  106|  2.32k|		case DHCP_UNKNOWN_MSG_TYPE:
  ------------------
  |  Branch (106:3): [True: 1.41k, False: 1.36k]
  ------------------
  107|  2.32k|			hdr->opCode = DHCP_BOOTREQUEST;
  108|  2.32k|			break;
  109|      5|		case DHCP_OFFER:
  ------------------
  |  Branch (109:3): [True: 5, False: 2.77k]
  ------------------
  110|    447|		case DHCP_ACK:
  ------------------
  |  Branch (110:3): [True: 442, False: 2.34k]
  ------------------
  111|    447|		case DHCP_NAK:
  ------------------
  |  Branch (111:3): [True: 0, False: 2.78k]
  ------------------
  112|    447|			hdr->opCode = DHCP_BOOTREPLY;
  113|    447|			break;
  114|      8|		default:
  ------------------
  |  Branch (114:3): [True: 8, False: 2.77k]
  ------------------
  115|      8|			break;
  116|  2.78k|		}
  117|       |
  118|  2.78k|		hdr->hardwareType = 1;           // Ethernet
  119|  2.78k|		hdr->hardwareAddressLength = 6;  // MAC address length
  120|  2.78k|	}
_ZNK4pcpp9DhcpLayer8toStringEv:
  123|  5.56k|	{
  124|  5.56k|		std::string msgType = "Unknown";
  125|  5.56k|		switch (getMessageType())
  126|  5.56k|		{
  127|     58|		case DHCP_DISCOVER:
  ------------------
  |  Branch (127:3): [True: 58, False: 5.50k]
  ------------------
  128|     58|		{
  129|     58|			msgType = "Discover";
  130|     58|			break;
  131|      0|		}
  132|     10|		case DHCP_OFFER:
  ------------------
  |  Branch (132:3): [True: 10, False: 5.55k]
  ------------------
  133|     10|		{
  134|     10|			msgType = "Offer";
  135|     10|			break;
  136|      0|		}
  137|  1.32k|		case DHCP_REQUEST:
  ------------------
  |  Branch (137:3): [True: 1.32k, False: 4.23k]
  ------------------
  138|  1.32k|		{
  139|  1.32k|			msgType = "Request";
  140|  1.32k|			break;
  141|      0|		}
  142|    406|		case DHCP_DECLINE:
  ------------------
  |  Branch (142:3): [True: 406, False: 5.15k]
  ------------------
  143|    406|		{
  144|    406|			msgType = "Decline";
  145|    406|			break;
  146|      0|		}
  147|    884|		case DHCP_ACK:
  ------------------
  |  Branch (147:3): [True: 884, False: 4.68k]
  ------------------
  148|    884|		{
  149|    884|			msgType = "Acknowledge";
  150|    884|			break;
  151|      0|		}
  152|      0|		case DHCP_NAK:
  ------------------
  |  Branch (152:3): [True: 0, False: 5.56k]
  ------------------
  153|      0|		{
  154|      0|			msgType = "Negative Acknowledge";
  155|      0|			break;
  156|      0|		}
  157|      4|		case DHCP_RELEASE:
  ------------------
  |  Branch (157:3): [True: 4, False: 5.56k]
  ------------------
  158|      4|		{
  159|      4|			msgType = "Release";
  160|      4|			break;
  161|      0|		}
  162|     22|		case DHCP_INFORM:
  ------------------
  |  Branch (162:3): [True: 22, False: 5.54k]
  ------------------
  163|     22|		{
  164|     22|			msgType = "Inform";
  165|     22|			break;
  166|      0|		}
  167|  2.85k|		default:
  ------------------
  |  Branch (167:3): [True: 2.85k, False: 2.71k]
  ------------------
  168|  2.85k|			break;
  169|  5.56k|		}
  170|       |
  171|  5.56k|		return "DHCP layer (" + msgType + ")";
  172|  5.56k|	}
_ZNK4pcpp9DhcpLayer14getMessageTypeEv:
  175|  8.34k|	{
  176|  8.34k|		DhcpOption opt = getOptionData(DHCPOPT_DHCP_MESSAGE_TYPE);
  177|  8.34k|		if (opt.isNull())
  ------------------
  |  Branch (177:7): [True: 4.25k, False: 4.08k]
  ------------------
  178|  4.25k|			return DHCP_UNKNOWN_MSG_TYPE;
  179|       |
  180|  4.08k|		return (DhcpMessageType)opt.getValueAs<uint8_t>();
  181|  8.34k|	}
_ZNK4pcpp9DhcpLayer13getOptionDataENS_15DhcpOptionTypesE:
  201|  11.1k|	{
  202|  11.1k|		return m_OptionReader.getTLVRecord((uint8_t)option, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  203|  11.1k|	}
_ZNK4pcpp9DhcpLayer18getFirstOptionDataEv:
  206|  2.74k|	{
  207|  2.74k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  208|  2.74k|	}
_ZNK4pcpp9DhcpLayer17getNextOptionDataENS_10DhcpOptionE:
  211|  54.4k|	{
  212|  54.4k|		return m_OptionReader.getNextTLVRecord(dhcpOption, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  213|  54.4k|	}
_ZNK4pcpp9DhcpLayer15getOptionsCountEv:
  216|  59.9k|	{
  217|  59.9k|		return m_OptionReader.getTLVRecordCount(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  218|  59.9k|	}

_ZNK4pcpp12DhcpV6Option7getTypeEv:
   12|  9.80k|	{
   13|  9.80k|		if (m_Data == nullptr)
  ------------------
  |  Branch (13:7): [True: 0, False: 9.80k]
  ------------------
   14|      0|			return DhcpV6OptionType::DHCPV6_OPT_UNKNOWN;
   15|       |
   16|  9.80k|		uint16_t optionType = be16toh(m_Data->recordType);
   17|  9.80k|		if (optionType <= 62 && optionType != 10 && optionType != 35 && optionType != 57 && optionType != 58)
  ------------------
  |  Branch (17:7): [True: 7.42k, False: 2.38k]
  |  Branch (17:27): [True: 6.93k, False: 488]
  |  Branch (17:47): [True: 6.93k, False: 0]
  |  Branch (17:67): [True: 6.92k, False: 17]
  |  Branch (17:87): [True: 6.57k, False: 348]
  ------------------
   18|  6.57k|		{
   19|  6.57k|			return static_cast<DhcpV6OptionType>(optionType);
   20|  6.57k|		}
   21|  3.23k|		if (optionType == 65 || optionType == 66 || optionType == 68 || optionType == 79 || optionType == 112)
  ------------------
  |  Branch (21:7): [True: 1.09k, False: 2.14k]
  |  Branch (21:27): [True: 0, False: 2.14k]
  |  Branch (21:47): [True: 48, False: 2.09k]
  |  Branch (21:67): [True: 0, False: 2.09k]
  |  Branch (21:87): [True: 0, False: 2.09k]
  ------------------
   22|  1.14k|		{
   23|  1.14k|			return static_cast<DhcpV6OptionType>(optionType);
   24|  1.14k|		}
   25|       |
   26|  2.09k|		return DHCPV6_OPT_UNKNOWN;
   27|  3.23k|	}
_ZNK4pcpp12DhcpV6Option19getValueAsHexStringEv:
   30|  3.36k|	{
   31|  3.36k|		if (m_Data == nullptr)
  ------------------
  |  Branch (31:7): [True: 0, False: 3.36k]
  ------------------
   32|      0|			return "";
   33|       |
   34|  3.36k|		return byteArrayToHexString(m_Data->recordValue, getDataSize());
   35|  3.36k|	}
_ZNK4pcpp12DhcpV6Option12getTotalSizeEv:
   38|   109k|	{
   39|   109k|		if (m_Data == nullptr)
  ------------------
  |  Branch (39:7): [True: 0, False: 109k]
  ------------------
   40|      0|			return 0;
   41|       |
   42|   109k|		return 2 * sizeof(uint16_t) + be16toh(m_Data->recordLen);
   43|   109k|	}
_ZNK4pcpp12DhcpV6Option11getDataSizeEv:
   46|  3.36k|	{
   47|  3.36k|		if (m_Data == nullptr)
  ------------------
  |  Branch (47:7): [True: 0, False: 3.36k]
  ------------------
   48|      0|			return 0;
   49|       |
   50|  3.36k|		return static_cast<size_t>(be16toh(m_Data->recordLen));
   51|  3.36k|	}
_ZN4pcpp11DhcpV6LayerC2EPhmPNS_5LayerEPNS_6PacketE:
   71|  18.1k|	    : Layer(data, dataLen, prevLayer, packet, DHCPv6)
   72|  18.1k|	{}
_ZNK4pcpp11DhcpV6Layer14getMessageTypeEv:
   84|  6.96k|	{
   85|  6.96k|		uint8_t messageType = getDhcpHeader()->messageType;
   86|  6.96k|		if (messageType > 13)
  ------------------
  |  Branch (86:7): [True: 924, False: 6.04k]
  ------------------
   87|    924|		{
   88|    924|			return DHCPV6_UNKNOWN_MSG_TYPE;
   89|    924|		}
   90|       |
   91|  6.04k|		return static_cast<DhcpV6MessageType>(messageType);
   92|  6.96k|	}
_ZNK4pcpp11DhcpV6Layer22getMessageTypeAsStringEv:
   95|  6.96k|	{
   96|  6.96k|		DhcpV6MessageType messageType = getMessageType();
   97|  6.96k|		switch (messageType)
   98|  6.96k|		{
   99|     32|		case DHCPV6_SOLICIT:
  ------------------
  |  Branch (99:3): [True: 32, False: 6.93k]
  ------------------
  100|     32|			return "Solicit";
  101|      0|		case DHCPV6_ADVERTISE:
  ------------------
  |  Branch (101:3): [True: 0, False: 6.96k]
  ------------------
  102|      0|			return "Advertise";
  103|     76|		case DHCPV6_REQUEST:
  ------------------
  |  Branch (103:3): [True: 76, False: 6.88k]
  ------------------
  104|     76|			return "Request";
  105|      0|		case DHCPV6_CONFIRM:
  ------------------
  |  Branch (105:3): [True: 0, False: 6.96k]
  ------------------
  106|      0|			return "Confirm";
  107|    224|		case DHCPV6_RENEW:
  ------------------
  |  Branch (107:3): [True: 224, False: 6.74k]
  ------------------
  108|    224|			return "Renew";
  109|     32|		case DHCPV6_REBIND:
  ------------------
  |  Branch (109:3): [True: 32, False: 6.93k]
  ------------------
  110|     32|			return "Rebind";
  111|  1.02k|		case DHCPV6_REPLY:
  ------------------
  |  Branch (111:3): [True: 1.02k, False: 5.94k]
  ------------------
  112|  1.02k|			return "Reply";
  113|      0|		case DHCPV6_RELEASE:
  ------------------
  |  Branch (113:3): [True: 0, False: 6.96k]
  ------------------
  114|      0|			return "Release";
  115|      0|		case DHCPV6_DECLINE:
  ------------------
  |  Branch (115:3): [True: 0, False: 6.96k]
  ------------------
  116|      0|			return "Decline";
  117|    602|		case DHCPV6_RECONFIGURE:
  ------------------
  |  Branch (117:3): [True: 602, False: 6.36k]
  ------------------
  118|    602|			return "Reconfigure";
  119|  3.33k|		case DHCPV6_INFORMATION_REQUEST:
  ------------------
  |  Branch (119:3): [True: 3.33k, False: 3.63k]
  ------------------
  120|  3.33k|			return "Information-Request";
  121|      0|		case DHCPV6_RELAY_FORWARD:
  ------------------
  |  Branch (121:3): [True: 0, False: 6.96k]
  ------------------
  122|      0|			return "Relay-Forward";
  123|     32|		case DHCPV6_RELAY_REPLY:
  ------------------
  |  Branch (123:3): [True: 32, False: 6.93k]
  ------------------
  124|     32|			return "Relay-Reply";
  125|  1.61k|		default:
  ------------------
  |  Branch (125:3): [True: 1.61k, False: 5.35k]
  ------------------
  126|  1.61k|			return "Unknown";
  127|  6.96k|		}
  128|  6.96k|	}
_ZNK4pcpp11DhcpV6Layer16getTransactionIDEv:
  136|  3.48k|	{
  137|  3.48k|		dhcpv6_header* hdr = getDhcpHeader();
  138|  3.48k|		uint32_t result = hdr->transactionId1 << 16 | hdr->transactionId2 << 8 | hdr->transactionId3;
  139|  3.48k|		return result;
  140|  3.48k|	}
_ZNK4pcpp11DhcpV6Layer18getFirstOptionDataEv:
  151|  3.36k|	{
  152|  3.36k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcpv6_header));
  153|  3.36k|	}
_ZNK4pcpp11DhcpV6Layer17getNextOptionDataENS_12DhcpV6OptionE:
  156|  7.65k|	{
  157|  7.65k|		return m_OptionReader.getNextTLVRecord(dhcpv6Option, getOptionsBasePtr(),
  158|  7.65k|		                                       getHeaderLen() - sizeof(dhcpv6_header));
  159|  7.65k|	}
_ZNK4pcpp11DhcpV6Layer13getOptionDataENS_16DhcpV6OptionTypeE:
  162|  3.36k|	{
  163|  3.36k|		return m_OptionReader.getTLVRecord(static_cast<uint32_t>(option), getOptionsBasePtr(),
  164|  3.36k|		                                   getHeaderLen() - sizeof(dhcpv6_header));
  165|  3.36k|	}
_ZNK4pcpp11DhcpV6Layer14getOptionCountEv:
  168|  14.4k|	{
  169|  14.4k|		return m_OptionReader.getTLVRecordCount(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcpv6_header));
  170|  14.4k|	}
_ZNK4pcpp11DhcpV6Layer8toStringEv:
  268|  6.96k|	{
  269|  6.96k|		return "DHCPv6 Layer, " + getMessageTypeAsString() + " message";
  270|  6.96k|	}

_ZN4pcpp8DnsLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   16|  50.5k|	    : Layer(data, dataLen, prevLayer, packet)
   17|  50.5k|	{
   18|  50.5k|		init(0, true);
   19|  50.5k|	}
_ZN4pcpp8DnsLayerC2ERKS0_:
   26|  12.9k|	DnsLayer::DnsLayer(const DnsLayer& other) : Layer(other)
   27|  12.9k|	{
   28|  12.9k|		init(other.m_OffsetAdjustment, true);
   29|  12.9k|	}
_ZN4pcpp8DnsLayerC2EPhmPNS_5LayerEPNS_6PacketEm:
   32|  17.7k|	    : Layer(data, dataLen, prevLayer, packet)
   33|  17.7k|	{
   34|  17.7k|		init(offsetAdjustment, true);
   35|  17.7k|	}
_ZN4pcpp8DnsLayeraSERKS0_:
   43|  12.9k|	{
   44|  12.9k|		Layer::operator=(other);
   45|       |
   46|  12.9k|		IDnsResource* curResource = m_ResourceList;
   47|  36.6k|		while (curResource != nullptr)
  ------------------
  |  Branch (47:10): [True: 23.6k, False: 12.9k]
  ------------------
   48|  23.6k|		{
   49|  23.6k|			IDnsResource* temp = curResource->getNextResource();
   50|  23.6k|			delete curResource;
   51|  23.6k|			curResource = temp;
   52|  23.6k|		}
   53|       |
   54|  12.9k|		init(other.m_OffsetAdjustment, true);
   55|       |
   56|  12.9k|		return (*this);
   57|  12.9k|	}
_ZN4pcpp8DnsLayerD2Ev:
   60|  81.2k|	{
   61|  81.2k|		IDnsResource* curResource = m_ResourceList;
   62|   204k|		while (curResource != nullptr)
  ------------------
  |  Branch (62:10): [True: 123k, False: 81.2k]
  ------------------
   63|   123k|		{
   64|   123k|			IDnsResource* nextResource = curResource->getNextResource();
   65|   123k|			delete curResource;
   66|   123k|			curResource = nextResource;
   67|   123k|		}
   68|  81.2k|	}
_ZN4pcpp8DnsLayer4initEmb:
   71|  94.2k|	{
   72|  94.2k|		m_OffsetAdjustment = offsetAdjustment;
   73|  94.2k|		m_Protocol = DNS;
   74|  94.2k|		m_ResourceList = nullptr;
   75|       |
   76|  94.2k|		m_FirstQuery = nullptr;
   77|  94.2k|		m_FirstAnswer = nullptr;
   78|  94.2k|		m_FirstAuthority = nullptr;
   79|  94.2k|		m_FirstAdditional = nullptr;
   80|       |
   81|  94.2k|		if (callParseResource)
  ------------------
  |  Branch (81:7): [True: 94.2k, False: 0]
  ------------------
   82|  94.2k|			parseResources();
   83|  94.2k|	}
_ZN4pcpp8DnsLayer18getBasicHeaderSizeEv:
   95|   146k|	{
   96|   146k|		return sizeof(dnshdr) + m_OffsetAdjustment;
   97|   146k|	}
_ZNK4pcpp8DnsLayer12getDnsHeaderEv:
  100|   821k|	{
  101|   821k|		uint8_t* ptr = m_Data + m_OffsetAdjustment;
  102|   821k|		return reinterpret_cast<dnshdr*>(ptr);
  103|   821k|	}
_ZN4pcpp8DnsLayer11extendLayerEimPNS_12IDnsResourceE:
  106|  51.8k|	{
  107|  51.8k|		if (!Layer::extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (107:7): [True: 10.2k, False: 41.5k]
  ------------------
  108|  10.2k|			return false;
  109|       |
  110|  41.5k|		IDnsResource* curResource = resource->getNextResource();
  111|  54.1k|		while (curResource != nullptr)
  ------------------
  |  Branch (111:10): [True: 12.6k, False: 41.5k]
  ------------------
  112|  12.6k|		{
  113|  12.6k|			curResource->m_OffsetInLayer += numOfBytesToExtend;
  114|  12.6k|			curResource = curResource->getNextResource();
  115|  12.6k|		}
  116|  41.5k|		return true;
  117|  51.8k|	}
_ZN4pcpp8DnsLayer12shortenLayerEimPNS_12IDnsResourceE:
  120|  41.2k|	{
  121|  41.2k|		if (!Layer::shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (121:7): [True: 0, False: 41.2k]
  ------------------
  122|      0|			return false;
  123|       |
  124|  41.2k|		IDnsResource* curResource = resource->getNextResource();
  125|  53.9k|		while (curResource != nullptr)
  ------------------
  |  Branch (125:10): [True: 12.6k, False: 41.2k]
  ------------------
  126|  12.6k|		{
  127|  12.6k|			curResource->m_OffsetInLayer -= numOfBytesToShorten;
  128|  12.6k|			curResource = curResource->getNextResource();
  129|  12.6k|		}
  130|  41.2k|		return true;
  131|  41.2k|	}
_ZN4pcpp8DnsLayer14parseResourcesEv:
  134|  94.2k|	{
  135|  94.2k|		size_t offsetInPacket = getBasicHeaderSize();
  136|  94.2k|		IDnsResource* curResource = m_ResourceList;
  137|       |
  138|  94.2k|		uint16_t numOfQuestions = be16toh(getDnsHeader()->numberOfQuestions);
  139|  94.2k|		uint16_t numOfAnswers = be16toh(getDnsHeader()->numberOfAnswers);
  140|  94.2k|		uint16_t numOfAuthority = be16toh(getDnsHeader()->numberOfAuthority);
  141|  94.2k|		uint16_t numOfAdditional = be16toh(getDnsHeader()->numberOfAdditional);
  142|       |
  143|  94.2k|		uint32_t numOfOtherResources = numOfQuestions + numOfAnswers + numOfAuthority + numOfAdditional;
  144|       |
  145|  94.2k|		if (numOfOtherResources > 300)
  ------------------
  |  Branch (145:7): [True: 17.7k, False: 76.4k]
  ------------------
  146|  17.7k|		{
  147|  17.7k|			PCPP_LOG_ERROR(
  ------------------
  |  |  443|  17.7k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  17.7k|	do                                                                                                                 \
  |  |  |  |  413|  17.7k|	{                                                                                                                  \
  |  |  |  |  414|  17.7k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  17.7k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  17.7k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 17.7k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  17.7k|		{                                                                                                              \
  |  |  |  |  417|  17.7k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  17.7k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  17.7k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  17.7k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  17.7k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  17.7k|		}                                                                                                              \
  |  |  |  |  422|  17.7k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 17.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  148|  17.7k|			    "DNS layer contains more than 300 resources, probably a bad packet. Skipping parsing DNS resources");
  149|  17.7k|			return;
  150|  17.7k|		}
  151|       |
  152|   223k|		for (uint32_t i = 0; i < numOfOtherResources; i++)
  ------------------
  |  Branch (152:24): [True: 171k, False: 51.6k]
  ------------------
  153|   171k|		{
  154|   171k|			DnsResourceType resType;
  155|   171k|			if (numOfQuestions > 0)
  ------------------
  |  Branch (155:8): [True: 100k, False: 70.8k]
  ------------------
  156|   100k|			{
  157|   100k|				resType = DnsQueryType;
  158|   100k|				numOfQuestions--;
  159|   100k|			}
  160|  70.8k|			else if (numOfAnswers > 0)
  ------------------
  |  Branch (160:13): [True: 25.5k, False: 45.3k]
  ------------------
  161|  25.5k|			{
  162|  25.5k|				resType = DnsAnswerType;
  163|  25.5k|				numOfAnswers--;
  164|  25.5k|			}
  165|  45.3k|			else if (numOfAuthority > 0)
  ------------------
  |  Branch (165:13): [True: 28.3k, False: 16.9k]
  ------------------
  166|  28.3k|			{
  167|  28.3k|				resType = DnsAuthorityType;
  168|  28.3k|				numOfAuthority--;
  169|  28.3k|			}
  170|  16.9k|			else
  171|  16.9k|			{
  172|  16.9k|				resType = DnsAdditionalType;
  173|  16.9k|				numOfAdditional--;
  174|  16.9k|			}
  175|       |
  176|   171k|			DnsResource* newResource = nullptr;
  177|   171k|			DnsQuery* newQuery = nullptr;
  178|   171k|			IDnsResource* newGenResource = nullptr;
  179|   171k|			if (resType == DnsQueryType)
  ------------------
  |  Branch (179:8): [True: 100k, False: 70.8k]
  ------------------
  180|   100k|			{
  181|   100k|				newQuery = new DnsQuery(this, offsetInPacket);
  182|   100k|				newGenResource = newQuery;
  183|   100k|				offsetInPacket += newQuery->getSize();
  184|   100k|			}
  185|  70.8k|			else
  186|  70.8k|			{
  187|  70.8k|				newResource = new DnsResource(this, offsetInPacket, resType);
  188|  70.8k|				newGenResource = newResource;
  189|  70.8k|				offsetInPacket += newResource->getSize();
  190|  70.8k|			}
  191|       |
  192|   171k|			if (offsetInPacket > m_DataLen)
  ------------------
  |  Branch (192:8): [True: 24.8k, False: 146k]
  ------------------
  193|  24.8k|			{
  194|       |				// Parse packet failed, DNS resource is out of bounds. Probably a bad packet
  195|  24.8k|				delete newGenResource;
  196|  24.8k|				return;
  197|  24.8k|			}
  198|       |
  199|       |			// this resource is the first resource
  200|   146k|			if (m_ResourceList == nullptr)
  ------------------
  |  Branch (200:8): [True: 70.6k, False: 76.2k]
  ------------------
  201|  70.6k|			{
  202|  70.6k|				m_ResourceList = newGenResource;
  203|  70.6k|				curResource = m_ResourceList;
  204|  70.6k|			}
  205|  76.2k|			else
  206|  76.2k|			{
  207|  76.2k|				curResource->setNextResource(newGenResource);
  208|  76.2k|				curResource = curResource->getNextResource();
  209|  76.2k|			}
  210|       |
  211|   146k|			if (resType == DnsQueryType && m_FirstQuery == nullptr)
  ------------------
  |  Branch (211:8): [True: 94.0k, False: 52.8k]
  |  Branch (211:35): [True: 70.4k, False: 23.5k]
  ------------------
  212|  70.4k|				m_FirstQuery = newQuery;
  213|  76.4k|			else if (resType == DnsAnswerType && m_FirstAnswer == nullptr)
  ------------------
  |  Branch (213:13): [True: 20.9k, False: 55.5k]
  |  Branch (213:41): [True: 7.66k, False: 13.2k]
  ------------------
  214|  7.66k|				m_FirstAnswer = newResource;
  215|  68.7k|			else if (resType == DnsAuthorityType && m_FirstAuthority == nullptr)
  ------------------
  |  Branch (215:13): [True: 18.9k, False: 49.8k]
  |  Branch (215:44): [True: 10.6k, False: 8.35k]
  ------------------
  216|  10.6k|				m_FirstAuthority = newResource;
  217|  58.1k|			else if (resType == DnsAdditionalType && m_FirstAdditional == nullptr)
  ------------------
  |  Branch (217:13): [True: 12.9k, False: 45.1k]
  |  Branch (217:45): [True: 7.75k, False: 5.22k]
  ------------------
  218|  7.75k|				m_FirstAdditional = newResource;
  219|   146k|		}
  220|  76.4k|	}
_ZNK4pcpp8DnsLayer17getResourceByNameEPNS_12IDnsResourceEmRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEb:
  224|   103k|	{
  225|   103k|		size_t index = 0;
  226|   183k|		while (index < resourceCount)
  ------------------
  |  Branch (226:10): [True: 138k, False: 44.6k]
  ------------------
  227|   138k|		{
  228|   138k|			if (startFrom == nullptr)
  ------------------
  |  Branch (228:8): [True: 17.7k, False: 121k]
  ------------------
  229|  17.7k|				return nullptr;
  230|       |
  231|   121k|			std::string resourceName = startFrom->getName();
  232|   121k|			if (exactMatch && resourceName == name)
  ------------------
  |  Branch (232:8): [True: 60.5k, False: 60.5k]
  |  Branch (232:22): [True: 0, False: 60.5k]
  ------------------
  233|      0|				return startFrom;
  234|   121k|			else if (!exactMatch && resourceName.find(name) != std::string::npos)
  ------------------
  |  Branch (234:13): [True: 60.5k, False: 60.5k]
  |  Branch (234:28): [True: 41.2k, False: 19.2k]
  ------------------
  235|  41.2k|				return startFrom;
  236|       |
  237|  79.8k|			startFrom = startFrom->getNextResource();
  238|       |
  239|  79.8k|			index++;
  240|  79.8k|		}
  241|       |
  242|  44.6k|		return nullptr;
  243|   103k|	}
_ZNK4pcpp8DnsLayer8getQueryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  246|  25.9k|	{
  247|  25.9k|		uint16_t numOfQueries = be16toh(getDnsHeader()->numberOfQuestions);
  248|  25.9k|		IDnsResource* res = getResourceByName(m_FirstQuery, numOfQueries, name, exactMatch);
  249|  25.9k|		if (res != nullptr)
  ------------------
  |  Branch (249:7): [True: 10.3k, False: 15.5k]
  ------------------
  250|  10.3k|			return dynamic_cast<DnsQuery*>(res);
  251|  15.5k|		return nullptr;
  252|  25.9k|	}
_ZNK4pcpp8DnsLayer13getFirstQueryEv:
  255|  12.9k|	{
  256|  12.9k|		return m_FirstQuery;
  257|  12.9k|	}
_ZNK4pcpp8DnsLayer12getNextQueryEPNS_8DnsQueryE:
  260|  12.0k|	{
  261|  12.0k|		if (query == nullptr || query->getNextResource() == nullptr || query->getType() != DnsQueryType ||
  ------------------
  |  Branch (261:7): [True: 0, False: 12.0k]
  |  Branch (261:27): [True: 6.19k, False: 5.88k]
  |  Branch (261:66): [True: 0, False: 5.88k]
  ------------------
  262|  5.88k|		    query->getNextResource()->getType() != DnsQueryType)
  ------------------
  |  Branch (262:7): [True: 3.45k, False: 2.43k]
  ------------------
  263|  9.64k|			return nullptr;
  264|       |
  265|  2.43k|		return (DnsQuery*)(query->getNextResource());
  266|  12.0k|	}
_ZNK4pcpp8DnsLayer13getQueryCountEv:
  269|  46.6k|	{
  270|       |		return be16toh(getDnsHeader()->numberOfQuestions);
  271|  46.6k|	}
_ZNK4pcpp8DnsLayer9getAnswerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  274|  25.9k|	{
  275|  25.9k|		uint16_t numOfAnswers = be16toh(getDnsHeader()->numberOfAnswers);
  276|  25.9k|		IDnsResource* res = getResourceByName(m_FirstAnswer, numOfAnswers, name, exactMatch);
  277|  25.9k|		if (res != nullptr)
  ------------------
  |  Branch (277:7): [True: 10.2k, False: 15.6k]
  ------------------
  278|  10.2k|			return dynamic_cast<DnsResource*>(res);
  279|  15.6k|		return nullptr;
  280|  25.9k|	}
_ZNK4pcpp8DnsLayer14getFirstAnswerEv:
  283|  12.9k|	{
  284|  12.9k|		return m_FirstAnswer;
  285|  12.9k|	}
_ZNK4pcpp8DnsLayer13getNextAnswerEPNS_11DnsResourceE:
  288|  3.05k|	{
  289|  3.05k|		if (answer == nullptr || answer->getNextResource() == nullptr || answer->getType() != DnsAnswerType ||
  ------------------
  |  Branch (289:7): [True: 0, False: 3.05k]
  |  Branch (289:28): [True: 1.07k, False: 1.98k]
  |  Branch (289:68): [True: 0, False: 1.98k]
  ------------------
  290|  1.98k|		    answer->getNextResource()->getType() != DnsAnswerType)
  ------------------
  |  Branch (290:7): [True: 76, False: 1.90k]
  ------------------
  291|  1.15k|			return nullptr;
  292|       |
  293|  1.90k|		return (DnsResource*)(answer->getNextResource());
  294|  3.05k|	}
_ZNK4pcpp8DnsLayer14getAnswerCountEv:
  297|  46.5k|	{
  298|       |		return be16toh(getDnsHeader()->numberOfAnswers);
  299|  46.5k|	}
_ZNK4pcpp8DnsLayer12getAuthorityERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  302|  25.9k|	{
  303|  25.9k|		uint16_t numOfAuthorities = be16toh(getDnsHeader()->numberOfAuthority);
  304|  25.9k|		IDnsResource* res = getResourceByName(m_FirstAuthority, numOfAuthorities, name, exactMatch);
  305|  25.9k|		if (res != nullptr)
  ------------------
  |  Branch (305:7): [True: 10.3k, False: 15.6k]
  ------------------
  306|  10.3k|			return dynamic_cast<DnsResource*>(res);
  307|  15.6k|		return nullptr;
  308|  25.9k|	}
_ZNK4pcpp8DnsLayer17getFirstAuthorityEv:
  311|  12.9k|	{
  312|  12.9k|		return m_FirstAuthority;
  313|  12.9k|	}
_ZNK4pcpp8DnsLayer16getNextAuthorityEPNS_11DnsResourceE:
  316|  2.48k|	{
  317|  2.48k|		if (authority == nullptr || authority->getNextResource() == nullptr ||
  ------------------
  |  Branch (317:7): [True: 0, False: 2.48k]
  |  Branch (317:31): [True: 1.32k, False: 1.16k]
  ------------------
  318|  1.16k|		    authority->getType() != DnsAuthorityType || authority->getNextResource()->getType() != DnsAuthorityType)
  ------------------
  |  Branch (318:7): [True: 0, False: 1.16k]
  |  Branch (318:51): [True: 217, False: 943]
  ------------------
  319|  1.53k|			return nullptr;
  320|       |
  321|    943|		return (DnsResource*)(authority->getNextResource());
  322|  2.48k|	}
_ZNK4pcpp8DnsLayer17getAuthorityCountEv:
  325|  46.6k|	{
  326|       |		return be16toh(getDnsHeader()->numberOfAuthority);
  327|  46.6k|	}
_ZNK4pcpp8DnsLayer19getAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  330|  25.9k|	{
  331|  25.9k|		uint16_t numOfAdditionalRecords = be16toh(getDnsHeader()->numberOfAdditional);
  332|  25.9k|		IDnsResource* res = getResourceByName(m_FirstAdditional, numOfAdditionalRecords, name, exactMatch);
  333|  25.9k|		if (res != nullptr)
  ------------------
  |  Branch (333:7): [True: 10.2k, False: 15.6k]
  ------------------
  334|  10.2k|			return dynamic_cast<DnsResource*>(res);
  335|  15.6k|		return nullptr;
  336|  25.9k|	}
_ZNK4pcpp8DnsLayer24getFirstAdditionalRecordEv:
  339|  12.9k|	{
  340|  12.9k|		return m_FirstAdditional;
  341|  12.9k|	}
_ZNK4pcpp8DnsLayer23getNextAdditionalRecordEPNS_11DnsResourceE:
  344|  1.93k|	{
  345|  1.93k|		if (additionalRecord == nullptr || additionalRecord->getNextResource() == nullptr ||
  ------------------
  |  Branch (345:7): [True: 0, False: 1.93k]
  |  Branch (345:38): [True: 1.18k, False: 746]
  ------------------
  346|    746|		    additionalRecord->getType() != DnsAdditionalType ||
  ------------------
  |  Branch (346:7): [True: 0, False: 746]
  ------------------
  347|    746|		    additionalRecord->getNextResource()->getType() != DnsAdditionalType)
  ------------------
  |  Branch (347:7): [True: 0, False: 746]
  ------------------
  348|  1.18k|			return nullptr;
  349|       |
  350|    746|		return (DnsResource*)(additionalRecord->getNextResource());
  351|  1.93k|	}
_ZNK4pcpp8DnsLayer24getAdditionalRecordCountEv:
  354|  46.6k|	{
  355|       |		return be16toh(getDnsHeader()->numberOfAdditional);
  356|  46.6k|	}
_ZNK4pcpp8DnsLayer8toStringEv:
  359|  25.9k|	{
  360|  25.9k|		std::ostringstream tidAsString;
  361|  25.9k|		tidAsString << be16toh(getDnsHeader()->transactionID);
  362|       |
  363|  25.9k|		std::ostringstream queryCount;
  364|  25.9k|		queryCount << getQueryCount();
  365|       |
  366|  25.9k|		std::ostringstream answerCount;
  367|  25.9k|		answerCount << getAnswerCount();
  368|       |
  369|  25.9k|		std::ostringstream authorityCount;
  370|  25.9k|		authorityCount << getAuthorityCount();
  371|       |
  372|  25.9k|		std::ostringstream additionalCount;
  373|  25.9k|		additionalCount << getAdditionalRecordCount();
  374|       |
  375|  25.9k|		if (getDnsHeader()->queryOrResponse == 1)
  ------------------
  |  Branch (375:7): [True: 6.31k, False: 19.6k]
  ------------------
  376|  6.31k|		{
  377|  6.31k|			return "DNS query response, ID: " + tidAsString.str() + ";" + " queries: " + queryCount.str() +
  378|  6.31k|			       ", answers: " + answerCount.str() + ", authorities: " + authorityCount.str() +
  379|  6.31k|			       ", additional record: " + additionalCount.str();
  380|  6.31k|		}
  381|  19.6k|		else if (getDnsHeader()->queryOrResponse == 0)
  ------------------
  |  Branch (381:12): [True: 19.6k, False: 0]
  ------------------
  382|  19.6k|		{
  383|  19.6k|			return "DNS query, ID: " + tidAsString.str() + ";" + " queries: " + queryCount.str() +
  384|  19.6k|			       ", answers: " + answerCount.str() + ", authorities: " + authorityCount.str() +
  385|  19.6k|			       ", additional record: " + additionalCount.str();
  386|  19.6k|		}
  387|      0|		else  // not likely - a DNS with no answers and no queries
  388|      0|		{
  389|      0|			return "DNS record without queries and answers, ID: " + tidAsString.str() + ";" +
  390|      0|			       " queries: " + queryCount.str() + ", answers: " + answerCount.str() +
  391|      0|			       ", authorities: " + authorityCount.str() + ", additional record: " + additionalCount.str();
  392|      0|		}
  393|  25.9k|	}
_ZNK4pcpp8DnsLayer16getFirstResourceENS_15DnsResourceTypeE:
  396|  41.2k|	{
  397|  41.2k|		switch (resType)
  398|  41.2k|		{
  399|  10.3k|		case DnsQueryType:
  ------------------
  |  Branch (399:3): [True: 10.3k, False: 30.9k]
  ------------------
  400|  10.3k|		{
  401|  10.3k|			return m_FirstQuery;
  402|      0|		}
  403|  10.2k|		case DnsAnswerType:
  ------------------
  |  Branch (403:3): [True: 10.2k, False: 30.9k]
  ------------------
  404|  10.2k|		{
  405|  10.2k|			return m_FirstAnswer;
  406|      0|		}
  407|  10.3k|		case DnsAuthorityType:
  ------------------
  |  Branch (407:3): [True: 10.3k, False: 30.9k]
  ------------------
  408|  10.3k|		{
  409|  10.3k|			return m_FirstAuthority;
  410|      0|		}
  411|  10.2k|		case DnsAdditionalType:
  ------------------
  |  Branch (411:3): [True: 10.2k, False: 30.9k]
  ------------------
  412|  10.2k|		{
  413|  10.2k|			return m_FirstAdditional;
  414|      0|		}
  415|      0|		default:
  ------------------
  |  Branch (415:3): [True: 0, False: 41.2k]
  ------------------
  416|      0|			return nullptr;
  417|  41.2k|		}
  418|  41.2k|	}
_ZN4pcpp8DnsLayer16setFirstResourceENS_15DnsResourceTypeEPNS_12IDnsResourceE:
  421|  56.9k|	{
  422|  56.9k|		switch (resType)
  423|  56.9k|		{
  424|  1.57k|		case DnsQueryType:
  ------------------
  |  Branch (424:3): [True: 1.57k, False: 55.3k]
  ------------------
  425|  1.57k|		{
  426|  1.57k|			m_FirstQuery = dynamic_cast<DnsQuery*>(resource);
  427|  1.57k|			break;
  428|      0|		}
  429|  18.5k|		case DnsAnswerType:
  ------------------
  |  Branch (429:3): [True: 18.5k, False: 38.4k]
  ------------------
  430|  18.5k|		{
  431|  18.5k|			m_FirstAnswer = dynamic_cast<DnsResource*>(resource);
  432|  18.5k|			break;
  433|      0|		}
  434|  18.3k|		case DnsAuthorityType:
  ------------------
  |  Branch (434:3): [True: 18.3k, False: 38.6k]
  ------------------
  435|  18.3k|		{
  436|  18.3k|			m_FirstAuthority = dynamic_cast<DnsResource*>(resource);
  437|  18.3k|			break;
  438|      0|		}
  439|  18.4k|		case DnsAdditionalType:
  ------------------
  |  Branch (439:3): [True: 18.4k, False: 38.4k]
  ------------------
  440|  18.4k|		{
  441|  18.4k|			m_FirstAdditional = dynamic_cast<DnsResource*>(resource);
  442|  18.4k|			break;
  443|      0|		}
  444|      0|		default:
  ------------------
  |  Branch (444:3): [True: 0, False: 56.9k]
  ------------------
  445|      0|			return;
  446|  56.9k|		}
  447|  56.9k|	}
_ZN4pcpp8DnsLayer11addResourceENS_15DnsResourceTypeERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  451|  38.8k|	{
  452|       |		// create new query on temporary buffer
  453|  38.8k|		uint8_t newResourceRawData[4096];
  454|  38.8k|		memset(newResourceRawData, 0, sizeof(newResourceRawData));
  455|       |
  456|  38.8k|		DnsResource* newResource = new DnsResource(newResourceRawData, resType);
  457|       |
  458|  38.8k|		newResource->setDnsClass(dnsClass);
  459|       |
  460|  38.8k|		newResource->setDnsType(dnsType);
  461|       |
  462|       |		// cannot return false since layer shouldn't be extended or shortened in this stage
  463|  38.8k|		newResource->setName(name);
  464|       |
  465|  38.8k|		newResource->setTTL(ttl);
  466|       |
  467|  38.8k|		if (!newResource->setData(data))
  ------------------
  |  Branch (467:7): [True: 0, False: 38.8k]
  ------------------
  468|      0|		{
  469|      0|			delete newResource;
  470|      0|			PCPP_LOG_ERROR("Couldn't set new resource data");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  471|      0|			return nullptr;
  472|      0|		}
  473|       |
  474|  38.8k|		size_t newResourceOffsetInLayer = getBasicHeaderSize();
  475|  38.8k|		IDnsResource* curResource = m_ResourceList;
  476|  61.7k|		while (curResource != nullptr && curResource->getType() <= resType)
  ------------------
  |  Branch (476:10): [True: 52.0k, False: 9.73k]
  |  Branch (476:36): [True: 52.0k, False: 0]
  ------------------
  477|  52.0k|		{
  478|  52.0k|			newResourceOffsetInLayer += curResource->getSize();
  479|       |
  480|  52.0k|			if (newResourceOffsetInLayer > m_DataLen)
  ------------------
  |  Branch (480:8): [True: 18, False: 52.0k]
  ------------------
  481|     18|			{
  482|       |				// This possibly means that the DNS layer has been created from a malformed packet.
  483|     18|				PCPP_LOG_ERROR("Couldn't add resource! DNS Layer is malformed and contains out of bounds resources.");
  ------------------
  |  |  443|     18|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|     18|	do                                                                                                                 \
  |  |  |  |  413|     18|	{                                                                                                                  \
  |  |  |  |  414|     18|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     18|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     18|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 18, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|     18|		{                                                                                                              \
  |  |  |  |  417|     18|			auto ctx =                                                                                                 \
  |  |  |  |  418|     18|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     18|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|     18|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|     18|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|     18|		}                                                                                                              \
  |  |  |  |  422|     18|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 18]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  484|     18|				delete newResource;
  485|     18|				return nullptr;
  486|     18|			}
  487|       |
  488|  52.0k|			IDnsResource* nextResource = curResource->getNextResource();
  489|  52.0k|			if (nextResource == nullptr || nextResource->getType() > resType)
  ------------------
  |  Branch (489:8): [True: 25.6k, False: 26.3k]
  |  Branch (489:35): [True: 3.50k, False: 22.8k]
  ------------------
  490|  29.1k|				break;
  491|  22.8k|			curResource = nextResource;
  492|  22.8k|		}
  493|       |
  494|       |		// set next resource for new resource. This must happen here for extendLayer to succeed
  495|  38.8k|		if (curResource != nullptr)
  ------------------
  |  Branch (495:7): [True: 29.1k, False: 9.73k]
  ------------------
  496|  29.1k|		{
  497|  29.1k|			if (curResource->getType() > newResource->getType())
  ------------------
  |  Branch (497:8): [True: 0, False: 29.1k]
  ------------------
  498|      0|				newResource->setNextResource(m_ResourceList);
  499|  29.1k|			else
  500|  29.1k|				newResource->setNextResource(curResource->getNextResource());
  501|  29.1k|		}
  502|  9.73k|		else
  503|  9.73k|		{
  504|       |			// curResource != nullptr
  505|  9.73k|			newResource->setNextResource(m_ResourceList);
  506|  9.73k|		}
  507|       |
  508|       |		// extend layer to make room for the new resource
  509|  38.8k|		if (!extendLayer(newResourceOffsetInLayer, newResource->getSize(), newResource))
  ------------------
  |  Branch (509:7): [True: 7.71k, False: 31.1k]
  ------------------
  510|  7.71k|		{
  511|  7.71k|			PCPP_LOG_ERROR("Couldn't extend DNS layer, addResource failed");
  ------------------
  |  |  443|  7.71k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  7.71k|	do                                                                                                                 \
  |  |  |  |  413|  7.71k|	{                                                                                                                  \
  |  |  |  |  414|  7.71k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  7.71k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  7.71k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 7.71k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  7.71k|		{                                                                                                              \
  |  |  |  |  417|  7.71k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  7.71k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  7.71k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  7.71k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  7.71k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  7.71k|		}                                                                                                              \
  |  |  |  |  422|  7.71k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 7.71k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  512|  7.71k|			delete newResource;
  513|  7.71k|			return nullptr;
  514|  7.71k|		}
  515|       |
  516|       |		// connect the new resource to layer
  517|  31.1k|		newResource->setDnsLayer(this, newResourceOffsetInLayer);
  518|       |
  519|       |		// connect the new resource to the layer's resource list
  520|  31.1k|		if (curResource != nullptr)
  ------------------
  |  Branch (520:7): [True: 26.5k, False: 4.58k]
  ------------------
  521|  26.5k|		{
  522|  26.5k|			curResource->setNextResource(newResource);
  523|       |			// this means the new resource is the first of it's type
  524|  26.5k|			if (curResource->getType() < newResource->getType())
  ------------------
  |  Branch (524:8): [True: 23.2k, False: 3.32k]
  ------------------
  525|  23.2k|			{
  526|  23.2k|				setFirstResource(resType, newResource);
  527|  23.2k|			}
  528|       |			// this means the new resource should be the first resource in the packet
  529|  3.32k|			else if (curResource->getType() > newResource->getType())
  ------------------
  |  Branch (529:13): [True: 0, False: 3.32k]
  ------------------
  530|      0|			{
  531|      0|				m_ResourceList = newResource;
  532|       |
  533|      0|				setFirstResource(resType, newResource);
  534|      0|			}
  535|  26.5k|		}
  536|  4.58k|		else  // curResource != nullptr, meaning this is the first resource in layer
  537|  4.58k|		{
  538|  4.58k|			m_ResourceList = newResource;
  539|       |
  540|  4.58k|			setFirstResource(resType, newResource);
  541|  4.58k|		}
  542|       |
  543|  31.1k|		return newResource;
  544|  38.8k|	}
_ZN4pcpp8DnsLayer8addQueryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassE:
  547|  12.9k|	{
  548|       |		// create new query on temporary buffer
  549|  12.9k|		uint8_t newQueryRawData[256];
  550|  12.9k|		DnsQuery* newQuery = new DnsQuery(newQueryRawData);
  551|       |
  552|  12.9k|		newQuery->setDnsClass(dnsClass);
  553|  12.9k|		newQuery->setDnsType(dnsType);
  554|       |
  555|       |		// cannot return false since layer shouldn't be extended or shortened in this stage
  556|  12.9k|		newQuery->setName(name);
  557|       |
  558|       |		// find the offset in the layer to insert the new query
  559|  12.9k|		size_t newQueryOffsetInLayer = getBasicHeaderSize();
  560|  12.9k|		DnsQuery* curQuery = getFirstQuery();
  561|  15.3k|		while (curQuery != nullptr)
  ------------------
  |  Branch (561:10): [True: 12.0k, False: 3.32k]
  ------------------
  562|  12.0k|		{
  563|  12.0k|			newQueryOffsetInLayer += curQuery->getSize();
  564|  12.0k|			DnsQuery* nextQuery = getNextQuery(curQuery);
  565|  12.0k|			if (nextQuery == nullptr)
  ------------------
  |  Branch (565:8): [True: 9.64k, False: 2.43k]
  ------------------
  566|  9.64k|				break;
  567|  2.43k|			curQuery = nextQuery;
  568|  2.43k|		}
  569|       |
  570|       |		// set next resource for new query. This must happen here for extendLayer to succeed
  571|  12.9k|		if (curQuery != nullptr)
  ------------------
  |  Branch (571:7): [True: 9.64k, False: 3.32k]
  ------------------
  572|  9.64k|			newQuery->setNextResource(curQuery->getNextResource());
  573|  3.32k|		else
  574|  3.32k|			newQuery->setNextResource(m_ResourceList);
  575|       |
  576|       |		// extend layer to make room for the new query
  577|  12.9k|		if (!extendLayer(newQueryOffsetInLayer, newQuery->getSize(), newQuery))
  ------------------
  |  Branch (577:7): [True: 2.57k, False: 10.3k]
  ------------------
  578|  2.57k|		{
  579|  2.57k|			PCPP_LOG_ERROR("Couldn't extend DNS layer, addQuery failed");
  ------------------
  |  |  443|  2.57k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  2.57k|	do                                                                                                                 \
  |  |  |  |  413|  2.57k|	{                                                                                                                  \
  |  |  |  |  414|  2.57k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.57k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.57k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 2.57k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.57k|		{                                                                                                              \
  |  |  |  |  417|  2.57k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  2.57k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.57k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  2.57k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  2.57k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  2.57k|		}                                                                                                              \
  |  |  |  |  422|  2.57k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.57k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  580|  2.57k|			delete newQuery;
  581|  2.57k|			return nullptr;
  582|  2.57k|		}
  583|       |
  584|       |		// connect the new query to layer
  585|  10.3k|		newQuery->setDnsLayer(this, newQueryOffsetInLayer);
  586|       |
  587|       |		// connect the new query to the layer's resource list
  588|  10.3k|		if (curQuery != nullptr)
  ------------------
  |  Branch (588:7): [True: 8.77k, False: 1.60k]
  ------------------
  589|  8.77k|			curQuery->setNextResource(newQuery);
  590|  1.60k|		else  // curQuery == nullptr, meaning this is the first query
  591|  1.60k|		{
  592|  1.60k|			m_ResourceList = newQuery;
  593|  1.60k|			m_FirstQuery = newQuery;
  594|  1.60k|		}
  595|       |
  596|       |		// increase number of queries
  597|  10.3k|		getDnsHeader()->numberOfQuestions = htobe16(getQueryCount() + 1);
  598|       |
  599|  10.3k|		return newQuery;
  600|  12.9k|	}
_ZN4pcpp8DnsLayer11removeQueryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  611|  25.9k|	{
  612|  25.9k|		DnsQuery* queryToRemove = getQuery(queryNameToRemove, exactMatch);
  613|  25.9k|		if (queryToRemove == nullptr)
  ------------------
  |  Branch (613:7): [True: 15.5k, False: 10.3k]
  ------------------
  614|  15.5k|		{
  615|  15.5k|			PCPP_LOG_DEBUG("Query not found");
  ------------------
  |  |  425|  15.5k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  15.5k|	do                                                                                                                 \
  |  |  |  |  413|  15.5k|	{                                                                                                                  \
  |  |  |  |  414|  15.5k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  15.5k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  15.5k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 15.5k]
  |  |  |  |  ------------------
  |  |  |  |  416|  15.5k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  15.5k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 15.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  616|  15.5k|			return false;
  617|  15.5k|		}
  618|       |
  619|  10.3k|		return removeQuery(queryToRemove);
  620|  25.9k|	}
_ZN4pcpp8DnsLayer11removeQueryEPNS_8DnsQueryE:
  623|  10.3k|	{
  624|  10.3k|		bool res = removeResource(queryToRemove);
  625|  10.3k|		if (res)
  ------------------
  |  Branch (625:7): [True: 10.3k, False: 0]
  ------------------
  626|  10.3k|		{
  627|       |			// decrease number of query records
  628|  10.3k|			getDnsHeader()->numberOfQuestions = htobe16(getQueryCount() - 1);
  629|  10.3k|		}
  630|       |
  631|  10.3k|		return res;
  632|  10.3k|	}
_ZN4pcpp8DnsLayer9addAnswerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  636|  12.9k|	{
  637|  12.9k|		DnsResource* res = addResource(DnsAnswerType, name, dnsType, dnsClass, ttl, data);
  638|  12.9k|		if (res != nullptr)
  ------------------
  |  Branch (638:7): [True: 10.3k, False: 2.57k]
  ------------------
  639|  10.3k|		{
  640|       |			// increase number of answer records
  641|  10.3k|			getDnsHeader()->numberOfAnswers = htobe16(getAnswerCount() + 1);
  642|  10.3k|		}
  643|       |
  644|  12.9k|		return res;
  645|  12.9k|	}
_ZN4pcpp8DnsLayer12removeAnswerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  657|  25.9k|	{
  658|  25.9k|		DnsResource* answerToRemove = getAnswer(answerNameToRemove, exactMatch);
  659|  25.9k|		if (answerToRemove == nullptr)
  ------------------
  |  Branch (659:7): [True: 15.6k, False: 10.2k]
  ------------------
  660|  15.6k|		{
  661|  15.6k|			PCPP_LOG_DEBUG("Answer record not found");
  ------------------
  |  |  425|  15.6k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  15.6k|	do                                                                                                                 \
  |  |  |  |  413|  15.6k|	{                                                                                                                  \
  |  |  |  |  414|  15.6k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  15.6k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  15.6k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 15.6k]
  |  |  |  |  ------------------
  |  |  |  |  416|  15.6k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  15.6k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 15.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  662|  15.6k|			return false;
  663|  15.6k|		}
  664|       |
  665|  10.2k|		return removeAnswer(answerToRemove);
  666|  25.9k|	}
_ZN4pcpp8DnsLayer12removeAnswerEPNS_11DnsResourceE:
  669|  10.2k|	{
  670|  10.2k|		bool res = removeResource(answerToRemove);
  671|  10.2k|		if (res)
  ------------------
  |  Branch (671:7): [True: 10.2k, False: 0]
  ------------------
  672|  10.2k|		{
  673|       |			// decrease number of answer records
  674|  10.2k|			getDnsHeader()->numberOfAnswers = htobe16(getAnswerCount() - 1);
  675|  10.2k|		}
  676|       |
  677|  10.2k|		return res;
  678|  10.2k|	}
_ZN4pcpp8DnsLayer12addAuthorityERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  682|  12.9k|	{
  683|  12.9k|		DnsResource* res = addResource(DnsAuthorityType, name, dnsType, dnsClass, ttl, data);
  684|  12.9k|		if (res != nullptr)
  ------------------
  |  Branch (684:7): [True: 10.3k, False: 2.57k]
  ------------------
  685|  10.3k|		{
  686|       |			// increase number of authority records
  687|  10.3k|			getDnsHeader()->numberOfAuthority = htobe16(getAuthorityCount() + 1);
  688|  10.3k|		}
  689|       |
  690|  12.9k|		return res;
  691|  12.9k|	}
_ZN4pcpp8DnsLayer15removeAuthorityERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  703|  25.9k|	{
  704|  25.9k|		DnsResource* authorityToRemove = getAuthority(authorityNameToRemove, exactMatch);
  705|  25.9k|		if (authorityToRemove == nullptr)
  ------------------
  |  Branch (705:7): [True: 15.6k, False: 10.3k]
  ------------------
  706|  15.6k|		{
  707|  15.6k|			PCPP_LOG_DEBUG("Authority not found");
  ------------------
  |  |  425|  15.6k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  15.6k|	do                                                                                                                 \
  |  |  |  |  413|  15.6k|	{                                                                                                                  \
  |  |  |  |  414|  15.6k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  15.6k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  15.6k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 15.6k]
  |  |  |  |  ------------------
  |  |  |  |  416|  15.6k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  15.6k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 15.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  708|  15.6k|			return false;
  709|  15.6k|		}
  710|       |
  711|  10.3k|		return removeAuthority(authorityToRemove);
  712|  25.9k|	}
_ZN4pcpp8DnsLayer15removeAuthorityEPNS_11DnsResourceE:
  715|  10.3k|	{
  716|  10.3k|		bool res = removeResource(authorityToRemove);
  717|  10.3k|		if (res)
  ------------------
  |  Branch (717:7): [True: 10.3k, False: 0]
  ------------------
  718|  10.3k|		{
  719|       |			// decrease number of authority records
  720|  10.3k|			getDnsHeader()->numberOfAuthority = htobe16(getAuthorityCount() - 1);
  721|  10.3k|		}
  722|       |
  723|  10.3k|		return res;
  724|  10.3k|	}
_ZN4pcpp8DnsLayer19addAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  728|  12.9k|	{
  729|  12.9k|		DnsResource* res = addResource(DnsAdditionalType, name, dnsType, dnsClass, ttl, data);
  730|  12.9k|		if (res != nullptr)
  ------------------
  |  Branch (730:7): [True: 10.3k, False: 2.57k]
  ------------------
  731|  10.3k|		{
  732|       |			// increase number of authority records
  733|  10.3k|			getDnsHeader()->numberOfAdditional = htobe16(getAdditionalRecordCount() + 1);
  734|  10.3k|		}
  735|       |
  736|  12.9k|		return res;
  737|  12.9k|	}
_ZN4pcpp8DnsLayer19addAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeEtjPNS_16IDnsResourceDataE:
  741|  12.9k|	{
  742|  12.9k|		DnsResource* res = addAdditionalRecord(name, dnsType, DNS_CLASS_ANY, customData2, data);
  743|  12.9k|		if (res != nullptr)
  ------------------
  |  Branch (743:7): [True: 10.3k, False: 2.57k]
  ------------------
  744|  10.3k|		{
  745|  10.3k|			res->setCustomDnsClass(customData1);
  746|  10.3k|		}
  747|       |
  748|  12.9k|		return res;
  749|  12.9k|	}
_ZN4pcpp8DnsLayer22removeAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  762|  25.9k|	{
  763|  25.9k|		DnsResource* additionalRecordToRemove = getAdditionalRecord(additionalRecordNameToRemove, exactMatch);
  764|  25.9k|		if (additionalRecordToRemove == nullptr)
  ------------------
  |  Branch (764:7): [True: 15.6k, False: 10.2k]
  ------------------
  765|  15.6k|		{
  766|  15.6k|			PCPP_LOG_DEBUG("Additional record not found");
  ------------------
  |  |  425|  15.6k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  15.6k|	do                                                                                                                 \
  |  |  |  |  413|  15.6k|	{                                                                                                                  \
  |  |  |  |  414|  15.6k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  15.6k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  15.6k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 15.6k]
  |  |  |  |  ------------------
  |  |  |  |  416|  15.6k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  15.6k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 15.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  767|  15.6k|			return false;
  768|  15.6k|		}
  769|       |
  770|  10.2k|		return removeAdditionalRecord(additionalRecordToRemove);
  771|  25.9k|	}
_ZN4pcpp8DnsLayer22removeAdditionalRecordEPNS_11DnsResourceE:
  774|  10.2k|	{
  775|  10.2k|		bool res = removeResource(additionalRecordToRemove);
  776|  10.2k|		if (res)
  ------------------
  |  Branch (776:7): [True: 10.2k, False: 0]
  ------------------
  777|  10.2k|		{
  778|       |			// decrease number of additional records
  779|  10.2k|			getDnsHeader()->numberOfAdditional = htobe16(getAdditionalRecordCount() - 1);
  780|  10.2k|		}
  781|       |
  782|  10.2k|		return res;
  783|  10.2k|	}
_ZN4pcpp8DnsLayer14removeResourceEPNS_12IDnsResourceE:
  786|  41.2k|	{
  787|  41.2k|		if (resourceToRemove == nullptr)
  ------------------
  |  Branch (787:7): [True: 0, False: 41.2k]
  ------------------
  788|      0|		{
  789|      0|			PCPP_LOG_DEBUG("resourceToRemove cannot be nullptr");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  790|      0|			return false;
  791|      0|		}
  792|       |
  793|       |		// find the resource preceding resourceToRemove
  794|  41.2k|		IDnsResource* prevResource = m_ResourceList;
  795|       |
  796|  41.2k|		if (m_ResourceList != resourceToRemove)
  ------------------
  |  Branch (796:7): [True: 35.1k, False: 6.05k]
  ------------------
  797|  35.1k|		{
  798|  55.7k|			while (prevResource != nullptr)
  ------------------
  |  Branch (798:11): [True: 55.7k, False: 0]
  ------------------
  799|  55.7k|			{
  800|  55.7k|				IDnsResource* temp = prevResource->getNextResource();
  801|  55.7k|				if (temp == resourceToRemove)
  ------------------
  |  Branch (801:9): [True: 35.1k, False: 20.5k]
  ------------------
  802|  35.1k|					break;
  803|       |
  804|  20.5k|				prevResource = temp;
  805|  20.5k|			}
  806|  35.1k|		}
  807|       |
  808|  41.2k|		if (prevResource == nullptr)
  ------------------
  |  Branch (808:7): [True: 0, False: 41.2k]
  ------------------
  809|      0|		{
  810|      0|			PCPP_LOG_DEBUG("Resource not found");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  811|      0|			return false;
  812|      0|		}
  813|       |
  814|       |		// shorten the layer and fix offset in layer for all next DNS resources in the packet
  815|  41.2k|		if (!shortenLayer(resourceToRemove->m_OffsetInLayer, resourceToRemove->getSize(), resourceToRemove))
  ------------------
  |  Branch (815:7): [True: 0, False: 41.2k]
  ------------------
  816|      0|		{
  817|      0|			PCPP_LOG_ERROR("Couldn't shorten the DNS layer, resource cannot be removed");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  818|      0|			return false;
  819|      0|		}
  820|       |
  821|       |		// remove resourceToRemove from the resources linked list
  822|  41.2k|		if (m_ResourceList != resourceToRemove)
  ------------------
  |  Branch (822:7): [True: 35.1k, False: 6.05k]
  ------------------
  823|  35.1k|		{
  824|  35.1k|			prevResource->setNextResource(resourceToRemove->getNextResource());
  825|  35.1k|		}
  826|  6.05k|		else
  827|  6.05k|		{
  828|  6.05k|			m_ResourceList = resourceToRemove->getNextResource();
  829|  6.05k|		}
  830|       |
  831|       |		// check whether resourceToRemove was the first of its type
  832|  41.2k|		if (getFirstResource(resourceToRemove->getType()) == resourceToRemove)
  ------------------
  |  Branch (832:7): [True: 29.1k, False: 12.1k]
  ------------------
  833|  29.1k|		{
  834|  29.1k|			IDnsResource* nextResource = resourceToRemove->getNextResource();
  835|  29.1k|			if (nextResource != nullptr && nextResource->getType() == resourceToRemove->getType())
  ------------------
  |  Branch (835:8): [True: 3.02k, False: 26.1k]
  |  Branch (835:35): [True: 0, False: 3.02k]
  ------------------
  836|      0|				setFirstResource(resourceToRemove->getType(), nextResource);
  837|  29.1k|			else
  838|  29.1k|				setFirstResource(resourceToRemove->getType(), nullptr);
  839|  29.1k|		}
  840|       |
  841|       |		// free resourceToRemove memory
  842|  41.2k|		delete resourceToRemove;
  843|       |
  844|  41.2k|		return true;
  845|  41.2k|	}
_ZN4pcpp15DnsOverTcpLayer19setTcpMessageLengthEt:
  857|  3.41k|	{
  858|       |		((uint16_t*)m_Data)[0] = htobe16(value);
  859|  3.41k|	}
_ZN4pcpp15DnsOverTcpLayer22computeCalculateFieldsEv:
  862|  3.41k|	{
  863|  3.41k|		setTcpMessageLength(m_DataLen - sizeof(uint16_t));
  864|  3.41k|	}

_ZN4pcpp12IDnsResourceC2EPNS_8DnsLayerEm:
   12|   171k|	    : m_DnsLayer(dnsLayer), m_OffsetInLayer(offsetInLayer), m_NextResource(nullptr), m_ExternalRawData(nullptr)
   13|   171k|	{
   14|   171k|		char decodedName[4096];
   15|   171k|		m_NameLength = decodeName((const char*)getRawData(), decodedName);
   16|   171k|		if (m_NameLength > 0)
  ------------------
  |  Branch (16:7): [True: 151k, False: 20.6k]
  ------------------
   17|   151k|			m_DecodedName = decodedName;
   18|   171k|	}
_ZN4pcpp12IDnsResourceC2EPh:
   21|  51.8k|	    : m_DnsLayer(nullptr), m_OffsetInLayer(0), m_NextResource(nullptr), m_DecodedName(""), m_NameLength(0),
   22|  51.8k|	      m_ExternalRawData(emptyRawData)
   23|  51.8k|	{}
_ZNK4pcpp12IDnsResource10getRawDataEv:
   26|   702k|	{
   27|   702k|		if (m_DnsLayer == nullptr)
  ------------------
  |  Branch (27:7): [True: 419k, False: 282k]
  ------------------
   28|   419k|			return m_ExternalRawData;
   29|       |
   30|   282k|		return m_DnsLayer->m_Data + m_OffsetInLayer;
   31|   702k|	}
_ZN4pcpp12IDnsResource10decodeNameEPKcPci:
   52|   331k|	{
   53|   331k|		size_t encodedNameLength = 0;
   54|   331k|		size_t decodedNameLength = 0;
   55|   331k|		char* resultPtr = result;
   56|   331k|		resultPtr[0] = 0;
   57|       |
   58|   331k|		size_t curOffsetInLayer = (uint8_t*)encodedName - m_DnsLayer->m_Data;
   59|   331k|		if (curOffsetInLayer + 1 > m_DnsLayer->m_DataLen)
  ------------------
  |  Branch (59:7): [True: 7.92k, False: 323k]
  ------------------
   60|  7.92k|			return encodedNameLength;
   61|       |
   62|   323k|		if (iteration > 20)
  ------------------
  |  Branch (62:7): [True: 6.45k, False: 317k]
  ------------------
   63|  6.45k|		{
   64|  6.45k|			return encodedNameLength;
   65|  6.45k|		}
   66|       |
   67|   317k|		uint8_t wordLength = encodedName[0];
   68|       |
   69|       |		// A string to parse
   70|   856k|		while (wordLength != 0)
  ------------------
  |  Branch (70:10): [True: 747k, False: 108k]
  ------------------
   71|   747k|		{
   72|       |			// A pointer to another place in the packet
   73|   747k|			if ((wordLength & 0xc0) == 0xc0)
  ------------------
  |  Branch (73:8): [True: 173k, False: 574k]
  ------------------
   74|   173k|			{
   75|   173k|				if (curOffsetInLayer + 2 > m_DnsLayer->m_DataLen || encodedNameLength > 255)
  ------------------
  |  Branch (75:9): [True: 133, False: 173k]
  |  Branch (75:57): [True: 0, False: 173k]
  ------------------
   76|    133|					return cleanup(resultPtr, result, encodedNameLength);
   77|       |
   78|   173k|				uint16_t offsetInLayer =
   79|   173k|				    (wordLength & 0x3f) * 256 + (0xFF & encodedName[1]) + m_DnsLayer->m_OffsetAdjustment;
   80|   173k|				if (offsetInLayer < sizeof(dnshdr) || offsetInLayer >= m_DnsLayer->m_DataLen)
  ------------------
  |  Branch (80:9): [True: 39, False: 173k]
  |  Branch (80:43): [True: 13.1k, False: 159k]
  ------------------
   81|  13.1k|				{
   82|  13.1k|					PCPP_LOG_ERROR("DNS parsing error: name pointer is illegal");
  ------------------
  |  |  443|  13.1k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  13.1k|	do                                                                                                                 \
  |  |  |  |  413|  13.1k|	{                                                                                                                  \
  |  |  |  |  414|  13.1k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  13.1k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  13.1k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 13.1k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  13.1k|		{                                                                                                              \
  |  |  |  |  417|  13.1k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  13.1k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  13.1k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  13.1k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  13.1k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  13.1k|		}                                                                                                              \
  |  |  |  |  422|  13.1k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 13.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   83|  13.1k|					return 0;
   84|  13.1k|				}
   85|       |
   86|   159k|				char tempResult[4096];
   87|   159k|				memset(tempResult, 0, sizeof(tempResult));
   88|   159k|				int i = 0;
   89|   159k|				decodeName((const char*)(m_DnsLayer->m_Data + offsetInLayer), tempResult, iteration + 1);
   90|  15.1M|				while (tempResult[i] != 0 && decodedNameLength < 255)
  ------------------
  |  Branch (90:12): [True: 15.0M, False: 159k]
  |  Branch (90:34): [True: 15.0M, False: 42]
  ------------------
   91|  15.0M|				{
   92|  15.0M|					resultPtr[0] = tempResult[i++];
   93|  15.0M|					resultPtr++;
   94|  15.0M|					decodedNameLength++;
   95|  15.0M|				}
   96|       |
   97|   159k|				resultPtr[0] = 0;
   98|       |
   99|       |				// in this case the length of the pointer is: 1 byte for 0xc0 + 1 byte for the offset itself
  100|   159k|				return encodedNameLength + sizeof(uint16_t);
  101|   173k|			}
  102|   574k|			else
  103|   574k|			{
  104|       |				// return if next word would be outside of the DNS layer or overflow the buffer behind resultPtr
  105|   574k|				if (curOffsetInLayer + wordLength + 1 > m_DnsLayer->m_DataLen || encodedNameLength + wordLength > 255)
  ------------------
  |  Branch (105:9): [True: 34.3k, False: 540k]
  |  Branch (105:70): [True: 7, False: 540k]
  ------------------
  106|  34.3k|				{
  107|       |					// add the last '\0' to the decoded string
  108|  34.3k|					if (encodedNameLength == 256)
  ------------------
  |  Branch (108:10): [True: 0, False: 34.3k]
  ------------------
  109|      0|					{
  110|      0|						resultPtr--;
  111|       |						// cppcheck-suppress unreadVariable
  112|      0|						decodedNameLength--;
  113|      0|					}
  114|  34.3k|					else
  115|  34.3k|					{
  116|  34.3k|						encodedNameLength++;
  117|  34.3k|					}
  118|       |
  119|  34.3k|					resultPtr[0] = 0;
  120|  34.3k|					return encodedNameLength;
  121|  34.3k|				}
  122|       |
  123|   540k|				memcpy(resultPtr, encodedName + 1, wordLength);
  124|   540k|				resultPtr += wordLength;
  125|   540k|				resultPtr[0] = '.';
  126|   540k|				resultPtr++;
  127|   540k|				decodedNameLength += wordLength + 1;
  128|   540k|				encodedName += wordLength + 1;
  129|   540k|				encodedNameLength += wordLength + 1;
  130|       |
  131|   540k|				curOffsetInLayer = (uint8_t*)encodedName - m_DnsLayer->m_Data;
  132|   540k|				if (curOffsetInLayer + 1 > m_DnsLayer->m_DataLen)
  ------------------
  |  Branch (132:9): [True: 1.41k, False: 538k]
  ------------------
  133|  1.41k|				{
  134|       |					// add the last '\0' to the decoded string
  135|  1.41k|					if (encodedNameLength == 256)
  ------------------
  |  Branch (135:10): [True: 0, False: 1.41k]
  ------------------
  136|      0|					{
  137|       |						// cppcheck-suppress unreadVariable
  138|      0|						decodedNameLength--;
  139|      0|						resultPtr--;
  140|      0|					}
  141|  1.41k|					else
  142|  1.41k|					{
  143|  1.41k|						encodedNameLength++;
  144|  1.41k|					}
  145|       |
  146|  1.41k|					resultPtr[0] = 0;
  147|  1.41k|					return encodedNameLength;
  148|  1.41k|				}
  149|       |
  150|   538k|				wordLength = encodedName[0];
  151|   538k|			}
  152|   747k|		}
  153|       |
  154|   108k|		return cleanup(resultPtr, result, encodedNameLength);
  155|   317k|	}
_ZN4pcpp12IDnsResource10encodeNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPcRm:
  158|  51.8k|	{
  159|  51.8k|		resultLen = 0;
  160|  51.8k|		std::stringstream strstream(decodedName);
  161|  51.8k|		std::string word;
  162|   194k|		while (getline(strstream, word, '.'))
  ------------------
  |  Branch (162:10): [True: 142k, False: 51.8k]
  ------------------
  163|   142k|		{
  164|       |			// pointer to a different hostname in the packet
  165|   142k|			if (word[0] == '#')
  ------------------
  |  Branch (165:8): [True: 0, False: 142k]
  ------------------
  166|      0|			{
  167|       |				// convert the number from string to int
  168|      0|				std::stringstream stream(word.substr(1));
  169|      0|				int pointerInPacket = 0;
  170|      0|				stream >> pointerInPacket;
  171|       |
  172|       |				// verify it's indeed a number and that is in the range of [0-255]
  173|      0|				if (stream.fail() || pointerInPacket < 0 || pointerInPacket > 0xff)
  ------------------
  |  Branch (173:9): [True: 0, False: 0]
  |  Branch (173:26): [True: 0, False: 0]
  |  Branch (173:49): [True: 0, False: 0]
  ------------------
  174|      0|				{
  175|      0|					PCPP_LOG_ERROR("Error encoding the string '" << decodedName << "'");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  176|      0|					return;
  177|      0|				}
  178|       |
  179|       |				// set the pointer to the encoded string result
  180|      0|				result[0] = (uint8_t)0xc0;
  181|      0|				result[1] = (uint8_t)pointerInPacket;
  182|      0|				resultLen += 2;
  183|      0|				return;  // pointer always comes last
  184|      0|			}
  185|       |
  186|   142k|			result[0] = word.length();
  187|   142k|			result++;
  188|   142k|			memcpy(result, word.c_str(), word.length());
  189|   142k|			result += word.length();
  190|   142k|			resultLen += word.length() + 1;
  191|   142k|		}
  192|       |
  193|  51.8k|		result[0] = 0;
  194|  51.8k|		resultLen++;
  195|  51.8k|	}
_ZNK4pcpp12IDnsResource10getDnsTypeEv:
  198|  38.8k|	{
  199|  38.8k|		uint16_t dnsType = *reinterpret_cast<uint16_t*>(getRawData() + m_NameLength);
  200|       |		return static_cast<DnsType>(be16toh(dnsType));
  201|  38.8k|	}
_ZN4pcpp12IDnsResource10setDnsTypeENS_7DnsTypeE:
  204|  51.8k|	{
  205|       |		uint16_t newTypeAsInt = htobe16((uint16_t)newType);
  206|  51.8k|		memcpy(getRawData() + m_NameLength, &newTypeAsInt, sizeof(uint16_t));
  207|  51.8k|	}
_ZN4pcpp12IDnsResource11setDnsClassENS_8DnsClassE:
  216|  51.8k|	{
  217|       |		uint16_t newClassAsInt = htobe16((uint16_t)newClass);
  218|  51.8k|		memcpy(getRawData() + m_NameLength + sizeof(uint16_t), &newClassAsInt, sizeof(uint16_t));
  219|  51.8k|	}
_ZN4pcpp12IDnsResource7setNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  222|  51.8k|	{
  223|  51.8k|		char encodedName[4096];
  224|  51.8k|		size_t encodedNameLen = 0;
  225|  51.8k|		encodeName(newName, encodedName, encodedNameLen);
  226|  51.8k|		if (m_DnsLayer != nullptr)
  ------------------
  |  Branch (226:7): [True: 0, False: 51.8k]
  ------------------
  227|      0|		{
  228|      0|			if (encodedNameLen > m_NameLength)
  ------------------
  |  Branch (228:8): [True: 0, False: 0]
  ------------------
  229|      0|			{
  230|      0|				if (!m_DnsLayer->extendLayer(m_OffsetInLayer, encodedNameLen - m_NameLength, this))
  ------------------
  |  Branch (230:9): [True: 0, False: 0]
  ------------------
  231|      0|				{
  232|      0|					PCPP_LOG_ERROR("Couldn't set name for DNS query, unable to extend layer");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  233|      0|					return false;
  234|      0|				}
  235|      0|			}
  236|      0|			else if (encodedNameLen < m_NameLength)
  ------------------
  |  Branch (236:13): [True: 0, False: 0]
  ------------------
  237|      0|			{
  238|      0|				if (!m_DnsLayer->shortenLayer(m_OffsetInLayer, m_NameLength - encodedNameLen, this))
  ------------------
  |  Branch (238:9): [True: 0, False: 0]
  ------------------
  239|      0|				{
  240|      0|					PCPP_LOG_ERROR("Couldn't set name for DNS query, unable to shorten layer");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  241|      0|					return false;
  242|      0|				}
  243|      0|			}
  244|      0|		}
  245|  51.8k|		else
  246|  51.8k|		{
  247|  51.8k|			size_t size = getSize();
  248|  51.8k|			char* tempData = new char[size];
  249|  51.8k|			memcpy(tempData, m_ExternalRawData, size);
  250|  51.8k|			memcpy(m_ExternalRawData + encodedNameLen, tempData, size);
  251|  51.8k|			delete[] tempData;
  252|  51.8k|		}
  253|       |
  254|  51.8k|		memcpy(getRawData(), encodedName, encodedNameLen);
  255|  51.8k|		m_NameLength = encodedNameLen;
  256|  51.8k|		m_DecodedName = newName;
  257|       |
  258|  51.8k|		return true;
  259|  51.8k|	}
_ZN4pcpp12IDnsResource11setDnsLayerEPNS_8DnsLayerEm:
  262|  41.5k|	{
  263|  41.5k|		memcpy(dnsLayer->m_Data + offsetInLayer, m_ExternalRawData, getSize());
  264|  41.5k|		m_DnsLayer = dnsLayer;
  265|  41.5k|		m_OffsetInLayer = offsetInLayer;
  266|  41.5k|		m_ExternalRawData = nullptr;
  267|  41.5k|	}
_ZN4pcpp11DnsResource6setTTLEj:
  276|  38.8k|	{
  277|       |		newTTL = htobe32(newTTL);
  278|  38.8k|		memcpy(getRawData() + m_NameLength + 2 * sizeof(uint16_t), &newTTL, sizeof(uint32_t));
  279|  38.8k|	}
_ZNK4pcpp11DnsResource13getDataLengthEv:
  282|   226k|	{
  283|       |
  284|   226k|		size_t sizeToRead = m_NameLength + 2 * sizeof(uint16_t) + sizeof(uint32_t);
  285|       |
  286|       |		// Heap buffer overflow may occur here, check boundary of m_DnsLayer->m_Data first
  287|       |		// Due to dataLength which is uint16_t, here m_DnsLayer->m_Data must have at least 2 bytes to read
  288|   226k|		if (m_DnsLayer && m_OffsetInLayer + sizeToRead >= m_DnsLayer->m_DataLen - 1)
  ------------------
  |  Branch (288:7): [True: 117k, False: 108k]
  |  Branch (288:21): [True: 17.1k, False: 100k]
  ------------------
  289|  17.1k|		{
  290|  17.1k|			return 0;
  291|  17.1k|		}
  292|       |
  293|   209k|		uint16_t dataLength = *reinterpret_cast<uint16_t*>(getRawData() + sizeToRead);
  294|       |		return be16toh(dataLength);
  295|   226k|	}
_ZN4pcpp11DnsResource7setDataEPNS_16IDnsResourceDataE:
  342|  38.8k|	{
  343|       |		// convert data to byte array according to the DNS type
  344|  38.8k|		size_t dataLength = 0;
  345|  38.8k|		uint8_t dataAsByteArr[4096];
  346|       |
  347|  38.8k|		if (data == nullptr)
  ------------------
  |  Branch (347:7): [True: 0, False: 38.8k]
  ------------------
  348|      0|		{
  349|      0|			PCPP_LOG_ERROR("Given data is nullptr");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  350|      0|			return false;
  351|      0|		}
  352|       |
  353|  38.8k|		switch (getDnsType())
  354|  38.8k|		{
  355|  25.9k|		case DNS_TYPE_A:
  ------------------
  |  Branch (355:3): [True: 25.9k, False: 12.9k]
  ------------------
  356|  25.9k|		{
  357|  25.9k|			if (!data->isTypeOf<IPv4DnsResourceData>())
  ------------------
  |  Branch (357:8): [True: 0, False: 25.9k]
  ------------------
  358|      0|			{
  359|      0|				PCPP_LOG_ERROR("DNS record is of type A but given data isn't of type IPv4DnsResourceData");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  360|      0|				return false;
  361|      0|			}
  362|  25.9k|			break;
  363|  25.9k|		}
  364|       |
  365|  25.9k|		case DNS_TYPE_AAAA:
  ------------------
  |  Branch (365:3): [True: 0, False: 38.8k]
  ------------------
  366|      0|		{
  367|      0|			if (!data->isTypeOf<IPv6DnsResourceData>())
  ------------------
  |  Branch (367:8): [True: 0, False: 0]
  ------------------
  368|      0|			{
  369|      0|				PCPP_LOG_ERROR("DNS record is of type AAAA but given data isn't of type IPv6DnsResourceData");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  370|      0|				return false;
  371|      0|			}
  372|      0|			break;
  373|      0|		}
  374|       |
  375|      0|		case DNS_TYPE_NS:
  ------------------
  |  Branch (375:3): [True: 0, False: 38.8k]
  ------------------
  376|      0|		case DNS_TYPE_CNAME:
  ------------------
  |  Branch (376:3): [True: 0, False: 38.8k]
  ------------------
  377|      0|		case DNS_TYPE_DNAM:
  ------------------
  |  Branch (377:3): [True: 0, False: 38.8k]
  ------------------
  378|      0|		case DNS_TYPE_PTR:
  ------------------
  |  Branch (378:3): [True: 0, False: 38.8k]
  ------------------
  379|      0|		{
  380|      0|			if (!data->isTypeOf<StringDnsResourceData>())
  ------------------
  |  Branch (380:8): [True: 0, False: 0]
  ------------------
  381|      0|			{
  382|      0|				PCPP_LOG_ERROR(
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  383|      0|				    "DNS record is of type NS, CNAME, DNAM or PTR but given data isn't of type StringDnsResourceData");
  384|      0|				return false;
  385|      0|			}
  386|      0|			break;
  387|      0|		}
  388|       |
  389|      0|		case DNS_TYPE_MX:
  ------------------
  |  Branch (389:3): [True: 0, False: 38.8k]
  ------------------
  390|      0|		{
  391|      0|			if (!data->isTypeOf<MxDnsResourceData>())
  ------------------
  |  Branch (391:8): [True: 0, False: 0]
  ------------------
  392|      0|			{
  393|      0|				PCPP_LOG_ERROR("DNS record is of type MX but given data isn't of type MxDnsResourceData");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  394|      0|				return false;
  395|      0|			}
  396|      0|			break;
  397|      0|		}
  398|       |
  399|  12.9k|		default:
  ------------------
  |  Branch (399:3): [True: 12.9k, False: 25.9k]
  ------------------
  400|  12.9k|		{
  401|       |			// do nothing
  402|  12.9k|		}
  403|  38.8k|		}
  404|       |
  405|       |		// convert the IDnsResourceData to byte array
  406|  38.8k|		if (!data->toByteArr(dataAsByteArr, dataLength, this))
  ------------------
  |  Branch (406:7): [True: 0, False: 38.8k]
  ------------------
  407|      0|		{
  408|      0|			PCPP_LOG_ERROR("Cannot convert DNS resource data to byte array, data is probably invalid");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  409|      0|			return false;
  410|      0|		}
  411|       |
  412|  38.8k|		size_t dataLengthOffset = m_NameLength + (2 * sizeof(uint16_t)) + sizeof(uint32_t);
  413|  38.8k|		size_t dataOffset = dataLengthOffset + sizeof(uint16_t);
  414|       |
  415|  38.8k|		if (m_DnsLayer != nullptr)
  ------------------
  |  Branch (415:7): [True: 0, False: 38.8k]
  ------------------
  416|      0|		{
  417|      0|			size_t curLength = getDataLength();
  418|      0|			if (dataLength > curLength)
  ------------------
  |  Branch (418:8): [True: 0, False: 0]
  ------------------
  419|      0|			{
  420|      0|				if (!m_DnsLayer->extendLayer(m_OffsetInLayer + dataOffset, dataLength - curLength, this))
  ------------------
  |  Branch (420:9): [True: 0, False: 0]
  ------------------
  421|      0|				{
  422|      0|					PCPP_LOG_ERROR("Couldn't set data for DNS query, unable to extend layer");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  423|      0|					return false;
  424|      0|				}
  425|      0|			}
  426|      0|			else if (dataLength < curLength)
  ------------------
  |  Branch (426:13): [True: 0, False: 0]
  ------------------
  427|      0|			{
  428|      0|				if (!m_DnsLayer->shortenLayer(m_OffsetInLayer + dataOffset, curLength - dataLength, this))
  ------------------
  |  Branch (428:9): [True: 0, False: 0]
  ------------------
  429|      0|				{
  430|      0|					PCPP_LOG_ERROR("Couldn't set data for DNS query, unable to shorten layer");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  431|      0|					return false;
  432|      0|				}
  433|      0|			}
  434|      0|		}
  435|       |
  436|       |		// write data to resource
  437|  38.8k|		memcpy(getRawData() + dataOffset, dataAsByteArr, dataLength);
  438|       |		// update data length in resource
  439|  38.8k|		dataLength = htobe16((uint16_t)dataLength);
  440|  38.8k|		memcpy(getRawData() + dataLengthOffset, &dataLength, sizeof(uint16_t));
  441|       |
  442|  38.8k|		return true;
  443|  38.8k|	}
_ZN4pcpp11DnsResource17setCustomDnsClassEt:
  452|  10.3k|	{
  453|  10.3k|		memcpy(getRawData() + m_NameLength + sizeof(uint16_t), &customValue, sizeof(uint16_t));
  454|  10.3k|	}
DnsResource.cpp:_ZN4pcppL7cleanupEPcS0_m:
   34|   108k|	{
   35|       |		// remove the last "."
   36|   108k|		if (resultPtr > result)
  ------------------
  |  Branch (36:7): [True: 81.2k, False: 27.1k]
  ------------------
   37|  81.2k|		{
   38|  81.2k|			result[resultPtr - result - 1] = 0;
   39|  81.2k|		}
   40|       |
   41|   108k|		if (resultPtr - result < 256)
  ------------------
  |  Branch (41:7): [True: 108k, False: 0]
  ------------------
   42|   108k|		{
   43|       |			// add the last '\0' to encodedNameLength
   44|   108k|			resultPtr[0] = 0;
   45|   108k|			encodedNameLength++;
   46|   108k|		}
   47|       |
   48|   108k|		return encodedNameLength;
   49|   108k|	}

_ZNK4pcpp19IPv4DnsResourceData9toByteArrEPhRmPNS_12IDnsResourceE:
   67|  25.9k|	{
   68|  25.9k|		arrLength = sizeof(uint32_t);
   69|  25.9k|		memcpy(arr, m_Data.toBytes(), sizeof(uint32_t));
   70|  25.9k|		return true;
   71|  25.9k|	}
_ZN4pcpp22GenericDnsResourceDataC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  152|  12.9k|	{
  153|  12.9k|		m_Data = nullptr;
  154|  12.9k|		uint8_t tempDataArr[2048];
  155|  12.9k|		m_DataLen = hexStringToByteArray(dataAsHexString, tempDataArr, 2048);
  156|  12.9k|		if (m_DataLen != 0)
  ------------------
  |  Branch (156:7): [True: 12.9k, False: 0]
  ------------------
  157|  12.9k|		{
  158|  12.9k|			m_Data = new uint8_t[m_DataLen];
  159|  12.9k|			memcpy(m_Data, tempDataArr, m_DataLen);
  160|  12.9k|		}
  161|  12.9k|	}
_ZNK4pcpp22GenericDnsResourceData9toByteArrEPhRmPNS_12IDnsResourceE:
  204|  12.9k|	{
  205|  12.9k|		if (m_DataLen == 0 || m_Data == nullptr)
  ------------------
  |  Branch (205:7): [True: 0, False: 12.9k]
  |  Branch (205:25): [True: 0, False: 12.9k]
  ------------------
  206|      0|		{
  207|      0|			PCPP_LOG_ERROR("Input data is null or illegal" << "|m_DataLen:" << m_DataLen);
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  208|      0|			return false;
  209|      0|		}
  210|       |
  211|  12.9k|		arrLength = m_DataLen;
  212|  12.9k|		memcpy(arr, m_Data, m_DataLen);
  213|  12.9k|		return true;
  214|  12.9k|	}

_ZN4pcpp9DoIpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  199|  49.1k|	    : Layer(data, dataLen, prevLayer, packet, DOIP)
  200|  49.1k|	{}
_ZN4pcpp9DoIpLayer11isDataValidEPhm:
  203|  57.1k|	{
  204|  57.1k|		if (data == nullptr || dataLen < DOIP_HEADER_LEN)
  ------------------
  |  Branch (204:7): [True: 0, False: 57.1k]
  |  Branch (204:26): [True: 855, False: 56.2k]
  ------------------
  205|    855|			return false;
  206|       |
  207|  56.2k|		auto* doipHeader = reinterpret_cast<doiphdr*>(data);
  208|  56.2k|		const uint8_t version = doipHeader->protocolVersion;
  209|  56.2k|		const uint8_t inVersion = doipHeader->invertProtocolVersion;
  210|  56.2k|		const uint16_t payloadTypeRaw = doipHeader->payloadType;
  211|  56.2k|		const uint32_t lengthRaw = doipHeader->payloadLength;
  212|       |
  213|  56.2k|		if (!isPayloadTypeValid(be16toh(payloadTypeRaw)))
  ------------------
  |  Branch (213:7): [True: 1.87k, False: 54.3k]
  ------------------
  214|  1.87k|			return false;
  215|       |		// if payload type is validated, we ensure passing a valid type to isProtocolVersionValid()
  216|  54.3k|		const DoIpPayloadTypes payloadType = static_cast<DoIpPayloadTypes>(be16toh(payloadTypeRaw));
  217|  54.3k|		if (!isProtocolVersionValid(version, inVersion, payloadType))
  ------------------
  |  Branch (217:7): [True: 2.00k, False: 52.3k]
  ------------------
  218|  2.00k|			return false;
  219|       |
  220|  52.3k|		if (!isPayloadLengthValid(be32toh(lengthRaw), dataLen))
  ------------------
  |  Branch (220:7): [True: 3.06k, False: 49.2k]
  ------------------
  221|  3.06k|			return false;
  222|       |
  223|  49.2k|		return true;
  224|  52.3k|	}
_ZN4pcpp9DoIpLayer14parseDoIpLayerEPhmPNS_5LayerEPNS_6PacketE:
  227|  49.2k|	{
  228|  49.2k|		doiphdr* doipHeader = reinterpret_cast<doiphdr*>(data);
  229|  49.2k|		uint16_t payloadType = doipHeader->payloadType;
  230|  49.2k|		DoIpPayloadTypes detectedPayloadType = static_cast<DoIpPayloadTypes>(be16toh(payloadType));
  231|       |
  232|  49.2k|		switch (detectedPayloadType)
  233|  49.2k|		{
  234|  7.12k|		case DoIpPayloadTypes::GENERIC_HEADER_NACK:
  ------------------
  |  Branch (234:3): [True: 7.12k, False: 42.1k]
  ------------------
  235|  7.12k|			return (DoIpGenericHeaderNack::isDataLenValid(dataLen))
  ------------------
  |  Branch (235:11): [True: 7.12k, False: 0]
  ------------------
  236|  7.12k|			           ? new DoIpGenericHeaderNack(data, dataLen, prevLayer, packet)
  237|  7.12k|			           : nullptr;
  238|  3.80k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST:
  ------------------
  |  Branch (238:3): [True: 3.80k, False: 45.4k]
  ------------------
  239|  3.80k|			return (DoIpVehicleIdentificationRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (239:11): [True: 3.80k, False: 0]
  ------------------
  240|  3.80k|			           ? new DoIpVehicleIdentificationRequest(data, dataLen, prevLayer, packet)
  241|  3.80k|			           : nullptr;
  242|  1.65k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID:
  ------------------
  |  Branch (242:3): [True: 1.65k, False: 47.6k]
  ------------------
  243|  1.65k|			return (DoIpVehicleIdentificationRequestWithEID::isDataLenValid(dataLen))
  ------------------
  |  Branch (243:11): [True: 1.63k, False: 18]
  ------------------
  244|  1.65k|			           ? new DoIpVehicleIdentificationRequestWithEID(data, dataLen, prevLayer, packet)
  245|  1.65k|			           : nullptr;
  246|  1.61k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN:
  ------------------
  |  Branch (246:3): [True: 1.61k, False: 47.6k]
  ------------------
  247|  1.61k|			return (DoIpVehicleIdentificationRequestWithVIN::isDataLenValid(dataLen))
  ------------------
  |  Branch (247:11): [True: 1.61k, False: 0]
  ------------------
  248|  1.61k|			           ? new DoIpVehicleIdentificationRequestWithVIN(data, dataLen, prevLayer, packet)
  249|  1.61k|			           : nullptr;
  250|  1.74k|		case DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE:
  ------------------
  |  Branch (250:3): [True: 1.74k, False: 47.5k]
  ------------------
  251|  1.74k|			return (DoIpVehicleAnnouncementMessage::isDataLenValid(dataLen))
  ------------------
  |  Branch (251:11): [True: 1.74k, False: 0]
  ------------------
  252|  1.74k|			           ? new DoIpVehicleAnnouncementMessage(data, dataLen, prevLayer, packet)
  253|  1.74k|			           : nullptr;
  254|  2.06k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST:
  ------------------
  |  Branch (254:3): [True: 2.06k, False: 47.2k]
  ------------------
  255|  2.06k|			return (DoIpRoutingActivationRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (255:11): [True: 2.06k, False: 0]
  ------------------
  256|  2.06k|			           ? new DoIpRoutingActivationRequest(data, dataLen, prevLayer, packet)
  257|  2.06k|			           : nullptr;
  258|  1.62k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE:
  ------------------
  |  Branch (258:3): [True: 1.62k, False: 47.6k]
  ------------------
  259|  1.62k|			return (DoIpRoutingActivationResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (259:11): [True: 1.62k, False: 0]
  ------------------
  260|  1.62k|			           ? new DoIpRoutingActivationResponse(data, dataLen, prevLayer, packet)
  261|  1.62k|			           : nullptr;
  262|  4.83k|		case DoIpPayloadTypes::ALIVE_CHECK_REQUEST:
  ------------------
  |  Branch (262:3): [True: 4.83k, False: 44.4k]
  ------------------
  263|  4.83k|			return (DoIpAliveCheckRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (263:11): [True: 4.83k, False: 0]
  ------------------
  264|  4.83k|			           ? new DoIpAliveCheckRequest(data, dataLen, prevLayer, packet)
  265|  4.83k|			           : nullptr;
  266|  2.81k|		case DoIpPayloadTypes::ALIVE_CHECK_RESPONSE:
  ------------------
  |  Branch (266:3): [True: 2.81k, False: 46.4k]
  ------------------
  267|  2.81k|			return (DoIpAliveCheckResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (267:11): [True: 2.81k, False: 0]
  ------------------
  268|  2.81k|			           ? new DoIpAliveCheckResponse(data, dataLen, prevLayer, packet)
  269|  2.81k|			           : nullptr;
  270|  4.57k|		case DoIpPayloadTypes::ENTITY_STATUS_REQUEST:
  ------------------
  |  Branch (270:3): [True: 4.57k, False: 44.7k]
  ------------------
  271|  4.57k|			return (DoIpEntityStatusRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (271:11): [True: 4.44k, False: 132]
  ------------------
  272|  4.57k|			           ? new DoIpEntityStatusRequest(data, dataLen, prevLayer, packet)
  273|  4.57k|			           : nullptr;
  274|  5.37k|		case DoIpPayloadTypes::ENTITY_STATUS_RESPONSE:
  ------------------
  |  Branch (274:3): [True: 5.37k, False: 43.9k]
  ------------------
  275|  5.37k|			return (DoIpEntityStatusResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (275:11): [True: 5.37k, False: 0]
  ------------------
  276|  5.37k|			           ? new DoIpEntityStatusResponse(data, dataLen, prevLayer, packet)
  277|  5.37k|			           : nullptr;
  278|  3.16k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST:
  ------------------
  |  Branch (278:3): [True: 3.16k, False: 46.1k]
  ------------------
  279|  3.16k|			return (DoIpDiagnosticPowerModeRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (279:11): [True: 3.16k, False: 0]
  ------------------
  280|  3.16k|			           ? new DoIpDiagnosticPowerModeRequest(data, dataLen, prevLayer, packet)
  281|  3.16k|			           : nullptr;
  282|  1.20k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE:
  ------------------
  |  Branch (282:3): [True: 1.20k, False: 48.0k]
  ------------------
  283|  1.20k|			return (DoIpDiagnosticPowerModeResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (283:11): [True: 1.20k, False: 0]
  ------------------
  284|  1.20k|			           ? new DoIpDiagnosticPowerModeResponse(data, dataLen, prevLayer, packet)
  285|  1.20k|			           : nullptr;
  286|  6.16k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE:
  ------------------
  |  Branch (286:3): [True: 6.16k, False: 43.1k]
  ------------------
  287|  6.16k|			return (DoIpDiagnosticMessage::isDataLenValid(dataLen))
  ------------------
  |  Branch (287:11): [True: 6.16k, False: 0]
  ------------------
  288|  6.16k|			           ? new DoIpDiagnosticMessage(data, dataLen, prevLayer, packet)
  289|  6.16k|			           : nullptr;
  290|    665|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK:
  ------------------
  |  Branch (290:3): [True: 665, False: 48.6k]
  ------------------
  291|    665|			return (DoIpDiagnosticMessageAck::isDataLenValid(dataLen))
  ------------------
  |  Branch (291:11): [True: 665, False: 0]
  ------------------
  292|    665|			           ? new DoIpDiagnosticMessageAck(data, dataLen, prevLayer, packet)
  293|    665|			           : nullptr;
  294|    870|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK:
  ------------------
  |  Branch (294:3): [True: 870, False: 48.4k]
  ------------------
  295|    870|			return (DoIpDiagnosticMessageNack::isDataLenValid(dataLen))
  ------------------
  |  Branch (295:11): [True: 870, False: 0]
  ------------------
  296|    870|			           ? new DoIpDiagnosticMessageNack(data, dataLen, prevLayer, packet)
  297|    870|			           : nullptr;
  298|      0|		default:
  ------------------
  |  Branch (298:3): [True: 0, False: 49.2k]
  ------------------
  299|      0|			return nullptr;
  300|  49.2k|		}
  301|  49.2k|	}
_ZNK4pcpp9DoIpLayer19getPayloadTypeAsStrEv:
  353|  17.9k|	{
  354|  17.9k|		auto it = DoIpEnumToStringPayloadType.find(getPayloadType());
  355|  17.9k|		return (it != DoIpEnumToStringPayloadType.end()) ? it->second : "Unknown Payload Type";
  ------------------
  |  Branch (355:10): [True: 17.9k, False: 0]
  ------------------
  356|  17.9k|	}
_ZNK4pcpp9DoIpLayer8toStringEv:
  369|  17.9k|	{
  370|  17.9k|		std::ostringstream oss;
  371|  17.9k|		oss << "DoIP Layer, " << getPayloadTypeAsStr() << " (0x" << std::hex << std::setw(4) << std::setfill('0')
  372|  17.9k|		    << static_cast<uint16_t>(getPayloadType()) << ")";
  373|  17.9k|		return oss.str();
  374|  17.9k|	}
_ZN4pcpp9DoIpLayer14parseNextLayerEv:
  385|  49.1k|	{
  386|  49.1k|		if (getPayloadType() == DoIpPayloadTypes::DIAGNOSTIC_MESSAGE)
  ------------------
  |  Branch (386:7): [True: 6.16k, False: 42.9k]
  ------------------
  387|  6.16k|		{
  388|  6.16k|			size_t headerLen = getHeaderLen();
  389|       |
  390|  6.16k|			if (m_DataLen <= headerLen)
  ------------------
  |  Branch (390:8): [True: 0, False: 6.16k]
  ------------------
  391|      0|			{
  392|      0|				return;
  393|      0|			}
  394|       |
  395|  6.16k|			uint8_t* payload = m_Data + headerLen;
  396|  6.16k|			size_t payloadLen = m_DataLen - headerLen;
  397|       |
  398|  6.16k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  399|  6.16k|		}
  400|  49.1k|	}
_ZN4pcpp21DoIpGenericHeaderNackC2EPhmPNS_5LayerEPNS_6PacketE:
  406|  7.12k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  407|  7.12k|	{}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithEIDC2EPhmPNS_5LayerEPNS_6PacketE:
  453|  1.63k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  454|  1.63k|	{}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithVINC2EPhmPNS_5LayerEPNS_6PacketE:
  486|  1.61k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  487|  1.61k|	{}
_ZN4pcpp30DoIpVehicleAnnouncementMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  519|  1.74k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  520|  1.74k|	{}
_ZN4pcpp28DoIpRoutingActivationRequestC2EPhmPNS_5LayerEPNS_6PacketE:
  659|  2.06k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  660|  2.06k|	{}
_ZN4pcpp29DoIpRoutingActivationResponseC2EPhmPNS_5LayerEPNS_6PacketE:
  774|  1.62k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  775|  1.62k|	{}
_ZN4pcpp22DoIpAliveCheckResponseC2EPhmPNS_5LayerEPNS_6PacketE:
  904|  2.81k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  905|  2.81k|	{}
_ZN4pcpp24DoIpEntityStatusResponseC2EPhmPNS_5LayerEPNS_6PacketE:
  942|  5.37k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  943|  5.37k|	{}
_ZN4pcpp31DoIpDiagnosticPowerModeResponseC2EPhmPNS_5LayerEPNS_6PacketE:
 1058|  1.20k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
 1059|  1.20k|	{}
_ZN4pcpp18DoIpDiagnosticBaseC2EPhmPNS_5LayerEPNS_6PacketE:
 1097|  7.70k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
 1098|  7.70k|	{}
_ZN4pcpp21DoIpDiagnosticMessageC2EPhmPNS_5LayerEPNS_6PacketE:
 1124|  6.16k|	    : DoIpDiagnosticBase(data, dataLen, prevLayer, packet)
 1125|  6.16k|	{}
_ZN4pcpp33DoIpDiagnosticResponseMessageBaseC2EPhmPNS_5LayerEPNS_6PacketE:
 1176|  1.53k|	    : DoIpDiagnosticBase(data, dataLen, prevLayer, packet)
 1177|  1.53k|	{}
_ZN4pcpp24DoIpDiagnosticMessageAckC2EPhmPNS_5LayerEPNS_6PacketE:
 1246|    665|	    : DoIpDiagnosticResponseMessageBase(data, dataLen, prevLayer, packet)
 1247|    665|	{}
_ZN4pcpp25DoIpDiagnosticMessageNackC2EPhmPNS_5LayerEPNS_6PacketE:
 1289|    870|	    : DoIpDiagnosticResponseMessageBase(data, dataLen, prevLayer, packet)
 1290|    870|	{}

_ZN4pcpp12EthDot3Layer14parseNextLayerEv:
   23|  3.19k|	{
   24|  3.19k|		if (m_DataLen <= sizeof(ether_dot3_header))
  ------------------
  |  Branch (24:7): [True: 378, False: 2.81k]
  ------------------
   25|    378|			return;
   26|       |
   27|  2.81k|		uint8_t* payload = m_Data + sizeof(ether_dot3_header);
   28|  2.81k|		size_t payloadLen = m_DataLen - sizeof(ether_dot3_header);
   29|       |
   30|  2.81k|		tryConstructNextLayerWithFallback<LLCLayer, PayloadLayer>(payload, payloadLen);
   31|  2.81k|	}
_ZNK4pcpp12EthDot3Layer8toStringEv:
   34|  2.01k|	{
   35|  2.01k|		return "IEEE 802.3 Ethernet, Src: " + getSourceMac().toString() + ", Dst: " + getDestMac().toString();
   36|  2.01k|	}
_ZN4pcpp12EthDot3Layer11isDataValidEPKhm:
   39|  3.20k|	{
   40|  3.20k|		if (dataLen >= sizeof(ether_dot3_header))
  ------------------
  |  Branch (40:7): [True: 3.19k, False: 14]
  ------------------
   41|  3.19k|		{
   42|       |			// LSAPs: ... Such a length must, when considered as an
   43|       |			// unsigned integer, be less than 0x5DC or it could be mistaken as
   44|       |			// an Ethertype...
   45|       |			//
   46|       |			// From: https://tools.ietf.org/html/rfc5342#section-2.3.2.1
   47|       |			// More: IEEE Std 802.3 Clause 3.2.6
   48|  3.19k|			return be16toh(*reinterpret_cast<const uint16_t*>(data + 12)) <= static_cast<uint16_t>(0x05DC);
   49|  3.19k|		}
   50|     14|		else
   51|     14|		{
   52|     14|			return false;
   53|     14|		}
   54|  3.20k|	}

_ZN4pcpp8EthLayer14parseNextLayerEv:
   29|   806k|	{
   30|   806k|		if (m_DataLen <= sizeof(ether_header))
  ------------------
  |  Branch (30:7): [True: 456, False: 805k]
  ------------------
   31|    456|			return;
   32|       |
   33|   805k|		ether_header* hdr = getEthHeader();
   34|   805k|		uint8_t* payload = m_Data + sizeof(ether_header);
   35|   805k|		size_t payloadLen = m_DataLen - sizeof(ether_header);
   36|       |
   37|   805k|		switch (be16toh(hdr->etherType))
  ------------------
  |  Branch (37:11): [True: 802k, False: 3.25k]
  ------------------
   38|   805k|		{
   39|   604k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|   604k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (39:3): [True: 604k, False: 201k]
  ------------------
   40|   604k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   41|   604k|			break;
   42|  52.9k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|  52.9k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (42:3): [True: 52.9k, False: 752k]
  ------------------
   43|  52.9k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   44|  52.9k|			break;
   45|  2.99k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   33|  2.99k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (45:3): [True: 2.99k, False: 802k]
  ------------------
   46|  2.99k|			tryConstructNextLayerWithFallback<ArpLayer, PayloadLayer>(payload, payloadLen);
   47|  2.99k|			break;
   48|   142k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|   142k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (48:3): [True: 142k, False: 663k]
  ------------------
   49|   142k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   61|   142k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (49:3): [True: 0, False: 805k]
  ------------------
   50|   142k|			tryConstructNextLayerWithFallback<VlanLayer, PayloadLayer>(payload, payloadLen);
   51|   142k|			break;
   52|      0|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   53|      0|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (52:3): [True: 0, False: 805k]
  ------------------
   53|      0|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   54|      0|			break;
   55|      0|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   51|      0|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (55:3): [True: 0, False: 805k]
  ------------------
   56|      0|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   57|      0|			break;
   58|      0|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|      0|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (58:3): [True: 0, False: 805k]
  ------------------
   59|      0|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
   60|      0|			break;
   61|      0|		case PCPP_ETHERTYPE_WAKE_ON_LAN:
  ------------------
  |  |   63|      0|#define PCPP_ETHERTYPE_WAKE_ON_LAN 0x0842
  ------------------
  |  Branch (61:3): [True: 0, False: 805k]
  ------------------
   62|      0|			tryConstructNextLayerWithFallback<WakeOnLanLayer, PayloadLayer>(payload, payloadLen);
   63|      0|			break;
   64|   805k|		}
   65|       |
   66|       |		// If no next layer was constructed, assume it's a payload layer
   67|   805k|		if (!hasNextLayer())
  ------------------
  |  Branch (67:7): [True: 3.25k, False: 802k]
  ------------------
   68|  3.25k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   69|   805k|	}
_ZN4pcpp8EthLayer22computeCalculateFieldsEv:
   72|   146k|	{
   73|   146k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (73:7): [True: 228, False: 146k]
  ------------------
   74|    228|			return;
   75|       |
   76|   146k|		switch (m_NextLayer->getProtocol())
   77|   146k|		{
   78|   116k|		case IPv4:
  ------------------
  |  Branch (78:3): [True: 116k, False: 30.3k]
  ------------------
   79|   116k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_IP);
   80|   116k|			break;
   81|  10.7k|		case IPv6:
  ------------------
  |  Branch (81:3): [True: 10.7k, False: 135k]
  ------------------
   82|  10.7k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_IPV6);
   83|  10.7k|			break;
   84|    971|		case ARP:
  ------------------
  |  Branch (84:3): [True: 971, False: 145k]
  ------------------
   85|    971|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_ARP);
   86|    971|			break;
   87|  16.8k|		case VLAN:
  ------------------
  |  Branch (87:3): [True: 16.8k, False: 129k]
  ------------------
   88|  16.8k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_VLAN);
   89|  16.8k|			break;
   90|  1.75k|		default:
  ------------------
  |  Branch (90:3): [True: 1.75k, False: 144k]
  ------------------
   91|  1.75k|			return;
   92|   146k|		}
   93|   146k|	}
_ZNK4pcpp8EthLayer8toStringEv:
   96|   293k|	{
   97|   293k|		return "Ethernet II Layer, Src: " + getSourceMac().toString() + ", Dst: " + getDestMac().toString();
   98|   293k|	}
_ZN4pcpp8EthLayer11isDataValidEPKhm:
  101|   809k|	{
  102|   809k|		if (dataLen >= sizeof(ether_header))
  ------------------
  |  Branch (102:7): [True: 809k, False: 14]
  ------------------
  103|   809k|		{
  104|       |			// Ethertypes: These are 16-bit identifiers appearing as the initial
  105|       |			// two octets after the MAC destination and source (or after a
  106|       |			// tag) which, when considered as an unsigned integer, are equal
  107|       |			// to or larger than 0x0600.
  108|       |			//
  109|       |			// From: https://tools.ietf.org/html/rfc5342#section-2.3.2.1
  110|       |			// More: IEEE Std 802.3 Clause 3.2.6
  111|   809k|			return be16toh(*reinterpret_cast<const uint16_t*>(data + 12)) >= static_cast<uint16_t>(0x0600);
  112|   809k|		}
  113|     14|		else
  114|     14|		{
  115|     14|			return false;
  116|     14|		}
  117|   809k|	}

_ZNK4pcpp16FtpResponseLayer13getStatusCodeEv:
  230|  1.93k|	{
  231|  1.93k|		return static_cast<FtpStatusCode>(atoi(getCommandInternal().c_str()));
  232|  1.93k|	}
_ZNK4pcpp16FtpResponseLayer19getStatusCodeStringEv:
  235|  3.87k|	{
  236|  3.87k|		return getCommandInternal();
  237|  3.87k|	}
_ZNK4pcpp16FtpResponseLayer15getStatusOptionEb:
  245|  3.87k|	{
  246|  3.87k|		if (removeEscapeCharacters)
  ------------------
  |  Branch (246:7): [True: 1.93k, False: 1.93k]
  ------------------
  247|  1.93k|		{
  248|  1.93k|			std::stringstream ss;
  249|  1.93k|			std::string field = getCommandOptionInternal();
  250|  38.2k|			for (size_t idx = 0; idx < field.size(); ++idx)
  ------------------
  |  Branch (250:25): [True: 36.3k, False: 1.93k]
  ------------------
  251|  36.3k|			{
  252|  36.3k|				if (int(field.c_str()[idx]) < 127 && int(field.c_str()[idx]) > 31)  // From SPACE to ~
  ------------------
  |  Branch (252:9): [True: 36.1k, False: 187]
  |  Branch (252:42): [True: 23.6k, False: 12.4k]
  ------------------
  253|  23.6k|					ss << field.c_str()[idx];
  254|  36.3k|			}
  255|  1.93k|			return ss.str();
  256|  1.93k|		}
  257|  1.93k|		return getCommandOptionInternal();
  258|  3.87k|	}
_ZNK4pcpp16FtpResponseLayer8toStringEv:
  382|  3.87k|	{
  383|  3.87k|		return "FTP Response: " + getStatusCodeString();
  384|  3.87k|	}
_ZNK4pcpp12FtpDataLayer8toStringEv:
  387|    922|	{
  388|    922|		return "FTP Data";
  389|    922|	}

_ZN4pcpp8GreLayer13getGREVersionEPhm:
   24|  83.6k|	{
   25|  83.6k|		if (greDataLen < sizeof(gre_basic_header))
  ------------------
  |  Branch (25:7): [True: 0, False: 83.6k]
  ------------------
   26|      0|			return UnknownProtocol;
   27|       |
   28|  83.6k|		uint8_t version = *(greData + 1);
   29|  83.6k|		version &= 0x07;
   30|  83.6k|		if (version == 0)
  ------------------
  |  Branch (30:7): [True: 9.79k, False: 73.8k]
  ------------------
   31|  9.79k|			return GREv0;
   32|  73.8k|		else if (version == 1)
  ------------------
  |  Branch (32:12): [True: 73.6k, False: 161]
  ------------------
   33|  73.6k|			return GREv1;
   34|    161|		else
   35|    161|			return UnknownProtocol;
   36|  83.6k|	}
_ZNK4pcpp8GreLayer13getFieldValueENS0_8GreFieldEb:
   39|  18.3k|	{
   40|  18.3k|		uint8_t* ptr = m_Data + sizeof(gre_basic_header);
   41|       |
   42|  18.3k|		auto* header = reinterpret_cast<gre_basic_header*>(m_Data);
   43|       |
   44|  18.3k|		constexpr int numGreField = 4;
   45|  46.5k|		for (int curFieldAsInt = static_cast<int>(GreChecksumOrRouting); curFieldAsInt < numGreField; ++curFieldAsInt)
  ------------------
  |  Branch (45:68): [True: 46.5k, False: 0]
  ------------------
   46|  46.5k|		{
   47|  46.5k|			const GreField curField = static_cast<GreField>(curFieldAsInt);
   48|  46.5k|			bool curFieldExists = false;
   49|       |
   50|  46.5k|			uint8_t* origPtr = ptr;
   51|       |
   52|  46.5k|			switch (curField)
   53|  46.5k|			{
   54|  18.3k|			case GreChecksumOrRouting:
  ------------------
  |  Branch (54:4): [True: 18.3k, False: 28.1k]
  ------------------
   55|  18.3k|				if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (55:9): [True: 8.64k, False: 9.74k]
  |  Branch (55:37): [True: 528, False: 9.21k]
  ------------------
   56|  9.17k|				{
   57|  9.17k|					curFieldExists = true;
   58|  9.17k|					ptr += sizeof(uint32_t);
   59|  9.17k|				}
   60|  18.3k|				break;
   61|  12.2k|			case GreKey:
  ------------------
  |  Branch (61:4): [True: 12.2k, False: 34.3k]
  ------------------
   62|  12.2k|				if (header->keyBit == 1)
  ------------------
  |  Branch (62:9): [True: 10.5k, False: 1.71k]
  ------------------
   63|  10.5k|				{
   64|  10.5k|					curFieldExists = true;
   65|  10.5k|					ptr += sizeof(uint32_t);
   66|  10.5k|				}
   67|  12.2k|				break;
   68|  11.7k|			case GreSeq:
  ------------------
  |  Branch (68:4): [True: 11.7k, False: 34.7k]
  ------------------
   69|  11.7k|				if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (69:9): [True: 10.9k, False: 846]
  ------------------
   70|  10.9k|				{
   71|  10.9k|					curFieldExists = true;
   72|  10.9k|					ptr += sizeof(uint32_t);
   73|  10.9k|				}
   74|  11.7k|				break;
   75|  4.13k|			case GreAck:
  ------------------
  |  Branch (75:4): [True: 4.13k, False: 42.4k]
  ------------------
   76|  4.13k|				if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (76:9): [True: 4.13k, False: 0]
  ------------------
   77|  4.13k|				{
   78|  4.13k|					curFieldExists = true;
   79|  4.13k|					ptr += sizeof(uint32_t);
   80|  4.13k|				}
   81|  4.13k|				break;
   82|      0|			default:  // shouldn't get there
  ------------------
  |  Branch (82:4): [True: 0, False: 46.5k]
  ------------------
   83|      0|				return nullptr;
   84|  46.5k|			}
   85|       |
   86|  46.5k|			if (field == curField)
  ------------------
  |  Branch (86:8): [True: 18.3k, False: 28.1k]
  ------------------
   87|  18.3k|			{
   88|  18.3k|				if (curFieldExists || returnOffsetEvenIfFieldMissing)
  ------------------
  |  Branch (88:9): [True: 18.3k, False: 0]
  |  Branch (88:27): [True: 0, False: 0]
  ------------------
   89|  18.3k|					return origPtr;
   90|       |
   91|      0|				return nullptr;
   92|  18.3k|			}
   93|  46.5k|		}  // for
   94|       |
   95|      0|		return nullptr;
   96|  18.3k|	}
_ZN4pcpp8GreLayer27computeCalculateFieldsInnerEv:
   99|  9.29k|	{
  100|  9.29k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  101|  9.29k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (101:7): [True: 9.24k, False: 48]
  ------------------
  102|  9.24k|		{
  103|  9.24k|			switch (m_NextLayer->getProtocol())
  104|  9.24k|			{
  105|     16|			case IPv4:
  ------------------
  |  Branch (105:4): [True: 16, False: 9.23k]
  ------------------
  106|     16|				header->protocol = htobe16(PCPP_ETHERTYPE_IP);
  107|     16|				break;
  108|      0|			case IPv6:
  ------------------
  |  Branch (108:4): [True: 0, False: 9.24k]
  ------------------
  109|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_IPV6);
  110|      0|				break;
  111|      0|			case VLAN:
  ------------------
  |  Branch (111:4): [True: 0, False: 9.24k]
  ------------------
  112|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_VLAN);
  113|      0|				break;
  114|     15|			case MPLS:
  ------------------
  |  Branch (114:4): [True: 15, False: 9.23k]
  ------------------
  115|     15|				header->protocol = htobe16(PCPP_ETHERTYPE_MPLS);
  116|     15|				break;
  117|  5.94k|			case PPP_PPTP:
  ------------------
  |  Branch (117:4): [True: 5.94k, False: 3.30k]
  ------------------
  118|  5.94k|				header->protocol = htobe16(PCPP_ETHERTYPE_PPP);
  119|  5.94k|				break;
  120|      0|			case Ethernet:
  ------------------
  |  Branch (120:4): [True: 0, False: 9.24k]
  ------------------
  121|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_ETHBRIDGE);
  122|      0|				break;
  123|  3.26k|			default:
  ------------------
  |  Branch (123:4): [True: 3.26k, False: 5.97k]
  ------------------
  124|  3.26k|				break;
  125|  9.24k|			}
  126|  9.24k|		}
  127|  9.29k|	}
_ZNK4pcpp8GreLayer17getSequenceNumberERj:
  130|  9.29k|	{
  131|  9.29k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  132|       |
  133|  9.29k|		if (header->sequenceNumBit == 0)
  ------------------
  |  Branch (133:7): [True: 1.64k, False: 7.65k]
  ------------------
  134|  1.64k|			return false;
  135|       |
  136|  7.65k|		uint32_t* val = (uint32_t*)getFieldValue(GreSeq, false);
  137|  7.65k|		if (val == nullptr)
  ------------------
  |  Branch (137:7): [True: 0, False: 7.65k]
  ------------------
  138|      0|			return false;
  139|       |
  140|  7.65k|		seqNumber = be32toh(*val);
  141|  7.65k|		return true;
  142|  7.65k|	}
_ZN4pcpp8GreLayer14parseNextLayerEv:
  196|  83.4k|	{
  197|  83.4k|		size_t headerLen = getHeaderLen();
  198|  83.4k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (198:7): [True: 2.02k, False: 81.4k]
  ------------------
  199|  2.02k|			return;
  200|       |
  201|  81.4k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  202|  81.4k|		uint8_t* payload = m_Data + headerLen;
  203|  81.4k|		size_t payloadLen = m_DataLen - headerLen;
  204|       |
  205|  81.4k|		switch (be16toh(header->protocol))
  206|  81.4k|		{
  207|  1.01k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|  1.01k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (207:3): [True: 1.01k, False: 80.4k]
  ------------------
  208|  1.01k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  209|  1.01k|			break;
  210|      0|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|      0|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (210:3): [True: 0, False: 81.4k]
  ------------------
  211|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  212|      0|			break;
  213|      0|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|      0|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (213:3): [True: 0, False: 81.4k]
  ------------------
  214|      0|			constructNextLayer<VlanLayer>(payload, payloadLen);
  215|      0|			break;
  216|    120|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|    120|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (216:3): [True: 120, False: 81.3k]
  ------------------
  217|    120|			constructNextLayer<MplsLayer>(payload, payloadLen);
  218|    120|			break;
  219|  66.4k|		case PCPP_ETHERTYPE_PPP:
  ------------------
  |  |   57|  66.4k|#define PCPP_ETHERTYPE_PPP 0x880B
  ------------------
  |  Branch (219:3): [True: 66.4k, False: 15.0k]
  ------------------
  220|  66.4k|			tryConstructNextLayerWithFallback<PPP_PPTPLayer, PayloadLayer>(payload, payloadLen);
  221|  66.4k|			break;
  222|      0|		case PCPP_ETHERTYPE_ETHBRIDGE:
  ------------------
  |  |   35|      0|#define PCPP_ETHERTYPE_ETHBRIDGE 0x6558
  ------------------
  |  Branch (222:3): [True: 0, False: 81.4k]
  ------------------
  223|      0|		{
  224|      0|			if (tryConstructNextLayer<EthLayer>(payload, payloadLen) != nullptr)
  ------------------
  |  Branch (224:8): [True: 0, False: 0]
  ------------------
  225|      0|			{
  226|      0|				break;
  227|      0|			}
  228|       |
  229|      0|			tryConstructNextLayerWithFallback<EthDot3Layer, PayloadLayer>(payload, payloadLen);
  230|      0|			break;
  231|      0|		}
  232|  13.8k|		default:
  ------------------
  |  Branch (232:3): [True: 13.8k, False: 67.5k]
  ------------------
  233|  13.8k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  234|  81.4k|		}
  235|  81.4k|	}
_ZNK4pcpp8GreLayer12getHeaderLenEv:
  238|   101k|	{
  239|   101k|		size_t result = sizeof(gre_basic_header);
  240|       |
  241|   101k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  242|       |
  243|   101k|		if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (243:7): [True: 15.3k, False: 85.8k]
  |  Branch (243:35): [True: 2.06k, False: 83.8k]
  ------------------
  244|  17.4k|			result += 4;
  245|   101k|		if (header->keyBit == 1)
  ------------------
  |  Branch (245:7): [True: 88.2k, False: 13.0k]
  ------------------
  246|  88.2k|			result += 4;
  247|   101k|		if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (247:7): [True: 90.0k, False: 11.1k]
  ------------------
  248|  90.0k|			result += 4;
  249|   101k|		if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (249:7): [True: 45.0k, False: 56.2k]
  ------------------
  250|  45.0k|			result += 4;
  251|       |
  252|   101k|		return result;
  253|   101k|	}
_ZN4pcpp10GREv0Layer11getChecksumERt:
  266|  1.92k|	{
  267|  1.92k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (267:7): [True: 314, False: 1.60k]
  ------------------
  268|    314|			return false;
  269|       |
  270|  1.60k|		uint16_t* val = (uint16_t*)getFieldValue(GreChecksumOrRouting, false);
  271|  1.60k|		if (val == nullptr)
  ------------------
  |  Branch (271:7): [True: 0, False: 1.60k]
  ------------------
  272|      0|			return false;
  273|       |
  274|  1.60k|		checksum = be16toh(*val);
  275|  1.60k|		return true;
  276|  1.60k|	}
_ZN4pcpp10GREv0Layer11setChecksumEt:
  279|  3.21k|	{
  280|  3.21k|		gre_basic_header* header = getGreHeader();
  281|       |
  282|  3.21k|		bool needToExtendLayer = false;
  283|       |
  284|  3.21k|		if (header->routingBit == 0 && header->checksumBit == 0)
  ------------------
  |  Branch (284:7): [True: 740, False: 2.47k]
  |  Branch (284:34): [True: 0, False: 740]
  ------------------
  285|      0|			needToExtendLayer = true;
  286|       |
  287|  3.21k|		uint8_t* offsetPtr = getFieldValue(GreChecksumOrRouting, true);
  288|  3.21k|		int offset = offsetPtr - m_Data;
  289|       |		// extend layer in 4 bytes to keep 4-byte alignment
  290|  3.21k|		if (needToExtendLayer && !extendLayer(offset, sizeof(uint32_t)))
  ------------------
  |  Branch (290:7): [True: 0, False: 3.21k]
  |  Branch (290:28): [True: 0, False: 0]
  ------------------
  291|      0|		{
  292|      0|			PCPP_LOG_ERROR("Couldn't extend layer to set checksum");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleGreLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleGreLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  293|      0|			return false;
  294|      0|		}
  295|       |
  296|  3.21k|		uint16_t* checksumPtr = (uint16_t*)(m_Data + offset);
  297|  3.21k|		*checksumPtr = htobe16(checksum);
  298|       |
  299|       |		// if layer was extended in 4 bytes, make sure the offset field stays 0
  300|  3.21k|		if (needToExtendLayer)
  ------------------
  |  Branch (300:7): [True: 0, False: 3.21k]
  ------------------
  301|      0|		{
  302|      0|			checksumPtr++;
  303|      0|			*checksumPtr = 0;
  304|      0|		}
  305|       |
  306|  3.21k|		header = getGreHeader();
  307|  3.21k|		header->checksumBit = 1;
  308|       |
  309|  3.21k|		return true;
  310|  3.21k|	}
_ZNK4pcpp10GREv0Layer9getOffsetERt:
  346|  1.92k|	{
  347|  1.92k|		if (getGreHeader()->routingBit == 0)
  ------------------
  |  Branch (347:7): [True: 567, False: 1.35k]
  ------------------
  348|    567|			return false;
  349|       |
  350|  1.35k|		uint8_t* val = (uint8_t*)getFieldValue(GreChecksumOrRouting, false);
  351|  1.35k|		if (val == nullptr)
  ------------------
  |  Branch (351:7): [True: 0, False: 1.35k]
  ------------------
  352|      0|			return false;
  353|       |
  354|  1.35k|		offset = be16toh(*(val + 2));
  355|  1.35k|		return true;
  356|  1.35k|	}
_ZNK4pcpp10GREv0Layer6getKeyERj:
  359|  1.92k|	{
  360|  1.92k|		if (getGreHeader()->keyBit == 0)
  ------------------
  |  Branch (360:7): [True: 1.48k, False: 433]
  ------------------
  361|  1.48k|			return false;
  362|       |
  363|    433|		uint32_t* val = (uint32_t*)getFieldValue(GreKey, false);
  364|    433|		if (val == nullptr)
  ------------------
  |  Branch (364:7): [True: 0, False: 433]
  ------------------
  365|      0|			return false;
  366|       |
  367|    433|		key = be32toh(*val);
  368|    433|		return true;
  369|    433|	}
_ZN4pcpp10GREv0Layer22computeCalculateFieldsEv:
  423|  1.92k|	{
  424|  1.92k|		computeCalculateFieldsInner();
  425|       |
  426|  1.92k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (426:7): [True: 314, False: 1.60k]
  ------------------
  427|    314|			return;
  428|       |
  429|       |		// calculate checksum
  430|  1.60k|		setChecksum(0);
  431|       |
  432|  1.60k|		ScalarBuffer<uint16_t> buffer;
  433|  1.60k|		buffer.buffer = (uint16_t*)m_Data;
  434|  1.60k|		buffer.len = m_DataLen;
  435|  1.60k|		size_t checksum = computeChecksum(&buffer, 1);
  436|       |
  437|  1.60k|		setChecksum(checksum);
  438|  1.60k|	}
_ZNK4pcpp10GREv0Layer8toStringEv:
  441|  3.84k|	{
  442|  3.84k|		return "GRE Layer, version 0";
  443|  3.84k|	}
_ZNK4pcpp10GREv1Layer20getAcknowledgmentNumERj:
  461|  7.37k|	{
  462|  7.37k|		if (getGreHeader()->ackSequenceNumBit == 0)
  ------------------
  |  Branch (462:7): [True: 3.23k, False: 4.13k]
  ------------------
  463|  3.23k|			return false;
  464|       |
  465|  4.13k|		uint32_t* val = (uint32_t*)getFieldValue(GreAck, false);
  466|  4.13k|		if (val == nullptr)
  ------------------
  |  Branch (466:7): [True: 0, False: 4.13k]
  ------------------
  467|      0|			return false;
  468|       |
  469|  4.13k|		ackNum = be32toh(*val);
  470|  4.13k|		return true;
  471|  4.13k|	}
_ZN4pcpp10GREv1Layer22computeCalculateFieldsEv:
  522|  7.37k|	{
  523|  7.37k|		computeCalculateFieldsInner();
  524|       |
  525|       |		getGreHeader()->payloadLength = htobe16(m_DataLen - getHeaderLen());
  526|  7.37k|	}
_ZNK4pcpp10GREv1Layer8toStringEv:
  529|  14.7k|	{
  530|  14.7k|		return "GRE Layer, version 1";
  531|  14.7k|	}
_ZN4pcpp13PPP_PPTPLayer14parseNextLayerEv:
  548|  66.4k|	{
  549|  66.4k|		size_t headerLen = getHeaderLen();
  550|  66.4k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (550:7): [True: 0, False: 66.4k]
  ------------------
  551|      0|			return;
  552|       |
  553|  66.4k|		uint8_t* payload = m_Data + headerLen;
  554|  66.4k|		size_t payloadLen = m_DataLen - headerLen;
  555|       |
  556|  66.4k|		switch (be16toh(getPPP_PPTPHeader()->protocol))
  557|  66.4k|		{
  558|  66.1k|		case PCPP_PPP_IP:
  ------------------
  |  |  398|  66.1k|#define PCPP_PPP_IP 0x21
  ------------------
  |  Branch (558:3): [True: 66.1k, False: 312]
  ------------------
  559|  66.1k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  560|  66.1k|			break;
  561|      0|		case PCPP_PPP_IPV6:
  ------------------
  |  |  450|      0|#define PCPP_PPP_IPV6 0x57
  ------------------
  |  Branch (561:3): [True: 0, False: 66.4k]
  ------------------
  562|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  563|      0|			break;
  564|    312|		default:
  ------------------
  |  Branch (564:3): [True: 312, False: 66.1k]
  ------------------
  565|    312|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  566|    312|			break;
  567|  66.4k|		}
  568|  66.4k|	}
_ZN4pcpp13PPP_PPTPLayer22computeCalculateFieldsEv:
  571|  5.94k|	{
  572|  5.94k|		ppp_pptp_header* header = getPPP_PPTPHeader();
  573|  5.94k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (573:7): [True: 5.94k, False: 0]
  ------------------
  574|  5.94k|		{
  575|  5.94k|			switch (m_NextLayer->getProtocol())
  576|  5.94k|			{
  577|  5.87k|			case IPv4:
  ------------------
  |  Branch (577:4): [True: 5.87k, False: 73]
  ------------------
  578|  5.87k|				header->protocol = htobe16(PCPP_PPP_IP);
  579|  5.87k|				break;
  580|      0|			case IPv6:
  ------------------
  |  Branch (580:4): [True: 0, False: 5.94k]
  ------------------
  581|      0|				header->protocol = htobe16(PCPP_PPP_IPV6);
  582|      0|				break;
  583|     73|			default:
  ------------------
  |  Branch (583:4): [True: 73, False: 5.87k]
  ------------------
  584|     73|				break;
  585|  5.94k|			}
  586|  5.94k|		}
  587|      0|		else
  588|      0|			header->protocol = 0;
  589|  5.94k|	}

_ZN4pcpp10GtpV1Layer12GtpExtensionC2Ev:
   22|  22.6k|	{
   23|  22.6k|		m_Data = nullptr;
   24|  22.6k|		m_DataLen = 0;
   25|  22.6k|		m_ExtType = 0;
   26|  22.6k|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionC2EPhmh:
   29|  1.55k|	{
   30|  1.55k|		m_Data = data;
   31|  1.55k|		m_DataLen = dataLen;
   32|  1.55k|		m_ExtType = type;
   33|  1.55k|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionaSERKS1_:
   43|    770|	{
   44|    770|		m_Data = other.m_Data;
   45|    770|		m_DataLen = other.m_DataLen;
   46|    770|		m_ExtType = other.m_ExtType;
   47|    770|		return *this;
   48|    770|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension6isNullEv:
   51|  15.1k|	{
   52|  15.1k|		return m_Data == nullptr;
   53|  15.1k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getExtensionTypeEv:
   56|  4.53k|	{
   57|  4.53k|		return m_ExtType;
   58|  4.53k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension14getTotalLengthEv:
   61|  14.4k|	{
   62|  14.4k|		if (m_Data == nullptr)
  ------------------
  |  Branch (62:7): [True: 7.48k, False: 6.96k]
  ------------------
   63|  7.48k|		{
   64|  7.48k|			return 0;
   65|  7.48k|		}
   66|       |
   67|  6.96k|		size_t len = (size_t)(m_Data[0] * 4);
   68|  6.96k|		if (len <= m_DataLen)
  ------------------
  |  Branch (68:7): [True: 192, False: 6.77k]
  ------------------
   69|    192|		{
   70|    192|			return len;
   71|    192|		}
   72|       |
   73|  6.77k|		return m_DataLen;
   74|  6.96k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getContentLengthEv:
   77|  6.82k|	{
   78|  6.82k|		size_t res = getTotalLength();
   79|       |
   80|  6.82k|		if (res >= 2 * sizeof(uint8_t))
  ------------------
  |  Branch (80:7): [True: 2.98k, False: 3.84k]
  ------------------
   81|  2.98k|		{
   82|  2.98k|			return (size_t)(res - 2 * sizeof(uint8_t));
   83|  2.98k|		}
   84|       |
   85|  3.84k|		return 0;
   86|  6.82k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension10getContentEv:
   89|  4.53k|	{
   90|  4.53k|		if (m_Data == nullptr || getContentLength() == 0)
  ------------------
  |  Branch (90:7): [True: 3.74k, False: 786]
  |  Branch (90:28): [True: 48, False: 738]
  ------------------
   91|  3.79k|		{
   92|  3.79k|			return nullptr;
   93|  3.79k|		}
   94|       |
   95|    738|		return m_Data + sizeof(uint8_t);
   96|  4.53k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension26getNextExtensionHeaderTypeEv:
   99|  5.30k|	{
  100|  5.30k|		if (m_Data == nullptr || getTotalLength() < 4)
  ------------------
  |  Branch (100:7): [True: 3.74k, False: 1.55k]
  |  Branch (100:28): [True: 48, False: 1.50k]
  ------------------
  101|  3.79k|		{
  102|  3.79k|			return 0;
  103|  3.79k|		}
  104|       |
  105|  1.50k|		uint8_t res = *(uint8_t*)(m_Data + sizeof(uint8_t) + getContentLength());
  106|       |
  107|  1.50k|		return res;
  108|  5.30k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getNextExtensionEv:
  111|  5.30k|	{
  112|  5.30k|		size_t totalLength = getTotalLength();
  113|  5.30k|		uint8_t nextExtType = getNextExtensionHeaderType();
  114|  5.30k|		if (nextExtType > 0 && m_DataLen > totalLength + sizeof(uint8_t))
  ------------------
  |  Branch (114:7): [True: 1.47k, False: 3.82k]
  |  Branch (114:26): [True: 0, False: 1.47k]
  ------------------
  115|      0|		{
  116|      0|			return { m_Data + totalLength, m_DataLen - totalLength, nextExtType };
  117|      0|		}
  118|  5.30k|		else
  119|  5.30k|		{
  120|  5.30k|			return {};
  121|  5.30k|		}
  122|  5.30k|	}
_ZN4pcpp10GtpV1Layer7isGTPv1EPKhm:
  200|  31.8k|	{
  201|  31.8k|		if (data != nullptr && dataSize >= sizeof(gtpv1_header) && (data[0] & 0xE0) == 0x20)
  ------------------
  |  Branch (201:7): [True: 31.8k, False: 0]
  |  Branch (201:26): [True: 31.8k, False: 0]
  |  Branch (201:62): [True: 31.6k, False: 154]
  ------------------
  202|  31.6k|		{
  203|  31.6k|			return true;
  204|  31.6k|		}
  205|       |
  206|    154|		return false;
  207|  31.8k|	}
_ZNK4pcpp10GtpV1Layer14getHeaderExtraEv:
  210|  52.6k|	{
  211|  52.6k|		if (m_Data != nullptr && m_DataLen >= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (211:7): [True: 52.6k, False: 0]
  |  Branch (211:28): [True: 52.2k, False: 466]
  ------------------
  212|  52.2k|		{
  213|  52.2k|			return (gtpv1_header_extra*)(m_Data + sizeof(gtpv1_header));
  214|  52.2k|		}
  215|       |
  216|    466|		return nullptr;
  217|  52.6k|	}
_ZNK4pcpp10GtpV1Layer17getSequenceNumberERt:
  220|  4.53k|	{
  221|  4.53k|		gtpv1_header* header = getHeader();
  222|  4.53k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  223|  4.53k|		if (header != nullptr && headerExtra != nullptr && header->sequenceNumberFlag == 1)
  ------------------
  |  Branch (223:7): [True: 4.53k, False: 0]
  |  Branch (223:28): [True: 4.41k, False: 111]
  |  Branch (223:54): [True: 2.02k, False: 2.39k]
  ------------------
  224|  2.02k|		{
  225|  2.02k|			seqNumber = be16toh(headerExtra->sequenceNumber);
  226|  2.02k|			return true;
  227|  2.02k|		}
  228|       |
  229|  2.50k|		return false;
  230|  4.53k|	}
_ZNK4pcpp10GtpV1Layer13getNpduNumberERh:
  272|  4.53k|	{
  273|  4.53k|		gtpv1_header* header = getHeader();
  274|  4.53k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  275|  4.53k|		if (header != nullptr && headerExtra != nullptr && header->npduNumberFlag == 1)
  ------------------
  |  Branch (275:7): [True: 4.53k, False: 0]
  |  Branch (275:28): [True: 4.41k, False: 111]
  |  Branch (275:54): [True: 1.37k, False: 3.04k]
  ------------------
  276|  1.37k|		{
  277|  1.37k|			npduNum = headerExtra->npduNumber;
  278|  1.37k|			return true;
  279|  1.37k|		}
  280|       |
  281|  3.15k|		return false;
  282|  4.53k|	}
_ZNK4pcpp10GtpV1Layer26getNextExtensionHeaderTypeERh:
  324|  18.9k|	{
  325|  18.9k|		gtpv1_header* header = getHeader();
  326|  18.9k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  327|  18.9k|		if (header != nullptr && headerExtra != nullptr && header->extensionHeaderFlag == 1)
  ------------------
  |  Branch (327:7): [True: 18.9k, False: 0]
  |  Branch (327:28): [True: 18.8k, False: 111]
  |  Branch (327:54): [True: 4.33k, False: 14.5k]
  ------------------
  328|  4.33k|		{
  329|  4.33k|			nextExtType = headerExtra->nextExtensionHeader;
  330|  4.33k|			return true;
  331|  4.33k|		}
  332|       |
  333|  14.6k|		return false;
  334|  18.9k|	}
_ZNK4pcpp10GtpV1Layer16getNextExtensionEv:
  337|  18.9k|	{
  338|  18.9k|		uint8_t nextExtType = 0;
  339|  18.9k|		bool nextExtExists = getNextExtensionHeaderType(nextExtType);
  340|  18.9k|		if (!nextExtExists || nextExtType == 0 || m_DataLen <= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (340:7): [True: 14.6k, False: 4.33k]
  |  Branch (340:25): [True: 2.78k, False: 1.55k]
  |  Branch (340:45): [True: 0, False: 1.55k]
  ------------------
  341|  17.3k|		{
  342|  17.3k|			return {};
  343|  17.3k|		}
  344|       |
  345|  1.55k|		return { m_Data + sizeof(gtpv1_header) + sizeof(gtpv1_header_extra),
  346|  1.55k|			     m_DataLen - sizeof(gtpv1_header) - sizeof(gtpv1_header_extra), nextExtType };
  347|  18.9k|	}
_ZNK4pcpp10GtpV1Layer14getMessageTypeEv:
  428|  4.53k|	{
  429|  4.53k|		gtpv1_header* header = getHeader();
  430|       |
  431|  4.53k|		if (header == nullptr)
  ------------------
  |  Branch (431:7): [True: 0, False: 4.53k]
  ------------------
  432|      0|		{
  433|      0|			return GtpV1_MessageTypeUnknown;
  434|      0|		}
  435|       |
  436|  4.53k|		return (GtpV1MessageType)header->messageType;
  437|  4.53k|	}
_ZN4pcpp33createGtpV1MessageTypeToStringMapEv:
  440|      2|	{
  441|      2|		std::unordered_map<uint8_t, std::string> tempMap;
  442|       |
  443|      2|		tempMap[0] = "GTPv1 Message Type Unknown";
  444|      2|		tempMap[1] = "Echo Request";
  445|      2|		tempMap[2] = "Echo Response";
  446|      2|		tempMap[3] = "Version Not Supported";
  447|      2|		tempMap[4] = "Node Alive Request";
  448|      2|		tempMap[5] = "Node Alive Response";
  449|      2|		tempMap[6] = "Redirection Request";
  450|      2|		tempMap[7] = "Create PDP Context Request";
  451|      2|		tempMap[16] = "Create PDP Context Response";
  452|      2|		tempMap[17] = "Update PDP Context Request";
  453|      2|		tempMap[18] = "Update PDP Context Response";
  454|      2|		tempMap[19] = "Delete PDP Context Request";
  455|      2|		tempMap[20] = "Delete PDP Context Response";
  456|      2|		tempMap[22] = "Initiate PDP Context Activation Request";
  457|      2|		tempMap[23] = "Initiate PDP Context Activation Response";
  458|      2|		tempMap[26] = "Error Indication";
  459|      2|		tempMap[27] = "PDU Notification Request";
  460|      2|		tempMap[28] = "PDU Notification Response";
  461|      2|		tempMap[29] = "PDU Notification Reject Request";
  462|      2|		tempMap[30] = "PDU Notification Reject Response";
  463|      2|		tempMap[31] = "Supported Extensions Header Notification";
  464|      2|		tempMap[32] = "Send Routing for GPRS Request";
  465|      2|		tempMap[33] = "Send Routing for GPRS Response";
  466|      2|		tempMap[34] = "Failure Report Request";
  467|      2|		tempMap[35] = "Failure Report Response";
  468|      2|		tempMap[36] = "Note MS Present Request";
  469|      2|		tempMap[37] = "Note MS Present Response";
  470|      2|		tempMap[38] = "Identification Request";
  471|      2|		tempMap[39] = "Identification Response";
  472|      2|		tempMap[50] = "SGSN Context Request";
  473|      2|		tempMap[51] = "SGSN Context Response";
  474|      2|		tempMap[52] = "SGSN Context Acknowledge";
  475|      2|		tempMap[53] = "Forward Relocation Request";
  476|      2|		tempMap[54] = "Forward Relocation Response";
  477|      2|		tempMap[55] = "Forward Relocation Complete";
  478|      2|		tempMap[56] = "Relocation Cancel Request";
  479|      2|		tempMap[57] = "Relocation Cancel Response";
  480|      2|		tempMap[58] = "Forward SRNS Context";
  481|      2|		tempMap[59] = "Forward Relocation Complete Acknowledge";
  482|      2|		tempMap[60] = "Forward SRNS Context Acknowledge";
  483|      2|		tempMap[61] = "UE Registration Request";
  484|      2|		tempMap[62] = "UE Registration Response";
  485|      2|		tempMap[70] = "RAN Information Relay";
  486|      2|		tempMap[96] = "MBMS Notification Request";
  487|      2|		tempMap[97] = "MBMS Notification Response";
  488|      2|		tempMap[98] = "MBMS Notification Reject Request";
  489|      2|		tempMap[99] = "MBMS Notification Reject Response";
  490|      2|		tempMap[100] = "Create MBMS Notification Request";
  491|      2|		tempMap[101] = "Create MBMS Notification Response";
  492|      2|		tempMap[102] = "Update MBMS Notification Request";
  493|      2|		tempMap[103] = "Update MBMS Notification Response";
  494|      2|		tempMap[104] = "Delete MBMS Notification Request";
  495|      2|		tempMap[105] = "Delete MBMS Notification Response";
  496|      2|		tempMap[112] = "MBMS Registration Request";
  497|      2|		tempMap[113] = "MBMS Registration Response";
  498|      2|		tempMap[114] = "MBMS De-Registration Request";
  499|      2|		tempMap[115] = "MBMS De-Registration Response";
  500|      2|		tempMap[116] = "MBMS Session Start Request";
  501|      2|		tempMap[117] = "MBMS Session Start Response";
  502|      2|		tempMap[118] = "MBMS Session Stop Request";
  503|      2|		tempMap[119] = "MBMS Session Stop Response";
  504|      2|		tempMap[120] = "MBMS Session Update Request";
  505|      2|		tempMap[121] = "MBMS Session Update Response";
  506|      2|		tempMap[128] = "MS Info Change Request";
  507|      2|		tempMap[129] = "MS Info Change Response";
  508|      2|		tempMap[240] = "Data Record Transfer Request";
  509|      2|		tempMap[241] = "Data Record Transfer Response";
  510|      2|		tempMap[254] = "End Marker";
  511|      2|		tempMap[255] = "G-PDU";
  512|       |
  513|      2|		return tempMap;
  514|      2|	}
_ZNK4pcpp10GtpV1Layer22getMessageTypeAsStringEv:
  519|  8.18k|	{
  520|  8.18k|		gtpv1_header* header = getHeader();
  521|       |
  522|  8.18k|		if (header == nullptr)
  ------------------
  |  Branch (522:7): [True: 0, False: 8.18k]
  ------------------
  523|      0|		{
  524|      0|			return GTPv1MsgTypeToStringMap.find(0)->second;
  525|      0|		}
  526|       |
  527|  8.18k|		auto iter = GTPv1MsgTypeToStringMap.find(header->messageType);
  528|  8.18k|		if (iter != GTPv1MsgTypeToStringMap.end())
  ------------------
  |  Branch (528:7): [True: 4.63k, False: 3.54k]
  ------------------
  529|  4.63k|		{
  530|  4.63k|			return iter->second;
  531|  4.63k|		}
  532|  3.54k|		else
  533|  3.54k|		{
  534|  3.54k|			return GTPv1MsgTypeToStringMap.find(0)->second;
  535|  3.54k|		}
  536|  8.18k|	}
_ZNK4pcpp10GtpV1Layer13isGTPUMessageEv:
  539|  4.53k|	{
  540|  4.53k|		gtpv1_header* header = getHeader();
  541|  4.53k|		if (header == nullptr)
  ------------------
  |  Branch (541:7): [True: 0, False: 4.53k]
  ------------------
  542|      0|		{
  543|      0|			return false;
  544|      0|		}
  545|       |
  546|  4.53k|		return header->messageType == PCPP_GTP_V1_GPDU_MESSAGE_TYPE;
  ------------------
  |  |   15|  4.53k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  547|  4.53k|	}
_ZNK4pcpp10GtpV1Layer13isGTPCMessageEv:
  550|  4.53k|	{
  551|  4.53k|		gtpv1_header* header = getHeader();
  552|  4.53k|		if (header == nullptr)
  ------------------
  |  Branch (552:7): [True: 0, False: 4.53k]
  ------------------
  553|      0|		{
  554|      0|			return false;
  555|      0|		}
  556|       |
  557|  4.53k|		return header->messageType != PCPP_GTP_V1_GPDU_MESSAGE_TYPE;
  ------------------
  |  |   15|  4.53k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  558|  4.53k|	}
_ZN4pcpp10GtpV1Layer14parseNextLayerEv:
  561|  31.6k|	{
  562|  31.6k|		size_t headerLen = getHeaderLen();
  563|  31.6k|		if (headerLen < sizeof(gtpv1_header))
  ------------------
  |  Branch (563:7): [True: 0, False: 31.6k]
  ------------------
  564|      0|		{
  565|       |			// do nothing
  566|      0|			return;
  567|      0|		}
  568|       |
  569|  31.6k|		gtpv1_header* header = getHeader();
  570|  31.6k|		if (header->messageType != PCPP_GTP_V1_GPDU_MESSAGE_TYPE)
  ------------------
  |  |   15|  31.6k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  |  Branch (570:7): [True: 9.66k, False: 21.9k]
  ------------------
  571|  9.66k|		{
  572|       |			// this is a GTP-C message, hence it is the last layer
  573|  9.66k|			return;
  574|  9.66k|		}
  575|       |
  576|  21.9k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (576:7): [True: 759, False: 21.2k]
  ------------------
  577|    759|		{
  578|       |			// no data beyond headerLen, nothing to parse further
  579|    759|			return;
  580|    759|		}
  581|       |
  582|       |		// GTP-U message, try to parse the next layer
  583|       |
  584|  21.2k|		auto* payload = static_cast<uint8_t*>(m_Data + headerLen);
  585|  21.2k|		size_t payloadLen = m_DataLen - headerLen;
  586|       |
  587|  21.2k|		uint8_t subProto = *payload;
  588|  21.2k|		if (subProto >= 0x45 && subProto <= 0x4e)
  ------------------
  |  Branch (588:7): [True: 20.9k, False: 249]
  |  Branch (588:27): [True: 18.8k, False: 2.12k]
  ------------------
  589|  18.8k|		{
  590|  18.8k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  591|  18.8k|		}
  592|  2.37k|		else if ((subProto & 0xf0) == 0x60)
  ------------------
  |  Branch (592:12): [True: 1.53k, False: 835]
  ------------------
  593|  1.53k|		{
  594|  1.53k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  595|  1.53k|		}
  596|    835|		else
  597|    835|		{
  598|    835|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  599|    835|		}
  600|  21.2k|	}
_ZNK4pcpp10GtpV1Layer12getHeaderLenEv:
  603|  36.1k|	{
  604|  36.1k|		gtpv1_header* header = getHeader();
  605|  36.1k|		if (header == nullptr)
  ------------------
  |  Branch (605:7): [True: 0, False: 36.1k]
  ------------------
  606|      0|		{
  607|      0|			return 0;
  608|      0|		}
  609|       |
  610|  36.1k|		size_t res = sizeof(gtpv1_header);
  611|       |
  612|  36.1k|		if (header->messageType != PCPP_GTP_V1_GPDU_MESSAGE_TYPE)
  ------------------
  |  |   15|  36.1k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  |  Branch (612:7): [True: 11.4k, False: 24.6k]
  ------------------
  613|  11.4k|		{
  614|  11.4k|			size_t msgLen = be16toh(header->messageLength);
  615|  11.4k|			res += (msgLen > m_DataLen - sizeof(gtpv1_header) ? m_DataLen - sizeof(gtpv1_header) : msgLen);
  ------------------
  |  Branch (615:12): [True: 10.9k, False: 522]
  ------------------
  616|  11.4k|		}
  617|  24.6k|		else
  618|  24.6k|		{
  619|  24.6k|			gtpv1_header_extra* headerExtra = getHeaderExtra();
  620|  24.6k|			if (headerExtra != nullptr &&
  ------------------
  |  Branch (620:8): [True: 24.5k, False: 133]
  ------------------
  621|  24.5k|			    (header->extensionHeaderFlag == 1 || header->sequenceNumberFlag == 1 || header->npduNumberFlag == 1))
  ------------------
  |  Branch (621:9): [True: 3.18k, False: 21.3k]
  |  Branch (621:45): [True: 9.05k, False: 12.3k]
  |  Branch (621:80): [True: 2.18k, False: 10.1k]
  ------------------
  622|  14.4k|			{
  623|  14.4k|				res += sizeof(gtpv1_header_extra);
  624|  14.4k|				GtpExtension nextExt = getNextExtension();
  625|  15.1k|				while (!nextExt.isNull())
  ------------------
  |  Branch (625:12): [True: 770, False: 14.4k]
  ------------------
  626|    770|				{
  627|    770|					res += nextExt.getTotalLength();
  628|    770|					nextExt = nextExt.getNextExtension();
  629|    770|				}
  630|  14.4k|			}
  631|  24.6k|		}
  632|       |
  633|  36.1k|		return res;
  634|  36.1k|	}
_ZNK4pcpp10GtpV1Layer8toStringEv:
  637|  9.06k|	{
  638|  9.06k|		std::string res = "GTP v1 Layer";
  639|       |
  640|  9.06k|		gtpv1_header* header = getHeader();
  641|  9.06k|		if (header != nullptr)
  ------------------
  |  Branch (641:7): [True: 9.06k, False: 0]
  ------------------
  642|  9.06k|		{
  643|  9.06k|			std::stringstream teidStream;
  644|  9.06k|			teidStream << be32toh(header->teid);
  645|       |
  646|  9.06k|			std::string gtpu_gtpc;
  647|  9.06k|			if (header->messageType == PCPP_GTP_V1_GPDU_MESSAGE_TYPE)
  ------------------
  |  |   15|  9.06k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  |  Branch (647:8): [True: 5.40k, False: 3.65k]
  ------------------
  648|  5.40k|			{
  649|  5.40k|				gtpu_gtpc = "GTP-U message";
  650|  5.40k|			}
  651|  3.65k|			else
  652|  3.65k|			{
  653|  3.65k|				gtpu_gtpc = "GTP-C message: " + getMessageTypeAsString();
  654|  3.65k|			}
  655|       |
  656|  9.06k|			res += ", " + gtpu_gtpc + ", TEID: " + teidStream.str();
  657|  9.06k|		}
  658|       |
  659|  9.06k|		return res;
  660|  9.06k|	}
_ZN4pcpp10GtpV1Layer22computeCalculateFieldsEv:
  663|  4.53k|	{
  664|  4.53k|		gtpv1_header* hdr = getHeader();
  665|  4.53k|		if (hdr == nullptr)
  ------------------
  |  Branch (665:7): [True: 0, False: 4.53k]
  ------------------
  666|      0|		{
  667|      0|			return;
  668|      0|		}
  669|       |
  670|  4.53k|		hdr->messageLength = htobe16(m_DataLen - sizeof(gtpv1_header));
  671|  4.53k|	}
_ZNK4pcpp20GtpV2MessageTypeHashclERKNS_16GtpV2MessageTypeE:
  680|    164|		{
  681|    164|			return static_cast<uint8_t>(messageType);
  682|    164|		}

_ZN4pcpp16HttpRequestLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   63|  5.38k|	    : HttpMessage(data, dataLen, prevLayer, packet, HTTPRequest)
   64|  5.38k|	{
   65|  5.38k|		m_FirstLine = new HttpRequestFirstLine(this);
   66|  5.38k|		m_FieldsOffset = m_FirstLine->getSize();
   67|  5.38k|		parseFields();
   68|  5.38k|	}
_ZN4pcpp16HttpRequestLayerD2Ev:
  104|  5.38k|	{
  105|  5.38k|		delete m_FirstLine;
  106|  5.38k|	}
_ZNK4pcpp16HttpRequestLayer8toStringEv:
  109|  2.11k|	{
  110|  2.11k|		static const int maxLengthToPrint = 120;
  111|  2.11k|		std::string result = "HTTP request, ";
  112|  2.11k|		int size = m_FirstLine->getSize() - 2;  // the -2 is to remove \r\n at the end of the first line
  113|  2.11k|		if (size <= 0)
  ------------------
  |  Branch (113:7): [True: 0, False: 2.11k]
  ------------------
  114|      0|		{
  115|      0|			result += std::string("CORRUPT DATA");
  116|      0|			return result;
  117|      0|		}
  118|  2.11k|		if (size <= maxLengthToPrint)
  ------------------
  |  Branch (118:7): [True: 1.59k, False: 518]
  ------------------
  119|  1.59k|		{
  120|  1.59k|			char* firstLine = new char[size + 1];
  121|  1.59k|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), size);
  122|  1.59k|			firstLine[size] = 0;
  123|  1.59k|			result += std::string(firstLine);
  124|  1.59k|			delete[] firstLine;
  125|  1.59k|		}
  126|    518|		else
  127|    518|		{
  128|    518|			char firstLine[maxLengthToPrint + 1];
  129|    518|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), maxLengthToPrint - 3);
  130|    518|			firstLine[maxLengthToPrint - 3] = '.';
  131|    518|			firstLine[maxLengthToPrint - 2] = '.';
  132|    518|			firstLine[maxLengthToPrint - 1] = '.';
  133|    518|			firstLine[maxLengthToPrint] = 0;
  134|    518|			result += std::string(firstLine);
  135|    518|		}
  136|       |
  137|  2.11k|		return result;
  138|  2.11k|	}
_ZN4pcpp20HttpRequestFirstLineC2EPNS_16HttpRequestLayerE:
  166|  5.38k|	HttpRequestFirstLine::HttpRequestFirstLine(HttpRequestLayer* httpRequest) : m_HttpRequest(httpRequest)
  167|  5.38k|	{
  168|  5.38k|		m_Method = parseMethod((char*)m_HttpRequest->m_Data, m_HttpRequest->getDataLen());
  169|  5.38k|		if (m_Method == HttpRequestLayer::HttpMethodUnknown)
  ------------------
  |  Branch (169:7): [True: 0, False: 5.38k]
  ------------------
  170|      0|		{
  171|      0|			m_UriOffset = -1;
  172|      0|			PCPP_LOG_DEBUG("Couldn't resolve HTTP request method");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  173|      0|			m_IsComplete = false;
  174|      0|			m_Version = HttpVersionUnknown;
  175|      0|			m_VersionOffset = -1;
  176|      0|			m_FirstLineEndOffset = m_HttpRequest->getDataLen();
  177|      0|			return;
  178|      0|		}
  179|  5.38k|		else
  180|  5.38k|		{
  181|  5.38k|			m_UriOffset = MethodEnumToString[m_Method].length() + 1;
  182|  5.38k|		}
  183|       |
  184|  5.38k|		parseVersion();
  185|  5.38k|		if (m_VersionOffset < 0)
  ------------------
  |  Branch (185:7): [True: 1.06k, False: 4.32k]
  ------------------
  186|  1.06k|		{
  187|  1.06k|			m_IsComplete = false;
  188|  1.06k|			m_FirstLineEndOffset = m_HttpRequest->getDataLen();
  189|  1.06k|			return;
  190|  1.06k|		}
  191|       |
  192|  4.32k|		char* endOfFirstLine;
  193|  4.32k|		if ((endOfFirstLine = (char*)memchr((char*)(m_HttpRequest->m_Data + m_VersionOffset), '\n',
  ------------------
  |  Branch (193:7): [True: 4.32k, False: 0]
  ------------------
  194|  4.32k|		                                    m_HttpRequest->m_DataLen - (size_t)m_VersionOffset)) != nullptr)
  195|  4.32k|		{
  196|  4.32k|			m_FirstLineEndOffset = endOfFirstLine - (char*)m_HttpRequest->m_Data + 1;
  197|  4.32k|			m_IsComplete = true;
  198|  4.32k|		}
  199|      0|		else
  200|      0|		{
  201|      0|			m_FirstLineEndOffset = m_HttpRequest->getDataLen();
  202|      0|			m_IsComplete = false;
  203|      0|		}
  204|       |
  205|  4.32k|		if (Logger::getInstance().isDebugEnabled(PacketLogModuleHttpLayer))
  ------------------
  |  Branch (205:7): [True: 0, False: 4.32k]
  ------------------
  206|      0|		{
  207|      0|			std::string method =
  208|      0|			    m_Method == HttpRequestLayer::HttpMethodUnknown ? "Unknown" : MethodEnumToString[m_Method];
  ------------------
  |  Branch (208:8): [True: 0, False: 0]
  ------------------
  209|      0|			PCPP_LOG_DEBUG("Method='" << method << "'; "
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  210|      0|			                          << "HTTP version='" << VersionEnumToString[m_Version] << "'; "
  211|      0|			                          << "URI='" << getUri() << "'");
  212|      0|		}
  213|  4.32k|	}
_ZN4pcpp20HttpRequestFirstLine11parseMethodEPKcm:
  262|  21.3k|	{
  263|  21.3k|		if (!data || dataLen < 4)
  ------------------
  |  Branch (263:7): [True: 0, False: 21.3k]
  |  Branch (263:16): [True: 1.48k, False: 19.8k]
  ------------------
  264|  1.48k|		{
  265|  1.48k|			return HttpRequestLayer::HttpMethodUnknown;
  266|  1.48k|		}
  267|       |
  268|  19.8k|		size_t spaceIndex = 0;
  269|   574k|		while (spaceIndex < dataLen && data[spaceIndex] != ' ')
  ------------------
  |  Branch (269:10): [True: 572k, False: 2.49k]
  |  Branch (269:34): [True: 554k, False: 17.3k]
  ------------------
  270|   554k|		{
  271|   554k|			spaceIndex++;
  272|   554k|		}
  273|       |
  274|  19.8k|		if (spaceIndex == 0 || spaceIndex == dataLen)
  ------------------
  |  Branch (274:7): [True: 0, False: 19.8k]
  |  Branch (274:26): [True: 2.49k, False: 17.3k]
  ------------------
  275|  2.49k|		{
  276|  2.49k|			return HttpRequestLayer::HttpMethodUnknown;
  277|  2.49k|		}
  278|       |
  279|  17.3k|		auto methodAdEnum = HttpMethodStringToEnum.find(std::string(data, data + spaceIndex));
  280|  17.3k|		if (methodAdEnum == HttpMethodStringToEnum.end())
  ------------------
  |  Branch (280:7): [True: 6.56k, False: 10.7k]
  ------------------
  281|  6.56k|		{
  282|  6.56k|			return HttpRequestLayer::HttpMethodUnknown;
  283|  6.56k|		}
  284|  10.7k|		return methodAdEnum->second;
  285|  17.3k|	}
_ZN4pcpp20HttpRequestFirstLine12parseVersionEv:
  288|  5.38k|	{
  289|  5.38k|		char* data = (char*)(m_HttpRequest->m_Data + m_UriOffset);
  290|  5.38k|		char* verPos = cross_platform_memmem(data, m_HttpRequest->getDataLen() - m_UriOffset, " HTTP/", 6);
  291|  5.38k|		if (verPos == nullptr)
  ------------------
  |  Branch (291:7): [True: 1.06k, False: 4.32k]
  ------------------
  292|  1.06k|		{
  293|  1.06k|			m_Version = HttpVersionUnknown;
  294|  1.06k|			m_VersionOffset = -1;
  295|  1.06k|			return;
  296|  1.06k|		}
  297|       |
  298|       |		// verify packet doesn't end before the version, meaning still left place for " HTTP/x.y" (9 chars)
  299|  4.32k|		std::ptrdiff_t actualLen = verPos + 9 - (char*)m_HttpRequest->m_Data;
  300|  4.32k|		if (static_cast<size_t>(actualLen) > m_HttpRequest->getDataLen())
  ------------------
  |  Branch (300:7): [True: 0, False: 4.32k]
  ------------------
  301|      0|		{
  302|      0|			m_Version = HttpVersionUnknown;
  303|      0|			m_VersionOffset = -1;
  304|      0|			return;
  305|      0|		}
  306|       |
  307|       |		// skip " HTTP/" (6 chars)
  308|  4.32k|		verPos += 6;
  309|  4.32k|		auto versionAsEnum = HttpVersionStringToEnum.find(std::string(verPos, verPos + 3));
  310|  4.32k|		if (versionAsEnum == HttpVersionStringToEnum.end())
  ------------------
  |  Branch (310:7): [True: 584, False: 3.73k]
  ------------------
  311|    584|		{
  312|    584|			m_Version = HttpVersionUnknown;
  313|    584|		}
  314|  3.73k|		else
  315|  3.73k|		{
  316|  3.73k|			m_Version = versionAsEnum->second;
  317|  3.73k|		}
  318|       |
  319|  4.32k|		m_VersionOffset = verPos - (char*)m_HttpRequest->m_Data;
  320|  4.32k|	}
_ZN4pcpp22HttpResponseStatusCodeC2ERKiRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
  511|  22.4k|	{
  512|  22.4k|		if (statusMessage != "")
  ------------------
  |  Branch (512:7): [True: 22.4k, False: 0]
  ------------------
  513|  22.4k|		{
  514|  22.4k|			m_CustomizedMessage = statusMessage;
  515|  22.4k|		}
  516|       |
  517|  22.4k|		if (intStatusCodeMap.find(statusCodeNumber) != intStatusCodeMap.end())
  ------------------
  |  Branch (517:7): [True: 21.8k, False: 530]
  ------------------
  518|  21.8k|		{
  519|  21.8k|			m_Value = intStatusCodeMap.at(statusCodeNumber);
  520|  21.8k|			return;
  521|  21.8k|		}
  522|       |
  523|    530|		if (statusCodeNumber >= 100 && statusCodeNumber <= 199)
  ------------------
  |  Branch (523:7): [True: 175, False: 355]
  |  Branch (523:34): [True: 165, False: 10]
  ------------------
  524|    165|		{
  525|    165|			m_Value = HttpResponseStatusCode::HttpStatus1xxCodeUnknown;
  526|    165|		}
  527|    365|		else if (statusCodeNumber >= 200 && statusCodeNumber <= 299)
  ------------------
  |  Branch (527:12): [True: 10, False: 355]
  |  Branch (527:39): [True: 10, False: 0]
  ------------------
  528|     10|		{
  529|     10|			m_Value = HttpResponseStatusCode::HttpStatus2xxCodeUnknown;
  530|     10|		}
  531|    355|		else if (statusCodeNumber >= 300 && statusCodeNumber <= 399)
  ------------------
  |  Branch (531:12): [True: 0, False: 355]
  |  Branch (531:39): [True: 0, False: 0]
  ------------------
  532|      0|		{
  533|      0|			m_Value = HttpResponseStatusCode::HttpStatus3xxCodeUnknown;
  534|      0|		}
  535|    355|		else if (statusCodeNumber >= 400 && statusCodeNumber <= 499)
  ------------------
  |  Branch (535:12): [True: 0, False: 355]
  |  Branch (535:39): [True: 0, False: 0]
  ------------------
  536|      0|		{
  537|      0|			m_Value = HttpResponseStatusCode::HttpStatus4xxCodeUnknown;
  538|      0|		}
  539|    355|		else if (statusCodeNumber >= 500 && statusCodeNumber <= 599)
  ------------------
  |  Branch (539:12): [True: 0, False: 355]
  |  Branch (539:39): [True: 0, False: 0]
  ------------------
  540|      0|		{
  541|      0|			m_Value = HttpResponseStatusCode::HttpStatus5xxCodeUnknown;
  542|      0|		}
  543|    530|	}
_ZN4pcpp17HttpResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  667|  10.9k|	    : HttpMessage(data, dataLen, prevLayer, packet, HTTPResponse)
  668|  10.9k|	{
  669|  10.9k|		m_FirstLine = new HttpResponseFirstLine(this);
  670|  10.9k|		m_FieldsOffset = m_FirstLine->getSize();
  671|  10.9k|		parseFields();
  672|  10.9k|	}
_ZN4pcpp17HttpResponseLayerD2Ev:
  690|  10.9k|	{
  691|  10.9k|		delete m_FirstLine;
  692|  10.9k|	}
_ZNK4pcpp17HttpResponseLayer8toStringEv:
  740|  4.25k|	{
  741|  4.25k|		static const int maxLengthToPrint = 120;
  742|  4.25k|		std::string result = "HTTP response, ";
  743|  4.25k|		int size = m_FirstLine->getSize() - 2;  // the -2 is to remove \r\n at the end of the first line
  744|  4.25k|		if (size <= maxLengthToPrint)
  ------------------
  |  Branch (744:7): [True: 4.25k, False: 0]
  ------------------
  745|  4.25k|		{
  746|  4.25k|			char* firstLine = new char[size + 1];
  747|  4.25k|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), size);
  748|  4.25k|			firstLine[size] = 0;
  749|  4.25k|			result += std::string(firstLine);
  750|  4.25k|			delete[] firstLine;
  751|  4.25k|		}
  752|      0|		else
  753|      0|		{
  754|      0|			char firstLine[maxLengthToPrint + 1];
  755|      0|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), maxLengthToPrint - 3);
  756|      0|			firstLine[maxLengthToPrint - 3] = '.';
  757|      0|			firstLine[maxLengthToPrint - 2] = '.';
  758|      0|			firstLine[maxLengthToPrint - 1] = '.';
  759|      0|			firstLine[maxLengthToPrint] = 0;
  760|      0|			result += std::string(firstLine);
  761|      0|		}
  762|       |
  763|  4.25k|		return result;
  764|  4.25k|	}
_ZN4pcpp21HttpResponseFirstLine15parseStatusCodeEPKcm:
  851|  22.6k|	{
  852|       |		// minimum data should be 12B long: "HTTP/x.y XXX"
  853|  22.6k|		if (!data || dataLen < 12)
  ------------------
  |  Branch (853:7): [True: 0, False: 22.6k]
  |  Branch (853:16): [True: 75, False: 22.5k]
  ------------------
  854|     75|		{
  855|     75|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  856|     75|		}
  857|       |
  858|  22.5k|		const std::string codeString = std::string(data + 9, 3);
  859|       |
  860|  22.5k|		if (codeString.empty() || (std::find_if(codeString.begin(), codeString.end(),
  ------------------
  |  Branch (860:7): [True: 0, False: 22.5k]
  |  Branch (860:7): [True: 125, False: 22.4k]
  |  Branch (860:29): [True: 125, False: 22.4k]
  ------------------
  861|  22.5k|		                                        [](unsigned char c) { return !std::isdigit(c); }) != codeString.end()))
  862|    125|		{
  863|    125|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  864|    125|		}
  865|       |
  866|  22.4k|		constexpr size_t messageOffset = 13;  // expect "HTTP/x.y XXX YYY", YYY starts from 13
  867|  22.4k|		size_t offset = messageOffset;
  868|  22.4k|		bool isMessageFound = false;
  869|   106k|		while (offset < dataLen)
  ------------------
  |  Branch (869:10): [True: 106k, False: 20]
  ------------------
  870|   106k|		{
  871|   106k|			if (data[offset] == '\n')
  ------------------
  |  Branch (871:8): [True: 22.4k, False: 83.9k]
  ------------------
  872|  22.4k|			{
  873|  22.4k|				isMessageFound = true;
  874|  22.4k|				break;
  875|  22.4k|			}
  876|  83.9k|			offset++;
  877|  83.9k|		}
  878|       |
  879|  22.4k|		if (!isMessageFound)
  ------------------
  |  Branch (879:7): [True: 20, False: 22.4k]
  ------------------
  880|     20|		{
  881|     20|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  882|     20|		}
  883|       |
  884|  22.4k|		std::string messageString(data + messageOffset, offset - messageOffset);
  885|  22.4k|		if (!messageString.empty() && messageString.back() == '\r')
  ------------------
  |  Branch (885:7): [True: 22.4k, False: 0]
  |  Branch (885:33): [True: 22.0k, False: 420]
  ------------------
  886|  22.0k|		{
  887|  22.0k|			messageString.pop_back();
  888|  22.0k|		}
  889|  22.4k|		if (messageString.empty())
  ------------------
  |  Branch (889:7): [True: 30, False: 22.4k]
  ------------------
  890|     30|		{
  891|     30|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  892|     30|		}
  893|       |
  894|  22.4k|		return HttpResponseStatusCode(std::stoi(codeString), messageString);
  895|  22.4k|	}
_ZN4pcpp21HttpResponseFirstLineC2EPNS_17HttpResponseLayerE:
  897|  10.9k|	HttpResponseFirstLine::HttpResponseFirstLine(HttpResponseLayer* httpResponse) : m_HttpResponse(httpResponse)
  898|  10.9k|	{
  899|  10.9k|		m_Version = parseVersion((char*)m_HttpResponse->m_Data, m_HttpResponse->getDataLen());
  900|  10.9k|		if (m_Version == HttpVersionUnknown)
  ------------------
  |  Branch (900:7): [True: 0, False: 10.9k]
  ------------------
  901|      0|		{
  902|      0|			m_StatusCode = HttpResponseStatusCode::HttpStatusCodeUnknown;
  903|      0|		}
  904|  10.9k|		else
  905|  10.9k|		{
  906|  10.9k|			m_StatusCode = parseStatusCode((char*)m_HttpResponse->m_Data, m_HttpResponse->getDataLen());
  907|  10.9k|		}
  908|       |
  909|  10.9k|		char* endOfFirstLine;
  910|  10.9k|		if ((endOfFirstLine = (char*)memchr((char*)(m_HttpResponse->m_Data), '\n', m_HttpResponse->m_DataLen)) !=
  ------------------
  |  Branch (910:7): [True: 10.9k, False: 0]
  ------------------
  911|  10.9k|		    nullptr)
  912|  10.9k|		{
  913|  10.9k|			m_FirstLineEndOffset = endOfFirstLine - (char*)m_HttpResponse->m_Data + 1;
  914|  10.9k|			m_IsComplete = true;
  915|  10.9k|		}
  916|      0|		else
  917|      0|		{
  918|      0|			m_FirstLineEndOffset = m_HttpResponse->getDataLen();
  919|      0|			m_IsComplete = false;
  920|      0|		}
  921|       |
  922|  10.9k|		if (Logger::getInstance().isDebugEnabled(PacketLogModuleHttpLayer))
  ------------------
  |  Branch (922:7): [True: 0, False: 10.9k]
  ------------------
  923|      0|		{
  924|      0|			std::string version = (m_Version == HttpVersionUnknown ? "Unknown" : VersionEnumToString[m_Version]);
  ------------------
  |  Branch (924:27): [True: 0, False: 0]
  ------------------
  925|      0|			int statusCode = (m_StatusCode == HttpResponseStatusCode::HttpStatusCodeUnknown ? 0 : m_StatusCode.toInt());
  ------------------
  |  Branch (925:22): [True: 0, False: 0]
  ------------------
  926|      0|			PCPP_LOG_DEBUG("Version='" << version << "'; Status code=" << statusCode << " '" << getStatusCodeString()
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  927|      0|			                           << "'");
  928|      0|		}
  929|  10.9k|	}
_ZN4pcpp21HttpResponseFirstLine12parseVersionEPKcm:
  965|  46.4k|	{
  966|  46.4k|		if (!data || dataLen < 8)  // "HTTP/x.y"
  ------------------
  |  Branch (966:7): [True: 0, False: 46.4k]
  |  Branch (966:16): [True: 80, False: 46.3k]
  ------------------
  967|     80|		{
  968|     80|			PCPP_LOG_DEBUG("HTTP response length < 8, cannot identify version");
  ------------------
  |  |  425|     80|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|     80|	do                                                                                                                 \
  |  |  |  |  413|     80|	{                                                                                                                  \
  |  |  |  |  414|     80|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     80|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     80|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 80]
  |  |  |  |  ------------------
  |  |  |  |  416|     80|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|     80|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 80]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  969|     80|			return HttpVersionUnknown;
  970|     80|		}
  971|       |
  972|  46.3k|		if (data[0] != 'H' || data[1] != 'T' || data[2] != 'T' || data[3] != 'P' || data[4] != '/')
  ------------------
  |  Branch (972:7): [True: 22.4k, False: 23.8k]
  |  Branch (972:25): [True: 335, False: 23.5k]
  |  Branch (972:43): [True: 40, False: 23.4k]
  |  Branch (972:61): [True: 180, False: 23.2k]
  |  Branch (972:79): [True: 40, False: 23.2k]
  ------------------
  973|  23.0k|		{
  974|  23.0k|			PCPP_LOG_DEBUG("HTTP response does not begin with 'HTTP/'");
  ------------------
  |  |  425|  23.0k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  23.0k|	do                                                                                                                 \
  |  |  |  |  413|  23.0k|	{                                                                                                                  \
  |  |  |  |  414|  23.0k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  23.0k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  23.0k|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 23.0k]
  |  |  |  |  ------------------
  |  |  |  |  416|  23.0k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  23.0k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 23.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  975|  23.0k|			return HttpVersionUnknown;
  976|  23.0k|		}
  977|       |
  978|  23.2k|		const char* verPos = data + 5;
  979|  23.2k|		auto versionAsEnum = HttpVersionStringToEnum.find(std::string(verPos, verPos + 3));
  980|  23.2k|		if (versionAsEnum == HttpVersionStringToEnum.end())
  ------------------
  |  Branch (980:7): [True: 580, False: 22.6k]
  ------------------
  981|    580|		{
  982|    580|			return HttpVersionUnknown;
  983|    580|		}
  984|  22.6k|		return versionAsEnum->second;
  985|  23.2k|	}
HttpLayer.cpp:_ZZN4pcpp21HttpResponseFirstLine15parseStatusCodeEPKcmENK3$_0clEh:
  861|  67.6k|		                                        [](unsigned char c) { return !std::isdigit(c); }) != codeString.end()))
_ZNK4pcpp26HttpResponseStatusCodeHashclERKNS_22HttpResponseStatusCodeE:
  550|    178|		{
  551|    178|			return static_cast<int>(status);
  552|    178|		}

_ZN4pcpp7IPLayer12getIPVersionEPKhm:
    6|  1.70k|	{
    7|       |		// The data requires at least 1 byte of valid buffer
    8|  1.70k|		if (data == nullptr || dataLen < 1)
  ------------------
  |  Branch (8:7): [True: 0, False: 1.70k]
  |  Branch (8:26): [True: 0, False: 1.70k]
  ------------------
    9|      0|		{
   10|      0|			return UnknownProtocol;
   11|      0|		}
   12|       |
   13|       |		// The first 4 bits of the first byte of the IP header represent the IP version
   14|  1.70k|		uint8_t version = data[0] >> 4;
   15|       |
   16|  1.70k|		switch (version)
   17|  1.70k|		{
   18|  1.56k|		case 4:
  ------------------
  |  Branch (18:3): [True: 1.56k, False: 141]
  ------------------
   19|  1.56k|			return IPv4;
   20|      0|		case 6:
  ------------------
  |  Branch (20:3): [True: 0, False: 1.70k]
  ------------------
   21|      0|			return IPv6;
   22|    141|		default:
  ------------------
  |  Branch (22:3): [True: 141, False: 1.56k]
  ------------------
   23|    141|			return UnknownProtocol;
   24|  1.70k|		}
   25|  1.70k|	}

_ZN4pcpp25AuthenticationHeaderLayer14parseNextLayerEv:
   55|  4.35k|	{
   56|  4.35k|		size_t headerLen = getHeaderLen();
   57|  4.35k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (57:7): [True: 0, False: 4.35k]
  ------------------
   58|      0|			return;
   59|       |
   60|  4.35k|		uint8_t* payload = m_Data + headerLen;
   61|  4.35k|		size_t payloadLen = m_DataLen - headerLen;
   62|       |
   63|  4.35k|		switch (getAHHeader()->nextHeader)
   64|  4.35k|		{
   65|      0|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (65:3): [True: 0, False: 4.35k]
  ------------------
   66|      0|		{
   67|      0|			tryConstructNextLayerWithFallback<UdpLayer, PayloadLayer>(payload, payloadLen);
   68|      0|			break;
   69|      0|		}
   70|      0|		case PACKETPP_IPPROTO_TCP:
  ------------------
  |  Branch (70:3): [True: 0, False: 4.35k]
  ------------------
   71|      0|		{
   72|      0|			tryConstructNextLayerWithFallback<TcpLayer, PayloadLayer>(payload, payloadLen);
   73|      0|			break;
   74|      0|		}
   75|      0|		case PACKETPP_IPPROTO_IPIP:
  ------------------
  |  Branch (75:3): [True: 0, False: 4.35k]
  ------------------
   76|      0|		{
   77|      0|			uint8_t ipVersion = *payload >> 4;
   78|      0|			switch (ipVersion)
   79|      0|			{
   80|      0|			case 4:
  ------------------
  |  Branch (80:4): [True: 0, False: 0]
  ------------------
   81|      0|			{
   82|      0|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   83|      0|				break;
   84|      0|			}
   85|      0|			case 6:
  ------------------
  |  Branch (85:4): [True: 0, False: 0]
  ------------------
   86|      0|			{
   87|      0|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   88|      0|				break;
   89|      0|			}
   90|      0|			default:
  ------------------
  |  Branch (90:4): [True: 0, False: 0]
  ------------------
   91|      0|			{
   92|      0|				constructNextLayer<PayloadLayer>(payload, payloadLen);
   93|      0|				break;
   94|      0|			}
   95|      0|			}
   96|      0|			break;
   97|      0|		}
   98|  2.38k|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (98:3): [True: 2.38k, False: 1.97k]
  ------------------
   99|  2.38k|		{
  100|  2.38k|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen);
  101|  2.38k|			break;
  102|      0|		}
  103|  1.97k|		default:
  ------------------
  |  Branch (103:3): [True: 1.97k, False: 2.38k]
  ------------------
  104|  1.97k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  105|  4.35k|		}
  106|  4.35k|	}
_ZNK4pcpp25AuthenticationHeaderLayer8toStringEv:
  109|  1.42k|	{
  110|  1.42k|		return "Authentication Header Layer";
  111|  1.42k|	}
_ZNK4pcpp8ESPLayer6getSPIEv:
  118|  1.84k|	{
  119|       |		return be32toh(getESPHeader()->spi);
  120|  1.84k|	}
_ZN4pcpp8ESPLayer14parseNextLayerEv:
  128|  5.27k|	{
  129|  5.27k|		size_t headerLen = getHeaderLen();
  130|  5.27k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (130:7): [True: 1.61k, False: 3.66k]
  ------------------
  131|  1.61k|			return;
  132|       |
  133|  3.66k|		constructNextLayer<PayloadLayer>(m_Data + headerLen, m_DataLen - headerLen);
  134|  3.66k|	}
_ZNK4pcpp8ESPLayer8toStringEv:
  137|  1.84k|	{
  138|  1.84k|		std::ostringstream stream;
  139|  1.84k|		stream << "ESP Layer, SPI: 0x" << std::hex << getSPI();
  140|  1.84k|		return stream.str();
  141|  1.84k|	}

_ZN4pcpp9IPv4Layer17initLayerInPacketEb:
  181|   864k|	{
  182|   864k|		m_Protocol = IPv4;
  183|   864k|		m_NumOfTrailingBytes = 0;
  184|   864k|		m_TempHeaderExtension = 0;
  185|   864k|		if (setTotalLenAsDataLen)
  ------------------
  |  Branch (185:7): [True: 864k, False: 0]
  ------------------
  186|   864k|		{
  187|   864k|			size_t totalLen = be16toh(getIPv4Header()->totalLength);
  188|       |			// if totalLen == 0 this usually means TCP Segmentation Offload (TSO). In this case we should ignore the
  189|       |			// value of totalLen and look at the data captured on the wire
  190|   864k|			if ((totalLen < m_DataLen) && (totalLen != 0))
  ------------------
  |  Branch (190:8): [True: 180k, False: 683k]
  |  Branch (190:34): [True: 172k, False: 8.16k]
  ------------------
  191|   172k|			{
  192|   172k|				auto headerLen = (std::min)(getHeaderLen(), m_DataLen);
  193|       |				// Make sure totalLen is larger than header len, otherwise it's a malformed packet
  194|   172k|				m_DataLen = (std::max)(totalLen, headerLen);
  195|   172k|			}
  196|   864k|		}
  197|   864k|	}
_ZN4pcpp9IPv4LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  218|   864k|	    : Layer(data, dataLen, prevLayer, packet)
  219|   864k|	{
  220|   864k|		initLayerInPacket(true);
  221|   864k|	}
_ZN4pcpp9IPv4Layer14parseNextLayerEv:
  246|   864k|	{
  247|   864k|		size_t hdrLen = getHeaderLen();
  248|   864k|		if (m_DataLen <= hdrLen || hdrLen == 0)
  ------------------
  |  Branch (248:7): [True: 1.33k, False: 862k]
  |  Branch (248:30): [True: 0, False: 862k]
  ------------------
  249|  1.33k|			return;
  250|       |
  251|   862k|		iphdr* ipHdr = getIPv4Header();
  252|       |
  253|   862k|		uint8_t* payload = m_Data + hdrLen;
  254|   862k|		size_t payloadLen = m_DataLen - hdrLen;
  255|       |
  256|       |		// If it's a fragment don't parse upper layers, unless if it's the first fragment
  257|       |		// TODO: assuming first fragment contains at least L4 header, what if it's not true?
  258|   862k|		if (isFragment())
  ------------------
  |  Branch (258:7): [True: 7.75k, False: 855k]
  ------------------
  259|  7.75k|		{
  260|  7.75k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  261|  7.75k|			return;
  262|  7.75k|		}
  263|       |
  264|   855k|		switch (ipHdr->protocol)
  ------------------
  |  Branch (264:11): [True: 854k, False: 848]
  ------------------
  265|   855k|		{
  266|   288k|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (266:3): [True: 288k, False: 566k]
  ------------------
  267|   288k|			tryConstructNextLayerWithFallback<UdpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  268|   288k|			break;
  269|   424k|		case PACKETPP_IPPROTO_TCP:
  ------------------
  |  Branch (269:3): [True: 424k, False: 430k]
  ------------------
  270|   424k|			tryConstructNextLayerWithFallback<TcpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  271|   424k|			break;
  272|  39.8k|		case PACKETPP_IPPROTO_ICMP:
  ------------------
  |  Branch (272:3): [True: 39.8k, False: 815k]
  ------------------
  273|  39.8k|			tryConstructNextLayerWithFallback<IcmpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  274|  39.8k|			break;
  275|  1.70k|		case PACKETPP_IPPROTO_IPIP:
  ------------------
  |  Branch (275:3): [True: 1.70k, False: 853k]
  ------------------
  276|  1.70k|		{
  277|       |			// todo: no tests for this case
  278|  1.70k|			switch (IPLayer::getIPVersion(payload, payloadLen))
  279|  1.70k|			{
  280|  1.56k|			case IPv4:
  ------------------
  |  Branch (280:4): [True: 1.56k, False: 141]
  ------------------
  281|  1.56k|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  282|  1.56k|				break;
  283|      0|			case IPv6:
  ------------------
  |  Branch (283:4): [True: 0, False: 1.70k]
  ------------------
  284|      0|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  285|      0|				break;
  286|    141|			default:
  ------------------
  |  Branch (286:4): [True: 141, False: 1.56k]
  ------------------
  287|    141|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  288|    141|				break;
  289|  1.70k|			}
  290|  1.70k|			break;
  291|  1.70k|		}
  292|  71.3k|		case PACKETPP_IPPROTO_GRE:
  ------------------
  |  Branch (292:3): [True: 71.3k, False: 783k]
  ------------------
  293|  71.3k|		{
  294|  71.3k|			switch (GreLayer::getGREVersion(payload, payloadLen))
  295|  71.3k|			{
  296|  3.01k|			case GREv0:
  ------------------
  |  Branch (296:4): [True: 3.01k, False: 68.3k]
  ------------------
  297|  3.01k|				tryConstructNextLayerWithFallback<GREv0Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  298|  3.01k|				break;
  299|  68.2k|			case GREv1:
  ------------------
  |  Branch (299:4): [True: 68.2k, False: 3.17k]
  ------------------
  300|  68.2k|				tryConstructNextLayerWithFallback<GREv1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  301|  68.2k|				break;
  302|    161|			default:
  ------------------
  |  Branch (302:4): [True: 161, False: 71.2k]
  ------------------
  303|    161|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  304|    161|				break;
  305|  71.3k|			};
  306|  71.3k|			break;
  307|  71.3k|		}
  308|  14.5k|		case PACKETPP_IPPROTO_IGMP:
  ------------------
  |  Branch (308:3): [True: 14.5k, False: 840k]
  ------------------
  309|  14.5k|		{
  310|  14.5k|			bool igmpQuery = false;
  311|  14.5k|			ProtocolType igmpVer = IgmpLayer::getIGMPVerFromData(
  312|  14.5k|			    payload, std::min<size_t>(payloadLen, be16toh(getIPv4Header()->totalLength) - hdrLen), igmpQuery);
  313|       |
  314|  14.5k|			switch (igmpVer)
  315|  14.5k|			{
  316|  3.12k|			case IGMPv1:
  ------------------
  |  Branch (316:4): [True: 3.12k, False: 11.4k]
  ------------------
  317|  3.12k|				tryConstructNextLayerWithFallback<IgmpV1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  318|  3.12k|				break;
  319|  7.32k|			case IGMPv2:
  ------------------
  |  Branch (319:4): [True: 7.32k, False: 7.20k]
  ------------------
  320|  7.32k|				tryConstructNextLayerWithFallback<IgmpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  321|  7.32k|				break;
  322|  3.58k|			case IGMPv3:
  ------------------
  |  Branch (322:4): [True: 3.58k, False: 10.9k]
  ------------------
  323|  3.58k|			{
  324|  3.58k|				if (igmpQuery)
  ------------------
  |  Branch (324:9): [True: 1.43k, False: 2.14k]
  ------------------
  325|  1.43k|					tryConstructNextLayerWithFallback<IgmpV3QueryLayer, PayloadLayer>(payload, payloadLen,
  326|  1.43k|					                                                                  getAttachedPacket());
  327|  2.14k|				else
  328|  2.14k|					tryConstructNextLayerWithFallback<IgmpV3ReportLayer, PayloadLayer>(payload, payloadLen,
  329|  2.14k|					                                                                   getAttachedPacket());
  330|  3.58k|				break;
  331|      0|			}
  332|    504|			default:
  ------------------
  |  Branch (332:4): [True: 504, False: 14.0k]
  ------------------
  333|    504|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  334|    504|				break;
  335|  14.5k|			}
  336|  14.5k|			break;
  337|  14.5k|		}
  338|  14.5k|		case PACKETPP_IPPROTO_AH:
  ------------------
  |  Branch (338:3): [True: 4.49k, False: 850k]
  ------------------
  339|  4.49k|			tryConstructNextLayerWithFallback<AuthenticationHeaderLayer, PayloadLayer>(payload, payloadLen,
  340|  4.49k|			                                                                           getAttachedPacket());
  341|  4.49k|			break;
  342|  2.14k|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (342:3): [True: 2.14k, False: 852k]
  ------------------
  343|  2.14k|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  344|  2.14k|			break;
  345|    130|		case PACKETPP_IPPROTO_IPV6:
  ------------------
  |  Branch (345:3): [True: 130, False: 854k]
  ------------------
  346|    130|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  347|    130|			break;
  348|  7.07k|		case PACKETPP_IPPROTO_VRRP:
  ------------------
  |  Branch (348:3): [True: 7.07k, False: 847k]
  ------------------
  349|  7.07k|		{
  350|  7.07k|			switch (VrrpLayer::getVersionFromData(payload, payloadLen))
  351|  7.07k|			{
  352|  3.48k|			case VRRPv2:
  ------------------
  |  Branch (352:4): [True: 3.48k, False: 3.58k]
  ------------------
  353|  3.48k|				tryConstructNextLayerWithFallback<VrrpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  354|  3.48k|				break;
  355|  3.43k|			case VRRPv3:
  ------------------
  |  Branch (355:4): [True: 3.43k, False: 3.64k]
  ------------------
  356|  3.43k|				tryConstructNextLayerWithFallback<VrrpV3Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket(),
  357|  3.43k|				                                                             IPAddress::IPv4AddressType);
  358|  3.43k|				break;
  359|    155|			default:
  ------------------
  |  Branch (359:4): [True: 155, False: 6.91k]
  ------------------
  360|    155|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  361|    155|				break;
  362|  7.07k|			}
  363|  7.07k|			break;
  364|  7.07k|		}
  365|   855k|		}
  366|       |
  367|       |		// If no next layer was constructed, assume it's a payload layer
  368|   855k|		if (!hasNextLayer())
  ------------------
  |  Branch (368:7): [True: 848, False: 854k]
  ------------------
  369|    848|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  370|   855k|	}
_ZN4pcpp9IPv4Layer22computeCalculateFieldsEv:
  373|   145k|	{
  374|   145k|		auto* ipHdr = getIPv4Header();
  375|   145k|		ipHdr->ipVersion = (4 & 0x0f);
  376|   145k|		ipHdr->totalLength = htobe16(m_DataLen);
  377|   145k|		ipHdr->headerChecksum = 0;
  378|       |
  379|   145k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (379:7): [True: 145k, False: 333]
  ------------------
  380|   145k|		{
  381|   145k|			switch (m_NextLayer->getProtocol())
  382|   145k|			{
  383|  77.4k|			case TCP:
  ------------------
  |  Branch (383:4): [True: 77.4k, False: 68.1k]
  ------------------
  384|  77.4k|				ipHdr->protocol = PACKETPP_IPPROTO_TCP;
  385|  77.4k|				break;
  386|  44.6k|			case UDP:
  ------------------
  |  Branch (386:4): [True: 44.6k, False: 100k]
  ------------------
  387|  44.6k|				ipHdr->protocol = PACKETPP_IPPROTO_UDP;
  388|  44.6k|				break;
  389|  7.11k|			case ICMP:
  ------------------
  |  Branch (389:4): [True: 7.11k, False: 138k]
  ------------------
  390|  7.11k|				ipHdr->protocol = PACKETPP_IPPROTO_ICMP;
  391|  7.11k|				break;
  392|    566|			case GREv0:
  ------------------
  |  Branch (392:4): [True: 566, False: 145k]
  ------------------
  393|  6.84k|			case GREv1:
  ------------------
  |  Branch (393:4): [True: 6.27k, False: 139k]
  ------------------
  394|  6.84k|				ipHdr->protocol = PACKETPP_IPPROTO_GRE;
  395|  6.84k|				break;
  396|    633|			case IGMPv1:
  ------------------
  |  Branch (396:4): [True: 633, False: 144k]
  ------------------
  397|  2.10k|			case IGMPv2:
  ------------------
  |  Branch (397:4): [True: 1.47k, False: 144k]
  ------------------
  398|  2.89k|			case IGMPv3:
  ------------------
  |  Branch (398:4): [True: 791, False: 144k]
  ------------------
  399|  2.89k|				ipHdr->protocol = PACKETPP_IPPROTO_IGMP;
  400|  2.89k|				break;
  401|    853|			case VRRPv2:
  ------------------
  |  Branch (401:4): [True: 853, False: 144k]
  ------------------
  402|  1.65k|			case VRRPv3:
  ------------------
  |  Branch (402:4): [True: 803, False: 144k]
  ------------------
  403|  1.65k|				ipHdr->protocol = PACKETPP_IPPROTO_VRRP;
  404|  1.65k|				break;
  405|  4.95k|			default:
  ------------------
  |  Branch (405:4): [True: 4.95k, False: 140k]
  ------------------
  406|  4.95k|				break;
  407|   145k|			}
  408|   145k|		}
  409|       |
  410|   145k|		auto headerLen = (std::min)(static_cast<size_t>(ipHdr->internetHeaderLength * 4), m_DataLen);
  411|   145k|		ScalarBuffer<uint16_t> scalar = { reinterpret_cast<uint16_t*>(ipHdr), headerLen };
  412|       |		ipHdr->headerChecksum = htobe16(computeChecksum(&scalar, 1));
  413|   145k|	}
_ZNK4pcpp9IPv4Layer10isFragmentEv:
  416|  1.16M|	{
  417|  1.16M|		return ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) != 0 || getFragmentOffset() != 0);
  ------------------
  |  |  154|  1.16M|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (417:11): [True: 5.83k, False: 1.15M]
  |  Branch (417:65): [True: 10.7k, False: 1.14M]
  ------------------
  418|  1.16M|	}
_ZNK4pcpp9IPv4Layer15isFirstFragmentEv:
  421|  3.00k|	{
  422|  3.00k|		return isFragment() && (getFragmentOffset() == 0);
  ------------------
  |  Branch (422:10): [True: 3.00k, False: 0]
  |  Branch (422:26): [True: 184, False: 2.81k]
  ------------------
  423|  3.00k|	}
_ZNK4pcpp9IPv4Layer14isLastFragmentEv:
  426|  2.81k|	{
  427|  2.81k|		return isFragment() && ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) == 0);
  ------------------
  |  |  154|  2.81k|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (427:10): [True: 2.81k, False: 0]
  |  Branch (427:26): [True: 1.85k, False: 960]
  ------------------
  428|  2.81k|	}
_ZNK4pcpp9IPv4Layer16getFragmentFlagsEv:
  431|  1.16M|	{
  432|  1.16M|		return getIPv4Header()->fragmentOffset & 0xE0;
  433|  1.16M|	}
_ZNK4pcpp9IPv4Layer17getFragmentOffsetEv:
  436|  1.16M|	{
  437|       |		return be16toh(getIPv4Header()->fragmentOffset & (uint16_t)0xFF1F) * 8;
  438|  1.16M|	}
_ZNK4pcpp9IPv4Layer8toStringEv:
  441|   291k|	{
  442|   291k|		std::string fragment = "";
  443|   291k|		if (isFragment())
  ------------------
  |  Branch (443:7): [True: 3.00k, False: 288k]
  ------------------
  444|  3.00k|		{
  445|  3.00k|			if (isFirstFragment())
  ------------------
  |  Branch (445:8): [True: 184, False: 2.81k]
  ------------------
  446|    184|				fragment = "First fragment";
  447|  2.81k|			else if (isLastFragment())
  ------------------
  |  Branch (447:13): [True: 1.85k, False: 960]
  ------------------
  448|  1.85k|				fragment = "Last fragment";
  449|    960|			else
  450|    960|				fragment = "Fragment";
  451|       |
  452|  3.00k|			std::stringstream sstm;
  453|  3.00k|			sstm << fragment << " [offset= " << getFragmentOffset() << "], ";
  454|  3.00k|			fragment = sstm.str();
  455|  3.00k|		}
  456|       |
  457|   291k|		return "IPv4 Layer, " + fragment + "Src: " + getSrcIPv4Address().toString() +
  458|   291k|		       ", Dst: " + getDstIPv4Address().toString();
  459|   291k|	}

_ZNK4pcpp13IPv6Extension10getDataPtrEv:
   30|  63.6k|	{
   31|  63.6k|		if (m_DataContainer != nullptr)
  ------------------
  |  Branch (31:7): [True: 63.6k, False: 0]
  ------------------
   32|  63.6k|			return m_DataContainer->getDataPtr(m_Offset);
   33|       |
   34|      0|		return m_ShadowData;
   35|  63.6k|	}
_ZN4pcpp13IPv6ExtensionD2Ev:
   43|  17.6k|	{
   44|  17.6k|		if (m_ShadowData != nullptr)
  ------------------
  |  Branch (44:7): [True: 0, False: 17.6k]
  ------------------
   45|      0|			delete[] m_ShadowData;
   46|  17.6k|	}
_ZN4pcpp19IPv6TLVOptionHeaderC2EPNS_14IDataContainerEm:
  180|  16.3k|	    : IPv6Extension(dataContainer, offset)
  181|  16.3k|	{}

_ZN4pcpp9IPv6LayerC2EPhmPNS_5LayerEPNS_6PacketE:
   29|   149k|	    : Layer(data, dataLen, prevLayer, packet, IPv6)
   30|   149k|	{
   31|   149k|		m_FirstExtension = nullptr;
   32|   149k|		m_LastExtension = nullptr;
   33|   149k|		m_ExtensionsLen = 0;
   34|       |
   35|   149k|		parseExtensions();
   36|       |
   37|   149k|		size_t totalLen = be16toh(getIPv6Header()->payloadLength) + getHeaderLen();
   38|   149k|		if (totalLen < m_DataLen)
  ------------------
  |  Branch (38:7): [True: 74.8k, False: 74.1k]
  ------------------
   39|  74.8k|			m_DataLen = totalLen;
   40|   149k|	}
_ZN4pcpp9IPv6LayerD2Ev:
   64|   149k|	{
   65|   149k|		deleteExtensions();
   66|   149k|	}
_ZN4pcpp9IPv6Layer15parseExtensionsEv:
   80|   149k|	{
   81|   149k|		uint8_t nextHdr = getIPv6Header()->nextHeader;
   82|   149k|		IPv6Extension* curExt = nullptr;
   83|       |
   84|   149k|		size_t offset = sizeof(ip6_hdr);
   85|       |
   86|   166k|		while (offset <= m_DataLen - 2 * sizeof(uint8_t))  // 2*sizeof(uint8_t) is the min len for IPv6 extensions
  ------------------
  |  Branch (86:10): [True: 165k, False: 1.05k]
  ------------------
   87|   165k|		{
   88|   165k|			IPv6Extension* newExt = nullptr;
   89|       |
   90|   165k|			switch (nextHdr)
   91|   165k|			{
   92|    306|			case PACKETPP_IPPROTO_FRAGMENT:
  ------------------
  |  Branch (92:4): [True: 306, False: 165k]
  ------------------
   93|    306|			{
   94|    306|				newExt = new IPv6FragmentationHeader(this, offset);
   95|    306|				break;
   96|      0|			}
   97|  16.3k|			case PACKETPP_IPPROTO_HOPOPTS:
  ------------------
  |  Branch (97:4): [True: 16.3k, False: 149k]
  ------------------
   98|  16.3k|			{
   99|  16.3k|				newExt = new IPv6HopByHopHeader(this, offset);
  100|  16.3k|				break;
  101|      0|			}
  102|      0|			case PACKETPP_IPPROTO_DSTOPTS:
  ------------------
  |  Branch (102:4): [True: 0, False: 165k]
  ------------------
  103|      0|			{
  104|      0|				newExt = new IPv6DestinationHeader(this, offset);
  105|      0|				break;
  106|      0|			}
  107|    448|			case PACKETPP_IPPROTO_ROUTING:
  ------------------
  |  Branch (107:4): [True: 448, False: 165k]
  ------------------
  108|    448|			{
  109|    448|				newExt = new IPv6RoutingHeader(this, offset);
  110|    448|				break;
  111|      0|			}
  112|    528|			case PACKETPP_IPPROTO_AH:
  ------------------
  |  Branch (112:4): [True: 528, False: 165k]
  ------------------
  113|    528|			{
  114|    528|				newExt = new IPv6AuthenticationHeader(this, offset);
  115|    528|				break;
  116|      0|			}
  117|   147k|			default:
  ------------------
  |  Branch (117:4): [True: 147k, False: 17.6k]
  ------------------
  118|   147k|			{
  119|   147k|				break;
  120|      0|			}
  121|   165k|			}
  122|       |
  123|   165k|			if (newExt == nullptr)
  ------------------
  |  Branch (123:8): [True: 147k, False: 17.6k]
  ------------------
  124|   147k|				break;
  125|       |
  126|  17.6k|			if (m_FirstExtension == nullptr)
  ------------------
  |  Branch (126:8): [True: 10.8k, False: 6.86k]
  ------------------
  127|  10.8k|			{
  128|  10.8k|				m_FirstExtension = newExt;
  129|  10.8k|				curExt = m_FirstExtension;
  130|  10.8k|			}
  131|  6.86k|			else
  132|  6.86k|			{
  133|  6.86k|				if (curExt == nullptr)
  ------------------
  |  Branch (133:9): [True: 0, False: 6.86k]
  ------------------
  134|      0|				{
  135|      0|					throw std::logic_error("curExt is nullptr");
  136|      0|				}
  137|  6.86k|				curExt->setNextHeader(newExt);
  138|  6.86k|				curExt = curExt->getNextHeader();
  139|  6.86k|			}
  140|       |
  141|  17.6k|			offset += newExt->getExtensionLen();
  142|  17.6k|			nextHdr = newExt->getBaseHeader()->nextHeader;
  143|  17.6k|			m_ExtensionsLen += newExt->getExtensionLen();
  144|  17.6k|		}
  145|       |
  146|   149k|		m_LastExtension = curExt;
  147|   149k|	}
_ZN4pcpp9IPv6Layer16deleteExtensionsEv:
  150|   149k|	{
  151|   149k|		IPv6Extension* curExt = m_FirstExtension;
  152|   166k|		while (curExt != nullptr)
  ------------------
  |  Branch (152:10): [True: 17.6k, False: 149k]
  ------------------
  153|  17.6k|		{
  154|  17.6k|			IPv6Extension* tmpExt = curExt->getNextHeader();
  155|  17.6k|			delete curExt;
  156|  17.6k|			curExt = tmpExt;
  157|  17.6k|		}
  158|       |
  159|   149k|		m_FirstExtension = nullptr;
  160|   149k|		m_LastExtension = nullptr;
  161|   149k|		m_ExtensionsLen = 0;
  162|   149k|	}
_ZN4pcpp9IPv6Layer14parseNextLayerEv:
  195|   149k|	{
  196|   149k|		size_t headerLen = getHeaderLen();
  197|       |
  198|   149k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (198:7): [True: 1.07k, False: 147k]
  ------------------
  199|  1.07k|			return;
  200|       |
  201|   147k|		uint8_t* payload = m_Data + headerLen;
  202|   147k|		size_t payloadLen = m_DataLen - headerLen;
  203|       |
  204|   147k|		uint8_t nextHdr;
  205|   147k|		if (m_LastExtension != nullptr)
  ------------------
  |  Branch (205:7): [True: 9.73k, False: 138k]
  ------------------
  206|  9.73k|		{
  207|  9.73k|			if (m_LastExtension->getExtensionType() == IPv6Extension::IPv6Fragmentation)
  ------------------
  |  Branch (207:8): [True: 0, False: 9.73k]
  ------------------
  208|      0|			{
  209|      0|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  210|      0|				return;
  211|      0|			}
  212|       |
  213|  9.73k|			nextHdr = m_LastExtension->getBaseHeader()->nextHeader;
  214|  9.73k|		}
  215|   138k|		else
  216|   138k|		{
  217|   138k|			nextHdr = getIPv6Header()->nextHeader;
  218|   138k|		}
  219|       |
  220|   147k|		switch (nextHdr)
  221|   147k|		{
  222|  31.7k|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (222:3): [True: 31.7k, False: 116k]
  ------------------
  223|  31.7k|		{
  224|  31.7k|			tryConstructNextLayerWithFallback<UdpLayer, PayloadLayer>(payload, payloadLen);
  225|  31.7k|			break;
  226|      0|		}
  227|  90.4k|		case PACKETPP_IPPROTO_TCP:
  ------------------
  |  Branch (227:3): [True: 90.4k, False: 57.5k]
  ------------------
  228|  90.4k|		{
  229|  90.4k|			tryConstructNextLayerWithFallback<TcpLayer, PayloadLayer>(payload, payloadLen);
  230|  90.4k|			break;
  231|      0|		}
  232|  2.44k|		case PACKETPP_IPPROTO_IPIP:
  ------------------
  |  Branch (232:3): [True: 2.44k, False: 145k]
  ------------------
  233|  2.44k|		{
  234|  2.44k|			uint8_t ipVersion = *payload >> 4;
  235|  2.44k|			switch (ipVersion)
  236|  2.44k|			{
  237|      0|			case 4:
  ------------------
  |  Branch (237:4): [True: 0, False: 2.44k]
  ------------------
  238|      0|			{
  239|      0|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  240|      0|				break;
  241|      0|			}
  242|  2.31k|			case 6:
  ------------------
  |  Branch (242:4): [True: 2.31k, False: 130]
  ------------------
  243|  2.31k|			{
  244|  2.31k|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  245|  2.31k|				break;
  246|      0|			}
  247|    130|			default:
  ------------------
  |  Branch (247:4): [True: 130, False: 2.31k]
  ------------------
  248|    130|			{
  249|    130|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  250|    130|				break;
  251|      0|			}
  252|  2.44k|			}
  253|  2.44k|			break;
  254|  2.44k|		}
  255|  12.2k|		case PACKETPP_IPPROTO_GRE:
  ------------------
  |  Branch (255:3): [True: 12.2k, False: 135k]
  ------------------
  256|  12.2k|		{
  257|  12.2k|			ProtocolType greVer = GreLayer::getGREVersion(payload, payloadLen);
  258|       |
  259|  12.2k|			switch (greVer)
  260|  12.2k|			{
  261|  6.77k|			case GREv0:
  ------------------
  |  Branch (261:4): [True: 6.77k, False: 5.48k]
  ------------------
  262|  6.77k|			{
  263|  6.77k|				tryConstructNextLayerWithFallback<GREv0Layer, PayloadLayer>(payload, payloadLen);
  264|  6.77k|				break;
  265|      0|			}
  266|  5.48k|			case GREv1:
  ------------------
  |  Branch (266:4): [True: 5.48k, False: 6.77k]
  ------------------
  267|  5.48k|			{
  268|  5.48k|				tryConstructNextLayerWithFallback<GREv1Layer, PayloadLayer>(payload, payloadLen);
  269|  5.48k|				break;
  270|      0|			}
  271|      0|			default:
  ------------------
  |  Branch (271:4): [True: 0, False: 12.2k]
  ------------------
  272|      0|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  273|      0|				break;
  274|  12.2k|			}
  275|  12.2k|			break;
  276|  12.2k|		}
  277|  12.2k|		case PACKETPP_IPPROTO_AH:
  ------------------
  |  Branch (277:3): [True: 0, False: 147k]
  ------------------
  278|      0|		{
  279|      0|			tryConstructNextLayerWithFallback<AuthenticationHeaderLayer, PayloadLayer>(payload, payloadLen);
  280|      0|			break;
  281|  12.2k|		}
  282|    744|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (282:3): [True: 744, False: 147k]
  ------------------
  283|    744|		{
  284|    744|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen);
  285|    744|			break;
  286|  12.2k|		}
  287|  2.51k|		case PACKETPP_IPPROTO_ICMPV6:
  ------------------
  |  Branch (287:3): [True: 2.51k, False: 145k]
  ------------------
  288|  2.51k|		{
  289|  2.51k|			constructNextLayerFromFactory(IcmpV6Layer::parseIcmpV6Layer, payload, payloadLen);
  290|  2.51k|			break;
  291|  12.2k|		}
  292|  3.72k|		case PACKETPP_IPPROTO_VRRP:
  ------------------
  |  Branch (292:3): [True: 3.72k, False: 144k]
  ------------------
  293|  3.72k|		{
  294|  3.72k|			auto vrrpVer = VrrpLayer::getVersionFromData(payload, payloadLen);
  295|       |
  296|  3.72k|			if (vrrpVer == VRRPv3)
  ------------------
  |  Branch (296:8): [True: 3.59k, False: 130]
  ------------------
  297|  3.59k|			{
  298|  3.59k|				constructNextLayer<VrrpV3Layer>(payload, payloadLen, IPAddress::IPv6AddressType);
  299|  3.59k|			}
  300|    130|			else
  301|    130|			{
  302|    130|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  303|    130|			}
  304|  3.72k|			break;
  305|  12.2k|		}
  306|  4.05k|		default:
  ------------------
  |  Branch (306:3): [True: 4.05k, False: 143k]
  ------------------
  307|  4.05k|		{
  308|  4.05k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  309|  4.05k|			break;
  310|  12.2k|		}
  311|   147k|		}
  312|   147k|	}
_ZN4pcpp9IPv6Layer22computeCalculateFieldsEv:
  315|  27.2k|	{
  316|  27.2k|		ip6_hdr* ipHdr = getIPv6Header();
  317|  27.2k|		ipHdr->payloadLength = htobe16(m_DataLen - sizeof(ip6_hdr));
  318|  27.2k|		ipHdr->ipVersion = (6 & 0x0f);
  319|       |
  320|  27.2k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (320:7): [True: 26.9k, False: 350]
  ------------------
  321|  26.9k|		{
  322|  26.9k|			uint8_t nextHeader = 0;
  323|  26.9k|			switch (m_NextLayer->getProtocol())
  324|  26.9k|			{
  325|  15.5k|			case TCP:
  ------------------
  |  Branch (325:4): [True: 15.5k, False: 11.3k]
  ------------------
  326|  15.5k|				nextHeader = PACKETPP_IPPROTO_TCP;
  327|  15.5k|				break;
  328|  5.55k|			case UDP:
  ------------------
  |  Branch (328:4): [True: 5.55k, False: 21.3k]
  ------------------
  329|  5.55k|				nextHeader = PACKETPP_IPPROTO_UDP;
  330|  5.55k|				break;
  331|      0|			case ICMP:
  ------------------
  |  Branch (331:4): [True: 0, False: 26.9k]
  ------------------
  332|      0|				nextHeader = PACKETPP_IPPROTO_ICMP;
  333|      0|				break;
  334|    589|			case ICMPv6:
  ------------------
  |  Branch (334:4): [True: 589, False: 26.3k]
  ------------------
  335|    589|				nextHeader = PACKETPP_IPPROTO_ICMPV6;
  336|    589|				break;
  337|  1.35k|			case GREv0:
  ------------------
  |  Branch (337:4): [True: 1.35k, False: 25.5k]
  ------------------
  338|  2.44k|			case GREv1:
  ------------------
  |  Branch (338:4): [True: 1.09k, False: 25.8k]
  ------------------
  339|  2.44k|				nextHeader = PACKETPP_IPPROTO_GRE;
  340|  2.44k|				break;
  341|    673|			case VRRPv3:
  ------------------
  |  Branch (341:4): [True: 673, False: 26.2k]
  ------------------
  342|    673|				nextHeader = PACKETPP_IPPROTO_VRRP;
  343|    673|				break;
  344|  2.08k|			default:
  ------------------
  |  Branch (344:4): [True: 2.08k, False: 24.8k]
  ------------------
  345|  2.08k|				break;
  346|  26.9k|			}
  347|       |
  348|  26.9k|			if (nextHeader != 0)
  ------------------
  |  Branch (348:8): [True: 24.8k, False: 2.08k]
  ------------------
  349|  24.8k|			{
  350|  24.8k|				if (m_LastExtension != nullptr)
  ------------------
  |  Branch (350:9): [True: 904, False: 23.9k]
  ------------------
  351|    904|					m_LastExtension->getBaseHeader()->nextHeader = nextHeader;
  352|  23.9k|				else
  353|  23.9k|					ipHdr->nextHeader = nextHeader;
  354|  24.8k|			}
  355|  26.9k|		}
  356|  27.2k|	}
_ZNK4pcpp9IPv6Layer8toStringEv:
  359|  54.5k|	{
  360|  54.5k|		std::string result =
  361|  54.5k|		    "IPv6 Layer, Src: " + getSrcIPv6Address().toString() + ", Dst: " + getDstIPv6Address().toString();
  362|  54.5k|		if (m_ExtensionsLen > 0)
  ------------------
  |  Branch (362:7): [True: 4.69k, False: 49.8k]
  ------------------
  363|  4.69k|		{
  364|  4.69k|			result += ", Options=[";
  365|  4.69k|			IPv6Extension* curExt = m_FirstExtension;
  366|  12.1k|			while (curExt != nullptr)
  ------------------
  |  Branch (366:11): [True: 7.45k, False: 4.69k]
  ------------------
  367|  7.45k|			{
  368|  7.45k|				switch (curExt->getExtensionType())
  369|  7.45k|				{
  370|    128|				case IPv6Extension::IPv6Fragmentation:
  ------------------
  |  Branch (370:5): [True: 128, False: 7.32k]
  ------------------
  371|    128|					result += "Fragment,";
  372|    128|					break;
  373|  6.75k|				case IPv6Extension::IPv6HopByHop:
  ------------------
  |  Branch (373:5): [True: 6.75k, False: 704]
  ------------------
  374|  6.75k|					result += "Hop-By-Hop,";
  375|  6.75k|					break;
  376|      0|				case IPv6Extension::IPv6Destination:
  ------------------
  |  Branch (376:5): [True: 0, False: 7.45k]
  ------------------
  377|      0|					result += "Destination,";
  378|      0|					break;
  379|    224|				case IPv6Extension::IPv6Routing:
  ------------------
  |  Branch (379:5): [True: 224, False: 7.23k]
  ------------------
  380|    224|					result += "Routing,";
  381|    224|					break;
  382|    352|				case IPv6Extension::IPv6AuthenticationHdr:
  ------------------
  |  Branch (382:5): [True: 352, False: 7.10k]
  ------------------
  383|    352|					result += "Authentication,";
  384|    352|					break;
  385|      0|				default:
  ------------------
  |  Branch (385:5): [True: 0, False: 7.45k]
  ------------------
  386|      0|					result += "Unknown,";
  387|      0|					break;
  388|  7.45k|				}
  389|       |
  390|  7.45k|				curExt = curExt->getNextHeader();
  391|  7.45k|			}
  392|       |
  393|       |			// replace the last ','
  394|  4.69k|			result[result.size() - 1] = ']';
  395|  4.69k|		}
  396|       |
  397|  54.5k|		return result;
  398|  54.5k|	}

_ZN4pcpp29icmp_router_address_structure16setRouterAddressENS_11IPv4AddressEj:
   25|    571|	{
   26|    571|		routerAddress = addr.toInt();
   27|       |		preferenceLevel = htobe32(preference);
   28|    571|	}
_ZNK4pcpp9IcmpLayer14getMessageTypeEv:
   37|   172k|	{
   38|   172k|		uint8_t type = getIcmpHeader()->type;
   39|   172k|		if (type > 18)
  ------------------
  |  Branch (39:7): [True: 0, False: 172k]
  ------------------
   40|      0|			return ICMP_UNSUPPORTED;
   41|       |
   42|   172k|		return static_cast<IcmpMessageType>(type);
   43|   172k|	}
_ZN4pcpp9IcmpLayer14cleanIcmpLayerEv:
   46|  5.15k|	{
   47|       |		// remove all layers after
   48|       |
   49|  5.15k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (49:7): [True: 0, False: 5.15k]
  ------------------
   50|      0|		{
   51|      0|			bool res = getAttachedPacket()->removeAllLayersAfter(this);
   52|      0|			if (!res)
  ------------------
  |  Branch (52:8): [True: 0, False: 0]
  ------------------
   53|      0|				return false;
   54|      0|		}
   55|       |
   56|       |		// shorten layer to size of icmphdr
   57|       |
   58|  5.15k|		size_t headerLen = this->getHeaderLen();
   59|  5.15k|		if (headerLen > sizeof(icmphdr))
  ------------------
  |  Branch (59:7): [True: 4.45k, False: 700]
  ------------------
   60|  4.45k|		{
   61|  4.45k|			if (!this->shortenLayer(sizeof(icmphdr), headerLen - sizeof(icmphdr)))
  ------------------
  |  Branch (61:8): [True: 0, False: 4.45k]
  ------------------
   62|      0|				return false;
   63|  4.45k|		}
   64|       |
   65|  5.15k|		return true;
   66|  5.15k|	}
_ZN4pcpp9IcmpLayer16setIpAndL4LayersEPNS_9IPv4LayerEPNS_5LayerE:
   99|  1.08k|	{
  100|  1.08k|		if (getAttachedPacket() == nullptr)
  ------------------
  |  Branch (100:7): [True: 1.08k, False: 0]
  ------------------
  101|  1.08k|		{
  102|  1.08k|			PCPP_LOG_ERROR("Cannot set ICMP data that involves IP and L4 layers on a layer not attached to a packet. "
  ------------------
  |  |  443|  1.08k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  1.08k|	do                                                                                                                 \
  |  |  |  |  413|  1.08k|	{                                                                                                                  \
  |  |  |  |  414|  1.08k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.08k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.08k|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.08k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.08k|		{                                                                                                              \
  |  |  |  |  417|  1.08k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.08k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.08k|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.08k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.08k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.08k|		}                                                                                                              \
  |  |  |  |  422|  1.08k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.08k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  103|  1.08k|			               "Please add the ICMP layer to a packet and try again");
  104|  1.08k|			return false;
  105|  1.08k|		}
  106|       |
  107|      0|		if (ipLayer != nullptr && !getAttachedPacket()->addLayer(ipLayer))
  ------------------
  |  Branch (107:7): [True: 0, False: 0]
  |  Branch (107:29): [True: 0, False: 0]
  ------------------
  108|      0|		{
  109|      0|			PCPP_LOG_ERROR("Couldn't add IP layer to ICMP packet");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  110|      0|			return false;
  111|      0|		}
  112|       |
  113|      0|		if (l4Layer != nullptr && !getAttachedPacket()->addLayer(l4Layer))
  ------------------
  |  Branch (113:7): [True: 0, False: 0]
  |  Branch (113:29): [True: 0, False: 0]
  ------------------
  114|      0|		{
  115|      0|			PCPP_LOG_ERROR("Couldn't add L4 layer to ICMP packet");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  116|      0|			return false;
  117|      0|		}
  118|       |
  119|      0|		return true;
  120|      0|	}
_ZN4pcpp9IcmpLayer21getTimestampReplyDataEv:
  195|  1.97k|	{
  196|  1.97k|		if (!isMessageOfType(ICMP_TIMESTAMP_REPLY))
  ------------------
  |  Branch (196:7): [True: 0, False: 1.97k]
  ------------------
  197|      0|			return nullptr;
  198|       |
  199|  1.97k|		return reinterpret_cast<icmp_timestamp_reply*>(m_Data);
  200|  1.97k|	}
_ZN4pcpp9IcmpLayer21setTimestampReplyDataEtt7timevalS1_S1_:
  204|    988|	{
  205|    988|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (205:7): [True: 0, False: 988]
  ------------------
  206|      0|			return nullptr;
  207|       |
  208|    988|		if (!this->extendLayer(m_DataLen, sizeof(icmp_timestamp_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (208:7): [True: 0, False: 988]
  ------------------
  209|      0|			return nullptr;
  210|       |
  211|    988|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_TIMESTAMP_REPLY);
  212|       |
  213|    988|		icmp_timestamp_reply* header = getTimestampReplyData();
  214|    988|		header->code = 0;
  215|    988|		header->id = htobe16(id);
  216|    988|		header->sequence = htobe16(sequence);
  217|    988|		header->originateTimestamp = htobe32(originateTimestamp.tv_sec * 1000 + originateTimestamp.tv_usec / 1000);
  218|    988|		header->receiveTimestamp = htobe32(receiveTimestamp.tv_sec * 1000 + receiveTimestamp.tv_usec / 1000);
  219|    988|		header->transmitTimestamp = htobe32(transmitTimestamp.tv_sec * 1000 + transmitTimestamp.tv_usec / 1000);
  220|       |
  221|    988|		return header;
  222|    988|	}
_ZN4pcpp9IcmpLayer22getDestUnreachableDataEv:
  225|  1.00k|	{
  226|  1.00k|		if (!isMessageOfType(ICMP_DEST_UNREACHABLE))
  ------------------
  |  Branch (226:7): [True: 0, False: 1.00k]
  ------------------
  227|      0|			return nullptr;
  228|       |
  229|  1.00k|		return reinterpret_cast<icmp_destination_unreachable*>(m_Data);
  230|  1.00k|	}
_ZN4pcpp9IcmpLayer22setDestUnreachableDataENS_24IcmpDestUnreachableCodesEtPNS_9IPv4LayerEPNS_5LayerE:
  234|    500|	{
  235|    500|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (235:7): [True: 0, False: 500]
  ------------------
  236|      0|			return nullptr;
  237|       |
  238|    500|		if (!this->extendLayer(m_DataLen, sizeof(icmp_destination_unreachable) - sizeof(icmphdr)))
  ------------------
  |  Branch (238:7): [True: 0, False: 500]
  ------------------
  239|      0|			return nullptr;
  240|       |
  241|    500|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_DEST_UNREACHABLE);
  242|       |
  243|    500|		icmp_destination_unreachable* header = getDestUnreachableData();
  244|    500|		header->code = code;
  245|    500|		header->nextHopMTU = htobe16(nextHopMTU);
  246|    500|		header->unused = 0;
  247|       |
  248|    500|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (248:7): [True: 500, False: 0]
  ------------------
  249|    500|			return nullptr;
  250|       |
  251|      0|		return header;
  252|    500|	}
_ZNK4pcpp9IcmpLayer26getRouterAdvertisementDataEv:
  317|  6.31k|	{
  318|  6.31k|		if (!isMessageOfType(ICMP_ROUTER_ADV))
  ------------------
  |  Branch (318:7): [True: 0, False: 6.31k]
  ------------------
  319|      0|			return nullptr;
  320|       |
  321|  6.31k|		m_RouterAdvData.header = reinterpret_cast<icmp_router_advertisement_hdr*>(m_Data);
  322|       |
  323|  6.31k|		return &m_RouterAdvData;
  324|  6.31k|	}
_ZN4pcpp9IcmpLayer26setRouterAdvertisementDataEhtRKNSt3__16vectorINS_29icmp_router_address_structureENS1_9allocatorIS3_EEEE:
  328|    571|	{
  329|    571|		if (code != 0 && code != 16)
  ------------------
  |  Branch (329:7): [True: 571, False: 0]
  |  Branch (329:20): [True: 0, False: 571]
  ------------------
  330|      0|		{
  331|      0|			PCPP_LOG_ERROR("Unknown code " << (int)code
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  332|      0|			                               << " for ICMP router advertisement data (only codes 0 and 16 are legal)");
  333|      0|			return nullptr;
  334|      0|		}
  335|       |
  336|    571|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (336:7): [True: 0, False: 571]
  ------------------
  337|      0|			return nullptr;
  338|       |
  339|    571|		if (!this->extendLayer(m_DataLen, sizeof(icmp_router_advertisement_hdr) +
  ------------------
  |  Branch (339:7): [True: 0, False: 571]
  ------------------
  340|    571|		                                      (routerAddresses.size() * sizeof(icmp_router_address_structure)) -
  341|    571|		                                      sizeof(icmphdr)))
  342|      0|			return nullptr;
  343|       |
  344|    571|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ROUTER_ADV);
  345|       |
  346|    571|		icmp_router_advertisement* header = getRouterAdvertisementData();
  347|    571|		header->header->code = code;
  348|    571|		header->header->lifetime = htobe16(lifetimeInSeconds);
  349|    571|		header->header->advertisementCount = static_cast<uint8_t>(routerAddresses.size());
  350|    571|		header->header->addressEntrySize = 2;
  351|       |
  352|    571|		icmp_router_address_structure* curPos = reinterpret_cast<icmp_router_address_structure*>(
  353|    571|		    reinterpret_cast<uint8_t*>(header->header) + sizeof(icmp_router_advertisement_hdr));
  354|    571|		for (const auto& iter : routerAddresses)
  ------------------
  |  Branch (354:25): [True: 571, False: 571]
  ------------------
  355|    571|		{
  356|    571|			curPos->routerAddress = iter.routerAddress;
  357|    571|			curPos->preferenceLevel = iter.preferenceLevel;
  358|    571|			curPos += 1;
  359|    571|		}
  360|       |
  361|    571|		return header;
  362|    571|	}
_ZN4pcpp9IcmpLayer19getTimeExceededDataEv:
  386|  1.00k|	{
  387|  1.00k|		if (!isMessageOfType(ICMP_TIME_EXCEEDED))
  ------------------
  |  Branch (387:7): [True: 0, False: 1.00k]
  ------------------
  388|      0|			return nullptr;
  389|       |
  390|  1.00k|		return reinterpret_cast<icmp_time_exceeded*>(m_Data);
  391|  1.00k|	}
_ZN4pcpp9IcmpLayer19setTimeExceededDataEhPNS_9IPv4LayerEPNS_5LayerE:
  394|    500|	{
  395|    500|		if (code > 1)
  ------------------
  |  Branch (395:7): [True: 0, False: 500]
  ------------------
  396|      0|		{
  397|      0|			PCPP_LOG_ERROR("Unknown code " << (int)code << " for ICMP time exceeded data");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  398|      0|			return nullptr;
  399|      0|		}
  400|       |
  401|    500|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (401:7): [True: 0, False: 500]
  ------------------
  402|      0|			return nullptr;
  403|       |
  404|    500|		if (!this->extendLayer(m_DataLen, sizeof(icmp_time_exceeded) - sizeof(icmphdr)))
  ------------------
  |  Branch (404:7): [True: 0, False: 500]
  ------------------
  405|      0|			return nullptr;
  406|       |
  407|    500|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_TIME_EXCEEDED);
  408|       |
  409|    500|		icmp_time_exceeded* header = getTimeExceededData();
  410|    500|		header->code = code;
  411|    500|		header->unused = 0;
  412|       |
  413|    500|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (413:7): [True: 500, False: 0]
  ------------------
  414|    500|			return nullptr;
  415|       |
  416|      0|		return header;
  417|    500|	}
_ZN4pcpp9IcmpLayer19getParamProblemDataEv:
  420|    721|	{
  421|    721|		if (!isMessageOfType(ICMP_PARAM_PROBLEM))
  ------------------
  |  Branch (421:7): [True: 0, False: 721]
  ------------------
  422|      0|			return nullptr;
  423|       |
  424|    721|		return reinterpret_cast<icmp_param_problem*>(m_Data);
  425|    721|	}
_ZN4pcpp9IcmpLayer19setParamProblemDataEhhPNS_9IPv4LayerEPNS_5LayerE:
  429|    636|	{
  430|    636|		if (code > 2)
  ------------------
  |  Branch (430:7): [True: 551, False: 85]
  ------------------
  431|    551|		{
  432|    551|			PCPP_LOG_ERROR("Unknown code " << (int)code << " for ICMP parameter problem data");
  ------------------
  |  |  443|    551|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    551|	do                                                                                                                 \
  |  |  |  |  413|    551|	{                                                                                                                  \
  |  |  |  |  414|    551|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    551|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    551|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 551, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    551|		{                                                                                                              \
  |  |  |  |  417|    551|			auto ctx =                                                                                                 \
  |  |  |  |  418|    551|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    551|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    551|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    551|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    551|		}                                                                                                              \
  |  |  |  |  422|    551|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 551]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  433|    551|			return nullptr;
  434|    551|		}
  435|       |
  436|     85|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (436:7): [True: 0, False: 85]
  ------------------
  437|      0|			return nullptr;
  438|       |
  439|     85|		if (!this->extendLayer(m_DataLen, sizeof(icmp_param_problem) - sizeof(icmphdr)))
  ------------------
  |  Branch (439:7): [True: 0, False: 85]
  ------------------
  440|      0|			return nullptr;
  441|       |
  442|     85|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_PARAM_PROBLEM);
  443|       |
  444|     85|		icmp_param_problem* header = getParamProblemData();
  445|     85|		header->code = code;
  446|     85|		header->unused1 = 0;
  447|     85|		header->unused2 = 0;
  448|     85|		header->pointer = errorOctetPointer;
  449|       |
  450|     85|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (450:7): [True: 85, False: 0]
  ------------------
  451|     85|			return nullptr;
  452|       |
  453|      0|		return header;
  454|     85|	}
_ZN4pcpp9IcmpLayer25getAddressMaskRequestDataEv:
  457|  1.45k|	{
  458|  1.45k|		if (!isMessageOfType(ICMP_ADDRESS_MASK_REQUEST))
  ------------------
  |  Branch (458:7): [True: 0, False: 1.45k]
  ------------------
  459|      0|			return nullptr;
  460|       |
  461|  1.45k|		return reinterpret_cast<icmp_address_mask_request*>(m_Data);
  462|  1.45k|	}
_ZN4pcpp9IcmpLayer25setAddressMaskRequestDataEttNS_11IPv4AddressE:
  465|    725|	{
  466|    725|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (466:7): [True: 0, False: 725]
  ------------------
  467|      0|			return nullptr;
  468|       |
  469|    725|		if (!this->extendLayer(m_DataLen, sizeof(icmp_address_mask_request) - sizeof(icmphdr)))
  ------------------
  |  Branch (469:7): [True: 0, False: 725]
  ------------------
  470|      0|			return nullptr;
  471|       |
  472|    725|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ADDRESS_MASK_REQUEST);
  473|       |
  474|    725|		icmp_address_mask_request* header = getAddressMaskRequestData();
  475|    725|		header->code = 0;
  476|    725|		header->id = htobe16(id);
  477|    725|		header->sequence = htobe16(sequence);
  478|    725|		header->addressMask = mask.toInt();
  479|       |
  480|    725|		return header;
  481|    725|	}
_ZN4pcpp9IcmpLayer23getAddressMaskReplyDataEv:
  484|  2.16k|	{
  485|  2.16k|		if (!isMessageOfType(ICMP_ADDRESS_MASK_REPLY))
  ------------------
  |  Branch (485:7): [True: 0, False: 2.16k]
  ------------------
  486|      0|			return nullptr;
  487|       |
  488|  2.16k|		return reinterpret_cast<icmp_address_mask_reply*>(m_Data);
  489|  2.16k|	}
_ZN4pcpp9IcmpLayer23setAddressMaskReplyDataEttNS_11IPv4AddressE:
  492|  1.08k|	{
  493|  1.08k|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (493:7): [True: 0, False: 1.08k]
  ------------------
  494|      0|			return nullptr;
  495|       |
  496|  1.08k|		if (!this->extendLayer(m_DataLen, sizeof(icmp_address_mask_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (496:7): [True: 0, False: 1.08k]
  ------------------
  497|      0|			return nullptr;
  498|       |
  499|  1.08k|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ADDRESS_MASK_REPLY);
  500|       |
  501|  1.08k|		icmp_address_mask_reply* header = getAddressMaskReplyData();
  502|  1.08k|		header->code = 0;
  503|  1.08k|		header->id = htobe16(id);
  504|  1.08k|		header->sequence = htobe16(sequence);
  505|  1.08k|		header->addressMask = htobe32(mask.toInt());
  506|       |
  507|  1.08k|		return header;
  508|  1.08k|	}
_ZN4pcpp9IcmpLayer18getInfoRequestDataEv:
  511|    660|	{
  512|    660|		if (!isMessageOfType(ICMP_INFO_REQUEST))
  ------------------
  |  Branch (512:7): [True: 0, False: 660]
  ------------------
  513|      0|			return nullptr;
  514|       |
  515|    660|		return reinterpret_cast<icmp_info_request*>(m_Data);
  516|    660|	}
_ZN4pcpp9IcmpLayer18setInfoRequestDataEtt:
  519|    330|	{
  520|    330|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (520:7): [True: 0, False: 330]
  ------------------
  521|      0|			return nullptr;
  522|       |
  523|    330|		if (!this->extendLayer(m_DataLen, sizeof(icmp_info_request) - sizeof(icmphdr)))
  ------------------
  |  Branch (523:7): [True: 0, False: 330]
  ------------------
  524|      0|			return nullptr;
  525|       |
  526|    330|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_INFO_REQUEST);
  527|       |
  528|    330|		icmp_info_request* header = getInfoRequestData();
  529|    330|		header->code = 0;
  530|    330|		header->id = htobe16(id);
  531|    330|		header->sequence = htobe16(sequence);
  532|       |
  533|    330|		return header;
  534|    330|	}
_ZN4pcpp9IcmpLayer16getInfoReplyDataEv:
  537|    740|	{
  538|    740|		if (!isMessageOfType(ICMP_INFO_REPLY))
  ------------------
  |  Branch (538:7): [True: 0, False: 740]
  ------------------
  539|      0|			return nullptr;
  540|       |
  541|    740|		return reinterpret_cast<icmp_info_reply*>(m_Data);
  542|    740|	}
_ZN4pcpp9IcmpLayer16setInfoReplyDataEtt:
  545|    370|	{
  546|    370|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (546:7): [True: 0, False: 370]
  ------------------
  547|      0|			return nullptr;
  548|       |
  549|    370|		if (!this->extendLayer(m_DataLen, sizeof(icmp_info_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (549:7): [True: 0, False: 370]
  ------------------
  550|      0|			return nullptr;
  551|       |
  552|    370|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_INFO_REPLY);
  553|       |
  554|    370|		icmp_info_reply* header = getInfoReplyData();
  555|    370|		header->code = 0;
  556|    370|		header->id = htobe16(id);
  557|    370|		header->sequence = htobe16(sequence);
  558|       |
  559|    370|		return header;
  560|    370|	}
_ZN4pcpp9IcmpLayer14parseNextLayerEv:
  563|  39.2k|	{
  564|  39.2k|		size_t headerLen = getHeaderLen();
  565|       |
  566|  39.2k|		auto payloadPtr = m_Data + headerLen;
  567|  39.2k|		auto payloadLen = m_DataLen - headerLen;
  568|       |
  569|  39.2k|		switch (getMessageType())
  570|  39.2k|		{
  571|  3.29k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (571:3): [True: 3.29k, False: 35.9k]
  ------------------
  572|  5.45k|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (572:3): [True: 2.15k, False: 37.0k]
  ------------------
  573|  8.44k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (573:3): [True: 2.99k, False: 36.2k]
  ------------------
  574|  9.87k|		case ICMP_REDIRECT:
  ------------------
  |  Branch (574:3): [True: 1.42k, False: 37.7k]
  ------------------
  575|  13.7k|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (575:3): [True: 3.87k, False: 35.3k]
  ------------------
  576|  13.7k|		{
  577|  13.7k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payloadPtr, payloadLen);
  578|  13.7k|			break;
  579|  9.87k|		}
  580|  25.4k|		default:
  ------------------
  |  Branch (580:3): [True: 25.4k, False: 13.7k]
  ------------------
  581|  25.4k|			if (m_DataLen > headerLen)
  ------------------
  |  Branch (581:8): [True: 21.0k, False: 4.40k]
  ------------------
  582|  21.0k|			{
  583|  21.0k|				constructNextLayer<PayloadLayer>(payloadPtr, payloadLen);
  584|  21.0k|			}
  585|  25.4k|			break;
  586|  39.2k|		}
  587|  39.2k|	}
_ZNK4pcpp9IcmpLayer12getHeaderLenEv:
  590|  65.7k|	{
  591|  65.7k|		IcmpMessageType type = getMessageType();
  592|  65.7k|		size_t routerAdvSize = 0;
  593|  65.7k|		switch (type)
  594|  65.7k|		{
  595|    327|		case ICMP_ECHO_REQUEST:
  ------------------
  |  Branch (595:3): [True: 327, False: 65.3k]
  ------------------
  596|  3.00k|		case ICMP_ECHO_REPLY:
  ------------------
  |  Branch (596:3): [True: 2.67k, False: 63.0k]
  ------------------
  597|  3.00k|			return m_DataLen;
  598|    208|		case ICMP_TIMESTAMP_REQUEST:
  ------------------
  |  Branch (598:3): [True: 208, False: 65.4k]
  ------------------
  599|  9.10k|		case ICMP_TIMESTAMP_REPLY:
  ------------------
  |  Branch (599:3): [True: 8.89k, False: 56.8k]
  ------------------
  600|  9.10k|			return sizeof(icmp_timestamp_request);
  601|  3.27k|		case ICMP_ROUTER_SOL:
  ------------------
  |  Branch (601:3): [True: 3.27k, False: 62.4k]
  ------------------
  602|  6.55k|		case ICMP_INFO_REQUEST:
  ------------------
  |  Branch (602:3): [True: 3.28k, False: 62.4k]
  ------------------
  603|  10.6k|		case ICMP_INFO_REPLY:
  ------------------
  |  Branch (603:3): [True: 4.06k, False: 61.6k]
  ------------------
  604|  10.6k|		case ICMP_UNSUPPORTED:
  ------------------
  |  Branch (604:3): [True: 0, False: 65.7k]
  ------------------
  605|  10.6k|			return sizeof(icmphdr);
  606|  9.74k|		case ICMP_ADDRESS_MASK_REPLY:
  ------------------
  |  Branch (606:3): [True: 9.74k, False: 55.9k]
  ------------------
  607|  16.2k|		case ICMP_ADDRESS_MASK_REQUEST:
  ------------------
  |  Branch (607:3): [True: 6.52k, False: 59.1k]
  ------------------
  608|  16.2k|			return sizeof(icmp_address_mask_request);
  609|  5.29k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (609:3): [True: 5.29k, False: 60.4k]
  ------------------
  610|  5.29k|			return sizeof(icmp_destination_unreachable);
  611|  2.14k|		case ICMP_REDIRECT:
  ------------------
  |  Branch (611:3): [True: 2.14k, False: 63.5k]
  ------------------
  612|  2.14k|			return sizeof(icmp_redirect);
  613|  4.99k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (613:3): [True: 4.99k, False: 60.7k]
  ------------------
  614|  8.23k|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (614:3): [True: 3.23k, False: 62.4k]
  ------------------
  615|  8.23k|			return sizeof(icmp_time_exceeded);
  616|  5.87k|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (616:3): [True: 5.87k, False: 59.8k]
  ------------------
  617|  5.87k|			return sizeof(icmp_param_problem);
  618|  5.17k|		case ICMP_ROUTER_ADV:
  ------------------
  |  Branch (618:3): [True: 5.17k, False: 60.5k]
  ------------------
  619|       |			// clang-format off
  620|  5.17k|			routerAdvSize = sizeof(icmp_router_advertisement_hdr) + (getRouterAdvertisementData()->header->advertisementCount * sizeof(icmp_router_address_structure));
  621|       |			// clang-format on
  622|  5.17k|			if (routerAdvSize > m_DataLen)
  ------------------
  |  Branch (622:8): [True: 45, False: 5.12k]
  ------------------
  623|     45|				return m_DataLen;
  624|  5.12k|			return routerAdvSize;
  625|      0|		default:
  ------------------
  |  Branch (625:3): [True: 0, False: 65.7k]
  ------------------
  626|      0|			return sizeof(icmphdr);
  627|  65.7k|		}
  628|  65.7k|	}
_ZN4pcpp9IcmpLayer22computeCalculateFieldsEv:
  631|  7.11k|	{
  632|       |		// calculate checksum
  633|  7.11k|		getIcmpHeader()->checksum = 0;
  634|       |
  635|  7.11k|		size_t icmpLen = 0;
  636|  7.11k|		Layer* curLayer = this;
  637|  24.5k|		while (curLayer != nullptr)
  ------------------
  |  Branch (637:10): [True: 17.4k, False: 7.11k]
  ------------------
  638|  17.4k|		{
  639|  17.4k|			icmpLen += curLayer->getHeaderLen();
  640|  17.4k|			curLayer = curLayer->getNextLayer();
  641|  17.4k|		}
  642|       |
  643|  7.11k|		ScalarBuffer<uint16_t> buffer;
  644|  7.11k|		buffer.buffer = reinterpret_cast<uint16_t*>(getIcmpHeader());
  645|  7.11k|		buffer.len = icmpLen;
  646|  7.11k|		size_t checksum = computeChecksum(&buffer, 1);
  647|       |
  648|       |		getIcmpHeader()->checksum = htobe16(checksum);
  649|  7.11k|	}
_ZNK4pcpp9IcmpLayer8toStringEv:
  652|  14.2k|	{
  653|  14.2k|		std::string messageTypeAsString;
  654|  14.2k|		IcmpMessageType type = getMessageType();
  655|  14.2k|		switch (type)
  656|  14.2k|		{
  657|    764|		case ICMP_ECHO_REPLY:
  ------------------
  |  Branch (657:3): [True: 764, False: 13.4k]
  ------------------
  658|    764|			messageTypeAsString = "Echo (ping) reply";
  659|    764|			break;
  660|  1.00k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (660:3): [True: 1.00k, False: 13.2k]
  ------------------
  661|  1.00k|			messageTypeAsString = "Destination unreachable";
  662|  1.00k|			break;
  663|    720|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (663:3): [True: 720, False: 13.5k]
  ------------------
  664|    720|			messageTypeAsString = "Source quench (flow control)";
  665|    720|			break;
  666|    476|		case ICMP_REDIRECT:
  ------------------
  |  Branch (666:3): [True: 476, False: 13.7k]
  ------------------
  667|    476|			messageTypeAsString = "Redirect";
  668|    476|			break;
  669|     86|		case ICMP_ECHO_REQUEST:
  ------------------
  |  Branch (669:3): [True: 86, False: 14.1k]
  ------------------
  670|     86|			messageTypeAsString = "Echo (ping) request";
  671|     86|			break;
  672|  1.14k|		case ICMP_ROUTER_ADV:
  ------------------
  |  Branch (672:3): [True: 1.14k, False: 13.0k]
  ------------------
  673|  1.14k|			messageTypeAsString = "Router advertisement";
  674|  1.14k|			break;
  675|    728|		case ICMP_ROUTER_SOL:
  ------------------
  |  Branch (675:3): [True: 728, False: 13.5k]
  ------------------
  676|    728|			messageTypeAsString = "Router solicitation";
  677|    728|			break;
  678|  1.00k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (678:3): [True: 1.00k, False: 13.2k]
  ------------------
  679|  1.00k|			messageTypeAsString = "Time-to-live exceeded";
  680|  1.00k|			break;
  681|  1.27k|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (681:3): [True: 1.27k, False: 12.9k]
  ------------------
  682|  1.27k|			messageTypeAsString = "Parameter problem: bad IP header";
  683|  1.27k|			break;
  684|     52|		case ICMP_TIMESTAMP_REQUEST:
  ------------------
  |  Branch (684:3): [True: 52, False: 14.1k]
  ------------------
  685|     52|			messageTypeAsString = "Timestamp request";
  686|     52|			break;
  687|  1.97k|		case ICMP_TIMESTAMP_REPLY:
  ------------------
  |  Branch (687:3): [True: 1.97k, False: 12.2k]
  ------------------
  688|  1.97k|			messageTypeAsString = "Timestamp reply";
  689|  1.97k|			break;
  690|    660|		case ICMP_INFO_REQUEST:
  ------------------
  |  Branch (690:3): [True: 660, False: 13.5k]
  ------------------
  691|    660|			messageTypeAsString = "Information request";
  692|    660|			break;
  693|    740|		case ICMP_INFO_REPLY:
  ------------------
  |  Branch (693:3): [True: 740, False: 13.4k]
  ------------------
  694|    740|			messageTypeAsString = "Information reply";
  695|    740|			break;
  696|  1.45k|		case ICMP_ADDRESS_MASK_REQUEST:
  ------------------
  |  Branch (696:3): [True: 1.45k, False: 12.7k]
  ------------------
  697|  1.45k|			messageTypeAsString = "Address mask request";
  698|  1.45k|			break;
  699|  2.16k|		case ICMP_ADDRESS_MASK_REPLY:
  ------------------
  |  Branch (699:3): [True: 2.16k, False: 12.0k]
  ------------------
  700|  2.16k|			messageTypeAsString = "Address mask reply";
  701|  2.16k|			break;
  702|      0|		default:
  ------------------
  |  Branch (702:3): [True: 0, False: 14.2k]
  ------------------
  703|      0|			messageTypeAsString = "Unknown";
  704|      0|			break;
  705|  14.2k|		}
  706|       |
  707|  14.2k|		std::ostringstream typeStream;
  708|  14.2k|		typeStream << (int)getIcmpHeader()->type;
  709|       |
  710|  14.2k|		return "ICMP Layer, " + messageTypeAsString + " (type: " + typeStream.str() + ")";
  711|  14.2k|	}

_ZN4pcpp11IcmpV6Layer16parseIcmpV6LayerEPhmPNS_5LayerEPNS_6PacketE:
   18|  2.51k|	{
   19|  2.51k|		if (dataLen < sizeof(icmpv6hdr))
  ------------------
  |  Branch (19:7): [True: 0, False: 2.51k]
  ------------------
   20|      0|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   21|       |
   22|  2.51k|		icmpv6hdr* hdr = (icmpv6hdr*)data;
   23|  2.51k|		ICMPv6MessageType messageType = static_cast<ICMPv6MessageType>(hdr->type);
   24|       |
   25|  2.51k|		switch (messageType)
   26|  2.51k|		{
   27|      0|		case ICMPv6MessageType::ICMPv6_ECHO_REQUEST:
  ------------------
  |  Branch (27:3): [True: 0, False: 2.51k]
  ------------------
   28|    556|		case ICMPv6MessageType::ICMPv6_ECHO_REPLY:
  ------------------
  |  Branch (28:3): [True: 556, False: 1.95k]
  ------------------
   29|    556|			return new ICMPv6EchoLayer(data, dataLen, prevLayer, packet);
   30|    620|		case ICMPv6MessageType::ICMPv6_NEIGHBOR_SOLICITATION:
  ------------------
  |  Branch (30:3): [True: 620, False: 1.89k]
  ------------------
   31|    620|			return new NDPNeighborSolicitationLayer(data, dataLen, prevLayer, packet);
   32|      0|		case ICMPv6MessageType::ICMPv6_NEIGHBOR_ADVERTISEMENT:
  ------------------
  |  Branch (32:3): [True: 0, False: 2.51k]
  ------------------
   33|      0|			return new NDPNeighborAdvertisementLayer(data, dataLen, prevLayer, packet);
   34|    128|		case ICMPv6MessageType::ICMPv6_UNKNOWN_MESSAGE:
  ------------------
  |  Branch (34:3): [True: 128, False: 2.38k]
  ------------------
   35|    128|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   36|  1.20k|		default:
  ------------------
  |  Branch (36:3): [True: 1.20k, False: 1.30k]
  ------------------
   37|  1.20k|			return new IcmpV6Layer(data, dataLen, prevLayer, packet);
   38|  2.51k|		}
   39|  2.51k|	}
_ZNK4pcpp11IcmpV6Layer14getMessageTypeEv:
   55|    868|	{
   56|    868|		return static_cast<ICMPv6MessageType>(getIcmpv6Header()->type);
   57|    868|	}
_ZN4pcpp11IcmpV6Layer22computeCalculateFieldsEv:
   70|    589|	{
   71|    589|		calculateChecksum();
   72|    589|	}
_ZN4pcpp11IcmpV6Layer17calculateChecksumEv:
   75|    589|	{
   76|       |		// Pseudo header of 40 bytes which is composed as follows(in order):
   77|       |		// - 16 bytes for the source address
   78|       |		// - 16 bytes for the destination address
   79|       |		// - 4 bytes big endian payload length(the same value as in the IPv6 header)
   80|       |		// - 3 bytes zero + 1 byte nextheader( 58 decimal) big endian
   81|       |
   82|    589|		getIcmpv6Header()->checksum = 0;
   83|       |
   84|    589|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (84:7): [True: 589, False: 0]
  ------------------
   85|    589|		{
   86|    589|			ScalarBuffer<uint16_t> vec[2];
   87|       |
   88|    589|			vec[0].buffer = (uint16_t*)m_Data;
   89|    589|			vec[0].len = m_DataLen;
   90|       |
   91|    589|			const unsigned int pseudoHeaderLen = 40;
   92|    589|			const unsigned int bigEndianLen = htobe32(m_DataLen);
   93|    589|			const unsigned int bigEndianNextHeader = htobe32(PACKETPP_IPPROTO_ICMPV6);
   94|       |
   95|    589|			uint16_t pseudoHeader[pseudoHeaderLen / 2];
   96|    589|			((IPv6Layer*)m_PrevLayer)->getSrcIPv6Address().copyTo((uint8_t*)pseudoHeader);
   97|    589|			((IPv6Layer*)m_PrevLayer)->getDstIPv6Address().copyTo((uint8_t*)(pseudoHeader + 8));
   98|    589|			memcpy(&pseudoHeader[16], &bigEndianLen, sizeof(uint32_t));
   99|    589|			memcpy(&pseudoHeader[18], &bigEndianNextHeader, sizeof(uint32_t));
  100|    589|			vec[1].buffer = pseudoHeader;
  101|    589|			vec[1].len = pseudoHeaderLen;
  102|       |
  103|       |			// Calculate and write checksum
  104|       |			getIcmpv6Header()->checksum = htobe16(computeChecksum(vec, 2));
  105|    589|		}
  106|    589|	}
_ZNK4pcpp11IcmpV6Layer8toStringEv:
  109|    590|	{
  110|    590|		std::ostringstream typeStream;
  111|    590|		typeStream << (int)getMessageType();
  112|    590|		return "ICMPv6 Layer, Message type: " + typeStream.str();
  113|    590|	}
_ZNK4pcpp15ICMPv6EchoLayer8toStringEv:
  158|    278|	{
  159|    278|		std::ostringstream typeStream;
  160|    278|		typeStream << (int)getMessageType();
  161|    278|		return "ICMPv6 Layer, Echo Request/Reply Message (type: " + typeStream.str() + ")";
  162|    278|	}

_ZNK4pcpp9IgmpLayer7getTypeEv:
   30|  5.78k|	{
   31|  5.78k|		uint8_t type = getIgmpHeader()->type;
   32|  5.78k|		if (type < (uint8_t)IgmpType_MembershipQuery ||
  ------------------
  |  Branch (32:7): [True: 0, False: 5.78k]
  ------------------
   33|  5.78k|		    (type > (uint8_t)IgmpType_LeaveGroup && type < (uint8_t)IgmpType_MulticastTracerouteResponse) ||
  ------------------
  |  Branch (33:8): [True: 864, False: 4.92k]
  |  Branch (33:47): [True: 0, False: 864]
  ------------------
   34|  5.78k|		    (type > (uint8_t)IgmpType_MulticastTraceroute && type < (uint8_t)IgmpType_MembershipReportV3) ||
  ------------------
  |  Branch (34:8): [True: 864, False: 4.92k]
  |  Branch (34:56): [True: 0, False: 864]
  ------------------
   35|  5.78k|		    (type > (uint8_t)IgmpType_MembershipReportV3 && type < (uint8_t)IgmpType_MulticastRouterAdvertisement) ||
  ------------------
  |  Branch (35:8): [True: 0, False: 5.78k]
  |  Branch (35:55): [True: 0, False: 0]
  ------------------
   36|  5.78k|		    type > IgmpType_MulticastRouterTermination)
  ------------------
  |  Branch (36:7): [True: 0, False: 5.78k]
  ------------------
   37|      0|		{
   38|      0|			return IgmpType_Unknown;
   39|      0|		}
   40|       |
   41|  5.78k|		return (IgmpType)type;
   42|  5.78k|	}
_ZN4pcpp9IgmpLayer18getIGMPVerFromDataEPhmRb:
   54|  14.5k|	{
   55|  14.5k|		isQuery = false;
   56|       |
   57|  14.5k|		if (dataLen < 8 || data == nullptr)
  ------------------
  |  Branch (57:7): [True: 140, False: 14.3k]
  |  Branch (57:22): [True: 0, False: 14.3k]
  ------------------
   58|    140|			return UnknownProtocol;
   59|       |
   60|  14.3k|		switch ((int)data[0])
   61|  14.3k|		{
   62|  1.47k|		case IgmpType_MembershipReportV2:
  ------------------
  |  Branch (62:3): [True: 1.47k, False: 12.9k]
  ------------------
   63|  4.09k|		case IgmpType_LeaveGroup:
  ------------------
  |  Branch (63:3): [True: 2.61k, False: 11.7k]
  ------------------
   64|  4.09k|			return IGMPv2;
   65|  1.35k|		case IgmpType_MembershipReportV1:
  ------------------
  |  Branch (65:3): [True: 1.35k, False: 13.0k]
  ------------------
   66|  1.35k|			return IGMPv1;
   67|  2.14k|		case IgmpType_MembershipReportV3:
  ------------------
  |  Branch (67:3): [True: 2.14k, False: 12.2k]
  ------------------
   68|  2.14k|			return IGMPv3;
   69|  6.44k|		case IgmpType_MembershipQuery:
  ------------------
  |  Branch (69:3): [True: 6.44k, False: 7.95k]
  ------------------
   70|  6.44k|		{
   71|  6.44k|			isQuery = true;
   72|       |
   73|  6.44k|			if (dataLen >= sizeof(igmpv3_query_header))
  ------------------
  |  Branch (73:8): [True: 1.43k, False: 5.00k]
  ------------------
   74|  1.43k|				return IGMPv3;
   75|       |
   76|  5.00k|			if (data[1] == 0)
  ------------------
  |  Branch (76:8): [True: 1.77k, False: 3.23k]
  ------------------
   77|  1.77k|				return IGMPv1;
   78|  3.23k|			else
   79|  3.23k|				return IGMPv2;
   80|  5.00k|		}
   81|    364|		default:
  ------------------
  |  Branch (81:3): [True: 364, False: 14.0k]
  ------------------
   82|    364|			return UnknownProtocol;
   83|  14.3k|		}
   84|  14.3k|	}
_ZN4pcpp9IgmpLayer17calculateChecksumEv:
   87|  2.89k|	{
   88|  2.89k|		ScalarBuffer<uint16_t> buffer;
   89|  2.89k|		buffer.buffer = reinterpret_cast<uint16_t*>(getIgmpHeader());
   90|  2.89k|		buffer.len = getHeaderLen();
   91|  2.89k|		return computeChecksum(&buffer, 1);
   92|  2.89k|	}
_ZNK4pcpp9IgmpLayer8toStringEv:
  111|  5.78k|	{
  112|  5.78k|		std::string igmpVer = "";
  113|  5.78k|		switch (getProtocol())
  114|  5.78k|		{
  115|  1.26k|		case IGMPv1:
  ------------------
  |  Branch (115:3): [True: 1.26k, False: 4.52k]
  ------------------
  116|  1.26k|			igmpVer = "1";
  117|  1.26k|			break;
  118|  2.94k|		case IGMPv2:
  ------------------
  |  Branch (118:3): [True: 2.94k, False: 2.84k]
  ------------------
  119|  2.94k|			igmpVer = "2";
  120|  2.94k|			break;
  121|  1.58k|		default:
  ------------------
  |  Branch (121:3): [True: 1.58k, False: 4.20k]
  ------------------
  122|  1.58k|			igmpVer = "3";
  123|  5.78k|		}
  124|       |
  125|  5.78k|		std::string msgType;
  126|       |
  127|  5.78k|		switch (getType())
  128|  5.78k|		{
  129|  2.72k|		case IgmpType_MembershipQuery:
  ------------------
  |  Branch (129:3): [True: 2.72k, False: 3.06k]
  ------------------
  130|  2.72k|			msgType = "Membership Query";
  131|  2.72k|			break;
  132|    558|		case IgmpType_MembershipReportV1:
  ------------------
  |  Branch (132:3): [True: 558, False: 5.23k]
  ------------------
  133|    558|			msgType = "Membership Report";
  134|    558|			break;
  135|      0|		case IgmpType_DVMRP:
  ------------------
  |  Branch (135:3): [True: 0, False: 5.78k]
  ------------------
  136|      0|			msgType = "DVMRP";
  137|      0|			break;
  138|      0|		case IgmpType_P1Mv1:
  ------------------
  |  Branch (138:3): [True: 0, False: 5.78k]
  ------------------
  139|      0|			msgType = "PIMv1";
  140|      0|			break;
  141|      0|		case IgmpType_CiscoTrace:
  ------------------
  |  Branch (141:3): [True: 0, False: 5.78k]
  ------------------
  142|      0|			msgType = "Cisco Trace";
  143|      0|			break;
  144|    594|		case IgmpType_MembershipReportV2:
  ------------------
  |  Branch (144:3): [True: 594, False: 5.19k]
  ------------------
  145|    594|			msgType = "Membership Report";
  146|    594|			break;
  147|  1.04k|		case IgmpType_LeaveGroup:
  ------------------
  |  Branch (147:3): [True: 1.04k, False: 4.74k]
  ------------------
  148|  1.04k|			msgType = "Leave Group";
  149|  1.04k|			break;
  150|      0|		case IgmpType_MulticastTracerouteResponse:
  ------------------
  |  Branch (150:3): [True: 0, False: 5.78k]
  ------------------
  151|      0|			msgType = "Multicast Traceroute Response";
  152|      0|			break;
  153|      0|		case IgmpType_MulticastTraceroute:
  ------------------
  |  Branch (153:3): [True: 0, False: 5.78k]
  ------------------
  154|      0|			msgType = "Multicast Traceroute";
  155|      0|			break;
  156|    864|		case IgmpType_MembershipReportV3:
  ------------------
  |  Branch (156:3): [True: 864, False: 4.92k]
  ------------------
  157|    864|			msgType = "Membership Report";
  158|    864|			break;
  159|      0|		case IgmpType_MulticastRouterAdvertisement:
  ------------------
  |  Branch (159:3): [True: 0, False: 5.78k]
  ------------------
  160|      0|			msgType = "Multicast Router Advertisement";
  161|      0|			break;
  162|      0|		case IgmpType_MulticastRouterSolicitation:
  ------------------
  |  Branch (162:3): [True: 0, False: 5.78k]
  ------------------
  163|      0|			msgType = "Multicast Router Solicitation";
  164|      0|			break;
  165|      0|		case IgmpType_MulticastRouterTermination:
  ------------------
  |  Branch (165:3): [True: 0, False: 5.78k]
  ------------------
  166|      0|			msgType = "Multicast Router Termination";
  167|      0|			break;
  168|      0|		default:
  ------------------
  |  Branch (168:3): [True: 0, False: 5.78k]
  ------------------
  169|      0|			msgType = "Unknown";
  170|      0|			break;
  171|  5.78k|		}
  172|       |
  173|  5.78k|		std::string result = "IGMPv" + igmpVer + " Layer, " + msgType + " message";
  174|  5.78k|		return result;
  175|  5.78k|	}
_ZN4pcpp11IgmpV1Layer22computeCalculateFieldsEv:
  180|    633|	{
  181|    633|		igmp_header* hdr = getIgmpHeader();
  182|    633|		hdr->checksum = 0;
  183|       |		hdr->checksum = htobe16(calculateChecksum());
  184|    633|		hdr->maxResponseTime = 0;
  185|    633|	}
_ZN4pcpp11IgmpV2Layer22computeCalculateFieldsEv:
  190|  1.47k|	{
  191|  1.47k|		igmp_header* hdr = getIgmpHeader();
  192|  1.47k|		hdr->checksum = 0;
  193|       |		hdr->checksum = htobe16(calculateChecksum());
  194|  1.47k|	}
_ZN4pcpp16IgmpV3QueryLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  199|  1.43k|	    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv3)
  200|  1.43k|	{}
_ZNK4pcpp16IgmpV3QueryLayer21getSourceAddressCountEv:
  209|    718|	{
  210|       |		return be16toh(getIgmpV3QueryHeader()->numOfSources);
  211|    718|	}
_ZNK4pcpp16IgmpV3QueryLayer12getHeaderLenEv:
  229|    718|	{
  230|    718|		uint16_t numOfSources = getSourceAddressCount();
  231|       |
  232|    718|		int headerLen = numOfSources * sizeof(uint32_t) + sizeof(igmpv3_query_header);
  233|       |
  234|       |		// verify numOfRecords is a reasonable number that points to data within the packet
  235|    718|		if ((size_t)headerLen > getDataLen())
  ------------------
  |  Branch (235:7): [True: 142, False: 576]
  ------------------
  236|    142|			return getDataLen();
  237|       |
  238|    576|		return (size_t)headerLen;
  239|    718|	}
_ZN4pcpp16IgmpV3QueryLayer22computeCalculateFieldsEv:
  242|    359|	{
  243|    359|		igmpv3_query_header* hdr = getIgmpV3QueryHeader();
  244|    359|		hdr->checksum = 0;
  245|       |		hdr->checksum = htobe16(calculateChecksum());
  246|    359|	}
_ZN4pcpp17IgmpV3ReportLayer22computeCalculateFieldsEv:
  361|    432|	{
  362|    432|		igmpv3_report_header* hdr = getReportHeader();
  363|    432|		hdr->checksum = 0;
  364|       |		hdr->checksum = htobe16(calculateChecksum());
  365|    432|	}

_ZN4pcpp8LLCLayer14parseNextLayerEv:
   25|  3.52k|	{
   26|  3.52k|		if (m_DataLen <= sizeof(llc_header))
  ------------------
  |  Branch (26:7): [True: 1.27k, False: 2.25k]
  ------------------
   27|  1.27k|			return;
   28|       |
   29|  2.25k|		llc_header* hdr = getLlcHeader();
   30|  2.25k|		uint8_t* payload = m_Data + sizeof(llc_header);
   31|  2.25k|		size_t payloadLen = m_DataLen - sizeof(llc_header);
   32|       |
   33|  2.25k|		if (hdr->dsap == 0x42 && hdr->ssap == 0x42 && StpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (33:7): [True: 128, False: 2.12k]
  |  Branch (33:28): [True: 0, False: 128]
  |  Branch (33:49): [True: 0, False: 0]
  ------------------
   34|      0|		{
   35|      0|			constructNextLayerFromFactory(StpLayer::parseStpLayer, payload, payloadLen);
   36|      0|		}
   37|       |
   38|  2.25k|		if (!hasNextLayer())
  ------------------
  |  Branch (38:7): [True: 2.25k, False: 0]
  ------------------
   39|  2.25k|		{
   40|  2.25k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   41|  2.25k|		}
   42|  2.25k|	}
_ZNK4pcpp8LLCLayer8toStringEv:
   45|  1.83k|	{
   46|  1.83k|		return "Logical Link Control";
   47|  1.83k|	}
_ZN4pcpp8LLCLayer11isDataValidEPKhm:
   50|  3.78k|	{
   51|  3.78k|		return dataLen >= sizeof(llc_header) && !(data[0] == 0xFF && data[1] == 0xFF);
  ------------------
  |  Branch (51:10): [True: 3.65k, False: 129]
  |  Branch (51:45): [True: 128, False: 3.52k]
  |  Branch (51:64): [True: 128, False: 0]
  ------------------
   52|  3.78k|	}

_ZN4pcpp5LayerD2Ev:
   13|  4.63M|	{
   14|  4.63M|		if (!isAllocatedToPacket())
  ------------------
  |  Branch (14:7): [True: 120k, False: 4.51M]
  ------------------
   15|   120k|			delete[] m_Data;
   16|  4.63M|	}
_ZN4pcpp5LayerC2ERKS0_:
   18|   120k|	Layer::Layer(const Layer& other) : m_Protocol(other.m_Protocol), m_NextLayer(nullptr), m_PrevLayer(nullptr)
   19|   120k|	{
   20|   120k|		m_DataLen = other.getHeaderLen();
   21|   120k|		m_Data = new uint8_t[other.m_DataLen];
   22|   120k|		memcpy(m_Data, other.m_Data, other.m_DataLen);
   23|   120k|	}
_ZN4pcpp5LayeraSERKS0_:
   26|  12.9k|	{
   27|  12.9k|		if (this == &other)
  ------------------
  |  Branch (27:7): [True: 0, False: 12.9k]
  ------------------
   28|      0|			return *this;
   29|       |
   30|       |		// Should this really always delete m_Data? What if the layer is attached to a packet?
   31|  12.9k|		if (m_Data != nullptr)
  ------------------
  |  Branch (31:7): [True: 12.9k, False: 0]
  ------------------
   32|  12.9k|			delete[] m_Data;
   33|       |
   34|       |		// Reset allocation info as the layer is considered copied and not attached to any packet.
   35|  12.9k|		m_AllocationInfo = internal::LayerAllocationInfo{};
   36|       |
   37|  12.9k|		m_DataLen = other.getHeaderLen();
   38|  12.9k|		m_Protocol = other.m_Protocol;
   39|  12.9k|		m_NextLayer = nullptr;
   40|  12.9k|		m_PrevLayer = nullptr;
   41|  12.9k|		m_Data = new uint8_t[other.m_DataLen];
   42|  12.9k|		memcpy(m_Data, other.m_Data, other.m_DataLen);
   43|       |
   44|  12.9k|		return *this;
   45|  12.9k|	}
_ZNK4pcpp5Layer24isMemberOfProtocolFamilyEj:
   48|  15.3M|	{
   49|  15.3M|		return m_Protocol != UnknownProtocol && internal::protoFamilyContainsProtocol(protocolTypeFamily, m_Protocol);
  ------------------
  |  Branch (49:10): [True: 15.3M, False: 0]
  |  Branch (49:43): [True: 120k, False: 15.1M]
  ------------------
   50|  15.3M|	}
_ZN4pcpp5Layer11extendLayerEim:
   87|   201k|	{
   88|   201k|		if (m_Data == nullptr)
  ------------------
  |  Branch (88:7): [True: 0, False: 201k]
  ------------------
   89|      0|		{
   90|      0|			PCPP_LOG_ERROR("Layer's data is nullptr");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   91|      0|			return false;
   92|      0|		}
   93|       |
   94|   201k|		if (getAttachedPacket() == nullptr)
  ------------------
  |  Branch (94:7): [True: 114k, False: 86.9k]
  ------------------
   95|   114k|		{
   96|   114k|			if (static_cast<size_t>(offsetInLayer) > m_DataLen)
  ------------------
  |  Branch (96:8): [True: 1.79k, False: 113k]
  ------------------
   97|  1.79k|			{
   98|  1.79k|				PCPP_LOG_ERROR("Requested offset is larger than data length");
  ------------------
  |  |  443|  1.79k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  1.79k|	do                                                                                                                 \
  |  |  |  |  413|  1.79k|	{                                                                                                                  \
  |  |  |  |  414|  1.79k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.79k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.79k|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.79k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.79k|		{                                                                                                              \
  |  |  |  |  417|  1.79k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.79k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.79k|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.79k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.79k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.79k|		}                                                                                                              \
  |  |  |  |  422|  1.79k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.79k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   99|  1.79k|				return false;
  100|  1.79k|			}
  101|   113k|			uint8_t* newData = new uint8_t[m_DataLen + numOfBytesToExtend];
  102|   113k|			memcpy(newData, m_Data, offsetInLayer);
  103|   113k|			memcpy(newData + offsetInLayer + numOfBytesToExtend, m_Data + offsetInLayer, m_DataLen - offsetInLayer);
  104|   113k|			delete[] m_Data;
  105|   113k|			m_Data = newData;
  106|   113k|			m_DataLen += numOfBytesToExtend;
  107|   113k|			return true;
  108|   114k|		}
  109|       |
  110|  86.9k|		return getAttachedPacket()->extendLayer(this, offsetInLayer, numOfBytesToExtend);
  111|   201k|	}
_ZN4pcpp5Layer12shortenLayerEim:
  114|  86.9k|	{
  115|  86.9k|		if (m_Data == nullptr)
  ------------------
  |  Branch (115:7): [True: 0, False: 86.9k]
  ------------------
  116|      0|		{
  117|      0|			PCPP_LOG_ERROR("Layer's data is nullptr");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  118|      0|			return false;
  119|      0|		}
  120|       |
  121|  86.9k|		if (static_cast<size_t>(offsetInLayer) + numOfBytesToShorten > m_DataLen)
  ------------------
  |  Branch (121:7): [True: 0, False: 86.9k]
  ------------------
  122|      0|		{
  123|      0|			PCPP_LOG_ERROR("Requested number of bytes to shorten is larger than data length");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  124|      0|			return false;
  125|      0|		}
  126|       |
  127|  86.9k|		if (getAttachedPacket() == nullptr)
  ------------------
  |  Branch (127:7): [True: 8.25k, False: 78.6k]
  ------------------
  128|  8.25k|		{
  129|  8.25k|			if (static_cast<size_t>(offsetInLayer) >= m_DataLen)
  ------------------
  |  Branch (129:8): [True: 0, False: 8.25k]
  ------------------
  130|      0|			{
  131|      0|				PCPP_LOG_ERROR("Requested offset is larger than data length");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  132|      0|				return false;
  133|      0|			}
  134|  8.25k|			uint8_t* newData = new uint8_t[m_DataLen - numOfBytesToShorten];
  135|  8.25k|			memcpy(newData, m_Data, offsetInLayer);
  136|  8.25k|			memcpy(newData + offsetInLayer, m_Data + offsetInLayer + numOfBytesToShorten,
  137|  8.25k|			       m_DataLen - offsetInLayer - numOfBytesToShorten);
  138|  8.25k|			delete[] m_Data;
  139|  8.25k|			m_Data = newData;
  140|  8.25k|			m_DataLen -= numOfBytesToShorten;
  141|  8.25k|			return true;
  142|  8.25k|		}
  143|       |
  144|  78.6k|		return getAttachedPacket()->shortenLayer(this, offsetInLayer, numOfBytesToShorten);
  145|  86.9k|	}

_ZNK4pcpp17LdapOperationType8toStringEv:
   64|  15.8k|	{
   65|  15.8k|		return LdapOperationTypeToString.at(m_Value);
   66|  15.8k|	}
_ZN4pcpp17LdapOperationType13fromUintValueEh:
   69|  64.2k|	{
   70|  64.2k|		auto result = UintToLdapOperationType.find(value);
   71|  64.2k|		if (result != UintToLdapOperationType.end())
  ------------------
  |  Branch (71:7): [True: 62.2k, False: 2.02k]
  ------------------
   72|  62.2k|		{
   73|  62.2k|			return result->second;
   74|  62.2k|		}
   75|       |
   76|  2.02k|		return LdapOperationType::Unknown;
   77|  64.2k|	}
_ZNK4pcpp14LdapResultCode8toStringEv:
  172|  3.95k|	{
  173|  3.95k|		return LdapResultCodeToString.at(m_Value);
  174|  3.95k|	}
_ZN4pcpp14LdapResultCode13fromUintValueEh:
  177|  3.95k|	{
  178|  3.95k|		auto result = UintToLdapResultCode.find(value);
  179|  3.95k|		if (result != UintToLdapResultCode.end())
  ------------------
  |  Branch (179:7): [True: 3.95k, False: 0]
  ------------------
  180|  3.95k|		{
  181|  3.95k|			return result->second;
  182|  3.95k|		}
  183|       |
  184|      0|		return LdapResultCode::Unknown;
  185|  3.95k|	}
_ZN4pcpp9LdapLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  199|  49.0k|	    : Layer(data, dataLen, prevLayer, packet, LDAP)
  200|  49.0k|	{
  201|  49.0k|		m_Asn1Record = std::move(asn1Record);
  202|  49.0k|	}
_ZNK4pcpp9LdapLayer8toStringEv:
  258|  15.8k|	{
  259|  15.8k|		auto extendedInfo = getExtendedInfoString();
  260|  15.8k|		return "LDAP Layer, " + getLdapOperationType().toString() + (extendedInfo.empty() ? "" : ", " + extendedInfo);
  ------------------
  |  Branch (260:64): [True: 9.16k, False: 6.68k]
  ------------------
  261|  15.8k|	}
_ZN4pcpp9LdapLayer16parseLdapMessageEPhmPNS_5LayerEPNS_6PacketE:
  264|  58.5k|	{
  265|  58.5k|		try
  266|  58.5k|		{
  267|  58.5k|			auto asn1Record = Asn1Record::decode(data, dataLen, true);
  268|  58.5k|			auto operationType = LdapOperationType::fromUintValue(
  269|  58.5k|			    asn1Record->castAs<Asn1SequenceRecord>()->getSubRecords().at(operationTypeIndex)->getTagType());
  270|  58.5k|			switch (operationType)
  271|  58.5k|			{
  272|  3.45k|			case LdapOperationType::BindRequest:
  ------------------
  |  Branch (272:4): [True: 3.45k, False: 55.1k]
  ------------------
  273|  3.45k|				return new LdapBindRequestLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  274|  1.07k|			case LdapOperationType::BindResponse:
  ------------------
  |  Branch (274:4): [True: 1.07k, False: 57.5k]
  ------------------
  275|  1.07k|				return new LdapBindResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  276|  5.26k|			case LdapOperationType::UnbindRequest:
  ------------------
  |  Branch (276:4): [True: 5.26k, False: 53.3k]
  ------------------
  277|  5.26k|				return new LdapUnbindRequestLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  278|  3.38k|			case LdapOperationType::SearchRequest:
  ------------------
  |  Branch (278:4): [True: 3.38k, False: 55.2k]
  ------------------
  279|  3.38k|				return new LdapSearchRequestLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  280|  1.10k|			case LdapOperationType::SearchResultEntry:
  ------------------
  |  Branch (280:4): [True: 1.10k, False: 57.4k]
  ------------------
  281|  1.10k|				return new LdapSearchResultEntryLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  282|  6.35k|			case LdapOperationType::SearchResultDone:
  ------------------
  |  Branch (282:4): [True: 6.35k, False: 52.2k]
  ------------------
  283|  6.35k|				return new LdapSearchResultDoneLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  284|    980|			case LdapOperationType::ModifyResponse:
  ------------------
  |  Branch (284:4): [True: 980, False: 57.6k]
  ------------------
  285|    980|				return new LdapModifyResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  286|     30|			case LdapOperationType::AddResponse:
  ------------------
  |  Branch (286:4): [True: 30, False: 58.5k]
  ------------------
  287|     30|				return new LdapAddResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  288|    225|			case LdapOperationType::DeleteResponse:
  ------------------
  |  Branch (288:4): [True: 225, False: 58.3k]
  ------------------
  289|    225|				return new LdapDeleteResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  290|  2.17k|			case LdapOperationType::ModifyDNResponse:
  ------------------
  |  Branch (290:4): [True: 2.17k, False: 56.4k]
  ------------------
  291|  2.17k|				return new LdapModifyDNResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  292|  1.14k|			case LdapOperationType::CompareResponse:
  ------------------
  |  Branch (292:4): [True: 1.14k, False: 57.4k]
  ------------------
  293|  1.14k|				return new LdapCompareResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  294|  1.42k|			case LdapOperationType::Unknown:
  ------------------
  |  Branch (294:4): [True: 1.42k, False: 57.1k]
  ------------------
  295|  1.42k|				return nullptr;
  296|  23.8k|			default:
  ------------------
  |  Branch (296:4): [True: 23.8k, False: 34.7k]
  ------------------
  297|  23.8k|				return new LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  298|  58.5k|			}
  299|  58.5k|		}
  300|  58.5k|		catch (...)
  301|  58.5k|		{
  302|  8.11k|			return nullptr;
  303|  8.11k|		}
  304|  58.5k|	}
_ZNK4pcpp9LdapLayer17getRootAsn1RecordEv:
  307|  23.1k|	{
  308|  23.1k|		return m_Asn1Record->castAs<Asn1SequenceRecord>();
  309|  23.1k|	}
_ZNK4pcpp9LdapLayer26getLdapOperationAsn1RecordEv:
  312|  23.1k|	{
  313|  23.1k|		return getRootAsn1Record()->getSubRecords().at(operationTypeIndex)->castAs<Asn1ConstructedRecord>();
  314|  23.1k|	}
_ZNK4pcpp9LdapLayer20getLdapOperationTypeEv:
  352|  13.7k|	{
  353|  13.7k|		uint8_t tagType;
  354|  13.7k|		try
  355|  13.7k|		{
  356|  13.7k|			tagType = getLdapOperationAsn1Record()->getTagType();
  357|  13.7k|		}
  358|  13.7k|		catch (...)
  359|  13.7k|		{
  360|    600|			tagType = LdapOperationType::Unknown;
  361|    600|		}
  362|       |
  363|  13.7k|		return LdapOperationType::fromUintValue(tagType);
  364|  13.7k|	}
_ZN4pcpp9LdapLayer14parseNextLayerEv:
  367|  49.0k|	{
  368|  49.0k|		size_t headerLen = getHeaderLen();
  369|  49.0k|		if (m_DataLen <= headerLen || headerLen == 0)
  ------------------
  |  Branch (369:7): [True: 28.3k, False: 20.6k]
  |  Branch (369:33): [True: 0, False: 20.6k]
  ------------------
  370|  28.3k|			return;
  371|       |
  372|  20.6k|		uint8_t* payload = m_Data + headerLen;
  373|  20.6k|		size_t payloadLen = m_DataLen - headerLen;
  374|       |
  375|  20.6k|		constructNextLayerFromFactory(LdapLayer::parseLdapMessage, payload, payloadLen);
  376|  20.6k|	}
_ZNK4pcpp17LdapResponseLayer13getResultCodeEv:
  427|  3.95k|	{
  428|  3.95k|		return LdapResultCode::fromUintValue(getLdapOperationAsn1Record()
  429|  3.95k|		                                         ->getSubRecords()
  430|  3.95k|		                                         .at(resultCodeIndex)
  431|  3.95k|		                                         ->castAs<Asn1EnumeratedRecord>()
  432|  3.95k|		                                         ->getIntValue<uint8_t>());
  433|  3.95k|	}
_ZNK4pcpp17LdapResponseLayer21getExtendedInfoStringEv:
  477|  3.95k|	{
  478|  3.95k|		return getResultCode().toString();
  479|  3.95k|	}
_ZNK4pcpp20LdapBindRequestLayer21getAuthenticationTypeEv:
  548|  1.38k|	{
  549|  1.38k|		if (getLdapOperationAsn1Record()->getSubRecords().size() <= credentialIndex)
  ------------------
  |  Branch (549:7): [True: 4, False: 1.37k]
  ------------------
  550|      4|		{
  551|      4|			return LdapBindRequestLayer::AuthenticationType::NotApplicable;
  552|      4|		}
  553|       |
  554|  1.37k|		auto authType = getLdapOperationAsn1Record()->getSubRecords().at(credentialIndex)->getTagType();
  555|  1.37k|		switch (authType)
  556|  1.37k|		{
  557|  1.27k|		case 0:
  ------------------
  |  Branch (557:3): [True: 1.27k, False: 102]
  ------------------
  558|  1.27k|			return LdapBindRequestLayer::AuthenticationType::Simple;
  559|     94|		case 3:
  ------------------
  |  Branch (559:3): [True: 94, False: 1.28k]
  ------------------
  560|     94|			return LdapBindRequestLayer::AuthenticationType::Sasl;
  561|      8|		default:
  ------------------
  |  Branch (561:3): [True: 8, False: 1.36k]
  ------------------
  562|      8|			return LdapBindRequestLayer::AuthenticationType::NotApplicable;
  563|  1.37k|		}
  564|  1.37k|	}
_ZNK4pcpp20LdapBindRequestLayer21getExtendedInfoStringEv:
  605|  1.38k|	{
  606|  1.38k|		switch (getAuthenticationType())
  607|  1.38k|		{
  608|  1.27k|		case AuthenticationType::Simple:
  ------------------
  |  Branch (608:3): [True: 1.27k, False: 106]
  ------------------
  609|  1.27k|			return "simple";
  610|     94|		case AuthenticationType::Sasl:
  ------------------
  |  Branch (610:3): [True: 94, False: 1.28k]
  ------------------
  611|     94|			return "sasl";
  612|     12|		default:
  ------------------
  |  Branch (612:3): [True: 12, False: 1.36k]
  ------------------
  613|     12|			return "Unknown";
  614|  1.38k|		}
  615|  1.38k|	}
_ZNK4pcpp22LdapSearchRequestLayer18SearchRequestScope8toStringEv:
  689|  1.35k|	{
  690|  1.35k|		return SearchRequestScopeToString.at(m_Value);
  691|  1.35k|	}
_ZN4pcpp22LdapSearchRequestLayer18SearchRequestScope13fromUintValueEh:
  694|  1.35k|	{
  695|  1.35k|		if (value <= 2)
  ------------------
  |  Branch (695:7): [True: 1.28k, False: 64]
  ------------------
  696|  1.28k|		{
  697|  1.28k|			return static_cast<LdapSearchRequestLayer::SearchRequestScope::Value>(value);
  698|  1.28k|		}
  699|       |
  700|     64|		return LdapSearchRequestLayer::SearchRequestScope::Unknown;
  701|  1.35k|	}
_ZNK4pcpp22LdapSearchRequestLayer13getBaseObjectEv:
  745|  1.35k|	{
  746|  1.35k|		return getLdapOperationAsn1Record()
  747|  1.35k|		    ->getSubRecords()
  748|  1.35k|		    .at(baseObjectIndex)
  749|  1.35k|		    ->castAs<Asn1OctetStringRecord>()
  750|  1.35k|		    ->getValue();
  751|  1.35k|	}
_ZNK4pcpp22LdapSearchRequestLayer8getScopeEv:
  754|  1.35k|	{
  755|  1.35k|		return LdapSearchRequestLayer::SearchRequestScope::fromUintValue(getLdapOperationAsn1Record()
  756|  1.35k|		                                                                     ->getSubRecords()
  757|  1.35k|		                                                                     .at(scopeIndex)
  758|  1.35k|		                                                                     ->castAs<Asn1EnumeratedRecord>()
  759|  1.35k|		                                                                     ->getIntValue<uint8_t>());
  760|  1.35k|	}
_ZNK4pcpp22LdapSearchRequestLayer21getExtendedInfoStringEv:
  822|  1.35k|	{
  823|  1.35k|		auto baseObject = getBaseObject();
  824|  1.35k|		if (baseObject.empty())
  ------------------
  |  Branch (824:7): [True: 0, False: 1.35k]
  ------------------
  825|      0|		{
  826|      0|			baseObject = "ROOT";
  827|      0|		}
  828|       |
  829|  1.35k|		return "\"" + baseObject + "\", " + getScope().toString();
  830|  1.35k|	}

_ZNK4pcpp11ModbusLayer15getModbusHeaderEv:
   27|     10|	{
   28|     10|		return reinterpret_cast<modbus_header*>(m_Data);
   29|     10|	}
_ZNK4pcpp11ModbusLayer16getTransactionIdEv:
   32|      2|	{
   33|       |		return be16toh(getModbusHeader()->transactionId);
   34|      2|	}
_ZNK4pcpp11ModbusLayer13getProtocolIdEv:
   37|      2|	{
   38|       |		return be16toh(getModbusHeader()->protocolId);
   39|      2|	}
_ZNK4pcpp11ModbusLayer9getLengthEv:
   42|      2|	{
   43|       |		return be16toh(getModbusHeader()->length);
   44|      2|	}
_ZNK4pcpp11ModbusLayer9getUnitIdEv:
   47|      2|	{
   48|      2|		return getModbusHeader()->unitId;
   49|      2|	}
_ZNK4pcpp11ModbusLayer15getFunctionCodeEv:
   52|      2|	{
   53|      2|		switch (getModbusHeader()->functionCode)
   54|      2|		{
   55|      0|		case 1:
  ------------------
  |  Branch (55:3): [True: 0, False: 2]
  ------------------
   56|      0|			return ModbusFunctionCode::ReadCoils;
   57|      0|		case 2:
  ------------------
  |  Branch (57:3): [True: 0, False: 2]
  ------------------
   58|      0|			return ModbusFunctionCode::ReadDiscreteInputs;
   59|      0|		case 3:
  ------------------
  |  Branch (59:3): [True: 0, False: 2]
  ------------------
   60|      0|			return ModbusFunctionCode::ReadHoldingRegisters;
   61|      0|		case 4:
  ------------------
  |  Branch (61:3): [True: 0, False: 2]
  ------------------
   62|      0|			return ModbusFunctionCode::ReadInputRegisters;
   63|      0|		case 5:
  ------------------
  |  Branch (63:3): [True: 0, False: 2]
  ------------------
   64|      0|			return ModbusFunctionCode::WriteSingleCoil;
   65|      0|		case 6:
  ------------------
  |  Branch (65:3): [True: 0, False: 2]
  ------------------
   66|      0|			return ModbusFunctionCode::WriteSingleHoldingRegister;
   67|      0|		case 15:
  ------------------
  |  Branch (67:3): [True: 0, False: 2]
  ------------------
   68|      0|			return ModbusFunctionCode::WriteMultipleCoils;
   69|      0|		case 16:
  ------------------
  |  Branch (69:3): [True: 0, False: 2]
  ------------------
   70|      0|			return ModbusFunctionCode::WriteMultipleHoldingRegisters;
   71|      0|		case 17:
  ------------------
  |  Branch (71:3): [True: 0, False: 2]
  ------------------
   72|      0|			return ModbusFunctionCode::ReadSlaveId;
   73|      2|		default:
  ------------------
  |  Branch (73:3): [True: 2, False: 0]
  ------------------
   74|      2|			return ModbusFunctionCode::UnknownFunction;
   75|      2|		}
   76|      2|	}
_ZNK4pcpp11ModbusLayer8toStringEv:
   94|      2|	{
   95|      2|		return "Modbus Layer, Transaction ID: " + std::to_string(getTransactionId()) +
   96|      2|		       ", Protocol ID: " + std::to_string(getProtocolId()) + ", Length: " + std::to_string(getLength()) +
   97|      2|		       ", Unit ID: " + std::to_string(getUnitId()) +
   98|      2|		       ", Function Code: " + std::to_string(static_cast<uint8_t>(getFunctionCode()));
   99|      2|	}

_ZNK4pcpp9MplsLayer15isBottomOfStackEv:
   26|  5.49k|	{
   27|  5.49k|		return (getMplsHeader()->misc & 0x01);
   28|  5.49k|	}
_ZN4pcpp9MplsLayer16setBottomOfStackEb:
   31|    508|	{
   32|    508|		if (!val)
  ------------------
  |  Branch (32:7): [True: 365, False: 143]
  ------------------
   33|    365|			getMplsHeader()->misc &= 0xFE;
   34|    143|		else
   35|    143|			getMplsHeader()->misc |= 0x1;
   36|    508|	}
_ZNK4pcpp9MplsLayer23getExperimentalUseValueEv:
   39|  1.01k|	{
   40|  1.01k|		return ((getMplsHeader()->misc & 0x0E) >> 1);
   41|  1.01k|	}
_ZNK4pcpp9MplsLayer12getMplsLabelEv:
   67|  1.01k|	{
   68|       |		return (htobe16(getMplsHeader()->hiLabel) << 4) | ((getMplsHeader()->misc & 0xF0) >> 4);
   69|  1.01k|	}
_ZN4pcpp9MplsLayer14parseNextLayerEv:
  102|  4.47k|	{
  103|  4.47k|		size_t headerLen = getHeaderLen();
  104|  4.47k|		if (m_DataLen < headerLen + 1)
  ------------------
  |  Branch (104:7): [True: 0, False: 4.47k]
  ------------------
  105|      0|			return;
  106|       |
  107|  4.47k|		uint8_t* payload = m_Data + sizeof(mpls_header);
  108|  4.47k|		size_t payloadLen = m_DataLen - sizeof(mpls_header);
  109|       |
  110|  4.47k|		if (!isBottomOfStack())
  ------------------
  |  Branch (110:7): [True: 3.23k, False: 1.23k]
  ------------------
  111|  3.23k|		{
  112|  3.23k|			constructNextLayer<MplsLayer>(payload, payloadLen);
  113|  3.23k|			return;
  114|  3.23k|		}
  115|       |
  116|  1.23k|		uint8_t nextNibble = (*((uint8_t*)(m_Data + headerLen)) & 0xF0) >> 4;
  117|  1.23k|		switch (nextNibble)
  118|  1.23k|		{
  119|      0|		case 4:
  ------------------
  |  Branch (119:3): [True: 0, False: 1.23k]
  ------------------
  120|      0|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  121|      0|			break;
  122|    999|		case 6:
  ------------------
  |  Branch (122:3): [True: 999, False: 239]
  ------------------
  123|    999|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  124|    999|			break;
  125|    239|		default:
  ------------------
  |  Branch (125:3): [True: 239, False: 999]
  ------------------
  126|    239|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  127|  1.23k|		}
  128|  1.23k|	}
_ZN4pcpp9MplsLayer22computeCalculateFieldsEv:
  131|    508|	{
  132|    508|		Layer* nextLayer = getNextLayer();
  133|    508|		if (nextLayer != nullptr)
  ------------------
  |  Branch (133:7): [True: 508, False: 0]
  ------------------
  134|    508|		{
  135|    508|			setBottomOfStack((nextLayer->getProtocol() != MPLS));
  136|    508|		}
  137|    508|	}
_ZNK4pcpp9MplsLayer8toStringEv:
  140|  1.01k|	{
  141|  1.01k|		std::ostringstream labelStream;
  142|  1.01k|		labelStream << getMplsLabel();
  143|  1.01k|		std::ostringstream expStream;
  144|  1.01k|		expStream << (int)getExperimentalUseValue();
  145|  1.01k|		std::ostringstream ttlStream;
  146|  1.01k|		ttlStream << (int)getTTL();
  147|  1.01k|		std::string bottomOfStack = isBottomOfStack() ? "true" : "false";
  ------------------
  |  Branch (147:31): [True: 286, False: 730]
  ------------------
  148|       |
  149|  1.01k|		return "MPLS Layer, Label: " + labelStream.str() + ", Exp: " + expStream.str() + ", TTL: " + ttlStream.str() +
  150|  1.01k|		       ", Bottom of stack: " + bottomOfStack;
  151|  1.01k|	}

_ZN4pcpp12MySqlMessage17parseMySqlMessageEPKhmNS_18MySqlMessageOriginE:
  202|    220|	{
  203|    220|		if (data == nullptr || dataLen < basicMessageLength)
  ------------------
  |  Branch (203:7): [True: 0, False: 220]
  |  Branch (203:26): [True: 0, False: 220]
  ------------------
  204|      0|		{
  205|      0|			return nullptr;
  206|      0|		}
  207|       |
  208|    220|		auto messageLength = static_cast<uint32_t>(data[0]) | (static_cast<uint32_t>(data[1]) << 8) |
  209|    220|		                     (static_cast<uint32_t>(data[2]) << 16);
  210|    220|		if (dataLen < messageLength + basicMessageLength)
  ------------------
  |  Branch (210:7): [True: 142, False: 78]
  ------------------
  211|    142|		{
  212|    142|			return nullptr;
  213|    142|		}
  214|       |
  215|     78|		MySqlMessageType messageType = MySqlMessageType::Unknown;
  216|       |
  217|     78|		if (origin == MySqlMessageOrigin::Client)
  ------------------
  |  Branch (217:7): [True: 48, False: 30]
  ------------------
  218|     48|		{
  219|     48|			if (data[packetNumberIndex] == 1)
  ------------------
  |  Branch (219:8): [True: 48, False: 0]
  ------------------
  220|     48|			{
  221|     48|				return std::unique_ptr<MySqlMessage>(
  222|     48|				    new MySqlMessage(data, messageLength + 4, MySqlMessageType::Client_HandshakeResponse, origin));
  223|     48|			}
  224|       |
  225|      0|			if (dataLen < commandIndex + 1 || messageLength == 0)
  ------------------
  |  Branch (225:8): [True: 0, False: 0]
  |  Branch (225:38): [True: 0, False: 0]
  ------------------
  226|      0|			{
  227|      0|				return std::unique_ptr<MySqlMessage>(
  228|      0|				    new MySqlMessage(data, messageLength + 4, MySqlMessageType::Unknown, origin));
  229|      0|			}
  230|       |
  231|      0|			auto command = data[commandIndex];
  232|      0|			switch (command)
  233|      0|			{
  234|      0|			case ClientSleepCommand:
  ------------------
  |  Branch (234:4): [True: 0, False: 0]
  ------------------
  235|      0|				messageType = MySqlMessageType::Client_Sleep;
  236|      0|				break;
  237|      0|			case ClientQuitCommand:
  ------------------
  |  Branch (237:4): [True: 0, False: 0]
  ------------------
  238|      0|				messageType = MySqlMessageType::Client_Quit;
  239|      0|				break;
  240|      0|			case ClientInitDbCommand:
  ------------------
  |  Branch (240:4): [True: 0, False: 0]
  ------------------
  241|      0|				messageType = MySqlMessageType::Client_InitDb;
  242|      0|				break;
  243|      0|			case ClientQueryCommand:
  ------------------
  |  Branch (243:4): [True: 0, False: 0]
  ------------------
  244|      0|				return std::unique_ptr<MySqlMessage>(new MySqlQueryMessage(data, messageLength + 4));
  245|      0|			case ClientFieldListCommand:
  ------------------
  |  Branch (245:4): [True: 0, False: 0]
  ------------------
  246|      0|				messageType = MySqlMessageType::Client_FieldList;
  247|      0|				break;
  248|      0|			case ClientCreateDbCommand:
  ------------------
  |  Branch (248:4): [True: 0, False: 0]
  ------------------
  249|      0|				messageType = MySqlMessageType::Client_CreateDb;
  250|      0|				break;
  251|      0|			case ClientDropDbCommand:
  ------------------
  |  Branch (251:4): [True: 0, False: 0]
  ------------------
  252|      0|				messageType = MySqlMessageType::Client_DropDb;
  253|      0|				break;
  254|      0|			case ClientRefreshCommand:
  ------------------
  |  Branch (254:4): [True: 0, False: 0]
  ------------------
  255|      0|				messageType = MySqlMessageType::Client_Refresh;
  256|      0|				break;
  257|      0|			case ClientShutdownCommand:
  ------------------
  |  Branch (257:4): [True: 0, False: 0]
  ------------------
  258|      0|				messageType = MySqlMessageType::Client_Shutdown;
  259|      0|				break;
  260|      0|			case ClientStatisticsCommand:
  ------------------
  |  Branch (260:4): [True: 0, False: 0]
  ------------------
  261|      0|				messageType = MySqlMessageType::Client_Statistics;
  262|      0|				break;
  263|      0|			case ClientProcessInfoCommand:
  ------------------
  |  Branch (263:4): [True: 0, False: 0]
  ------------------
  264|      0|				messageType = MySqlMessageType::Client_ProcessInfo;
  265|      0|				break;
  266|      0|			case ClientConnectCommand:
  ------------------
  |  Branch (266:4): [True: 0, False: 0]
  ------------------
  267|      0|				messageType = MySqlMessageType::Client_Connect;
  268|      0|				break;
  269|      0|			case ClientProcessKillCommand:
  ------------------
  |  Branch (269:4): [True: 0, False: 0]
  ------------------
  270|      0|				messageType = MySqlMessageType::Client_ProcessKill;
  271|      0|				break;
  272|      0|			case ClientDebugCommand:
  ------------------
  |  Branch (272:4): [True: 0, False: 0]
  ------------------
  273|      0|				messageType = MySqlMessageType::Client_Debug;
  274|      0|				break;
  275|      0|			case ClientPingCommand:
  ------------------
  |  Branch (275:4): [True: 0, False: 0]
  ------------------
  276|      0|				messageType = MySqlMessageType::Client_Ping;
  277|      0|				break;
  278|      0|			case ClientTimeCommand:
  ------------------
  |  Branch (278:4): [True: 0, False: 0]
  ------------------
  279|      0|				messageType = MySqlMessageType::Client_Time;
  280|      0|				break;
  281|      0|			case ClientDelayedInsertCommand:
  ------------------
  |  Branch (281:4): [True: 0, False: 0]
  ------------------
  282|      0|				messageType = MySqlMessageType::Client_DelayedInsert;
  283|      0|				break;
  284|      0|			case ClientChangeUserCommand:
  ------------------
  |  Branch (284:4): [True: 0, False: 0]
  ------------------
  285|      0|				messageType = MySqlMessageType::Client_ChangeUser;
  286|      0|				break;
  287|      0|			case ClientBinlogDumpCommand:
  ------------------
  |  Branch (287:4): [True: 0, False: 0]
  ------------------
  288|      0|				messageType = MySqlMessageType::Client_BinlogDump;
  289|      0|				break;
  290|      0|			case ClientTableDumpCommand:
  ------------------
  |  Branch (290:4): [True: 0, False: 0]
  ------------------
  291|      0|				messageType = MySqlMessageType::Client_TableDump;
  292|      0|				break;
  293|      0|			case ClientConnectOutCommand:
  ------------------
  |  Branch (293:4): [True: 0, False: 0]
  ------------------
  294|      0|				messageType = MySqlMessageType::Client_ConnectOut;
  295|      0|				break;
  296|      0|			case ClientRegisterSlaveCommand:
  ------------------
  |  Branch (296:4): [True: 0, False: 0]
  ------------------
  297|      0|				messageType = MySqlMessageType::Client_RegisterSlave;
  298|      0|				break;
  299|      0|			case ClientStmtPrepareCommand:
  ------------------
  |  Branch (299:4): [True: 0, False: 0]
  ------------------
  300|      0|				messageType = MySqlMessageType::Client_StmtPrepare;
  301|      0|				break;
  302|      0|			case ClientStmtExecuteCommand:
  ------------------
  |  Branch (302:4): [True: 0, False: 0]
  ------------------
  303|      0|				messageType = MySqlMessageType::Client_StmtExecute;
  304|      0|				break;
  305|      0|			case ClientStmtSendLongDataCommand:
  ------------------
  |  Branch (305:4): [True: 0, False: 0]
  ------------------
  306|      0|				messageType = MySqlMessageType::Client_StmtSendLongData;
  307|      0|				break;
  308|      0|			case ClientStmtCloseCommand:
  ------------------
  |  Branch (308:4): [True: 0, False: 0]
  ------------------
  309|      0|				messageType = MySqlMessageType::Client_StmtClose;
  310|      0|				break;
  311|      0|			case ClientStmtResetCommand:
  ------------------
  |  Branch (311:4): [True: 0, False: 0]
  ------------------
  312|      0|				messageType = MySqlMessageType::Client_StmtReset;
  313|      0|				break;
  314|      0|			case ClientSetOptionCommand:
  ------------------
  |  Branch (314:4): [True: 0, False: 0]
  ------------------
  315|      0|				messageType = MySqlMessageType::Client_SetOption;
  316|      0|				break;
  317|      0|			case ClientStmtFetchCommand:
  ------------------
  |  Branch (317:4): [True: 0, False: 0]
  ------------------
  318|      0|				messageType = MySqlMessageType::Client_StmtFetch;
  319|      0|				break;
  320|      0|			case ClientDaemonCommand:
  ------------------
  |  Branch (320:4): [True: 0, False: 0]
  ------------------
  321|      0|				messageType = MySqlMessageType::Client_Daemon;
  322|      0|				break;
  323|      0|			case ClientBinlogDumpGtidCommand:
  ------------------
  |  Branch (323:4): [True: 0, False: 0]
  ------------------
  324|      0|				messageType = MySqlMessageType::Client_BinlogDumpGtid;
  325|      0|				break;
  326|      0|			case ClientResetConnectionCommand:
  ------------------
  |  Branch (326:4): [True: 0, False: 0]
  ------------------
  327|      0|				messageType = MySqlMessageType::Client_ResetConnection;
  328|      0|				break;
  329|      0|			case ClientCloneCommand:
  ------------------
  |  Branch (329:4): [True: 0, False: 0]
  ------------------
  330|      0|				messageType = MySqlMessageType::Client_Clone;
  331|      0|				break;
  332|      0|			default:
  ------------------
  |  Branch (332:4): [True: 0, False: 0]
  ------------------
  333|      0|				break;
  334|      0|			}
  335|      0|		}
  336|     30|		else  // Server message
  337|     30|		{
  338|     30|			if (data[packetNumberIndex] == 0)
  ------------------
  |  Branch (338:8): [True: 30, False: 0]
  ------------------
  339|     30|			{
  340|     30|				return std::unique_ptr<MySqlMessage>(
  341|     30|				    new MySqlMessage(data, messageLength + 4, MySqlMessageType::Server_Handshake, origin));
  342|     30|			}
  343|       |
  344|      0|			if (dataLen < commandIndex + 1 || messageLength == 0)
  ------------------
  |  Branch (344:8): [True: 0, False: 0]
  |  Branch (344:38): [True: 0, False: 0]
  ------------------
  345|      0|			{
  346|      0|				return std::unique_ptr<MySqlMessage>(
  347|      0|				    new MySqlMessage(data, messageLength + 4, MySqlMessageType::Unknown, origin));
  348|      0|			}
  349|       |
  350|      0|			auto firstByte = data[commandIndex];
  351|      0|			switch (firstByte)
  352|      0|			{
  353|      0|			case ServerOk:
  ------------------
  |  Branch (353:4): [True: 0, False: 0]
  ------------------
  354|      0|				messageType = MySqlMessageType::Server_Ok;
  355|      0|				break;
  356|      0|			case ServerError:
  ------------------
  |  Branch (356:4): [True: 0, False: 0]
  ------------------
  357|      0|				return std::unique_ptr<MySqlMessage>(new MySqlErrorMessage(data, messageLength + 4));
  358|      0|			case ServerEof_AuthSwitchRequest:
  ------------------
  |  Branch (358:4): [True: 0, False: 0]
  ------------------
  359|      0|			{
  360|      0|				messageLength = dataLen - basicMessageLength;
  361|      0|				if (messageLength < 9)
  ------------------
  |  Branch (361:9): [True: 0, False: 0]
  ------------------
  362|      0|				{
  363|      0|					messageType = MySqlMessageType::Server_EOF;
  364|      0|				}
  365|      0|				else
  366|      0|				{
  367|      0|					messageType = MySqlMessageType::Server_AuthSwitchRequest;
  368|      0|				}
  369|      0|				break;
  370|      0|			}
  371|      0|			default:
  ------------------
  |  Branch (371:4): [True: 0, False: 0]
  ------------------
  372|      0|				return std::unique_ptr<MySqlMessage>(
  373|      0|				    new MySqlMessage(data, messageLength + basicMessageLength, MySqlMessageType::Server_Data, origin));
  374|      0|			}
  375|      0|		}
  376|       |
  377|      0|		return std::unique_ptr<MySqlCommandMessage>(
  378|      0|		    new MySqlCommandMessage(data, messageLength + basicMessageLength, messageType, origin));
  379|     78|	}
_ZN4pcpp10MySqlLayer23parseMySqlClientMessageEPhmPNS_5LayerEPNS_6PacketE:
  451|    652|	{
  452|    652|		return new MySqlLayer(data, dataLen, prevLayer, packet, MySqlMessageOrigin::Client);
  453|    652|	}
_ZN4pcpp10MySqlLayer23parseMySqlServerMessageEPhmPNS_5LayerEPNS_6PacketE:
  456|    455|	{
  457|    455|		return new MySqlLayer(data, dataLen, prevLayer, packet, MySqlMessageOrigin::Server);
  458|    455|	}
_ZNK4pcpp10MySqlLayer16getMySqlMessagesEv:
  461|    440|	{
  462|    440|		if (!m_MessagesInitialized)
  ------------------
  |  Branch (462:7): [True: 220, False: 220]
  ------------------
  463|    220|		{
  464|    220|			auto data = m_Data;
  465|    220|			auto dataLen = m_DataLen;
  466|       |
  467|    298|			while (dataLen > 0)
  ------------------
  |  Branch (467:11): [True: 220, False: 78]
  ------------------
  468|    220|			{
  469|    220|				auto curMessage = MySqlMessage::parseMySqlMessage(data, dataLen, m_MessageOrigin);
  470|    220|				if (curMessage == nullptr)
  ------------------
  |  Branch (470:9): [True: 142, False: 78]
  ------------------
  471|    142|				{
  472|    142|					break;
  473|    142|				}
  474|       |
  475|     78|				dataLen -= curMessage->getTotalMessageLength();
  476|     78|				data += curMessage->getTotalMessageLength();
  477|     78|				m_Messages.pushBack(std::move(curMessage));
  478|     78|			}
  479|       |
  480|    220|			m_MessagesInitialized = true;
  481|    220|		}
  482|       |
  483|    440|		return m_Messages;
  484|    440|	}
_ZNK4pcpp10MySqlLayer8toStringEv:
  497|    440|	{
  498|    440|		const auto& messages = getMySqlMessages();
  499|    440|		return std::string("MySQL ") + (m_MessageOrigin == MySqlMessageOrigin::Client ? "Client" : "Server") +
  ------------------
  |  Branch (499:35): [True: 258, False: 182]
  ------------------
  500|    440|		       " Layer, " + std::to_string(messages.size()) + " message(s)";
  501|    440|	}

_ZNK4pcpp12NDPLayerBase12getNdpOptionENS_22NDPNeighborOptionTypesE:
   45|    310|	{
   46|    310|		return m_OptionReader.getTLVRecord((uint8_t)option, getNdpOptionsBasePtr(), getHeaderLen() - getNdpHeaderLen());
   47|    310|	}
_ZNK4pcpp28NDPNeighborSolicitationLayer19hasLinkLayerAddressEv:
  121|    310|	{
  122|    310|		NdpOption option = this->getNdpOption(NDPNeighborOptionTypes::NDP_OPTION_SOURCE_LINK_LAYER);
  123|    310|		return option.isNull() ? false : true;
  ------------------
  |  Branch (123:10): [True: 310, False: 0]
  ------------------
  124|    310|	}
_ZNK4pcpp28NDPNeighborSolicitationLayer8toStringEv:
  139|    310|	{
  140|    310|		std::ostringstream typeStream;
  141|    310|		typeStream << "ICMPv6 Layer, Neighbor Solicitation Message, TargetIP: " + getTargetIP().toString();
  142|    310|		hasLinkLayerAddress() ? typeStream << ", SourceMAC: " + getLinkLayerAddress().toString()
  ------------------
  |  Branch (142:3): [True: 0, False: 310]
  ------------------
  143|    310|		                      : typeStream << ", no Option";
  144|       |
  145|    310|		return typeStream.str();
  146|    310|	}

_ZNK4pcpp10NflogLayer12getTlvByTypeENS_12NflogTlvTypeE:
   33|  1.78k|	{
   34|  1.78k|		const auto typeNum = static_cast<uint32_t>(type);
   35|  1.78k|		NflogTlv tlv = m_TlvReader.getTLVRecord(typeNum, getTlvsBasePtr(), m_DataLen - sizeof(nflog_header));
   36|       |
   37|  1.78k|		return tlv;
   38|  1.78k|	}
_ZN4pcpp10NflogLayer14parseNextLayerEv:
   41|  1.82k|	{
   42|  1.82k|		if (m_DataLen <= sizeof(nflog_header))
  ------------------
  |  Branch (42:7): [True: 32, False: 1.78k]
  ------------------
   43|     32|		{
   44|     32|			return;
   45|     32|		}
   46|  1.78k|		auto payloadInfo = getTlvByType(NflogTlvType::NFULA_PAYLOAD);
   47|  1.78k|		if (payloadInfo.isNull())
  ------------------
  |  Branch (47:7): [True: 1.78k, False: 0]
  ------------------
   48|  1.78k|		{
   49|  1.78k|			return;
   50|  1.78k|		}
   51|       |
   52|      0|		uint8_t* payload = payloadInfo.getValue();
   53|      0|		size_t payloadLen = payloadInfo.getTotalSize() - sizeof(uint16_t) * 2;
   54|       |
   55|      0|		uint8_t family = getFamily();
   56|       |
   57|      0|		switch (family)
   58|      0|		{
   59|      0|		case PCPP_WS_NFPROTO_IPV4:
  ------------------
  |  |   13|      0|#define PCPP_WS_NFPROTO_IPV4 2
  ------------------
  |  Branch (59:3): [True: 0, False: 0]
  ------------------
   60|      0|		{
   61|      0|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   62|      0|			break;
   63|      0|		}
   64|      0|		case PCPP_WS_NFPROTO_IPV6:
  ------------------
  |  |   15|      0|#define PCPP_WS_NFPROTO_IPV6 10
  ------------------
  |  Branch (64:3): [True: 0, False: 0]
  ------------------
   65|      0|		{
   66|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   67|      0|			break;
   68|      0|		}
   69|      0|		default:
  ------------------
  |  Branch (69:3): [True: 0, False: 0]
  ------------------
   70|      0|		{
   71|      0|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   72|      0|			break;
   73|      0|		}
   74|      0|		}
   75|      0|	}
_ZNK4pcpp10NflogLayer12getHeaderLenEv:
   78|    910|	{
   79|    910|		size_t headerLen = sizeof(nflog_header);
   80|    910|		NflogTlv currentTLV = m_TlvReader.getFirstTLVRecord(getTlvsBasePtr(), m_DataLen - sizeof(nflog_header));
   81|       |
   82|  1.51k|		while (!currentTLV.isNull() && currentTLV.getType() != static_cast<uint16_t>(NflogTlvType::NFULA_PAYLOAD))
  ------------------
  |  Branch (82:10): [True: 603, False: 910]
  |  Branch (82:34): [True: 603, False: 0]
  ------------------
   83|    603|		{
   84|    603|			headerLen += currentTLV.getTotalSize();
   85|    603|			currentTLV = m_TlvReader.getNextTLVRecord(currentTLV, getTlvsBasePtr(), m_DataLen - sizeof(nflog_header));
   86|    603|		}
   87|    910|		if (!currentTLV.isNull() && currentTLV.getType() == static_cast<uint16_t>(NflogTlvType::NFULA_PAYLOAD))
  ------------------
  |  Branch (87:7): [True: 0, False: 910]
  |  Branch (87:31): [True: 0, False: 0]
  ------------------
   88|      0|		{
   89|       |			// for the length and type of the payload TLV
   90|      0|			headerLen += 2 * sizeof(uint16_t);
   91|      0|		}
   92|       |		// nflog_header has not a form of TLV and contains 3 fields (family, resource_id, version)
   93|    910|		return headerLen;
   94|    910|	}
_ZNK4pcpp10NflogLayer8toStringEv:
   97|  1.82k|	{
   98|  1.82k|		return "Linux Netfilter NFLOG";
   99|  1.82k|	}
_ZN4pcpp10NflogLayer11isDataValidEPKhm:
  102|  1.94k|	{
  103|  1.94k|		return data && dataLen >= sizeof(nflog_header);
  ------------------
  |  Branch (103:10): [True: 1.94k, False: 0]
  |  Branch (103:18): [True: 1.82k, False: 128]
  ------------------
  104|  1.94k|	}

_ZNK4pcpp8NtpLayer16getLeapIndicatorEv:
   25|  2.89k|	{
   26|  2.89k|		if (getNtpHeader()->leapIndicator < 4)  // Since leap indicator field is 2bit
  ------------------
  |  Branch (26:7): [True: 2.89k, False: 0]
  ------------------
   27|  2.89k|			return static_cast<LeapIndicator>(getNtpHeader()->leapIndicator);
   28|      0|		PCPP_LOG_ERROR("Unknown NTP Leap Indicator");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   29|      0|		return Unknown;
   30|  2.89k|	}
_ZNK4pcpp8NtpLayer10getVersionEv:
   38|  14.4k|	{
   39|  14.4k|		return getNtpHeader()->version;
   40|  14.4k|	}
_ZNK4pcpp8NtpLayer7getModeEv:
   48|  11.5k|	{
   49|  11.5k|		if (getNtpHeader()->mode < 8)  // Since mode field 3bit
  ------------------
  |  Branch (49:7): [True: 11.5k, False: 0]
  ------------------
   50|  11.5k|			return static_cast<Mode>(getNtpHeader()->mode);
   51|      0|		PCPP_LOG_ERROR("Unknown NTP Mode");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   52|      0|		return Reserved;
   53|  11.5k|	}
_ZNK4pcpp8NtpLayer13getModeStringEv:
   56|  8.68k|	{
   57|  8.68k|		switch (getMode())
   58|  8.68k|		{
   59|    150|		case Reserved:
  ------------------
  |  Branch (59:3): [True: 150, False: 8.53k]
  ------------------
   60|    150|			return "Reserved";
   61|    645|		case SymActive:
  ------------------
  |  Branch (61:3): [True: 645, False: 8.04k]
  ------------------
   62|    645|			return "Symmetrically Active";
   63|  3.81k|		case SymPassive:
  ------------------
  |  Branch (63:3): [True: 3.81k, False: 4.86k]
  ------------------
   64|  3.81k|			return "Symmetrically Passive";
   65|  1.07k|		case Client:
  ------------------
  |  Branch (65:3): [True: 1.07k, False: 7.60k]
  ------------------
   66|  1.07k|			return "Client";
   67|    543|		case Server:
  ------------------
  |  Branch (67:3): [True: 543, False: 8.14k]
  ------------------
   68|    543|			return "Server";
   69|  2.01k|		case Broadcast:
  ------------------
  |  Branch (69:3): [True: 2.01k, False: 6.66k]
  ------------------
   70|  2.01k|			return "Broadcast";
   71|      0|		case Control:
  ------------------
  |  Branch (71:3): [True: 0, False: 8.68k]
  ------------------
   72|      0|			return "Control";
   73|    432|		case PrivateUse:
  ------------------
  |  Branch (73:3): [True: 432, False: 8.25k]
  ------------------
   74|    432|			return "Private Use";
   75|      0|		default:
  ------------------
  |  Branch (75:3): [True: 0, False: 8.68k]
  ------------------
   76|      0|			PCPP_LOG_ERROR("Unknown NTP Mode");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   77|      0|			return std::string();
   78|  8.68k|		}
   79|  8.68k|	}
_ZNK4pcpp8NtpLayer10getStratumEv:
   87|  5.79k|	{
   88|  5.79k|		return getNtpHeader()->stratum;
   89|  5.79k|	}
_ZNK4pcpp8NtpLayer15getPollIntervalEv:
   97|  5.79k|	{
   98|  5.79k|		return getNtpHeader()->pollInterval;
   99|  5.79k|	}
_ZNK4pcpp8NtpLayer21getPollIntervalInSecsEv:
  107|  2.89k|	{
  108|  2.89k|		return pow(2, getPollInterval());
  109|  2.89k|	}
_ZNK4pcpp8NtpLayer12getPrecisionEv:
  112|  5.79k|	{
  113|  5.79k|		return getNtpHeader()->precision;
  114|  5.79k|	}
_ZNK4pcpp8NtpLayer18getPrecisionInSecsEv:
  122|  2.89k|	{
  123|  2.89k|		return pow(2, getPrecision());
  124|  2.89k|	}
_ZNK4pcpp8NtpLayer12getRootDelayEv:
  127|  5.79k|	{
  128|  5.79k|		return getNtpHeader()->rootDelay;
  129|  5.79k|	}
_ZNK4pcpp8NtpLayer18getRootDelayInSecsEv:
  137|  2.89k|	{
  138|  2.89k|		return convertFromShortFormat(getRootDelay());
  139|  2.89k|	}
_ZN4pcpp8NtpLayer18setRootDelayInSecsEd:
  142|  2.89k|	{
  143|  2.89k|		getNtpHeader()->rootDelay = convertToShortFormat(val);
  144|  2.89k|	}
_ZNK4pcpp8NtpLayer17getRootDispersionEv:
  147|  5.79k|	{
  148|  5.79k|		return getNtpHeader()->rootDispersion;
  149|  5.79k|	}
_ZNK4pcpp8NtpLayer23getRootDispersionInSecsEv:
  157|  2.89k|	{
  158|  2.89k|		return convertFromShortFormat(getRootDispersion());
  159|  2.89k|	}
_ZNK4pcpp8NtpLayer22getReferenceIdentifierEv:
  167|  7.82k|	{
  168|  7.82k|		return getNtpHeader()->referenceIdentifier;
  169|  7.82k|	}
_ZNK4pcpp8NtpLayer28getReferenceIdentifierStringEv:
  187|  2.89k|	{
  188|  2.89k|		uint8_t stratum = getStratum();
  189|  2.89k|		uint8_t version = getVersion();
  190|  2.89k|		uint32_t refID = getReferenceIdentifier();
  191|       |
  192|  2.89k|		if (stratum == 0)
  ------------------
  |  Branch (192:7): [True: 242, False: 2.65k]
  ------------------
  193|    242|		{
  194|    242|			switch (version)
  ------------------
  |  Branch (194:12): [True: 205, False: 37]
  ------------------
  195|    242|			{
  196|    151|			case 3:
  ------------------
  |  Branch (196:4): [True: 151, False: 91]
  ------------------
  197|    151|			{
  198|    151|				switch (static_cast<ClockSource>(refID))
  199|    151|				{
  200|      0|				case ClockSource::DCN:
  ------------------
  |  Branch (200:5): [True: 0, False: 151]
  ------------------
  201|      0|					return "DCN routing protocol";
  202|      0|				case ClockSource::NIST:
  ------------------
  |  Branch (202:5): [True: 0, False: 151]
  ------------------
  203|      0|					return "NIST public modem";
  204|      0|				case ClockSource::TSP:
  ------------------
  |  Branch (204:5): [True: 0, False: 151]
  ------------------
  205|      0|					return "TSP time protocol";
  206|      0|				case ClockSource::DTS:
  ------------------
  |  Branch (206:5): [True: 0, False: 151]
  ------------------
  207|      0|					return "Digital Time Service";
  208|    151|				default:
  ------------------
  |  Branch (208:5): [True: 151, False: 0]
  ------------------
  209|    151|					return "Unknown";
  210|    151|				}
  211|    151|			}
  212|     54|			case 4:
  ------------------
  |  Branch (212:4): [True: 54, False: 188]
  ------------------
  213|     54|			{
  214|     54|				switch (static_cast<KissODeath>(refID))
  215|     54|				{
  216|      0|				case KissODeath::ACST:
  ------------------
  |  Branch (216:5): [True: 0, False: 54]
  ------------------
  217|      0|					return "The association belongs to a anycast server";
  218|      0|				case KissODeath::AUTH:
  ------------------
  |  Branch (218:5): [True: 0, False: 54]
  ------------------
  219|      0|					return "Server authentication failed";
  220|      0|				case KissODeath::AUTO:
  ------------------
  |  Branch (220:5): [True: 0, False: 54]
  ------------------
  221|      0|					return "Autokey sequence failed";
  222|      0|				case KissODeath::BCST:
  ------------------
  |  Branch (222:5): [True: 0, False: 54]
  ------------------
  223|      0|					return "The association belongs to a broadcast server";
  224|      0|				case KissODeath::CRYP:
  ------------------
  |  Branch (224:5): [True: 0, False: 54]
  ------------------
  225|      0|					return "Cryptographic authentication or identification failed";
  226|      0|				case KissODeath::DENY:
  ------------------
  |  Branch (226:5): [True: 0, False: 54]
  ------------------
  227|      0|					return "Access denied by remote server";
  228|      0|				case KissODeath::DROP:
  ------------------
  |  Branch (228:5): [True: 0, False: 54]
  ------------------
  229|      0|					return "Lost peer in symmetric mode";
  230|      0|				case KissODeath::RSTR:
  ------------------
  |  Branch (230:5): [True: 0, False: 54]
  ------------------
  231|      0|					return "Access denied due to local policy";
  232|      0|				case KissODeath::INIT:
  ------------------
  |  Branch (232:5): [True: 0, False: 54]
  ------------------
  233|      0|					return "The association has not yet synchronized for the first time";
  234|      0|				case KissODeath::MCST:
  ------------------
  |  Branch (234:5): [True: 0, False: 54]
  ------------------
  235|      0|					return "The association belongs to a manycast server";
  236|      0|				case KissODeath::NKEY:
  ------------------
  |  Branch (236:5): [True: 0, False: 54]
  ------------------
  237|      0|					return "No key found.  Either the key was never installed or is not trusted";
  238|      0|				case KissODeath::RATE:
  ------------------
  |  Branch (238:5): [True: 0, False: 54]
  ------------------
  239|      0|					return "Rate exceeded.  The server has temporarily denied access because the client exceeded the rate "
  240|      0|					       "threshold";
  241|      0|				case KissODeath::RMOT:
  ------------------
  |  Branch (241:5): [True: 0, False: 54]
  ------------------
  242|      0|					return "Somebody is tinkering with the association from a remote host running ntpdc.  Not to worry "
  243|      0|					       "unless some rascal has stolen your keys";
  244|      0|				case KissODeath::STEP:
  ------------------
  |  Branch (244:5): [True: 0, False: 54]
  ------------------
  245|      0|					return "A step change in system time has occurred, but the association has not yet resynchronized";
  246|     54|				default:
  ------------------
  |  Branch (246:5): [True: 54, False: 0]
  ------------------
  247|     54|				{
  248|       |					// clang-format off
  249|     54|					char arrBuff[5] = {
  250|     54|						static_cast<char>((refID >> 24) & 0xFF),
  251|     54|						static_cast<char>((refID >> 16) & 0xFF),
  252|     54|						static_cast<char>((refID >> 8) & 0xFF),
  253|     54|						static_cast<char>((refID) & 0xFF), '\0'
  254|     54|					};
  255|       |					// clang-format on
  256|     54|					return arrBuff;
  257|      0|				}
  258|     54|				}
  259|     54|			}
  260|    242|			}
  261|    242|		}
  262|  2.65k|		else if (stratum == 1)
  ------------------
  |  Branch (262:12): [True: 615, False: 2.03k]
  ------------------
  263|    615|		{
  264|    615|			switch (version)
  ------------------
  |  Branch (264:12): [True: 454, False: 161]
  ------------------
  265|    615|			{
  266|    273|			case 3:
  ------------------
  |  Branch (266:4): [True: 273, False: 342]
  ------------------
  267|    273|			{
  268|    273|				switch (static_cast<ClockSource>(refID))
  269|    273|				{
  270|      0|				case ClockSource::ATOM:
  ------------------
  |  Branch (270:5): [True: 0, False: 273]
  ------------------
  271|      0|					return "Atomic clock";
  272|      0|				case ClockSource::VLF:
  ------------------
  |  Branch (272:5): [True: 0, False: 273]
  ------------------
  273|      0|					return "VLF radio";
  274|      0|				case ClockSource::LORC:
  ------------------
  |  Branch (274:5): [True: 0, False: 273]
  ------------------
  275|      0|					return "LORAN-C radionavigation";
  276|      0|				case ClockSource::GOES:
  ------------------
  |  Branch (276:5): [True: 0, False: 273]
  ------------------
  277|      0|					return "GOES UHF environment satellite";
  278|     32|				case ClockSource::GPS:
  ------------------
  |  Branch (278:5): [True: 32, False: 241]
  ------------------
  279|     32|					return "GPS UHF satellite positioning";
  280|    241|				default:
  ------------------
  |  Branch (280:5): [True: 241, False: 32]
  ------------------
  281|    241|					return "Unknown";
  282|    273|				}
  283|    273|			}
  284|    181|			case 4:
  ------------------
  |  Branch (284:4): [True: 181, False: 434]
  ------------------
  285|    181|			{
  286|    181|				switch (static_cast<ClockSource>(refID))
  287|    181|				{
  288|      0|				case ClockSource::GOES:
  ------------------
  |  Branch (288:5): [True: 0, False: 181]
  ------------------
  289|      0|					return "Geosynchronous Orbit Environment Satellite";
  290|      0|				case ClockSource::GPS:
  ------------------
  |  Branch (290:5): [True: 0, False: 181]
  ------------------
  291|      0|					return "Global Position System";
  292|      0|				case ClockSource::GAL:
  ------------------
  |  Branch (292:5): [True: 0, False: 181]
  ------------------
  293|      0|					return "Galileo Positioning System";
  294|      0|				case ClockSource::PPS:
  ------------------
  |  Branch (294:5): [True: 0, False: 181]
  ------------------
  295|      0|					return "Generic pulse-per-second";
  296|      0|				case ClockSource::IRIG:
  ------------------
  |  Branch (296:5): [True: 0, False: 181]
  ------------------
  297|      0|					return "Inter-Range Instrumentation Group";
  298|      0|				case ClockSource::WWVB:
  ------------------
  |  Branch (298:5): [True: 0, False: 181]
  ------------------
  299|      0|					return "LF Radio WWVB Ft. Collins, CO 60 kHz";
  300|      0|				case ClockSource::DCF:
  ------------------
  |  Branch (300:5): [True: 0, False: 181]
  ------------------
  301|      0|					return "LF Radio DCF77 Mainflingen, DE 77.5 kHz";
  302|      0|				case ClockSource::HBG:
  ------------------
  |  Branch (302:5): [True: 0, False: 181]
  ------------------
  303|      0|					return "LF Radio HBG Prangins, HB 75 kHz";
  304|      0|				case ClockSource::MSF:
  ------------------
  |  Branch (304:5): [True: 0, False: 181]
  ------------------
  305|      0|					return "LF Radio MSF Anthorn, UK 60 kHz";
  306|      0|				case ClockSource::JJY:
  ------------------
  |  Branch (306:5): [True: 0, False: 181]
  ------------------
  307|      0|					return "LF Radio JJY Fukushima, JP 40 kHz, Saga, JP 60 kHz";
  308|      0|				case ClockSource::LORC:
  ------------------
  |  Branch (308:5): [True: 0, False: 181]
  ------------------
  309|      0|					return "MF Radio LORAN C station, 100 kHz";
  310|      0|				case ClockSource::TDF:
  ------------------
  |  Branch (310:5): [True: 0, False: 181]
  ------------------
  311|      0|					return "MF Radio Allouis, FR 162 kHz";
  312|      0|				case ClockSource::CHU:
  ------------------
  |  Branch (312:5): [True: 0, False: 181]
  ------------------
  313|      0|					return "HF Radio CHU Ottawa, Ontario";
  314|      0|				case ClockSource::WWV:
  ------------------
  |  Branch (314:5): [True: 0, False: 181]
  ------------------
  315|      0|					return "HF Radio WWV Ft. Collins, CO";
  316|      0|				case ClockSource::WWVH:
  ------------------
  |  Branch (316:5): [True: 0, False: 181]
  ------------------
  317|      0|					return "HF Radio WWVH Kauai, HI";
  318|      0|				case ClockSource::NIST:
  ------------------
  |  Branch (318:5): [True: 0, False: 181]
  ------------------
  319|      0|					return "NIST telephone modem";
  320|      0|				case ClockSource::ACTS:
  ------------------
  |  Branch (320:5): [True: 0, False: 181]
  ------------------
  321|      0|					return "NIST telephone modem";
  322|      0|				case ClockSource::USNO:
  ------------------
  |  Branch (322:5): [True: 0, False: 181]
  ------------------
  323|      0|					return "USNO telephone modem";
  324|      0|				case ClockSource::PTB:
  ------------------
  |  Branch (324:5): [True: 0, False: 181]
  ------------------
  325|      0|					return "European telephone modem";
  326|      0|				case ClockSource::MRS:
  ------------------
  |  Branch (326:5): [True: 0, False: 181]
  ------------------
  327|      0|					return "Multi Reference Sources";
  328|      0|				case ClockSource::XFAC:
  ------------------
  |  Branch (328:5): [True: 0, False: 181]
  ------------------
  329|      0|					return "Inter Face Association Changed";
  330|      0|				case ClockSource::STEP:
  ------------------
  |  Branch (330:5): [True: 0, False: 181]
  ------------------
  331|      0|					return "Step time change";
  332|      0|				case ClockSource::GOOG:
  ------------------
  |  Branch (332:5): [True: 0, False: 181]
  ------------------
  333|      0|					return "Google NTP servers";
  334|      0|				case ClockSource::DCFa:
  ------------------
  |  Branch (334:5): [True: 0, False: 181]
  ------------------
  335|      0|					return "Meinberg DCF77 with amplitude modulation";
  336|      0|				case ClockSource::DCFp:
  ------------------
  |  Branch (336:5): [True: 0, False: 181]
  ------------------
  337|      0|					return "Meinberg DCF77 with phase modulation)/pseudo random phase modulation";
  338|     52|				case ClockSource::GPSs:
  ------------------
  |  Branch (338:5): [True: 52, False: 129]
  ------------------
  339|     52|					return "Meinberg GPS (with shared memory access)";
  340|      0|				case ClockSource::GPSi:
  ------------------
  |  Branch (340:5): [True: 0, False: 181]
  ------------------
  341|      0|					return "Meinberg GPS (with interrupt based access)";
  342|      0|				case ClockSource::GLNs:
  ------------------
  |  Branch (342:5): [True: 0, False: 181]
  ------------------
  343|      0|					return "Meinberg GPS/GLONASS (with shared memory access)";
  344|      0|				case ClockSource::GLNi:
  ------------------
  |  Branch (344:5): [True: 0, False: 181]
  ------------------
  345|      0|					return "Meinberg GPS/GLONASS (with interrupt based access)";
  346|      0|				case ClockSource::LCL:
  ------------------
  |  Branch (346:5): [True: 0, False: 181]
  ------------------
  347|      0|					return "Meinberg Undisciplined local clock";
  348|      0|				case ClockSource::LOCL:
  ------------------
  |  Branch (348:5): [True: 0, False: 181]
  ------------------
  349|      0|					return "Meinberg Undisciplined local clock";
  350|    129|				default:
  ------------------
  |  Branch (350:5): [True: 129, False: 52]
  ------------------
  351|    129|					return "Unknown";
  352|    181|				}
  353|    181|			}
  354|    615|			}
  355|    615|		}
  356|  2.03k|		else
  357|  2.03k|		{
  358|       |			// TODO: Support IPv6 cases for NTPv4, it equals to MD5 hash of first four octets of IPv6 address
  359|       |
  360|  2.03k|			pcpp::IPv4Address addr(getReferenceIdentifier());
  361|  2.03k|			return addr.toString();
  362|  2.03k|		}
  363|       |
  364|    198|		PCPP_LOG_ERROR("Unknown Stratum type");
  ------------------
  |  |  443|    198|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    198|	do                                                                                                                 \
  |  |  |  |  413|    198|	{                                                                                                                  \
  |  |  |  |  414|    198|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    198|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    198|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 198, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    198|		{                                                                                                              \
  |  |  |  |  417|    198|			auto ctx =                                                                                                 \
  |  |  |  |  418|    198|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    198|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    198|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    198|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    198|		}                                                                                                              \
  |  |  |  |  422|    198|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 198]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  365|    198|		return std::string();
  366|  2.89k|	}
_ZNK4pcpp8NtpLayer21getReferenceTimestampEv:
  369|  8.68k|	{
  370|  8.68k|		return getNtpHeader()->referenceTimestamp;
  371|  8.68k|	}
_ZNK4pcpp8NtpLayer27getReferenceTimestampInSecsEv:
  379|  2.89k|	{
  380|  2.89k|		return convertFromTimestampFormat(getReferenceTimestamp());
  381|  2.89k|	}
_ZN4pcpp8NtpLayer27setReferenceTimestampInSecsEd:
  384|  2.89k|	{
  385|  2.89k|		getNtpHeader()->referenceTimestamp = convertToTimestampFormat(val);
  386|  2.89k|	}
_ZN4pcpp8NtpLayer29getReferenceTimestampAsStringEv:
  389|  2.89k|	{
  390|  2.89k|		return convertToIsoFormat(getReferenceTimestamp());
  391|  2.89k|	}
_ZNK4pcpp8NtpLayer18getOriginTimestampEv:
  394|  8.68k|	{
  395|  8.68k|		return getNtpHeader()->originTimestamp;
  396|  8.68k|	}
_ZNK4pcpp8NtpLayer24getOriginTimestampInSecsEv:
  404|  2.89k|	{
  405|  2.89k|		return convertFromTimestampFormat(getOriginTimestamp());
  406|  2.89k|	}
_ZN4pcpp8NtpLayer26getOriginTimestampAsStringEv:
  414|  2.89k|	{
  415|  2.89k|		return convertToIsoFormat(getOriginTimestamp());
  416|  2.89k|	}
_ZNK4pcpp8NtpLayer19getReceiveTimestampEv:
  419|  8.68k|	{
  420|  8.68k|		return getNtpHeader()->receiveTimestamp;
  421|  8.68k|	}
_ZNK4pcpp8NtpLayer25getReceiveTimestampInSecsEv:
  429|  2.89k|	{
  430|  2.89k|		return convertFromTimestampFormat(getReceiveTimestamp());
  431|  2.89k|	}
_ZN4pcpp8NtpLayer27getReceiveTimestampAsStringEv:
  439|  2.89k|	{
  440|  2.89k|		return convertToIsoFormat(getReceiveTimestamp());
  441|  2.89k|	}
_ZNK4pcpp8NtpLayer20getTransmitTimestampEv:
  444|  8.68k|	{
  445|  8.68k|		return getNtpHeader()->transmitTimestamp;
  446|  8.68k|	}
_ZNK4pcpp8NtpLayer26getTransmitTimestampInSecsEv:
  454|  2.89k|	{
  455|  2.89k|		return convertFromTimestampFormat(getTransmitTimestamp());
  456|  2.89k|	}
_ZN4pcpp8NtpLayer28getTransmitTimestampAsStringEv:
  464|  2.89k|	{
  465|  2.89k|		return convertToIsoFormat(getTransmitTimestamp());
  466|  2.89k|	}
_ZNK4pcpp8NtpLayer8getKeyIDEv:
  469|  2.89k|	{
  470|  2.89k|		switch (getVersion())
  471|  2.89k|		{
  472|    488|		case 3:
  ------------------
  |  Branch (472:3): [True: 488, False: 2.40k]
  ------------------
  473|    488|		{
  474|    488|			if (m_DataLen < (sizeof(ntp_header) + sizeof(ntp_v3_auth)))
  ------------------
  |  Branch (474:8): [True: 488, False: 0]
  ------------------
  475|    488|				return 0;
  476|       |
  477|      0|			ntp_v3_auth* header = (ntp_v3_auth*)(m_Data + sizeof(ntp_header));
  478|      0|			return header->keyID;
  479|    488|		}
  480|  2.20k|		case 4:
  ------------------
  |  Branch (480:3): [True: 2.20k, False: 687]
  ------------------
  481|  2.20k|		{
  482|       |			// TODO: Add support for extension fields
  483|  2.20k|			if (m_DataLen == (sizeof(ntp_header) + sizeof(ntp_v4_auth_md5)))
  ------------------
  |  Branch (483:8): [True: 0, False: 2.20k]
  ------------------
  484|      0|			{
  485|      0|				ntp_v4_auth_md5* header = (ntp_v4_auth_md5*)(m_Data + m_DataLen - sizeof(ntp_v4_auth_md5));
  486|      0|				return header->keyID;
  487|      0|			}
  488|  2.20k|			if (m_DataLen == (sizeof(ntp_header) + sizeof(ntp_v4_auth_sha1)))
  ------------------
  |  Branch (488:8): [True: 0, False: 2.20k]
  ------------------
  489|      0|			{
  490|      0|				ntp_v4_auth_sha1* header = (ntp_v4_auth_sha1*)(m_Data + m_DataLen - sizeof(ntp_v4_auth_sha1));
  491|      0|				return header->keyID;
  492|      0|			}
  493|       |
  494|  2.20k|			PCPP_LOG_ERROR("NTP authentication parsing with extension fields are not supported");
  ------------------
  |  |  443|  2.20k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  2.20k|	do                                                                                                                 \
  |  |  |  |  413|  2.20k|	{                                                                                                                  \
  |  |  |  |  414|  2.20k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.20k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.20k|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 2.20k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.20k|		{                                                                                                              \
  |  |  |  |  417|  2.20k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  2.20k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.20k|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  2.20k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  2.20k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  2.20k|		}                                                                                                              \
  |  |  |  |  422|  2.20k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  495|  2.20k|			return 0;
  496|  2.20k|		}
  497|    199|		default:
  ------------------
  |  Branch (497:3): [True: 199, False: 2.69k]
  ------------------
  498|    199|		{
  499|    199|			PCPP_LOG_ERROR("NTP version not supported");
  ------------------
  |  |  443|    199|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    199|	do                                                                                                                 \
  |  |  |  |  413|    199|	{                                                                                                                  \
  |  |  |  |  414|    199|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    199|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    199|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 199, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    199|		{                                                                                                              \
  |  |  |  |  417|    199|			auto ctx =                                                                                                 \
  |  |  |  |  418|    199|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    199|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    199|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    199|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    199|		}                                                                                                              \
  |  |  |  |  422|    199|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 199]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  500|    199|			return 0;
  501|  2.20k|		}
  502|  2.89k|		}
  503|  2.89k|	}
_ZNK4pcpp8NtpLayer9getDigestEv:
  506|  2.89k|	{
  507|  2.89k|		switch (getVersion())
  508|  2.89k|		{
  509|    488|		case 3:
  ------------------
  |  Branch (509:3): [True: 488, False: 2.40k]
  ------------------
  510|    488|		{
  511|    488|			if (m_DataLen < (sizeof(ntp_header) + sizeof(ntp_v3_auth)))
  ------------------
  |  Branch (511:8): [True: 488, False: 0]
  ------------------
  512|    488|				return std::string();
  513|       |
  514|      0|			ntp_v3_auth* header = (ntp_v3_auth*)(m_Data + sizeof(ntp_header));
  515|      0|			return byteArrayToHexString(header->dgst, 8);
  516|    488|		}
  517|  2.20k|		case 4:
  ------------------
  |  Branch (517:3): [True: 2.20k, False: 687]
  ------------------
  518|  2.20k|		{
  519|  2.20k|			if (m_DataLen == (sizeof(ntp_header) + sizeof(ntp_v4_auth_md5)))
  ------------------
  |  Branch (519:8): [True: 0, False: 2.20k]
  ------------------
  520|      0|			{
  521|      0|				ntp_v4_auth_md5* header = (ntp_v4_auth_md5*)(m_Data + m_DataLen - sizeof(ntp_v4_auth_md5));
  522|      0|				return byteArrayToHexString(header->dgst, 16);
  523|      0|			}
  524|  2.20k|			if (m_DataLen == (sizeof(ntp_header) + sizeof(ntp_v4_auth_sha1)))
  ------------------
  |  Branch (524:8): [True: 0, False: 2.20k]
  ------------------
  525|      0|			{
  526|      0|				ntp_v4_auth_sha1* header = (ntp_v4_auth_sha1*)(m_Data + m_DataLen - sizeof(ntp_v4_auth_sha1));
  527|      0|				return byteArrayToHexString(header->dgst, 20);
  528|      0|			}
  529|       |
  530|  2.20k|			PCPP_LOG_ERROR("NTP authentication parsing with extension fields are not supported");
  ------------------
  |  |  443|  2.20k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  2.20k|	do                                                                                                                 \
  |  |  |  |  413|  2.20k|	{                                                                                                                  \
  |  |  |  |  414|  2.20k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.20k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.20k|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 2.20k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.20k|		{                                                                                                              \
  |  |  |  |  417|  2.20k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  2.20k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.20k|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  2.20k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  2.20k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  2.20k|		}                                                                                                              \
  |  |  |  |  422|  2.20k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  531|  2.20k|			return std::string();
  532|  2.20k|		}
  533|    199|		default:
  ------------------
  |  Branch (533:3): [True: 199, False: 2.69k]
  ------------------
  534|    199|			PCPP_LOG_ERROR("NTP version not supported");
  ------------------
  |  |  443|    199|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    199|	do                                                                                                                 \
  |  |  |  |  413|    199|	{                                                                                                                  \
  |  |  |  |  414|    199|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    199|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    199|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 199, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    199|		{                                                                                                              \
  |  |  |  |  417|    199|			auto ctx =                                                                                                 \
  |  |  |  |  418|    199|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    199|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    199|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    199|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    199|		}                                                                                                              \
  |  |  |  |  422|    199|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 199]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  535|    199|			return std::string();
  536|  2.89k|		}
  537|  2.89k|	}
_ZN4pcpp8NtpLayer22convertFromShortFormatEj:
  540|  5.79k|	{
  541|  5.79k|		double integerPart = netToHost16(val & 0xFFFF);
  542|  5.79k|		double fractionPart = netToHost16(((val & 0xFFFF0000) >> 16)) / NTP_FRIC;
  ------------------
  |  |   10|  5.79k|#define NTP_FRIC 65536.
  ------------------
  543|       |
  544|  5.79k|		return integerPart + fractionPart;
  545|  5.79k|	}
_ZN4pcpp8NtpLayer26convertFromTimestampFormatEm:
  548|  23.1k|	{
  549|  23.1k|		double integerPart = netToHost32(val & 0xFFFFFFFF);
  550|  23.1k|		double fractionPart = netToHost32(((val & 0xFFFFFFFF00000000) >> 32)) / NTP_FRAC;
  ------------------
  |  |   12|  23.1k|#define NTP_FRAC 4294967296.
  ------------------
  551|       |
  552|       |		// TODO: Return integer and fraction parts as struct to increase precision
  553|       |		// Offset change should be done here because of overflow
  554|  23.1k|		return integerPart + fractionPart - EPOCH_OFFSET;
  ------------------
  |  |   14|  23.1k|#define EPOCH_OFFSET 2208988800ULL
  ------------------
  555|  23.1k|	}
_ZN4pcpp8NtpLayer20convertToShortFormatEd:
  558|  2.89k|	{
  559|  2.89k|		double integerPart;
  560|  2.89k|		double fractionPart = modf(val, &integerPart);
  561|       |
  562|       |		// Cast values to 16bit
  563|  2.89k|		uint32_t integerPartInt = hostToNet16(integerPart);
  564|  2.89k|		uint32_t fractionPartInt = hostToNet16(fractionPart * NTP_FRIC);
  ------------------
  |  |   10|  2.89k|#define NTP_FRIC 65536.
  ------------------
  565|       |
  566|  2.89k|		return integerPartInt | (fractionPartInt << 16);
  567|  2.89k|	}
_ZN4pcpp8NtpLayer24convertToTimestampFormatEd:
  570|  2.89k|	{
  571|  2.89k|		double integerPart;
  572|  2.89k|		double fractionPart = modf(val, &integerPart);
  573|       |
  574|       |		// Cast values to 32bit
  575|  2.89k|		uint64_t integerPartInt = hostToNet32(integerPart + EPOCH_OFFSET);
  ------------------
  |  |   14|  2.89k|#define EPOCH_OFFSET 2208988800ULL
  ------------------
  576|  2.89k|		uint64_t fractionPartInt = hostToNet32(fractionPart * NTP_FRAC);
  ------------------
  |  |   12|  2.89k|#define NTP_FRAC 4294967296.
  ------------------
  577|       |
  578|  2.89k|		return integerPartInt | (fractionPartInt << 32);
  579|  2.89k|	}
_ZN4pcpp8NtpLayer18convertToIsoFormatEd:
  582|  11.5k|	{
  583|  11.5k|		double integerPart;
  584|  11.5k|		double fractionPart = modf(timestamp, &integerPart);
  585|       |
  586|  11.5k|		struct tm* timer;
  587|  11.5k|		time_t timeStruct = integerPart;
  588|       |#if defined(_WIN32)
  589|       |		if (timeStruct < 0)
  590|       |			timeStruct = 0;
  591|       |		timer = gmtime(&timeStruct);
  592|       |#else
  593|  11.5k|		struct tm timer_r;
  594|  11.5k|		timer = gmtime_r(&timeStruct, &timer_r);
  595|       |
  596|  11.5k|		if (timer != nullptr)
  ------------------
  |  Branch (596:7): [True: 11.5k, False: 0]
  ------------------
  597|  11.5k|			timer = &timer_r;
  598|  11.5k|#endif
  599|  11.5k|		if (timer == nullptr)
  ------------------
  |  Branch (599:7): [True: 0, False: 11.5k]
  ------------------
  600|      0|		{
  601|      0|			PCPP_LOG_ERROR("Can't convert time");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleNtpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  602|      0|			return std::string();
  603|      0|		}
  604|  11.5k|		char buffer[50], bufferFraction[15];
  605|  11.5k|		strftime(buffer, sizeof(buffer) - sizeof(bufferFraction), "%Y-%m-%dT%H:%M:%S", timer);
  606|       |
  607|  11.5k|		snprintf(bufferFraction, sizeof(bufferFraction), "%.04lfZ", fabs(fractionPart));
  608|  11.5k|		strncat(buffer, &bufferFraction[1], sizeof(bufferFraction));
  609|       |
  610|  11.5k|		return std::string(buffer);
  611|  11.5k|	}
_ZN4pcpp8NtpLayer18convertToIsoFormatEm:
  614|  11.5k|	{
  615|  11.5k|		return convertToIsoFormat(convertFromTimestampFormat(timestampInNTPformat));
  616|  11.5k|	}
_ZN4pcpp8NtpLayer11isDataValidEPKhm:
  619|  14.4k|	{
  620|  14.4k|		return data && dataSize >= sizeof(ntp_header);
  ------------------
  |  Branch (620:10): [True: 14.4k, False: 0]
  |  Branch (620:18): [True: 14.4k, False: 5]
  ------------------
  621|  14.4k|	}
_ZNK4pcpp8NtpLayer8toStringEv:
  624|  5.79k|	{
  625|  5.79k|		return std::string("NTP Layer v") + std::to_string(getVersion()) + ", Mode: " + getModeString();
  626|  5.79k|	}

_ZNK4pcpp17NullLoopbackLayer9getFamilyEv:
   24|  3.78k|	{
   25|  3.78k|		uint32_t family = *(reinterpret_cast<uint32_t*>(m_Data));
   26|  3.78k|		if ((family & 0xFFFF'0000) != 0)
  ------------------
  |  Branch (26:7): [True: 3.39k, False: 397]
  ------------------
   27|  3.39k|		{
   28|  3.39k|			if ((family & 0xFF00'0000) == 0 && (family & 0x00FF'0000) < 0x0006'0000)
  ------------------
  |  Branch (28:8): [True: 1.54k, False: 1.84k]
  |  Branch (28:39): [True: 384, False: 1.16k]
  ------------------
   29|    384|			{
   30|    384|				family >>= 16;
   31|    384|			}
   32|  3.00k|			else
   33|  3.00k|			{
   34|  3.00k|				family = BSWAP32(family);
  ------------------
  |  |   11|  3.00k|#define BSWAP32(x) (((x) >> 24) | (((x) & 0x00FF'0000) >> 8) | (((x) & 0x0000'FF00) << 8) | ((x) << 24))
  ------------------
   35|  3.00k|			}
   36|  3.39k|		}
   37|    397|		else if ((family & 0x0000'00FF) == 0 && (family & 0x0000'FF00) < 0x0000'0600)
  ------------------
  |  Branch (37:12): [True: 240, False: 157]
  |  Branch (37:43): [True: 111, False: 129]
  ------------------
   38|    111|		{
   39|    111|			family = BSWAP16(family & 0xFFFF);
  ------------------
  |  |   10|    111|#define BSWAP16(x) (((x) >> 8) | ((x) << 8))
  ------------------
   40|    111|		}
   41|       |
   42|  3.78k|		return family;
   43|  3.78k|	}
_ZN4pcpp17NullLoopbackLayer14parseNextLayerEv:
   51|  3.78k|	{
   52|  3.78k|		uint8_t* payload = m_Data + sizeof(uint32_t);
   53|  3.78k|		size_t payloadLen = m_DataLen - sizeof(uint32_t);
   54|       |
   55|  3.78k|		uint32_t family = getFamily();
   56|  3.78k|		if (family > IEEE_802_3_MAX_LEN)
  ------------------
  |  |   13|  3.78k|#define IEEE_802_3_MAX_LEN 0x5dc
  ------------------
  |  Branch (56:7): [True: 1.29k, False: 2.48k]
  ------------------
   57|  1.29k|		{
   58|  1.29k|			uint16_t ethType = static_cast<uint16_t>(family);
   59|  1.29k|			switch (ethType)
   60|  1.29k|			{
   61|    387|			case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|    387|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (61:4): [True: 387, False: 912]
  ------------------
   62|    387|			{
   63|    387|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   64|    387|				return;
   65|      0|			}
   66|      0|			case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|      0|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (66:4): [True: 0, False: 1.29k]
  ------------------
   67|      0|			{
   68|      0|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   69|      0|				return;
   70|      0|			}
   71|    912|			default:
  ------------------
  |  Branch (71:4): [True: 912, False: 387]
  ------------------
   72|    912|			{
   73|    912|				constructNextLayer<PayloadLayer>(payload, payloadLen);
   74|    912|				return;
   75|      0|			}
   76|  1.29k|			}
   77|  1.29k|		}
   78|       |
   79|  2.48k|		switch (family)
   80|  2.48k|		{
   81|     25|		case PCPP_BSD_AF_INET:
  ------------------
  |  |   13|     25|#define PCPP_BSD_AF_INET 2
  ------------------
  |  Branch (81:3): [True: 25, False: 2.46k]
  ------------------
   82|     25|		{
   83|     25|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   84|     25|			break;
   85|      0|		}
   86|    258|		case PCPP_BSD_AF_INET6_BSD:
  ------------------
  |  |   23|    258|#define PCPP_BSD_AF_INET6_BSD 24
  ------------------
  |  Branch (86:3): [True: 258, False: 2.23k]
  ------------------
   87|    258|		case PCPP_BSD_AF_INET6_FREEBSD:
  ------------------
  |  |   25|    258|#define PCPP_BSD_AF_INET6_FREEBSD 28
  ------------------
  |  Branch (87:3): [True: 0, False: 2.48k]
  ------------------
   88|  1.93k|		case PCPP_BSD_AF_INET6_DARWIN:
  ------------------
  |  |   27|  1.93k|#define PCPP_BSD_AF_INET6_DARWIN 30
  ------------------
  |  Branch (88:3): [True: 1.68k, False: 808]
  ------------------
   89|  1.93k|		{
   90|  1.93k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   91|  1.93k|			break;
   92|    258|		}
   93|    525|		default:
  ------------------
  |  Branch (93:3): [True: 525, False: 1.96k]
  ------------------
   94|    525|		{
   95|    525|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   96|    525|			break;
   97|    258|		}
   98|  2.48k|		}
   99|  2.48k|	}
_ZNK4pcpp17NullLoopbackLayer8toStringEv:
  102|  2.49k|	{
  103|  2.49k|		return "Null/Loopback";
  104|  2.49k|	}

_ZN4pcpp10PPPoELayer22computeCalculateFieldsEv:
   33|  4.12k|	{
   34|  4.12k|		pppoe_header* pppoeHdr = getPPPoEHeader();
   35|       |		pppoeHdr->payloadLength = htobe16(m_DataLen - sizeof(pppoe_header));
   36|  4.12k|	}
_ZN4pcpp17PPPoESessionLayer14parseNextLayerEv:
   42|  41.9k|	{
   43|  41.9k|		size_t headerLen = getHeaderLen();
   44|  41.9k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (44:7): [True: 0, False: 41.9k]
  ------------------
   45|      0|			return;
   46|       |
   47|  41.9k|		uint8_t* payload = m_Data + headerLen;
   48|  41.9k|		size_t payloadLen = m_DataLen - headerLen;
   49|       |
   50|  41.9k|		switch (getPPPNextProtocol())
   51|  41.9k|		{
   52|  40.6k|		case PCPP_PPP_IP:
  ------------------
  |  |  398|  40.6k|#define PCPP_PPP_IP 0x21
  ------------------
  |  Branch (52:3): [True: 40.6k, False: 1.28k]
  ------------------
   53|  40.6k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   54|  40.6k|			break;
   55|     15|		case PCPP_PPP_IPV6:
  ------------------
  |  |  450|     15|#define PCPP_PPP_IPV6 0x57
  ------------------
  |  Branch (55:3): [True: 15, False: 41.9k]
  ------------------
   56|     15|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   57|     15|			break;
   58|  1.26k|		default:
  ------------------
  |  Branch (58:3): [True: 1.26k, False: 40.6k]
  ------------------
   59|  1.26k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   60|  1.26k|			break;
   61|  41.9k|		}
   62|  41.9k|	}
_ZNK4pcpp17PPPoESessionLayer18getPPPNextProtocolEv:
   65|  50.0k|	{
   66|  50.0k|		if (m_DataLen < getHeaderLen())
  ------------------
  |  Branch (66:7): [True: 0, False: 50.0k]
  ------------------
   67|      0|		{
   68|      0|			PCPP_LOG_ERROR("ERROR: size of layer is smaller then PPPoE session header");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePPPoELayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePPPoELayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   69|      0|			return 0;
   70|      0|		}
   71|       |
   72|  50.0k|		uint16_t pppNextProto = *reinterpret_cast<uint16_t*>(m_Data + sizeof(pppoe_header));
   73|       |		return be16toh(pppNextProto);
   74|  50.0k|	}
_ZN4pcpp29createPPPNextProtoToStringMapEv:
   89|      2|	{
   90|      2|		std::unordered_map<uint16_t, std::string> tempMap;
   91|      2|		tempMap[PCPP_PPP_PADDING] = "Padding Protocol";
  ------------------
  |  |  392|      2|#define PCPP_PPP_PADDING 0x1
  ------------------
   92|      2|		tempMap[PCPP_PPP_ROHC_SCID] = "ROHC small-CID";
  ------------------
  |  |  394|      2|#define PCPP_PPP_ROHC_SCID 0x3
  ------------------
   93|      2|		tempMap[PCPP_PPP_ROHC_LCID] = "ROHC large-CID";
  ------------------
  |  |  396|      2|#define PCPP_PPP_ROHC_LCID 0x5
  ------------------
   94|      2|		tempMap[PCPP_PPP_IP] = "Internet Protocol version 4";
  ------------------
  |  |  398|      2|#define PCPP_PPP_IP 0x21
  ------------------
   95|      2|		tempMap[PCPP_PPP_OSI] = "OSI Network Layer";
  ------------------
  |  |  400|      2|#define PCPP_PPP_OSI 0x23
  ------------------
   96|      2|		tempMap[PCPP_PPP_XNSIDP] = "Xerox NS IDP";
  ------------------
  |  |  402|      2|#define PCPP_PPP_XNSIDP 0x25
  ------------------
   97|      2|		tempMap[PCPP_PPP_DEC4] = "DECnet Phase IV";
  ------------------
  |  |  404|      2|#define PCPP_PPP_DEC4 0x27
  ------------------
   98|      2|		tempMap[PCPP_PPP_AT] = "Appletalk";
  ------------------
  |  |  406|      2|#define PCPP_PPP_AT 0x29
  ------------------
   99|      2|		tempMap[PCPP_PPP_IPX] = "Novell IPX";
  ------------------
  |  |  408|      2|#define PCPP_PPP_IPX 0x2b
  ------------------
  100|      2|		tempMap[PCPP_PPP_VJC_COMP] = "Van Jacobson Compressed TCP/IP";
  ------------------
  |  |  410|      2|#define PCPP_PPP_VJC_COMP 0x2d
  ------------------
  101|      2|		tempMap[PCPP_PPP_VJC_UNCOMP] = "Van Jacobson Uncompressed TCP/IP";
  ------------------
  |  |  412|      2|#define PCPP_PPP_VJC_UNCOMP 0x2f
  ------------------
  102|      2|		tempMap[PCPP_PPP_BCP] = "Bridging PDU";
  ------------------
  |  |  414|      2|#define PCPP_PPP_BCP 0x31
  ------------------
  103|      2|		tempMap[PCPP_PPP_ST] = "Stream Protocol (ST-II)";
  ------------------
  |  |  416|      2|#define PCPP_PPP_ST 0x33
  ------------------
  104|      2|		tempMap[PCPP_PPP_VINES] = "Banyan Vines";
  ------------------
  |  |  418|      2|#define PCPP_PPP_VINES 0x35
  ------------------
  105|      2|		tempMap[PCPP_PPP_AT_EDDP] = "AppleTalk EDDP";
  ------------------
  |  |  420|      2|#define PCPP_PPP_AT_EDDP 0x39
  ------------------
  106|      2|		tempMap[PCPP_PPP_AT_SB] = "AppleTalk SmartBuffered";
  ------------------
  |  |  422|      2|#define PCPP_PPP_AT_SB 0x3b
  ------------------
  107|      2|		tempMap[PCPP_PPP_MP] = "Multi-Link";
  ------------------
  |  |  424|      2|#define PCPP_PPP_MP 0x3d
  ------------------
  108|      2|		tempMap[PCPP_PPP_NB] = "NETBIOS Framing";
  ------------------
  |  |  426|      2|#define PCPP_PPP_NB 0x3f
  ------------------
  109|      2|		tempMap[PCPP_PPP_CISCO] = "Cisco Systems";
  ------------------
  |  |  428|      2|#define PCPP_PPP_CISCO 0x41
  ------------------
  110|      2|		tempMap[PCPP_PPP_ASCOM] = "Ascom Timeplex";
  ------------------
  |  |  430|      2|#define PCPP_PPP_ASCOM 0x43
  ------------------
  111|      2|		tempMap[PCPP_PPP_LBLB] = "Fujitsu Link Backup and Load Balancing (LBLB)";
  ------------------
  |  |  432|      2|#define PCPP_PPP_LBLB 0x45
  ------------------
  112|      2|		tempMap[PCPP_PPP_RL] = "DCA Remote Lan";
  ------------------
  |  |  434|      2|#define PCPP_PPP_RL 0x47
  ------------------
  113|      2|		tempMap[PCPP_PPP_SDTP] = "Serial Data Transport Protocol (PPP-SDTP)";
  ------------------
  |  |  436|      2|#define PCPP_PPP_SDTP 0x49
  ------------------
  114|      2|		tempMap[PCPP_PPP_LLC] = "SNA over 802.2";
  ------------------
  |  |  438|      2|#define PCPP_PPP_LLC 0x4b
  ------------------
  115|      2|		tempMap[PCPP_PPP_SNA] = "SNA";
  ------------------
  |  |  440|      2|#define PCPP_PPP_SNA 0x4d
  ------------------
  116|      2|		tempMap[PCPP_PPP_IPV6HC] = "IPv6 Header Compression ";
  ------------------
  |  |  442|      2|#define PCPP_PPP_IPV6HC 0x4f
  ------------------
  117|      2|		tempMap[PCPP_PPP_KNX] = "KNX Bridging Data";
  ------------------
  |  |  444|      2|#define PCPP_PPP_KNX 0x51
  ------------------
  118|      2|		tempMap[PCPP_PPP_ENCRYPT] = "Encryption";
  ------------------
  |  |  446|      2|#define PCPP_PPP_ENCRYPT 0x53
  ------------------
  119|      2|		tempMap[PCPP_PPP_ILE] = "Individual Link Encryption";
  ------------------
  |  |  448|      2|#define PCPP_PPP_ILE 0x55
  ------------------
  120|      2|		tempMap[PCPP_PPP_IPV6] = "Internet Protocol version 6";
  ------------------
  |  |  450|      2|#define PCPP_PPP_IPV6 0x57
  ------------------
  121|      2|		tempMap[PCPP_PPP_MUX] = "PPP Muxing";
  ------------------
  |  |  452|      2|#define PCPP_PPP_MUX 0x59
  ------------------
  122|      2|		tempMap[PCPP_PPP_VSNP] = "Vendor-Specific Network Protocol (VSNP)";
  ------------------
  |  |  454|      2|#define PCPP_PPP_VSNP 0x5b
  ------------------
  123|      2|		tempMap[PCPP_PPP_TNP] = "TRILL Network Protocol (TNP)";
  ------------------
  |  |  456|      2|#define PCPP_PPP_TNP 0x5d
  ------------------
  124|      2|		tempMap[PCPP_PPP_RTP_FH] = "RTP IPHC Full Header";
  ------------------
  |  |  458|      2|#define PCPP_PPP_RTP_FH 0x61
  ------------------
  125|      2|		tempMap[PCPP_PPP_RTP_CTCP] = "RTP IPHC Compressed TCP";
  ------------------
  |  |  460|      2|#define PCPP_PPP_RTP_CTCP 0x63
  ------------------
  126|      2|		tempMap[PCPP_PPP_RTP_CNTCP] = "RTP IPHC Compressed Non TCP";
  ------------------
  |  |  462|      2|#define PCPP_PPP_RTP_CNTCP 0x65
  ------------------
  127|      2|		tempMap[PCPP_PPP_RTP_CUDP8] = "RTP IPHC Compressed UDP 8";
  ------------------
  |  |  464|      2|#define PCPP_PPP_RTP_CUDP8 0x67
  ------------------
  128|      2|		tempMap[PCPP_PPP_RTP_CRTP8] = "RTP IPHC Compressed RTP 8";
  ------------------
  |  |  466|      2|#define PCPP_PPP_RTP_CRTP8 0x69
  ------------------
  129|      2|		tempMap[PCPP_PPP_STAMPEDE] = "Stampede Bridging";
  ------------------
  |  |  468|      2|#define PCPP_PPP_STAMPEDE 0x6f
  ------------------
  130|      2|		tempMap[PCPP_PPP_MPPLUS] = "MP+ Protocol";
  ------------------
  |  |  470|      2|#define PCPP_PPP_MPPLUS 0x73
  ------------------
  131|      2|		tempMap[PCPP_PPP_NTCITS_IPI] = "NTCITS IPI";
  ------------------
  |  |  472|      2|#define PCPP_PPP_NTCITS_IPI 0xc1
  ------------------
  132|      2|		tempMap[PCPP_PPP_ML_SLCOMP] = "Single link compression in multilink";
  ------------------
  |  |  474|      2|#define PCPP_PPP_ML_SLCOMP 0xfb
  ------------------
  133|      2|		tempMap[PCPP_PPP_COMP] = "Compressed datagram";
  ------------------
  |  |  476|      2|#define PCPP_PPP_COMP 0xfd
  ------------------
  134|      2|		tempMap[PCPP_PPP_STP_HELLO] = "802.1d Hello Packets";
  ------------------
  |  |  478|      2|#define PCPP_PPP_STP_HELLO 0x0201
  ------------------
  135|      2|		tempMap[PCPP_PPP_IBM_SR] = "IBM Source Routing BPDU";
  ------------------
  |  |  480|      2|#define PCPP_PPP_IBM_SR 0x0203
  ------------------
  136|      2|		tempMap[PCPP_PPP_DEC_LB] = "DEC LANBridge100 Spanning Tree";
  ------------------
  |  |  482|      2|#define PCPP_PPP_DEC_LB 0x0205
  ------------------
  137|      2|		tempMap[PCPP_PPP_CDP] = "Cisco Discovery Protocol";
  ------------------
  |  |  484|      2|#define PCPP_PPP_CDP 0x0207
  ------------------
  138|      2|		tempMap[PCPP_PPP_NETCS] = "Netcs Twin Routing";
  ------------------
  |  |  486|      2|#define PCPP_PPP_NETCS 0x0209
  ------------------
  139|      2|		tempMap[PCPP_PPP_STP] = "STP - Scheduled Transfer Protocol";
  ------------------
  |  |  488|      2|#define PCPP_PPP_STP 0x020b
  ------------------
  140|      2|		tempMap[PCPP_PPP_EDP] = "EDP - Extreme Discovery Protocol";
  ------------------
  |  |  490|      2|#define PCPP_PPP_EDP 0x020d
  ------------------
  141|      2|		tempMap[PCPP_PPP_OSCP] = "Optical Supervisory Channel Protocol (OSCP)";
  ------------------
  |  |  492|      2|#define PCPP_PPP_OSCP 0x0211
  ------------------
  142|      2|		tempMap[PCPP_PPP_OSCP2] = "Optical Supervisory Channel Protocol (OSCP)";
  ------------------
  |  |  494|      2|#define PCPP_PPP_OSCP2 0x0213
  ------------------
  143|      2|		tempMap[PCPP_PPP_LUXCOM] = "Luxcom";
  ------------------
  |  |  496|      2|#define PCPP_PPP_LUXCOM 0x0231
  ------------------
  144|      2|		tempMap[PCPP_PPP_SIGMA] = "Sigma Network Systems";
  ------------------
  |  |  498|      2|#define PCPP_PPP_SIGMA 0x0233
  ------------------
  145|      2|		tempMap[PCPP_PPP_ACSP] = "Apple Client Server Protocol";
  ------------------
  |  |  500|      2|#define PCPP_PPP_ACSP 0x0235
  ------------------
  146|      2|		tempMap[PCPP_PPP_MPLS_UNI] = "MPLS Unicast";
  ------------------
  |  |  502|      2|#define PCPP_PPP_MPLS_UNI 0x0281
  ------------------
  147|      2|		tempMap[PCPP_PPP_MPLS_MULTI] = "MPLS Multicast";
  ------------------
  |  |  504|      2|#define PCPP_PPP_MPLS_MULTI 0x0283
  ------------------
  148|      2|		tempMap[PCPP_PPP_P12844] = "IEEE p1284.4 standard - data packets";
  ------------------
  |  |  506|      2|#define PCPP_PPP_P12844 0x0285
  ------------------
  149|      2|		tempMap[PCPP_PPP_TETRA] = "ETSI TETRA Network Protocol Type 1";
  ------------------
  |  |  508|      2|#define PCPP_PPP_TETRA 0x0287
  ------------------
  150|      2|		tempMap[PCPP_PPP_MFTP] = "Multichannel Flow Treatment Protocol";
  ------------------
  |  |  510|      2|#define PCPP_PPP_MFTP 0x0289
  ------------------
  151|      2|		tempMap[PCPP_PPP_RTP_CTCPND] = "RTP IPHC Compressed TCP No Delta";
  ------------------
  |  |  512|      2|#define PCPP_PPP_RTP_CTCPND 0x2063
  ------------------
  152|      2|		tempMap[PCPP_PPP_RTP_CS] = "RTP IPHC Context State";
  ------------------
  |  |  514|      2|#define PCPP_PPP_RTP_CS 0x2065
  ------------------
  153|      2|		tempMap[PCPP_PPP_RTP_CUDP16] = "RTP IPHC Compressed UDP 16";
  ------------------
  |  |  516|      2|#define PCPP_PPP_RTP_CUDP16 0x2067
  ------------------
  154|      2|		tempMap[PCPP_PPP_RTP_CRDP16] = "RTP IPHC Compressed RTP 16";
  ------------------
  |  |  518|      2|#define PCPP_PPP_RTP_CRDP16 0x2069
  ------------------
  155|      2|		tempMap[PCPP_PPP_CCCP] = "Cray Communications Control Protocol";
  ------------------
  |  |  520|      2|#define PCPP_PPP_CCCP 0x4001
  ------------------
  156|      2|		tempMap[PCPP_PPP_CDPD_MNRP] = "CDPD Mobile Network Registration Protocol";
  ------------------
  |  |  522|      2|#define PCPP_PPP_CDPD_MNRP 0x4003
  ------------------
  157|      2|		tempMap[PCPP_PPP_EXPANDAP] = "Expand accelerator protocol";
  ------------------
  |  |  524|      2|#define PCPP_PPP_EXPANDAP 0x4005
  ------------------
  158|      2|		tempMap[PCPP_PPP_ODSICP] = "ODSICP NCP";
  ------------------
  |  |  526|      2|#define PCPP_PPP_ODSICP 0x4007
  ------------------
  159|      2|		tempMap[PCPP_PPP_DOCSIS] = "DOCSIS DLL";
  ------------------
  |  |  528|      2|#define PCPP_PPP_DOCSIS 0x4009
  ------------------
  160|      2|		tempMap[PCPP_PPP_CETACEANNDP] = "Cetacean Network Detection Protocol";
  ------------------
  |  |  530|      2|#define PCPP_PPP_CETACEANNDP 0x400b
  ------------------
  161|      2|		tempMap[PCPP_PPP_LZS] = "Stacker LZS";
  ------------------
  |  |  532|      2|#define PCPP_PPP_LZS 0x4021
  ------------------
  162|      2|		tempMap[PCPP_PPP_REFTEK] = "RefTek Protocol";
  ------------------
  |  |  534|      2|#define PCPP_PPP_REFTEK 0x4023
  ------------------
  163|      2|		tempMap[PCPP_PPP_FC] = "Fibre Channel";
  ------------------
  |  |  536|      2|#define PCPP_PPP_FC 0x4025
  ------------------
  164|      2|		tempMap[PCPP_PPP_EMIT] = "EMIT Protocols";
  ------------------
  |  |  538|      2|#define PCPP_PPP_EMIT 0x4027
  ------------------
  165|      2|		tempMap[PCPP_PPP_VSP] = "Vendor-Specific Protocol (VSP)";
  ------------------
  |  |  540|      2|#define PCPP_PPP_VSP 0x405b
  ------------------
  166|      2|		tempMap[PCPP_PPP_TLSP] = "TRILL Link State Protocol (TLSP)";
  ------------------
  |  |  542|      2|#define PCPP_PPP_TLSP 0x405d
  ------------------
  167|      2|		tempMap[PCPP_PPP_IPCP] = "Internet Protocol Control Protocol";
  ------------------
  |  |  544|      2|#define PCPP_PPP_IPCP 0x8021
  ------------------
  168|      2|		tempMap[PCPP_PPP_OSINLCP] = "OSI Network Layer Control Protocol";
  ------------------
  |  |  546|      2|#define PCPP_PPP_OSINLCP 0x8023
  ------------------
  169|      2|		tempMap[PCPP_PPP_XNSIDPCP] = "Xerox NS IDP Control Protocol";
  ------------------
  |  |  548|      2|#define PCPP_PPP_XNSIDPCP 0x8025
  ------------------
  170|      2|		tempMap[PCPP_PPP_DECNETCP] = "DECnet Phase IV Control Protocol";
  ------------------
  |  |  550|      2|#define PCPP_PPP_DECNETCP 0x8027
  ------------------
  171|      2|		tempMap[PCPP_PPP_ATCP] = "AppleTalk Control Protocol";
  ------------------
  |  |  552|      2|#define PCPP_PPP_ATCP 0x8029
  ------------------
  172|      2|		tempMap[PCPP_PPP_IPXCP] = "Novell IPX Control Protocol";
  ------------------
  |  |  554|      2|#define PCPP_PPP_IPXCP 0x802b
  ------------------
  173|      2|		tempMap[PCPP_PPP_BRIDGENCP] = "Bridging NCP";
  ------------------
  |  |  556|      2|#define PCPP_PPP_BRIDGENCP 0x8031
  ------------------
  174|      2|		tempMap[PCPP_PPP_SPCP] = "Stream Protocol Control Protocol";
  ------------------
  |  |  558|      2|#define PCPP_PPP_SPCP 0x8033
  ------------------
  175|      2|		tempMap[PCPP_PPP_BVCP] = "Banyan Vines Control Protocol";
  ------------------
  |  |  560|      2|#define PCPP_PPP_BVCP 0x8035
  ------------------
  176|      2|		tempMap[PCPP_PPP_MLCP] = "Multi-Link Control Protocol";
  ------------------
  |  |  562|      2|#define PCPP_PPP_MLCP 0x803d
  ------------------
  177|      2|		tempMap[PCPP_PPP_NBCP] = "NETBIOS Framing Control Protocol";
  ------------------
  |  |  564|      2|#define PCPP_PPP_NBCP 0x803f
  ------------------
  178|      2|		tempMap[PCPP_PPP_CISCOCP] = "Cisco Systems Control Protocol";
  ------------------
  |  |  566|      2|#define PCPP_PPP_CISCOCP 0x8041
  ------------------
  179|      2|		tempMap[PCPP_PPP_ASCOMCP] = "Ascom Timeplex";
  ------------------
  |  |  568|      2|#define PCPP_PPP_ASCOMCP 0x8043
  ------------------
  180|      2|		tempMap[PCPP_PPP_LBLBCP] = "Fujitsu LBLB Control Protocol";
  ------------------
  |  |  570|      2|#define PCPP_PPP_LBLBCP 0x8045
  ------------------
  181|      2|		tempMap[PCPP_PPP_RLNCP] = "DCA Remote Lan Network Control Protocol (RLNCP)";
  ------------------
  |  |  572|      2|#define PCPP_PPP_RLNCP 0x8047
  ------------------
  182|      2|		tempMap[PCPP_PPP_SDCP] = "Serial Data Control Protocol (PPP-SDCP)";
  ------------------
  |  |  574|      2|#define PCPP_PPP_SDCP 0x8049
  ------------------
  183|      2|		tempMap[PCPP_PPP_LLCCP] = "SNA over 802.2 Control Protocol";
  ------------------
  |  |  576|      2|#define PCPP_PPP_LLCCP 0x804b
  ------------------
  184|      2|		tempMap[PCPP_PPP_SNACP] = "SNA Control Protocol";
  ------------------
  |  |  578|      2|#define PCPP_PPP_SNACP 0x804d
  ------------------
  185|      2|		tempMap[PCPP_PPP_IP6HCCP] = "IP6 Header Compression Control Protocol";
  ------------------
  |  |  580|      2|#define PCPP_PPP_IP6HCCP 0x804f
  ------------------
  186|      2|		tempMap[PCPP_PPP_KNXCP] = "KNX Bridging Control Protocol";
  ------------------
  |  |  582|      2|#define PCPP_PPP_KNXCP 0x8051
  ------------------
  187|      2|		tempMap[PCPP_PPP_ECP] = "Encryption Control Protocol";
  ------------------
  |  |  584|      2|#define PCPP_PPP_ECP 0x8053
  ------------------
  188|      2|		tempMap[PCPP_PPP_ILECP] = "Individual Link Encryption Control Protocol";
  ------------------
  |  |  586|      2|#define PCPP_PPP_ILECP 0x8055
  ------------------
  189|      2|		tempMap[PCPP_PPP_IPV6CP] = "IPv6 Control Protocol";
  ------------------
  |  |  588|      2|#define PCPP_PPP_IPV6CP 0x8057
  ------------------
  190|      2|		tempMap[PCPP_PPP_MUXCP] = "PPP Muxing Control Protocol";
  ------------------
  |  |  590|      2|#define PCPP_PPP_MUXCP 0x8059
  ------------------
  191|      2|		tempMap[PCPP_PPP_VSNCP] = "Vendor-Specific Network Control Protocol (VSNCP)";
  ------------------
  |  |  592|      2|#define PCPP_PPP_VSNCP 0x805b
  ------------------
  192|      2|		tempMap[PCPP_PPP_TNCP] = "TRILL Network Control Protocol";
  ------------------
  |  |  594|      2|#define PCPP_PPP_TNCP 0x805d
  ------------------
  193|      2|		tempMap[PCPP_PPP_STAMPEDECP] = "Stampede Bridging Control Protocol";
  ------------------
  |  |  596|      2|#define PCPP_PPP_STAMPEDECP 0x806f
  ------------------
  194|      2|		tempMap[PCPP_PPP_MPPCP] = "MP+ Control Protocol";
  ------------------
  |  |  598|      2|#define PCPP_PPP_MPPCP 0x8073
  ------------------
  195|      2|		tempMap[PCPP_PPP_IPICP] = "NTCITS IPI Control Protocol";
  ------------------
  |  |  600|      2|#define PCPP_PPP_IPICP 0x80c1
  ------------------
  196|      2|		tempMap[PCPP_PPP_SLCC] = "Single link compression in multilink control";
  ------------------
  |  |  602|      2|#define PCPP_PPP_SLCC 0x80fb
  ------------------
  197|      2|		tempMap[PCPP_PPP_CCP] = "Compression Control Protocol";
  ------------------
  |  |  604|      2|#define PCPP_PPP_CCP 0x80fd
  ------------------
  198|      2|		tempMap[PCPP_PPP_CDPCP] = "Cisco Discovery Protocol Control Protocol";
  ------------------
  |  |  606|      2|#define PCPP_PPP_CDPCP 0x8207
  ------------------
  199|      2|		tempMap[PCPP_PPP_NETCSCP] = "Netcs Twin Routing";
  ------------------
  |  |  608|      2|#define PCPP_PPP_NETCSCP 0x8209
  ------------------
  200|      2|		tempMap[PCPP_PPP_STPCP] = "STP - Control Protocol";
  ------------------
  |  |  610|      2|#define PCPP_PPP_STPCP 0x820b
  ------------------
  201|      2|		tempMap[PCPP_PPP_EDPCP] = "EDPCP - Extreme Discovery Protocol Control Protocol";
  ------------------
  |  |  612|      2|#define PCPP_PPP_EDPCP 0x820d
  ------------------
  202|      2|		tempMap[PCPP_PPP_ACSPC] = "Apple Client Server Protocol Control";
  ------------------
  |  |  614|      2|#define PCPP_PPP_ACSPC 0x8235
  ------------------
  203|      2|		tempMap[PCPP_PPP_MPLSCP] = "MPLS Control Protocol";
  ------------------
  |  |  616|      2|#define PCPP_PPP_MPLSCP 0x8281
  ------------------
  204|      2|		tempMap[PCPP_PPP_P12844CP] = "IEEE p1284.4 standard - Protocol Control";
  ------------------
  |  |  618|      2|#define PCPP_PPP_P12844CP 0x8285
  ------------------
  205|      2|		tempMap[PCPP_PPP_TETRACP] = "ETSI TETRA TNP1 Control Protocol";
  ------------------
  |  |  620|      2|#define PCPP_PPP_TETRACP 0x8287
  ------------------
  206|      2|		tempMap[PCPP_PPP_MFTPCP] = "Multichannel Flow Treatment Protocol";
  ------------------
  |  |  622|      2|#define PCPP_PPP_MFTPCP 0x8289
  ------------------
  207|      2|		tempMap[PCPP_PPP_LCP] = "Link Control Protocol";
  ------------------
  |  |  624|      2|#define PCPP_PPP_LCP 0xc021
  ------------------
  208|      2|		tempMap[PCPP_PPP_PAP] = "Password Authentication Protocol";
  ------------------
  |  |  626|      2|#define PCPP_PPP_PAP 0xc023
  ------------------
  209|      2|		tempMap[PCPP_PPP_LQR] = "Link Quality Report";
  ------------------
  |  |  628|      2|#define PCPP_PPP_LQR 0xc025
  ------------------
  210|      2|		tempMap[PCPP_PPP_SPAP] = "Shiva Password Authentication Protocol";
  ------------------
  |  |  630|      2|#define PCPP_PPP_SPAP 0xc027
  ------------------
  211|      2|		tempMap[PCPP_PPP_CBCP] = "Callback Control Protocol (CBCP)";
  ------------------
  |  |  632|      2|#define PCPP_PPP_CBCP 0xc029
  ------------------
  212|      2|		tempMap[PCPP_PPP_BACP] = "BACP Bandwidth Allocation Control Protocol";
  ------------------
  |  |  634|      2|#define PCPP_PPP_BACP 0xc02b
  ------------------
  213|      2|		tempMap[PCPP_PPP_BAP] = "BAP Bandwidth Allocation Protocol";
  ------------------
  |  |  636|      2|#define PCPP_PPP_BAP 0xc02d
  ------------------
  214|      2|		tempMap[PCPP_PPP_VSAP] = "Vendor-Specific Authentication Protocol (VSAP)";
  ------------------
  |  |  638|      2|#define PCPP_PPP_VSAP 0xc05b
  ------------------
  215|      2|		tempMap[PCPP_PPP_CONTCP] = "Container Control Protocol";
  ------------------
  |  |  640|      2|#define PCPP_PPP_CONTCP 0xc081
  ------------------
  216|      2|		tempMap[PCPP_PPP_CHAP] = "Challenge Handshake Authentication Protocol";
  ------------------
  |  |  642|      2|#define PCPP_PPP_CHAP 0xc223
  ------------------
  217|      2|		tempMap[PCPP_PPP_RSAAP] = "RSA Authentication Protocol";
  ------------------
  |  |  644|      2|#define PCPP_PPP_RSAAP 0xc225
  ------------------
  218|      2|		tempMap[PCPP_PPP_EAP] = "Extensible Authentication Protocol";
  ------------------
  |  |  646|      2|#define PCPP_PPP_EAP 0xc227
  ------------------
  219|      2|		tempMap[PCPP_PPP_SIEP] = "Mitsubishi Security Information Exchange Protocol (SIEP)";
  ------------------
  |  |  648|      2|#define PCPP_PPP_SIEP 0xc229
  ------------------
  220|      2|		tempMap[PCPP_PPP_SBAP] = "Stampede Bridging Authorization Protocol";
  ------------------
  |  |  650|      2|#define PCPP_PPP_SBAP 0xc26f
  ------------------
  221|      2|		tempMap[PCPP_PPP_PRPAP] = "Proprietary Authentication Protocol";
  ------------------
  |  |  652|      2|#define PCPP_PPP_PRPAP 0xc281
  ------------------
  222|      2|		tempMap[PCPP_PPP_PRPAP2] = "Proprietary Authentication Protocol";
  ------------------
  |  |  654|      2|#define PCPP_PPP_PRPAP2 0xc283
  ------------------
  223|      2|		tempMap[PCPP_PPP_PRPNIAP] = "Proprietary Node ID Authentication Protocol";
  ------------------
  |  |  656|      2|#define PCPP_PPP_PRPNIAP 0xc481
  ------------------
  224|      2|		return tempMap;
  225|      2|	}
_ZNK4pcpp17PPPoESessionLayer8toStringEv:
  230|  7.82k|	{
  231|  7.82k|		auto findResult = PPPNextProtoToString.find(getPPPNextProtocol());
  232|  7.82k|		std::string nextProtocol;
  233|  7.82k|		if (findResult != PPPNextProtoToString.end())
  ------------------
  |  Branch (233:7): [True: 7.47k, False: 354]
  ------------------
  234|  7.47k|			nextProtocol = findResult->second;
  235|    354|		else
  236|    354|		{
  237|    354|			std::ostringstream stream;
  238|    354|			stream << "Unknown (0x" << std::hex << getPPPNextProtocol() << ")";
  239|    354|			nextProtocol = stream.str();
  240|    354|		}
  241|       |
  242|  7.82k|		return "PPP-over-Ethernet Session (followed by '" + nextProtocol + "')";
  243|  7.82k|	}
_ZNK4pcpp19PPPoEDiscoveryLayer12getHeaderLenEv:
  364|  1.27k|	{
  365|  1.27k|		size_t payloadLen = sizeof(pppoe_header) + be16toh(getPPPoEHeader()->payloadLength);
  366|  1.27k|		if (payloadLen > m_DataLen)
  ------------------
  |  Branch (366:7): [True: 114, False: 1.15k]
  ------------------
  367|    114|			return m_DataLen;
  368|       |
  369|  1.15k|		return payloadLen;
  370|  1.27k|	}
_ZNK4pcpp19PPPoEDiscoveryLayer12codeToStringENS_10PPPoELayer9PPPoECodeE:
  410|    424|	{
  411|    424|		switch (code)
  412|    424|		{
  413|    388|		case PPPoELayer::PPPOE_CODE_SESSION:
  ------------------
  |  Branch (413:3): [True: 388, False: 36]
  ------------------
  414|    388|			return std::string("PPPoE Session");
  415|      0|		case PPPoELayer::PPPOE_CODE_PADO:
  ------------------
  |  Branch (415:3): [True: 0, False: 424]
  ------------------
  416|      0|			return std::string("PADO");
  417|      0|		case PPPoELayer::PPPOE_CODE_PADI:
  ------------------
  |  Branch (417:3): [True: 0, False: 424]
  ------------------
  418|      0|			return std::string("PADI");
  419|      0|		case PPPoELayer::PPPOE_CODE_PADG:
  ------------------
  |  Branch (419:3): [True: 0, False: 424]
  ------------------
  420|      0|			return std::string("PADG");
  421|      0|		case PPPoELayer::PPPOE_CODE_PADC:
  ------------------
  |  Branch (421:3): [True: 0, False: 424]
  ------------------
  422|      0|			return std::string("PADC");
  423|      0|		case PPPoELayer::PPPOE_CODE_PADQ:
  ------------------
  |  Branch (423:3): [True: 0, False: 424]
  ------------------
  424|      0|			return std::string("PADQ");
  425|      0|		case PPPoELayer::PPPOE_CODE_PADR:
  ------------------
  |  Branch (425:3): [True: 0, False: 424]
  ------------------
  426|      0|			return std::string("PADR");
  427|     36|		case PPPoELayer::PPPOE_CODE_PADS:
  ------------------
  |  Branch (427:3): [True: 36, False: 388]
  ------------------
  428|     36|			return std::string("PADS");
  429|      0|		case PPPoELayer::PPPOE_CODE_PADT:
  ------------------
  |  Branch (429:3): [True: 0, False: 424]
  ------------------
  430|      0|			return std::string("PADT");
  431|      0|		case PPPoELayer::PPPOE_CODE_PADM:
  ------------------
  |  Branch (431:3): [True: 0, False: 424]
  ------------------
  432|      0|			return std::string("PADM");
  433|      0|		case PPPoELayer::PPPOE_CODE_PADN:
  ------------------
  |  Branch (433:3): [True: 0, False: 424]
  ------------------
  434|      0|			return std::string("PADN");
  435|      0|		default:
  ------------------
  |  Branch (435:3): [True: 0, False: 424]
  ------------------
  436|      0|			return std::string("Unknown PPPoE code");
  437|    424|		}
  438|    424|	}

_ZN4pcpp6Packet12setRawPacketEPNS_9RawPacketEbjNS_13OsiModelLayerE:
   50|   175k|	{
   51|   175k|		destructPacketData();
   52|       |
   53|   175k|		m_FirstLayer = nullptr;
   54|   175k|		m_LastLayer = nullptr;
   55|   175k|		m_MaxPacketLen = rawPacket->getRawDataLen();
   56|   175k|		m_FreeRawPacket = freeRawPacket;
   57|   175k|		m_RawPacket = rawPacket;
   58|   175k|		m_CanReallocateData = true;
   59|       |
   60|   175k|		if (m_RawPacket == nullptr)
  ------------------
  |  Branch (60:7): [True: 0, False: 175k]
  ------------------
   61|      0|			return;
   62|       |
   63|   175k|		parsePacket(PacketParseOptions{ parseUntil, parseUntilLayer });
   64|   175k|	}
_ZN4pcpp6Packet11parsePacketENS_18PacketParseOptionsEb:
   67|   175k|	{
   68|   175k|		if (m_RawPacket == nullptr)
  ------------------
  |  Branch (68:7): [True: 0, False: 175k]
  ------------------
   69|      0|		{
   70|      0|			throw std::runtime_error("Cannot parse packet: RawPacket is null");
   71|      0|		}
   72|       |
   73|       |		// If we aren't doing an incremental parse, destroy all existing layers and start from scratch
   74|   175k|		if (!incrementalParsing)
  ------------------
  |  Branch (74:7): [True: 0, False: 175k]
  ------------------
   75|      0|		{
   76|      0|			destroyAllLayers();
   77|      0|		}
   78|       |
   79|       |		// Flag indicating whether we are currently parsing new layers (as opposed to traversing already parsed ones).
   80|   175k|		bool parsingNewLayers = false;
   81|       |
   82|       |		// If there is no first layer, create it based on the link layer type
   83|   175k|		if (m_FirstLayer == nullptr)
  ------------------
  |  Branch (83:7): [True: 175k, False: 0]
  ------------------
   84|   175k|		{
   85|   175k|			parsingNewLayers = true;
   86|       |
   87|   175k|			LinkLayerType linkType = m_RawPacket->getLinkLayerType();
   88|   175k|			m_FirstLayer = createFirstLayer(linkType);
   89|       |
   90|   175k|			if (m_FirstLayer == nullptr)
  ------------------
  |  Branch (90:8): [True: 165, False: 175k]
  ------------------
   91|    165|			{
   92|    165|				PCPP_LOG_ERROR("Failed to create first layer! Possibly attempting to parse a RawPacket with no data.");
  ------------------
  |  |  443|    165|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    165|	do                                                                                                                 \
  |  |  |  |  413|    165|	{                                                                                                                  \
  |  |  |  |  414|    165|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    165|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    165|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 165, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    165|		{                                                                                                              \
  |  |  |  |  417|    165|			auto ctx =                                                                                                 \
  |  |  |  |  418|    165|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    165|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    165|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    165|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    165|		}                                                                                                              \
  |  |  |  |  422|    165|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 165]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   93|    165|				return;
   94|    165|			}
   95|       |
   96|       |			// Mark the first layer as allocated in the packet
   97|   175k|			m_FirstLayer->m_AllocationInfo.ownedByPacket = true;
   98|   175k|		}
   99|       |
  100|   175k|		Layer* parseStartLayer = m_FirstLayer;
  101|       |
  102|       |		// Fast path:
  103|       |		//   If we are doing an incremental parse and we are not searching for a specific protocol type,
  104|       |		//   we can directly start from the last parsed layer.
  105|   175k|		if (m_LastLayer != nullptr && options.parseUntilProtocol == UnknownProtocol)
  ------------------
  |  Branch (105:7): [True: 0, False: 175k]
  |  Branch (105:33): [True: 0, False: 0]
  ------------------
  106|      0|		{
  107|       |			// NOTE: Potential edge case, PacketTrailerLayer is considered DataLinkLayer.
  108|       |			//  If the user requested a higher OSI layer, this condition would not skip the parse.
  109|       |			//  The parse should still do nothing, as the trailer layer doesn't have a next layer,
  110|       |			//  but it will have to go through 1 extra iteration.
  111|      0|			if (m_LastLayer->getOsiModelLayer() > options.parseUntilLayer)
  ------------------
  |  Branch (111:8): [True: 0, False: 0]
  ------------------
  112|      0|			{
  113|       |				// Already past the OSI target layer, nothing to do
  114|      0|				return;
  115|      0|			}
  116|       |
  117|      0|			parseStartLayer = m_LastLayer;
  118|      0|		}
  119|       |
  120|       |		// As the stop conditions are inclusive, the parse must go one layer further and then roll back if needed
  121|   175k|		bool rollbackLastLayer = false;
  122|   175k|		bool foundTargetProtocol = false;
  123|   912k|		for (auto* curLayer = parseStartLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (123:42): [True: 736k, False: 175k]
  ------------------
  124|   736k|		{
  125|       |			// If we are parsing new layers, update the last layer pointer
  126|       |			// Otherwise we are just traversing already parsed layers
  127|   736k|			if (parsingNewLayers)
  ------------------
  |  Branch (127:8): [True: 736k, False: 0]
  ------------------
  128|   736k|			{
  129|       |				// Mark the current layer as allocated in the packet, as it was just created
  130|   736k|				curLayer->m_AllocationInfo.ownedByPacket = true;
  131|   736k|				m_LastLayer = curLayer;
  132|   736k|			}
  133|       |
  134|       |			// If the current layer is of a higher OSI layer than the target, stop parsing
  135|   736k|			if (curLayer->getOsiModelLayer() > options.parseUntilLayer)
  ------------------
  |  Branch (135:8): [True: 0, False: 736k]
  ------------------
  136|      0|			{
  137|       |				// If we are traversing already parsed layers, we don't want to roll back as they must be kept as is.
  138|      0|				rollbackLastLayer = parsingNewLayers;
  139|      0|				break;
  140|      0|			}
  141|       |
  142|       |			// If we are searching for a specific layer protocol, record when we find at least one target.
  143|   736k|			const bool matchesTarget = curLayer->isMemberOfProtocolFamily(options.parseUntilProtocol);
  144|   736k|			if (options.parseUntilProtocol != UnknownProtocol && matchesTarget)
  ------------------
  |  Branch (144:8): [True: 0, False: 736k]
  |  Branch (144:57): [True: 0, False: 0]
  ------------------
  145|      0|			{
  146|      0|				foundTargetProtocol = true;
  147|      0|			}
  148|       |
  149|       |			// If we have found the target protocol already, we are parsing until we find a different protocol
  150|   736k|			if (foundTargetProtocol && !matchesTarget)
  ------------------
  |  Branch (150:8): [True: 0, False: 736k]
  |  Branch (150:31): [True: 0, False: 0]
  ------------------
  151|      0|			{
  152|       |				// If we are traversing already parsed layers, we don't want to roll back as they must be kept as is.
  153|      0|				rollbackLastLayer = parsingNewLayers;
  154|      0|				break;
  155|      0|			}
  156|       |
  157|       |			// If the current layer doesn't have a next layer yet, parse it.
  158|       |			// This is important for the case of a re-parse where some layers may already have been parsed
  159|   736k|			if (!curLayer->hasNextLayer())
  ------------------
  |  Branch (159:8): [True: 736k, False: 0]
  ------------------
  160|   736k|			{
  161|   736k|				parsingNewLayers = true;  // We are now parsing new layers.
  162|       |
  163|       |				// Parse the next layer. This will update the next layer pointer of the current layer.
  164|   736k|				curLayer->parseNextLayer();
  165|   736k|			}
  166|   736k|		}
  167|       |
  168|       |		// Roll back one layer, if parsing with search condition as the conditions are inclusive.
  169|       |		// Don't delete the first layer. If already past the target layer, treat the same as if the layer was found.
  170|   175k|		if (rollbackLastLayer && m_LastLayer != m_FirstLayer)
  ------------------
  |  Branch (170:7): [True: 0, False: 175k]
  |  Branch (170:28): [True: 0, False: 0]
  ------------------
  171|      0|		{
  172|      0|			m_LastLayer = m_LastLayer->getPrevLayer();
  173|      0|			delete m_LastLayer->m_NextLayer;
  174|      0|			m_LastLayer->m_NextLayer = nullptr;
  175|      0|		}
  176|       |
  177|       |		// If there is data left in the raw packet that doesn't belong to any layer, create a PacketTrailerLayer
  178|   175k|		if (m_LastLayer != nullptr && options.parseUntilProtocol == UnknownProtocol &&
  ------------------
  |  Branch (178:7): [True: 175k, False: 0]
  |  Branch (178:33): [True: 175k, False: 0]
  ------------------
  179|   175k|		    options.parseUntilLayer == OsiModelLayerUnknown)
  ------------------
  |  Branch (179:7): [True: 175k, False: 0]
  ------------------
  180|   175k|		{
  181|       |			// find if there is data left in the raw packet that doesn't belong to any layer. In that case it's probably
  182|       |			// a packet trailer. create a PacketTrailerLayer layer and add it at the end of the packet
  183|   175k|			int trailerLen = (int)((m_RawPacket->getRawData() + m_RawPacket->getRawDataLen()) -
  184|   175k|			                       (m_LastLayer->getData() + m_LastLayer->getDataLen()));
  185|   175k|			if (trailerLen > 0)
  ------------------
  |  Branch (185:8): [True: 41.1k, False: 133k]
  ------------------
  186|  41.1k|			{
  187|  41.1k|				PacketTrailerLayer* trailerLayer =
  188|  41.1k|				    new PacketTrailerLayer(static_cast<uint8_t*>(m_LastLayer->getData() + m_LastLayer->getDataLen()),
  189|  41.1k|				                           trailerLen, m_LastLayer, this);
  190|       |
  191|  41.1k|				trailerLayer->m_AllocationInfo.ownedByPacket = true;
  192|  41.1k|				m_LastLayer->setNextLayer(trailerLayer);
  193|  41.1k|				m_LastLayer = trailerLayer;
  194|  41.1k|			}
  195|   175k|		}
  196|   175k|	}
_ZN4pcpp6PacketC2EPNS_9RawPacketEbhNS_13OsiModelLayerE:
  199|   175k|	    : Packet(rawPacket, freeRawPacket, static_cast<ProtocolTypeFamily>(parseUntil), parseUntilLayer)
  200|   175k|	{}
_ZN4pcpp6PacketC2EPNS_9RawPacketEbjNS_13OsiModelLayerE:
  204|   175k|	{
  205|   175k|		m_FreeRawPacket = false;
  206|   175k|		m_RawPacket = nullptr;
  207|   175k|		m_FirstLayer = nullptr;
  208|   175k|		setRawPacket(rawPacket, freeRawPacket, parseUntil, parseUntilLayer);
  209|   175k|	}
_ZN4pcpp6Packet18destructPacketDataEv:
  237|  1.12M|	{
  238|  1.12M|		destroyAllLayers();
  239|       |
  240|  1.12M|		if (m_RawPacket != nullptr && m_FreeRawPacket)
  ------------------
  |  Branch (240:7): [True: 953k, False: 175k]
  |  Branch (240:33): [True: 778k, False: 175k]
  ------------------
  241|   778k|		{
  242|   778k|			delete m_RawPacket;
  243|   778k|		}
  244|  1.12M|	}
_ZN4pcpp6Packet16destroyAllLayersEv:
  247|  1.12M|	{
  248|  1.12M|		Layer* curLayer = m_FirstLayer;
  249|  5.64M|		while (curLayer != nullptr)
  ------------------
  |  Branch (249:10): [True: 4.51M, False: 1.12M]
  ------------------
  250|  4.51M|		{
  251|  4.51M|			Layer* nextLayer = curLayer->getNextLayer();
  252|  4.51M|			if (curLayer->m_AllocationInfo.ownedByPacket)
  ------------------
  |  Branch (252:8): [True: 4.51M, False: 0]
  ------------------
  253|  4.51M|			{
  254|  4.51M|				delete curLayer;
  255|  4.51M|			}
  256|       |
  257|  4.51M|			curLayer = nextLayer;
  258|  4.51M|		}
  259|       |
  260|  1.12M|		m_FirstLayer = nullptr;
  261|  1.12M|		m_LastLayer = nullptr;
  262|  1.12M|	}
_ZN4pcpp6Packet12copyDataFromERKS0_:
  274|   778k|	{
  275|   778k|		m_RawPacket = new RawPacket(*(other.m_RawPacket));
  276|   778k|		m_FreeRawPacket = true;
  277|   778k|		m_MaxPacketLen = other.m_MaxPacketLen;
  278|   778k|		m_FirstLayer = createFirstLayer(m_RawPacket->getLinkLayerType());
  279|   778k|		m_LastLayer = m_FirstLayer;
  280|   778k|		m_CanReallocateData = true;
  281|   778k|		Layer* curLayer = m_FirstLayer;
  282|  4.51M|		while (curLayer != nullptr)
  ------------------
  |  Branch (282:10): [True: 3.73M, False: 778k]
  ------------------
  283|  3.73M|		{
  284|  3.73M|			curLayer->parseNextLayer();
  285|  3.73M|			curLayer->m_AllocationInfo.ownedByPacket = true;
  286|  3.73M|			curLayer = curLayer->getNextLayer();
  287|  3.73M|			if (curLayer != nullptr)
  ------------------
  |  Branch (287:8): [True: 2.95M, False: 778k]
  ------------------
  288|  2.95M|				m_LastLayer = curLayer;
  289|  3.73M|		}
  290|   778k|	}
_ZN4pcpp6Packet17reallocateRawDataEm:
  293|  18.7k|	{
  294|  18.7k|		PCPP_LOG_DEBUG("Allocating packet to new size: " << newSize);
  ------------------
  |  |  425|  18.7k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  18.7k|	do                                                                                                                 \
  |  |  |  |  413|  18.7k|	{                                                                                                                  \
  |  |  |  |  414|  18.7k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  18.7k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  18.7k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 18.7k]
  |  |  |  |  ------------------
  |  |  |  |  416|  18.7k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  18.7k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 18.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  295|       |
  296|       |		// allocate a new array with size newSize
  297|  18.7k|		m_MaxPacketLen = newSize;
  298|       |
  299|       |		// set the new array to RawPacket
  300|  18.7k|		if (!m_RawPacket->reallocateData(m_MaxPacketLen))
  ------------------
  |  Branch (300:7): [True: 0, False: 18.7k]
  ------------------
  301|      0|		{
  302|      0|			PCPP_LOG_ERROR("Couldn't reallocate data of raw packet to " << m_MaxPacketLen << " bytes");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  303|      0|			return;
  304|      0|		}
  305|       |
  306|       |		// set all data pointers in layers to the new array address
  307|  18.7k|		const uint8_t* dataPtr = m_RawPacket->getRawData();
  308|       |
  309|   115k|		for (Layer* curLayer = m_FirstLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (309:40): [True: 96.2k, False: 18.7k]
  ------------------
  310|  96.2k|		{
  311|  96.2k|			PCPP_LOG_DEBUG("Setting new data pointer to layer '" << typeid(curLayer).name() << "'");
  ------------------
  |  |  425|  96.2k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  96.2k|	do                                                                                                                 \
  |  |  |  |  413|  96.2k|	{                                                                                                                  \
  |  |  |  |  414|  96.2k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  96.2k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  96.2k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 96.2k]
  |  |  |  |  ------------------
  |  |  |  |  416|  96.2k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  96.2k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 96.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  312|  96.2k|			curLayer->m_Data = const_cast<uint8_t*>(dataPtr);
  313|  96.2k|			dataPtr += curLayer->getHeaderLen();
  314|  96.2k|		}
  315|  18.7k|	}
_ZNK4pcpp6Packet14isPacketOfTypeEh:
  615|  13.2M|	{
  616|  74.7M|		for (Layer* curLayer = getFirstLayer(); curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (616:43): [True: 62.3M, False: 12.3M]
  ------------------
  617|  62.3M|		{
  618|  62.3M|			if (curLayer->getProtocol() == protocolType)
  ------------------
  |  Branch (618:8): [True: 864k, False: 61.4M]
  ------------------
  619|   864k|			{
  620|   864k|				return true;
  621|   864k|			}
  622|  62.3M|		}
  623|       |
  624|  12.3M|		return false;
  625|  13.2M|	}
_ZNK4pcpp6Packet14isPacketOfTypeEj:
  628|  3.11M|	{
  629|  3.11M|		Layer* curLayer = getFirstLayer();
  630|  17.5M|		while (curLayer != nullptr)
  ------------------
  |  Branch (630:10): [True: 14.5M, False: 2.99M]
  ------------------
  631|  14.5M|		{
  632|  14.5M|			if (curLayer->isMemberOfProtocolFamily(protocolTypeFamily))
  ------------------
  |  Branch (632:8): [True: 120k, False: 14.4M]
  ------------------
  633|   120k|			{
  634|   120k|				return true;
  635|   120k|			}
  636|  14.4M|			curLayer = curLayer->getNextLayer();
  637|  14.4M|		}
  638|       |
  639|  2.99M|		return false;
  640|  3.11M|	}
_ZN4pcpp6Packet11extendLayerEPNS_5LayerEim:
  643|  86.9k|	{
  644|  86.9k|		if (layer == nullptr)
  ------------------
  |  Branch (644:7): [True: 0, False: 86.9k]
  ------------------
  645|      0|		{
  646|      0|			PCPP_LOG_ERROR("Layer is nullptr");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  647|      0|			return false;
  648|      0|		}
  649|       |
  650|       |		// verify layer is allocated to this packet
  651|  86.9k|		if (!(layer->getAttachedPacket() == this))
  ------------------
  |  Branch (651:7): [True: 0, False: 86.9k]
  ------------------
  652|      0|		{
  653|      0|			PCPP_LOG_ERROR("Layer isn't allocated to this packet");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  654|      0|			return false;
  655|      0|		}
  656|       |
  657|  86.9k|		if (m_RawPacket->getRawDataLen() + numOfBytesToExtend > m_MaxPacketLen)
  ------------------
  |  Branch (657:7): [True: 18.7k, False: 68.2k]
  ------------------
  658|  18.7k|		{
  659|  18.7k|			if (!m_CanReallocateData)
  ------------------
  |  Branch (659:8): [True: 0, False: 18.7k]
  ------------------
  660|      0|			{
  661|      0|				PCPP_LOG_ERROR(
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  662|      0|				    "With the layer extended size the packet will exceed the size of the pre-allocated buffer: "
  663|      0|				    << m_MaxPacketLen << " bytes");
  664|      0|				return false;
  665|      0|			}
  666|       |			// reallocate to maximum value of: twice the max size of the packet or max size + new required length
  667|  18.7k|			if (m_RawPacket->getRawDataLen() + numOfBytesToExtend > m_MaxPacketLen * 2)
  ------------------
  |  Branch (667:8): [True: 0, False: 18.7k]
  ------------------
  668|      0|				reallocateRawData(m_RawPacket->getRawDataLen() + numOfBytesToExtend + m_MaxPacketLen);
  669|  18.7k|			else
  670|  18.7k|				reallocateRawData(m_MaxPacketLen * 2);
  671|  18.7k|		}
  672|       |
  673|       |		// insert layer data to raw packet
  674|  86.9k|		int indexToInsertData = layer->m_Data + offsetInLayer - m_RawPacket->getRawData();
  675|       |		// passing nullptr to insertData will move the data by numOfBytesToExtend
  676|       |		// no new data has to be created for this insertion which saves at least little time
  677|       |		// this move operation occurs on already allocated memory, which is backed by the reallocation if's provided
  678|       |		// above if offsetInLayer == layer->getHeaderLen() insertData will not move any data but only increase the
  679|       |		// packet size by numOfBytesToExtend
  680|  86.9k|		m_RawPacket->insertData(indexToInsertData, nullptr, numOfBytesToExtend);
  681|       |
  682|       |		// re-calculate all layers data ptr and data length
  683|  86.9k|		const uint8_t* dataPtr = m_RawPacket->getRawData();
  684|       |
  685|       |		// go over all layers from the first layer to the last layer and set the data ptr and data length for each layer
  686|  86.9k|		bool passedExtendedLayer = false;
  687|   651k|		for (Layer* curLayer = m_FirstLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (687:40): [True: 577k, False: 74.8k]
  ------------------
  688|   577k|		{
  689|   577k|			if (dataPtr > m_RawPacket->getRawData() + m_RawPacket->getRawDataLen())
  ------------------
  |  Branch (689:8): [True: 12.1k, False: 564k]
  ------------------
  690|  12.1k|			{
  691|  12.1k|				PCPP_LOG_ERROR("Layer data pointer exceeds packet's boundary");
  ------------------
  |  |  443|  12.1k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  12.1k|	do                                                                                                                 \
  |  |  |  |  413|  12.1k|	{                                                                                                                  \
  |  |  |  |  414|  12.1k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  12.1k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  12.1k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 12.1k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  12.1k|		{                                                                                                              \
  |  |  |  |  417|  12.1k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  12.1k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  12.1k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  12.1k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  12.1k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  12.1k|		}                                                                                                              \
  |  |  |  |  422|  12.1k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 12.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  692|  12.1k|				return false;
  693|  12.1k|			}
  694|       |
  695|       |			// set the data ptr
  696|   564k|			curLayer->m_Data = const_cast<uint8_t*>(dataPtr);
  697|       |
  698|       |			// set a flag if arrived to the layer being extended
  699|   564k|			if (curLayer->getPrevLayer() == layer)
  ------------------
  |  Branch (699:8): [True: 28.8k, False: 536k]
  ------------------
  700|  28.8k|				passedExtendedLayer = true;
  701|       |
  702|       |			// change the data length only for layers who come before the extended layer. For layers who come after,
  703|       |			// data length isn't changed
  704|   564k|			if (!passedExtendedLayer)
  ------------------
  |  Branch (704:8): [True: 434k, False: 130k]
  ------------------
  705|   434k|				curLayer->m_DataLen += numOfBytesToExtend;
  706|       |
  707|       |			// assuming header length of the layer that requested to be extended hasn't been enlarged yet
  708|   564k|			size_t headerLen = curLayer->getHeaderLen() + (curLayer == layer ? numOfBytesToExtend : 0);
  ------------------
  |  Branch (708:51): [True: 85.8k, False: 479k]
  ------------------
  709|   564k|			dataPtr += headerLen;
  710|   564k|		}
  711|       |
  712|  74.8k|		return true;
  713|  86.9k|	}
_ZN4pcpp6Packet12shortenLayerEPNS_5LayerEim:
  716|  78.6k|	{
  717|  78.6k|		if (layer == nullptr)
  ------------------
  |  Branch (717:7): [True: 0, False: 78.6k]
  ------------------
  718|      0|		{
  719|      0|			PCPP_LOG_ERROR("Layer is nullptr");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  720|      0|			return false;
  721|      0|		}
  722|       |
  723|       |		// verify layer is allocated to this packet
  724|  78.6k|		if (!(layer->getAttachedPacket() == this))
  ------------------
  |  Branch (724:7): [True: 0, False: 78.6k]
  ------------------
  725|      0|		{
  726|      0|			PCPP_LOG_ERROR("Layer isn't allocated to this packet");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  727|      0|			return false;
  728|      0|		}
  729|       |
  730|       |		// remove data from raw packet
  731|  78.6k|		int indexOfDataToRemove = layer->m_Data + offsetInLayer - m_RawPacket->getRawData();
  732|  78.6k|		if (!m_RawPacket->removeData(indexOfDataToRemove, numOfBytesToShorten))
  ------------------
  |  Branch (732:7): [True: 0, False: 78.6k]
  ------------------
  733|      0|		{
  734|      0|			PCPP_LOG_ERROR("Couldn't remove data from packet");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  735|      0|			return false;
  736|      0|		}
  737|       |
  738|       |		// re-calculate all layers data ptr and data length
  739|  78.6k|		const uint8_t* dataPtr = m_RawPacket->getRawData();
  740|       |
  741|       |		// go over all layers from the first layer to the last layer and set the data ptr and data length for each layer
  742|  78.6k|		bool passedExtendedLayer = false;
  743|   619k|		for (Layer* curLayer = m_FirstLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (743:40): [True: 541k, False: 77.6k]
  ------------------
  744|   541k|		{
  745|   541k|			if (dataPtr > m_RawPacket->getRawData() + m_RawPacket->getRawDataLen())
  ------------------
  |  Branch (745:8): [True: 1.06k, False: 540k]
  ------------------
  746|  1.06k|			{
  747|  1.06k|				PCPP_LOG_ERROR("Layer data pointer exceeds packet's boundary");
  ------------------
  |  |  443|  1.06k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  1.06k|	do                                                                                                                 \
  |  |  |  |  413|  1.06k|	{                                                                                                                  \
  |  |  |  |  414|  1.06k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.06k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.06k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.06k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.06k|		{                                                                                                              \
  |  |  |  |  417|  1.06k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.06k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.06k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.06k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.06k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.06k|		}                                                                                                              \
  |  |  |  |  422|  1.06k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.06k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  748|  1.06k|				return false;
  749|  1.06k|			}
  750|       |
  751|       |			// set the data ptr
  752|   540k|			curLayer->m_Data = const_cast<uint8_t*>(dataPtr);
  753|       |
  754|       |			// set a flag if arrived to the layer being shortened
  755|   540k|			if (curLayer->getPrevLayer() == layer)
  ------------------
  |  Branch (755:8): [True: 30.5k, False: 510k]
  ------------------
  756|  30.5k|				passedExtendedLayer = true;
  757|       |
  758|   540k|			size_t headerLen = curLayer->getHeaderLen();
  759|       |
  760|       |			// change the data length only for layers who come before the shortened layer. For layers who come after,
  761|       |			// data length isn't changed
  762|   540k|			if (!passedExtendedLayer)
  ------------------
  |  Branch (762:8): [True: 408k, False: 132k]
  ------------------
  763|   408k|				curLayer->m_DataLen -= numOfBytesToShorten;
  764|       |
  765|       |			// assuming header length of the layer that requested to be extended hasn't been enlarged yet
  766|   540k|			headerLen -= (curLayer == layer ? numOfBytesToShorten : 0);
  ------------------
  |  Branch (766:18): [True: 78.2k, False: 462k]
  ------------------
  767|   540k|			dataPtr += headerLen;
  768|   540k|		}
  769|       |
  770|  77.6k|		return true;
  771|  78.6k|	}
_ZN4pcpp6Packet22computeCalculateFieldsEv:
  774|   175k|	{
  775|       |		// calculated fields should be calculated from top layer to bottom layer
  776|   953k|		for (Layer* curLayer = m_LastLayer; curLayer != nullptr; curLayer = curLayer->getPrevLayer())
  ------------------
  |  Branch (776:39): [True: 778k, False: 175k]
  ------------------
  777|   778k|		{
  778|   778k|			curLayer->computeCalculateFields();
  779|   778k|		}
  780|   175k|	}
_ZNK4pcpp6Packet15printPacketInfoEb:
  783|   175k|	{
  784|   175k|		std::ostringstream dataLenStream;
  785|   175k|		dataLenStream << m_RawPacket->getRawDataLen();
  786|       |
  787|       |		// convert raw packet timestamp to printable format
  788|   175k|		timespec timestamp = m_RawPacket->getPacketTimeStamp();
  789|   175k|		time_t nowtime = timestamp.tv_sec;
  790|   175k|		struct tm* nowtm = nullptr;
  791|   175k|#if __cplusplus > 199711L && !defined(_WIN32)
  792|       |		// localtime_r and gmtime_r are thread-safe versions of localtime and gmtime,
  793|       |		// but they're defined only in newer compilers (>= C++0x).
  794|       |		// on Windows localtime and gmtime are already thread-safe so there is not need
  795|       |		// to use localtime_r and gmtime_r
  796|   175k|		struct tm nowtm_r;
  797|   175k|		if (timeAsLocalTime)
  ------------------
  |  Branch (797:7): [True: 175k, False: 0]
  ------------------
  798|   175k|			nowtm = localtime_r(&nowtime, &nowtm_r);
  799|      0|		else
  800|      0|			nowtm = gmtime_r(&nowtime, &nowtm_r);
  801|       |
  802|   175k|		if (nowtm != nullptr)
  ------------------
  |  Branch (802:7): [True: 175k, False: 0]
  ------------------
  803|   175k|			nowtm = &nowtm_r;
  804|       |#else
  805|       |		// on Window compilers localtime and gmtime are already thread safe.
  806|       |		// in old compilers (< C++0x) gmtime_r and localtime_r were not defined so we have to fall back to localtime and
  807|       |		// gmtime
  808|       |		if (timeAsLocalTime)
  809|       |			nowtm = localtime(&nowtime);
  810|       |		else
  811|       |			nowtm = gmtime(&nowtime);
  812|       |#endif
  813|       |
  814|   175k|		char buf[128];
  815|   175k|		if (nowtm != nullptr)
  ------------------
  |  Branch (815:7): [True: 175k, False: 0]
  ------------------
  816|   175k|		{
  817|   175k|			char tmbuf[64];
  818|   175k|			strftime(tmbuf, sizeof(tmbuf), "%Y-%m-%d %H:%M:%S", nowtm);
  819|   175k|			snprintf(buf, sizeof(buf), "%s.%09lu", tmbuf, (unsigned long)timestamp.tv_nsec);
  820|   175k|		}
  821|      0|		else
  822|      0|			snprintf(buf, sizeof(buf), "0000-00-00 00:00:00.000000000");
  823|       |
  824|   175k|		return "Packet length: " + dataLenStream.str() + " [Bytes], Arrival time: " + std::string(buf);
  825|   175k|	}
_ZN4pcpp6Packet16createFirstLayerENS_13LinkLayerTypeE:
  828|   953k|	{
  829|   953k|		size_t rawDataLen = (size_t)m_RawPacket->getRawDataLen();
  830|   953k|		if (rawDataLen == 0)
  ------------------
  |  Branch (830:7): [True: 165, False: 953k]
  ------------------
  831|    165|			return nullptr;
  832|       |
  833|   953k|		const uint8_t* rawData = m_RawPacket->getRawData();
  834|       |
  835|   953k|		switch (linkType)
  836|   953k|		{
  837|   809k|		case LinkLayerType::LINKTYPE_ETHERNET:
  ------------------
  |  Branch (837:3): [True: 809k, False: 143k]
  ------------------
  838|   809k|		{
  839|   809k|			if (EthLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (839:8): [True: 806k, False: 3.20k]
  ------------------
  840|   806k|			{
  841|   806k|				return new EthLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  842|   806k|			}
  843|  3.20k|			if (EthDot3Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (843:8): [True: 3.19k, False: 14]
  ------------------
  844|  3.19k|			{
  845|  3.19k|				return new EthDot3Layer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  846|  3.19k|			}
  847|     14|			break;
  848|  3.20k|		}
  849|   131k|		case LinkLayerType::LINKTYPE_LINUX_SLL:
  ------------------
  |  Branch (849:3): [True: 131k, False: 821k]
  ------------------
  850|   131k|		{
  851|   131k|			return new SllLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  852|  3.20k|		}
  853|      0|		case LinkLayerType::LINKTYPE_LINUX_SLL2:
  ------------------
  |  Branch (853:3): [True: 0, False: 953k]
  ------------------
  854|      0|		{
  855|      0|			if (Sll2Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (855:8): [True: 0, False: 0]
  ------------------
  856|      0|			{
  857|      0|				return new Sll2Layer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  858|      0|			}
  859|      0|			break;
  860|      0|		}
  861|  6.29k|		case LinkLayerType::LINKTYPE_NULL:
  ------------------
  |  Branch (861:3): [True: 6.29k, False: 946k]
  ------------------
  862|  6.29k|		{
  863|  6.29k|			if (NullLoopbackLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (863:8): [True: 3.78k, False: 2.51k]
  ------------------
  864|  3.78k|			{
  865|  3.78k|				return new NullLoopbackLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  866|  3.78k|			}
  867|  2.51k|			break;
  868|  6.29k|		}
  869|  2.51k|		case LinkLayerType::LINKTYPE_RAW:
  ------------------
  |  Branch (869:3): [True: 888, False: 952k]
  ------------------
  870|    920|		case LinkLayerType::LINKTYPE_DLT_RAW1:
  ------------------
  |  Branch (870:3): [True: 32, False: 953k]
  ------------------
  871|    952|		case LinkLayerType::LINKTYPE_DLT_RAW2:
  ------------------
  |  Branch (871:3): [True: 32, False: 953k]
  ------------------
  872|    952|		{
  873|    952|			uint8_t ipVer = rawData[0] & 0xf0;
  874|    952|			if (ipVer == 0x40 && IPv4Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (874:8): [True: 908, False: 44]
  |  Branch (874:25): [True: 876, False: 32]
  ------------------
  875|    876|			{
  876|    876|				return new IPv4Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  877|    876|			}
  878|     76|			if (ipVer == 0x60 && IPv6Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (878:8): [True: 0, False: 76]
  |  Branch (878:25): [True: 0, False: 0]
  ------------------
  879|      0|			{
  880|      0|				return new IPv6Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  881|      0|			}
  882|     76|			break;
  883|     76|		}
  884|    128|		case LinkLayerType::LINKTYPE_IPV4:
  ------------------
  |  Branch (884:3): [True: 128, False: 953k]
  ------------------
  885|    128|		{
  886|    128|			if (IPv4Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (886:8): [True: 0, False: 128]
  ------------------
  887|      0|			{
  888|      0|				return new IPv4Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  889|      0|			}
  890|    128|			break;
  891|    128|		}
  892|    160|		case LinkLayerType::LINKTYPE_IPV6:
  ------------------
  |  Branch (892:3): [True: 160, False: 953k]
  ------------------
  893|    160|		{
  894|    160|			if (IPv6Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (894:8): [True: 0, False: 160]
  ------------------
  895|      0|			{
  896|      0|				return new IPv6Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  897|      0|			}
  898|    160|			break;
  899|    160|		}
  900|  1.94k|		case LinkLayerType::LINKTYPE_NFLOG:
  ------------------
  |  Branch (900:3): [True: 1.94k, False: 951k]
  ------------------
  901|  1.94k|		{
  902|  1.94k|			if (NflogLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (902:8): [True: 1.82k, False: 128]
  ------------------
  903|  1.82k|			{
  904|  1.82k|				return new NflogLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  905|  1.82k|			}
  906|    128|			break;
  907|  1.94k|		}
  908|    327|		case LinkLayerType::LINKTYPE_C_HDLC:
  ------------------
  |  Branch (908:3): [True: 327, False: 952k]
  ------------------
  909|    327|		{
  910|    327|			if (CiscoHdlcLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (910:8): [True: 327, False: 0]
  ------------------
  911|    327|			{
  912|    327|				return new CiscoHdlcLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  913|    327|			}
  914|      0|			break;
  915|    327|		}
  916|  2.80k|		default:
  ------------------
  |  Branch (916:3): [True: 2.80k, False: 950k]
  ------------------
  917|       |			// For all other link types, we don't have a specific layer. Just break and create a PayloadLayer
  918|  2.80k|			break;
  919|   953k|		}
  920|       |
  921|       |		// unknown link type
  922|  5.82k|		return new PayloadLayer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  923|   953k|	}
_ZNK4pcpp6Packet8toStringEb:
  926|   175k|	{
  927|   175k|		std::vector<std::string> stringList;
  928|   175k|		toStringList(stringList, timeAsLocalTime);
  929|   175k|		return std::accumulate(stringList.begin(), stringList.end(), std::string(),
  930|   175k|		                       [](std::string a, const std::string& b) { return std::move(a) + b + '\n'; });
  931|   175k|	}
_ZNK4pcpp6Packet12toStringListERNSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEEb:
  934|   175k|	{
  935|   175k|		result.clear();
  936|   175k|		result.push_back(printPacketInfo(timeAsLocalTime));
  937|       |
  938|   953k|		for (Layer* curLayer = m_FirstLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (938:40): [True: 778k, False: 175k]
  ------------------
  939|   778k|		{
  940|   778k|			result.push_back(curLayer->toString());
  941|   778k|		}
  942|   175k|	}
Packet.cpp:_ZZNK4pcpp6Packet8toStringEbENK3$_0clENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKS8_:
  930|   953k|		                       [](std::string a, const std::string& b) { return std::move(a) + b + '\n'; });

_ZNK4pcpp18PacketTrailerLayer8toStringEv:
   14|  82.2k|	{
   15|  82.2k|		std::ostringstream dataLenStream;
   16|  82.2k|		dataLenStream << m_DataLen;
   17|       |
   18|  82.2k|		std::string trailerStr = byteArrayToHexString(m_Data, m_DataLen, 15);
   19|       |
   20|  82.2k|		if (m_DataLen > 15)
  ------------------
  |  Branch (20:7): [True: 14.1k, False: 68.1k]
  ------------------
   21|  14.1k|			trailerStr += "...";
   22|       |
   23|  82.2k|		return "Packet Trailer, Data: " + trailerStr + ", Length: " + dataLenStream.str() + " [Bytes]";
   24|  82.2k|	}

_ZN4pcpp15computeChecksumEPNS_12ScalarBufferItEEm:
   13|   306k|	{
   14|   306k|		uint32_t sum = 0;
   15|   759k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (15:22): [True: 452k, False: 306k]
  ------------------
   16|   452k|		{
   17|   452k|			uint32_t localSum = 0;
   18|       |
   19|       |			// vec len is in bytes
   20|  17.2M|			for (size_t j = 0; j < vec[i].len / 2; j++)
  ------------------
  |  Branch (20:23): [True: 16.7M, False: 452k]
  ------------------
   21|  16.7M|			{
   22|  16.7M|				PCPP_LOG_DEBUG("Value to add = 0x" << std::uppercase << std::hex << vec[i].buffer[j]);
  ------------------
  |  |  425|  16.7M|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  16.7M|	do                                                                                                                 \
  |  |  |  |  413|  16.7M|	{                                                                                                                  \
  |  |  |  |  414|  16.7M|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  16.7M|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|  16.7M|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 16.7M]
  |  |  |  |  ------------------
  |  |  |  |  416|  16.7M|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  16.7M|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 16.7M]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   23|  16.7M|				localSum += vec[i].buffer[j];
   24|  16.7M|			}
   25|   452k|			PCPP_LOG_DEBUG("Local sum = " << localSum << ", 0x" << std::uppercase << std::hex << localSum);
  ------------------
  |  |  425|   452k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|   452k|	do                                                                                                                 \
  |  |  |  |  413|   452k|	{                                                                                                                  \
  |  |  |  |  414|   452k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|   452k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   452k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 452k]
  |  |  |  |  ------------------
  |  |  |  |  416|   452k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|   452k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 452k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   26|       |
   27|       |			// check if there is one byte left
   28|   452k|			if (vec[i].len % 2)
  ------------------
  |  Branch (28:8): [True: 48.7k, False: 404k]
  ------------------
   29|  48.7k|			{
   30|       |				// access to the last byte using an uint8_t pointer
   31|  48.7k|				uint8_t* vecBytes = reinterpret_cast<uint8_t*>(vec[i].buffer);
   32|  48.7k|				uint8_t lastByte = vecBytes[vec[i].len - 1];
   33|  48.7k|				PCPP_LOG_DEBUG("1 byte left, adding value: 0x" << std::uppercase << std::hex << lastByte);
  ------------------
  |  |  425|  48.7k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  48.7k|	do                                                                                                                 \
  |  |  |  |  413|  48.7k|	{                                                                                                                  \
  |  |  |  |  414|  48.7k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  48.7k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|  48.7k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 48.7k]
  |  |  |  |  ------------------
  |  |  |  |  416|  48.7k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  48.7k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 48.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   34|       |				// We have read the latest byte manually but this byte should be properly interpreted
   35|       |				// as a 0xFF on LE and a 0xFF00 on BE to have a proper checksum computation
   36|  48.7k|				localSum += be16toh(lastByte << 8);
   37|       |
   38|  48.7k|				PCPP_LOG_DEBUG("Local sum = " << localSum << ", 0x" << std::uppercase << std::hex << localSum);
  ------------------
  |  |  425|  48.7k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  48.7k|	do                                                                                                                 \
  |  |  |  |  413|  48.7k|	{                                                                                                                  \
  |  |  |  |  414|  48.7k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  48.7k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|  48.7k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 48.7k]
  |  |  |  |  ------------------
  |  |  |  |  416|  48.7k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  48.7k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 48.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   39|  48.7k|			}
   40|       |
   41|       |			// carry count is added to the sum
   42|   886k|			while (localSum >> 16)
  ------------------
  |  Branch (42:11): [True: 433k, False: 452k]
  ------------------
   43|   433k|			{
   44|   433k|				localSum = (localSum & 0xffff) + (localSum >> 16);
   45|   433k|			}
   46|   452k|			PCPP_LOG_DEBUG("Local sum = " << localSum << ", 0x" << std::uppercase << std::hex << localSum);
  ------------------
  |  |  425|   452k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|   452k|	do                                                                                                                 \
  |  |  |  |  413|   452k|	{                                                                                                                  \
  |  |  |  |  414|   452k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|   452k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   452k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 452k]
  |  |  |  |  ------------------
  |  |  |  |  416|   452k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|   452k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 452k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   47|   452k|			sum += localSum;
   48|   452k|		}
   49|       |
   50|   376k|		while (sum >> 16)
  ------------------
  |  Branch (50:10): [True: 70.4k, False: 306k]
  ------------------
   51|  70.4k|		{
   52|  70.4k|			sum = (sum & 0xffff) + (sum >> 16);
   53|  70.4k|		}
   54|   306k|		PCPP_LOG_DEBUG("Sum before invert = " << sum << ", 0x" << std::uppercase << std::hex << sum);
  ------------------
  |  |  425|   306k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|   306k|	do                                                                                                                 \
  |  |  |  |  413|   306k|	{                                                                                                                  \
  |  |  |  |  414|   306k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|   306k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   306k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 306k]
  |  |  |  |  ------------------
  |  |  |  |  416|   306k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|   306k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 306k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   55|       |
   56|       |		// To obtain the checksum we take the ones' complement of this result
   57|   306k|		uint16_t result = sum;
   58|   306k|		result = ~result;
   59|       |
   60|   306k|		PCPP_LOG_DEBUG("Calculated checksum = " << sum << ", 0x" << std::uppercase << std::hex << result);
  ------------------
  |  |  425|   306k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|   306k|	do                                                                                                                 \
  |  |  |  |  413|   306k|	{                                                                                                                  \
  |  |  |  |  414|   306k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|   306k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   306k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 306k]
  |  |  |  |  ------------------
  |  |  |  |  416|   306k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|   306k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 306k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   61|       |
   62|       |		// We return the result in BigEndian byte order
   63|       |		return htobe16(result);
   64|   306k|	}
_ZN4pcpp24computePseudoHdrChecksumEPhmNS_9IPAddress11AddressTypeEhS1_S1_:
   68|   146k|	{
   69|   146k|		PCPP_LOG_DEBUG("Compute pseudo header checksum.\n DataLen = " << dataLen << "IPAddrType = " << ipAddrType
  ------------------
  |  |  425|   146k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|   146k|	do                                                                                                                 \
  |  |  |  |  413|   146k|	{                                                                                                                  \
  |  |  |  |  414|   146k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|   146k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   146k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 146k]
  |  |  |  |  ------------------
  |  |  |  |  416|   146k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|   146k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 146k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   70|   146k|		                                                              << "ProtocolType = " << protocolType << "SrcIP = "
   71|   146k|		                                                              << srcIPAddress << "DstIP = " << dstIPAddress);
   72|       |
   73|   146k|		uint16_t checksumRes = 0;
   74|   146k|		ScalarBuffer<uint16_t> vec[2];
   75|   146k|		vec[0].buffer = reinterpret_cast<uint16_t*>(dataPtr);
   76|   146k|		vec[0].len = dataLen;
   77|       |
   78|   146k|		if (ipAddrType == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (78:7): [True: 123k, False: 22.4k]
  ------------------
   79|   123k|		{
   80|   123k|			uint32_t srcIP = srcIPAddress.getIPv4().toInt();
   81|   123k|			uint32_t dstIP = dstIPAddress.getIPv4().toInt();
   82|   123k|			uint16_t pseudoHeader[6];
   83|   123k|			pseudoHeader[0] = srcIP >> 16;
   84|   123k|			pseudoHeader[1] = srcIP & 0xFFFF;
   85|   123k|			pseudoHeader[2] = dstIP >> 16;
   86|   123k|			pseudoHeader[3] = dstIP & 0xFFFF;
   87|   123k|			pseudoHeader[4] = 0xffff & htobe16(dataLen);
   88|   123k|			pseudoHeader[5] = htobe16(0x00ff & protocolType);
   89|   123k|			vec[1].buffer = pseudoHeader;
   90|   123k|			vec[1].len = 12;
   91|   123k|			checksumRes = computeChecksum(vec, 2);
   92|   123k|		}
   93|  22.4k|		else if (ipAddrType == IPAddress::IPv6AddressType)
  ------------------
  |  Branch (93:12): [True: 22.4k, False: 0]
  ------------------
   94|  22.4k|		{
   95|  22.4k|			uint16_t pseudoHeader[18];
   96|  22.4k|			srcIPAddress.getIPv6().copyTo(reinterpret_cast<uint8_t*>(pseudoHeader));
   97|  22.4k|			dstIPAddress.getIPv6().copyTo(reinterpret_cast<uint8_t*>(pseudoHeader + 8));
   98|  22.4k|			pseudoHeader[16] = 0xffff & htobe16(dataLen);
   99|  22.4k|			pseudoHeader[17] = htobe16(0x00ff & protocolType);
  100|  22.4k|			vec[1].buffer = pseudoHeader;
  101|  22.4k|			vec[1].len = 36;
  102|  22.4k|			checksumRes = computeChecksum(vec, 2);
  103|  22.4k|		}
  104|      0|		else
  105|      0|		{
  106|      0|			PCPP_LOG_ERROR("Compute pseudo header checksum failed, for unknown IPAddrType = " << ipAddrType);
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  107|      0|		}
  108|       |
  109|   146k|		PCPP_LOG_DEBUG("Pseudo header checksum = 0xX" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|   146k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|   146k|	do                                                                                                                 \
  |  |  |  |  413|   146k|	{                                                                                                                  \
  |  |  |  |  414|   146k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|   146k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   146k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 146k]
  |  |  |  |  ------------------
  |  |  |  |  416|   146k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|   146k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 146k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  110|       |
  111|   146k|		return checksumRes;
  112|   146k|	}

_ZNK4pcpp12PayloadLayer8toStringEv:
   55|   102k|	{
   56|   102k|		std::ostringstream dataLenStream;
   57|   102k|		dataLenStream << m_DataLen;
   58|       |
   59|   102k|		return "Payload Layer, Data length: " + dataLenStream.str() + " [Bytes]";
   60|   102k|	}

_ZN4pcpp15PostgresMessage28parsePostgresFrontendMessageEPKhm:
  521|      1|	{
  522|      1|		if (data == nullptr || dataLen < 1)
  ------------------
  |  Branch (522:7): [True: 0, False: 1]
  |  Branch (522:26): [True: 0, False: 1]
  ------------------
  523|      0|		{
  524|      0|			return nullptr;
  525|      0|		}
  526|       |
  527|      1|		uint8_t messageTypeValue = data[0];
  528|      1|		if (messageTypeValue == PostgresMessage_0)
  ------------------
  |  Branch (528:7): [True: 1, False: 0]
  ------------------
  529|      1|		{
  530|      1|			if (dataLen < 8)
  ------------------
  |  Branch (530:8): [True: 0, False: 1]
  ------------------
  531|      0|			{
  532|      0|				return std::unique_ptr<PostgresMessage>(
  533|      0|				    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  534|      0|			}
  535|       |
  536|      1|			auto messageLength = be32toh(*reinterpret_cast<const uint32_t*>(data));
  537|      1|			if (messageLength > dataLen)
  ------------------
  |  Branch (537:8): [True: 0, False: 1]
  ------------------
  538|      0|			{
  539|      0|				return std::unique_ptr<PostgresMessage>(
  540|      0|				    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  541|      0|			}
  542|       |
  543|      1|			auto messageTag = be32toh(*reinterpret_cast<const uint32_t*>(data + 4));
  544|      1|			auto messageType = PostgresMessageType::Frontend_Unknown;
  545|       |
  546|      1|			switch (messageTag)
  547|      1|			{
  548|      0|			case PostgresFrontendTag_StartupMessage:
  ------------------
  |  Branch (548:4): [True: 0, False: 1]
  ------------------
  549|      0|			{
  550|      0|				return std::make_unique<PostgresStartupMessage>(data, messageLength);
  551|      0|			}
  552|      0|			case PostgresFrontendTag_SSLRequest:
  ------------------
  |  Branch (552:4): [True: 0, False: 1]
  ------------------
  553|      0|			{
  554|      0|				messageType = PostgresMessageType::Frontend_SSLRequest;
  555|      0|				break;
  556|      0|			}
  557|      0|			case PostgresFrontendTag_CancelRequest:
  ------------------
  |  Branch (557:4): [True: 0, False: 1]
  ------------------
  558|      0|			{
  559|      0|				messageType = PostgresMessageType::Frontend_CancelRequest;
  560|      0|				break;
  561|      0|			}
  562|      1|			case PostgresFrontendTag_GSSENCRequest:
  ------------------
  |  Branch (562:4): [True: 1, False: 0]
  ------------------
  563|      1|			{
  564|      1|				messageType = PostgresMessageType::Frontend_GSSENCRequest;
  565|      1|				break;
  566|      0|			}
  567|      0|			default:
  ------------------
  |  Branch (567:4): [True: 0, False: 1]
  ------------------
  568|      0|			{
  569|      0|				break;
  570|      0|			}
  571|      1|			}
  572|       |
  573|      1|			return std::unique_ptr<PostgresMessage>(new PostgresMessage(data, messageLength, messageType));
  574|      1|		}
  575|       |
  576|      0|		if (dataLen < 5)
  ------------------
  |  Branch (576:7): [True: 0, False: 0]
  ------------------
  577|      0|		{
  578|      0|			return std::unique_ptr<PostgresMessage>(
  579|      0|			    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  580|      0|		}
  581|       |
  582|      0|		auto messageLength = be32toh(*reinterpret_cast<const uint32_t*>(data + 1));
  583|      0|		if (dataLen < messageLength + 1)
  ------------------
  |  Branch (583:7): [True: 0, False: 0]
  ------------------
  584|      0|		{
  585|      0|			return std::unique_ptr<PostgresMessage>(
  586|      0|			    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  587|      0|		}
  588|       |
  589|      0|		auto messageType = PostgresMessageType::Frontend_Unknown;
  590|      0|		switch (messageTypeValue)
  591|      0|		{
  592|      0|		case PostgresFrontendMessage_Q:
  ------------------
  |  Branch (592:3): [True: 0, False: 0]
  ------------------
  593|      0|		{
  594|      0|			return std::make_unique<PostgresQueryMessage>(data,
  595|      0|			                                              (std::min)(static_cast<size_t>(messageLength) + 1, dataLen));
  596|      0|		}
  597|      0|		case PostgresFrontendMessage_P:
  ------------------
  |  Branch (597:3): [True: 0, False: 0]
  ------------------
  598|      0|		{
  599|      0|			messageType = PostgresMessageType::Frontend_Parse;
  600|      0|			break;
  601|      0|		}
  602|      0|		case PostgresFrontendMessage_B:
  ------------------
  |  Branch (602:3): [True: 0, False: 0]
  ------------------
  603|      0|		{
  604|      0|			messageType = PostgresMessageType::Frontend_Bind;
  605|      0|			break;
  606|      0|		}
  607|      0|		case PostgresFrontendMessage_E:
  ------------------
  |  Branch (607:3): [True: 0, False: 0]
  ------------------
  608|      0|		{
  609|      0|			messageType = PostgresMessageType::Frontend_Execute;
  610|      0|			break;
  611|      0|		}
  612|      0|		case PostgresFrontendMessage_C:
  ------------------
  |  Branch (612:3): [True: 0, False: 0]
  ------------------
  613|      0|		{
  614|      0|			messageType = PostgresMessageType::Frontend_Close;
  615|      0|			break;
  616|      0|		}
  617|      0|		case PostgresFrontendMessage_D:
  ------------------
  |  Branch (617:3): [True: 0, False: 0]
  ------------------
  618|      0|		{
  619|      0|			messageType = PostgresMessageType::Frontend_Describe;
  620|      0|			break;
  621|      0|		}
  622|      0|		case PostgresFrontendMessage_F:
  ------------------
  |  Branch (622:3): [True: 0, False: 0]
  ------------------
  623|      0|		{
  624|      0|			messageType = PostgresMessageType::Frontend_FunctionCall;
  625|      0|			break;
  626|      0|		}
  627|      0|		case PostgresFrontendMessage_H:
  ------------------
  |  Branch (627:3): [True: 0, False: 0]
  ------------------
  628|      0|		{
  629|      0|			messageType = PostgresMessageType::Frontend_Flush;
  630|      0|			break;
  631|      0|		}
  632|      0|		case PostgresFrontendMessage_S:
  ------------------
  |  Branch (632:3): [True: 0, False: 0]
  ------------------
  633|      0|		{
  634|      0|			messageType = PostgresMessageType::Frontend_Sync;
  635|      0|			break;
  636|      0|		}
  637|      0|		case PostgresFrontendMessage_d:
  ------------------
  |  Branch (637:3): [True: 0, False: 0]
  ------------------
  638|      0|		{
  639|      0|			messageType = PostgresMessageType::Frontend_CopyData;
  640|      0|			break;
  641|      0|		}
  642|      0|		case PostgresFrontendMessage_c:
  ------------------
  |  Branch (642:3): [True: 0, False: 0]
  ------------------
  643|      0|		{
  644|      0|			messageType = PostgresMessageType::Frontend_CopyDone;
  645|      0|			break;
  646|      0|		}
  647|      0|		case PostgresFrontendMessage_f:
  ------------------
  |  Branch (647:3): [True: 0, False: 0]
  ------------------
  648|      0|		{
  649|      0|			messageType = PostgresMessageType::Frontend_CopyFail;
  650|      0|			break;
  651|      0|		}
  652|      0|		case PostgresFrontendMessage_X:
  ------------------
  |  Branch (652:3): [True: 0, False: 0]
  ------------------
  653|      0|		{
  654|      0|			messageType = PostgresMessageType::Frontend_Terminate;
  655|      0|			break;
  656|      0|		}
  657|      0|		default:
  ------------------
  |  Branch (657:3): [True: 0, False: 0]
  ------------------
  658|      0|		{
  659|      0|			break;
  660|      0|		}
  661|      0|		}
  662|       |
  663|      0|		return std::unique_ptr<PostgresMessage>(new PostgresMessage(data, messageLength + 1, messageType));
  664|      0|	}
_ZN4pcpp13PostgresLayer29parsePostgresFrontendMessagesEPhmPNS_5LayerEPNS_6PacketE:
 1016|      5|	{
 1017|      5|		return new PostgresLayer(data, dataLen, prevLayer, packet, PostgresMessageOrigin::Frontend);
 1018|      5|	}
_ZNK4pcpp13PostgresLayer19getPostgresMessagesEv:
 1021|      2|	{
 1022|      2|		if (!m_MessagesInitialized)
  ------------------
  |  Branch (1022:7): [True: 1, False: 1]
  ------------------
 1023|      1|		{
 1024|      1|			auto parseFunc = (m_MessageOrigin == PostgresMessageOrigin::Backend)
  ------------------
  |  Branch (1024:21): [True: 0, False: 1]
  ------------------
 1025|      1|			                     ? &PostgresMessage::parsePostgresBackendMessage
 1026|      1|			                     : &PostgresMessage::parsePostgresFrontendMessage;
 1027|       |
 1028|      1|			auto data = m_Data;
 1029|      1|			auto dataLen = m_DataLen;
 1030|       |
 1031|      2|			while (dataLen > 0)
  ------------------
  |  Branch (1031:11): [True: 1, False: 1]
  ------------------
 1032|      1|			{
 1033|      1|				auto curMessage = parseFunc(data, dataLen);
 1034|      1|				if (curMessage == nullptr)
  ------------------
  |  Branch (1034:9): [True: 0, False: 1]
  ------------------
 1035|      0|				{
 1036|      0|					break;
 1037|      0|				}
 1038|       |
 1039|      1|				dataLen -= curMessage->getTotalMessageLength();
 1040|      1|				data += curMessage->getTotalMessageLength();
 1041|      1|				m_Messages.pushBack(std::move(curMessage));
 1042|      1|			}
 1043|       |
 1044|      1|			m_MessagesInitialized = true;
 1045|      1|		}
 1046|       |
 1047|      2|		return m_Messages;
 1048|      2|	}
_ZNK4pcpp13PostgresLayer8toStringEv:
 1061|      2|	{
 1062|      2|		const auto& messages = getPostgresMessages();
 1063|      2|		return std::string("PostgreSQL ") +
 1064|      2|		       (m_MessageOrigin == PostgresMessageOrigin::Frontend ? "Frontend" : "Backend") + " Layer, " +
  ------------------
  |  Branch (1064:11): [True: 2, False: 0]
  ------------------
 1065|      2|		       std::to_string(messages.size()) + " message(s)";
 1066|      2|	}

_ZN4pcpp11RadiusLayer22getRadiusMessageStringEh:
   93|  4.34k|	{
   94|  4.34k|		switch (radiusMessageCode)
   95|  4.34k|		{
   96|    924|		case 1:
  ------------------
  |  Branch (96:3): [True: 924, False: 3.41k]
  ------------------
   97|    924|			return "Access-Request";
   98|    412|		case 2:
  ------------------
  |  Branch (98:3): [True: 412, False: 3.93k]
  ------------------
   99|    412|			return "Access-Accept";
  100|  2.03k|		case 3:
  ------------------
  |  Branch (100:3): [True: 2.03k, False: 2.30k]
  ------------------
  101|  2.03k|			return "Access-Reject";
  102|    208|		case 4:
  ------------------
  |  Branch (102:3): [True: 208, False: 4.13k]
  ------------------
  103|    208|			return "Accounting-Request";
  104|    102|		case 5:
  ------------------
  |  Branch (104:3): [True: 102, False: 4.24k]
  ------------------
  105|    102|			return "Accounting-Response";
  106|    530|		case 11:
  ------------------
  |  Branch (106:3): [True: 530, False: 3.81k]
  ------------------
  107|    530|			return "Access-Challenge";
  108|      0|		case 12:
  ------------------
  |  Branch (108:3): [True: 0, False: 4.34k]
  ------------------
  109|      0|			return "Status-Server";
  110|      0|		case 13:
  ------------------
  |  Branch (110:3): [True: 0, False: 4.34k]
  ------------------
  111|      0|			return "Status-Client";
  112|      0|		case 40:
  ------------------
  |  Branch (112:3): [True: 0, False: 4.34k]
  ------------------
  113|      0|			return "Disconnect-Request";
  114|      0|		case 41:
  ------------------
  |  Branch (114:3): [True: 0, False: 4.34k]
  ------------------
  115|      0|			return "Disconnect-ACK";
  116|      0|		case 42:
  ------------------
  |  Branch (116:3): [True: 0, False: 4.34k]
  ------------------
  117|      0|			return "Disconnect-NAK";
  118|      0|		case 43:
  ------------------
  |  Branch (118:3): [True: 0, False: 4.34k]
  ------------------
  119|      0|			return "CoA-Request";
  120|      0|		case 44:
  ------------------
  |  Branch (120:3): [True: 0, False: 4.34k]
  ------------------
  121|      0|			return "CoA-ACK";
  122|      0|		case 45:
  ------------------
  |  Branch (122:3): [True: 0, False: 4.34k]
  ------------------
  123|      0|			return "CoA-NAK";
  124|     62|		case 255:
  ------------------
  |  Branch (124:3): [True: 62, False: 4.28k]
  ------------------
  125|     62|			return "Reserved";
  126|     66|		default:
  ------------------
  |  Branch (126:3): [True: 66, False: 4.27k]
  ------------------
  127|     66|			return "Unknown";
  128|  4.34k|		}
  129|  4.34k|	}
_ZNK4pcpp11RadiusLayer12getHeaderLenEv:
  132|  2.17k|	{
  133|  2.17k|		uint16_t len = be16toh(getRadiusHeader()->length);
  134|  2.17k|		if (len > m_DataLen)
  ------------------
  |  Branch (134:7): [True: 0, False: 2.17k]
  ------------------
  135|      0|			return m_DataLen;
  136|       |
  137|  2.17k|		return len;
  138|  2.17k|	}
_ZN4pcpp11RadiusLayer22computeCalculateFieldsEv:
  141|  2.17k|	{
  142|       |		getRadiusHeader()->length = htobe16(m_DataLen);
  143|  2.17k|	}
_ZNK4pcpp11RadiusLayer8toStringEv:
  146|  4.34k|	{
  147|  4.34k|		std::ostringstream str;
  148|  4.34k|		str << "RADIUS Layer, " << RadiusLayer::getRadiusMessageString(getRadiusHeader()->code) << "("
  149|  4.34k|		    << (int)getRadiusHeader()->code
  150|  4.34k|		    << "), "
  151|  4.34k|		       "Id="
  152|  4.34k|		    << (int)getRadiusHeader()->id << ", "
  153|  4.34k|		    << "Length=" << be16toh(getRadiusHeader()->length);
  154|       |
  155|  4.34k|		return str.str();
  156|  4.34k|	}
_ZN4pcpp11RadiusLayer11isDataValidEPKhm:
  239|  11.5k|	{
  240|  11.5k|		if (udpData != nullptr && udpDataLen >= sizeof(radius_header))
  ------------------
  |  Branch (240:7): [True: 11.5k, False: 0]
  |  Branch (240:29): [True: 11.2k, False: 258]
  ------------------
  241|  11.2k|		{
  242|  11.2k|			const radius_header* radHdr = reinterpret_cast<const radius_header*>(udpData);
  243|  11.2k|			size_t radLen = be16toh(radHdr->length);
  244|  11.2k|			return radLen >= sizeof(radius_header) && radLen <= udpDataLen;
  ------------------
  |  Branch (244:11): [True: 11.1k, False: 130]
  |  Branch (244:46): [True: 10.8k, False: 305]
  ------------------
  245|  11.2k|		}
  246|    258|		return false;
  247|  11.5k|	}

_ZN4pcpp9RawPacketD2Ev:
   22|   781k|	{
   23|   781k|		clear();
   24|   781k|	}
_ZN4pcpp9RawPacketC2ERKS0_:
   27|   778k|	{
   28|   778k|		m_RawData = nullptr;
   29|   778k|		copyDataFrom(other, true);
   30|   778k|	}
_ZN4pcpp9RawPacket12copyDataFromERKS0_b:
   50|   778k|	{
   51|   778k|		if (!other.m_RawPacketSet)
  ------------------
  |  Branch (51:7): [True: 0, False: 778k]
  ------------------
   52|      0|			return;
   53|       |
   54|   778k|		m_TimeStamp = other.m_TimeStamp;
   55|       |
   56|   778k|		if (allocateData)
  ------------------
  |  Branch (56:7): [True: 778k, False: 0]
  ------------------
   57|   778k|		{
   58|   778k|			m_OwnsRawData = true;
   59|   778k|			m_RawData = new uint8_t[other.m_RawDataLen];
   60|   778k|			m_RawDataLen = other.m_RawDataLen;
   61|   778k|		}
   62|       |
   63|   778k|		memcpy(m_RawData, other.m_RawData, other.m_RawDataLen);
   64|   778k|		m_LinkLayerType = other.m_LinkLayerType;
   65|   778k|		m_FrameLength = other.m_FrameLength;
   66|   778k|		m_RawPacketSet = true;
   67|   778k|	}
_ZN4pcpp9RawPacket10setRawDataEPKhib8timespecNS_13LinkLayerTypeEi:
   97|   175k|	{
   98|   175k|		return doSetRawData(pRawData, rawDataLen, takeOwnership, timestamp, layerType, frameLength);
   99|   175k|	}
_ZN4pcpp9RawPacket12doSetRawDataEPKhib8timespecNS_13LinkLayerTypeEi:
  103|   175k|	{
  104|   175k|		clear();
  105|       |
  106|   175k|		m_OwnsRawData = takeOwnership;
  107|   175k|		m_FrameLength = (frameLength == -1) ? rawDataLen : frameLength;
  ------------------
  |  Branch (107:19): [True: 483, False: 174k]
  ------------------
  108|   175k|		m_RawData = (uint8_t*)pRawData;
  109|   175k|		m_RawDataLen = rawDataLen;
  110|   175k|		m_TimeStamp = timestamp;
  111|   175k|		m_RawPacketSet = true;
  112|   175k|		m_LinkLayerType = layerType;
  113|   175k|		return true;
  114|   175k|	}
_ZN4pcpp9RawPacket5clearEv:
  123|   956k|	{
  124|   956k|		if (m_RawData != nullptr && m_OwnsRawData)
  ------------------
  |  Branch (124:7): [True: 953k, False: 3.41k]
  |  Branch (124:31): [True: 953k, False: 0]
  ------------------
  125|   953k|			delete[] m_RawData;
  126|       |
  127|   956k|		m_RawData = nullptr;
  128|   956k|		m_RawDataLen = 0;
  129|   956k|		m_FrameLength = 0;
  130|   956k|		m_RawPacketSet = false;
  131|   956k|	}
_ZN4pcpp9RawPacket10insertDataEiPKhm:
  141|  86.9k|	{
  142|  86.9k|		if (atIndex < 0 || atIndex > m_RawDataLen)
  ------------------
  |  Branch (142:7): [True: 0, False: 86.9k]
  |  Branch (142:22): [True: 0, False: 86.9k]
  ------------------
  143|      0|		{
  144|      0|			throw std::out_of_range("Insert index is out of raw packet bound. Inserts can only happen in range [0, " +
  145|      0|			                        std::to_string(m_RawDataLen) + ']');
  146|      0|		}
  147|       |
  148|       |		// memmove copies data as if there was an intermediate buffer in between - so it allows for copying processes on
  149|       |		// overlapping src/dest ptrs if insertData is called with atIndex == m_RawDataLen, then no data is being moved.
  150|       |		// The data of the raw packet is still extended by dataToInsertLen
  151|  86.9k|		memmove((uint8_t*)m_RawData + atIndex + dataToInsertLen, (uint8_t*)m_RawData + atIndex, m_RawDataLen - atIndex);
  152|       |
  153|  86.9k|		if (dataToInsert != nullptr)
  ------------------
  |  Branch (153:7): [True: 0, False: 86.9k]
  ------------------
  154|      0|		{
  155|       |			// insert data
  156|      0|			memcpy((uint8_t*)m_RawData + atIndex, dataToInsert, dataToInsertLen);
  157|      0|		}
  158|       |
  159|  86.9k|		m_RawDataLen += dataToInsertLen;
  160|  86.9k|		m_FrameLength = m_RawDataLen;
  161|  86.9k|	}
_ZN4pcpp9RawPacket14reallocateDataEm:
  164|  18.7k|	{
  165|  18.7k|		if ((int)newBufferLength == m_RawDataLen)
  ------------------
  |  Branch (165:7): [True: 0, False: 18.7k]
  ------------------
  166|      0|			return true;
  167|       |
  168|  18.7k|		if ((int)newBufferLength < m_RawDataLen)
  ------------------
  |  Branch (168:7): [True: 0, False: 18.7k]
  ------------------
  169|      0|		{
  170|      0|			PCPP_LOG_ERROR("Cannot reallocate raw packet to a smaller size. Current data length: "
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleRawPacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleRawPacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  171|      0|			               << m_RawDataLen << "; requested length: " << newBufferLength);
  172|      0|			return false;
  173|      0|		}
  174|       |
  175|  18.7k|		uint8_t* newBuffer = new uint8_t[newBufferLength];
  176|  18.7k|		memset(newBuffer, 0, newBufferLength);
  177|  18.7k|		memcpy(newBuffer, m_RawData, m_RawDataLen);
  178|  18.7k|		if (m_OwnsRawData)
  ------------------
  |  Branch (178:7): [True: 18.7k, False: 0]
  ------------------
  179|  18.7k|			delete[] m_RawData;
  180|       |
  181|  18.7k|		m_OwnsRawData = true;
  182|  18.7k|		m_RawData = newBuffer;
  183|       |
  184|  18.7k|		return true;
  185|  18.7k|	}
_ZN4pcpp9RawPacket10removeDataEim:
  188|  78.6k|	{
  189|  78.6k|		if (atIndex < 0 || atIndex + (int)numOfBytesToRemove > m_RawDataLen)
  ------------------
  |  Branch (189:7): [True: 0, False: 78.6k]
  |  Branch (189:22): [True: 0, False: 78.6k]
  ------------------
  190|      0|		{
  191|      0|			PCPP_LOG_ERROR("Remove section is out of raw packet bound. Removes can only happen in range [0, " +
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleRawPacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleRawPacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  192|      0|			               std::to_string(m_RawDataLen) + ')');
  193|      0|			return false;
  194|      0|		}
  195|       |
  196|  78.6k|		if (numOfBytesToRemove == 0)
  ------------------
  |  Branch (196:7): [True: 0, False: 78.6k]
  ------------------
  197|      0|			return true;
  198|       |
  199|       |		// only move data if we are removing data somewhere in the layer, not at the end of the last layer
  200|       |		// this is so that resizing of the last layer can occur fast by just reducing the fictional length of the packet
  201|       |		// (m_RawDataLen) by the given amount
  202|  78.6k|		if ((atIndex + (int)numOfBytesToRemove) != m_RawDataLen)
  ------------------
  |  Branch (202:7): [True: 50.3k, False: 28.3k]
  ------------------
  203|       |			// memmove copies data as if there was an intermediate buffer in between - so it allows for copying
  204|       |			// processes on overlapping src/dest ptrs
  205|  50.3k|			memmove((uint8_t*)m_RawData + atIndex, (uint8_t*)m_RawData + atIndex + numOfBytesToRemove,
  206|  50.3k|			        m_RawDataLen - (atIndex + numOfBytesToRemove));
  207|       |
  208|  78.6k|		m_RawDataLen -= numOfBytesToRemove;
  209|  78.6k|		m_FrameLength = m_RawDataLen;
  210|  78.6k|		return true;
  211|  78.6k|	}

_ZNK4pcpp11S7CommLayer8toStringEv:
   46|  3.77k|	{
   47|  3.77k|		std::ostringstream str;
   48|  3.77k|		str << "S7Comm Layer, ";
   49|       |
   50|  3.77k|		switch (getS7commHeader()->msgType)
   51|  3.77k|		{
   52|  1.48k|		case 0x01:
  ------------------
  |  Branch (52:3): [True: 1.48k, False: 2.28k]
  ------------------
   53|  1.48k|			str << "Job Request";
   54|  1.48k|			break;
   55|     10|		case 0x02:
  ------------------
  |  Branch (55:3): [True: 10, False: 3.76k]
  ------------------
   56|     10|			str << "Ack";
   57|     10|			break;
   58|  1.18k|		case 0x03:
  ------------------
  |  Branch (58:3): [True: 1.18k, False: 2.58k]
  ------------------
   59|  1.18k|			str << "Ack-Data";
   60|  1.18k|			break;
   61|    968|		case 0x07:
  ------------------
  |  Branch (61:3): [True: 968, False: 2.80k]
  ------------------
   62|    968|			str << "Userdata";
   63|    968|			break;
   64|    120|		default:
  ------------------
  |  Branch (64:3): [True: 120, False: 3.65k]
  ------------------
   65|    120|			str << "Unknown message";
   66|  3.77k|		}
   67|       |
   68|  3.77k|		return str.str();
   69|  3.77k|	}
_ZN4pcpp11S7CommLayer11isDataValidEPKhm:
   72|  14.5k|	{
   73|  14.5k|		if (!data || dataSize < sizeof(s7commhdr))
  ------------------
  |  Branch (73:7): [True: 0, False: 14.5k]
  |  Branch (73:16): [True: 216, False: 14.3k]
  ------------------
   74|    216|			return false;
   75|       |
   76|  14.3k|		return data[0] == 0x32;
   77|  14.5k|	}

_ZN4pcpp8SSHLayer16createSSHMessageEPhmPNS_5LayerEPNS_6PacketE:
   19|  16.7k|	{
   20|  16.7k|		SSHIdentificationMessage* sshIdnetMsg = SSHIdentificationMessage::tryParse(data, dataLen, prevLayer, packet);
   21|  16.7k|		if (sshIdnetMsg != nullptr)
  ------------------
  |  Branch (21:7): [True: 1.71k, False: 15.0k]
  ------------------
   22|  1.71k|			return sshIdnetMsg;
   23|       |
   24|  15.0k|		SSHHandshakeMessage* sshHandshakeMessage = SSHHandshakeMessage::tryParse(data, dataLen, prevLayer, packet);
   25|  15.0k|		if (sshHandshakeMessage != nullptr)
  ------------------
  |  Branch (25:7): [True: 8.33k, False: 6.72k]
  ------------------
   26|  8.33k|			return sshHandshakeMessage;
   27|       |
   28|  6.72k|		return new SSHEncryptedMessage(data, dataLen, prevLayer, packet);
   29|  15.0k|	}
_ZN4pcpp8SSHLayer14parseNextLayerEv:
   32|  16.7k|	{
   33|  16.7k|		size_t headerLen = getHeaderLen();
   34|  16.7k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (34:7): [True: 14.5k, False: 2.22k]
  ------------------
   35|  14.5k|			return;
   36|       |
   37|  2.22k|		constructNextLayerFromFactory(SSHLayer::createSSHMessage, m_Data + headerLen, m_DataLen - headerLen);
   38|  2.22k|	}
_ZN4pcpp24SSHIdentificationMessage8tryParseEPhmPNS_5LayerEPNS_6PacketE:
   46|  16.7k|	{
   47|       |		// Payload must be at least as long as the string "SSH-"
   48|  16.7k|		if (dataLen < 5)
  ------------------
  |  Branch (48:7): [True: 1.71k, False: 15.0k]
  ------------------
   49|  1.71k|			return nullptr;
   50|       |
   51|       |		// Payload must begin with "SSH-" and end with "\n"
   52|  15.0k|		if (data[0] == 0x53 && data[1] == 0x53 && data[2] == 0x48 && data[3] == 0x2d && data[dataLen - 1] == 0x0a)
  ------------------
  |  Branch (52:7): [True: 2.17k, False: 12.8k]
  |  Branch (52:26): [True: 2.17k, False: 0]
  |  Branch (52:45): [True: 2.16k, False: 5]
  |  Branch (52:64): [True: 2.16k, False: 0]
  |  Branch (52:83): [True: 1.71k, False: 455]
  ------------------
   53|  1.71k|			return new SSHIdentificationMessage(data, dataLen, prevLayer, packet);
   54|       |
   55|  13.3k|		return nullptr;
   56|  15.0k|	}
_ZNK4pcpp24SSHIdentificationMessage8toStringEv:
   66|    684|	{
   67|    684|		return std::string(SSH_LAYER_BASE_STRING) + ", " + "Identification message";
  ------------------
  |  |   12|    684|#define SSH_LAYER_BASE_STRING "SSH Layer"
  ------------------
   68|    684|	}
_ZNK4pcpp19SSHHandshakeMessage14getMessageTypeEv:
   75|  3.04k|	{
   76|  3.04k|		uint8_t messageCode = getMsgBaseHeader()->messageCode;
   77|  3.04k|		if (messageCode == 20 || messageCode == 21 || (messageCode >= 30 && messageCode <= 34))
  ------------------
  |  Branch (77:7): [True: 90, False: 2.95k]
  |  Branch (77:28): [True: 1.32k, False: 1.63k]
  |  Branch (77:50): [True: 1.63k, False: 0]
  |  Branch (77:71): [True: 1.60k, False: 26]
  ------------------
   78|  3.02k|			return static_cast<SSHHandshakeMessage::SSHHandshakeMessageType>(messageCode);
   79|     26|		return SSHHandshakeMessage::SSH_MSG_UNKNOWN;
   80|  3.04k|	}
_ZNK4pcpp19SSHHandshakeMessage17getMessageTypeStrEv:
   83|  3.04k|	{
   84|  3.04k|		switch (getMessageType())
   85|  3.04k|		{
   86|     90|		case SSHHandshakeMessage::SSH_MSG_KEX_INIT:
  ------------------
  |  Branch (86:3): [True: 90, False: 2.95k]
  ------------------
   87|     90|			return "Key Exchange Init";
   88|  1.32k|		case SSHHandshakeMessage::SSH_MSG_NEW_KEYS:
  ------------------
  |  Branch (88:3): [True: 1.32k, False: 1.72k]
  ------------------
   89|  1.32k|			return "New Keys";
   90|      2|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_INIT:
  ------------------
  |  Branch (90:3): [True: 2, False: 3.04k]
  ------------------
   91|      2|			return "Diffie-Hellman Key Exchange Init";
   92|     16|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_REPLY:
  ------------------
  |  Branch (92:3): [True: 16, False: 3.03k]
  ------------------
   93|     16|			return "Diffie-Hellman Key Exchange Reply";
   94|    858|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_INIT:
  ------------------
  |  Branch (94:3): [True: 858, False: 2.19k]
  ------------------
   95|    858|			return "Diffie-Hellman Group Exchange Init";
   96|    706|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_REPLY:
  ------------------
  |  Branch (96:3): [True: 706, False: 2.34k]
  ------------------
   97|    706|			return "Diffie-Hellman Group Exchange Reply";
   98|     24|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_REQUEST:
  ------------------
  |  Branch (98:3): [True: 24, False: 3.02k]
  ------------------
   99|     24|			return "Diffie-Hellman Group Exchange Request";
  100|     26|		default:
  ------------------
  |  Branch (100:3): [True: 26, False: 3.02k]
  ------------------
  101|     26|			return "Unknown";
  102|  3.04k|		}
  103|  3.04k|	}
_ZNK4pcpp19SSHHandshakeMessage12getHeaderLenEv:
  122|  9.86k|	{
  123|       |		return (size_t)be32toh(getMsgBaseHeader()->packetLength) + sizeof(uint32_t);
  124|  9.86k|	}
_ZNK4pcpp19SSHHandshakeMessage8toStringEv:
  127|  3.04k|	{
  128|  3.04k|		return std::string(SSH_LAYER_BASE_STRING) + ", " + "Handshake Message: " + getMessageTypeStr();
  ------------------
  |  |   12|  3.04k|#define SSH_LAYER_BASE_STRING "SSH Layer"
  ------------------
  129|  3.04k|	}
_ZN4pcpp19SSHHandshakeMessage8tryParseEPhmPNS_5LayerEPNS_6PacketE:
  132|  15.0k|	{
  133|  15.0k|		if (dataLen < sizeof(SSHHandshakeMessage::ssh_message_base))
  ------------------
  |  Branch (133:7): [True: 1.71k, False: 13.3k]
  ------------------
  134|  1.71k|		{
  135|  1.71k|			PCPP_LOG_DEBUG(
  ------------------
  |  |  425|  1.71k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  1.71k|	do                                                                                                                 \
  |  |  |  |  413|  1.71k|	{                                                                                                                  \
  |  |  |  |  414|  1.71k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.71k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.71k|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 1.71k]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.71k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  1.71k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.71k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  136|  1.71k|			    "Data length is smaller than the minimum size of an SSH handshake message. It's probably not an SSH handshake message");
  137|  1.71k|			return nullptr;
  138|  1.71k|		}
  139|       |
  140|  13.3k|		SSHHandshakeMessage::ssh_message_base* msgBase = (SSHHandshakeMessage::ssh_message_base*)data;
  141|       |
  142|  13.3k|		uint32_t msgLength = be32toh(msgBase->packetLength);
  143|  13.3k|		if (msgLength + sizeof(uint32_t) > dataLen)
  ------------------
  |  Branch (143:7): [True: 4.84k, False: 8.50k]
  ------------------
  144|  4.84k|		{
  145|  4.84k|			PCPP_LOG_DEBUG("Message size is larger than layer size. It's probably not an SSH handshake message");
  ------------------
  |  |  425|  4.84k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  4.84k|	do                                                                                                                 \
  |  |  |  |  413|  4.84k|	{                                                                                                                  \
  |  |  |  |  414|  4.84k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  4.84k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.84k|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 4.84k]
  |  |  |  |  ------------------
  |  |  |  |  416|  4.84k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  4.84k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 4.84k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  146|  4.84k|			return nullptr;
  147|  4.84k|		}
  148|       |
  149|  8.50k|		if (msgBase->paddingLength > msgLength)
  ------------------
  |  Branch (149:7): [True: 22, False: 8.48k]
  ------------------
  150|     22|		{
  151|     22|			PCPP_LOG_DEBUG("Message padding is larger than message size. It's probably not an SSH handshake message");
  ------------------
  |  |  425|     22|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|     22|	do                                                                                                                 \
  |  |  |  |  413|     22|	{                                                                                                                  \
  |  |  |  |  414|     22|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     22|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     22|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 22]
  |  |  |  |  ------------------
  |  |  |  |  416|     22|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|     22|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 22]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  152|     22|			return nullptr;
  153|     22|		}
  154|       |
  155|  8.48k|		if (msgBase->messageCode != 20 && msgBase->messageCode != 21 &&
  ------------------
  |  Branch (155:7): [True: 8.25k, False: 225]
  |  Branch (155:37): [True: 4.59k, False: 3.66k]
  ------------------
  156|  4.59k|		    (msgBase->messageCode < 30 || msgBase->messageCode > 49))
  ------------------
  |  Branch (156:8): [True: 144, False: 4.44k]
  |  Branch (156:37): [True: 0, False: 4.44k]
  ------------------
  157|    144|		{
  158|    144|			PCPP_LOG_DEBUG("Unknown message type " << (int)msgBase->messageCode
  ------------------
  |  |  425|    144|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    144|	do                                                                                                                 \
  |  |  |  |  413|    144|	{                                                                                                                  \
  |  |  |  |  414|    144|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    144|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    144|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 144]
  |  |  |  |  ------------------
  |  |  |  |  416|    144|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|    144|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 144]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  159|    144|			                                       << ". It's probably not an SSH handshake message");
  160|    144|			return nullptr;
  161|    144|		}
  162|       |
  163|  8.33k|		switch (msgBase->messageCode)
  164|  8.33k|		{
  165|    225|		case SSHHandshakeMessage::SSH_MSG_KEX_INIT:
  ------------------
  |  Branch (165:3): [True: 225, False: 8.11k]
  ------------------
  166|    225|			return new SSHKeyExchangeInitMessage(data, dataLen, prevLayer, packet);
  167|  8.11k|		default:
  ------------------
  |  Branch (167:3): [True: 8.11k, False: 225]
  ------------------
  168|  8.11k|			return new SSHHandshakeMessage(data, dataLen, prevLayer, packet);
  169|  8.33k|		}
  170|  8.33k|	}
_ZN4pcpp25SSHKeyExchangeInitMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  178|    225|	    : SSHHandshakeMessage(data, dataLen, prevLayer, packet), m_OffsetsInitialized(false)
  179|    225|	{
  180|    225|		memset(m_FieldOffsets, 0, 11 * sizeof(size_t));
  181|    225|	}
_ZNK4pcpp19SSHEncryptedMessage8toStringEv:
  256|  2.51k|	{
  257|  2.51k|		return std::string(SSH_LAYER_BASE_STRING) + ", " + "Encrypted Message";
  ------------------
  |  |   12|  2.51k|#define SSH_LAYER_BASE_STRING "SSH Layer"
  ------------------
  258|  2.51k|	}

_ZN4pcpp10SSLVersion6asEnumEb:
   13|   286k|	{
   14|   286k|		if (m_SSLVersionValue >= 0x0300 && m_SSLVersionValue <= 0x0304)
  ------------------
  |  Branch (14:7): [True: 286k, False: 167]
  |  Branch (14:38): [True: 285k, False: 519]
  ------------------
   15|   285k|			return static_cast<SSLVersion::SSLVersionEnum>(m_SSLVersionValue);
   16|       |
   17|    686|		if ((m_SSLVersionValue >= 0x7f0e && m_SSLVersionValue <= 0x7f1c) || m_SSLVersionValue == 0xfb17 ||
  ------------------
  |  Branch (17:8): [True: 210, False: 476]
  |  Branch (17:39): [True: 0, False: 210]
  |  Branch (17:71): [True: 0, False: 686]
  ------------------
   18|    686|		    m_SSLVersionValue == 0xfb1a)
  ------------------
  |  Branch (18:7): [True: 0, False: 686]
  ------------------
   19|      0|		{
   20|      0|			if (countTlsDraftsAs1_3)
  ------------------
  |  Branch (20:8): [True: 0, False: 0]
  ------------------
   21|      0|				return SSLVersion::TLS1_3;
   22|      0|			else
   23|      0|				return static_cast<SSLVersion::SSLVersionEnum>(m_SSLVersionValue);
   24|      0|		}
   25|       |
   26|    686|		return SSLVersion::Unknown;
   27|    686|	}
_ZN4pcpp10SSLVersion8toStringEb:
   30|  69.7k|	{
   31|  69.7k|		SSLVersionEnum enumValue = asEnum(countTlsDraftsAs1_3);
   32|       |
   33|  69.7k|		switch (enumValue)
   34|  69.7k|		{
   35|    752|		case SSLVersion::TLS1_3:
  ------------------
  |  Branch (35:3): [True: 752, False: 68.9k]
  ------------------
   36|    752|			return "TLS 1.3";
   37|  53.0k|		case SSLVersion::TLS1_2:
  ------------------
  |  Branch (37:3): [True: 53.0k, False: 16.6k]
  ------------------
   38|  53.0k|			return "TLS 1.2";
   39|  1.07k|		case SSLVersion::TLS1_1:
  ------------------
  |  Branch (39:3): [True: 1.07k, False: 68.6k]
  ------------------
   40|  1.07k|			return "TLS 1.1";
   41|  13.8k|		case SSLVersion::TLS1_0:
  ------------------
  |  Branch (41:3): [True: 13.8k, False: 55.8k]
  ------------------
   42|  13.8k|			return "TLS 1.0";
   43|  1.00k|		case SSLVersion::SSL3:
  ------------------
  |  Branch (43:3): [True: 1.00k, False: 68.7k]
  ------------------
   44|  1.00k|			return "SSL 3.0";
   45|      0|		case SSLVersion::TLS1_3_D28:
  ------------------
  |  Branch (45:3): [True: 0, False: 69.7k]
  ------------------
   46|      0|			return "TLS 1.3 (draft 28)";
   47|      0|		case SSLVersion::TLS1_3_D27:
  ------------------
  |  Branch (47:3): [True: 0, False: 69.7k]
  ------------------
   48|      0|			return "TLS 1.3 (draft 27)";
   49|      0|		case SSLVersion::TLS1_3_D26:
  ------------------
  |  Branch (49:3): [True: 0, False: 69.7k]
  ------------------
   50|      0|			return "TLS 1.3 (draft 26)";
   51|      0|		case SSLVersion::TLS1_3_D25:
  ------------------
  |  Branch (51:3): [True: 0, False: 69.7k]
  ------------------
   52|      0|			return "TLS 1.3 (draft 25)";
   53|      0|		case SSLVersion::TLS1_3_D24:
  ------------------
  |  Branch (53:3): [True: 0, False: 69.7k]
  ------------------
   54|      0|			return "TLS 1.3 (draft 24)";
   55|      0|		case SSLVersion::TLS1_3_D23:
  ------------------
  |  Branch (55:3): [True: 0, False: 69.7k]
  ------------------
   56|      0|			return "TLS 1.3 (draft 23)";
   57|      0|		case SSLVersion::TLS1_3_D22:
  ------------------
  |  Branch (57:3): [True: 0, False: 69.7k]
  ------------------
   58|      0|			return "TLS 1.3 (draft 22)";
   59|      0|		case SSLVersion::TLS1_3_D21:
  ------------------
  |  Branch (59:3): [True: 0, False: 69.7k]
  ------------------
   60|      0|			return "TLS 1.3 (draft 21)";
   61|      0|		case SSLVersion::TLS1_3_D20:
  ------------------
  |  Branch (61:3): [True: 0, False: 69.7k]
  ------------------
   62|      0|			return "TLS 1.3 (draft 20)";
   63|      0|		case SSLVersion::TLS1_3_D19:
  ------------------
  |  Branch (63:3): [True: 0, False: 69.7k]
  ------------------
   64|      0|			return "TLS 1.3 (draft 19)";
   65|      0|		case SSLVersion::TLS1_3_D18:
  ------------------
  |  Branch (65:3): [True: 0, False: 69.7k]
  ------------------
   66|      0|			return "TLS 1.3 (draft 18)";
   67|      0|		case SSLVersion::TLS1_3_D17:
  ------------------
  |  Branch (67:3): [True: 0, False: 69.7k]
  ------------------
   68|      0|			return "TLS 1.3 (draft 17)";
   69|      0|		case SSLVersion::TLS1_3_D16:
  ------------------
  |  Branch (69:3): [True: 0, False: 69.7k]
  ------------------
   70|      0|			return "TLS 1.3 (draft 16)";
   71|      0|		case SSLVersion::TLS1_3_D15:
  ------------------
  |  Branch (71:3): [True: 0, False: 69.7k]
  ------------------
   72|      0|			return "TLS 1.3 (draft 15)";
   73|      0|		case SSLVersion::TLS1_3_D14:
  ------------------
  |  Branch (73:3): [True: 0, False: 69.7k]
  ------------------
   74|      0|			return "TLS 1.3 (draft 14)";
   75|      0|		case SSLVersion::TLS1_3_FBD23:
  ------------------
  |  Branch (75:3): [True: 0, False: 69.7k]
  ------------------
   76|      0|			return "TLS 1.3 (Facebook draft 23)";
   77|      0|		case SSLVersion::TLS1_3_FBD26:
  ------------------
  |  Branch (77:3): [True: 0, False: 69.7k]
  ------------------
   78|      0|			return "TLS 1.3 (Facebook draft 26)";
   79|      0|		case SSLVersion::Unknown:
  ------------------
  |  Branch (79:3): [True: 0, False: 69.7k]
  ------------------
   80|      0|			return "Unknown";
   81|      0|		default:
  ------------------
  |  Branch (81:3): [True: 0, False: 69.7k]
  ------------------
   82|      0|			return "Unknown";
   83|  69.7k|		}
   84|  69.7k|	}

_ZN4pcpp15createGreaseSetEv:
 1041|      2|	{
 1042|      2|		uint16_t greaseExtensions[] = { 0x0a0a, 0x1a1a, 0x2a2a, 0x3a3a, 0x4a4a, 0x5a5a, 0x6a6a, 0x7a7a,
 1043|      2|			                            0x8a8a, 0x9a9a, 0xaaaa, 0xbaba, 0xcaca, 0xdada, 0xeaea, 0xfafa };
 1044|      2|		return std::set<uint16_t>(greaseExtensions, greaseExtensions + 16);
 1045|      2|	}
_ZN4pcpp14SSLCipherSuite18getCipherSuiteByIDEt:
 1056|  91.7k|	{
 1057|  91.7k|		std::unordered_map<uint16_t, SSLCipherSuite*>::const_iterator pos = CipherSuiteIdToObjectMap.find(id);
 1058|  91.7k|		if (pos == CipherSuiteIdToObjectMap.end())
  ------------------
  |  Branch (1058:7): [True: 32.2k, False: 59.4k]
  ------------------
 1059|  32.2k|			return nullptr;
 1060|  59.4k|		else
 1061|  59.4k|			return pos->second;
 1062|  91.7k|	}
_ZN4pcpp14SSLCipherSuite20getCipherSuiteByNameENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1065|  6.43k|	{
 1066|  6.43k|		uint32_t nameHash = hashString(std::move(name));
 1067|  6.43k|		std::unordered_map<uint32_t, SSLCipherSuite*>::const_iterator pos = CipherSuiteStringToObjectMap.find(nameHash);
 1068|  6.43k|		if (pos == CipherSuiteStringToObjectMap.end())
  ------------------
  |  Branch (1068:7): [True: 0, False: 6.43k]
  ------------------
 1069|      0|			return nullptr;
 1070|  6.43k|		else
 1071|  6.43k|			return pos->second;
 1072|  6.43k|	}
_ZN4pcpp12SSLExtensionC2EPhm:
 1081|   291k|	SSLExtension::SSLExtension(uint8_t* data, size_t dataLen) : m_RawData(data), m_RawDataLen(dataLen)
 1082|   291k|	{
 1083|   291k|		if (data == nullptr || dataLen < 2 * sizeof(uint16_t))
  ------------------
  |  Branch (1083:7): [True: 0, False: 291k]
  |  Branch (1083:26): [True: 0, False: 291k]
  ------------------
 1084|      0|		{
 1085|      0|			throw std::invalid_argument("Insufficient data buffer for SSL extension header");
 1086|      0|		}
 1087|       |
 1088|   291k|		uint16_t extDataLen = getLength();
 1089|   291k|		if (dataLen < (2 * sizeof(uint16_t) + extDataLen))
  ------------------
  |  Branch (1089:7): [True: 0, False: 291k]
  ------------------
 1090|      0|		{
 1091|      0|			throw std::invalid_argument("Insufficient data buffer for SSL extension data");
 1092|      0|		}
 1093|   291k|	}
_ZNK4pcpp12SSLExtension7getTypeEv:
 1096|  16.8k|	{
 1097|  16.8k|		uint16_t typeAsInt = getTypeAsInt();
 1098|  16.8k|		if (typeAsInt <= 24 || typeAsInt == 35 || typeAsInt == 65281)
  ------------------
  |  Branch (1098:7): [True: 8.43k, False: 8.45k]
  |  Branch (1098:26): [True: 687, False: 7.76k]
  |  Branch (1098:45): [True: 2.44k, False: 5.32k]
  ------------------
 1099|  11.5k|			return (SSLExtensionType)typeAsInt;
 1100|       |
 1101|  5.32k|		return SSL_EXT_Unknown;
 1102|  16.8k|	}
_ZNK4pcpp12SSLExtension12getTypeAsIntEv:
 1105|  79.7k|	{
 1106|       |		return be16toh(getExtensionStruct()->extensionType);
 1107|  79.7k|	}
_ZNK4pcpp12SSLExtension9getLengthEv:
 1110|   609k|	{
 1111|   609k|		return getExtensionStruct()->getDataLength();
 1112|   609k|	}
_ZNK4pcpp12SSLExtension14getTotalLengthEv:
 1115|   291k|	{
 1116|   291k|		return getLength() + 2 * sizeof(uint16_t);
 1117|   291k|	}
_ZNK4pcpp12SSLExtension7getDataEv:
 1120|  16.5k|	{
 1121|  16.5k|		if (getLength() > 0)
  ------------------
  |  Branch (1121:7): [True: 16.2k, False: 258]
  ------------------
 1122|  16.2k|		{
 1123|  16.2k|			return getExtensionStruct()->extensionData;
 1124|  16.2k|		}
 1125|       |
 1126|    258|		return nullptr;
 1127|  16.5k|	}
_ZNK4pcpp12SSLExtension18SSLExtensionStruct13getDataLengthEv:
 1130|   912k|	{
 1131|       |		return be16toh(extensionDataLength);
 1132|   912k|	}
_ZNK4pcpp32SSLServerNameIndicationExtension11getHostNameEv:
 1139|  2.95k|	{
 1140|  2.95k|		auto* extensionDataPtr = getData();
 1141|  2.95k|		if (extensionDataPtr == nullptr)
  ------------------
  |  Branch (1141:7): [True: 258, False: 2.69k]
  ------------------
 1142|    258|		{
 1143|    258|			return "";
 1144|    258|		}
 1145|       |
 1146|  2.69k|		uint8_t const* hostNameLengthPos = extensionDataPtr + sizeof(uint16_t) + sizeof(uint8_t);
 1147|  2.69k|		uint16_t hostNameLength = be16toh(*reinterpret_cast<uint16_t const*>(hostNameLengthPos));
 1148|       |
 1149|  2.69k|		uint8_t const* hostNameDataIt = hostNameLengthPos + sizeof(uint16_t);
 1150|  2.69k|		uint8_t const* hostNameDataEndIt = hostNameDataIt + hostNameLength;
 1151|  2.69k|		uint8_t const* extensionDataEndIt = extensionDataPtr + getLength();
 1152|       |
 1153|  2.69k|		if (hostNameDataEndIt > extensionDataEndIt)
  ------------------
  |  Branch (1153:7): [True: 8, False: 2.68k]
  ------------------
 1154|      8|		{
 1155|      8|			PCPP_LOG_WARN("Host name length exceeds extension data length. Possible data corruption. Truncating.");
  ------------------
  |  |  431|      8|#	define PCPP_LOG_WARN(message) PCPP_LOG(pcpp::LogLevel::Warn, message)
  |  |  ------------------
  |  |  |  |  412|      8|	do                                                                                                                 \
  |  |  |  |  413|      8|	{                                                                                                                  \
  |  |  |  |  414|      8|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      8|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      8|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 8, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      8|		{                                                                                                              \
  |  |  |  |  417|      8|			auto ctx =                                                                                                 \
  |  |  |  |  418|      8|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      8|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      8|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      8|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      8|		}                                                                                                              \
  |  |  |  |  422|      8|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 8]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1156|      8|			hostNameDataEndIt = extensionDataEndIt;
 1157|      8|		}
 1158|       |
 1159|  2.69k|		return std::string(hostNameDataIt, hostNameDataEndIt);
 1160|  2.95k|	}
_ZNK4pcpp29SSLSupportedVersionsExtension20getSupportedVersionsEv:
 1167|  1.45k|	{
 1168|  1.45k|		std::vector<SSLVersion> result;
 1169|  1.45k|		uint16_t extensionLength = getLength();
 1170|  1.45k|		if (extensionLength == 2)  // server hello message
  ------------------
  |  Branch (1170:7): [True: 577, False: 882]
  ------------------
 1171|    577|		{
 1172|    577|			result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(getData()))));
 1173|    577|		}
 1174|    882|		else  // client-hello message
 1175|    882|		{
 1176|    882|			uint8_t listLength = *getData();
 1177|    882|			if (listLength != static_cast<uint8_t>(extensionLength - 1) || listLength % 2 != 0)
  ------------------
  |  Branch (1177:8): [True: 47, False: 835]
  |  Branch (1177:67): [True: 0, False: 835]
  ------------------
 1178|     47|				return result;  // bad extension data
 1179|       |
 1180|    835|			uint8_t* dataPtr = getData() + sizeof(uint8_t);
 1181|  3.53k|			for (int i = 0; i < listLength / 2; i++)
  ------------------
  |  Branch (1181:20): [True: 2.70k, False: 835]
  ------------------
 1182|  2.70k|			{
 1183|  2.70k|				result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(dataPtr))));
 1184|  2.70k|				dataPtr += sizeof(uint16_t);
 1185|  2.70k|			}
 1186|    835|		}
 1187|       |
 1188|  1.41k|		return result;
 1189|  1.45k|	}
_ZNK4pcpp27TLSSupportedGroupsExtension18getSupportedGroupsEv:
 1196|  2.83k|	{
 1197|  2.83k|		std::vector<uint16_t> result;
 1198|       |
 1199|  2.83k|		uint16_t extensionLength = getLength();
 1200|  2.83k|		if (extensionLength < sizeof(uint16_t))
  ------------------
  |  Branch (1200:7): [True: 8, False: 2.82k]
  ------------------
 1201|      8|			return result;  // bad extension data
 1202|       |
 1203|  2.82k|		uint16_t listLength = be16toh(*(uint16_t*)getData());
 1204|  2.82k|		if (listLength != (extensionLength - sizeof(uint16_t)) || listLength % 2 != 0)
  ------------------
  |  Branch (1204:7): [True: 25, False: 2.79k]
  |  Branch (1204:61): [True: 38, False: 2.76k]
  ------------------
 1205|     63|			return result;  // bad extension data
 1206|       |
 1207|  2.76k|		uint8_t* dataPtr = getData() + sizeof(uint16_t);
 1208|  17.1k|		for (int i = 0; i < listLength / 2; i++)
  ------------------
  |  Branch (1208:19): [True: 14.3k, False: 2.76k]
  ------------------
 1209|  14.3k|		{
 1210|  14.3k|			result.push_back(be16toh(*(uint16_t*)dataPtr));
 1211|  14.3k|			dataPtr += sizeof(uint16_t);
 1212|  14.3k|		}
 1213|       |
 1214|  2.76k|		return result;
 1215|  2.82k|	}
_ZNK4pcpp25TLSECPointFormatExtension20getECPointFormatListEv:
 1222|  2.92k|	{
 1223|  2.92k|		std::vector<uint8_t> result;
 1224|       |
 1225|  2.92k|		uint16_t extensionLength = getLength();
 1226|       |
 1227|  2.92k|		if (extensionLength < 1)
  ------------------
  |  Branch (1227:7): [True: 12, False: 2.91k]
  ------------------
 1228|     12|			return result;
 1229|       |
 1230|  2.91k|		uint8_t listLength = *getData();
 1231|       |
 1232|  2.91k|		if (extensionLength != static_cast<uint16_t>(listLength) + 1)
  ------------------
  |  Branch (1232:7): [True: 139, False: 2.77k]
  ------------------
 1233|    139|			return result;  // bad extension data
 1234|       |
 1235|  2.77k|		uint8_t* dataPtr = getData() + sizeof(uint8_t);
 1236|  6.33k|		for (int i = 0; i < listLength; i++)
  ------------------
  |  Branch (1236:19): [True: 3.56k, False: 2.77k]
  ------------------
 1237|  3.56k|		{
 1238|  3.56k|			result.push_back(*dataPtr);
 1239|  3.56k|			dataPtr += sizeof(uint8_t);
 1240|  3.56k|		}
 1241|       |
 1242|  2.77k|		return result;
 1243|  2.91k|	}
_ZN4pcpp19SSLHandshakeMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1281|   173k|	{
 1282|   173k|		m_Data = data;
 1283|   173k|		m_DataLen = dataLen;
 1284|   173k|		m_Container = container;
 1285|   173k|	}
_ZN4pcpp19SSLHandshakeMessage22createHandshakeMessageEPhmPNS_17SSLHandshakeLayerE:
 1289|   288k|	{
 1290|   288k|		if (dataLen < sizeof(ssl_tls_handshake_layer))
  ------------------
  |  Branch (1290:7): [True: 114k, False: 173k]
  ------------------
 1291|   114k|			return nullptr;
 1292|       |
 1293|   173k|		ssl_tls_handshake_layer* hsMsgHeader = reinterpret_cast<ssl_tls_handshake_layer*>(data);
 1294|       |
 1295|   173k|		if (dataLen >= 16 && (be64toh(*(uint64_t*)data) <= 0xFFFFFF || hsMsgHeader->length1 >= 1))
  ------------------
  |  Branch (1295:7): [True: 150k, False: 22.1k]
  |  Branch (1295:25): [True: 11.1k, False: 139k]
  |  Branch (1295:66): [True: 32.1k, False: 107k]
  ------------------
 1296|  43.3k|		{
 1297|       |			// possibly Encrypted Handshake Message
 1298|       |			// used heuristic:
 1299|       |			// - handshake layer of more than 16 byte
 1300|       |			// - first 5 bytes of the handshake message are zeroes
 1301|       |			// - or wrong message length is over 64K
 1302|       |			// - or message type makes so sense (handled through the switch statement)
 1303|  43.3k|			return new SSLUnknownMessage(data, dataLen, container);
 1304|  43.3k|		}
 1305|       |
 1306|   129k|		switch (hsMsgHeader->handshakeType)
 1307|   129k|		{
 1308|  35.8k|		case SSL_CLIENT_HELLO:
  ------------------
  |  Branch (1308:3): [True: 35.8k, False: 93.9k]
  ------------------
 1309|  35.8k|			return new SSLClientHelloMessage(data, dataLen, container);
 1310|  27.9k|		case SSL_SERVER_HELLO:
  ------------------
  |  Branch (1310:3): [True: 27.9k, False: 101k]
  ------------------
 1311|  27.9k|			return new SSLServerHelloMessage(data, dataLen, container);
 1312|  27.6k|		case SSL_HELLO_REQUEST:
  ------------------
  |  Branch (1312:3): [True: 27.6k, False: 102k]
  ------------------
 1313|  27.6k|			return new SSLHelloRequestMessage(data, dataLen, container);
 1314|  8.45k|		case SSL_CERTIFICATE:
  ------------------
  |  Branch (1314:3): [True: 8.45k, False: 121k]
  ------------------
 1315|  8.45k|			return new SSLCertificateMessage(data, dataLen, container);
 1316|  3.66k|		case SSL_SERVER_KEY_EXCHANGE:
  ------------------
  |  Branch (1316:3): [True: 3.66k, False: 126k]
  ------------------
 1317|  3.66k|			return new SSLServerKeyExchangeMessage(data, dataLen, container);
 1318|  12.7k|		case SSL_CERTIFICATE_REQUEST:
  ------------------
  |  Branch (1318:3): [True: 12.7k, False: 117k]
  ------------------
 1319|  12.7k|			return new SSLCertificateRequestMessage(data, dataLen, container);
 1320|    870|		case SSL_CERTIFICATE_VERIFY:
  ------------------
  |  Branch (1320:3): [True: 870, False: 128k]
  ------------------
 1321|    870|			return new SSLCertificateVerifyMessage(data, dataLen, container);
 1322|  2.85k|		case SSL_CLIENT_KEY_EXCHANGE:
  ------------------
  |  Branch (1322:3): [True: 2.85k, False: 126k]
  ------------------
 1323|  2.85k|			return new SSLClientKeyExchangeMessage(data, dataLen, container);
 1324|    875|		case SSL_FINISHED:
  ------------------
  |  Branch (1324:3): [True: 875, False: 128k]
  ------------------
 1325|    875|			return new SSLFinishedMessage(data, dataLen, container);
 1326|  1.63k|		case SSL_SERVER_DONE:
  ------------------
  |  Branch (1326:3): [True: 1.63k, False: 128k]
  ------------------
 1327|  1.63k|			return new SSLServerHelloDoneMessage(data, dataLen, container);
 1328|  2.00k|		case SSL_NEW_SESSION_TICKET:
  ------------------
  |  Branch (1328:3): [True: 2.00k, False: 127k]
  ------------------
 1329|  2.00k|			return new SSLNewSessionTicketMessage(data, dataLen, container);
 1330|  5.20k|		default:
  ------------------
  |  Branch (1330:3): [True: 5.20k, False: 124k]
  ------------------
 1331|  5.20k|			return new SSLUnknownMessage(data, dataLen, container);
 1332|   129k|		}
 1333|   129k|	}
_ZNK4pcpp19SSLHandshakeMessage16getHandshakeTypeEv:
 1336|  6.43k|	{
 1337|  6.43k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1338|  6.43k|		return (SSLHandshakeType)handshakeLayer->handshakeType;
 1339|  6.43k|	}
_ZNK4pcpp19SSLHandshakeMessage16getMessageLengthEv:
 1342|   305k|	{
 1343|   305k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1344|       |		// TODO: add handshakeLayer->length1 to the calculation
 1345|   305k|		size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2);
 1346|   305k|		if (len > m_DataLen)
  ------------------
  |  Branch (1346:7): [True: 63.6k, False: 242k]
  ------------------
 1347|  63.6k|			return m_DataLen;
 1348|       |
 1349|   242k|		return len;
 1350|   305k|	}
_ZNK4pcpp19SSLHandshakeMessage17isMessageCompleteEv:
 1353|  17.4k|	{
 1354|  17.4k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer))
  ------------------
  |  Branch (1354:7): [True: 0, False: 17.4k]
  ------------------
 1355|      0|			return false;
 1356|       |
 1357|  17.4k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1358|       |		size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2);
 1359|  17.4k|		return len <= m_DataLen;
 1360|  17.4k|	}
_ZN4pcpp21SSLClientHelloMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1367|  35.8k|	    : SSLHandshakeMessage(data, dataLen, container)
 1368|  35.8k|	{
 1369|  35.8k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1370|  35.8k|		                               sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() +
 1371|  35.8k|		                               2 * sizeof(uint8_t);
 1372|  35.8k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1372:7): [True: 17.2k, False: 18.5k]
  ------------------
 1373|  17.2k|			return;
 1374|       |
 1375|  18.5k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1376|  18.5k|		uint16_t extensionLength = getExtensionsLength();
 1377|  18.5k|		uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
 1378|       |
 1379|  18.5k|		size_t messageLen = getMessageLength();
 1380|       |
 1381|       |		// Iterators for the entire extension data buffer containing the extensions blocks.
 1382|  18.5k|		uint8_t* extensionIt = extensionPos;
 1383|  18.5k|		uint8_t* extensionEndIt = extensionPos + extensionLength;
 1384|       |
 1385|       |		// If the message length is smaller that the extension data buffer, we might have malformed data.
 1386|       |		// In this case, the extension data buffer is truncated to the message length, to avoid out-of-bounds access.
 1387|  18.5k|		uint8_t* endOfMessageIt = m_Data + messageLen;
 1388|  18.5k|		if (endOfMessageIt < extensionEndIt)
  ------------------
  |  Branch (1388:7): [True: 3.09k, False: 15.4k]
  ------------------
 1389|  3.09k|		{
 1390|  3.09k|			extensionEndIt = endOfMessageIt;
 1391|  3.09k|		}
 1392|       |
 1393|  18.5k|		constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
 1394|   276k|		while (extensionIt < extensionEndIt &&
  ------------------
  |  Branch (1394:10): [True: 264k, False: 11.1k]
  ------------------
 1395|   264k|		       std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
  ------------------
  |  Branch (1395:10): [True: 261k, False: 3.42k]
  ------------------
 1396|   261k|		{
 1397|   261k|			std::unique_ptr<SSLExtension> newExt;
 1398|       |
 1399|   261k|			uint16_t sslExtType = be16toh(*reinterpret_cast<uint16_t*>(extensionIt));
 1400|   261k|			size_t availableDataLen = std::distance(extensionIt, extensionEndIt);
 1401|       |
 1402|   261k|			switch (sslExtType)
 1403|   261k|			{
 1404|  87.5k|			case SSL_EXT_SERVER_NAME:
  ------------------
  |  Branch (1404:4): [True: 87.5k, False: 173k]
  ------------------
 1405|  87.5k|			{
 1406|  87.5k|				newExt =
 1407|  87.5k|				    SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
 1408|  87.5k|				break;
 1409|      0|			}
 1410|  4.30k|			case SSL_EXT_SUPPORTED_VERSIONS:
  ------------------
  |  Branch (1410:4): [True: 4.30k, False: 257k]
  ------------------
 1411|  4.30k|			{
 1412|  4.30k|				newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
 1413|  4.30k|				break;
 1414|      0|			}
 1415|  15.2k|			case SSL_EXT_SUPPORTED_GROUPS:
  ------------------
  |  Branch (1415:4): [True: 15.2k, False: 246k]
  ------------------
 1416|  15.2k|			{
 1417|  15.2k|				newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
 1418|  15.2k|				break;
 1419|      0|			}
 1420|  15.3k|			case SSL_EXT_EC_POINT_FORMATS:
  ------------------
  |  Branch (1420:4): [True: 15.3k, False: 246k]
  ------------------
 1421|  15.3k|			{
 1422|  15.3k|				newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
 1423|  15.3k|				break;
 1424|      0|			}
 1425|   139k|			default:
  ------------------
  |  Branch (1425:4): [True: 139k, False: 122k]
  ------------------
 1426|   139k|			{
 1427|   139k|				newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
 1428|   139k|			}
 1429|   261k|			}
 1430|       |
 1431|   261k|			if (newExt == nullptr)
  ------------------
  |  Branch (1431:8): [True: 3.98k, False: 257k]
  ------------------
 1432|  3.98k|			{
 1433|  3.98k|				PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
  ------------------
  |  |  425|  3.98k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  3.98k|	do                                                                                                                 \
  |  |  |  |  413|  3.98k|	{                                                                                                                  \
  |  |  |  |  414|  3.98k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.98k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.98k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 3.98k]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.98k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  3.98k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.98k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1434|  3.98k|				                                                        << " skipping remaining extensions.");
 1435|  3.98k|				break;
 1436|  3.98k|			}
 1437|       |
 1438|       |			// Total length can be zero only if getLength() == 0xfffc which is way too large
 1439|       |			// and means that this extension (and packet) are malformed
 1440|   257k|			size_t newExtTotalLen = newExt->getTotalLength();
 1441|   257k|			if (newExtTotalLen == 0)
  ------------------
  |  Branch (1441:8): [True: 0, False: 257k]
  ------------------
 1442|      0|			{
 1443|      0|				break;
 1444|      0|			}
 1445|       |
 1446|   257k|			m_ExtensionList.pushBack(std::move(newExt));
 1447|   257k|			std::advance(extensionIt, newExtTotalLen);
 1448|   257k|		}
 1449|  18.5k|	}
_ZNK4pcpp21SSLClientHelloMessage19getHandshakeVersionEv:
 1452|  12.8k|	{
 1453|  12.8k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint16_t))
  ------------------
  |  Branch (1453:7): [True: 0, False: 12.8k]
  ------------------
 1454|      0|			return SSLVersion(0);
 1455|       |
 1456|  12.8k|		uint16_t handshakeVersion = be16toh(getClientHelloHeader()->handshakeVersion);
 1457|  12.8k|		return SSLVersion(handshakeVersion);
 1458|  12.8k|	}
_ZNK4pcpp21SSLClientHelloMessage18getSessionIDLengthEv:
 1461|  14.5M|	{
 1462|  14.5M|		if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
  ------------------
  |  Branch (1462:7): [True: 7.65k, False: 14.5M]
  ------------------
 1463|  7.65k|			return 0;
 1464|       |
 1465|  14.5M|		uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
 1466|  14.5M|		if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
  ------------------
  |  Branch (1466:7): [True: 7.10k, False: 14.5M]
  ------------------
 1467|  7.10k|			return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
 1468|       |
 1469|  14.5M|		return val;
 1470|  14.5M|	}
_ZNK4pcpp21SSLClientHelloMessage12getSessionIDEv:
 1473|  6.43k|	{
 1474|  6.43k|		if (getSessionIDLength() > 0)
  ------------------
  |  Branch (1474:7): [True: 2.96k, False: 3.46k]
  ------------------
 1475|  2.96k|			return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
 1476|  3.46k|		else
 1477|  3.46k|			return nullptr;
 1478|  6.43k|	}
_ZNK4pcpp21SSLClientHelloMessage19getCipherSuiteCountEv:
 1481|  8.32M|	{
 1482|  8.32M|		size_t cipherSuiteOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
 1483|  8.32M|		if (cipherSuiteOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1483:7): [True: 18.5k, False: 8.30M]
  ------------------
 1484|  18.5k|			return 0;
 1485|       |
 1486|  8.30M|		uint16_t cipherSuiteLen = *(uint16_t*)(m_Data + cipherSuiteOffset);
 1487|       |		return be16toh(cipherSuiteLen) / 2;
 1488|  8.32M|	}
_ZNK4pcpp21SSLClientHelloMessage14getCipherSuiteEi:
 1491|  2.06M|	{
 1492|  2.06M|		bool isValid;
 1493|  2.06M|		uint16_t id = getCipherSuiteID(index, isValid);
 1494|  2.06M|		return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
  ------------------
  |  Branch (1494:11): [True: 88.7k, False: 1.97M]
  ------------------
 1495|  2.06M|	}
_ZNK4pcpp21SSLClientHelloMessage16getCipherSuiteIDEiRb:
 1498|  6.18M|	{
 1499|  6.18M|		if (index < 0 || index >= getCipherSuiteCount())
  ------------------
  |  Branch (1499:7): [True: 0, False: 6.18M]
  |  Branch (1499:20): [True: 0, False: 6.18M]
  ------------------
 1500|      0|		{
 1501|      0|			isValid = false;
 1502|      0|			return 0;
 1503|      0|		}
 1504|       |
 1505|  6.18M|		size_t cipherSuiteStartOffset =
 1506|  6.18M|		    sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
 1507|  6.18M|		if (cipherSuiteStartOffset + sizeof(uint16_t) * (index + 1) > m_DataLen)
  ------------------
  |  Branch (1507:7): [True: 5.91M, False: 266k]
  ------------------
 1508|  5.91M|		{
 1509|  5.91M|			isValid = false;
 1510|  5.91M|			return 0;
 1511|  5.91M|		}
 1512|       |
 1513|   266k|		isValid = true;
 1514|   266k|		uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
 1515|       |		return be16toh(*(cipherSuiteStartPos + index));
 1516|  6.18M|	}
_ZNK4pcpp21SSLClientHelloMessage26getCompressionMethodsValueEv:
 1519|  6.43k|	{
 1520|  6.43k|		size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1521|  6.43k|		                sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() + sizeof(uint8_t);
 1522|  6.43k|		if (offset + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (1522:7): [True: 2.89k, False: 3.54k]
  ------------------
 1523|  2.89k|			return 0xff;
 1524|       |
 1525|  3.54k|		uint8_t* pos = m_Data + offset;
 1526|  3.54k|		return *pos;
 1527|  6.43k|	}
_ZNK4pcpp21SSLClientHelloMessage17getExtensionCountEv:
 1530|  6.43k|	{
 1531|  6.43k|		return m_ExtensionList.size();
 1532|  6.43k|	}
_ZNK4pcpp21SSLClientHelloMessage19getExtensionsLengthEv:
 1535|  18.5k|	{
 1536|  18.5k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1537|  18.5k|		                               sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() +
 1538|  18.5k|		                               2 * sizeof(uint8_t);
 1539|  18.5k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1539:7): [True: 0, False: 18.5k]
  ------------------
 1540|      0|			return 0;
 1541|       |
 1542|  18.5k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1543|       |		return be16toh(*(uint16_t*)extensionLengthPos);
 1544|  18.5k|	}
_ZNK4pcpp21SSLClientHelloMessage12getExtensionEi:
 1547|  48.8k|	{
 1548|  48.8k|		return const_cast<SSLExtension*>(m_ExtensionList.at(index));
 1549|  48.8k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeEt:
 1552|  6.43k|	{
 1553|  6.43k|		size_t vecSize = m_ExtensionList.size();
 1554|  12.2k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1554:22): [True: 8.79k, False: 3.48k]
  ------------------
 1555|  8.79k|		{
 1556|  8.79k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1557|  8.79k|			if (curElem->getTypeAsInt() == type)
  ------------------
  |  Branch (1557:8): [True: 2.95k, False: 5.84k]
  ------------------
 1558|  2.95k|				return curElem;
 1559|  8.79k|		}
 1560|       |
 1561|  3.48k|		return nullptr;
 1562|  6.43k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeENS_16SSLExtensionTypeE:
 1565|  6.43k|	{
 1566|  6.43k|		size_t vecSize = m_ExtensionList.size();
 1567|  12.2k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1567:22): [True: 8.79k, False: 3.48k]
  ------------------
 1568|  8.79k|		{
 1569|  8.79k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1570|  8.79k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1570:8): [True: 2.95k, False: 5.84k]
  ------------------
 1571|  2.95k|				return curElem;
 1572|  8.79k|		}
 1573|       |
 1574|  3.48k|		return nullptr;
 1575|  6.43k|	}
_ZNK4pcpp21SSLClientHelloMessage22generateTLSFingerprintEv:
 1578|  6.43k|	{
 1579|  6.43k|		SSLClientHelloMessage::ClientHelloTLSFingerprint result;
 1580|       |
 1581|       |		// extract version
 1582|  6.43k|		result.tlsVersion = getHandshakeVersion().asUInt();
 1583|       |
 1584|       |		// extract cipher suites
 1585|  6.43k|		int cipherSuiteCount = getCipherSuiteCount();
 1586|  2.06M|		for (int i = 0; i < cipherSuiteCount; i++)
  ------------------
  |  Branch (1586:19): [True: 2.06M, False: 6.43k]
  ------------------
 1587|  2.06M|		{
 1588|  2.06M|			bool isValid = false;
 1589|  2.06M|			uint16_t cipherSuiteID = getCipherSuiteID(i, isValid);
 1590|  2.06M|			if (isValid && GreaseSet.find(cipherSuiteID) == GreaseSet.end())
  ------------------
  |  Branch (1590:8): [True: 88.7k, False: 1.97M]
  |  Branch (1590:8): [True: 88.1k, False: 1.97M]
  |  Branch (1590:19): [True: 88.1k, False: 594]
  ------------------
 1591|  88.1k|				result.cipherSuites.push_back(cipherSuiteID);
 1592|  2.06M|		}
 1593|       |
 1594|       |		// extract extensions
 1595|  6.43k|		int extensionCount = getExtensionCount();
 1596|  55.3k|		for (int i = 0; i < extensionCount; i++)
  ------------------
  |  Branch (1596:19): [True: 48.8k, False: 6.43k]
  ------------------
 1597|  48.8k|		{
 1598|  48.8k|			uint16_t extensionType = getExtension(i)->getTypeAsInt();
 1599|  48.8k|			if (GreaseSet.find(extensionType) != GreaseSet.end())
  ------------------
  |  Branch (1599:8): [True: 1.13k, False: 47.7k]
  ------------------
 1600|  1.13k|				continue;
 1601|       |
 1602|  47.7k|			result.extensions.push_back(extensionType);
 1603|  47.7k|		}
 1604|       |
 1605|       |		// extract supported groups
 1606|  6.43k|		TLSSupportedGroupsExtension* supportedGroupsExt = getExtensionOfType<TLSSupportedGroupsExtension>();
 1607|  6.43k|		if (supportedGroupsExt != nullptr)
  ------------------
  |  Branch (1607:7): [True: 2.83k, False: 3.60k]
  ------------------
 1608|  2.83k|		{
 1609|  2.83k|			std::vector<uint16_t> supportedGroups = supportedGroupsExt->getSupportedGroups();
 1610|  2.83k|			for (const auto& iter : supportedGroups)
  ------------------
  |  Branch (1610:26): [True: 14.3k, False: 2.83k]
  ------------------
 1611|  14.3k|				if (GreaseSet.find(iter) == GreaseSet.end())
  ------------------
  |  Branch (1611:9): [True: 13.8k, False: 580]
  ------------------
 1612|  13.8k|					result.supportedGroups.push_back(iter);
 1613|  2.83k|		}
 1614|       |
 1615|       |		// extract EC point formats
 1616|  6.43k|		TLSECPointFormatExtension* ecPointFormatExt = getExtensionOfType<TLSECPointFormatExtension>();
 1617|  6.43k|		if (ecPointFormatExt != nullptr)
  ------------------
  |  Branch (1617:7): [True: 2.92k, False: 3.50k]
  ------------------
 1618|  2.92k|		{
 1619|  2.92k|			result.ecPointFormats = ecPointFormatExt->getECPointFormatList();
 1620|  2.92k|		}
 1621|       |
 1622|  6.43k|		return result;
 1623|  6.43k|	}
_ZNK4pcpp21SSLClientHelloMessage8toStringEv:
 1626|  12.8k|	{
 1627|  12.8k|		return "Client Hello message";
 1628|  12.8k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint8toStringEv:
 1635|  6.43k|	{
 1636|  6.43k|		std::stringstream tlsFingerprint;
 1637|       |
 1638|       |		// add version
 1639|  6.43k|		tlsFingerprint << tlsVersion << ",";
 1640|       |
 1641|       |		// add cipher suites
 1642|  6.43k|		bool firstCipher = true;
 1643|  6.43k|		for (const auto& iter : cipherSuites)
  ------------------
  |  Branch (1643:25): [True: 88.1k, False: 6.43k]
  ------------------
 1644|  88.1k|		{
 1645|  88.1k|			tlsFingerprint << (firstCipher ? "" : "-") << iter;
  ------------------
  |  Branch (1645:23): [True: 3.55k, False: 84.5k]
  ------------------
 1646|  88.1k|			firstCipher = false;
 1647|  88.1k|		}
 1648|  6.43k|		tlsFingerprint << ",";
 1649|       |
 1650|       |		// add extensions
 1651|  6.43k|		bool firstExtension = true;
 1652|  6.43k|		for (const auto& iter : extensions)
  ------------------
  |  Branch (1652:25): [True: 47.7k, False: 6.43k]
  ------------------
 1653|  47.7k|		{
 1654|  47.7k|			tlsFingerprint << (firstExtension ? "" : "-") << iter;
  ------------------
  |  Branch (1654:23): [True: 3.37k, False: 44.3k]
  ------------------
 1655|  47.7k|			firstExtension = false;
 1656|  47.7k|		}
 1657|  6.43k|		tlsFingerprint << ",";
 1658|       |
 1659|       |		// add supported groups
 1660|  6.43k|		bool firstGroup = true;
 1661|  6.43k|		for (const auto& iter : supportedGroups)
  ------------------
  |  Branch (1661:25): [True: 13.8k, False: 6.43k]
  ------------------
 1662|  13.8k|		{
 1663|  13.8k|			tlsFingerprint << (firstGroup ? "" : "-") << iter;
  ------------------
  |  Branch (1663:23): [True: 2.76k, False: 11.0k]
  ------------------
 1664|  13.8k|			firstGroup = false;
 1665|  13.8k|		}
 1666|  6.43k|		tlsFingerprint << ",";
 1667|       |
 1668|       |		// add EC point formats
 1669|  6.43k|		bool firstPointFormat = true;
 1670|  6.43k|		for (auto iter : ecPointFormats)
  ------------------
  |  Branch (1670:18): [True: 3.56k, False: 6.43k]
  ------------------
 1671|  3.56k|		{
 1672|  3.56k|			tlsFingerprint << (firstPointFormat ? "" : "-") << (int)iter;
  ------------------
  |  Branch (1672:23): [True: 2.77k, False: 792]
  ------------------
 1673|  3.56k|			firstPointFormat = false;
 1674|  3.56k|		}
 1675|       |
 1676|  6.43k|		return tlsFingerprint.str();
 1677|  6.43k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint5toMD5Ev:
 1680|  6.43k|	{
 1681|  6.43k|		return toStringAndMD5().second;
 1682|  6.43k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint14toStringAndMD5Ev:
 1685|  6.43k|	{
 1686|  6.43k|		std::string str = toString();
 1687|  6.43k|		MD5 md5;
 1688|  6.43k|		return std::pair<std::string, std::string>(str, md5(str));
 1689|  6.43k|	}
_ZN4pcpp21SSLServerHelloMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1696|  27.9k|	    : SSLHandshakeMessage(data, dataLen, container)
 1697|  27.9k|	{
 1698|  27.9k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1699|  27.9k|		                               sizeof(uint16_t) + sizeof(uint8_t);
 1700|  27.9k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1700:7): [True: 9.55k, False: 18.4k]
  ------------------
 1701|  9.55k|			return;
 1702|       |
 1703|  18.4k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1704|  18.4k|		uint16_t extensionLength = getExtensionsLength();
 1705|  18.4k|		uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
 1706|  18.4k|		size_t messageLen = getMessageLength();
 1707|       |
 1708|  18.4k|		uint8_t* extensionIt = extensionPos;
 1709|  18.4k|		uint8_t* extensionEndIt = extensionPos + extensionLength;
 1710|       |
 1711|  18.4k|		uint8_t* endOfMessageIt = m_Data + messageLen;
 1712|  18.4k|		if (endOfMessageIt < extensionEndIt)
  ------------------
  |  Branch (1712:7): [True: 8.45k, False: 9.96k]
  ------------------
 1713|  8.45k|		{
 1714|  8.45k|			extensionEndIt = endOfMessageIt;
 1715|  8.45k|		}
 1716|       |
 1717|  18.4k|		constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
 1718|  52.1k|		while (extensionIt < extensionEndIt &&
  ------------------
  |  Branch (1718:10): [True: 45.7k, False: 6.42k]
  ------------------
 1719|  45.7k|		       std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
  ------------------
  |  Branch (1719:10): [True: 41.9k, False: 3.77k]
  ------------------
 1720|  41.9k|		{
 1721|  41.9k|			std::unique_ptr<SSLExtension> newExt;
 1722|       |
 1723|  41.9k|			uint16_t sslExtType = be16toh(*reinterpret_cast<uint16_t*>(extensionIt));
 1724|  41.9k|			size_t availableDataLen = std::distance(extensionIt, extensionEndIt);
 1725|       |
 1726|  41.9k|			switch (sslExtType)
 1727|  41.9k|			{
 1728|  7.64k|			case SSL_EXT_SERVER_NAME:
  ------------------
  |  Branch (1728:4): [True: 7.64k, False: 34.3k]
  ------------------
 1729|  7.64k|			{
 1730|  7.64k|				newExt =
 1731|  7.64k|				    SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
 1732|  7.64k|				break;
 1733|      0|			}
 1734|  3.05k|			case SSL_EXT_SUPPORTED_VERSIONS:
  ------------------
  |  Branch (1734:4): [True: 3.05k, False: 38.9k]
  ------------------
 1735|  3.05k|			{
 1736|  3.05k|				newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
 1737|  3.05k|				break;
 1738|      0|			}
 1739|      6|			case SSL_EXT_SUPPORTED_GROUPS:
  ------------------
  |  Branch (1739:4): [True: 6, False: 41.9k]
  ------------------
 1740|      6|			{
 1741|      6|				newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
 1742|      6|				break;
 1743|      0|			}
 1744|  1.80k|			case SSL_EXT_EC_POINT_FORMATS:
  ------------------
  |  Branch (1744:4): [True: 1.80k, False: 40.1k]
  ------------------
 1745|  1.80k|			{
 1746|  1.80k|				newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
 1747|  1.80k|				break;
 1748|      0|			}
 1749|  29.4k|			default:
  ------------------
  |  Branch (1749:4): [True: 29.4k, False: 12.4k]
  ------------------
 1750|  29.4k|			{
 1751|  29.4k|				newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
 1752|  29.4k|			}
 1753|  41.9k|			}
 1754|       |
 1755|  41.9k|			if (newExt == nullptr)
  ------------------
  |  Branch (1755:8): [True: 8.23k, False: 33.7k]
  ------------------
 1756|  8.23k|			{
 1757|  8.23k|				PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
  ------------------
  |  |  425|  8.23k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  8.23k|	do                                                                                                                 \
  |  |  |  |  413|  8.23k|	{                                                                                                                  \
  |  |  |  |  414|  8.23k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  8.23k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  8.23k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 8.23k]
  |  |  |  |  ------------------
  |  |  |  |  416|  8.23k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  8.23k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 8.23k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1758|  8.23k|				                                                        << " skipping remaining extensions.");
 1759|  8.23k|				break;
 1760|  8.23k|			}
 1761|       |
 1762|       |			// Total length can be zero only if getLength() == 0xfffc which is way too large
 1763|       |			// and means that this extension (and packet) are malformed
 1764|  33.7k|			size_t newExtTotalLen = newExt->getTotalLength();
 1765|  33.7k|			if (newExtTotalLen == 0)
  ------------------
  |  Branch (1765:8): [True: 0, False: 33.7k]
  ------------------
 1766|      0|			{
 1767|      0|				break;
 1768|      0|			}
 1769|       |
 1770|  33.7k|			m_ExtensionList.pushBack(std::move(newExt));
 1771|  33.7k|			std::advance(extensionIt, newExtTotalLen);
 1772|  33.7k|		}
 1773|  18.4k|	}
_ZNK4pcpp21SSLServerHelloMessage19getHandshakeVersionEv:
 1776|  8.68k|	{
 1777|  8.68k|		SSLSupportedVersionsExtension* supportedVersionsExt = getExtensionOfType<SSLSupportedVersionsExtension>();
 1778|  8.68k|		if (supportedVersionsExt != nullptr)
  ------------------
  |  Branch (1778:7): [True: 606, False: 8.08k]
  ------------------
 1779|    606|		{
 1780|    606|			std::vector<SSLVersion> supportedVersions = supportedVersionsExt->getSupportedVersions();
 1781|    606|			if (supportedVersions.size() == 1)
  ------------------
  |  Branch (1781:8): [True: 562, False: 44]
  ------------------
 1782|    562|				return supportedVersions[0];
 1783|    606|		}
 1784|       |
 1785|  8.12k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint16_t))
  ------------------
  |  Branch (1785:7): [True: 0, False: 8.12k]
  ------------------
 1786|      0|			return SSLVersion(0);
 1787|       |
 1788|  8.12k|		uint16_t handshakeVersion = be16toh(getServerHelloHeader()->handshakeVersion);
 1789|  8.12k|		return SSLVersion(handshakeVersion);
 1790|  8.12k|	}
_ZNK4pcpp21SSLServerHelloMessage18getSessionIDLengthEv:
 1792|  63.7k|	{
 1793|  63.7k|		if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
  ------------------
  |  Branch (1793:7): [True: 11.3k, False: 52.4k]
  ------------------
 1794|  11.3k|			return 0;
 1795|       |
 1796|  52.4k|		uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
 1797|  52.4k|		if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
  ------------------
  |  Branch (1797:7): [True: 2.41k, False: 49.9k]
  ------------------
 1798|  2.41k|			return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
 1799|       |
 1800|  49.9k|		return val;
 1801|  52.4k|	}
_ZNK4pcpp21SSLServerHelloMessage12getSessionIDEv:
 1804|  4.34k|	{
 1805|  4.34k|		if (getSessionIDLength() > 0)
  ------------------
  |  Branch (1805:7): [True: 2.47k, False: 1.87k]
  ------------------
 1806|  2.47k|			return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
 1807|  1.87k|		else
 1808|  1.87k|			return nullptr;
 1809|  4.34k|	}
_ZNK4pcpp21SSLServerHelloMessage14getCipherSuiteEv:
 1812|  4.34k|	{
 1813|  4.34k|		bool isValid;
 1814|  4.34k|		uint16_t id = getCipherSuiteID(isValid);
 1815|  4.34k|		return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
  ------------------
  |  Branch (1815:11): [True: 2.96k, False: 1.37k]
  ------------------
 1816|  4.34k|	}
_ZNK4pcpp21SSLServerHelloMessage16getCipherSuiteIDERb:
 1819|  8.68k|	{
 1820|  8.68k|		size_t cipherSuiteStartOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
 1821|  8.68k|		if (cipherSuiteStartOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1821:7): [True: 2.75k, False: 5.93k]
  ------------------
 1822|  2.75k|		{
 1823|  2.75k|			isValid = false;
 1824|  2.75k|			return 0;
 1825|  2.75k|		}
 1826|       |
 1827|  5.93k|		isValid = true;
 1828|  5.93k|		uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
 1829|       |		return be16toh(*(cipherSuiteStartPos));
 1830|  8.68k|	}
_ZNK4pcpp21SSLServerHelloMessage26getCompressionMethodsValueEv:
 1833|  4.34k|	{
 1834|  4.34k|		size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
 1835|  4.34k|		if (offset + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (1835:7): [True: 1.37k, False: 2.96k]
  ------------------
 1836|  1.37k|			return 0xff;
 1837|       |
 1838|  2.96k|		uint8_t* pos = m_Data + offset;
 1839|  2.96k|		return *pos;
 1840|  4.34k|	}
_ZNK4pcpp21SSLServerHelloMessage17getExtensionCountEv:
 1843|  4.34k|	{
 1844|  4.34k|		return m_ExtensionList.size();
 1845|  4.34k|	}
_ZNK4pcpp21SSLServerHelloMessage19getExtensionsLengthEv:
 1848|  18.4k|	{
 1849|  18.4k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1850|  18.4k|		                               sizeof(uint16_t) + sizeof(uint8_t);
 1851|  18.4k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1851:7): [True: 0, False: 18.4k]
  ------------------
 1852|      0|			return 0;
 1853|       |
 1854|  18.4k|		uint16_t* extensionLengthPos = (uint16_t*)(m_Data + extensionLengthOffset);
 1855|       |		return be16toh(*extensionLengthPos);
 1856|  18.4k|	}
_ZNK4pcpp21SSLServerHelloMessage12getExtensionEi:
 1859|  5.14k|	{
 1860|  5.14k|		if (index < 0 || index >= (int)m_ExtensionList.size())
  ------------------
  |  Branch (1860:7): [True: 0, False: 5.14k]
  |  Branch (1860:20): [True: 0, False: 5.14k]
  ------------------
 1861|      0|			return nullptr;
 1862|       |
 1863|  5.14k|		return const_cast<SSLExtension*>(m_ExtensionList.at(index));
 1864|  5.14k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeEt:
 1867|  4.34k|	{
 1868|  4.34k|		size_t vecSize = m_ExtensionList.size();
 1869|  7.82k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1869:22): [True: 4.04k, False: 3.77k]
  ------------------
 1870|  4.04k|		{
 1871|  4.04k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1872|  4.04k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1872:8): [True: 570, False: 3.47k]
  ------------------
 1873|    570|				return curElem;
 1874|  4.04k|		}
 1875|       |
 1876|  3.77k|		return nullptr;
 1877|  4.34k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeENS_16SSLExtensionTypeE:
 1880|  4.34k|	{
 1881|  4.34k|		size_t vecSize = m_ExtensionList.size();
 1882|  7.82k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1882:22): [True: 4.04k, False: 3.77k]
  ------------------
 1883|  4.04k|		{
 1884|  4.04k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1885|  4.04k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1885:8): [True: 570, False: 3.47k]
  ------------------
 1886|    570|				return curElem;
 1887|  4.04k|		}
 1888|       |
 1889|  3.77k|		return nullptr;
 1890|  4.34k|	}
_ZNK4pcpp21SSLServerHelloMessage22generateTLSFingerprintEv:
 1893|  4.34k|	{
 1894|  4.34k|		SSLServerHelloMessage::ServerHelloTLSFingerprint result;
 1895|       |
 1896|       |		// extract version
 1897|  4.34k|		result.tlsVersion = getHandshakeVersion().asUInt();
 1898|       |
 1899|       |		// extract cipher suite
 1900|  4.34k|		bool isValid;
 1901|  4.34k|		uint16_t cipherSuite = getCipherSuiteID(isValid);
 1902|  4.34k|		result.cipherSuite = (isValid ? cipherSuite : 0);
  ------------------
  |  Branch (1902:25): [True: 2.96k, False: 1.37k]
  ------------------
 1903|       |
 1904|       |		// extract extensions
 1905|  4.34k|		int extensionCount = getExtensionCount();
 1906|  9.49k|		for (int i = 0; i < extensionCount; i++)
  ------------------
  |  Branch (1906:19): [True: 5.14k, False: 4.34k]
  ------------------
 1907|  5.14k|		{
 1908|  5.14k|			uint16_t extensionType = getExtension(i)->getTypeAsInt();
 1909|  5.14k|			result.extensions.push_back(extensionType);
 1910|  5.14k|		}
 1911|       |
 1912|  4.34k|		return result;
 1913|  4.34k|	}
_ZNK4pcpp21SSLServerHelloMessage8toStringEv:
 1916|  8.69k|	{
 1917|  8.69k|		return "Server Hello message";
 1918|  8.69k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint8toStringEv:
 1925|  4.34k|	{
 1926|  4.34k|		std::stringstream tlsFingerprint;
 1927|       |
 1928|       |		// add version and cipher suite
 1929|  4.34k|		tlsFingerprint << tlsVersion << "," << cipherSuite << ",";
 1930|       |
 1931|       |		// add extensions
 1932|  4.34k|		bool firstExtension = true;
 1933|  4.34k|		for (const auto& iter : extensions)
  ------------------
  |  Branch (1933:25): [True: 5.14k, False: 4.34k]
  ------------------
 1934|  5.14k|		{
 1935|  5.14k|			tlsFingerprint << (firstExtension ? "" : "-") << iter;
  ------------------
  |  Branch (1935:23): [True: 2.60k, False: 2.54k]
  ------------------
 1936|  5.14k|			firstExtension = false;
 1937|  5.14k|		}
 1938|       |
 1939|  4.34k|		return tlsFingerprint.str();
 1940|  4.34k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint5toMD5Ev:
 1943|  4.34k|	{
 1944|  4.34k|		return toStringAndMD5().second;
 1945|  4.34k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint14toStringAndMD5Ev:
 1948|  4.34k|	{
 1949|  4.34k|		std::string str = toString();
 1950|  4.34k|		MD5 md5;
 1951|  4.34k|		return std::pair<std::string, std::string>(str, md5(str));
 1952|  4.34k|	}
_ZN4pcpp21SSLCertificateMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1959|  8.45k|	    : SSLHandshakeMessage(data, dataLen, container)
 1960|  8.45k|	{
 1961|  8.45k|		if (dataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t) * 3)  // certificates length (3B)
  ------------------
  |  Branch (1961:7): [True: 0, False: 8.45k]
  ------------------
 1962|      0|			return;
 1963|       |
 1964|  8.45k|		size_t messageLen = getMessageLength();
 1965|       |		// read certificates length
 1966|       |		// TODO: certificates length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs
 1967|  8.45k|		uint8_t* curPos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);
 1968|  8.45k|		uint16_t certificatesLength = be16toh(*(uint16_t*)(curPos));
 1969|  8.45k|		if (certificatesLength == 0)
  ------------------
  |  Branch (1969:7): [True: 144, False: 8.30k]
  ------------------
 1970|    144|			return;
 1971|       |
 1972|       |		// advance to position of first certificate
 1973|  8.30k|		curPos += sizeof(uint16_t);
 1974|       |
 1975|  29.6k|		while (true)
  ------------------
  |  Branch (1975:10): [True: 29.6k, Folded]
  ------------------
 1976|  29.6k|		{
 1977|       |			// try to read certificate length (3B)
 1978|       |			// TODO: certificate length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs
 1979|  29.6k|			if (curPos + 3 * sizeof(uint8_t) - data > (int)messageLen)
  ------------------
  |  Branch (1979:8): [True: 8.30k, False: 21.3k]
  ------------------
 1980|  8.30k|				break;
 1981|       |
 1982|       |			// read certificate length
 1983|  21.3k|			curPos += sizeof(uint8_t);
 1984|  21.3k|			uint16_t certificateLength = be16toh(*(uint16_t*)(curPos));
 1985|       |
 1986|       |			// advance to start position of certificate
 1987|  21.3k|			curPos += sizeof(uint16_t);
 1988|       |
 1989|       |			// if packet doesn't contain the full certificate, read only what you got from current position till the
 1990|       |			// end of the packet
 1991|  21.3k|			bool certificateFull = true;
 1992|  21.3k|			if (curPos - data + certificateLength > (int)messageLen)
  ------------------
  |  Branch (1992:8): [True: 7.73k, False: 13.6k]
  ------------------
 1993|  7.73k|			{
 1994|  7.73k|				certificateLength = messageLen - (curPos - data);
 1995|  7.73k|				certificateFull = false;
 1996|  7.73k|			}
 1997|       |
 1998|  21.3k|			PCPP_LOG_DEBUG("Parsing certificate: pos=" << (int)(curPos - data) << "; len=" << certificateLength);
  ------------------
  |  |  425|  21.3k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  21.3k|	do                                                                                                                 \
  |  |  |  |  413|  21.3k|	{                                                                                                                  \
  |  |  |  |  414|  21.3k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  21.3k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  21.3k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 21.3k]
  |  |  |  |  ------------------
  |  |  |  |  416|  21.3k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  21.3k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 21.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1999|  21.3k|			SSLx509Certificate* newCert = new SSLx509Certificate(curPos, certificateLength, certificateFull);
 2000|  21.3k|			m_CertificateList.pushBack(newCert);
 2001|       |
 2002|  21.3k|			curPos += certificateLength;
 2003|  21.3k|		}
 2004|  8.30k|	}
_ZNK4pcpp21SSLCertificateMessage8toStringEv:
 2007|  2.66k|	{
 2008|  2.66k|		return "Certificate message";
 2009|  2.66k|	}
_ZNK4pcpp22SSLHelloRequestMessage8toStringEv:
 2033|  8.92k|	{
 2034|  8.92k|		return "Hello Request message";
 2035|  8.92k|	}
_ZNK4pcpp25SSLServerHelloDoneMessage8toStringEv:
 2042|    500|	{
 2043|    500|		return "Server Hello Done message";
 2044|    500|	}
_ZNK4pcpp27SSLServerKeyExchangeMessage8toStringEv:
 2068|  1.17k|	{
 2069|  1.17k|		return "Server Key Exchange message";
 2070|  1.17k|	}
_ZNK4pcpp27SSLClientKeyExchangeMessage8toStringEv:
 2094|    860|	{
 2095|    860|		return "Client Key Exchange message";
 2096|    860|	}
_ZN4pcpp28SSLCertificateRequestMessageC2EPhmPNS_17SSLHandshakeLayerE:
 2104|  12.7k|	    : SSLHandshakeMessage(data, dataLen, container)
 2105|  12.7k|	{
 2106|  12.7k|		size_t minMessageSize = sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);  // certificate types count (1B)
 2107|  12.7k|		if (dataLen < minMessageSize)
  ------------------
  |  Branch (2107:7): [True: 1.49k, False: 11.2k]
  ------------------
 2108|  1.49k|			return;
 2109|       |
 2110|  11.2k|		size_t messageLen = getMessageLength();
 2111|  11.2k|		if (messageLen < minMessageSize)
  ------------------
  |  Branch (2111:7): [True: 1.15k, False: 10.0k]
  ------------------
 2112|  1.15k|			return;
 2113|       |
 2114|  10.0k|		uint8_t certificateTypesCount = *(uint8_t*)(data + sizeof(ssl_tls_handshake_layer));
 2115|       |
 2116|  10.0k|		if (certificateTypesCount > messageLen - minMessageSize)
  ------------------
  |  Branch (2116:7): [True: 6.17k, False: 3.91k]
  ------------------
 2117|  6.17k|			certificateTypesCount = messageLen - minMessageSize;
 2118|       |
 2119|  10.0k|		uint8_t* pos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);
 2120|   270k|		for (uint8_t i = 0; i < certificateTypesCount; i++)
  ------------------
  |  Branch (2120:23): [True: 260k, False: 10.0k]
  ------------------
 2121|   260k|		{
 2122|   260k|			uint8_t certType = *(uint8_t*)(pos + i);
 2123|   260k|			if (certType == 0 || (certType > 6 && certType < 20) || (certType > 20 && certType < 64) || certType > 64)
  ------------------
  |  Branch (2123:8): [True: 19.1k, False: 241k]
  |  Branch (2123:26): [True: 213k, False: 28.0k]
  |  Branch (2123:42): [True: 21.0k, False: 192k]
  |  Branch (2123:61): [True: 179k, False: 40.2k]
  |  Branch (2123:78): [True: 19.7k, False: 160k]
  |  Branch (2123:96): [True: 151k, False: 48.9k]
  ------------------
 2124|   211k|				m_ClientCertificateTypes.push_back(SSL_CCT_UNKNOWN);
 2125|  48.9k|			else
 2126|  48.9k|				m_ClientCertificateTypes.push_back(static_cast<SSLClientCertificateType>(certType));
 2127|   260k|		}
 2128|  10.0k|	}
_ZNK4pcpp28SSLCertificateRequestMessage8toStringEv:
 2164|  3.99k|	{
 2165|  3.99k|		return "Certificate Request message";
 2166|  3.99k|	}
_ZNK4pcpp27SSLCertificateVerifyMessage8toStringEv:
 2190|    290|	{
 2191|    290|		return "Certificate Verify message";
 2192|    290|	}
_ZNK4pcpp18SSLFinishedMessage8toStringEv:
 2216|    292|	{
 2217|    292|		return "Finished message";
 2218|    292|	}
_ZNK4pcpp26SSLNewSessionTicketMessage8toStringEv:
 2242|    608|	{
 2243|    608|		return "New Session Ticket message";
 2244|    608|	}
_ZNK4pcpp17SSLUnknownMessage16getMessageLengthEv:
 2258|  97.0k|	{
 2259|       |		// if message type is unknown, it may be some encrypted message so message length isn't necessarily written
 2260|       |		// in clear. So in this case assume message is in length of all remaining data
 2261|  97.0k|		return m_DataLen;
 2262|  97.0k|	}
_ZNK4pcpp17SSLUnknownMessage8toStringEv:
 2265|  15.5k|	{
 2266|  15.5k|		return "Unknown message";
 2267|  15.5k|	}
SSLHandshake.cpp:_ZN4pcppL30createCipherSuiteIdToObjectMapEv:
  353|      2|	{
  354|      2|		std::unordered_map<uint16_t, SSLCipherSuite*> result;
  355|       |
  356|      2|		result[0x0000] = (SSLCipherSuite*)&Cipher1;
  357|      2|		result[0x0001] = (SSLCipherSuite*)&Cipher2;
  358|      2|		result[0x0002] = (SSLCipherSuite*)&Cipher3;
  359|      2|		result[0x0003] = (SSLCipherSuite*)&Cipher4;
  360|      2|		result[0x0004] = (SSLCipherSuite*)&Cipher5;
  361|      2|		result[0x0005] = (SSLCipherSuite*)&Cipher6;
  362|      2|		result[0x0006] = (SSLCipherSuite*)&Cipher7;
  363|      2|		result[0x0007] = (SSLCipherSuite*)&Cipher8;
  364|      2|		result[0x0008] = (SSLCipherSuite*)&Cipher9;
  365|      2|		result[0x0009] = (SSLCipherSuite*)&Cipher10;
  366|      2|		result[0x000A] = (SSLCipherSuite*)&Cipher11;
  367|      2|		result[0x000B] = (SSLCipherSuite*)&Cipher12;
  368|      2|		result[0x000C] = (SSLCipherSuite*)&Cipher13;
  369|      2|		result[0x000D] = (SSLCipherSuite*)&Cipher14;
  370|      2|		result[0x000E] = (SSLCipherSuite*)&Cipher15;
  371|      2|		result[0x000F] = (SSLCipherSuite*)&Cipher16;
  372|      2|		result[0x0010] = (SSLCipherSuite*)&Cipher17;
  373|      2|		result[0x0011] = (SSLCipherSuite*)&Cipher18;
  374|      2|		result[0x0012] = (SSLCipherSuite*)&Cipher19;
  375|      2|		result[0x0013] = (SSLCipherSuite*)&Cipher20;
  376|      2|		result[0x0014] = (SSLCipherSuite*)&Cipher21;
  377|      2|		result[0x0015] = (SSLCipherSuite*)&Cipher22;
  378|      2|		result[0x0016] = (SSLCipherSuite*)&Cipher23;
  379|      2|		result[0x0017] = (SSLCipherSuite*)&Cipher24;
  380|      2|		result[0x0018] = (SSLCipherSuite*)&Cipher25;
  381|      2|		result[0x0019] = (SSLCipherSuite*)&Cipher26;
  382|      2|		result[0x001A] = (SSLCipherSuite*)&Cipher27;
  383|      2|		result[0x001B] = (SSLCipherSuite*)&Cipher28;
  384|      2|		result[0x001E] = (SSLCipherSuite*)&Cipher29;
  385|      2|		result[0x001F] = (SSLCipherSuite*)&Cipher30;
  386|      2|		result[0x0020] = (SSLCipherSuite*)&Cipher31;
  387|      2|		result[0x0021] = (SSLCipherSuite*)&Cipher32;
  388|      2|		result[0x0022] = (SSLCipherSuite*)&Cipher33;
  389|      2|		result[0x0023] = (SSLCipherSuite*)&Cipher34;
  390|      2|		result[0x0024] = (SSLCipherSuite*)&Cipher35;
  391|      2|		result[0x0025] = (SSLCipherSuite*)&Cipher36;
  392|      2|		result[0x0026] = (SSLCipherSuite*)&Cipher37;
  393|      2|		result[0x0027] = (SSLCipherSuite*)&Cipher38;
  394|      2|		result[0x0028] = (SSLCipherSuite*)&Cipher39;
  395|      2|		result[0x0029] = (SSLCipherSuite*)&Cipher40;
  396|      2|		result[0x002A] = (SSLCipherSuite*)&Cipher41;
  397|      2|		result[0x002B] = (SSLCipherSuite*)&Cipher42;
  398|      2|		result[0x002C] = (SSLCipherSuite*)&Cipher43;
  399|      2|		result[0x002D] = (SSLCipherSuite*)&Cipher44;
  400|      2|		result[0x002E] = (SSLCipherSuite*)&Cipher45;
  401|      2|		result[0x002F] = (SSLCipherSuite*)&Cipher46;
  402|      2|		result[0x0030] = (SSLCipherSuite*)&Cipher47;
  403|      2|		result[0x0031] = (SSLCipherSuite*)&Cipher48;
  404|      2|		result[0x0032] = (SSLCipherSuite*)&Cipher49;
  405|      2|		result[0x0033] = (SSLCipherSuite*)&Cipher50;
  406|      2|		result[0x0034] = (SSLCipherSuite*)&Cipher51;
  407|      2|		result[0x0035] = (SSLCipherSuite*)&Cipher52;
  408|      2|		result[0x0036] = (SSLCipherSuite*)&Cipher53;
  409|      2|		result[0x0037] = (SSLCipherSuite*)&Cipher54;
  410|      2|		result[0x0038] = (SSLCipherSuite*)&Cipher55;
  411|      2|		result[0x0039] = (SSLCipherSuite*)&Cipher56;
  412|      2|		result[0x003A] = (SSLCipherSuite*)&Cipher57;
  413|      2|		result[0x003B] = (SSLCipherSuite*)&Cipher58;
  414|      2|		result[0x003C] = (SSLCipherSuite*)&Cipher59;
  415|      2|		result[0x003D] = (SSLCipherSuite*)&Cipher60;
  416|      2|		result[0x003E] = (SSLCipherSuite*)&Cipher61;
  417|      2|		result[0x003F] = (SSLCipherSuite*)&Cipher62;
  418|      2|		result[0x0040] = (SSLCipherSuite*)&Cipher63;
  419|      2|		result[0x0041] = (SSLCipherSuite*)&Cipher64;
  420|      2|		result[0x0042] = (SSLCipherSuite*)&Cipher65;
  421|      2|		result[0x0043] = (SSLCipherSuite*)&Cipher66;
  422|      2|		result[0x0044] = (SSLCipherSuite*)&Cipher67;
  423|      2|		result[0x0045] = (SSLCipherSuite*)&Cipher68;
  424|      2|		result[0x0046] = (SSLCipherSuite*)&Cipher69;
  425|      2|		result[0x0067] = (SSLCipherSuite*)&Cipher70;
  426|      2|		result[0x0068] = (SSLCipherSuite*)&Cipher71;
  427|      2|		result[0x0069] = (SSLCipherSuite*)&Cipher72;
  428|      2|		result[0x006A] = (SSLCipherSuite*)&Cipher73;
  429|      2|		result[0x006B] = (SSLCipherSuite*)&Cipher74;
  430|      2|		result[0x006C] = (SSLCipherSuite*)&Cipher75;
  431|      2|		result[0x006D] = (SSLCipherSuite*)&Cipher76;
  432|      2|		result[0x0084] = (SSLCipherSuite*)&Cipher77;
  433|      2|		result[0x0085] = (SSLCipherSuite*)&Cipher78;
  434|      2|		result[0x0086] = (SSLCipherSuite*)&Cipher79;
  435|      2|		result[0x0087] = (SSLCipherSuite*)&Cipher80;
  436|      2|		result[0x0088] = (SSLCipherSuite*)&Cipher81;
  437|      2|		result[0x0089] = (SSLCipherSuite*)&Cipher82;
  438|      2|		result[0x008A] = (SSLCipherSuite*)&Cipher83;
  439|      2|		result[0x008B] = (SSLCipherSuite*)&Cipher84;
  440|      2|		result[0x008C] = (SSLCipherSuite*)&Cipher85;
  441|      2|		result[0x008D] = (SSLCipherSuite*)&Cipher86;
  442|      2|		result[0x008E] = (SSLCipherSuite*)&Cipher87;
  443|      2|		result[0x008F] = (SSLCipherSuite*)&Cipher88;
  444|      2|		result[0x0090] = (SSLCipherSuite*)&Cipher89;
  445|      2|		result[0x0091] = (SSLCipherSuite*)&Cipher90;
  446|      2|		result[0x0092] = (SSLCipherSuite*)&Cipher91;
  447|      2|		result[0x0093] = (SSLCipherSuite*)&Cipher92;
  448|      2|		result[0x0094] = (SSLCipherSuite*)&Cipher93;
  449|      2|		result[0x0095] = (SSLCipherSuite*)&Cipher94;
  450|      2|		result[0x0096] = (SSLCipherSuite*)&Cipher95;
  451|      2|		result[0x0097] = (SSLCipherSuite*)&Cipher96;
  452|      2|		result[0x0098] = (SSLCipherSuite*)&Cipher97;
  453|      2|		result[0x0099] = (SSLCipherSuite*)&Cipher98;
  454|      2|		result[0x009A] = (SSLCipherSuite*)&Cipher99;
  455|      2|		result[0x009B] = (SSLCipherSuite*)&Cipher100;
  456|      2|		result[0x009C] = (SSLCipherSuite*)&Cipher101;
  457|      2|		result[0x009D] = (SSLCipherSuite*)&Cipher102;
  458|      2|		result[0x009E] = (SSLCipherSuite*)&Cipher103;
  459|      2|		result[0x009F] = (SSLCipherSuite*)&Cipher104;
  460|      2|		result[0x00A0] = (SSLCipherSuite*)&Cipher105;
  461|      2|		result[0x00A1] = (SSLCipherSuite*)&Cipher106;
  462|      2|		result[0x00A2] = (SSLCipherSuite*)&Cipher107;
  463|      2|		result[0x00A3] = (SSLCipherSuite*)&Cipher108;
  464|      2|		result[0x00A4] = (SSLCipherSuite*)&Cipher109;
  465|      2|		result[0x00A5] = (SSLCipherSuite*)&Cipher110;
  466|      2|		result[0x00A6] = (SSLCipherSuite*)&Cipher111;
  467|      2|		result[0x00A7] = (SSLCipherSuite*)&Cipher112;
  468|      2|		result[0x00A8] = (SSLCipherSuite*)&Cipher113;
  469|      2|		result[0x00A9] = (SSLCipherSuite*)&Cipher114;
  470|      2|		result[0x00AA] = (SSLCipherSuite*)&Cipher115;
  471|      2|		result[0x00AB] = (SSLCipherSuite*)&Cipher116;
  472|      2|		result[0x00AC] = (SSLCipherSuite*)&Cipher117;
  473|      2|		result[0x00AD] = (SSLCipherSuite*)&Cipher118;
  474|      2|		result[0x00AE] = (SSLCipherSuite*)&Cipher119;
  475|      2|		result[0x00AF] = (SSLCipherSuite*)&Cipher120;
  476|      2|		result[0x00B0] = (SSLCipherSuite*)&Cipher121;
  477|      2|		result[0x00B1] = (SSLCipherSuite*)&Cipher122;
  478|      2|		result[0x00B2] = (SSLCipherSuite*)&Cipher123;
  479|      2|		result[0x00B3] = (SSLCipherSuite*)&Cipher124;
  480|      2|		result[0x00B4] = (SSLCipherSuite*)&Cipher125;
  481|      2|		result[0x00B5] = (SSLCipherSuite*)&Cipher126;
  482|      2|		result[0x00B6] = (SSLCipherSuite*)&Cipher127;
  483|      2|		result[0x00B7] = (SSLCipherSuite*)&Cipher128;
  484|      2|		result[0x00B8] = (SSLCipherSuite*)&Cipher129;
  485|      2|		result[0x00B9] = (SSLCipherSuite*)&Cipher130;
  486|      2|		result[0x00BA] = (SSLCipherSuite*)&Cipher131;
  487|      2|		result[0x00BB] = (SSLCipherSuite*)&Cipher132;
  488|      2|		result[0x00BC] = (SSLCipherSuite*)&Cipher133;
  489|      2|		result[0x00BD] = (SSLCipherSuite*)&Cipher134;
  490|      2|		result[0x00BE] = (SSLCipherSuite*)&Cipher135;
  491|      2|		result[0x00BF] = (SSLCipherSuite*)&Cipher136;
  492|      2|		result[0x00C0] = (SSLCipherSuite*)&Cipher137;
  493|      2|		result[0x00C1] = (SSLCipherSuite*)&Cipher138;
  494|      2|		result[0x00C2] = (SSLCipherSuite*)&Cipher139;
  495|      2|		result[0x00C3] = (SSLCipherSuite*)&Cipher140;
  496|      2|		result[0x00C4] = (SSLCipherSuite*)&Cipher141;
  497|      2|		result[0x00C5] = (SSLCipherSuite*)&Cipher142;
  498|      2|		result[0xC001] = (SSLCipherSuite*)&Cipher143;
  499|      2|		result[0xC002] = (SSLCipherSuite*)&Cipher144;
  500|      2|		result[0xC003] = (SSLCipherSuite*)&Cipher145;
  501|      2|		result[0xC004] = (SSLCipherSuite*)&Cipher146;
  502|      2|		result[0xC005] = (SSLCipherSuite*)&Cipher147;
  503|      2|		result[0xC006] = (SSLCipherSuite*)&Cipher148;
  504|      2|		result[0xC007] = (SSLCipherSuite*)&Cipher149;
  505|      2|		result[0xC008] = (SSLCipherSuite*)&Cipher150;
  506|      2|		result[0xC009] = (SSLCipherSuite*)&Cipher151;
  507|      2|		result[0xC00A] = (SSLCipherSuite*)&Cipher152;
  508|      2|		result[0xC00B] = (SSLCipherSuite*)&Cipher153;
  509|      2|		result[0xC00C] = (SSLCipherSuite*)&Cipher154;
  510|      2|		result[0xC00D] = (SSLCipherSuite*)&Cipher155;
  511|      2|		result[0xC00E] = (SSLCipherSuite*)&Cipher156;
  512|      2|		result[0xC00F] = (SSLCipherSuite*)&Cipher157;
  513|      2|		result[0xC010] = (SSLCipherSuite*)&Cipher158;
  514|      2|		result[0xC011] = (SSLCipherSuite*)&Cipher159;
  515|      2|		result[0xC012] = (SSLCipherSuite*)&Cipher160;
  516|      2|		result[0xC013] = (SSLCipherSuite*)&Cipher161;
  517|      2|		result[0xC014] = (SSLCipherSuite*)&Cipher162;
  518|      2|		result[0xC015] = (SSLCipherSuite*)&Cipher163;
  519|      2|		result[0xC016] = (SSLCipherSuite*)&Cipher164;
  520|      2|		result[0xC017] = (SSLCipherSuite*)&Cipher165;
  521|      2|		result[0xC018] = (SSLCipherSuite*)&Cipher166;
  522|      2|		result[0xC019] = (SSLCipherSuite*)&Cipher167;
  523|      2|		result[0xC01A] = (SSLCipherSuite*)&Cipher168;
  524|      2|		result[0xC01B] = (SSLCipherSuite*)&Cipher169;
  525|      2|		result[0xC01C] = (SSLCipherSuite*)&Cipher170;
  526|      2|		result[0xC01D] = (SSLCipherSuite*)&Cipher171;
  527|      2|		result[0xC01E] = (SSLCipherSuite*)&Cipher172;
  528|      2|		result[0xC01F] = (SSLCipherSuite*)&Cipher173;
  529|      2|		result[0xC020] = (SSLCipherSuite*)&Cipher174;
  530|      2|		result[0xC021] = (SSLCipherSuite*)&Cipher175;
  531|      2|		result[0xC022] = (SSLCipherSuite*)&Cipher176;
  532|      2|		result[0xC023] = (SSLCipherSuite*)&Cipher177;
  533|      2|		result[0xC024] = (SSLCipherSuite*)&Cipher178;
  534|      2|		result[0xC025] = (SSLCipherSuite*)&Cipher179;
  535|      2|		result[0xC026] = (SSLCipherSuite*)&Cipher180;
  536|      2|		result[0xC027] = (SSLCipherSuite*)&Cipher181;
  537|      2|		result[0xC028] = (SSLCipherSuite*)&Cipher182;
  538|      2|		result[0xC029] = (SSLCipherSuite*)&Cipher183;
  539|      2|		result[0xC02A] = (SSLCipherSuite*)&Cipher184;
  540|      2|		result[0xC02B] = (SSLCipherSuite*)&Cipher185;
  541|      2|		result[0xC02C] = (SSLCipherSuite*)&Cipher186;
  542|      2|		result[0xC02D] = (SSLCipherSuite*)&Cipher187;
  543|      2|		result[0xC02E] = (SSLCipherSuite*)&Cipher188;
  544|      2|		result[0xC02F] = (SSLCipherSuite*)&Cipher189;
  545|      2|		result[0xC030] = (SSLCipherSuite*)&Cipher190;
  546|      2|		result[0xC031] = (SSLCipherSuite*)&Cipher191;
  547|      2|		result[0xC032] = (SSLCipherSuite*)&Cipher192;
  548|      2|		result[0xC033] = (SSLCipherSuite*)&Cipher193;
  549|      2|		result[0xC034] = (SSLCipherSuite*)&Cipher194;
  550|      2|		result[0xC035] = (SSLCipherSuite*)&Cipher195;
  551|      2|		result[0xC036] = (SSLCipherSuite*)&Cipher196;
  552|      2|		result[0xC037] = (SSLCipherSuite*)&Cipher197;
  553|      2|		result[0xC038] = (SSLCipherSuite*)&Cipher198;
  554|      2|		result[0xC039] = (SSLCipherSuite*)&Cipher199;
  555|      2|		result[0xC03A] = (SSLCipherSuite*)&Cipher200;
  556|      2|		result[0xC03B] = (SSLCipherSuite*)&Cipher201;
  557|      2|		result[0xC03C] = (SSLCipherSuite*)&Cipher202;
  558|      2|		result[0xC03D] = (SSLCipherSuite*)&Cipher203;
  559|      2|		result[0xC03E] = (SSLCipherSuite*)&Cipher204;
  560|      2|		result[0xC03F] = (SSLCipherSuite*)&Cipher205;
  561|      2|		result[0xC040] = (SSLCipherSuite*)&Cipher206;
  562|      2|		result[0xC041] = (SSLCipherSuite*)&Cipher207;
  563|      2|		result[0xC042] = (SSLCipherSuite*)&Cipher208;
  564|      2|		result[0xC043] = (SSLCipherSuite*)&Cipher209;
  565|      2|		result[0xC044] = (SSLCipherSuite*)&Cipher210;
  566|      2|		result[0xC045] = (SSLCipherSuite*)&Cipher211;
  567|      2|		result[0xC046] = (SSLCipherSuite*)&Cipher212;
  568|      2|		result[0xC047] = (SSLCipherSuite*)&Cipher213;
  569|      2|		result[0xC048] = (SSLCipherSuite*)&Cipher214;
  570|      2|		result[0xC049] = (SSLCipherSuite*)&Cipher215;
  571|      2|		result[0xC04A] = (SSLCipherSuite*)&Cipher216;
  572|      2|		result[0xC04B] = (SSLCipherSuite*)&Cipher217;
  573|      2|		result[0xC04C] = (SSLCipherSuite*)&Cipher218;
  574|      2|		result[0xC04D] = (SSLCipherSuite*)&Cipher219;
  575|      2|		result[0xC04E] = (SSLCipherSuite*)&Cipher220;
  576|      2|		result[0xC04F] = (SSLCipherSuite*)&Cipher221;
  577|      2|		result[0xC050] = (SSLCipherSuite*)&Cipher222;
  578|      2|		result[0xC051] = (SSLCipherSuite*)&Cipher223;
  579|      2|		result[0xC052] = (SSLCipherSuite*)&Cipher224;
  580|      2|		result[0xC053] = (SSLCipherSuite*)&Cipher225;
  581|      2|		result[0xC054] = (SSLCipherSuite*)&Cipher226;
  582|      2|		result[0xC055] = (SSLCipherSuite*)&Cipher227;
  583|      2|		result[0xC056] = (SSLCipherSuite*)&Cipher228;
  584|      2|		result[0xC057] = (SSLCipherSuite*)&Cipher229;
  585|      2|		result[0xC058] = (SSLCipherSuite*)&Cipher230;
  586|      2|		result[0xC059] = (SSLCipherSuite*)&Cipher231;
  587|      2|		result[0xC05A] = (SSLCipherSuite*)&Cipher232;
  588|      2|		result[0xC05B] = (SSLCipherSuite*)&Cipher233;
  589|      2|		result[0xC05C] = (SSLCipherSuite*)&Cipher234;
  590|      2|		result[0xC05D] = (SSLCipherSuite*)&Cipher235;
  591|      2|		result[0xC05E] = (SSLCipherSuite*)&Cipher236;
  592|      2|		result[0xC05F] = (SSLCipherSuite*)&Cipher237;
  593|      2|		result[0xC060] = (SSLCipherSuite*)&Cipher238;
  594|      2|		result[0xC061] = (SSLCipherSuite*)&Cipher239;
  595|      2|		result[0xC062] = (SSLCipherSuite*)&Cipher240;
  596|      2|		result[0xC063] = (SSLCipherSuite*)&Cipher241;
  597|      2|		result[0xC064] = (SSLCipherSuite*)&Cipher242;
  598|      2|		result[0xC065] = (SSLCipherSuite*)&Cipher243;
  599|      2|		result[0xC066] = (SSLCipherSuite*)&Cipher244;
  600|      2|		result[0xC067] = (SSLCipherSuite*)&Cipher245;
  601|      2|		result[0xC068] = (SSLCipherSuite*)&Cipher246;
  602|      2|		result[0xC069] = (SSLCipherSuite*)&Cipher247;
  603|      2|		result[0xC06A] = (SSLCipherSuite*)&Cipher248;
  604|      2|		result[0xC06B] = (SSLCipherSuite*)&Cipher249;
  605|      2|		result[0xC06C] = (SSLCipherSuite*)&Cipher250;
  606|      2|		result[0xC06D] = (SSLCipherSuite*)&Cipher251;
  607|      2|		result[0xC06E] = (SSLCipherSuite*)&Cipher252;
  608|      2|		result[0xC06F] = (SSLCipherSuite*)&Cipher253;
  609|      2|		result[0xC070] = (SSLCipherSuite*)&Cipher254;
  610|      2|		result[0xC071] = (SSLCipherSuite*)&Cipher255;
  611|      2|		result[0xC072] = (SSLCipherSuite*)&Cipher256;
  612|      2|		result[0xC073] = (SSLCipherSuite*)&Cipher257;
  613|      2|		result[0xC074] = (SSLCipherSuite*)&Cipher258;
  614|      2|		result[0xC075] = (SSLCipherSuite*)&Cipher259;
  615|      2|		result[0xC076] = (SSLCipherSuite*)&Cipher260;
  616|      2|		result[0xC077] = (SSLCipherSuite*)&Cipher261;
  617|      2|		result[0xC078] = (SSLCipherSuite*)&Cipher262;
  618|      2|		result[0xC079] = (SSLCipherSuite*)&Cipher263;
  619|      2|		result[0xC07A] = (SSLCipherSuite*)&Cipher264;
  620|      2|		result[0xC07B] = (SSLCipherSuite*)&Cipher265;
  621|      2|		result[0xC07C] = (SSLCipherSuite*)&Cipher266;
  622|      2|		result[0xC07D] = (SSLCipherSuite*)&Cipher267;
  623|      2|		result[0xC07E] = (SSLCipherSuite*)&Cipher268;
  624|      2|		result[0xC07F] = (SSLCipherSuite*)&Cipher269;
  625|      2|		result[0xC080] = (SSLCipherSuite*)&Cipher270;
  626|      2|		result[0xC081] = (SSLCipherSuite*)&Cipher271;
  627|      2|		result[0xC082] = (SSLCipherSuite*)&Cipher272;
  628|      2|		result[0xC083] = (SSLCipherSuite*)&Cipher273;
  629|      2|		result[0xC084] = (SSLCipherSuite*)&Cipher274;
  630|      2|		result[0xC085] = (SSLCipherSuite*)&Cipher275;
  631|      2|		result[0xC086] = (SSLCipherSuite*)&Cipher276;
  632|      2|		result[0xC087] = (SSLCipherSuite*)&Cipher277;
  633|      2|		result[0xC088] = (SSLCipherSuite*)&Cipher278;
  634|      2|		result[0xC089] = (SSLCipherSuite*)&Cipher279;
  635|      2|		result[0xC08A] = (SSLCipherSuite*)&Cipher280;
  636|      2|		result[0xC08B] = (SSLCipherSuite*)&Cipher281;
  637|      2|		result[0xC08C] = (SSLCipherSuite*)&Cipher282;
  638|      2|		result[0xC08D] = (SSLCipherSuite*)&Cipher283;
  639|      2|		result[0xC08E] = (SSLCipherSuite*)&Cipher284;
  640|      2|		result[0xC08F] = (SSLCipherSuite*)&Cipher285;
  641|      2|		result[0xC090] = (SSLCipherSuite*)&Cipher286;
  642|      2|		result[0xC091] = (SSLCipherSuite*)&Cipher287;
  643|      2|		result[0xC092] = (SSLCipherSuite*)&Cipher288;
  644|      2|		result[0xC093] = (SSLCipherSuite*)&Cipher289;
  645|      2|		result[0xC094] = (SSLCipherSuite*)&Cipher290;
  646|      2|		result[0xC095] = (SSLCipherSuite*)&Cipher291;
  647|      2|		result[0xC096] = (SSLCipherSuite*)&Cipher292;
  648|      2|		result[0xC097] = (SSLCipherSuite*)&Cipher293;
  649|      2|		result[0xC098] = (SSLCipherSuite*)&Cipher294;
  650|      2|		result[0xC099] = (SSLCipherSuite*)&Cipher295;
  651|      2|		result[0xC09A] = (SSLCipherSuite*)&Cipher296;
  652|      2|		result[0xC09B] = (SSLCipherSuite*)&Cipher297;
  653|      2|		result[0xC09C] = (SSLCipherSuite*)&Cipher298;
  654|      2|		result[0xC09D] = (SSLCipherSuite*)&Cipher299;
  655|      2|		result[0xC09E] = (SSLCipherSuite*)&Cipher300;
  656|      2|		result[0xC09F] = (SSLCipherSuite*)&Cipher301;
  657|      2|		result[0xC0A0] = (SSLCipherSuite*)&Cipher302;
  658|      2|		result[0xC0A1] = (SSLCipherSuite*)&Cipher303;
  659|      2|		result[0xC0A2] = (SSLCipherSuite*)&Cipher304;
  660|      2|		result[0xC0A3] = (SSLCipherSuite*)&Cipher305;
  661|      2|		result[0xC0A4] = (SSLCipherSuite*)&Cipher306;
  662|      2|		result[0xC0A5] = (SSLCipherSuite*)&Cipher307;
  663|      2|		result[0xC0A6] = (SSLCipherSuite*)&Cipher308;
  664|      2|		result[0xC0A7] = (SSLCipherSuite*)&Cipher309;
  665|      2|		result[0xC0A8] = (SSLCipherSuite*)&Cipher310;
  666|      2|		result[0xC0A9] = (SSLCipherSuite*)&Cipher311;
  667|      2|		result[0xC0AA] = (SSLCipherSuite*)&Cipher312;
  668|      2|		result[0xC0AB] = (SSLCipherSuite*)&Cipher313;
  669|      2|		result[0xC0AC] = (SSLCipherSuite*)&Cipher314;
  670|      2|		result[0xC0AD] = (SSLCipherSuite*)&Cipher315;
  671|      2|		result[0xC0AE] = (SSLCipherSuite*)&Cipher316;
  672|      2|		result[0xC0AF] = (SSLCipherSuite*)&Cipher317;
  673|      2|		result[0xCCA8] = (SSLCipherSuite*)&Cipher318;
  674|      2|		result[0xCCA9] = (SSLCipherSuite*)&Cipher319;
  675|      2|		result[0xCCAA] = (SSLCipherSuite*)&Cipher320;
  676|      2|		result[0xCCAB] = (SSLCipherSuite*)&Cipher321;
  677|      2|		result[0xCCAC] = (SSLCipherSuite*)&Cipher322;
  678|      2|		result[0xCCAD] = (SSLCipherSuite*)&Cipher323;
  679|      2|		result[0xCCAE] = (SSLCipherSuite*)&Cipher324;
  680|      2|		result[0x1301] = (SSLCipherSuite*)&Cipher325;
  681|      2|		result[0x1302] = (SSLCipherSuite*)&Cipher326;
  682|      2|		result[0x1303] = (SSLCipherSuite*)&Cipher327;
  683|      2|		result[0x1304] = (SSLCipherSuite*)&Cipher328;
  684|      2|		result[0x1305] = (SSLCipherSuite*)&Cipher329;
  685|      2|		return result;
  686|      2|	}
SSLHandshake.cpp:_ZN4pcppL34createCipherSuiteStringToObjectMapEv:
  704|      2|	{
  705|      2|		std::unordered_map<uint32_t, SSLCipherSuite*> result;
  706|       |
  707|      2|		result[0x9F180F43] = (SSLCipherSuite*)&Cipher1;
  708|      2|		result[0x97D9341F] = (SSLCipherSuite*)&Cipher2;
  709|      2|		result[0x288FABA1] = (SSLCipherSuite*)&Cipher3;
  710|      2|		result[0x9179C5BD] = (SSLCipherSuite*)&Cipher4;
  711|      2|		result[0x68DF0C8F] = (SSLCipherSuite*)&Cipher5;
  712|      2|		result[0x5FB32DF1] = (SSLCipherSuite*)&Cipher6;
  713|      2|		result[0x2A1FC0FC] = (SSLCipherSuite*)&Cipher7;
  714|      2|		result[0x5BF6459E] = (SSLCipherSuite*)&Cipher8;
  715|      2|		result[0x60D692F4] = (SSLCipherSuite*)&Cipher9;
  716|      2|		result[0x26A21427] = (SSLCipherSuite*)&Cipher10;
  717|      2|		result[0xD3558C6D] = (SSLCipherSuite*)&Cipher11;
  718|      2|		result[0xAE2673E9] = (SSLCipherSuite*)&Cipher12;
  719|      2|		result[0xC63B19B0] = (SSLCipherSuite*)&Cipher13;
  720|      2|		result[0xFE49B3BC] = (SSLCipherSuite*)&Cipher14;
  721|      2|		result[0x625A86D5] = (SSLCipherSuite*)&Cipher15;
  722|      2|		result[0x60FF1BD4] = (SSLCipherSuite*)&Cipher16;
  723|      2|		result[0xE101D5C8] = (SSLCipherSuite*)&Cipher17;
  724|      2|		result[0x422859E8] = (SSLCipherSuite*)&Cipher18;
  725|      2|		result[0x88ABC503] = (SSLCipherSuite*)&Cipher19;
  726|      2|		result[0x44284B1] = (SSLCipherSuite*)&Cipher20;
  727|      2|		result[0xFD71B064] = (SSLCipherSuite*)&Cipher21;
  728|      2|		result[0x76F35237] = (SSLCipherSuite*)&Cipher22;
  729|      2|		result[0x7D93159D] = (SSLCipherSuite*)&Cipher23;
  730|      2|		result[0x6E9D1AE2] = (SSLCipherSuite*)&Cipher24;
  731|      2|		result[0xFA0974E4] = (SSLCipherSuite*)&Cipher25;
  732|      2|		result[0xEC27ACB1] = (SSLCipherSuite*)&Cipher26;
  733|      2|		result[0x6859C7A8] = (SSLCipherSuite*)&Cipher27;
  734|      2|		result[0x55FD3D14] = (SSLCipherSuite*)&Cipher28;
  735|      2|		result[0xA7650023] = (SSLCipherSuite*)&Cipher29;
  736|      2|		result[0xDC042011] = (SSLCipherSuite*)&Cipher30;
  737|      2|		result[0x94BFBF4D] = (SSLCipherSuite*)&Cipher31;
  738|      2|		result[0x2FE24162] = (SSLCipherSuite*)&Cipher32;
  739|      2|		result[0xC449D595] = (SSLCipherSuite*)&Cipher33;
  740|      2|		result[0xE11292AF] = (SSLCipherSuite*)&Cipher34;
  741|      2|		result[0x47D0643] = (SSLCipherSuite*)&Cipher35;
  742|      2|		result[0xC9ABBA3C] = (SSLCipherSuite*)&Cipher36;
  743|      2|		result[0x9F323A5F] = (SSLCipherSuite*)&Cipher37;
  744|      2|		result[0xFBF78046] = (SSLCipherSuite*)&Cipher38;
  745|      2|		result[0x859BD79F] = (SSLCipherSuite*)&Cipher39;
  746|      2|		result[0xF9FBBB39] = (SSLCipherSuite*)&Cipher40;
  747|      2|		result[0x63587748] = (SSLCipherSuite*)&Cipher41;
  748|      2|		result[0xF84CAE79] = (SSLCipherSuite*)&Cipher42;
  749|      2|		result[0xCA39F6F1] = (SSLCipherSuite*)&Cipher43;
  750|      2|		result[0xDC4D17C1] = (SSLCipherSuite*)&Cipher44;
  751|      2|		result[0x955FBE28] = (SSLCipherSuite*)&Cipher45;
  752|      2|		result[0x73ED7B86] = (SSLCipherSuite*)&Cipher46;
  753|      2|		result[0x14A51855] = (SSLCipherSuite*)&Cipher47;
  754|      2|		result[0x2CE54061] = (SSLCipherSuite*)&Cipher48;
  755|      2|		result[0x3360789A] = (SSLCipherSuite*)&Cipher49;
  756|      2|		result[0xDFEF59B6] = (SSLCipherSuite*)&Cipher50;
  757|      2|		result[0xE819855D] = (SSLCipherSuite*)&Cipher51;
  758|      2|		result[0x24CC3946] = (SSLCipherSuite*)&Cipher52;
  759|      2|		result[0x1CACB5FD] = (SSLCipherSuite*)&Cipher53;
  760|      2|		result[0x40193001] = (SSLCipherSuite*)&Cipher54;
  761|      2|		result[0xA3846DA2] = (SSLCipherSuite*)&Cipher55;
  762|      2|		result[0x8F3B7CF6] = (SSLCipherSuite*)&Cipher56;
  763|      2|		result[0xC7B09945] = (SSLCipherSuite*)&Cipher57;
  764|      2|		result[0xD8172F82] = (SSLCipherSuite*)&Cipher58;
  765|      2|		result[0xB6748503] = (SSLCipherSuite*)&Cipher59;
  766|      2|		result[0xDB105043] = (SSLCipherSuite*)&Cipher60;
  767|      2|		result[0x21E8AC2E] = (SSLCipherSuite*)&Cipher61;
  768|      2|		result[0x55096FC2] = (SSLCipherSuite*)&Cipher62;
  769|      2|		result[0x38F955AF] = (SSLCipherSuite*)&Cipher63;
  770|      2|		result[0xBA8C1D77] = (SSLCipherSuite*)&Cipher64;
  771|      2|		result[0x91128102] = (SSLCipherSuite*)&Cipher65;
  772|      2|		result[0xA7ED740E] = (SSLCipherSuite*)&Cipher66;
  773|      2|		result[0x75C4908B] = (SSLCipherSuite*)&Cipher67;
  774|      2|		result[0xBC6C5E87] = (SSLCipherSuite*)&Cipher68;
  775|      2|		result[0xA0499A2A] = (SSLCipherSuite*)&Cipher69;
  776|      2|		result[0x4F0FFC13] = (SSLCipherSuite*)&Cipher70;
  777|      2|		result[0xCCEE9996] = (SSLCipherSuite*)&Cipher71;
  778|      2|		result[0x8570DA22] = (SSLCipherSuite*)&Cipher72;
  779|      2|		result[0x75D4FD57] = (SSLCipherSuite*)&Cipher73;
  780|      2|		result[0x602E04D3] = (SSLCipherSuite*)&Cipher74;
  781|      2|		result[0x5EDC9C36] = (SSLCipherSuite*)&Cipher75;
  782|      2|		result[0xE66C167E] = (SSLCipherSuite*)&Cipher76;
  783|      2|		result[0x909F6D7B] = (SSLCipherSuite*)&Cipher77;
  784|      2|		result[0x3C35B1AA] = (SSLCipherSuite*)&Cipher78;
  785|      2|		result[0x6D4D1A2E] = (SSLCipherSuite*)&Cipher79;
  786|      2|		result[0xBF788317] = (SSLCipherSuite*)&Cipher80;
  787|      2|		result[0x5329738B] = (SSLCipherSuite*)&Cipher81;
  788|      2|		result[0x7D11AB2] = (SSLCipherSuite*)&Cipher82;
  789|      2|		result[0x461ACA21] = (SSLCipherSuite*)&Cipher83;
  790|      2|		result[0x15404ADD] = (SSLCipherSuite*)&Cipher84;
  791|      2|		result[0x3806AF6] = (SSLCipherSuite*)&Cipher85;
  792|      2|		result[0xB2D80EB6] = (SSLCipherSuite*)&Cipher86;
  793|      2|		result[0xE54425D1] = (SSLCipherSuite*)&Cipher87;
  794|      2|		result[0x476457CD] = (SSLCipherSuite*)&Cipher88;
  795|      2|		result[0x1D55E526] = (SSLCipherSuite*)&Cipher89;
  796|      2|		result[0x953C69E6] = (SSLCipherSuite*)&Cipher90;
  797|      2|		result[0x6ADE7E16] = (SSLCipherSuite*)&Cipher91;
  798|      2|		result[0xE8C7BBE8] = (SSLCipherSuite*)&Cipher92;
  799|      2|		result[0x623DC741] = (SSLCipherSuite*)&Cipher93;
  800|      2|		result[0xF403E1] = (SSLCipherSuite*)&Cipher94;
  801|      2|		result[0x90D8CADC] = (SSLCipherSuite*)&Cipher95;
  802|      2|		result[0xC30D1199] = (SSLCipherSuite*)&Cipher96;
  803|      2|		result[0x9CFB1B5D] = (SSLCipherSuite*)&Cipher97;
  804|      2|		result[0x2D3B99E8] = (SSLCipherSuite*)&Cipher98;
  805|      2|		result[0x4A9E8B0C] = (SSLCipherSuite*)&Cipher99;
  806|      2|		result[0x16BD2351] = (SSLCipherSuite*)&Cipher100;
  807|      2|		result[0x586BC20E] = (SSLCipherSuite*)&Cipher101;
  808|      2|		result[0x996B90AA] = (SSLCipherSuite*)&Cipher102;
  809|      2|		result[0x2F3871FE] = (SSLCipherSuite*)&Cipher103;
  810|      2|		result[0xF2DD519A] = (SSLCipherSuite*)&Cipher104;
  811|      2|		result[0x52615F23] = (SSLCipherSuite*)&Cipher105;
  812|      2|		result[0xDEE51337] = (SSLCipherSuite*)&Cipher106;
  813|      2|		result[0xB30890E2] = (SSLCipherSuite*)&Cipher107;
  814|      2|		result[0x40F3FF3E] = (SSLCipherSuite*)&Cipher108;
  815|      2|		result[0xE306EE17] = (SSLCipherSuite*)&Cipher109;
  816|      2|		result[0x870C6FCB] = (SSLCipherSuite*)&Cipher110;
  817|      2|		result[0xEB12CAEF] = (SSLCipherSuite*)&Cipher111;
  818|      2|		result[0x68795983] = (SSLCipherSuite*)&Cipher112;
  819|      2|		result[0x606BA9BE] = (SSLCipherSuite*)&Cipher113;
  820|      2|		result[0x2C33475A] = (SSLCipherSuite*)&Cipher114;
  821|      2|		result[0x640CAAEE] = (SSLCipherSuite*)&Cipher115;
  822|      2|		result[0x6603488A] = (SSLCipherSuite*)&Cipher116;
  823|      2|		result[0x8BA58643] = (SSLCipherSuite*)&Cipher117;
  824|      2|		result[0x16059E57] = (SSLCipherSuite*)&Cipher118;
  825|      2|		result[0x1B0606D3] = (SSLCipherSuite*)&Cipher119;
  826|      2|		result[0x1CF76007] = (SSLCipherSuite*)&Cipher120;
  827|      2|		result[0x618CE8F2] = (SSLCipherSuite*)&Cipher121;
  828|      2|		result[0xE264D3B6] = (SSLCipherSuite*)&Cipher122;
  829|      2|		result[0xB4C5AE63] = (SSLCipherSuite*)&Cipher123;
  830|      2|		result[0x95DF4757] = (SSLCipherSuite*)&Cipher124;
  831|      2|		result[0x1D1CF062] = (SSLCipherSuite*)&Cipher125;
  832|      2|		result[0xE7AA2826] = (SSLCipherSuite*)&Cipher126;
  833|      2|		result[0x38D94EE2] = (SSLCipherSuite*)&Cipher127;
  834|      2|		result[0x889BA306] = (SSLCipherSuite*)&Cipher128;
  835|      2|		result[0x5B816E75] = (SSLCipherSuite*)&Cipher129;
  836|      2|		result[0x6F18C4DD] = (SSLCipherSuite*)&Cipher130;
  837|      2|		result[0x2E1C05E0] = (SSLCipherSuite*)&Cipher131;
  838|      2|		result[0x5592CFF7] = (SSLCipherSuite*)&Cipher132;
  839|      2|		result[0x8221D38B] = (SSLCipherSuite*)&Cipher133;
  840|      2|		result[0x9538105C] = (SSLCipherSuite*)&Cipher134;
  841|      2|		result[0xF1100DD0] = (SSLCipherSuite*)&Cipher135;
  842|      2|		result[0xF492EF1F] = (SSLCipherSuite*)&Cipher136;
  843|      2|		result[0x226BD52C] = (SSLCipherSuite*)&Cipher137;
  844|      2|		result[0xBBACE99F] = (SSLCipherSuite*)&Cipher138;
  845|      2|		result[0xB3D4B66B] = (SSLCipherSuite*)&Cipher139;
  846|      2|		result[0x8C619440] = (SSLCipherSuite*)&Cipher140;
  847|      2|		result[0xE60B95C] = (SSLCipherSuite*)&Cipher141;
  848|      2|		result[0x24F48D07] = (SSLCipherSuite*)&Cipher142;
  849|      2|		result[0x15C7AF26] = (SSLCipherSuite*)&Cipher143;
  850|      2|		result[0xCBA219CC] = (SSLCipherSuite*)&Cipher144;
  851|      2|		result[0x9BD946BE] = (SSLCipherSuite*)&Cipher145;
  852|      2|		result[0x7CCA46FF] = (SSLCipherSuite*)&Cipher146;
  853|      2|		result[0x9FB51FA3] = (SSLCipherSuite*)&Cipher147;
  854|      2|		result[0xC82A275B] = (SSLCipherSuite*)&Cipher148;
  855|      2|		result[0x4472A583] = (SSLCipherSuite*)&Cipher149;
  856|      2|		result[0xDBA3A5CF] = (SSLCipherSuite*)&Cipher150;
  857|      2|		result[0x86338128] = (SSLCipherSuite*)&Cipher151;
  858|      2|		result[0x8CCE91E4] = (SSLCipherSuite*)&Cipher152;
  859|      2|		result[0xA81C6CA0] = (SSLCipherSuite*)&Cipher153;
  860|      2|		result[0x6D80815E] = (SSLCipherSuite*)&Cipher154;
  861|      2|		result[0xA383DEB0] = (SSLCipherSuite*)&Cipher155;
  862|      2|		result[0x52073879] = (SSLCipherSuite*)&Cipher156;
  863|      2|		result[0x5BA0B279] = (SSLCipherSuite*)&Cipher157;
  864|      2|		result[0xD787CCC9] = (SSLCipherSuite*)&Cipher158;
  865|      2|		result[0x9C86C6A9] = (SSLCipherSuite*)&Cipher159;
  866|      2|		result[0xDAE424E5] = (SSLCipherSuite*)&Cipher160;
  867|      2|		result[0x72C15ECE] = (SSLCipherSuite*)&Cipher161;
  868|      2|		result[0xF0E8FB6E] = (SSLCipherSuite*)&Cipher162;
  869|      2|		result[0xA2005D44] = (SSLCipherSuite*)&Cipher163;
  870|      2|		result[0x77F79962] = (SSLCipherSuite*)&Cipher164;
  871|      2|		result[0x25C8184C] = (SSLCipherSuite*)&Cipher165;
  872|      2|		result[0x2070F8A5] = (SSLCipherSuite*)&Cipher166;
  873|      2|		result[0x4189ED8D] = (SSLCipherSuite*)&Cipher167;
  874|      2|		result[0x94C21B1] = (SSLCipherSuite*)&Cipher168;
  875|      2|		result[0x1B0CB25C] = (SSLCipherSuite*)&Cipher169;
  876|      2|		result[0xF18127A0] = (SSLCipherSuite*)&Cipher170;
  877|      2|		result[0xC7FCA79A] = (SSLCipherSuite*)&Cipher171;
  878|      2|		result[0xC1DEE135] = (SSLCipherSuite*)&Cipher172;
  879|      2|		result[0xDA7143E9] = (SSLCipherSuite*)&Cipher173;
  880|      2|		result[0xE82B6A2] = (SSLCipherSuite*)&Cipher174;
  881|      2|		result[0x438EC1DD] = (SSLCipherSuite*)&Cipher175;
  882|      2|		result[0x6BE32FA9] = (SSLCipherSuite*)&Cipher176;
  883|      2|		result[0x18A5C375] = (SSLCipherSuite*)&Cipher177;
  884|      2|		result[0x24136C59] = (SSLCipherSuite*)&Cipher178;
  885|      2|		result[0x88529408] = (SSLCipherSuite*)&Cipher179;
  886|      2|		result[0xADAB33FC] = (SSLCipherSuite*)&Cipher180;
  887|      2|		result[0x79407DCB] = (SSLCipherSuite*)&Cipher181;
  888|      2|		result[0x64970FFF] = (SSLCipherSuite*)&Cipher182;
  889|      2|		result[0x8260DC9A] = (SSLCipherSuite*)&Cipher183;
  890|      2|		result[0x4B74FFFE] = (SSLCipherSuite*)&Cipher184;
  891|      2|		result[0x350DD5C8] = (SSLCipherSuite*)&Cipher185;
  892|      2|		result[0x53E057C] = (SSLCipherSuite*)&Cipher186;
  893|      2|		result[0x266020E1] = (SSLCipherSuite*)&Cipher187;
  894|      2|		result[0xE6DB4B9D] = (SSLCipherSuite*)&Cipher188;
  895|      2|		result[0x5A992E6] = (SSLCipherSuite*)&Cipher189;
  896|      2|		result[0x1B33C882] = (SSLCipherSuite*)&Cipher190;
  897|      2|		result[0x33579D2B] = (SSLCipherSuite*)&Cipher191;
  898|      2|		result[0x1BD7F7FF] = (SSLCipherSuite*)&Cipher192;
  899|      2|		result[0x39C59ED9] = (SSLCipherSuite*)&Cipher193;
  900|      2|		result[0x4F19FB95] = (SSLCipherSuite*)&Cipher194;
  901|      2|		result[0x8F4737BE] = (SSLCipherSuite*)&Cipher195;
  902|      2|		result[0x2567AA9E] = (SSLCipherSuite*)&Cipher196;
  903|      2|		result[0xEEF843DB] = (SSLCipherSuite*)&Cipher197;
  904|      2|		result[0x978C4E4F] = (SSLCipherSuite*)&Cipher198;
  905|      2|		result[0x2F8D17D9] = (SSLCipherSuite*)&Cipher199;
  906|      2|		result[0x7F80393A] = (SSLCipherSuite*)&Cipher200;
  907|      2|		result[0xDCA5AE1E] = (SSLCipherSuite*)&Cipher201;
  908|      2|		result[0x74AA95D7] = (SSLCipherSuite*)&Cipher202;
  909|      2|		result[0xB93174BB] = (SSLCipherSuite*)&Cipher203;
  910|      2|		result[0x46E274FC] = (SSLCipherSuite*)&Cipher204;
  911|      2|		result[0x9DC85330] = (SSLCipherSuite*)&Cipher205;
  912|      2|		result[0x972847B8] = (SSLCipherSuite*)&Cipher206;
  913|      2|		result[0xFCF61DAC] = (SSLCipherSuite*)&Cipher207;
  914|      2|		result[0x73C0029B] = (SSLCipherSuite*)&Cipher208;
  915|      2|		result[0xDA41D70F] = (SSLCipherSuite*)&Cipher209;
  916|      2|		result[0x12CBC4E7] = (SSLCipherSuite*)&Cipher210;
  917|      2|		result[0x8B2D5ACB] = (SSLCipherSuite*)&Cipher211;
  918|      2|		result[0x28C0C084] = (SSLCipherSuite*)&Cipher212;
  919|      2|		result[0x1602C1F8] = (SSLCipherSuite*)&Cipher213;
  920|      2|		result[0xF5FB9ED] = (SSLCipherSuite*)&Cipher214;
  921|      2|		result[0xE8E30E91] = (SSLCipherSuite*)&Cipher215;
  922|      2|		result[0x70BA7792] = (SSLCipherSuite*)&Cipher216;
  923|      2|		result[0x94C38076] = (SSLCipherSuite*)&Cipher217;
  924|      2|		result[0xE5B3483F] = (SSLCipherSuite*)&Cipher218;
  925|      2|		result[0x892DEBE3] = (SSLCipherSuite*)&Cipher219;
  926|      2|		result[0x65609E50] = (SSLCipherSuite*)&Cipher220;
  927|      2|		result[0xAB4F3F04] = (SSLCipherSuite*)&Cipher221;
  928|      2|		result[0x8BFC76DA] = (SSLCipherSuite*)&Cipher222;
  929|      2|		result[0xD4BDCD6] = (SSLCipherSuite*)&Cipher223;
  930|      2|		result[0xCAB8F54A] = (SSLCipherSuite*)&Cipher224;
  931|      2|		result[0xA10DCFC6] = (SSLCipherSuite*)&Cipher225;
  932|      2|		result[0xD6B71B71] = (SSLCipherSuite*)&Cipher226;
  933|      2|		result[0x6D775A2D] = (SSLCipherSuite*)&Cipher227;
  934|      2|		result[0x7997AD16] = (SSLCipherSuite*)&Cipher228;
  935|      2|		result[0x5338C632] = (SSLCipherSuite*)&Cipher229;
  936|      2|		result[0x45F0598D] = (SSLCipherSuite*)&Cipher230;
  937|      2|		result[0x2D8B6A99] = (SSLCipherSuite*)&Cipher231;
  938|      2|		result[0xE14DC125] = (SSLCipherSuite*)&Cipher232;
  939|      2|		result[0x1538351] = (SSLCipherSuite*)&Cipher233;
  940|      2|		result[0x1A8CE530] = (SSLCipherSuite*)&Cipher234;
  941|      2|		result[0xB01E69C4] = (SSLCipherSuite*)&Cipher235;
  942|      2|		result[0xCCBF70D3] = (SSLCipherSuite*)&Cipher236;
  943|      2|		result[0xEF664FE7] = (SSLCipherSuite*)&Cipher237;
  944|      2|		result[0xF6ED4F52] = (SSLCipherSuite*)&Cipher238;
  945|      2|		result[0x7D6522E] = (SSLCipherSuite*)&Cipher239;
  946|      2|		result[0xBDB5C9B9] = (SSLCipherSuite*)&Cipher240;
  947|      2|		result[0xD98D5C95] = (SSLCipherSuite*)&Cipher241;
  948|      2|		result[0x92B92727] = (SSLCipherSuite*)&Cipher242;
  949|      2|		result[0xB4FE570B] = (SSLCipherSuite*)&Cipher243;
  950|      2|		result[0x8DCF7F77] = (SSLCipherSuite*)&Cipher244;
  951|      2|		result[0x8208545B] = (SSLCipherSuite*)&Cipher245;
  952|      2|		result[0x39A13298] = (SSLCipherSuite*)&Cipher246;
  953|      2|		result[0xECB7070C] = (SSLCipherSuite*)&Cipher247;
  954|      2|		result[0xAFA95F8A] = (SSLCipherSuite*)&Cipher248;
  955|      2|		result[0x3D80E106] = (SSLCipherSuite*)&Cipher249;
  956|      2|		result[0x83AF9B7A] = (SSLCipherSuite*)&Cipher250;
  957|      2|		result[0x1FAAC2F6] = (SSLCipherSuite*)&Cipher251;
  958|      2|		result[0x2AF11F51] = (SSLCipherSuite*)&Cipher252;
  959|      2|		result[0xEDFD300D] = (SSLCipherSuite*)&Cipher253;
  960|      2|		result[0x91AA268F] = (SSLCipherSuite*)&Cipher254;
  961|      2|		result[0x9DF0E933] = (SSLCipherSuite*)&Cipher255;
  962|      2|		result[0xF3951A6A] = (SSLCipherSuite*)&Cipher256;
  963|      2|		result[0xE4FF8DCE] = (SSLCipherSuite*)&Cipher257;
  964|      2|		result[0xBE4DFC61] = (SSLCipherSuite*)&Cipher258;
  965|      2|		result[0xBB2CF025] = (SSLCipherSuite*)&Cipher259;
  966|      2|		result[0x354D38A8] = (SSLCipherSuite*)&Cipher260;
  967|      2|		result[0xE2444B9C] = (SSLCipherSuite*)&Cipher261;
  968|      2|		result[0xF8298D43] = (SSLCipherSuite*)&Cipher262;
  969|      2|		result[0x3EC413B7] = (SSLCipherSuite*)&Cipher263;
  970|      2|		result[0xE0C75BE9] = (SSLCipherSuite*)&Cipher264;
  971|      2|		result[0x7191BE45] = (SSLCipherSuite*)&Cipher265;
  972|      2|		result[0xDDE7C439] = (SSLCipherSuite*)&Cipher266;
  973|      2|		result[0xBE715415] = (SSLCipherSuite*)&Cipher267;
  974|      2|		result[0x6CF8F9A6] = (SSLCipherSuite*)&Cipher268;
  975|      2|		result[0x36D61242] = (SSLCipherSuite*)&Cipher269;
  976|      2|		result[0xFA9BA9ED] = (SSLCipherSuite*)&Cipher270;
  977|      2|		result[0x4588B179] = (SSLCipherSuite*)&Cipher271;
  978|      2|		result[0xB3C246FA] = (SSLCipherSuite*)&Cipher272;
  979|      2|		result[0x750EEB76] = (SSLCipherSuite*)&Cipher273;
  980|      2|		result[0xC50ACCB2] = (SSLCipherSuite*)&Cipher274;
  981|      2|		result[0x9555CD0E] = (SSLCipherSuite*)&Cipher275;
  982|      2|		result[0xF25A659B] = (SSLCipherSuite*)&Cipher276;
  983|      2|		result[0x1670E72F] = (SSLCipherSuite*)&Cipher277;
  984|      2|		result[0xDB0DD6BC] = (SSLCipherSuite*)&Cipher278;
  985|      2|		result[0x19CACD70] = (SSLCipherSuite*)&Cipher279;
  986|      2|		result[0xC54D5481] = (SSLCipherSuite*)&Cipher280;
  987|      2|		result[0x7BCCA2BD] = (SSLCipherSuite*)&Cipher281;
  988|      2|		result[0xA851374E] = (SSLCipherSuite*)&Cipher282;
  989|      2|		result[0xE887BEA] = (SSLCipherSuite*)&Cipher283;
  990|      2|		result[0xDECAA7F9] = (SSLCipherSuite*)&Cipher284;
  991|      2|		result[0x29DA73D5] = (SSLCipherSuite*)&Cipher285;
  992|      2|		result[0xAC69ECC9] = (SSLCipherSuite*)&Cipher286;
  993|      2|		result[0x6AE55625] = (SSLCipherSuite*)&Cipher287;
  994|      2|		result[0x2BB24546] = (SSLCipherSuite*)&Cipher288;
  995|      2|		result[0x7AB5F262] = (SSLCipherSuite*)&Cipher289;
  996|      2|		result[0x3DB83990] = (SSLCipherSuite*)&Cipher290;
  997|      2|		result[0xC852A244] = (SSLCipherSuite*)&Cipher291;
  998|      2|		result[0xA3C952C0] = (SSLCipherSuite*)&Cipher292;
  999|      2|		result[0xAF630C34] = (SSLCipherSuite*)&Cipher293;
 1000|      2|		result[0xD4EE22B] = (SSLCipherSuite*)&Cipher294;
 1001|      2|		result[0x83F4C5DF] = (SSLCipherSuite*)&Cipher295;
 1002|      2|		result[0xCCF6F918] = (SSLCipherSuite*)&Cipher296;
 1003|      2|		result[0x955C9E8C] = (SSLCipherSuite*)&Cipher297;
 1004|      2|		result[0xF3559154] = (SSLCipherSuite*)&Cipher298;
 1005|      2|		result[0xE0991C14] = (SSLCipherSuite*)&Cipher299;
 1006|      2|		result[0x7F6BF424] = (SSLCipherSuite*)&Cipher300;
 1007|      2|		result[0x4A129264] = (SSLCipherSuite*)&Cipher301;
 1008|      2|		result[0xB25E29E3] = (SSLCipherSuite*)&Cipher302;
 1009|      2|		result[0xA6E15A23] = (SSLCipherSuite*)&Cipher303;
 1010|      2|		result[0x637C5C53] = (SSLCipherSuite*)&Cipher304;
 1011|      2|		result[0x22794513] = (SSLCipherSuite*)&Cipher305;
 1012|      2|		result[0x4CE30464] = (SSLCipherSuite*)&Cipher306;
 1013|      2|		result[0xFDFE3B24] = (SSLCipherSuite*)&Cipher307;
 1014|      2|		result[0xDC8A2074] = (SSLCipherSuite*)&Cipher308;
 1015|      2|		result[0xFD448934] = (SSLCipherSuite*)&Cipher309;
 1016|      2|		result[0xF4FC2B13] = (SSLCipherSuite*)&Cipher310;
 1017|      2|		result[0xB10ECD53] = (SSLCipherSuite*)&Cipher311;
 1018|      2|		result[0xF44F4BC7] = (SSLCipherSuite*)&Cipher312;
 1019|      2|		result[0x49AF0BF] = (SSLCipherSuite*)&Cipher313;
 1020|      2|		result[0xDFAF479A] = (SSLCipherSuite*)&Cipher314;
 1021|      2|		result[0x82BF78CE] = (SSLCipherSuite*)&Cipher315;
 1022|      2|		result[0x46CD83C9] = (SSLCipherSuite*)&Cipher316;
 1023|      2|		result[0x8F7D7465] = (SSLCipherSuite*)&Cipher317;
 1024|      2|		result[0xBD9CDFE5] = (SSLCipherSuite*)&Cipher318;
 1025|      2|		result[0x92942203] = (SSLCipherSuite*)&Cipher319;
 1026|      2|		result[0x783C98AD] = (SSLCipherSuite*)&Cipher320;
 1027|      2|		result[0x92213B6D] = (SSLCipherSuite*)&Cipher321;
 1028|      2|		result[0xCFCB1A55] = (SSLCipherSuite*)&Cipher322;
 1029|      2|		result[0x54C2D55D] = (SSLCipherSuite*)&Cipher323;
 1030|      2|		result[0xDCD6F114] = (SSLCipherSuite*)&Cipher324;
 1031|      2|		result[0x6AD23C40] = (SSLCipherSuite*)&Cipher325;
 1032|      2|		result[0x5F5239D4] = (SSLCipherSuite*)&Cipher326;
 1033|      2|		result[0xAB27704B] = (SSLCipherSuite*)&Cipher327;
 1034|      2|		result[0xA3178D0C] = (SSLCipherSuite*)&Cipher328;
 1035|      2|		result[0x5DAAA195] = (SSLCipherSuite*)&Cipher329;
 1036|       |
 1037|      2|		return result;
 1038|      2|	}
SSLHandshake.cpp:_ZN4pcppL10hashStringENSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  694|  6.43k|	{
  695|  6.43k|		unsigned h = FIRST_HASH;
  ------------------
  |  |  691|  6.43k|#define FIRST_HASH 37  ///< also prime
  ------------------
  696|   141k|		for (auto i = 0u; i < str.size(); ++i)
  ------------------
  |  Branch (696:21): [True: 135k, False: 6.43k]
  ------------------
  697|   135k|		{
  698|   135k|			h = (h * A) ^ (str[i] * B);
  ------------------
  |  |  688|   135k|#define A 54059        ///< a prime
  ------------------
              			h = (h * A) ^ (str[i] * B);
  ------------------
  |  |  689|   135k|#define B 76963        ///< another prime
  ------------------
  699|   135k|		}
  700|  6.43k|		return h;
  701|  6.43k|	}

_ZN4pcpp8SSLLayer12IsSSLMessageEttPhmb:
   15|   526k|	{
   16|       |		// check the port map first
   17|   526k|		if (!ignorePorts && !isSSLPort(srcPort) && !isSSLPort(dstPort))
  ------------------
  |  Branch (17:7): [True: 394k, False: 131k]
  |  Branch (17:23): [True: 353k, False: 41.2k]
  |  Branch (17:46): [True: 261k, False: 92.2k]
  ------------------
   18|   261k|			return false;
   19|       |
   20|   264k|		if (dataLen < sizeof(ssl_tls_record_layer))
  ------------------
  |  Branch (20:7): [True: 29.5k, False: 235k]
  ------------------
   21|  29.5k|			return false;
   22|       |
   23|   235k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   24|       |
   25|       |		// there is no SSL message with length 0
   26|   235k|		if (recordLayer->length == 0)
  ------------------
  |  Branch (26:7): [True: 3.85k, False: 231k]
  ------------------
   27|  3.85k|			return false;
   28|       |
   29|   231k|		if (recordLayer->recordType < 20 || recordLayer->recordType > 23)
  ------------------
  |  Branch (29:7): [True: 1.10k, False: 230k]
  |  Branch (29:39): [True: 13.7k, False: 216k]
  ------------------
   30|  14.8k|			return false;
   31|       |
   32|   216k|		SSLVersion::SSLVersionEnum recordVersion = SSLVersion(be16toh(recordLayer->recordVersion)).asEnum(true);
   33|       |
   34|   216k|		if (recordVersion == SSLVersion::TLS1_3 || recordVersion == SSLVersion::TLS1_2 ||
  ------------------
  |  Branch (34:7): [True: 2.36k, False: 214k]
  |  Branch (34:46): [True: 168k, False: 45.3k]
  ------------------
   35|  45.3k|		    recordVersion == SSLVersion::TLS1_1 || recordVersion == SSLVersion::TLS1_0 ||
  ------------------
  |  Branch (35:7): [True: 3.35k, False: 41.9k]
  |  Branch (35:46): [True: 38.2k, False: 3.70k]
  ------------------
   36|  3.70k|		    recordVersion == SSLVersion::SSL3)
  ------------------
  |  Branch (36:7): [True: 3.02k, False: 686]
  ------------------
   37|   215k|			return true;
   38|    686|		else
   39|    686|			return false;
   40|   216k|	}
_ZN4pcpp8SSLLayer16createSSLMessageEPhmPNS_5LayerEPNS_6PacketE:
   43|   215k|	{
   44|   215k|		if (!canReinterpretAs<ssl_tls_record_layer>(data, dataLen))
  ------------------
  |  Branch (44:7): [True: 0, False: 215k]
  ------------------
   45|      0|		{
   46|      0|			return nullptr;
   47|      0|		}
   48|       |
   49|   215k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   50|   215k|		switch (recordLayer->recordType)
   51|   215k|		{
   52|   114k|		case SSL_HANDSHAKE:
  ------------------
  |  Branch (52:3): [True: 114k, False: 100k]
  ------------------
   53|   114k|		{
   54|   114k|			return new SSLHandshakeLayer(data, dataLen, prevLayer, packet);
   55|      0|		}
   56|       |
   57|  5.03k|		case SSL_ALERT:
  ------------------
  |  Branch (57:3): [True: 5.03k, False: 210k]
  ------------------
   58|  5.03k|		{
   59|  5.03k|			return new SSLAlertLayer(data, dataLen, prevLayer, packet);
   60|      0|		}
   61|       |
   62|  70.6k|		case SSL_CHANGE_CIPHER_SPEC:
  ------------------
  |  Branch (62:3): [True: 70.6k, False: 145k]
  ------------------
   63|  70.6k|		{
   64|  70.6k|			return new SSLChangeCipherSpecLayer(data, dataLen, prevLayer, packet);
   65|      0|		}
   66|       |
   67|  25.2k|		case SSL_APPLICATION_DATA:
  ------------------
  |  Branch (67:3): [True: 25.2k, False: 190k]
  ------------------
   68|  25.2k|		{
   69|  25.2k|			return new SSLApplicationDataLayer(data, dataLen, prevLayer, packet);
   70|      0|		}
   71|       |
   72|      0|		default:
  ------------------
  |  Branch (72:3): [True: 0, False: 215k]
  ------------------
   73|      0|			return nullptr;
   74|   215k|		}
   75|   215k|	}
_ZNK4pcpp8SSLLayer16getRecordVersionEv:
   78|  69.7k|	{
   79|       |		uint16_t recordVersion = be16toh(getRecordLayer()->recordVersion);
   80|  69.7k|		return SSLVersion(recordVersion);
   81|  69.7k|	}
_ZNK4pcpp8SSLLayer12getHeaderLenEv:
   89|   250k|	{
   90|   250k|		size_t len = sizeof(ssl_tls_record_layer) + be16toh(getRecordLayer()->length);
   91|   250k|		if (len > m_DataLen)
  ------------------
  |  Branch (91:7): [True: 42.0k, False: 208k]
  ------------------
   92|  42.0k|			return m_DataLen;
   93|   208k|		return len;
   94|   250k|	}
_ZN4pcpp8SSLLayer14parseNextLayerEv:
   97|   215k|	{
   98|   215k|		size_t headerLen = getHeaderLen();
   99|   215k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (99:7): [True: 84.4k, False: 131k]
  ------------------
  100|  84.4k|			return;
  101|       |
  102|   131k|		if (SSLLayer::IsSSLMessage(0, 0, m_Data + headerLen, m_DataLen - headerLen, true))
  ------------------
  |  Branch (102:7): [True: 100k, False: 31.1k]
  ------------------
  103|   100k|		{
  104|   100k|			constructNextLayerFromFactory(SSLLayer::createSSLMessage, m_Data + headerLen, m_DataLen - headerLen);
  105|   100k|		}
  106|   131k|	}
_ZNK4pcpp17SSLHandshakeLayer8toStringEv:
  113|  37.1k|	{
  114|  37.1k|		std::stringstream result;
  115|  37.1k|		result << getRecordVersion().toString(true) << " Layer, Handshake:";
  116|  93.6k|		for (size_t i = 0; i < m_MessageList.size(); i++)
  ------------------
  |  Branch (116:22): [True: 56.4k, False: 37.1k]
  ------------------
  117|  56.4k|		{
  118|  56.4k|			if (i == 0)
  ------------------
  |  Branch (118:8): [True: 34.9k, False: 21.4k]
  ------------------
  119|  34.9k|				result << " " << m_MessageList.at(i)->toString();
  120|  21.4k|			else
  121|  21.4k|				result << ", " << m_MessageList.at(i)->toString();
  122|  56.4k|		}
  123|  37.1k|		return result.str();
  124|  37.1k|	}
_ZN4pcpp17SSLHandshakeLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  127|   114k|	    : SSLLayer(data, dataLen, prevLayer, packet)
  128|   114k|	{
  129|   114k|		constexpr size_t baseTLSRecordSize = sizeof(ssl_tls_record_layer);
  130|   114k|		uint8_t* curPos = m_Data + baseTLSRecordSize;
  131|   114k|		size_t recordDataLen = be16toh(getRecordLayer()->length);
  132|       |
  133|   114k|		if (m_DataLen < recordDataLen + baseTLSRecordSize)
  ------------------
  |  Branch (133:7): [True: 26.4k, False: 88.4k]
  ------------------
  134|  26.4k|		{
  135|  26.4k|			recordDataLen = m_DataLen >= baseTLSRecordSize ? m_DataLen - baseTLSRecordSize : 0;
  ------------------
  |  Branch (135:20): [True: 26.4k, False: 0]
  ------------------
  136|  26.4k|		}
  137|       |
  138|   114k|		size_t curPosIndex = 0;
  139|   288k|		while (true)
  ------------------
  |  Branch (139:10): [True: 288k, Folded]
  ------------------
  140|   288k|		{
  141|   288k|			SSLHandshakeMessage* message =
  142|   288k|			    SSLHandshakeMessage::createHandshakeMessage(curPos, recordDataLen - curPosIndex, this);
  143|   288k|			if (message == nullptr)
  ------------------
  |  Branch (143:8): [True: 114k, False: 173k]
  ------------------
  144|   114k|				break;
  145|       |
  146|   173k|			m_MessageList.pushBack(message);
  147|   173k|			curPos += message->getMessageLength();
  148|   173k|			curPosIndex += message->getMessageLength();
  149|   173k|		}
  150|   114k|	}
_ZNK4pcpp24SSLChangeCipherSpecLayer8toStringEv:
  165|  22.2k|	{
  166|  22.2k|		std::stringstream result;
  167|  22.2k|		result << getRecordVersion().toString(true) << " Layer, Change Cipher Spec";
  168|  22.2k|		return result.str();
  169|  22.2k|	}
_ZNK4pcpp13SSLAlertLayer13getAlertLevelEv:
  176|  1.67k|	{
  177|  1.67k|		uint8_t* pos = m_Data + sizeof(ssl_tls_record_layer);
  178|  1.67k|		uint8_t alertLevel = *pos;
  179|  1.67k|		if (alertLevel == SSL_ALERT_LEVEL_WARNING || alertLevel == SSL_ALERT_LEVEL_FATAL)
  ------------------
  |  Branch (179:7): [True: 726, False: 952]
  |  Branch (179:48): [True: 0, False: 952]
  ------------------
  180|    726|			return (SSLAlertLevel)alertLevel;
  181|    952|		else
  182|    952|			return SSL_ALERT_LEVEL_ENCRYPTED;
  183|  1.67k|	}
_ZNK4pcpp13SSLAlertLayer8toStringEv:
  227|  1.67k|	{
  228|  1.67k|		std::stringstream result;
  229|  1.67k|		result << getRecordVersion().toString(true) << " Layer, ";
  230|  1.67k|		if (getAlertLevel() == SSL_ALERT_LEVEL_ENCRYPTED)
  ------------------
  |  Branch (230:7): [True: 952, False: 726]
  ------------------
  231|    952|			result << "Encrypted Alert";
  232|    726|		else
  233|       |			// TODO: add alert level and description here
  234|    726|			result << "Alert";
  235|  1.67k|		return result.str();
  236|  1.67k|	}
_ZNK4pcpp23SSLApplicationDataLayer8toStringEv:
  260|  8.64k|	{
  261|  8.64k|		return getRecordVersion().toString(true) + " Layer, Application Data";
  262|  8.64k|	}

_ZN4pcpp18splitByWhiteSpacesERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
   11|  6.06k|	{
   12|  6.06k|		std::string buf;
   13|  6.06k|		std::stringstream stream(str);
   14|  6.06k|		std::vector<std::string> result;
   15|  31.7k|		while (stream >> buf)
  ------------------
  |  Branch (15:10): [True: 25.6k, False: 6.06k]
  ------------------
   16|  25.6k|			result.push_back(buf);
   17|       |
   18|  6.06k|		return result;
   19|  6.06k|	}
_ZN4pcpp8SdpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   22|  44.9k|	    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, SDP)
   23|  44.9k|	{
   24|  44.9k|		m_FieldsOffset = 0;
   25|  44.9k|		parseFields();
   26|  44.9k|	}
_ZNK4pcpp8SdpLayer8toStringEv:
   70|  7.94k|	{
   71|  7.94k|		return "SDP Layer";
   72|  7.94k|	}
_ZNK4pcpp8SdpLayer19getOwnerIPv4AddressEv:
   75|  3.97k|	{
   76|  3.97k|		HeaderField* originator = getFieldByName(PCPP_SDP_ORIGINATOR_FIELD);
  ------------------
  |  |   17|  3.97k|#define PCPP_SDP_ORIGINATOR_FIELD "o"
  ------------------
   77|  3.97k|		if (originator == nullptr)
  ------------------
  |  Branch (77:7): [True: 869, False: 3.10k]
  ------------------
   78|    869|			return IPv4Address::Zero;
   79|       |
   80|  3.10k|		std::vector<std::string> tokens = splitByWhiteSpaces(originator->getFieldValue());
   81|  3.10k|		if (tokens.size() < 6)
  ------------------
  |  Branch (81:7): [True: 1.37k, False: 1.73k]
  ------------------
   82|  1.37k|			return IPv4Address::Zero;
   83|       |
   84|  1.73k|		if (tokens[3] != "IN" || tokens[4] != "IP4")
  ------------------
  |  Branch (84:7): [True: 158, False: 1.57k]
  |  Branch (84:28): [True: 1.36k, False: 213]
  ------------------
   85|  1.51k|			return IPv4Address::Zero;
   86|       |
   87|    213|		try
   88|    213|		{
   89|    213|			return IPv4Address(tokens[5]);
   90|    213|		}
   91|    213|		catch (const std::exception&)
   92|    213|		{
   93|     85|			return IPv4Address::Zero;
   94|     85|		}
   95|    213|	}
_ZNK4pcpp8SdpLayer12getMediaPortERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   98|  3.97k|	{
   99|  3.97k|		int mediaFieldIndex = 0;
  100|  3.97k|		HeaderField* mediaDesc = getFieldByName(PCPP_SDP_MEDIA_NAME_FIELD, mediaFieldIndex);
  ------------------
  |  |   43|  3.97k|#define PCPP_SDP_MEDIA_NAME_FIELD "m"
  ------------------
  101|       |
  102|  5.96k|		while (mediaDesc != nullptr)
  ------------------
  |  Branch (102:10): [True: 2.95k, False: 3.00k]
  ------------------
  103|  2.95k|		{
  104|  2.95k|			std::vector<std::string> tokens = splitByWhiteSpaces(mediaDesc->getFieldValue());
  105|       |
  106|  2.95k|			if (tokens.size() >= 2 && tokens[0] == mediaType)
  ------------------
  |  Branch (106:8): [True: 2.27k, False: 687]
  |  Branch (106:30): [True: 964, False: 1.30k]
  ------------------
  107|    964|				return atoi(tokens[1].c_str());
  108|       |
  109|  1.99k|			mediaFieldIndex++;
  110|  1.99k|			mediaDesc = getFieldByName(PCPP_SDP_MEDIA_NAME_FIELD, mediaFieldIndex);
  ------------------
  |  |   43|  1.99k|#define PCPP_SDP_MEDIA_NAME_FIELD "m"
  ------------------
  111|  1.99k|		}
  112|       |
  113|  3.00k|		return 0;
  114|  3.97k|	}
_ZN4pcpp8SdpLayer19addMediaDescriptionERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEtS9_S9_RKNS1_6vectorIS7_NS5_IS7_EEEE:
  119|  3.97k|	{
  120|  3.97k|		std::stringstream portStream;
  121|  3.97k|		portStream << mediaPort;
  122|       |
  123|  3.97k|		std::string mediaFieldValue = mediaType + " " + portStream.str() + " " + mediaProtocol + " " + mediaFormat;
  124|  3.97k|		if (addField(PCPP_SDP_MEDIA_NAME_FIELD, mediaFieldValue) == nullptr)
  ------------------
  |  |   43|  3.97k|#define PCPP_SDP_MEDIA_NAME_FIELD "m"
  ------------------
  |  Branch (124:7): [True: 2.89k, False: 1.08k]
  ------------------
  125|  2.89k|		{
  126|  2.89k|			PCPP_LOG_ERROR("Failed to add media description field");
  ------------------
  |  |  443|  2.89k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  2.89k|	do                                                                                                                 \
  |  |  |  |  413|  2.89k|	{                                                                                                                  \
  |  |  |  |  414|  2.89k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.89k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.89k|#define LOG_MODULE PacketLogModuleSdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 2.89k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.89k|		{                                                                                                              \
  |  |  |  |  417|  2.89k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  2.89k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.89k|#define LOG_MODULE PacketLogModuleSdpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  2.89k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  2.89k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  2.89k|		}                                                                                                              \
  |  |  |  |  422|  2.89k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.89k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  127|  2.89k|			return false;
  128|  2.89k|		}
  129|       |
  130|  1.08k|		for (const auto& iter : mediaAttributes)
  ------------------
  |  Branch (130:25): [True: 1.08k, False: 1.08k]
  ------------------
  131|  1.08k|		{
  132|  1.08k|			if (addField(PCPP_SDP_MEDIA_ATTRIBUTE_FIELD, iter) == nullptr)
  ------------------
  |  |   41|  1.08k|#define PCPP_SDP_MEDIA_ATTRIBUTE_FIELD "a"
  ------------------
  |  Branch (132:8): [True: 0, False: 1.08k]
  ------------------
  133|      0|			{
  134|      0|				PCPP_LOG_ERROR("Failed to add media attribute '" << iter << "'");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSdpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  135|      0|				return false;
  136|      0|			}
  137|  1.08k|		}
  138|       |
  139|  1.08k|		return true;
  140|  1.08k|	}

_ZNK4pcpp25SingleCommandTextProtocol22getArgumentFieldOffsetEv:
   15|  13.2k|	{
   16|  13.2k|		size_t maxLen;
   17|  13.2k|		if (m_DataLen < MAX_COMMAND_LENGTH)
  ------------------
  |  |    8|  13.2k|#define MAX_COMMAND_LENGTH 9  // From SMTP command "STARTTLS" + 1 byte hyphen or space
  ------------------
  |  Branch (17:7): [True: 77, False: 13.2k]
  ------------------
   18|     77|			maxLen = m_DataLen;
   19|  13.2k|		else
   20|  13.2k|			maxLen = MAX_COMMAND_LENGTH;
  ------------------
  |  |    8|  13.2k|#define MAX_COMMAND_LENGTH 9  // From SMTP command "STARTTLS" + 1 byte hyphen or space
  ------------------
   21|       |
   22|       |		// To correctly detect multi-line packets with the option containing a space in
   23|       |		// the first MAX_CONTENT_LENGTH bytes, search the both of hyphen and space to take
   24|       |		// correct command delimiter
   25|       |
   26|  13.2k|		std::string field(reinterpret_cast<char*>(m_Data), maxLen);
   27|       |
   28|  13.2k|		size_t posHyphen = field.find_first_of(ASCII_HYPHEN);
  ------------------
  |  |    6|  13.2k|#define ASCII_HYPHEN 0x2d
  ------------------
   29|  13.2k|		size_t posSpace = field.find_first_of(ASCII_SPACE);
  ------------------
  |  |    7|  13.2k|#define ASCII_SPACE 0x20
  ------------------
   30|  13.2k|		size_t posCRLF = field.rfind("\r\n");
   31|       |
   32|       |		// No delimiter or packet end
   33|  13.2k|		if (posHyphen == std::string::npos && posSpace == std::string::npos && posCRLF == std::string::npos)
  ------------------
  |  Branch (33:7): [True: 11.5k, False: 1.78k]
  |  Branch (33:41): [True: 8.74k, False: 2.77k]
  |  Branch (33:74): [True: 7.78k, False: 957]
  ------------------
   34|  7.78k|			return 0;
   35|       |		// Both hyphen and space found
   36|  5.51k|		else if (posHyphen != std::string::npos || posSpace != std::string::npos)
  ------------------
  |  Branch (36:12): [True: 1.78k, False: 3.73k]
  |  Branch (36:46): [True: 2.77k, False: 957]
  ------------------
   37|  4.55k|			return std::min(posSpace, posHyphen);
   38|       |		// If nothing found but there is a CRLF it is a only command packet
   39|    957|		else if (posCRLF != std::string::npos)
  ------------------
  |  Branch (39:12): [True: 957, False: 0]
  ------------------
   40|    957|			return posCRLF;
   41|       |
   42|      0|		return 0;
   43|  13.2k|	}
_ZNK4pcpp25SingleCommandTextProtocol18getCommandInternalEv:
  123|  9.42k|	{
  124|  9.42k|		size_t offset = getArgumentFieldOffset();
  125|       |
  126|       |		// If there is no option remove trailing newline characters
  127|  9.42k|		if (offset == (m_DataLen - 1) && offset > 1)
  ------------------
  |  Branch (127:7): [True: 0, False: 9.42k]
  |  Branch (127:36): [True: 0, False: 0]
  ------------------
  128|      0|			return std::string(reinterpret_cast<char*>(m_Data), offset - 1);
  129|  9.42k|		return std::string(reinterpret_cast<char*>(m_Data), offset);
  130|  9.42k|	}
_ZNK4pcpp25SingleCommandTextProtocol24getCommandOptionInternalEv:
  133|  3.87k|	{
  134|  3.87k|		size_t offset = getArgumentFieldOffset();
  135|       |
  136|       |		// We don't want to get delimiter so add 1 for start unless there is no command,
  137|  3.87k|		int addition = offset ? 1 : 0;
  ------------------
  |  Branch (137:18): [True: 1.64k, False: 2.22k]
  ------------------
  138|       |
  139|       |		// Check if command-only packet (-2 to account for len/position comparison and size of CRLF)
  140|  3.87k|		if (offset != (m_DataLen - 2))
  ------------------
  |  Branch (140:7): [True: 3.49k, False: 382]
  ------------------
  141|  3.49k|		{
  142|       |			// We don't want to trailing newline characters so remove 2 and remove addition from start point
  143|  3.49k|			auto option =
  144|  3.49k|			    std::string(reinterpret_cast<char*>(&m_Data[offset + addition]), m_DataLen - (offset + 2 + addition));
  145|       |
  146|       |			// Remove XXX- and XXX<SP> since they are delimiters of the protocol where XXX is the usually status code
  147|       |			// Check RFC821 (SMTP) Section 3.3 and RFC959 (FTP) Section 4.2
  148|  3.49k|			auto code = getCommandInternal();
  149|  3.49k|			auto vDelim = std::vector<std::string>{ code + " ", code + "-" };
  150|       |
  151|  3.49k|			for (const auto& delim : vDelim)
  ------------------
  |  Branch (151:27): [True: 6.98k, False: 3.49k]
  ------------------
  152|  6.98k|			{
  153|  6.98k|				size_t pos = 0;
  154|  7.95k|				while ((pos = option.find(delim, pos)) != std::string::npos)
  ------------------
  |  Branch (154:12): [True: 966, False: 6.98k]
  ------------------
  155|    966|				{
  156|    966|					option.replace(pos, delim.length(), "");
  157|    966|				}
  158|  6.98k|			}
  159|  3.49k|			return option;
  160|  3.49k|		}
  161|    382|		return "";
  162|  3.87k|	}
_ZN4pcpp25SingleCommandTextProtocol11isDataValidEPKhm:
  170|  12.1k|	{
  171|  12.1k|		if (data == nullptr || dataSize < MIN_PACKET_LENGTH)
  ------------------
  |  |    9|  12.1k|#define MIN_PACKET_LENGTH 2   // CRLF
  ------------------
  |  Branch (171:7): [True: 0, False: 12.1k]
  |  Branch (171:26): [True: 0, False: 12.1k]
  ------------------
  172|      0|			return false;
  173|       |
  174|  12.1k|		std::string payload = std::string(reinterpret_cast<const char*>(data), dataSize);
  175|  12.1k|		return payload.rfind("\r\n") == dataSize - 2;
  176|  12.1k|	}

_ZNK4pcpp8SipLayer16getContentLengthEv:
   58|  62.7k|	{
   59|  62.7k|		std::string contentLengthFieldName(PCPP_SIP_CONTENT_LENGTH_FIELD);
  ------------------
  |  |   24|  62.7k|#define PCPP_SIP_CONTENT_LENGTH_FIELD "Content-Length"
  ------------------
   60|  62.7k|		std::transform(contentLengthFieldName.begin(), contentLengthFieldName.end(), contentLengthFieldName.begin(),
   61|  62.7k|		               ::tolower);
   62|  62.7k|		HeaderField* contentLengthField = getFieldByName(contentLengthFieldName);
   63|  62.7k|		if (contentLengthField != nullptr)
  ------------------
  |  Branch (63:7): [True: 60.8k, False: 1.82k]
  ------------------
   64|  60.8k|			return atoi(contentLengthField->getFieldValue().c_str());
   65|  1.82k|		return 0;
   66|  62.7k|	}
_ZN4pcpp8SipLayer16setContentLengthEiRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   69|  4.41k|	{
   70|  4.41k|		std::ostringstream contentLengthAsString;
   71|  4.41k|		contentLengthAsString << contentLength;
   72|  4.41k|		std::string contentLengthFieldName(PCPP_SIP_CONTENT_LENGTH_FIELD);
  ------------------
  |  |   24|  4.41k|#define PCPP_SIP_CONTENT_LENGTH_FIELD "Content-Length"
  ------------------
   73|  4.41k|		HeaderField* contentLengthField = getFieldByName(contentLengthFieldName);
   74|  4.41k|		if (contentLengthField == nullptr)
  ------------------
  |  Branch (74:7): [True: 0, False: 4.41k]
  ------------------
   75|      0|		{
   76|      0|			HeaderField* prevField = getFieldByName(prevFieldName);
   77|      0|			contentLengthField = insertField(prevField, PCPP_SIP_CONTENT_LENGTH_FIELD, contentLengthAsString.str());
  ------------------
  |  |   24|      0|#define PCPP_SIP_CONTENT_LENGTH_FIELD "Content-Length"
  ------------------
   78|      0|		}
   79|  4.41k|		else
   80|  4.41k|			contentLengthField->setFieldValue(contentLengthAsString.str());
   81|       |
   82|  4.41k|		return contentLengthField;
   83|  4.41k|	}
_ZN4pcpp8SipLayer14parseNextLayerEv:
   86|  66.6k|	{
   87|  66.6k|		if (getLayerPayloadSize() == 0)
  ------------------
  |  Branch (87:7): [True: 8.77k, False: 57.8k]
  ------------------
   88|  8.77k|			return;
   89|       |
   90|  57.8k|		size_t headerLen = getHeaderLen();
   91|  57.8k|		std::string contentType;
   92|  57.8k|		if (getContentLength() > 0)
  ------------------
  |  Branch (92:7): [True: 47.2k, False: 10.5k]
  ------------------
   93|  47.2k|		{
   94|  47.2k|			HeaderField* contentTypeField = getFieldByName(PCPP_SIP_CONTENT_TYPE_FIELD);
  ------------------
  |  |   22|  47.2k|#define PCPP_SIP_CONTENT_TYPE_FIELD "Content-Type"
  ------------------
   95|  47.2k|			if (contentTypeField != nullptr)
  ------------------
  |  Branch (95:8): [True: 45.1k, False: 2.09k]
  ------------------
   96|  45.1k|				contentType = contentTypeField->getFieldValue();
   97|  47.2k|		}
   98|       |
   99|  57.8k|		auto payload = m_Data + headerLen;
  100|  57.8k|		auto payloadLen = m_DataLen - headerLen;
  101|       |
  102|  57.8k|		if (contentType.find("application/sdp") != std::string::npos)
  ------------------
  |  Branch (102:7): [True: 44.9k, False: 12.9k]
  ------------------
  103|  44.9k|		{
  104|  44.9k|			constructNextLayer<SdpLayer>(payload, payloadLen);
  105|  44.9k|		}
  106|  12.9k|		else
  107|  12.9k|		{
  108|  12.9k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  109|  12.9k|		}
  110|  57.8k|	}
_ZN4pcpp8SipLayer22computeCalculateFieldsEv:
  113|  6.26k|	{
  114|  6.26k|		HeaderField* contentLengthField = getFieldByName(PCPP_SIP_CONTENT_LENGTH_FIELD);
  ------------------
  |  |   24|  6.26k|#define PCPP_SIP_CONTENT_LENGTH_FIELD "Content-Length"
  ------------------
  115|  6.26k|		if (contentLengthField == nullptr)
  ------------------
  |  Branch (115:7): [True: 977, False: 5.29k]
  ------------------
  116|    977|			return;
  117|       |
  118|  5.29k|		size_t headerLen = getHeaderLen();
  119|  5.29k|		if (m_DataLen > headerLen)
  ------------------
  |  Branch (119:7): [True: 4.88k, False: 403]
  ------------------
  120|  4.88k|		{
  121|  4.88k|			int currentContentLength = getContentLength();
  122|  4.88k|			if (currentContentLength != static_cast<int>(m_DataLen - headerLen))
  ------------------
  |  Branch (122:8): [True: 4.41k, False: 474]
  ------------------
  123|  4.41k|				setContentLength(m_DataLen - headerLen);
  124|  4.88k|		}
  125|  5.29k|	}
_ZN4pcpp8SipLayer20detectSipMessageTypeEPKhm:
  128|  36.9k|	{
  129|  36.9k|		if (!data || dataLen < 3)
  ------------------
  |  Branch (129:7): [True: 0, False: 36.9k]
  |  Branch (129:16): [True: 130, False: 36.8k]
  ------------------
  130|    130|		{
  131|    130|			return SipLayer::SipParseResult::Unknown;
  132|    130|		}
  133|       |
  134|  36.8k|		uint32_t key = pack4(reinterpret_cast<const char*>(data), dataLen);
  135|       |
  136|  36.8k|		switch (key)
  137|  36.8k|		{
  138|     81|		case "INVI"_packed4:  // INVITE
  ------------------
  |  Branch (138:3): [True: 81, False: 36.7k]
  ------------------
  139|    117|		case "ACK "_packed4:  // ACK
  ------------------
  |  Branch (139:3): [True: 36, False: 36.8k]
  ------------------
  140|    117|		case "BYE "_packed4:  // BYE
  ------------------
  |  Branch (140:3): [True: 0, False: 36.8k]
  ------------------
  141|    117|		case "CANC"_packed4:  // CANCEL
  ------------------
  |  Branch (141:3): [True: 0, False: 36.8k]
  ------------------
  142|    117|		case "REGI"_packed4:  // REGISTER
  ------------------
  |  Branch (142:3): [True: 0, False: 36.8k]
  ------------------
  143|    117|		case "PRAC"_packed4:  // PRACK
  ------------------
  |  Branch (143:3): [True: 0, False: 36.8k]
  ------------------
  144|    382|		case "OPTI"_packed4:  // OPTIONS
  ------------------
  |  Branch (144:3): [True: 265, False: 36.5k]
  ------------------
  145|    382|		case "SUBS"_packed4:  // SUBSCRIBE
  ------------------
  |  Branch (145:3): [True: 0, False: 36.8k]
  ------------------
  146|  1.23k|		case "NOTI"_packed4:  // NOTIFY
  ------------------
  |  Branch (146:3): [True: 850, False: 35.9k]
  ------------------
  147|  1.23k|		case "PUBL"_packed4:  // PUBLISH
  ------------------
  |  Branch (147:3): [True: 0, False: 36.8k]
  ------------------
  148|  1.23k|		case "INFO"_packed4:  // INFO
  ------------------
  |  Branch (148:3): [True: 0, False: 36.8k]
  ------------------
  149|  1.23k|		case "REFE"_packed4:  // REFER
  ------------------
  |  Branch (149:3): [True: 0, False: 36.8k]
  ------------------
  150|  1.23k|		case "MESS"_packed4:  // MESSAGE
  ------------------
  |  Branch (150:3): [True: 0, False: 36.8k]
  ------------------
  151|  1.23k|		case "UPDA"_packed4:  // UPDATE
  ------------------
  |  Branch (151:3): [True: 0, False: 36.8k]
  ------------------
  152|  1.23k|			return SipLayer::SipParseResult::Request;
  153|       |
  154|     16|		case "SIP/"_packed4:
  ------------------
  |  Branch (154:3): [True: 16, False: 36.8k]
  ------------------
  155|     16|			return SipLayer::SipParseResult::Response;
  156|       |
  157|  35.5k|		default:
  ------------------
  |  Branch (157:3): [True: 35.5k, False: 1.24k]
  ------------------
  158|  35.5k|			return SipLayer::SipParseResult::Unknown;
  159|  36.8k|		}
  160|  36.8k|	}
_ZN4pcpp8SipLayer13parseSipLayerEPhmPNS_5LayerEPNS_6PacketEtt:
  164|  69.6k|	{
  165|  69.6k|		if (!(SipLayer::isSipPort(srcPort) || SipLayer::isSipPort(dstPort)))
  ------------------
  |  Branch (165:9): [True: 35.6k, False: 34.0k]
  |  Branch (165:41): [True: 34.0k, False: 0]
  ------------------
  166|      0|		{
  167|      0|			return nullptr;
  168|      0|		}
  169|       |
  170|  69.6k|		if (SipRequestFirstLine::parseMethod(reinterpret_cast<char*>(data), dataLen) !=
  ------------------
  |  Branch (170:7): [True: 58.7k, False: 10.8k]
  ------------------
  171|  69.6k|		    SipRequestLayer::SipMethodUnknown)
  172|  58.7k|		{
  173|  58.7k|			return new SipRequestLayer(data, dataLen, prevLayer, packet);
  174|  58.7k|		}
  175|       |
  176|  10.8k|		if (SipResponseFirstLine::parseStatusCode(reinterpret_cast<char*>(data), dataLen) !=
  ------------------
  |  Branch (176:7): [True: 9.63k, False: 1.24k]
  |  Branch (176:7): [True: 7.67k, False: 3.20k]
  ------------------
  177|  10.8k|		        SipResponseLayer::SipStatusCodeUnknown &&
  178|  9.63k|		    !SipResponseFirstLine::parseVersion(reinterpret_cast<char*>(data), dataLen).empty())
  ------------------
  |  Branch (178:7): [True: 7.67k, False: 1.96k]
  ------------------
  179|  7.67k|		{
  180|  7.67k|			return new SipResponseLayer(data, dataLen, prevLayer, packet);
  181|  7.67k|		}
  182|       |
  183|  3.20k|		return nullptr;
  184|  10.8k|	}
_ZN4pcpp8SipLayer13parseSipLayerEPhmPNS_5LayerEPNS_6PacketE:
  187|  36.9k|	{
  188|  36.9k|		SipLayer::SipParseResult sipParseResult = detectSipMessageType(data, dataLen);
  189|       |
  190|  36.9k|		if (sipParseResult == SipLayer::SipParseResult::Unknown)
  ------------------
  |  Branch (190:7): [True: 35.7k, False: 1.24k]
  ------------------
  191|  35.7k|		{
  192|  35.7k|			return nullptr;
  193|  35.7k|		}
  194|       |
  195|  1.24k|		if (sipParseResult == SipLayer::SipParseResult::Request)
  ------------------
  |  Branch (195:7): [True: 1.23k, False: 16]
  ------------------
  196|  1.23k|		{
  197|  1.23k|			if (SipRequestFirstLine::parseFirstLine(reinterpret_cast<char*>(data), dataLen).first)
  ------------------
  |  Branch (197:8): [True: 155, False: 1.07k]
  ------------------
  198|    155|			{
  199|    155|				return new SipRequestLayer(data, dataLen, prevLayer, packet);
  200|    155|			}
  201|  1.07k|			return nullptr;
  202|  1.23k|		}
  203|       |
  204|     16|		if (SipResponseFirstLine::parseFirstLine(reinterpret_cast<char*>(data), dataLen).first)
  ------------------
  |  Branch (204:7): [True: 16, False: 0]
  ------------------
  205|     16|		{
  206|     16|			return new SipResponseLayer(data, dataLen, prevLayer, packet);
  207|     16|		}
  208|      0|		return nullptr;
  209|     16|	}
_ZN4pcpp19SipRequestFirstLineC2EPNS_15SipRequestLayerE:
  213|  58.9k|	SipRequestFirstLine::SipRequestFirstLine(SipRequestLayer* sipRequest) : m_SipRequest(sipRequest)
  214|  58.9k|	{
  215|  58.9k|		m_Method = parseMethod(reinterpret_cast<char*>(m_SipRequest->m_Data), m_SipRequest->getDataLen());
  216|  58.9k|		if (m_Method == SipRequestLayer::SipMethodUnknown)
  ------------------
  |  Branch (216:7): [True: 0, False: 58.9k]
  ------------------
  217|      0|		{
  218|      0|			m_UriOffset = -1;
  219|      0|			PCPP_LOG_DEBUG("Couldn't resolve SIP request method");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  220|      0|		}
  221|  58.9k|		else
  222|  58.9k|			m_UriOffset = SipMethodEnumToString[m_Method].length() + 1;
  223|       |
  224|  58.9k|		parseVersion();
  225|       |
  226|  58.9k|		char* endOfFirstLine;
  227|  58.9k|		if ((endOfFirstLine =
  ------------------
  |  Branch (227:7): [True: 58.9k, False: 0]
  ------------------
  228|  58.9k|		         static_cast<char*>(memchr(reinterpret_cast<char*>(m_SipRequest->m_Data + m_VersionOffset), '\n',
  229|  58.9k|		                                   m_SipRequest->m_DataLen - static_cast<size_t>(m_VersionOffset)))) != nullptr)
  230|  58.9k|		{
  231|  58.9k|			m_FirstLineEndOffset = endOfFirstLine - reinterpret_cast<char*>(m_SipRequest->m_Data) + 1;
  232|  58.9k|			m_IsComplete = true;
  233|  58.9k|		}
  234|      0|		else
  235|      0|		{
  236|      0|			m_FirstLineEndOffset = m_SipRequest->getDataLen();
  237|      0|			m_IsComplete = false;
  238|      0|		}
  239|       |
  240|  58.9k|		if (Logger::getInstance().isDebugEnabled(PacketLogModuleSipLayer))
  ------------------
  |  Branch (240:7): [True: 0, False: 58.9k]
  ------------------
  241|      0|		{
  242|      0|			std::string method =
  243|      0|			    (m_Method == SipRequestLayer::SipMethodUnknown ? "Unknown" : SipMethodEnumToString[m_Method]);
  ------------------
  |  Branch (243:9): [True: 0, False: 0]
  ------------------
  244|      0|			PCPP_LOG_DEBUG("Method='" << method << "'; SIP version='" << m_Version << "'; URI='" << getUri() << "'");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  245|      0|		}
  246|  58.9k|	}
_ZN4pcpp19SipRequestFirstLine11parseMethodEPKcm:
  292|   128k|	{
  293|   128k|		if (!data || dataLen < 4)
  ------------------
  |  Branch (293:7): [True: 0, False: 128k]
  |  Branch (293:16): [True: 10, False: 128k]
  ------------------
  294|     10|		{
  295|     10|			return SipRequestLayer::SipMethodUnknown;
  296|     10|		}
  297|       |
  298|   128k|		size_t spaceIndex = 0;
  299|   992k|		while (spaceIndex < dataLen && data[spaceIndex] != ' ')
  ------------------
  |  Branch (299:10): [True: 992k, False: 0]
  |  Branch (299:34): [True: 864k, False: 128k]
  ------------------
  300|   864k|		{
  301|   864k|			spaceIndex++;
  302|   864k|		}
  303|       |
  304|   128k|		if (spaceIndex == 0 || spaceIndex == dataLen)
  ------------------
  |  Branch (304:7): [True: 0, False: 128k]
  |  Branch (304:26): [True: 0, False: 128k]
  ------------------
  305|      0|		{
  306|      0|			return SipRequestLayer::SipMethodUnknown;
  307|      0|		}
  308|       |
  309|   128k|		auto methodAdEnum = SipMethodStringToEnum.find(std::string(data, data + spaceIndex));
  310|   128k|		if (methodAdEnum == SipMethodStringToEnum.end())
  ------------------
  |  Branch (310:7): [True: 10.8k, False: 117k]
  ------------------
  311|  10.8k|		{
  312|  10.8k|			return SipRequestLayer::SipMethodUnknown;
  313|  10.8k|		}
  314|   117k|		return methodAdEnum->second;
  315|   128k|	}
_ZN4pcpp19SipRequestFirstLine14parseFirstLineEPKcm:
  319|  1.23k|	{
  320|  1.23k|		SipFirstLineData result = { "", "", "" };
  321|       |
  322|  1.23k|		if (data == nullptr || dataLen == 0)
  ------------------
  |  Branch (322:7): [True: 0, False: 1.23k]
  |  Branch (322:26): [True: 0, False: 1.23k]
  ------------------
  323|      0|		{
  324|      0|			PCPP_LOG_DEBUG("Empty data in SIP request line");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  325|      0|			return { false, result };
  326|      0|		}
  327|       |
  328|       |		// Find first space (end of METHOD)
  329|  1.23k|		size_t firstSpaceIndex = 0;
  330|  9.27k|		while (firstSpaceIndex < dataLen && data[firstSpaceIndex] != ' ')
  ------------------
  |  Branch (330:10): [True: 9.27k, False: 0]
  |  Branch (330:39): [True: 8.04k, False: 1.23k]
  ------------------
  331|  8.04k|		{
  332|  8.04k|			firstSpaceIndex++;
  333|  8.04k|		}
  334|       |
  335|  1.23k|		if (firstSpaceIndex == 0 || firstSpaceIndex == dataLen)
  ------------------
  |  Branch (335:7): [True: 0, False: 1.23k]
  |  Branch (335:31): [True: 0, False: 1.23k]
  ------------------
  336|      0|		{
  337|      0|			PCPP_LOG_DEBUG("Invalid METHOD in SIP request line");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  338|      0|			return { false, result };
  339|      0|		}
  340|       |
  341|       |		// Validate method exists in SipMethodStringToEnum
  342|  1.23k|		std::string methodStr{ data, firstSpaceIndex };
  343|  1.23k|		if (SipMethodStringToEnum.find(methodStr) == SipMethodStringToEnum.end())
  ------------------
  |  Branch (343:7): [True: 29, False: 1.20k]
  ------------------
  344|     29|		{
  345|     29|			PCPP_LOG_DEBUG("Unknown SIP method");
  ------------------
  |  |  425|     29|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|     29|	do                                                                                                                 \
  |  |  |  |  413|     29|	{                                                                                                                  \
  |  |  |  |  414|     29|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     29|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     29|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 29]
  |  |  |  |  ------------------
  |  |  |  |  416|     29|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|     29|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 29]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  346|     29|			return { false, result };
  347|     29|		}
  348|       |
  349|       |		// Find second space (end of URI)
  350|  1.20k|		size_t secondSpaceIndex = firstSpaceIndex + 1;
  351|  10.9k|		while (secondSpaceIndex < dataLen && data[secondSpaceIndex] != ' ')
  ------------------
  |  Branch (351:10): [True: 10.9k, False: 0]
  |  Branch (351:40): [True: 9.75k, False: 1.20k]
  ------------------
  352|  9.75k|			secondSpaceIndex++;
  353|       |
  354|  1.20k|		if (secondSpaceIndex == dataLen)
  ------------------
  |  Branch (354:7): [True: 0, False: 1.20k]
  ------------------
  355|      0|		{
  356|      0|			PCPP_LOG_DEBUG("No space before version");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  357|      0|			return { false, result };
  358|      0|		}
  359|       |
  360|  1.20k|		size_t uriLen = secondSpaceIndex - firstSpaceIndex - 1;
  361|  1.20k|		if (uriLen == 0)
  ------------------
  |  Branch (361:7): [True: 0, False: 1.20k]
  ------------------
  362|      0|		{
  363|      0|			PCPP_LOG_DEBUG("Empty URI");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  364|      0|			return { false, result };
  365|      0|		}
  366|       |
  367|       |		// Find end of line
  368|  1.20k|		size_t lineEnd = secondSpaceIndex + 1;
  369|  14.8k|		while (lineEnd < dataLen && data[lineEnd] != '\r' && data[lineEnd] != '\n')
  ------------------
  |  Branch (369:10): [True: 14.8k, False: 0]
  |  Branch (369:31): [True: 13.6k, False: 1.20k]
  |  Branch (369:56): [True: 13.6k, False: 0]
  ------------------
  370|  13.6k|			lineEnd++;
  371|       |
  372|       |		// Minimum length for "SIP/x.y"
  373|  1.20k|		size_t versionLen = lineEnd - secondSpaceIndex - 1;
  374|  1.20k|		if (versionLen < 7)
  ------------------
  |  Branch (374:7): [True: 0, False: 1.20k]
  ------------------
  375|      0|		{
  376|      0|			PCPP_LOG_DEBUG("Version too short");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  377|      0|			return { false, result };
  378|      0|		}
  379|       |
  380|  1.20k|		const char* versionStart = data + secondSpaceIndex + 1;
  381|  1.20k|		if (versionStart[0] != 'S' || versionStart[1] != 'I' || versionStart[2] != 'P' || versionStart[3] != '/')
  ------------------
  |  Branch (381:7): [True: 850, False: 353]
  |  Branch (381:33): [True: 0, False: 353]
  |  Branch (381:59): [True: 198, False: 155]
  |  Branch (381:85): [True: 0, False: 155]
  ------------------
  382|  1.04k|		{
  383|  1.04k|			PCPP_LOG_DEBUG("Invalid SIP version format");
  ------------------
  |  |  425|  1.04k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  1.04k|	do                                                                                                                 \
  |  |  |  |  413|  1.04k|	{                                                                                                                  \
  |  |  |  |  414|  1.04k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.04k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.04k|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 1.04k]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.04k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  1.04k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.04k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  384|  1.04k|			return { false, result };
  385|  1.04k|		}
  386|       |
  387|       |		// All validations passed
  388|    155|		result.method = std::move(methodStr);
  389|    155|		result.uri = std::string{ data + firstSpaceIndex + 1, uriLen };
  390|    155|		result.version = std::string{ versionStart, versionLen };
  391|       |
  392|    155|		return { true, result };
  393|  1.20k|	}
_ZN4pcpp19SipRequestFirstLine12parseVersionEv:
  396|  58.9k|	{
  397|  58.9k|		if (m_SipRequest->getDataLen() < static_cast<size_t>(m_UriOffset))
  ------------------
  |  Branch (397:7): [True: 0, False: 58.9k]
  ------------------
  398|      0|		{
  399|      0|			m_Version = "";
  400|      0|			m_VersionOffset = -1;
  401|      0|			return;
  402|      0|		}
  403|       |
  404|  58.9k|		char* data = reinterpret_cast<char*>(m_SipRequest->m_Data + m_UriOffset);
  405|  58.9k|		char* verPos = cross_platform_memmem(data, m_SipRequest->getDataLen() - m_UriOffset, " SIP/", 5);
  406|  58.9k|		if (verPos == nullptr)
  ------------------
  |  Branch (406:7): [True: 24.1k, False: 34.8k]
  ------------------
  407|  24.1k|		{
  408|  24.1k|			m_Version = "";
  409|  24.1k|			m_VersionOffset = -1;
  410|  24.1k|			return;
  411|  24.1k|		}
  412|       |
  413|       |		// verify packet doesn't end before the version, meaning still left place for " SIP/x.y" (7 chars)
  414|  34.8k|		if (static_cast<uint16_t>(verPos + 7 - reinterpret_cast<char*>(m_SipRequest->m_Data)) >
  ------------------
  |  Branch (414:7): [True: 0, False: 34.8k]
  ------------------
  415|  34.8k|		    m_SipRequest->getDataLen())
  416|      0|		{
  417|      0|			m_Version = "";
  418|      0|			m_VersionOffset = -1;
  419|      0|			return;
  420|      0|		}
  421|       |
  422|       |		// skip the space char
  423|  34.8k|		verPos++;
  424|       |
  425|  34.8k|		int endOfVerPos = 0;
  426|   725k|		while (((verPos + endOfVerPos) < reinterpret_cast<char*>(m_SipRequest->m_Data + m_SipRequest->m_DataLen)) &&
  ------------------
  |  Branch (426:10): [True: 725k, False: 0]
  ------------------
  427|   725k|		       ((verPos + endOfVerPos)[0] != '\r') && ((verPos + endOfVerPos)[0] != '\n'))
  ------------------
  |  Branch (427:10): [True: 691k, False: 34.8k]
  |  Branch (427:49): [True: 691k, False: 0]
  ------------------
  428|   691k|			endOfVerPos++;
  429|       |
  430|  34.8k|		m_Version = std::string(verPos, endOfVerPos);
  431|       |
  432|  34.8k|		m_VersionOffset = verPos - reinterpret_cast<char*>(m_SipRequest->m_Data);
  433|  34.8k|	}
_ZN4pcpp15SipRequestLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  537|  58.9k|	    : SipLayer(data, dataLen, prevLayer, packet, SIPRequest)
  538|  58.9k|	{
  539|  58.9k|		m_FirstLine = new SipRequestFirstLine(this);
  540|  58.9k|		m_FieldsOffset = m_FirstLine->getSize();
  541|  58.9k|		parseFields();
  542|  58.9k|	}
_ZN4pcpp15SipRequestLayerD2Ev:
  569|  58.9k|	{
  570|  58.9k|		delete m_FirstLine;
  571|  58.9k|	}
_ZNK4pcpp15SipRequestLayer8toStringEv:
  574|  10.3k|	{
  575|  10.3k|		static const int maxLengthToPrint = 120;
  576|  10.3k|		std::string result = "SIP request, ";
  577|  10.3k|		int size = m_FirstLine->getSize() - 2;  // the -2 is to remove \r\n at the end of the first line
  578|  10.3k|		if (size <= 0)
  ------------------
  |  Branch (578:7): [True: 10, False: 10.2k]
  ------------------
  579|     10|		{
  580|     10|			result += std::string("CORRUPT DATA");
  581|     10|			return result;
  582|     10|		}
  583|  10.2k|		if (size <= maxLengthToPrint)
  ------------------
  |  Branch (583:7): [True: 9.80k, False: 484]
  ------------------
  584|  9.80k|		{
  585|  9.80k|			char* firstLine = new char[size + 1];
  586|  9.80k|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), size);
  587|  9.80k|			firstLine[size] = 0;
  588|  9.80k|			result += std::string(firstLine);
  589|  9.80k|			delete[] firstLine;
  590|  9.80k|		}
  591|    484|		else
  592|    484|		{
  593|    484|			char firstLine[maxLengthToPrint + 1];
  594|    484|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), maxLengthToPrint - 3);
  595|    484|			firstLine[maxLengthToPrint - 3] = '.';
  596|    484|			firstLine[maxLengthToPrint - 2] = '.';
  597|    484|			firstLine[maxLengthToPrint - 1] = '.';
  598|    484|			firstLine[maxLengthToPrint] = 0;
  599|    484|			result += std::string(firstLine);
  600|    484|		}
  601|       |
  602|  10.2k|		return result;
  603|  10.3k|	}
_ZN4pcpp16SipResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  878|  7.69k|	    : SipLayer(data, dataLen, prevLayer, packet, SIPResponse)
  879|  7.69k|	{
  880|  7.69k|		m_FirstLine = new SipResponseFirstLine(this);
  881|  7.69k|		m_FieldsOffset = m_FirstLine->getSize();
  882|  7.69k|		parseFields();
  883|  7.69k|	}
_ZN4pcpp16SipResponseLayerD2Ev:
  894|  7.69k|	{
  895|  7.69k|		delete m_FirstLine;
  896|  7.69k|	}
_ZNK4pcpp16SipResponseLayer8toStringEv:
  916|  2.23k|	{
  917|  2.23k|		static const int maxLengthToPrint = 120;
  918|  2.23k|		std::string result = "SIP response, ";
  919|  2.23k|		int size = m_FirstLine->getSize() - 2;  // the -2 is to remove \r\n at the end of the first line
  920|  2.23k|		if (size <= 0)
  ------------------
  |  Branch (920:7): [True: 0, False: 2.23k]
  ------------------
  921|      0|		{
  922|      0|			result += std::string("CORRUPT DATA");
  923|      0|			return result;
  924|      0|		}
  925|  2.23k|		if (size <= maxLengthToPrint)
  ------------------
  |  Branch (925:7): [True: 1.84k, False: 396]
  ------------------
  926|  1.84k|		{
  927|  1.84k|			char* firstLine = new char[size + 1];
  928|  1.84k|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), size);
  929|  1.84k|			firstLine[size] = 0;
  930|  1.84k|			result += std::string(firstLine);
  931|  1.84k|			delete[] firstLine;
  932|  1.84k|		}
  933|    396|		else
  934|    396|		{
  935|    396|			char firstLine[maxLengthToPrint + 1];
  936|    396|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), maxLengthToPrint - 3);
  937|    396|			firstLine[maxLengthToPrint - 3] = '.';
  938|    396|			firstLine[maxLengthToPrint - 2] = '.';
  939|    396|			firstLine[maxLengthToPrint - 1] = '.';
  940|    396|			firstLine[maxLengthToPrint] = 0;
  941|    396|			result += std::string(firstLine);
  942|    396|		}
  943|       |
  944|  2.23k|		return result;
  945|  2.23k|	}
_ZN4pcpp20SipResponseFirstLine15parseStatusCodeEPKcm:
 1043|  18.5k|	{
 1044|       |		// minimum data should be 12B long: "SIP/x.y XXX "
 1045|  18.5k|		if (!data || dataLen < 12)
  ------------------
  |  Branch (1045:7): [True: 0, False: 18.5k]
  |  Branch (1045:16): [True: 10, False: 18.5k]
  ------------------
 1046|     10|		{
 1047|     10|			return SipResponseLayer::SipStatusCodeUnknown;
 1048|     10|		}
 1049|       |
 1050|  18.5k|		const char* statusCodeData = data + 8;
 1051|  18.5k|		if (statusCodeData[3] != ' ')
  ------------------
  |  Branch (1051:7): [True: 1.04k, False: 17.5k]
  ------------------
 1052|  1.04k|		{
 1053|  1.04k|			return SipResponseLayer::SipStatusCodeUnknown;
 1054|  1.04k|		}
 1055|       |
 1056|  17.5k|		return parseStatusCodePure(statusCodeData, 3);
 1057|  18.5k|	}
_ZN4pcpp20SipResponseFirstLineC2EPNS_16SipResponseLayerE:
 1059|  7.69k|	SipResponseFirstLine::SipResponseFirstLine(SipResponseLayer* sipResponse) : m_SipResponse(sipResponse)
 1060|  7.69k|	{
 1061|  7.69k|		m_Version = parseVersion(reinterpret_cast<char*>(m_SipResponse->m_Data), m_SipResponse->getDataLen());
 1062|  7.69k|		if (m_Version == "")
  ------------------
  |  Branch (1062:7): [True: 0, False: 7.69k]
  ------------------
 1063|      0|		{
 1064|      0|			m_StatusCode = SipResponseLayer::SipStatusCodeUnknown;
 1065|      0|		}
 1066|  7.69k|		else
 1067|  7.69k|		{
 1068|  7.69k|			m_StatusCode = parseStatusCode(reinterpret_cast<char*>(m_SipResponse->m_Data), m_SipResponse->getDataLen());
 1069|  7.69k|		}
 1070|       |
 1071|  7.69k|		char* endOfFirstLine;
 1072|  7.69k|		if ((endOfFirstLine = static_cast<char*>(
  ------------------
  |  Branch (1072:7): [True: 7.11k, False: 582]
  ------------------
 1073|  7.69k|		         memchr(reinterpret_cast<char*>(m_SipResponse->m_Data), '\n', m_SipResponse->m_DataLen))) != nullptr)
 1074|  7.11k|		{
 1075|  7.11k|			m_FirstLineEndOffset = endOfFirstLine - reinterpret_cast<char*>(m_SipResponse->m_Data) + 1;
 1076|  7.11k|			m_IsComplete = true;
 1077|  7.11k|		}
 1078|    582|		else
 1079|    582|		{
 1080|    582|			m_FirstLineEndOffset = m_SipResponse->getDataLen();
 1081|    582|			m_IsComplete = false;
 1082|    582|		}
 1083|       |
 1084|  7.69k|		if (Logger::getInstance().isDebugEnabled(PacketLogModuleSipLayer))
  ------------------
  |  Branch (1084:7): [True: 0, False: 7.69k]
  ------------------
 1085|      0|		{
 1086|      0|			int statusCode =
 1087|      0|			    (m_StatusCode == SipResponseLayer::SipStatusCodeUnknown ? 0 : StatusCodeEnumToInt[m_StatusCode]);
  ------------------
  |  Branch (1087:9): [True: 0, False: 0]
  ------------------
 1088|      0|			PCPP_LOG_DEBUG("Version='" << m_Version << "'; Status code=" << statusCode << " '" << getStatusCodeString()
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1089|      0|			                           << "'");
 1090|      0|		}
 1091|  7.69k|	}
_ZN4pcpp20SipResponseFirstLine12parseVersionEPKcm:
 1131|  17.3k|	{
 1132|  17.3k|		if (!data || dataLen < 8)  // "SIP/x.y "
  ------------------
  |  Branch (1132:7): [True: 0, False: 17.3k]
  |  Branch (1132:16): [True: 0, False: 17.3k]
  ------------------
 1133|      0|		{
 1134|      0|			PCPP_LOG_DEBUG("SIP response length < 8, cannot identify version");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1135|      0|			return "";
 1136|      0|		}
 1137|       |
 1138|  17.3k|		if (data[0] != 'S' || data[1] != 'I' || data[2] != 'P' || data[3] != '/')
  ------------------
  |  Branch (1138:7): [True: 183, False: 17.1k]
  |  Branch (1138:25): [True: 132, False: 17.0k]
  |  Branch (1138:43): [True: 928, False: 16.0k]
  |  Branch (1138:61): [True: 717, False: 15.3k]
  ------------------
 1139|  1.96k|		{
 1140|  1.96k|			PCPP_LOG_DEBUG("SIP response does not begin with 'SIP/'");
  ------------------
  |  |  425|  1.96k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  1.96k|	do                                                                                                                 \
  |  |  |  |  413|  1.96k|	{                                                                                                                  \
  |  |  |  |  414|  1.96k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.96k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.96k|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 1.96k]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.96k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  1.96k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.96k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1141|  1.96k|			return "";
 1142|  1.96k|		}
 1143|       |
 1144|  15.3k|		const char* nextSpace = static_cast<const char*>(memchr(data, ' ', dataLen));
 1145|  15.3k|		if (nextSpace == nullptr)
  ------------------
  |  Branch (1145:7): [True: 0, False: 15.3k]
  ------------------
 1146|      0|			return "";
 1147|       |
 1148|  15.3k|		return std::string(data, nextSpace - data);
 1149|  15.3k|	}
_ZN4pcpp20SipResponseFirstLine14parseFirstLineEPKcm:
 1153|     16|	{
 1154|     16|		std::pair<bool, FirstLineData> result{};  // initialize to false and empty strings
 1155|       |
 1156|       |		// Minimum data should be 12 bytes long: "SIP/x.y XXX "
 1157|     16|		if (data == nullptr || dataLen < 12)
  ------------------
  |  Branch (1157:7): [True: 0, False: 16]
  |  Branch (1157:26): [True: 0, False: 16]
  ------------------
 1158|      0|		{
 1159|      0|			PCPP_LOG_DEBUG("SIP response length < 12, cannot parse first line");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1160|      0|			return result;
 1161|      0|		}
 1162|       |
 1163|     16|		if (pack4(data, 4) != "SIP/"_packed4)
  ------------------
  |  Branch (1163:7): [True: 0, False: 16]
  ------------------
 1164|      0|		{
 1165|      0|			PCPP_LOG_DEBUG("SIP response does not begin with 'SIP/'");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1166|      0|			return result;
 1167|      0|		}
 1168|       |
 1169|     16|		const auto dataEndIt = data + dataLen;
 1170|       |		// Find first space (end of version)
 1171|     16|		auto firstSpaceIt = std::find(data + 4, dataEndIt, ' ');
 1172|     16|		if (firstSpaceIt == dataEndIt)
  ------------------
  |  Branch (1172:7): [True: 0, False: 16]
  ------------------
 1173|      0|		{
 1174|      0|			PCPP_LOG_DEBUG("No space after version in SIP response line");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1175|      0|			return result;
 1176|      0|		}
 1177|       |
 1178|       |		// Status code is strictly 3 characters followed by a space
 1179|     16|		auto statusCodeIt = firstSpaceIt + 1;
 1180|     16|		auto statusCodeEndIt = statusCodeIt + 3;
 1181|     16|		if (*statusCodeEndIt != ' ')
  ------------------
  |  Branch (1181:7): [True: 0, False: 16]
  ------------------
 1182|      0|		{
 1183|      0|			PCPP_LOG_DEBUG("No space after status code in SIP response line");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1184|      0|			return result;
 1185|      0|		}
 1186|       |
 1187|     16|		auto statusCode = parseStatusCodePure(statusCodeIt, 3);
 1188|     16|		if (statusCode == SipResponseLayer::SipStatusCodeUnknown)
  ------------------
  |  Branch (1188:7): [True: 0, False: 16]
  ------------------
 1189|      0|		{
 1190|      0|			PCPP_LOG_DEBUG("Unknown SIP status code");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1191|      0|			return result;
 1192|      0|		}
 1193|       |
 1194|       |		// Write parsed values to result
 1195|     16|		result.first = true;
 1196|     16|		result.second.version = std::string(data, firstSpaceIt);
 1197|     16|		result.second.statusCode = statusCode;
 1198|     16|		return result;
 1199|     16|	}
SipLayer.cpp:_ZN4pcpp12_GLOBAL__N_15pack4EPKcm:
   20|  36.8k|		{
   21|  36.8k|			return ((len > 0 ? static_cast<uint32_t>(data[0]) << 24 : 0) |
  ------------------
  |  Branch (21:13): [True: 36.8k, False: 0]
  ------------------
   22|  36.8k|			        (len > 1 ? static_cast<uint32_t>(data[1]) << 16 : 0) |
  ------------------
  |  Branch (22:13): [True: 36.8k, False: 0]
  ------------------
   23|  36.8k|			        (len > 2 ? static_cast<uint32_t>(data[2]) << 8 : 0) |
  ------------------
  |  Branch (23:13): [True: 36.8k, False: 0]
  ------------------
   24|  36.8k|			        (len > 3 ? static_cast<uint32_t>(data[3]) : 0));
  ------------------
  |  Branch (24:13): [True: 36.7k, False: 137]
  ------------------
   25|  36.8k|		}
SipLayer.cpp:_ZN4pcpp12_GLOBAL__N_119parseStatusCodePureEPKcm:
  698|  17.5k|		{
  699|  17.5k|			if (data == nullptr || dataLen < 3)
  ------------------
  |  Branch (699:8): [True: 0, False: 17.5k]
  |  Branch (699:27): [True: 0, False: 17.5k]
  ------------------
  700|      0|			{
  701|      0|				return SipResponseLayer::SipStatusCodeUnknown;
  702|      0|			}
  703|       |
  704|  17.5k|			uint16_t code = 0;
  705|  17.5k|			code += (static_cast<uint16_t>(data[0]) - '0') * 100;
  706|  17.5k|			code += (static_cast<uint16_t>(data[1]) - '0') * 10;
  707|  17.5k|			code += (static_cast<uint16_t>(data[2]) - '0');
  708|       |
  709|  17.5k|			switch (code)
  710|  17.5k|			{
  711|       |			// 1xx: Informational
  712|  13.2k|			case 100:
  ------------------
  |  Branch (712:4): [True: 13.2k, False: 4.24k]
  ------------------
  713|  13.2k|				return SipResponseLayer::SipResponseStatusCode::Sip100Trying;
  714|  1.66k|			case 180:
  ------------------
  |  Branch (714:4): [True: 1.66k, False: 15.8k]
  ------------------
  715|  1.66k|				return SipResponseLayer::SipResponseStatusCode::Sip180Ringing;
  716|     18|			case 181:
  ------------------
  |  Branch (716:4): [True: 18, False: 17.5k]
  ------------------
  717|     18|				return SipResponseLayer::SipResponseStatusCode::Sip181CallisBeingForwarded;
  718|     36|			case 182:
  ------------------
  |  Branch (718:4): [True: 36, False: 17.5k]
  ------------------
  719|     36|				return SipResponseLayer::SipResponseStatusCode::Sip182Queued;
  720|      0|			case 183:
  ------------------
  |  Branch (720:4): [True: 0, False: 17.5k]
  ------------------
  721|      0|				return SipResponseLayer::SipResponseStatusCode::Sip183SessioninProgress;
  722|      0|			case 199:
  ------------------
  |  Branch (722:4): [True: 0, False: 17.5k]
  ------------------
  723|      0|				return SipResponseLayer::SipResponseStatusCode::Sip199EarlyDialogTerminated;
  724|       |			// 2xx: Success
  725|  1.92k|			case 200:
  ------------------
  |  Branch (725:4): [True: 1.92k, False: 15.6k]
  ------------------
  726|  1.92k|				return SipResponseLayer::SipResponseStatusCode::Sip200OK;
  727|      0|			case 202:
  ------------------
  |  Branch (727:4): [True: 0, False: 17.5k]
  ------------------
  728|      0|				return SipResponseLayer::SipResponseStatusCode::Sip202Accepted;
  729|      0|			case 204:
  ------------------
  |  Branch (729:4): [True: 0, False: 17.5k]
  ------------------
  730|      0|				return SipResponseLayer::SipResponseStatusCode::Sip204NoNotification;
  731|       |			// 3xx: Redirection
  732|     24|			case 300:
  ------------------
  |  Branch (732:4): [True: 24, False: 17.5k]
  ------------------
  733|     24|				return SipResponseLayer::SipResponseStatusCode::Sip300MultipleChoices;
  734|      0|			case 301:
  ------------------
  |  Branch (734:4): [True: 0, False: 17.5k]
  ------------------
  735|      0|				return SipResponseLayer::SipResponseStatusCode::Sip301MovedPermanently;
  736|      0|			case 302:
  ------------------
  |  Branch (736:4): [True: 0, False: 17.5k]
  ------------------
  737|      0|				return SipResponseLayer::SipResponseStatusCode::Sip302MovedTemporarily;
  738|      0|			case 305:
  ------------------
  |  Branch (738:4): [True: 0, False: 17.5k]
  ------------------
  739|      0|				return SipResponseLayer::SipResponseStatusCode::Sip305UseProxy;
  740|      0|			case 380:
  ------------------
  |  Branch (740:4): [True: 0, False: 17.5k]
  ------------------
  741|      0|				return SipResponseLayer::SipResponseStatusCode::Sip380AlternativeService;
  742|       |			// 4xx: Client Failure
  743|      0|			case 400:
  ------------------
  |  Branch (743:4): [True: 0, False: 17.5k]
  ------------------
  744|      0|				return SipResponseLayer::SipResponseStatusCode::Sip400BadRequest;
  745|      0|			case 401:
  ------------------
  |  Branch (745:4): [True: 0, False: 17.5k]
  ------------------
  746|      0|				return SipResponseLayer::SipResponseStatusCode::Sip401Unauthorized;
  747|      0|			case 402:
  ------------------
  |  Branch (747:4): [True: 0, False: 17.5k]
  ------------------
  748|      0|				return SipResponseLayer::SipResponseStatusCode::Sip402PaymentRequired;
  749|      0|			case 403:
  ------------------
  |  Branch (749:4): [True: 0, False: 17.5k]
  ------------------
  750|      0|				return SipResponseLayer::SipResponseStatusCode::Sip403Forbidden;
  751|      0|			case 404:
  ------------------
  |  Branch (751:4): [True: 0, False: 17.5k]
  ------------------
  752|      0|				return SipResponseLayer::SipResponseStatusCode::Sip404NotFound;
  753|      0|			case 405:
  ------------------
  |  Branch (753:4): [True: 0, False: 17.5k]
  ------------------
  754|      0|				return SipResponseLayer::SipResponseStatusCode::Sip405MethodNotAllowed;
  755|      0|			case 406:
  ------------------
  |  Branch (755:4): [True: 0, False: 17.5k]
  ------------------
  756|      0|				return SipResponseLayer::SipResponseStatusCode::Sip406NotAcceptable;
  757|      0|			case 407:
  ------------------
  |  Branch (757:4): [True: 0, False: 17.5k]
  ------------------
  758|      0|				return SipResponseLayer::SipResponseStatusCode::Sip407ProxyAuthenticationRequired;
  759|      0|			case 408:
  ------------------
  |  Branch (759:4): [True: 0, False: 17.5k]
  ------------------
  760|      0|				return SipResponseLayer::SipResponseStatusCode::Sip408RequestTimeout;
  761|      0|			case 409:
  ------------------
  |  Branch (761:4): [True: 0, False: 17.5k]
  ------------------
  762|      0|				return SipResponseLayer::SipResponseStatusCode::Sip409Conflict;
  763|      0|			case 410:
  ------------------
  |  Branch (763:4): [True: 0, False: 17.5k]
  ------------------
  764|      0|				return SipResponseLayer::SipResponseStatusCode::Sip410Gone;
  765|      0|			case 411:
  ------------------
  |  Branch (765:4): [True: 0, False: 17.5k]
  ------------------
  766|      0|				return SipResponseLayer::SipResponseStatusCode::Sip411LengthRequired;
  767|      0|			case 412:
  ------------------
  |  Branch (767:4): [True: 0, False: 17.5k]
  ------------------
  768|      0|				return SipResponseLayer::SipResponseStatusCode::Sip412ConditionalRequestFailed;
  769|      0|			case 413:
  ------------------
  |  Branch (769:4): [True: 0, False: 17.5k]
  ------------------
  770|      0|				return SipResponseLayer::SipResponseStatusCode::Sip413RequestEntityTooLarge;
  771|      0|			case 414:
  ------------------
  |  Branch (771:4): [True: 0, False: 17.5k]
  ------------------
  772|      0|				return SipResponseLayer::SipResponseStatusCode::Sip414RequestURITooLong;
  773|      0|			case 415:
  ------------------
  |  Branch (773:4): [True: 0, False: 17.5k]
  ------------------
  774|      0|				return SipResponseLayer::SipResponseStatusCode::Sip415UnsupportedMediaType;
  775|      0|			case 416:
  ------------------
  |  Branch (775:4): [True: 0, False: 17.5k]
  ------------------
  776|      0|				return SipResponseLayer::SipResponseStatusCode::Sip416UnsupportedURIScheme;
  777|      0|			case 417:
  ------------------
  |  Branch (777:4): [True: 0, False: 17.5k]
  ------------------
  778|      0|				return SipResponseLayer::SipResponseStatusCode::Sip417UnknownResourcePriority;
  779|      0|			case 420:
  ------------------
  |  Branch (779:4): [True: 0, False: 17.5k]
  ------------------
  780|      0|				return SipResponseLayer::SipResponseStatusCode::Sip420BadExtension;
  781|      0|			case 421:
  ------------------
  |  Branch (781:4): [True: 0, False: 17.5k]
  ------------------
  782|      0|				return SipResponseLayer::SipResponseStatusCode::Sip421ExtensionRequired;
  783|      0|			case 422:
  ------------------
  |  Branch (783:4): [True: 0, False: 17.5k]
  ------------------
  784|      0|				return SipResponseLayer::SipResponseStatusCode::Sip422SessionIntervalTooSmall;
  785|      0|			case 423:
  ------------------
  |  Branch (785:4): [True: 0, False: 17.5k]
  ------------------
  786|      0|				return SipResponseLayer::SipResponseStatusCode::Sip423IntervalTooBrief;
  787|      0|			case 424:
  ------------------
  |  Branch (787:4): [True: 0, False: 17.5k]
  ------------------
  788|      0|				return SipResponseLayer::SipResponseStatusCode::Sip424BadLocationInformation;
  789|      0|			case 425:
  ------------------
  |  Branch (789:4): [True: 0, False: 17.5k]
  ------------------
  790|      0|				return SipResponseLayer::SipResponseStatusCode::Sip425BadAlertMessage;
  791|      0|			case 428:
  ------------------
  |  Branch (791:4): [True: 0, False: 17.5k]
  ------------------
  792|      0|				return SipResponseLayer::SipResponseStatusCode::Sip428UseIdentityHeader;
  793|      0|			case 429:
  ------------------
  |  Branch (793:4): [True: 0, False: 17.5k]
  ------------------
  794|      0|				return SipResponseLayer::SipResponseStatusCode::Sip429ProvideReferrerIdentity;
  795|      0|			case 430:
  ------------------
  |  Branch (795:4): [True: 0, False: 17.5k]
  ------------------
  796|      0|				return SipResponseLayer::SipResponseStatusCode::Sip430FlowFailed;
  797|      0|			case 433:
  ------------------
  |  Branch (797:4): [True: 0, False: 17.5k]
  ------------------
  798|      0|				return SipResponseLayer::SipResponseStatusCode::Sip433AnonymityDisallowed;
  799|      0|			case 436:
  ------------------
  |  Branch (799:4): [True: 0, False: 17.5k]
  ------------------
  800|      0|				return SipResponseLayer::SipResponseStatusCode::Sip436BadIdentityInfo;
  801|      0|			case 437:
  ------------------
  |  Branch (801:4): [True: 0, False: 17.5k]
  ------------------
  802|      0|				return SipResponseLayer::SipResponseStatusCode::Sip437UnsupportedCertificate;
  803|      0|			case 438:
  ------------------
  |  Branch (803:4): [True: 0, False: 17.5k]
  ------------------
  804|      0|				return SipResponseLayer::SipResponseStatusCode::Sip438InvalidIdentityHeader;
  805|      0|			case 439:
  ------------------
  |  Branch (805:4): [True: 0, False: 17.5k]
  ------------------
  806|      0|				return SipResponseLayer::SipResponseStatusCode::Sip439FirstHopLacksOutboundSupport;
  807|      0|			case 440:
  ------------------
  |  Branch (807:4): [True: 0, False: 17.5k]
  ------------------
  808|      0|				return SipResponseLayer::SipResponseStatusCode::Sip440MaxBreadthExceeded;
  809|      0|			case 469:
  ------------------
  |  Branch (809:4): [True: 0, False: 17.5k]
  ------------------
  810|      0|				return SipResponseLayer::SipResponseStatusCode::Sip469BadInfoPackage;
  811|      0|			case 470:
  ------------------
  |  Branch (811:4): [True: 0, False: 17.5k]
  ------------------
  812|      0|				return SipResponseLayer::SipResponseStatusCode::Sip470ConsentNeeded;
  813|      0|			case 480:
  ------------------
  |  Branch (813:4): [True: 0, False: 17.5k]
  ------------------
  814|      0|				return SipResponseLayer::SipResponseStatusCode::Sip480TemporarilyUnavailable;
  815|      0|			case 481:
  ------------------
  |  Branch (815:4): [True: 0, False: 17.5k]
  ------------------
  816|      0|				return SipResponseLayer::SipResponseStatusCode::Sip481Call_TransactionDoesNotExist;
  817|      0|			case 482:
  ------------------
  |  Branch (817:4): [True: 0, False: 17.5k]
  ------------------
  818|      0|				return SipResponseLayer::SipResponseStatusCode::Sip482LoopDetected;
  819|      0|			case 483:
  ------------------
  |  Branch (819:4): [True: 0, False: 17.5k]
  ------------------
  820|      0|				return SipResponseLayer::SipResponseStatusCode::Sip483TooManyHops;
  821|      0|			case 484:
  ------------------
  |  Branch (821:4): [True: 0, False: 17.5k]
  ------------------
  822|      0|				return SipResponseLayer::SipResponseStatusCode::Sip484AddressIncomplete;
  823|      0|			case 485:
  ------------------
  |  Branch (823:4): [True: 0, False: 17.5k]
  ------------------
  824|      0|				return SipResponseLayer::SipResponseStatusCode::Sip485Ambiguous;
  825|      0|			case 486:
  ------------------
  |  Branch (825:4): [True: 0, False: 17.5k]
  ------------------
  826|      0|				return SipResponseLayer::SipResponseStatusCode::Sip486BusyHere;
  827|    384|			case 487:
  ------------------
  |  Branch (827:4): [True: 384, False: 17.1k]
  ------------------
  828|    384|				return SipResponseLayer::SipResponseStatusCode::Sip487RequestTerminated;
  829|      0|			case 488:
  ------------------
  |  Branch (829:4): [True: 0, False: 17.5k]
  ------------------
  830|      0|				return SipResponseLayer::SipResponseStatusCode::Sip488NotAcceptableHere;
  831|      0|			case 489:
  ------------------
  |  Branch (831:4): [True: 0, False: 17.5k]
  ------------------
  832|      0|				return SipResponseLayer::SipResponseStatusCode::Sip489BadEvent;
  833|      0|			case 491:
  ------------------
  |  Branch (833:4): [True: 0, False: 17.5k]
  ------------------
  834|      0|				return SipResponseLayer::SipResponseStatusCode::Sip491RequestPending;
  835|      0|			case 493:
  ------------------
  |  Branch (835:4): [True: 0, False: 17.5k]
  ------------------
  836|      0|				return SipResponseLayer::SipResponseStatusCode::Sip493Undecipherable;
  837|      0|			case 494:
  ------------------
  |  Branch (837:4): [True: 0, False: 17.5k]
  ------------------
  838|      0|				return SipResponseLayer::SipResponseStatusCode::Sip494SecurityAgreementRequired;
  839|       |			// 5xx: Server Failure
  840|      0|			case 500:
  ------------------
  |  Branch (840:4): [True: 0, False: 17.5k]
  ------------------
  841|      0|				return SipResponseLayer::SipResponseStatusCode::Sip500ServerInternalError;
  842|      0|			case 501:
  ------------------
  |  Branch (842:4): [True: 0, False: 17.5k]
  ------------------
  843|      0|				return SipResponseLayer::SipResponseStatusCode::Sip501NotImplemented;
  844|      0|			case 502:
  ------------------
  |  Branch (844:4): [True: 0, False: 17.5k]
  ------------------
  845|      0|				return SipResponseLayer::SipResponseStatusCode::Sip502BadGateway;
  846|      0|			case 503:
  ------------------
  |  Branch (846:4): [True: 0, False: 17.5k]
  ------------------
  847|      0|				return SipResponseLayer::SipResponseStatusCode::Sip503ServiceUnavailable;
  848|      0|			case 504:
  ------------------
  |  Branch (848:4): [True: 0, False: 17.5k]
  ------------------
  849|      0|				return SipResponseLayer::SipResponseStatusCode::Sip504ServerTimeout;
  850|      0|			case 505:
  ------------------
  |  Branch (850:4): [True: 0, False: 17.5k]
  ------------------
  851|      0|				return SipResponseLayer::SipResponseStatusCode::Sip505VersionNotSupported;
  852|      0|			case 513:
  ------------------
  |  Branch (852:4): [True: 0, False: 17.5k]
  ------------------
  853|      0|				return SipResponseLayer::SipResponseStatusCode::Sip513MessageTooLarge;
  854|      0|			case 555:
  ------------------
  |  Branch (854:4): [True: 0, False: 17.5k]
  ------------------
  855|      0|				return SipResponseLayer::SipResponseStatusCode::Sip555PushNotificationServiceNotSupported;
  856|      0|			case 580:
  ------------------
  |  Branch (856:4): [True: 0, False: 17.5k]
  ------------------
  857|      0|				return SipResponseLayer::SipResponseStatusCode::Sip580PreconditionFailure;
  858|       |			// 6xx: Global Failure
  859|      0|			case 600:
  ------------------
  |  Branch (859:4): [True: 0, False: 17.5k]
  ------------------
  860|      0|				return SipResponseLayer::SipResponseStatusCode::Sip600BusyEverywhere;
  861|      0|			case 603:
  ------------------
  |  Branch (861:4): [True: 0, False: 17.5k]
  ------------------
  862|      0|				return SipResponseLayer::SipResponseStatusCode::Sip603Decline;
  863|      0|			case 604:
  ------------------
  |  Branch (863:4): [True: 0, False: 17.5k]
  ------------------
  864|      0|				return SipResponseLayer::SipResponseStatusCode::Sip604DoesNotExistAnywhere;
  865|      0|			case 606:
  ------------------
  |  Branch (865:4): [True: 0, False: 17.5k]
  ------------------
  866|      0|				return SipResponseLayer::SipResponseStatusCode::Sip606NotAcceptable;
  867|      0|			case 607:
  ------------------
  |  Branch (867:4): [True: 0, False: 17.5k]
  ------------------
  868|      0|				return SipResponseLayer::SipResponseStatusCode::Sip607Unwanted;
  869|      0|			case 608:
  ------------------
  |  Branch (869:4): [True: 0, False: 17.5k]
  ------------------
  870|      0|				return SipResponseLayer::SipResponseStatusCode::Sip608Rejected;
  871|    195|			default:
  ------------------
  |  Branch (871:4): [True: 195, False: 17.3k]
  ------------------
  872|    195|				return SipResponseLayer::SipStatusCodeUnknown;
  873|  17.5k|			}
  874|  17.5k|		}
SipLayer.cpp:_ZN4pcpp12_GLOBAL__N_1li8_packed4EPKcm:
   28|     16|		{
   29|     16|			return pack4(str, len);
   30|     16|		}

_ZN4pcpp8SllLayer14parseNextLayerEv:
   50|   131k|	{
   51|   131k|		if (m_DataLen <= sizeof(sll_header))
  ------------------
  |  Branch (51:7): [True: 256, False: 130k]
  ------------------
   52|    256|			return;
   53|       |
   54|   130k|		uint8_t* payload = m_Data + sizeof(sll_header);
   55|   130k|		size_t payloadLen = m_DataLen - sizeof(sll_header);
   56|       |
   57|   130k|		sll_header* hdr = getSllHeader();
   58|   130k|		switch (be16toh(hdr->protocol_type))
   59|   130k|		{
   60|  49.8k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|  49.8k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (60:3): [True: 49.8k, False: 81.0k]
  ------------------
   61|  49.8k|		{
   62|  49.8k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   63|  49.8k|			break;
   64|      0|		}
   65|  75.6k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|  75.6k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (65:3): [True: 75.6k, False: 55.3k]
  ------------------
   66|  75.6k|		{
   67|  75.6k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   68|  75.6k|			break;
   69|      0|		}
   70|      0|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   33|      0|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (70:3): [True: 0, False: 130k]
  ------------------
   71|      0|		{
   72|      0|			constructNextLayer<ArpLayer>(payload, payloadLen);
   73|      0|			break;
   74|      0|		}
   75|  3.06k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|  3.06k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (75:3): [True: 3.06k, False: 127k]
  ------------------
   76|  3.06k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   61|  3.06k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (76:3): [True: 0, False: 130k]
  ------------------
   77|  3.06k|		{
   78|  3.06k|			constructNextLayer<VlanLayer>(payload, payloadLen);
   79|  3.06k|			break;
   80|  3.06k|		}
   81|      0|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   53|      0|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (81:3): [True: 0, False: 130k]
  ------------------
   82|      0|		{
   83|      0|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   84|      0|			break;
   85|  3.06k|		}
   86|      0|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   51|      0|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (86:3): [True: 0, False: 130k]
  ------------------
   87|      0|		{
   88|      0|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   89|      0|			break;
   90|  3.06k|		}
   91|      0|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|      0|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (91:3): [True: 0, False: 130k]
  ------------------
   92|      0|		{
   93|      0|			constructNextLayer<MplsLayer>(payload, payloadLen);
   94|      0|			break;
   95|  3.06k|		}
   96|  2.38k|		default:
  ------------------
  |  Branch (96:3): [True: 2.38k, False: 128k]
  ------------------
   97|  2.38k|		{
   98|  2.38k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   99|  2.38k|			break;
  100|  3.06k|		}
  101|   130k|		}
  102|   130k|	}
_ZN4pcpp8SllLayer22computeCalculateFieldsEv:
  105|  21.8k|	{
  106|  21.8k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (106:7): [True: 128, False: 21.6k]
  ------------------
  107|    128|			return;
  108|       |
  109|  21.6k|		sll_header* hdr = getSllHeader();
  110|  21.6k|		switch (m_NextLayer->getProtocol())
  111|  21.6k|		{
  112|  7.13k|		case IPv4:
  ------------------
  |  Branch (112:3): [True: 7.13k, False: 14.5k]
  ------------------
  113|  7.13k|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IP);
  114|  7.13k|			break;
  115|  13.2k|		case IPv6:
  ------------------
  |  Branch (115:3): [True: 13.2k, False: 8.47k]
  ------------------
  116|  13.2k|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IPV6);
  117|  13.2k|			break;
  118|      0|		case ARP:
  ------------------
  |  Branch (118:3): [True: 0, False: 21.6k]
  ------------------
  119|      0|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_ARP);
  120|      0|			break;
  121|    546|		case VLAN:
  ------------------
  |  Branch (121:3): [True: 546, False: 21.1k]
  ------------------
  122|    546|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_VLAN);
  123|    546|			break;
  124|    797|		default:
  ------------------
  |  Branch (124:3): [True: 797, False: 20.8k]
  ------------------
  125|    797|			return;
  126|  21.6k|		}
  127|  21.6k|	}
_ZNK4pcpp8SllLayer8toStringEv:
  130|  43.6k|	{
  131|  43.6k|		return "Linux cooked header";
  132|  43.6k|	}

_ZNK4pcpp16SmtpRequestLayer10getCommandEv:
   16|     48|	{
   17|     48|		size_t val = 0;
   18|     48|		std::string field = getCommandString();
   19|       |
   20|    240|		for (size_t idx = 0; idx < std::min(field.size(), static_cast<size_t>(8)); ++idx)
  ------------------
  |  Branch (20:24): [True: 192, False: 48]
  ------------------
   21|    192|		{
   22|    192|			val |= static_cast<size_t>(field.c_str()[idx]) << (idx * 8);
   23|    192|		}
   24|       |
   25|     48|		return static_cast<SmtpCommand>(val);
   26|     48|	}
_ZNK4pcpp16SmtpRequestLayer16getCommandStringEv:
   29|     48|	{
   30|     48|		return getCommandInternal();
   31|     48|	}
_ZN4pcpp16SmtpRequestLayer14getCommandInfoENS0_11SmtpCommandE:
   54|     48|	{
   55|     48|		switch (code)
   56|     48|		{
   57|      2|		case SmtpCommand::DATA:
  ------------------
  |  Branch (57:3): [True: 2, False: 46]
  ------------------
   58|      2|			return "Starting mail body";
   59|     18|		case SmtpCommand::EHLO:
  ------------------
  |  Branch (59:3): [True: 18, False: 30]
  ------------------
   60|     18|			return "Initiate conversation";
   61|      0|		case SmtpCommand::EXPN:
  ------------------
  |  Branch (61:3): [True: 0, False: 48]
  ------------------
   62|      0|			return "Expand the mailing list";
   63|      0|		case SmtpCommand::HELO:
  ------------------
  |  Branch (63:3): [True: 0, False: 48]
  ------------------
   64|      0|			return "Initiate conversation";
   65|      0|		case SmtpCommand::HELP:
  ------------------
  |  Branch (65:3): [True: 0, False: 48]
  ------------------
   66|      0|			return "Ask information";
   67|     24|		case SmtpCommand::MAIL:
  ------------------
  |  Branch (67:3): [True: 24, False: 24]
  ------------------
   68|     24|			return "Sender indication";
   69|      0|		case SmtpCommand::NOOP:
  ------------------
  |  Branch (69:3): [True: 0, False: 48]
  ------------------
   70|      0|			return "No operation";
   71|      0|		case SmtpCommand::QUIT:
  ------------------
  |  Branch (71:3): [True: 0, False: 48]
  ------------------
   72|      0|			return "Close conversation";
   73|      4|		case SmtpCommand::RCPT:
  ------------------
  |  Branch (73:3): [True: 4, False: 44]
  ------------------
   74|      4|			return "Receiver indication";
   75|      0|		case SmtpCommand::RSET:
  ------------------
  |  Branch (75:3): [True: 0, False: 48]
  ------------------
   76|      0|			return "Abort transaction";
   77|      0|		case SmtpCommand::VRFY:
  ------------------
  |  Branch (77:3): [True: 0, False: 48]
  ------------------
   78|      0|			return "Identify user";
   79|      0|		case SmtpCommand::STARTTLS:
  ------------------
  |  Branch (79:3): [True: 0, False: 48]
  ------------------
   80|      0|			return "Start TLS handshake";
   81|      0|		case SmtpCommand::TURN:
  ------------------
  |  Branch (81:3): [True: 0, False: 48]
  ------------------
   82|      0|			return "Reverse the role of sender and receiver";
   83|      0|		case SmtpCommand::SEND:
  ------------------
  |  Branch (83:3): [True: 0, False: 48]
  ------------------
   84|      0|			return "Send mail to terminal";
   85|      0|		case SmtpCommand::SOML:
  ------------------
  |  Branch (85:3): [True: 0, False: 48]
  ------------------
   86|      0|			return "Send mail to terminal or to mailbox";
   87|      0|		case SmtpCommand::SAML:
  ------------------
  |  Branch (87:3): [True: 0, False: 48]
  ------------------
   88|      0|			return "Send mail to terminal and mailbox";
   89|      0|		case SmtpCommand::AUTH:
  ------------------
  |  Branch (89:3): [True: 0, False: 48]
  ------------------
   90|      0|			return "Authenticate client and server";
   91|      0|		case SmtpCommand::ATRN:
  ------------------
  |  Branch (91:3): [True: 0, False: 48]
  ------------------
   92|      0|			return "Reverse the role of sender and receiver";
   93|      0|		case SmtpCommand::BDAT:
  ------------------
  |  Branch (93:3): [True: 0, False: 48]
  ------------------
   94|      0|			return "Submit mail contents";
   95|      0|		case SmtpCommand::ETRN:
  ------------------
  |  Branch (95:3): [True: 0, False: 48]
  ------------------
   96|      0|			return "Request to start SMTP queue processing";
   97|      0|		case SmtpCommand::XADR:
  ------------------
  |  Branch (97:3): [True: 0, False: 48]
  ------------------
   98|      0|			return "Release status of the channel";
   99|      0|		case SmtpCommand::XCIR:
  ------------------
  |  Branch (99:3): [True: 0, False: 48]
  ------------------
  100|      0|			return "Release status of the circuit checking facility";
  101|      0|		case SmtpCommand::XSTA:
  ------------------
  |  Branch (101:3): [True: 0, False: 48]
  ------------------
  102|      0|			return "Release status of the number of messages in channel queues";
  103|      0|		case SmtpCommand::XGEN:
  ------------------
  |  Branch (103:3): [True: 0, False: 48]
  ------------------
  104|      0|			return "Release status of whether a compiled configuration and character set are in use";
  105|      0|		default:
  ------------------
  |  Branch (105:3): [True: 0, False: 48]
  ------------------
  106|      0|			return "Unknown command";
  107|     48|		}
  108|     48|	}
_ZNK4pcpp16SmtpRequestLayer8toStringEv:
  125|     48|	{
  126|     48|		return "SMTP request layer, command: " + getCommandInfo(getCommand());
  127|     48|	}
_ZNK4pcpp17SmtpResponseLayer13getStatusCodeEv:
  138|     64|	{
  139|     64|		return static_cast<SmtpStatusCode>(atoi(getCommandInternal().c_str()));
  140|     64|	}
_ZN4pcpp17SmtpResponseLayer21getStatusCodeAsStringENS0_14SmtpStatusCodeE:
  168|     64|	{
  169|     64|		switch (code)
  170|     64|		{
  171|      0|		case SmtpStatusCode::SYSTEM_STATUS:
  ------------------
  |  Branch (171:3): [True: 0, False: 64]
  ------------------
  172|      0|			return "System status, or system help reply";
  173|      0|		case SmtpStatusCode::HELP_MESSAGE:
  ------------------
  |  Branch (173:3): [True: 0, False: 64]
  ------------------
  174|      0|			return "Help message";
  175|     22|		case SmtpStatusCode::SERVICE_READY:
  ------------------
  |  Branch (175:3): [True: 22, False: 42]
  ------------------
  176|     22|			return "Service ready";
  177|      0|		case SmtpStatusCode::SERVICE_CLOSE:
  ------------------
  |  Branch (177:3): [True: 0, False: 64]
  ------------------
  178|      0|			return "Service closing transmission channel";
  179|      0|		case SmtpStatusCode::AUTH_SUCCESS:
  ------------------
  |  Branch (179:3): [True: 0, False: 64]
  ------------------
  180|      0|			return "Authentication successful";
  181|     40|		case SmtpStatusCode::COMPLETED:
  ------------------
  |  Branch (181:3): [True: 40, False: 24]
  ------------------
  182|     40|			return "Requested mail action okay, completed";
  183|      0|		case SmtpStatusCode::WILL_FORWARD:
  ------------------
  |  Branch (183:3): [True: 0, False: 64]
  ------------------
  184|      0|			return "User not local; will forward to <forward-path>";
  185|      0|		case SmtpStatusCode::CANNOT_VERIFY:
  ------------------
  |  Branch (185:3): [True: 0, False: 64]
  ------------------
  186|      0|			return "Cannot VRFY user, but will accept message and attempt delivery";
  187|      0|		case SmtpStatusCode::AUTH_INPUT:
  ------------------
  |  Branch (187:3): [True: 0, False: 64]
  ------------------
  188|      0|			return "AUTH input";
  189|      2|		case SmtpStatusCode::MAIL_INPUT:
  ------------------
  |  Branch (189:3): [True: 2, False: 62]
  ------------------
  190|      2|			return "Start mail input; end with <CRLF>.<CRLF>";
  191|      0|		case SmtpStatusCode::SERVICE_UNAVAILABLE:
  ------------------
  |  Branch (191:3): [True: 0, False: 64]
  ------------------
  192|      0|			return "Service not available, closing transmission channel";
  193|      0|		case SmtpStatusCode::PASS_NEEDED:
  ------------------
  |  Branch (193:3): [True: 0, False: 64]
  ------------------
  194|      0|			return "A password transition is needed";
  195|      0|		case SmtpStatusCode::MAILBOX_UNAVAILABLE_TEMP:
  ------------------
  |  Branch (195:3): [True: 0, False: 64]
  ------------------
  196|      0|			return "Requested mail action not taken: mailbox unavailable (mail busy or temporarily blocked)";
  197|      0|		case SmtpStatusCode::ABORT_LOCAL_ERROR:
  ------------------
  |  Branch (197:3): [True: 0, False: 64]
  ------------------
  198|      0|			return "Requested action aborted: local error in processing";
  199|      0|		case SmtpStatusCode::INSUFFICIENT_STORAGE:
  ------------------
  |  Branch (199:3): [True: 0, False: 64]
  ------------------
  200|      0|			return "Requested action not taken: insufficient system storage";
  201|      0|		case SmtpStatusCode::TEMP_AUTH_FAILED:
  ------------------
  |  Branch (201:3): [True: 0, False: 64]
  ------------------
  202|      0|			return "Temporary authentication failed";
  203|      0|		case SmtpStatusCode::PARAM_NOT_ACCOMMODATED:
  ------------------
  |  Branch (203:3): [True: 0, False: 64]
  ------------------
  204|      0|			return "Server unable to accommodate parameters";
  205|      0|		case SmtpStatusCode::CMD_NOT_RECOGNIZED:
  ------------------
  |  Branch (205:3): [True: 0, False: 64]
  ------------------
  206|      0|			return "Syntax error, command unrecognized";
  207|      0|		case SmtpStatusCode::SYNTAX_ERROR_PARAM:
  ------------------
  |  Branch (207:3): [True: 0, False: 64]
  ------------------
  208|      0|			return "Syntax error in parameters or arguments";
  209|      0|		case SmtpStatusCode::CMD_NOT_IMPLEMENTED:
  ------------------
  |  Branch (209:3): [True: 0, False: 64]
  ------------------
  210|      0|			return "Command not implemented";
  211|      0|		case SmtpStatusCode::CMD_BAD_SEQUENCE:
  ------------------
  |  Branch (211:3): [True: 0, False: 64]
  ------------------
  212|      0|			return "Bad sequence of commands";
  213|      0|		case SmtpStatusCode::PARAM_NOT_IMPLEMENTED:
  ------------------
  |  Branch (213:3): [True: 0, False: 64]
  ------------------
  214|      0|			return "Command parameter not implemented";
  215|      0|		case SmtpStatusCode::MAIL_NOT_ACCEPTED:
  ------------------
  |  Branch (215:3): [True: 0, False: 64]
  ------------------
  216|      0|			return "Server does not accept mail";
  217|      0|		case SmtpStatusCode::ENCRYPT_NEED:
  ------------------
  |  Branch (217:3): [True: 0, False: 64]
  ------------------
  218|      0|			return "Encryption needed";
  219|      0|		case SmtpStatusCode::AUTH_REQUIRED:
  ------------------
  |  Branch (219:3): [True: 0, False: 64]
  ------------------
  220|      0|			return "Authentication required";
  221|      0|		case SmtpStatusCode::AUTH_TOO_WEAK:
  ------------------
  |  Branch (221:3): [True: 0, False: 64]
  ------------------
  222|      0|			return "Authentication mechanism is too weak";
  223|      0|		case SmtpStatusCode::AUTH_CRED_INVALID:
  ------------------
  |  Branch (223:3): [True: 0, False: 64]
  ------------------
  224|      0|			return "Authentication credentials invalid";
  225|      0|		case SmtpStatusCode::ENCRYPT_REQUIRED:
  ------------------
  |  Branch (225:3): [True: 0, False: 64]
  ------------------
  226|      0|			return "Encryption required for requested authentication mechanism";
  227|      0|		case SmtpStatusCode::MAILBOX_UNAVAILABLE:
  ------------------
  |  Branch (227:3): [True: 0, False: 64]
  ------------------
  228|      0|			return "Requested action not taken: mailbox unavailable";
  229|      0|		case SmtpStatusCode::USER_NOT_LOCAL:
  ------------------
  |  Branch (229:3): [True: 0, False: 64]
  ------------------
  230|      0|			return "User not local; please try <forward-path>";
  231|      0|		case SmtpStatusCode::EXCEED_STORAGE:
  ------------------
  |  Branch (231:3): [True: 0, False: 64]
  ------------------
  232|      0|			return "Requested mail action aborted: exceeded storage allocation";
  233|      0|		case SmtpStatusCode::NAME_NOT_ALLOWED:
  ------------------
  |  Branch (233:3): [True: 0, False: 64]
  ------------------
  234|      0|			return "Requested action not taken: mailbox name not allowed";
  235|      0|		case SmtpStatusCode::TRANSACTION_FAIL:
  ------------------
  |  Branch (235:3): [True: 0, False: 64]
  ------------------
  236|      0|			return "Transaction failed";
  237|      0|		case SmtpStatusCode::DOMAIN_NOT_ACCEPT:
  ------------------
  |  Branch (237:3): [True: 0, False: 64]
  ------------------
  238|      0|			return "Domain does not accept mail";
  239|      0|		default:
  ------------------
  |  Branch (239:3): [True: 0, False: 64]
  ------------------
  240|      0|			return "Unknown status code";
  241|     64|		}
  242|     64|	}
_ZNK4pcpp17SmtpResponseLayer8toStringEv:
  245|     64|	{
  246|     64|		return "SMTP response layer, status code: " + getStatusCodeAsString(getStatusCode());
  247|     64|	}

_ZN4pcpp11SomeIpLayer16parseSomeIpLayerEPhmPNS_5LayerEPNS_6PacketE:
   46|  48.7k|	{
   47|       |		// Ideas taken from wireshark some ip dissector
   48|  48.7k|		const size_t headerLen = sizeof(someiphdr);
   49|  48.7k|		if (dataLen < headerLen)
  ------------------
  |  Branch (49:7): [True: 16.4k, False: 32.2k]
  ------------------
   50|  16.4k|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   51|       |
   52|  32.2k|		uint32_t lengthBE = 0;
   53|  32.2k|		memcpy(&lengthBE, data + sizeof(uint32_t), sizeof(uint32_t));  // length field in SOME/IP header
   54|  32.2k|		uint32_t length = be32toh(lengthBE);
   55|  32.2k|		if ((length < 8) || (length > dataLen - 8))
  ------------------
  |  Branch (55:7): [True: 56, False: 32.1k]
  |  Branch (55:23): [True: 1.40k, False: 30.7k]
  ------------------
   56|  1.45k|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   57|       |
   58|  30.7k|		if (data[12] != SOMEIP_PROTOCOL_VERSION)
  ------------------
  |  Branch (58:7): [True: 19, False: 30.7k]
  ------------------
   59|     19|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   60|       |
   61|  30.7k|		someiphdr* hdr = (someiphdr*)data;
   62|       |
   63|  30.7k|		switch (static_cast<MsgType>(hdr->msgType & ~(uint8_t)MsgType::TP_REQUEST))
   64|  30.7k|		{
   65|    175|		case MsgType::REQUEST:
  ------------------
  |  Branch (65:3): [True: 175, False: 30.5k]
  ------------------
   66|    175|		case MsgType::REQUEST_ACK:
  ------------------
  |  Branch (66:3): [True: 0, False: 30.7k]
  ------------------
   67|  3.80k|		case MsgType::REQUEST_NO_RETURN:
  ------------------
  |  Branch (67:3): [True: 3.62k, False: 27.1k]
  ------------------
   68|  3.80k|		case MsgType::REQUEST_NO_RETURN_ACK:
  ------------------
  |  Branch (68:3): [True: 0, False: 30.7k]
  ------------------
   69|  27.6k|		case MsgType::NOTIFICATION:
  ------------------
  |  Branch (69:3): [True: 23.8k, False: 6.90k]
  ------------------
   70|  27.7k|		case MsgType::NOTIFICATION_ACK:
  ------------------
  |  Branch (70:3): [True: 128, False: 30.6k]
  ------------------
   71|  27.7k|		case MsgType::RESPONSE:
  ------------------
  |  Branch (71:3): [True: 0, False: 30.7k]
  ------------------
   72|  27.8k|		case MsgType::RESPONSE_ACK:
  ------------------
  |  Branch (72:3): [True: 18, False: 30.7k]
  ------------------
   73|  27.8k|		case MsgType::ERRORS:
  ------------------
  |  Branch (73:3): [True: 14, False: 30.7k]
  ------------------
   74|  30.7k|		case MsgType::ERROR_ACK:
  ------------------
  |  Branch (74:3): [True: 2.94k, False: 27.8k]
  ------------------
   75|  30.7k|			break;
   76|      7|		default:
  ------------------
  |  Branch (76:3): [True: 7, False: 30.7k]
  ------------------
   77|      7|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   78|  30.7k|		}
   79|       |
   80|  30.7k|		if (be16toh(hdr->serviceID) == 0xFFFF && be16toh(hdr->methodID) == 0x8100 &&
  ------------------
  |  Branch (80:7): [True: 29.4k, False: 1.34k]
  |  Branch (80:44): [True: 26.4k, False: 2.91k]
  ------------------
   81|  26.4k|		    SomeIpSdLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (81:7): [True: 20.6k, False: 5.87k]
  ------------------
   82|  20.6k|		{
   83|  20.6k|			return new SomeIpSdLayer(data, dataLen, prevLayer, packet);
   84|  20.6k|		}
   85|  10.1k|		else if ((hdr->msgType & (uint8_t)SomeIpLayer::MsgType::TP_REQUEST) != 0)
  ------------------
  |  Branch (85:12): [True: 2.55k, False: 7.58k]
  ------------------
   86|  2.55k|		{
   87|  2.55k|			return new SomeIpTpLayer(data, dataLen, prevLayer, packet);
   88|  2.55k|		}
   89|  7.58k|		else
   90|  7.58k|		{
   91|  7.58k|			return new SomeIpLayer(data, dataLen, prevLayer, packet);
   92|  7.58k|		}
   93|  30.7k|	}
_ZN4pcpp11SomeIpLayer12isSomeIpPortEt:
   96|   363k|	{
   97|   363k|		return SomeIpSdLayer::isSomeIpSdPort(port) ||
  ------------------
  |  Branch (97:10): [True: 30.8k, False: 332k]
  ------------------
   98|   332k|		       std::any_of(m_SomeIpPorts.begin(), m_SomeIpPorts.end(),
  ------------------
  |  Branch (98:10): [True: 0, False: 332k]
  ------------------
   99|   332k|		                   [&](const uint16_t& someIpPort) { return someIpPort == port; });
  100|   363k|	}
_ZNK4pcpp11SomeIpLayer12getServiceIDEv:
  137|  2.68k|	{
  138|       |		return be16toh(getSomeIpHeader()->serviceID);
  139|  2.68k|	}
_ZNK4pcpp11SomeIpLayer11getMethodIDEv:
  147|  2.68k|	{
  148|       |		return be16toh(getSomeIpHeader()->methodID);
  149|  2.68k|	}
_ZNK4pcpp11SomeIpLayer14getLengthFieldEv:
  157|  37.8k|	{
  158|       |		return be32toh(getSomeIpHeader()->length);
  159|  37.8k|	}
_ZNK4pcpp11SomeIpLayer19getMessageTypeAsIntEv:
  226|    324|	{
  227|    324|		return getSomeIpHeader()->msgType;
  228|    324|	}
_ZN4pcpp11SomeIpLayer14setMessageTypeEh:
  236|    324|	{
  237|    324|		getSomeIpHeader()->msgType = type;
  238|    324|	}
_ZN4pcpp11SomeIpLayer14parseNextLayerEv:
  258|  30.7k|	{
  259|  30.7k|		size_t headerLen = getHeaderLen();
  260|  30.7k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (260:7): [True: 12.9k, False: 17.8k]
  ------------------
  261|  12.9k|			return;
  262|       |
  263|  17.8k|		uint8_t* payload = m_Data + headerLen;
  264|  17.8k|		size_t payloadLen = m_DataLen - headerLen;
  265|       |
  266|  17.8k|		constructNextLayerFromFactory(parseSomeIpLayer, payload, payloadLen);
  267|  17.8k|	}
_ZNK4pcpp11SomeIpLayer8toStringEv:
  270|  2.03k|	{
  271|  2.03k|		std::stringstream dataStream;
  272|       |
  273|  2.03k|		dataStream << "SOME/IP Layer" << std::hex << ", Service ID: 0x" << getServiceID() << ", Method ID: 0x"
  274|  2.03k|		           << getMethodID() << std::dec << ", Length: " << getLengthField();
  275|       |
  276|  2.03k|		return dataStream.str();
  277|  2.03k|	}
_ZN4pcpp13SomeIpTpLayer22computeCalculateFieldsEv:
  344|    324|	{
  345|    324|		setMessageType(setTpFlag(getMessageTypeAsInt()));
  346|    324|	}
_ZNK4pcpp13SomeIpTpLayer8toStringEv:
  349|    648|	{
  350|    648|		std::stringstream dataStream;
  351|       |
  352|    648|		dataStream << "SOME/IP-TP Layer" << std::hex << ", Service ID: 0x" << getServiceID() << ", Method ID: 0x"
  353|    648|		           << getMethodID() << std::dec << ", Length: " << getLengthField();
  354|       |
  355|    648|		return dataStream.str();
  356|    648|	}
_ZN4pcpp13SomeIpTpLayer9setTpFlagEh:
  359|    324|	{
  360|    324|		return messageType | (uint8_t)SomeIpLayer::MsgType::TP_REQUEST;
  361|    324|	}

_ZN4pcpp14SomeIpSdOptionD2Ev:
   14|  4.18k|	{
   15|  4.18k|		if (m_ShadowData != nullptr)
  ------------------
  |  Branch (15:7): [True: 0, False: 4.18k]
  ------------------
   16|      0|			delete[] m_ShadowData;
   17|  4.18k|	}
_ZNK4pcpp14SomeIpSdOption7getTypeEv:
   20|  2.35k|	{
   21|  2.35k|		return static_cast<OptionType>(getSomeIpSdOptionHeader()->type);
   22|  2.35k|	}
_ZNK4pcpp14SomeIpSdOption10getDataPtrEv:
   25|  7.13k|	{
   26|  7.13k|		if (m_DataContainer != nullptr)
  ------------------
  |  Branch (26:7): [True: 7.13k, False: 0]
  ------------------
   27|  7.13k|			return m_DataContainer->getDataPtr(m_Offset);
   28|       |
   29|      0|		return m_ShadowData;
   30|  7.13k|	}
_ZNK4pcpp14SomeIpSdOption23getSomeIpSdOptionHeaderEv:
   33|  2.64k|	{
   34|  2.64k|		return (someipsdhdroptionsbase*)getDataPtr();
   35|  2.64k|	}
_ZN4pcpp18SomeIpSdIPv4OptionC2EPKNS_14IDataContainerEm:
   75|  1.70k|	    : SomeIpSdOption(dataContainer, offset)
   76|  1.70k|	{
   77|  1.70k|		m_DataLen = sizeof(someipsdhdroptionsipv4);
   78|  1.70k|	}
_ZNK4pcpp18SomeIpSdIPv4Option12getIpAddressEv:
   81|    860|	{
   82|    860|		someipsdhdroptionsipv4* hdr = (someipsdhdroptionsipv4*)getDataPtr();
   83|    860|		IPv4Address ipAddr(hdr->ipv4Address);
   84|       |
   85|    860|		return ipAddr;
   86|    860|	}
_ZNK4pcpp18SomeIpSdIPv4Option7getPortEv:
   89|    860|	{
   90|    860|		someipsdhdroptionsipv4* hdr = (someipsdhdroptionsipv4*)getDataPtr();
   91|       |		return be16toh(hdr->portNumber);
   92|    860|	}
_ZNK4pcpp18SomeIpSdIPv4Option11getProtocolEv:
   95|    860|	{
   96|    860|		someipsdhdroptionsipv4* hdr = (someipsdhdroptionsipv4*)getDataPtr();
   97|    860|		return hdr->l4Protocol;
   98|    860|	}
_ZN4pcpp18SomeIpSdIPv6OptionC2EPKNS_14IDataContainerEm:
  129|  1.01k|	    : SomeIpSdOption(dataContainer, offset)
  130|  1.01k|	{
  131|  1.01k|		m_DataLen = sizeof(someipsdhdroptionsipv6);
  132|  1.01k|	}
_ZNK4pcpp18SomeIpSdIPv6Option12getIpAddressEv:
  135|    635|	{
  136|    635|		someipsdhdroptionsipv6* hdr = (someipsdhdroptionsipv6*)getDataPtr();
  137|    635|		IPv6Address ipAddr(hdr->ipv6Address);
  138|       |
  139|    635|		return ipAddr;
  140|    635|	}
_ZNK4pcpp18SomeIpSdIPv6Option7getPortEv:
  143|    635|	{
  144|    635|		someipsdhdroptionsipv6* hdr = (someipsdhdroptionsipv6*)getDataPtr();
  145|       |		return be16toh(hdr->portNumber);
  146|    635|	}
_ZNK4pcpp18SomeIpSdIPv6Option11getProtocolEv:
  149|    635|	{
  150|    635|		someipsdhdroptionsipv6* hdr = (someipsdhdroptionsipv6*)getDataPtr();
  151|    635|		return hdr->l4Protocol;
  152|    635|	}
_ZN4pcpp27SomeIpSdConfigurationOptionC2EPKNS_14IDataContainerEm:
  168|    294|	    : SomeIpSdOption(dataContainer, offset)
  169|    294|	{
  170|       |		m_DataLen = sizeof(someipsdhdroptionsbase) - 1 + be16toh(getSomeIpSdOptionHeader()->length);
  171|    294|	}
_ZN4pcpp27SomeIpSdLoadBalancingOptionC2EPKNS_14IDataContainerEm:
  195|  1.16k|	    : SomeIpSdOption(dataContainer, offset)
  196|  1.16k|	{
  197|  1.16k|		m_DataLen = sizeof(someipsdhdroptionsload);
  198|  1.16k|	}
_ZN4pcpp13SomeIpSdEntryC2EPKNS_13SomeIpSdLayerEm:
  230|  3.00k|	    : m_Layer(pSomeIpSdLayer), m_Offset(offset), m_ShadowData(nullptr)
  231|  3.00k|	{
  232|  3.00k|		EntryType entryType;
  233|       |
  234|  3.00k|		someipsdhdrentry* hdr = getSomeIpSdEntryHeader();
  235|  3.00k|		TypeInternal internalType = static_cast<TypeInternal>(hdr->type);
  236|  3.00k|		auto ttl = getTtl();
  237|       |
  238|  3.00k|		switch (internalType)
  239|  3.00k|		{
  240|    326|		case SomeIpSdEntry::TypeInternal::FindService_Internal:
  ------------------
  |  Branch (240:3): [True: 326, False: 2.67k]
  ------------------
  241|    326|			entryType = SomeIpSdEntry::EntryType::FindService;
  242|    326|			break;
  243|  1.83k|		case SomeIpSdEntry::TypeInternal::OfferService_Internal:
  ------------------
  |  Branch (243:3): [True: 1.83k, False: 1.16k]
  ------------------
  244|  1.83k|			if (ttl == 0)
  ------------------
  |  Branch (244:8): [True: 285, False: 1.55k]
  ------------------
  245|    285|			{
  246|    285|				entryType = EntryType::StopOfferService;
  247|    285|			}
  248|  1.55k|			else
  249|  1.55k|			{
  250|  1.55k|				entryType = EntryType::OfferService;
  251|  1.55k|			}
  252|  1.83k|			break;
  253|      0|		case SomeIpSdEntry::TypeInternal::SubscribeEventgroup_Internal:
  ------------------
  |  Branch (253:3): [True: 0, False: 3.00k]
  ------------------
  254|      0|			if (ttl == 0)
  ------------------
  |  Branch (254:8): [True: 0, False: 0]
  ------------------
  255|      0|			{
  256|      0|				entryType = EntryType::StopSubscribeEventgroup;
  257|      0|			}
  258|      0|			else
  259|      0|			{
  260|      0|				entryType = EntryType::SubscribeEventgroup;
  261|      0|			}
  262|      0|			break;
  263|    269|		case SomeIpSdEntry::TypeInternal::SubscribeEventgroupAck_Internal:
  ------------------
  |  Branch (263:3): [True: 269, False: 2.73k]
  ------------------
  264|    269|			if (ttl == 0)
  ------------------
  |  Branch (264:8): [True: 92, False: 177]
  ------------------
  265|     92|			{
  266|     92|				entryType = EntryType::SubscribeEventgroupNack;
  267|     92|			}
  268|    177|			else
  269|    177|			{
  270|    177|				entryType = EntryType::SubscribeEventgroupAck;
  271|    177|			}
  272|    269|			break;
  273|    571|		default:
  ------------------
  |  Branch (273:3): [True: 571, False: 2.43k]
  ------------------
  274|    571|			entryType = EntryType::UnknownEntryType;
  275|    571|			break;
  276|  3.00k|		}
  277|       |
  278|  3.00k|		m_EntryType = entryType;
  279|  3.00k|	}
_ZN4pcpp13SomeIpSdEntryD2Ev:
  282|  3.00k|	{
  283|  3.00k|		if (m_ShadowData != nullptr)
  ------------------
  |  Branch (283:7): [True: 0, False: 3.00k]
  ------------------
  284|      0|			delete[] m_ShadowData;
  285|  3.00k|	}
_ZNK4pcpp13SomeIpSdEntry10getDataPtrEv:
  288|  27.0k|	{
  289|  27.0k|		if (m_Layer != nullptr)
  ------------------
  |  Branch (289:7): [True: 27.0k, False: 0]
  ------------------
  290|  27.0k|			return m_Layer->getDataPtr(m_Offset);
  291|       |
  292|      0|		return m_ShadowData;
  293|  27.0k|	}
_ZNK4pcpp13SomeIpSdEntry22getSomeIpSdEntryHeaderEv:
  296|  27.0k|	{
  297|  27.0k|		return (someipsdhdrentry*)getDataPtr();
  298|  27.0k|	}
_ZNK4pcpp13SomeIpSdEntry13getNumOptionsEv:
  301|  3.00k|	{
  302|  3.00k|		auto* hdr = getSomeIpSdEntryHeader();
  303|  3.00k|		return hdr->nrOpt1 + hdr->nrOpt2;
  304|  3.00k|	}
_ZNK4pcpp13SomeIpSdEntry12getServiceIdEv:
  307|  3.00k|	{
  308|       |		return be16toh(getSomeIpSdEntryHeader()->serviceID);
  309|  3.00k|	}
_ZNK4pcpp13SomeIpSdEntry13getInstanceIdEv:
  317|  3.00k|	{
  318|       |		return be16toh(getSomeIpSdEntryHeader()->instanceID);
  319|  3.00k|	}
_ZNK4pcpp13SomeIpSdEntry15getMajorVersionEv:
  327|  3.00k|	{
  328|       |		return (be32toh(getSomeIpSdEntryHeader()->majorVersion_ttl) & ~SOMEIPSD_HDR_ENTRY_MASK_TTL) >> 24;
  329|  3.00k|	}
_ZNK4pcpp13SomeIpSdEntry6getTtlEv:
  339|  3.00k|	{
  340|       |		return be32toh(getSomeIpSdEntryHeader()->majorVersion_ttl) & SOMEIPSD_HDR_ENTRY_MASK_TTL;
  341|  3.00k|	}
_ZNK4pcpp13SomeIpSdEntry15getMinorVersionEv:
  352|  3.00k|	{
  353|       |		return be32toh(getSomeIpSdEntryHeader()->data);
  354|  3.00k|	}
_ZNK4pcpp13SomeIpSdEntry10getCounterEv:
  362|  3.00k|	{
  363|       |		return (uint8_t)((be32toh(getSomeIpSdEntryHeader()->data) >> 16) & 0x0F);
  364|  3.00k|	}
_ZNK4pcpp13SomeIpSdEntry15getEventgroupIdEv:
  373|  3.00k|	{
  374|       |		return (uint16_t)(be32toh(getSomeIpSdEntryHeader()->data) & 0x0000FFFF);
  375|  3.00k|	}
_ZN4pcpp13SomeIpSdLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  433|  20.6k|	    : SomeIpLayer(data, dataLen, prevLayer, packet)
  434|  20.6k|	{
  435|  20.6k|		countOptions(m_NumOptions, data);
  436|  20.6k|	}
_ZNK4pcpp13SomeIpSdLayer8getFlagsEv:
  459|  3.05k|	{
  460|  3.05k|		someipsdhdr* hdr = (someipsdhdr*)m_Data;
  461|  3.05k|		return hdr->flags;
  462|  3.05k|	}
_ZNK4pcpp13SomeIpSdLayer13getNumEntriesEv:
  471|  9.10k|	{
  472|  9.10k|		return (uint32_t)(getLenEntries() / sizeof(SomeIpSdEntry::someipsdhdrentry));
  473|  9.10k|	}
_ZNK4pcpp13SomeIpSdLayer13getNumOptionsEv:
  476|  6.10k|	{
  477|  6.10k|		return m_NumOptions;
  478|  6.10k|	}
_ZNK4pcpp13SomeIpSdLayer10getEntriesEv:
  481|  3.05k|	{
  482|  3.05k|		size_t remainingLen = getLenEntries();
  483|  3.05k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t);
  484|       |
  485|  3.05k|		EntriesVec vecEntries;
  486|  3.05k|		EntryPtr entry;
  487|       |
  488|  6.05k|		while (remainingLen > 0)
  ------------------
  |  Branch (488:10): [True: 3.08k, False: 2.96k]
  ------------------
  489|  3.08k|		{
  490|       |			// Ensure there is enough remaining length for a new entry
  491|  3.08k|			if (remainingLen < sizeof(SomeIpSdEntry::someipsdhdrentry))
  ------------------
  |  Branch (491:8): [True: 85, False: 3.00k]
  ------------------
  492|     85|			{
  493|     85|				break;
  494|     85|			}
  495|  3.00k|			entry = new SomeIpSdEntry(this, offset);
  496|       |
  497|  3.00k|			size_t entryLen = entry->getLength();
  498|  3.00k|			remainingLen -= entryLen;
  499|  3.00k|			offset += entryLen;
  500|       |
  501|  3.00k|			vecEntries.push_back(entry);
  502|  3.00k|		}
  503|       |
  504|  3.05k|		return vecEntries;
  505|  3.05k|	};
_ZNK4pcpp13SomeIpSdLayer10getOptionsEv:
  508|  3.05k|	{
  509|  3.05k|		OptionsVec vecOptions;
  510|  3.05k|		OptionPtr option;
  511|       |
  512|  3.05k|		size_t remainingLen = getLenOptions();
  513|  3.05k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries() + sizeof(uint32_t);
  514|       |
  515|  6.42k|		while (remainingLen > 0)
  ------------------
  |  Branch (515:10): [True: 3.37k, False: 3.05k]
  ------------------
  516|  3.37k|		{
  517|  3.37k|			SomeIpSdOption::someipsdhdroptionsbase* hdr = (SomeIpSdOption::someipsdhdroptionsbase*)(m_Data + offset);
  518|  3.37k|			SomeIpSdOption::OptionType optionType = static_cast<SomeIpSdOption::OptionType>(hdr->type);
  519|       |
  520|  3.37k|			option = parseOption(optionType, offset);
  521|       |
  522|  3.37k|			if (option != nullptr)
  ------------------
  |  Branch (522:8): [True: 2.35k, False: 1.02k]
  ------------------
  523|  2.35k|			{
  524|  2.35k|				vecOptions.push_back(std::move(option));
  525|  2.35k|			}
  526|       |
  527|  3.37k|			size_t optionLen = be16toh(hdr->length) + 3;
  528|  3.37k|			remainingLen -= optionLen;
  529|  3.37k|			offset += optionLen;
  530|  3.37k|		}
  531|       |
  532|  3.05k|		return vecOptions;
  533|  3.05k|	}
_ZNK4pcpp13SomeIpSdLayer19getOptionsFromEntryEj:
  536|  3.00k|	{
  537|  3.00k|		OptionsVec vecOptions;
  538|  3.00k|		OptionPtr option;
  539|       |
  540|  3.00k|		if (index >= getNumEntries())
  ------------------
  |  Branch (540:7): [True: 0, False: 3.00k]
  ------------------
  541|      0|			return vecOptions;
  542|       |
  543|  3.00k|		size_t remainingLen = getLenOptions();
  544|  3.00k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries() + sizeof(uint32_t);
  545|       |
  546|  3.00k|		size_t offsetToEntry = sizeof(someipsdhdr) + sizeof(uint32_t) + index * sizeof(SomeIpSdEntry::someipsdhdrentry);
  547|  3.00k|		SomeIpSdEntry::someipsdhdrentry* hdrEntry = (SomeIpSdEntry::someipsdhdrentry*)(m_Data + offsetToEntry);
  548|  3.00k|		uint8_t startIdxRun1 = hdrEntry->indexFirstOption;
  549|  3.00k|		uint8_t lenRun1 = hdrEntry->nrOpt1;
  550|  3.00k|		uint8_t startIdxRun2 = hdrEntry->indexSecondOption;
  551|  3.00k|		uint8_t lenRun2 = hdrEntry->nrOpt2;
  552|       |
  553|  3.00k|		int idx = 0;
  554|       |
  555|  6.38k|		while (remainingLen > 0)
  ------------------
  |  Branch (555:10): [True: 3.37k, False: 3.00k]
  ------------------
  556|  3.37k|		{
  557|  3.37k|			SomeIpSdOption::someipsdhdroptionsbase* hdrOption =
  558|  3.37k|			    (SomeIpSdOption::someipsdhdroptionsbase*)(m_Data + offset);
  559|       |
  560|  3.37k|			if (((idx >= startIdxRun1) && (idx < (startIdxRun1 + lenRun1))) ||
  ------------------
  |  Branch (560:9): [True: 2.19k, False: 1.18k]
  |  Branch (560:34): [True: 2.02k, False: 167]
  ------------------
  561|  1.35k|			    ((idx >= startIdxRun2) && (idx < (startIdxRun2 + lenRun2))))
  ------------------
  |  Branch (561:9): [True: 527, False: 823]
  |  Branch (561:34): [True: 211, False: 316]
  ------------------
  562|  2.23k|			{
  563|  2.23k|				SomeIpSdOption::OptionType optionType = static_cast<SomeIpSdOption::OptionType>(hdrOption->type);
  564|       |
  565|  2.23k|				option = parseOption(optionType, offset);
  566|       |
  567|  2.23k|				if (option != nullptr)
  ------------------
  |  Branch (567:9): [True: 1.82k, False: 412]
  ------------------
  568|  1.82k|				{
  569|  1.82k|					vecOptions.push_back(std::move(option));
  570|  1.82k|				}
  571|  2.23k|			}
  572|       |
  573|  3.37k|			size_t optionLen = be16toh(hdrOption->length) + 3;
  574|  3.37k|			remainingLen -= optionLen;
  575|  3.37k|			offset += optionLen;
  576|  3.37k|			++idx;
  577|  3.37k|		}
  578|       |
  579|  3.00k|		return vecOptions;
  580|  3.00k|	}
_ZNK4pcpp13SomeIpSdLayer8toStringEv:
  606|  6.10k|	{
  607|  6.10k|		std::stringstream dataStream;
  608|       |
  609|  6.10k|		dataStream << "SOME/IP-SD Layer, " << getNumEntries() << " entries, " << getNumOptions() << " options";
  610|       |
  611|  6.10k|		return dataStream.str();
  612|  6.10k|	}
_ZN4pcpp13SomeIpSdLayer11isDataValidEPKhm:
  632|  26.4k|	{
  633|  26.4k|		uint32_t count;
  634|  26.4k|		if (!data || dataLen < sizeof(someipsdhdr) + sizeof(uint32_t) ||
  ------------------
  |  Branch (634:7): [True: 0, False: 26.4k]
  |  Branch (634:16): [True: 0, False: 26.4k]
  ------------------
  635|  26.4k|		    dataLen < sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t) ||
  ------------------
  |  Branch (635:7): [True: 2.54k, False: 23.9k]
  ------------------
  636|  23.9k|		    dataLen <
  ------------------
  |  Branch (636:7): [True: 351, False: 23.5k]
  ------------------
  637|  23.9k|		        sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t) + getLenOptions(data) ||
  638|  23.5k|		    !countOptions(count, data))
  ------------------
  |  Branch (638:7): [True: 2.97k, False: 20.6k]
  ------------------
  639|  5.87k|		{
  640|  5.87k|			return false;
  641|  5.87k|		}
  642|       |
  643|  20.6k|		return true;
  644|  26.4k|	}
_ZN4pcpp13SomeIpSdLayer12countOptionsERjPKh:
  647|  44.2k|	{
  648|  44.2k|		size_t offsetOption = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t);
  649|  44.2k|		size_t lenOptions = getLenOptions(data);
  650|  44.2k|		uint32_t len = 0;
  651|       |
  652|  44.2k|		count = 0;
  653|  88.4k|		while (len < lenOptions)
  ------------------
  |  Branch (653:10): [True: 47.2k, False: 41.2k]
  ------------------
  654|  47.2k|		{
  655|  47.2k|			if (len + sizeof(uint16_t) + 3 * sizeof(uint8_t) > lenOptions)
  ------------------
  |  Branch (655:8): [True: 0, False: 47.2k]
  ------------------
  656|      0|				return false;
  657|       |
  658|  47.2k|			uint32_t lenOption = be16toh(*((uint16_t*)(data + offsetOption + len))) + 3 * sizeof(uint8_t);
  659|  47.2k|			len += lenOption;
  660|  47.2k|			if (len > lenOptions)  // the last one must be equal to lenOptions
  ------------------
  |  Branch (660:8): [True: 2.97k, False: 44.2k]
  ------------------
  661|  2.97k|				return false;
  662|       |
  663|  44.2k|			++(count);
  664|  44.2k|		}
  665|  41.2k|		return true;
  666|  44.2k|	}
_ZNK4pcpp13SomeIpSdLayer11parseOptionENS_14SomeIpSdOption10OptionTypeEm:
  758|  5.61k|	{
  759|  5.61k|		switch (type)
  760|  5.61k|		{
  761|  1.19k|		case SomeIpSdOption::OptionType::IPv4Endpoint:
  ------------------
  |  Branch (761:3): [True: 1.19k, False: 4.42k]
  ------------------
  762|  1.36k|		case SomeIpSdOption::OptionType::IPv4Multicast:
  ------------------
  |  Branch (762:3): [True: 170, False: 5.44k]
  ------------------
  763|  1.70k|		case SomeIpSdOption::OptionType::IPv4SdEndpoint:
  ------------------
  |  Branch (763:3): [True: 338, False: 5.27k]
  ------------------
  764|  1.70k|		{
  765|  1.70k|			return new SomeIpSdIPv4Option(this, offset);
  766|  1.36k|		}
  767|     32|		case SomeIpSdOption::OptionType::IPv6Endpoint:
  ------------------
  |  Branch (767:3): [True: 32, False: 5.58k]
  ------------------
  768|    294|		case SomeIpSdOption::OptionType::IPv6Multicast:
  ------------------
  |  Branch (768:3): [True: 262, False: 5.35k]
  ------------------
  769|  1.01k|		case SomeIpSdOption::OptionType::IPv6SdEndpoint:
  ------------------
  |  Branch (769:3): [True: 720, False: 4.89k]
  ------------------
  770|  1.01k|		{
  771|  1.01k|			return new SomeIpSdIPv6Option(this, offset);
  772|    294|		}
  773|    294|		case SomeIpSdOption::OptionType::ConfigurationString:
  ------------------
  |  Branch (773:3): [True: 294, False: 5.32k]
  ------------------
  774|    294|		{
  775|    294|			return new SomeIpSdConfigurationOption(this, offset);
  776|    294|		}
  777|  1.16k|		case SomeIpSdOption::OptionType::LoadBalancing:
  ------------------
  |  Branch (777:3): [True: 1.16k, False: 4.44k]
  ------------------
  778|  1.16k|		{
  779|  1.16k|			return new SomeIpSdLoadBalancingOption(this, offset);
  780|    294|		}
  781|  1.43k|		default:
  ------------------
  |  Branch (781:3): [True: 1.43k, False: 4.18k]
  ------------------
  782|  1.43k|			break;
  783|  5.61k|		}
  784|  1.43k|		return nullptr;
  785|  5.61k|	}
_ZNK4pcpp13SomeIpSdLayer13getLenEntriesEv:
  788|  18.2k|	{
  789|  18.2k|		return getLenEntries(m_Data);
  790|  18.2k|	}
_ZN4pcpp13SomeIpSdLayer13getLenEntriesEPKh:
  793|   187k|	{
  794|       |		return be32toh(*((uint32_t*)(data + sizeof(someipsdhdr))));
  795|   187k|	}
_ZNK4pcpp13SomeIpSdLayer13getLenOptionsEv:
  798|  6.05k|	{
  799|  6.05k|		return getLenOptions(m_Data);
  800|  6.05k|	}
_ZN4pcpp13SomeIpSdLayer13getLenOptionsEPKh:
  803|  74.2k|	{
  804|       |		return be32toh(*((uint32_t*)(data + sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data))));
  805|  74.2k|	}

_ZN4pcpp16TLVRecordBuilderC2Ev:
    9|  93.0k|	{
   10|  93.0k|		m_RecType = 0;
   11|  93.0k|		m_RecValueLen = 0;
   12|  93.0k|		m_RecValue = nullptr;
   13|  93.0k|	}
_ZN4pcpp16TLVRecordBuilderD2Ev:
   96|  93.0k|	{
   97|  93.0k|		if (m_RecValue != nullptr)
  ------------------
  |  Branch (97:7): [True: 93.0k, False: 0]
  ------------------
   98|  93.0k|			delete[] m_RecValue;
   99|  93.0k|	}
_ZN4pcpp16TLVRecordBuilder4initEjPKhm:
  102|  93.0k|	{
  103|  93.0k|		m_RecType = recType;
  104|  93.0k|		m_RecValueLen = recValueLen;
  105|  93.0k|		m_RecValue = new uint8_t[recValueLen];
  106|  93.0k|		if (recValue != nullptr)
  ------------------
  |  Branch (106:7): [True: 0, False: 93.0k]
  ------------------
  107|      0|			memcpy(m_RecValue, recValue, recValueLen);
  108|  93.0k|		else
  109|  93.0k|			memset(m_RecValue, 0, recValueLen);
  110|  93.0k|	}

_ZN4pcpp16TcpOptionBuilderC2ENS0_20NopEolOptionEnumTypeE:
   54|  93.0k|	{
   55|  93.0k|		switch (optionType)
   56|  93.0k|		{
   57|      0|		case NopEolOptionEnumType::Eol:
  ------------------
  |  Branch (57:3): [True: 0, False: 93.0k]
  ------------------
   58|      0|			init(static_cast<uint8_t>(TcpOptionEnumType::Eol), nullptr, 0);
   59|      0|			break;
   60|  93.0k|		case NopEolOptionEnumType::Nop:
  ------------------
  |  Branch (60:3): [True: 93.0k, False: 0]
  ------------------
   61|  93.0k|		default:
  ------------------
  |  Branch (61:3): [True: 0, False: 93.0k]
  ------------------
   62|  93.0k|			init(static_cast<uint8_t>(TcpOptionEnumType::Nop), nullptr, 0);
   63|  93.0k|			break;
   64|  93.0k|		}
   65|  93.0k|	}
_ZNK4pcpp16TcpOptionBuilder5buildEv:
   68|  56.1k|	{
   69|  56.1k|		uint8_t recType = static_cast<uint8_t>(m_RecType);
   70|  56.1k|		size_t optionSize = m_RecValueLen + 2 * sizeof(uint8_t);
   71|       |
   72|  56.1k|		if (recType == static_cast<uint8_t>(TcpOptionEnumType::Eol) ||
  ------------------
  |  Branch (72:7): [True: 0, False: 56.1k]
  ------------------
   73|  56.1k|		    recType == static_cast<uint8_t>(TcpOptionEnumType::Nop))
  ------------------
  |  Branch (73:7): [True: 56.1k, False: 0]
  ------------------
   74|  56.1k|		{
   75|  56.1k|			if (m_RecValueLen != 0)
  ------------------
  |  Branch (75:8): [True: 0, False: 56.1k]
  ------------------
   76|      0|			{
   77|      0|				PCPP_LOG_ERROR(
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   78|      0|				    "TCP NOP and TCP EOL options are 1-byte long and don't have option value. Tried to set option value of size "
   79|      0|				    << m_RecValueLen);
   80|      0|				return TcpOption(nullptr);
   81|      0|			}
   82|       |
   83|  56.1k|			optionSize = 1;
   84|  56.1k|		}
   85|       |
   86|  56.1k|		uint8_t* recordBuffer = new uint8_t[optionSize];
   87|  56.1k|		memset(recordBuffer, 0, optionSize);
   88|  56.1k|		recordBuffer[0] = recType;
   89|  56.1k|		if (optionSize > 1)
  ------------------
  |  Branch (89:7): [True: 0, False: 56.1k]
  ------------------
   90|      0|		{
   91|      0|			recordBuffer[1] = static_cast<uint8_t>(optionSize);
   92|      0|			if (optionSize > 2 && m_RecValue != nullptr)
  ------------------
  |  Branch (92:8): [True: 0, False: 0]
  |  Branch (92:26): [True: 0, False: 0]
  ------------------
   93|      0|				memcpy(recordBuffer + 2, m_RecValue, m_RecValueLen);
   94|      0|		}
   95|       |
   96|  56.1k|		return TcpOption(recordBuffer);
   97|  56.1k|	}
_ZNK4pcpp8TcpLayer10getSrcPortEv:
  104|   597k|	{
  105|       |		return be16toh(getTcpHeader()->portSrc);
  106|   597k|	}
_ZNK4pcpp8TcpLayer10getDstPortEv:
  109|   597k|	{
  110|       |		return be16toh(getTcpHeader()->portDst);
  111|   597k|	}
_ZNK4pcpp8TcpLayer12getTcpOptionENS_17TcpOptionEnumTypeE:
  114|  93.0k|	{
  115|  93.0k|		return m_OptionReader.getTLVRecord(static_cast<uint8_t>(option), getOptionsBasePtr(),
  116|  93.0k|		                                   getHeaderLen() - sizeof(tcphdr));
  117|  93.0k|	}
_ZNK4pcpp8TcpLayer17getFirstTcpOptionEv:
  120|  56.1k|	{
  121|  56.1k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(tcphdr));
  122|  56.1k|	}
_ZNK4pcpp8TcpLayer16getNextTcpOptionERNS_9TcpOptionE:
  125|   180k|	{
  126|   180k|		TcpOption nextOpt =
  127|   180k|		    m_OptionReader.getNextTLVRecord(tcpOption, getOptionsBasePtr(), getHeaderLen() - sizeof(tcphdr));
  128|   180k|		if (nextOpt.isNotNull() && nextOpt.getType() == TCPOPT_DUMMY)
  ------------------
  |  |   33|   124k|#define TCPOPT_DUMMY 0xff
  ------------------
  |  Branch (128:7): [True: 124k, False: 56.0k]
  |  Branch (128:30): [True: 75, False: 124k]
  ------------------
  129|     75|			return TcpOption(nullptr);
  130|       |
  131|   180k|		return nextOpt;
  132|   180k|	}
_ZN4pcpp8TcpLayer20insertTcpOptionAfterERKNS_16TcpOptionBuilderENS_17TcpOptionEnumTypeE:
  146|  93.0k|	{
  147|  93.0k|		int offset = 0;
  148|       |
  149|  93.0k|		if (prevOptionType == TcpOptionEnumType::Unknown)
  ------------------
  |  Branch (149:7): [True: 0, False: 93.0k]
  ------------------
  150|      0|		{
  151|      0|			offset = sizeof(tcphdr);
  152|      0|		}
  153|  93.0k|		else
  154|  93.0k|		{
  155|  93.0k|			const TcpOption prevOpt = getTcpOption(prevOptionType);
  156|  93.0k|			if (prevOpt.isNull())
  ------------------
  |  Branch (156:8): [True: 36.9k, False: 56.1k]
  ------------------
  157|  36.9k|			{
  158|  36.9k|				PCPP_LOG_ERROR("Previous option of type " << static_cast<int>(prevOptionType)
  ------------------
  |  |  443|  36.9k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  36.9k|	do                                                                                                                 \
  |  |  |  |  413|  36.9k|	{                                                                                                                  \
  |  |  |  |  414|  36.9k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  36.9k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  36.9k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 36.9k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  36.9k|		{                                                                                                              \
  |  |  |  |  417|  36.9k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  36.9k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  36.9k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  36.9k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  36.9k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  36.9k|		}                                                                                                              \
  |  |  |  |  422|  36.9k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 36.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  159|  36.9k|				                                          << " not found, cannot add a new TCP option");
  160|  36.9k|				return TcpOption(nullptr);
  161|  36.9k|			}
  162|       |
  163|  56.1k|			offset = prevOpt.getRecordBasePtr() + prevOpt.getTotalSize() - m_Data;
  164|  56.1k|		}
  165|       |
  166|  56.1k|		return addTcpOptionAt(optionBuilder, offset);
  167|  93.0k|	}
_ZN4pcpp8TcpLayer14addTcpOptionAtERKNS_16TcpOptionBuilderEi:
  215|  56.1k|	{
  216|  56.1k|		TcpOption newOption = optionBuilder.build();
  217|  56.1k|		if (newOption.isNull())
  ------------------
  |  Branch (217:7): [True: 0, False: 56.1k]
  ------------------
  218|      0|			return newOption;
  219|       |
  220|       |		// calculate total TCP option size
  221|  56.1k|		TcpOption curOpt = getFirstTcpOption();
  222|  56.1k|		size_t totalOptSize = 0;
  223|   236k|		while (!curOpt.isNull())
  ------------------
  |  Branch (223:10): [True: 180k, False: 56.1k]
  ------------------
  224|   180k|		{
  225|   180k|			totalOptSize += curOpt.getTotalSize();
  226|   180k|			curOpt = getNextTcpOption(curOpt);
  227|   180k|		}
  228|  56.1k|		totalOptSize += newOption.getTotalSize();
  229|       |
  230|  56.1k|		size_t sizeToExtend = newOption.getTotalSize();
  231|       |
  232|  56.1k|		if (!extendLayer(offset, sizeToExtend))
  ------------------
  |  Branch (232:7): [True: 0, False: 56.1k]
  ------------------
  233|      0|		{
  234|      0|			PCPP_LOG_ERROR("Could not extend TcpLayer in [" << sizeToExtend << "] bytes");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  235|      0|			newOption.purgeRecordData();
  236|      0|			return TcpOption(nullptr);
  237|      0|		}
  238|       |
  239|  56.1k|		memcpy(m_Data + offset, newOption.getRecordBasePtr(), newOption.getTotalSize());
  240|       |
  241|  56.1k|		newOption.purgeRecordData();
  242|       |
  243|  56.1k|		adjustTcpOptionTrailer(totalOptSize);
  244|       |
  245|  56.1k|		m_OptionReader.changeTLVRecordCount(1);
  246|       |
  247|  56.1k|		uint8_t* newOptPtr = m_Data + offset;
  248|       |
  249|  56.1k|		return TcpOption(newOptPtr);
  250|  56.1k|	}
_ZN4pcpp8TcpLayer22adjustTcpOptionTrailerEm:
  253|  56.1k|	{
  254|  56.1k|		int newNumberOfTrailingBytes = 0;
  255|   196k|		while ((totalOptSize + newNumberOfTrailingBytes) % 4 != 0)
  ------------------
  |  Branch (255:10): [True: 140k, False: 56.1k]
  ------------------
  256|   140k|			newNumberOfTrailingBytes++;
  257|       |
  258|  56.1k|		if (newNumberOfTrailingBytes < m_NumOfTrailingBytes)
  ------------------
  |  Branch (258:7): [True: 0, False: 56.1k]
  ------------------
  259|      0|			shortenLayer(sizeof(tcphdr) + totalOptSize, m_NumOfTrailingBytes - newNumberOfTrailingBytes - 1);
  260|  56.1k|		else if (newNumberOfTrailingBytes > m_NumOfTrailingBytes)
  ------------------
  |  Branch (260:12): [True: 48.4k, False: 7.68k]
  ------------------
  261|  48.4k|			extendLayer(sizeof(tcphdr) + totalOptSize, newNumberOfTrailingBytes - m_NumOfTrailingBytes);
  262|       |
  263|  56.1k|		m_NumOfTrailingBytes = newNumberOfTrailingBytes;
  264|       |
  265|   196k|		for (int i = 0; i < m_NumOfTrailingBytes; i++)
  ------------------
  |  Branch (265:19): [True: 140k, False: 56.1k]
  ------------------
  266|   140k|			m_Data[sizeof(tcphdr) + totalOptSize + i] = TCPOPT_DUMMY;
  ------------------
  |  |   33|   140k|#define TCPOPT_DUMMY 0xff
  ------------------
  267|       |
  268|  56.1k|		getTcpHeader()->dataOffset = (sizeof(tcphdr) + totalOptSize + m_NumOfTrailingBytes) / 4;
  269|  56.1k|	}
_ZN4pcpp8TcpLayer17calculateChecksumEb:
  272|  93.0k|	{
  273|  93.0k|		tcphdr* tcpHdr = getTcpHeader();
  274|  93.0k|		uint16_t checksumRes = 0;
  275|  93.0k|		const uint16_t currChecksumValue = tcpHdr->headerChecksum;
  276|       |
  277|  93.0k|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (277:7): [True: 93.0k, False: 0]
  ------------------
  278|  93.0k|		{
  279|  93.0k|			tcpHdr->headerChecksum = 0;
  280|  93.0k|			PCPP_LOG_DEBUG("TCP data len = " << m_DataLen);
  ------------------
  |  |  425|  93.0k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  93.0k|	do                                                                                                                 \
  |  |  |  |  413|  93.0k|	{                                                                                                                  \
  |  |  |  |  414|  93.0k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  93.0k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  93.0k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 93.0k]
  |  |  |  |  ------------------
  |  |  |  |  416|  93.0k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  93.0k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 93.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  281|       |
  282|  93.0k|			if (m_PrevLayer->getProtocol() == IPv4)
  ------------------
  |  Branch (282:8): [True: 77.4k, False: 15.5k]
  ------------------
  283|  77.4k|			{
  284|  77.4k|				const IPv4Address srcIP = static_cast<IPv4Layer*>(m_PrevLayer)->getSrcIPv4Address();
  285|  77.4k|				const IPv4Address dstIP = static_cast<IPv4Layer*>(m_PrevLayer)->getDstIPv4Address();
  286|       |
  287|  77.4k|				checksumRes =
  288|  77.4k|				    pcpp::computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(tcpHdr), getDataLen(),
  289|  77.4k|				                                   IPAddress::IPv4AddressType, PACKETPP_IPPROTO_TCP, srcIP, dstIP);
  290|       |
  291|  77.4k|				PCPP_LOG_DEBUG("calculated IPv4 TCP checksum = 0x" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  77.4k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  77.4k|	do                                                                                                                 \
  |  |  |  |  413|  77.4k|	{                                                                                                                  \
  |  |  |  |  414|  77.4k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  77.4k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  77.4k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 77.4k]
  |  |  |  |  ------------------
  |  |  |  |  416|  77.4k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  77.4k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 77.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  292|  77.4k|			}
  293|  15.5k|			else if (m_PrevLayer->getProtocol() == IPv6)
  ------------------
  |  Branch (293:13): [True: 15.5k, False: 0]
  ------------------
  294|  15.5k|			{
  295|  15.5k|				const IPv6Address srcIP = static_cast<IPv6Layer*>(m_PrevLayer)->getSrcIPv6Address();
  296|  15.5k|				const IPv6Address dstIP = static_cast<IPv6Layer*>(m_PrevLayer)->getDstIPv6Address();
  297|       |
  298|  15.5k|				checksumRes = computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(tcpHdr), getDataLen(),
  299|  15.5k|				                                       IPAddress::IPv6AddressType, PACKETPP_IPPROTO_TCP, srcIP, dstIP);
  300|       |
  301|  15.5k|				PCPP_LOG_DEBUG("calculated IPv6 TCP checksum = 0xX" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  15.5k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  15.5k|	do                                                                                                                 \
  |  |  |  |  413|  15.5k|	{                                                                                                                  \
  |  |  |  |  414|  15.5k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  15.5k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  15.5k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 15.5k]
  |  |  |  |  ------------------
  |  |  |  |  416|  15.5k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  15.5k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 15.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  302|  15.5k|			}
  303|  93.0k|		}
  304|       |
  305|  93.0k|		if (writeResultToPacket)
  ------------------
  |  Branch (305:7): [True: 93.0k, False: 0]
  ------------------
  306|  93.0k|			tcpHdr->headerChecksum = htobe16(checksumRes);
  307|      0|		else
  308|      0|			tcpHdr->headerChecksum = currChecksumValue;
  309|       |
  310|  93.0k|		return checksumRes;
  311|  93.0k|	}
_ZN4pcpp8TcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  323|   504k|	    : Layer(data, dataLen, prevLayer, packet, TCP)
  324|   504k|	{
  325|   504k|		m_NumOfTrailingBytes = 0;
  326|   504k|	}
_ZN4pcpp8TcpLayer13copyLayerDataERKS0_:
  341|  93.0k|	{
  342|  93.0k|		m_OptionReader = other.m_OptionReader;
  343|  93.0k|		m_NumOfTrailingBytes = other.m_NumOfTrailingBytes;
  344|  93.0k|	}
_ZN4pcpp8TcpLayerC2ERKS0_:
  346|  93.0k|	TcpLayer::TcpLayer(const TcpLayer& other) : Layer(other)
  347|  93.0k|	{
  348|  93.0k|		copyLayerData(other);
  349|  93.0k|	}
_ZN4pcpp8TcpLayer14parseNextLayerEv:
  361|   504k|	{
  362|   504k|		const size_t headerLen = getHeaderLen();
  363|   504k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (363:7): [True: 93.3k, False: 411k]
  ------------------
  364|  93.3k|			return;
  365|       |
  366|   411k|		uint8_t* payload = m_Data + headerLen;
  367|   411k|		const size_t payloadLen = m_DataLen - headerLen;
  368|   411k|		const uint16_t portDst = getDstPort();
  369|   411k|		const uint16_t portSrc = getSrcPort();
  370|   411k|		const char* payloadChar = reinterpret_cast<const char*>(payload);
  371|       |
  372|   411k|		if (HttpMessage::isHttpPort(portDst) &&
  ------------------
  |  Branch (372:7): [True: 15.9k, False: 395k]
  ------------------
  373|  15.9k|		    HttpRequestFirstLine::parseMethod(payloadChar, payloadLen) != HttpRequestLayer::HttpMethodUnknown)
  ------------------
  |  Branch (373:7): [True: 5.38k, False: 10.5k]
  ------------------
  374|  5.38k|		{
  375|  5.38k|			constructNextLayer<HttpRequestLayer>(payload, payloadLen, getAttachedPacket());
  376|  5.38k|		}
  377|   405k|		else if (HttpMessage::isHttpPort(portSrc) &&
  ------------------
  |  Branch (377:12): [True: 35.4k, False: 370k]
  |  Branch (377:12): [True: 10.9k, False: 394k]
  ------------------
  378|  35.4k|		         HttpResponseFirstLine::parseVersion(payloadChar, payloadLen) != HttpVersion::HttpVersionUnknown &&
  ------------------
  |  Branch (378:12): [True: 11.7k, False: 23.7k]
  ------------------
  379|  11.7k|		         !HttpResponseFirstLine::parseStatusCode(payloadChar, payloadLen).isUnsupportedCode())
  ------------------
  |  Branch (379:12): [True: 10.9k, False: 780]
  ------------------
  380|  10.9k|		{
  381|  10.9k|			constructNextLayer<HttpResponseLayer>(payload, payloadLen, getAttachedPacket());
  382|  10.9k|		}
  383|   394k|		else if (SSLLayer::IsSSLMessage(portSrc, portDst, payload, payloadLen))
  ------------------
  |  Branch (383:12): [True: 115k, False: 279k]
  ------------------
  384|   115k|		{
  385|   115k|			constructNextLayerFromFactory(SSLLayer::createSSLMessage, payload, payloadLen);
  386|   115k|		}
  387|   279k|		else if (SipLayer::isSipPort(portDst) || SipLayer::isSipPort(portSrc))
  ------------------
  |  Branch (387:12): [True: 0, False: 279k]
  |  Branch (387:44): [True: 0, False: 279k]
  ------------------
  388|      0|		{
  389|      0|			if (SipRequestFirstLine::parseMethod(payloadChar, payloadLen) != SipRequestLayer::SipMethodUnknown)
  ------------------
  |  Branch (389:8): [True: 0, False: 0]
  ------------------
  390|      0|			{
  391|      0|				constructNextLayer<SipRequestLayer>(payload, payloadLen, getAttachedPacket());
  392|      0|			}
  393|      0|			else if (SipResponseFirstLine::parseStatusCode(payloadChar, payloadLen) !=
  ------------------
  |  Branch (393:13): [True: 0, False: 0]
  ------------------
  394|      0|			         SipResponseLayer::SipStatusCodeUnknown)
  395|      0|			{
  396|      0|				constructNextLayer<SipResponseLayer>(payload, payloadLen, getAttachedPacket());
  397|      0|			}
  398|      0|			else
  399|      0|			{
  400|      0|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  401|      0|			}
  402|      0|		}
  403|   279k|		else if (BgpLayer::isBgpPort(portSrc, portDst))
  ------------------
  |  Branch (403:12): [True: 47.2k, False: 231k]
  ------------------
  404|  47.2k|		{
  405|  47.2k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(BgpLayer::parseBgpLayer, payload, payloadLen);
  406|  47.2k|		}
  407|   231k|		else if (SSHLayer::isSSHPort(portSrc, portDst))
  ------------------
  |  Branch (407:12): [True: 14.5k, False: 217k]
  ------------------
  408|  14.5k|		{
  409|  14.5k|			constructNextLayerFromFactory(SSHLayer::createSSHMessage, payload, payloadLen);
  410|  14.5k|		}
  411|   217k|		else if (DnsLayer::isDataValid(payload, payloadLen, true) &&
  ------------------
  |  Branch (411:12): [True: 192k, False: 24.6k]
  ------------------
  412|   192k|		         (DnsLayer::isDnsPort(portDst) || DnsLayer::isDnsPort(portSrc)))
  ------------------
  |  Branch (412:13): [True: 10.2k, False: 182k]
  |  Branch (412:45): [True: 7.47k, False: 175k]
  ------------------
  413|  17.7k|		{
  414|  17.7k|			constructNextLayer<DnsOverTcpLayer>(payload, payloadLen, getAttachedPacket());
  415|  17.7k|		}
  416|   199k|		else if (TelnetLayer::isDataValid(payload, payloadLen) &&
  ------------------
  |  Branch (416:12): [True: 199k, False: 0]
  ------------------
  417|   199k|		         (TelnetLayer::isTelnetPort(portDst) || TelnetLayer::isTelnetPort(portSrc)))
  ------------------
  |  Branch (417:13): [True: 49.8k, False: 149k]
  |  Branch (417:51): [True: 89, False: 149k]
  ------------------
  418|  49.9k|		{
  419|  49.9k|			constructNextLayer<TelnetLayer>(payload, payloadLen, getAttachedPacket());
  420|  49.9k|		}
  421|   149k|		else if (FtpLayer::isFtpPort(portSrc) && FtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (421:12): [True: 9.69k, False: 140k]
  |  Branch (421:44): [True: 9.69k, False: 5]
  ------------------
  422|  9.69k|		{
  423|  9.69k|			constructNextLayer<FtpResponseLayer>(payload, payloadLen, getAttachedPacket());
  424|  9.69k|		}
  425|   140k|		else if (FtpLayer::isFtpPort(portDst) && FtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (425:12): [True: 0, False: 140k]
  |  Branch (425:44): [True: 0, False: 0]
  ------------------
  426|      0|		{
  427|      0|			constructNextLayer<FtpRequestLayer>(payload, payloadLen, getAttachedPacket());
  428|      0|		}
  429|   140k|		else if (FtpLayer::isFtpDataPort(portSrc) || FtpLayer::isFtpDataPort(portDst))
  ------------------
  |  Branch (429:12): [True: 713, False: 139k]
  |  Branch (429:48): [True: 2.50k, False: 136k]
  ------------------
  430|  3.22k|		{
  431|  3.22k|			constructNextLayer<FtpDataLayer>(payload, payloadLen, getAttachedPacket());
  432|  3.22k|		}
  433|   136k|		else if ((DoIpLayer::isDoIpPort(portSrc) || DoIpLayer::isDoIpPort(portDst)) &&
  ------------------
  |  Branch (433:13): [True: 5.77k, False: 131k]
  |  Branch (433:47): [True: 8.80k, False: 122k]
  ------------------
  434|  14.5k|		         (DoIpLayer::isDataValid(payload, payloadLen)))
  ------------------
  |  Branch (434:12): [True: 11.3k, False: 3.18k]
  ------------------
  435|  11.3k|		{
  436|  11.3k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(DoIpLayer::parseDoIpLayer, payload, payloadLen);
  437|  11.3k|		}
  438|   125k|		else if (SomeIpLayer::isSomeIpPort(portSrc) || SomeIpLayer::isSomeIpPort(portDst))
  ------------------
  |  Branch (438:12): [True: 0, False: 125k]
  |  Branch (438:50): [True: 0, False: 125k]
  ------------------
  439|      0|		{
  440|      0|			constructNextLayerFromFactory(SomeIpLayer::parseSomeIpLayer, payload, payloadLen);
  441|      0|		}
  442|   125k|		else if (TpktLayer::isDataValid(payload, payloadLen) && TpktLayer::isTpktPort(portSrc, portDst))
  ------------------
  |  Branch (442:12): [True: 121k, False: 3.70k]
  |  Branch (442:59): [True: 21.9k, False: 99.7k]
  ------------------
  443|  21.9k|		{
  444|  21.9k|			constructNextLayer<TpktLayer>(payload, payloadLen, getAttachedPacket());
  445|  21.9k|		}
  446|   103k|		else if (SmtpLayer::isSmtpPort(portSrc) && SmtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (446:12): [True: 2.08k, False: 101k]
  |  Branch (446:46): [True: 160, False: 1.92k]
  ------------------
  447|    160|		{
  448|    160|			constructNextLayer<SmtpResponseLayer>(payload, payloadLen, getAttachedPacket());
  449|    160|		}
  450|   103k|		else if (SmtpLayer::isSmtpPort(portDst) && SmtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (450:12): [True: 385, False: 102k]
  |  Branch (450:46): [True: 120, False: 265]
  ------------------
  451|    120|		{
  452|    120|			constructNextLayer<SmtpRequestLayer>(payload, payloadLen, getAttachedPacket());
  453|    120|		}
  454|   103k|		else if (LdapLayer::isLdapPort(portDst) || LdapLayer::isLdapPort(portSrc))
  ------------------
  |  Branch (454:12): [True: 17.3k, False: 85.7k]
  |  Branch (454:46): [True: 20.5k, False: 65.2k]
  ------------------
  455|  37.8k|		{
  456|  37.8k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(LdapLayer::parseLdapMessage, payload,
  457|  37.8k|			                                                           payloadLen);
  458|  37.8k|		}
  459|  65.2k|		else if (PostgresLayer::isPostgresPort(portDst))
  ------------------
  |  Branch (459:12): [True: 5, False: 65.2k]
  ------------------
  460|      5|		{
  461|      5|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(PostgresLayer::parsePostgresFrontendMessages,
  462|      5|			                                                           payload, payloadLen);
  463|      5|		}
  464|  65.2k|		else if (PostgresLayer::isPostgresPort(portSrc))
  ------------------
  |  Branch (464:12): [True: 0, False: 65.2k]
  ------------------
  465|      0|		{
  466|      0|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(PostgresLayer::parsePostgresBackendMessages,
  467|      0|			                                                           payload, payloadLen);
  468|      0|		}
  469|  65.2k|		else if (MySqlLayer::isMySqlPort(portSrc))
  ------------------
  |  Branch (469:12): [True: 455, False: 64.7k]
  ------------------
  470|    455|		{
  471|    455|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(MySqlLayer::parseMySqlServerMessage, payload,
  472|    455|			                                                           payloadLen);
  473|    455|		}
  474|  64.7k|		else if (MySqlLayer::isMySqlPort(portDst))
  ------------------
  |  Branch (474:12): [True: 652, False: 64.1k]
  ------------------
  475|    652|		{
  476|    652|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(MySqlLayer::parseMySqlClientMessage, payload,
  477|    652|			                                                           payloadLen);
  478|    652|		}
  479|  64.1k|		else if ((GtpV2Layer::isGTPv2Port(portDst) || GtpV2Layer::isGTPv2Port(portSrc)) &&
  ------------------
  |  Branch (479:13): [True: 0, False: 64.1k]
  |  Branch (479:49): [True: 0, False: 64.1k]
  ------------------
  480|      0|		         GtpV2Layer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (480:12): [True: 0, False: 0]
  ------------------
  481|      0|		{
  482|      0|			constructNextLayer<GtpV2Layer>(payload, payloadLen, getAttachedPacket());
  483|      0|		}
  484|  64.1k|		else if (ModbusLayer::isModbusPort(portDst) && ModbusLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (484:12): [True: 5, False: 64.1k]
  |  Branch (484:50): [True: 5, False: 0]
  ------------------
  485|      5|		{
  486|      5|			constructNextLayer<ModbusLayer>(payload, payloadLen, getAttachedPacket());
  487|      5|		}
  488|  64.1k|		else
  489|  64.1k|		{
  490|  64.1k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  491|  64.1k|		}
  492|   411k|	}
_ZN4pcpp8TcpLayer22computeCalculateFieldsEv:
  495|  93.0k|	{
  496|  93.0k|		tcphdr* tcpHdr = getTcpHeader();
  497|       |
  498|  93.0k|		tcpHdr->dataOffset = getHeaderLen() >> 2;
  499|  93.0k|		calculateChecksum(true);
  500|  93.0k|	}
_ZNK4pcpp8TcpLayer8toStringEv:
  503|   186k|	{
  504|   186k|		const tcphdr* hdr = getTcpHeader();
  505|   186k|		std::string result = "TCP Layer, ";
  506|   186k|		if (hdr->synFlag)
  ------------------
  |  Branch (506:7): [True: 17.0k, False: 169k]
  ------------------
  507|  17.0k|		{
  508|  17.0k|			if (hdr->ackFlag)
  ------------------
  |  Branch (508:8): [True: 7.23k, False: 9.80k]
  ------------------
  509|  7.23k|				result += "[SYN, ACK], ";
  510|  9.80k|			else
  511|  9.80k|				result += "[SYN], ";
  512|  17.0k|		}
  513|   169k|		else if (hdr->finFlag)
  ------------------
  |  Branch (513:12): [True: 8.96k, False: 160k]
  ------------------
  514|  8.96k|		{
  515|  8.96k|			if (hdr->ackFlag)
  ------------------
  |  Branch (515:8): [True: 7.98k, False: 976]
  ------------------
  516|  7.98k|				result += "[FIN, ACK], ";
  517|    976|			else
  518|    976|				result += "[FIN], ";
  519|  8.96k|		}
  520|   160k|		else if (hdr->ackFlag)
  ------------------
  |  Branch (520:12): [True: 159k, False: 1.04k]
  ------------------
  521|   159k|			result += "[ACK], ";
  522|       |
  523|   186k|		std::ostringstream srcPortStream;
  524|   186k|		srcPortStream << getSrcPort();
  525|   186k|		std::ostringstream dstPortStream;
  526|   186k|		dstPortStream << getDstPort();
  527|   186k|		result += "Src port: " + srcPortStream.str() + ", Dst port: " + dstPortStream.str();
  528|       |
  529|   186k|		return result;
  530|   186k|	}

_ZN4pcpp11TelnetLayer17distanceToNextIACEPhm:
  118|   204k|	{
  119|   204k|		auto beginIt = startPos;
  120|   204k|		auto endIt = startPos + maxLength;
  121|   204k|		auto nextIacIt = findNextIAC(beginIt, endIt);
  122|   204k|		return std::distance(beginIt, nextIacIt);
  123|   204k|	}
_ZN4pcpp11TelnetLayer11getFieldLenEPhm:
  126|   557k|	{
  127|       |		// Check first byte is IAC
  128|   557k|		if (startPos && (startPos[0] == static_cast<int>(TelnetCommand::InterpretAsCommand)) && (maxLength >= 2))
  ------------------
  |  Branch (128:7): [True: 557k, False: 0]
  |  Branch (128:19): [True: 443k, False: 114k]
  |  Branch (128:91): [True: 442k, False: 465]
  ------------------
  129|   442k|		{
  130|       |			// If subnegotiation parse until next IAC
  131|   442k|			if (startPos[1] == static_cast<int>(TelnetCommand::Subnegotiation))
  ------------------
  |  Branch (131:8): [True: 89.6k, False: 353k]
  ------------------
  132|  89.6k|				return distanceToNextIAC(startPos, maxLength);
  133|       |			// Only WILL, WONT, DO, DONT have option. Ref http://pcmicro.com/netfoss/telnet.html
  134|   353k|			else if (startPos[1] >= static_cast<int>(TelnetCommand::WillPerform) &&
  ------------------
  |  Branch (134:13): [True: 134k, False: 218k]
  ------------------
  135|   134k|			         startPos[1] <= static_cast<int>(TelnetCommand::DontPerform))
  ------------------
  |  Branch (135:13): [True: 52.2k, False: 82.5k]
  ------------------
  136|  52.2k|				return std::min<size_t>(3, maxLength);
  137|   300k|			return 2;
  138|   442k|		}
  139|   115k|		return distanceToNextIAC(startPos, maxLength);
  140|   557k|	}
_ZN4pcpp11TelnetLayer16getNextDataFieldEPhm:
  143|  17.7k|	{
  144|       |		// This assumes `pos` points to the start of a valid field.
  145|  17.7k|		auto const endIt = pos + len;
  146|       |
  147|       |		// Advance to the next field, as we are skipping the current one from the search.
  148|  17.7k|		pos += getFieldLen(pos, len);
  149|       |
  150|  30.2k|		while (pos < endIt)
  ------------------
  |  Branch (150:10): [True: 26.4k, False: 3.84k]
  ------------------
  151|  26.4k|		{
  152|       |			// Check if the current field is data
  153|  26.4k|			switch (getTelnetSequenceType(pos, std::distance(pos, endIt)))
  154|  26.4k|			{
  155|    888|			case TelnetSequenceType::Unknown:
  ------------------
  |  Branch (155:4): [True: 888, False: 25.5k]
  ------------------
  156|    888|			{
  157|    888|				PCPP_LOG_DEBUG("Telnet Parse Error: Unknown sequence found during data field search.");
  ------------------
  |  |  425|    888|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    888|	do                                                                                                                 \
  |  |  |  |  413|    888|	{                                                                                                                  \
  |  |  |  |  414|    888|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    888|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    888|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 888]
  |  |  |  |  ------------------
  |  |  |  |  416|    888|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|    888|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 888]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  158|    888|				return nullptr;
  159|      0|			}
  160|  13.0k|			case TelnetSequenceType::UserData:
  ------------------
  |  Branch (160:4): [True: 13.0k, False: 13.3k]
  ------------------
  161|  13.0k|				return pos;
  162|  12.4k|			default:
  ------------------
  |  Branch (162:4): [True: 12.4k, False: 13.9k]
  ------------------
  163|  12.4k|				break;  // continue searching
  164|  26.4k|			}
  165|       |
  166|       |			// If not data, move to next field
  167|  12.4k|			pos += getFieldLen(pos, std::distance(pos, endIt));
  168|  12.4k|		}
  169|       |
  170|       |		// If we got here, no data field has been found before the end of the buffer
  171|  3.84k|		return nullptr;
  172|  17.7k|	}
_ZN4pcpp11TelnetLayer19getNextCommandFieldEPhm:
  175|   275k|	{
  176|       |		// This assumes `pos` points to the start of a valid field.
  177|   275k|		auto const endIt = pos + len;
  178|       |
  179|       |		// Advance to the next field, as we are skipping the current one from the search.
  180|   275k|		pos += getFieldLen(pos, len);
  181|       |
  182|   422k|		while (pos < endIt)
  ------------------
  |  Branch (182:10): [True: 385k, False: 36.9k]
  ------------------
  183|   385k|		{
  184|       |			// Check if the current field is command
  185|   385k|			switch (getTelnetSequenceType(pos, std::distance(pos, endIt)))
  186|   385k|			{
  187|  6.62k|			case TelnetSequenceType::Unknown:
  ------------------
  |  Branch (187:4): [True: 6.62k, False: 378k]
  ------------------
  188|  6.62k|			{
  189|  6.62k|				PCPP_LOG_DEBUG("Telnet Parse Error: Unknown sequence found during command field search.");
  ------------------
  |  |  425|  6.62k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  6.62k|	do                                                                                                                 \
  |  |  |  |  413|  6.62k|	{                                                                                                                  \
  |  |  |  |  414|  6.62k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  6.62k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  6.62k|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 6.62k]
  |  |  |  |  ------------------
  |  |  |  |  416|  6.62k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  6.62k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 6.62k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  190|  6.62k|				return nullptr;
  191|      0|			}
  192|   231k|			case TelnetSequenceType::Command:
  ------------------
  |  Branch (192:4): [True: 231k, False: 153k]
  ------------------
  193|   231k|				return pos;
  194|   147k|			default:
  ------------------
  |  Branch (194:4): [True: 147k, False: 238k]
  ------------------
  195|   147k|				break;  // continue searching
  196|   385k|			}
  197|       |
  198|       |			// If not command, move to next field
  199|   147k|			pos += getFieldLen(pos, std::distance(pos, endIt));
  200|   147k|		}
  201|       |
  202|       |		// If we got here, no command field has been found before the end of the buffer
  203|  36.9k|		return nullptr;
  204|   275k|	}
_ZN4pcpp11TelnetLayer13getSubCommandEPhm:
  207|  52.6k|	{
  208|  52.6k|		if (len < 3 || pos[1] < static_cast<int>(TelnetCommand::Subnegotiation))
  ------------------
  |  Branch (208:7): [True: 33.4k, False: 19.2k]
  |  Branch (208:18): [True: 0, False: 19.2k]
  ------------------
  209|  33.4k|			return static_cast<int>(TelnetOption::TelnetOptionNoOption);
  210|  19.2k|		return pos[2];
  211|  52.6k|	}
_ZN4pcpp11TelnetLayer14getCommandDataEPhRm:
  214|  52.6k|	{
  215|  52.6k|		if (pos[1] == static_cast<int>(TelnetCommand::Subnegotiation) && len > 3)
  ------------------
  |  Branch (215:7): [True: 13.0k, False: 39.6k]
  |  Branch (215:68): [True: 11.0k, False: 1.98k]
  ------------------
  216|  11.0k|		{
  217|  11.0k|			len -= 3;
  218|  11.0k|			return &pos[3];
  219|  11.0k|		}
  220|  41.6k|		len = 0;
  221|  41.6k|		return nullptr;
  222|  52.6k|	}
_ZN4pcpp11TelnetLayer15getDataAsStringEb:
  225|  34.6k|	{
  226|  34.6k|		if (m_Data == nullptr)
  ------------------
  |  Branch (226:7): [True: 0, False: 34.6k]
  ------------------
  227|      0|		{
  228|      0|			PCPP_LOG_DEBUG("Layer does not have data");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  229|      0|			return {};
  230|      0|		}
  231|       |
  232|       |		// Convert to string
  233|  34.6k|		if (removeEscapeCharacters)
  ------------------
  |  Branch (233:7): [True: 34.6k, False: 0]
  ------------------
  234|  34.6k|		{
  235|  34.6k|			uint8_t* dataPos = nullptr;
  236|  34.6k|			switch (getTelnetSequenceType(m_Data, m_DataLen))
  237|  34.6k|			{
  238|    155|			case TelnetSequenceType::Unknown:
  ------------------
  |  Branch (238:4): [True: 155, False: 34.5k]
  ------------------
  239|    155|			{
  240|    155|				PCPP_LOG_DEBUG("Telnet Parse Error: Unknown sequence found during data string extraction.");
  ------------------
  |  |  425|    155|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    155|	do                                                                                                                 \
  |  |  |  |  413|    155|	{                                                                                                                  \
  |  |  |  |  414|    155|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    155|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    155|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 155]
  |  |  |  |  ------------------
  |  |  |  |  416|    155|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|    155|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 155]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  241|    155|				return {};
  242|      0|			}
  243|  16.7k|			case TelnetSequenceType::UserData:
  ------------------
  |  Branch (243:4): [True: 16.7k, False: 17.9k]
  ------------------
  244|  16.7k|				dataPos = m_Data;
  245|  16.7k|				break;
  246|  17.7k|			case TelnetSequenceType::Command:
  ------------------
  |  Branch (246:4): [True: 17.7k, False: 16.8k]
  ------------------
  247|  17.7k|				dataPos = getNextDataField(m_Data, m_DataLen);
  248|  17.7k|				break;
  249|      0|			default:
  ------------------
  |  Branch (249:4): [True: 0, False: 34.6k]
  ------------------
  250|      0|				throw std::logic_error("Unsupported sequence type");
  251|  34.6k|			}
  252|       |
  253|  34.5k|			if (!dataPos)
  ------------------
  |  Branch (253:8): [True: 4.73k, False: 29.7k]
  ------------------
  254|  4.73k|			{
  255|  4.73k|				PCPP_LOG_DEBUG("Packet does not have a data field");
  ------------------
  |  |  425|  4.73k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  4.73k|	do                                                                                                                 \
  |  |  |  |  413|  4.73k|	{                                                                                                                  \
  |  |  |  |  414|  4.73k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  4.73k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.73k|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 4.73k]
  |  |  |  |  ------------------
  |  |  |  |  416|  4.73k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  4.73k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 4.73k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  256|  4.73k|				return std::string();
  257|  4.73k|			}
  258|       |
  259|  29.7k|			PCPP_ASSERT(dataPos >= m_Data && dataPos < (m_Data + m_DataLen),
  ------------------
  |  |   47|  29.7k|#	define PCPP_ASSERT(condition, message) (void)0;
  ------------------
  260|  29.7k|			            "Data position is out of bounds, this should never happen!");
  261|       |
  262|       |			// End of range is corrected by the advance offset.
  263|  29.7k|			auto const* beginIt = dataPos;
  264|  29.7k|			auto const* endIt = dataPos + m_DataLen - std::distance(m_Data, dataPos);
  265|       |
  266|  29.7k|			std::string result;
  267|  29.7k|			std::copy_if(beginIt, endIt, std::back_inserter(result), [](char ch) -> bool {
  268|  29.7k|				return ch > 31 && ch < 127;  // From SPACE to ~
  269|  29.7k|			});
  270|  29.7k|			return result;
  271|  34.5k|		}
  272|      0|		return std::string(reinterpret_cast<char*>(m_Data), m_DataLen);
  273|  34.6k|	}
_ZN4pcpp11TelnetLayer24getTotalNumberOfCommandsEv:
  276|  8.32k|	{
  277|  8.32k|		size_t ctr = 0;
  278|  8.32k|		if (isTelnetCommand(m_Data, m_DataLen))
  ------------------
  |  Branch (278:7): [True: 4.25k, False: 4.07k]
  ------------------
  279|  4.25k|			++ctr;
  280|       |
  281|  8.32k|		uint8_t* pos = m_Data;
  282|  38.7k|		while (pos != nullptr)
  ------------------
  |  Branch (282:10): [True: 30.4k, False: 8.32k]
  ------------------
  283|  30.4k|		{
  284|  30.4k|			size_t offset = pos - m_Data;
  285|  30.4k|			pos = getNextCommandField(pos, m_DataLen - offset);
  286|  30.4k|			if (pos)
  ------------------
  |  Branch (286:8): [True: 22.0k, False: 8.32k]
  ------------------
  287|  22.0k|				++ctr;
  288|  30.4k|		}
  289|       |
  290|  8.32k|		return ctr;
  291|  8.32k|	}
_ZN4pcpp11TelnetLayer19getNumberOfCommandsENS0_13TelnetCommandE:
  294|  34.6k|	{
  295|  34.6k|		if (static_cast<int>(command) < 0)
  ------------------
  |  Branch (295:7): [True: 8.32k, False: 26.3k]
  ------------------
  296|  8.32k|			return 0;
  297|       |
  298|  26.3k|		size_t ctr = 0;
  299|  26.3k|		if (isTelnetCommand(m_Data, m_DataLen) && m_Data[1] == static_cast<int>(command))
  ------------------
  |  Branch (299:7): [True: 13.5k, False: 12.7k]
  |  Branch (299:45): [True: 5.83k, False: 7.70k]
  ------------------
  300|  5.83k|			++ctr;
  301|       |
  302|  26.3k|		uint8_t* pos = m_Data;
  303|   141k|		while (pos != nullptr)
  ------------------
  |  Branch (303:10): [True: 115k, False: 26.3k]
  ------------------
  304|   115k|		{
  305|   115k|			size_t offset = pos - m_Data;
  306|   115k|			pos = getNextCommandField(pos, m_DataLen - offset);
  307|   115k|			if (pos && pos[1] == static_cast<int>(command))
  ------------------
  |  Branch (307:8): [True: 89.0k, False: 26.3k]
  |  Branch (307:15): [True: 26.5k, False: 62.5k]
  ------------------
  308|  26.5k|				++ctr;
  309|   115k|		}
  310|       |
  311|  26.3k|		return ctr;
  312|  34.6k|	}
_ZN4pcpp11TelnetLayer15getFirstCommandEv:
  315|  8.32k|	{
  316|       |		// If starts with command
  317|  8.32k|		if (isTelnetCommand(m_Data, m_DataLen))
  ------------------
  |  Branch (317:7): [True: 4.25k, False: 4.07k]
  ------------------
  318|  4.25k|			return static_cast<TelnetCommand>(m_Data[1]);
  319|       |
  320|       |		// Check is there any command
  321|  4.07k|		uint8_t* pos = getNextCommandField(m_Data, m_DataLen);
  322|  4.07k|		if (pos)
  ------------------
  |  Branch (322:7): [True: 3.49k, False: 574]
  ------------------
  323|  3.49k|			return static_cast<TelnetCommand>(pos[1]);
  324|    574|		return TelnetCommand::TelnetCommandEndOfPacket;
  325|  4.07k|	}
_ZN4pcpp11TelnetLayer14getNextCommandEv:
  328|  34.6k|	{
  329|  34.6k|		if (lastPositionOffset == SIZE_MAX)
  ------------------
  |  Branch (329:7): [True: 8.32k, False: 26.3k]
  ------------------
  330|  8.32k|		{
  331|  8.32k|			lastPositionOffset = 0;
  332|  8.32k|			if (isTelnetCommand(m_Data, m_DataLen))
  ------------------
  |  Branch (332:8): [True: 4.25k, False: 4.07k]
  ------------------
  333|  4.25k|				return static_cast<TelnetLayer::TelnetCommand>(m_Data[1]);
  334|  8.32k|		}
  335|       |
  336|  30.4k|		uint8_t* pos = getNextCommandField(&m_Data[lastPositionOffset], m_DataLen - lastPositionOffset);
  337|  30.4k|		if (pos)
  ------------------
  |  Branch (337:7): [True: 22.0k, False: 8.32k]
  ------------------
  338|  22.0k|		{
  339|  22.0k|			lastPositionOffset = pos - m_Data;
  340|  22.0k|			return static_cast<TelnetLayer::TelnetCommand>(pos[1]);
  341|  22.0k|		}
  342|  8.32k|		lastPositionOffset = SIZE_MAX;
  343|  8.32k|		return TelnetCommand::TelnetCommandEndOfPacket;
  344|  30.4k|	}
_ZN4pcpp11TelnetLayer9getOptionEv:
  347|  34.6k|	{
  348|  34.6k|		if (lastPositionOffset < m_DataLen)
  ------------------
  |  Branch (348:7): [True: 26.3k, False: 8.32k]
  ------------------
  349|  26.3k|			return static_cast<TelnetOption>(getSubCommand(
  350|  26.3k|			    &m_Data[lastPositionOffset], getFieldLen(&m_Data[lastPositionOffset], m_DataLen - lastPositionOffset)));
  351|  8.32k|		return TelnetOption::TelnetOptionNoOption;
  352|  34.6k|	}
_ZN4pcpp11TelnetLayer9getOptionENS0_13TelnetCommandE:
  355|  34.6k|	{
  356|       |		// Check input
  357|  34.6k|		if (static_cast<int>(command) < 0)
  ------------------
  |  Branch (357:7): [True: 8.32k, False: 26.3k]
  ------------------
  358|  8.32k|		{
  359|  8.32k|			PCPP_LOG_ERROR("Command type can't be negative");
  ------------------
  |  |  443|  8.32k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  8.32k|	do                                                                                                                 \
  |  |  |  |  413|  8.32k|	{                                                                                                                  \
  |  |  |  |  414|  8.32k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  8.32k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  8.32k|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 8.32k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  8.32k|		{                                                                                                              \
  |  |  |  |  417|  8.32k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  8.32k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  8.32k|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  8.32k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  8.32k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  8.32k|		}                                                                                                              \
  |  |  |  |  422|  8.32k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 8.32k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  360|  8.32k|			return TelnetOption::TelnetOptionNoOption;
  361|  8.32k|		}
  362|       |
  363|  26.3k|		if (isTelnetCommand(m_Data, m_DataLen) && m_Data[1] == static_cast<int>(command))
  ------------------
  |  Branch (363:7): [True: 13.5k, False: 12.7k]
  |  Branch (363:45): [True: 5.83k, False: 7.70k]
  ------------------
  364|  5.83k|			return static_cast<TelnetOption>(getSubCommand(m_Data, getFieldLen(m_Data, m_DataLen)));
  365|       |
  366|  20.5k|		uint8_t* pos = m_Data;
  367|  47.4k|		while (pos != nullptr)
  ------------------
  |  Branch (367:10): [True: 47.4k, False: 0]
  ------------------
  368|  47.4k|		{
  369|  47.4k|			size_t offset = pos - m_Data;
  370|  47.4k|			pos = getNextCommandField(pos, m_DataLen - offset);
  371|       |
  372|  47.4k|			if (pos && pos[1] == static_cast<int>(command))
  ------------------
  |  Branch (372:8): [True: 47.4k, False: 0]
  |  Branch (372:15): [True: 20.5k, False: 26.9k]
  ------------------
  373|  20.5k|			{
  374|  20.5k|				offset = pos - m_Data;
  375|  20.5k|				return static_cast<TelnetOption>(getSubCommand(pos, getFieldLen(pos, m_DataLen - offset)));
  376|  20.5k|			}
  377|  47.4k|		}
  378|       |
  379|      0|		PCPP_LOG_DEBUG("Can't find requested command");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  380|      0|		return TelnetOption::TelnetOptionNoOption;
  381|  20.5k|	}
_ZN4pcpp11TelnetLayer13getOptionDataERm:
  384|  34.6k|	{
  385|  34.6k|		if (lastPositionOffset < m_DataLen)
  ------------------
  |  Branch (385:7): [True: 26.3k, False: 8.32k]
  ------------------
  386|  26.3k|		{
  387|  26.3k|			size_t lenBuffer = getFieldLen(&m_Data[lastPositionOffset], m_DataLen - lastPositionOffset);
  388|  26.3k|			uint8_t* posBuffer = getCommandData(&m_Data[lastPositionOffset], lenBuffer);
  389|       |
  390|  26.3k|			length = lenBuffer;
  391|  26.3k|			return posBuffer;
  392|  26.3k|		}
  393|  8.32k|		return nullptr;
  394|  34.6k|	}
_ZN4pcpp11TelnetLayer13getOptionDataENS0_13TelnetCommandERm:
  397|  34.6k|	{
  398|       |		// Check input
  399|  34.6k|		if (static_cast<int>(command) < 0)
  ------------------
  |  Branch (399:7): [True: 8.32k, False: 26.3k]
  ------------------
  400|  8.32k|		{
  401|  8.32k|			PCPP_LOG_ERROR("Command type can't be negative");
  ------------------
  |  |  443|  8.32k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  8.32k|	do                                                                                                                 \
  |  |  |  |  413|  8.32k|	{                                                                                                                  \
  |  |  |  |  414|  8.32k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  8.32k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  8.32k|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 8.32k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  8.32k|		{                                                                                                              \
  |  |  |  |  417|  8.32k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  8.32k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  8.32k|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  8.32k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  8.32k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  8.32k|		}                                                                                                              \
  |  |  |  |  422|  8.32k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 8.32k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  402|  8.32k|			length = 0;
  403|  8.32k|			return nullptr;
  404|  8.32k|		}
  405|       |
  406|  26.3k|		if (isTelnetCommand(m_Data, m_DataLen) && m_Data[1] == static_cast<int>(command))
  ------------------
  |  Branch (406:7): [True: 13.5k, False: 12.7k]
  |  Branch (406:45): [True: 5.83k, False: 7.70k]
  ------------------
  407|  5.83k|		{
  408|  5.83k|			size_t lenBuffer = getFieldLen(m_Data, m_DataLen);
  409|  5.83k|			uint8_t* posBuffer = getCommandData(m_Data, lenBuffer);
  410|       |
  411|  5.83k|			length = lenBuffer;
  412|  5.83k|			return posBuffer;
  413|  5.83k|		}
  414|       |
  415|  20.5k|		uint8_t* pos = m_Data;
  416|  47.4k|		while (pos != nullptr)
  ------------------
  |  Branch (416:10): [True: 47.4k, False: 0]
  ------------------
  417|  47.4k|		{
  418|  47.4k|			size_t offset = pos - m_Data;
  419|  47.4k|			pos = getNextCommandField(pos, m_DataLen - offset);
  420|       |
  421|  47.4k|			if (pos && pos[1] == static_cast<int>(command))
  ------------------
  |  Branch (421:8): [True: 47.4k, False: 0]
  |  Branch (421:15): [True: 20.5k, False: 26.9k]
  ------------------
  422|  20.5k|			{
  423|  20.5k|				offset = pos - m_Data;
  424|  20.5k|				size_t lenBuffer = getFieldLen(pos, m_DataLen - offset);
  425|  20.5k|				uint8_t* posBuffer = getCommandData(pos, lenBuffer);
  426|       |
  427|  20.5k|				length = lenBuffer;
  428|  20.5k|				return posBuffer;
  429|  20.5k|			}
  430|  47.4k|		}
  431|       |
  432|      0|		PCPP_LOG_DEBUG("Can't find requested command");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  433|      0|		length = 0;
  434|      0|		return nullptr;
  435|  20.5k|	}
_ZN4pcpp11TelnetLayer24getTelnetCommandAsStringENS0_13TelnetCommandE:
  438|  34.6k|	{
  439|  34.6k|		switch (val)
  440|  34.6k|		{
  441|  8.32k|		case TelnetCommand::TelnetCommandEndOfPacket:
  ------------------
  |  Branch (441:3): [True: 8.32k, False: 26.3k]
  ------------------
  442|  8.32k|			return "Reached end of packet while parsing";
  443|     49|		case TelnetCommand::EndOfFile:
  ------------------
  |  Branch (443:3): [True: 49, False: 34.6k]
  ------------------
  444|     49|			return "End of File";
  445|     36|		case TelnetCommand::Suspend:
  ------------------
  |  Branch (445:3): [True: 36, False: 34.6k]
  ------------------
  446|     36|			return "Suspend current process";
  447|    132|		case TelnetCommand::Abort:
  ------------------
  |  Branch (447:3): [True: 132, False: 34.5k]
  ------------------
  448|    132|			return "Abort Process";
  449|  1.23k|		case TelnetCommand::EndOfRecordCommand:
  ------------------
  |  Branch (449:3): [True: 1.23k, False: 33.4k]
  ------------------
  450|  1.23k|			return "End of Record";
  451|  1.16k|		case TelnetCommand::SubnegotiationEnd:
  ------------------
  |  Branch (451:3): [True: 1.16k, False: 33.5k]
  ------------------
  452|  1.16k|			return "Subnegotiation End";
  453|     56|		case TelnetCommand::NoOperation:
  ------------------
  |  Branch (453:3): [True: 56, False: 34.6k]
  ------------------
  454|     56|			return "No Operation";
  455|     48|		case TelnetCommand::DataMark:
  ------------------
  |  Branch (455:3): [True: 48, False: 34.6k]
  ------------------
  456|     48|			return "Data Mark";
  457|      1|		case TelnetCommand::Break:
  ------------------
  |  Branch (457:3): [True: 1, False: 34.6k]
  ------------------
  458|      1|			return "Break";
  459|    676|		case TelnetCommand::InterruptProcess:
  ------------------
  |  Branch (459:3): [True: 676, False: 33.9k]
  ------------------
  460|    676|			return "Interrupt Process";
  461|    182|		case TelnetCommand::AbortOutput:
  ------------------
  |  Branch (461:3): [True: 182, False: 34.4k]
  ------------------
  462|    182|			return "Abort Output";
  463|    121|		case TelnetCommand::AreYouThere:
  ------------------
  |  Branch (463:3): [True: 121, False: 34.5k]
  ------------------
  464|    121|			return "Are You There";
  465|    215|		case TelnetCommand::EraseCharacter:
  ------------------
  |  Branch (465:3): [True: 215, False: 34.4k]
  ------------------
  466|    215|			return "Erase Character";
  467|    174|		case TelnetCommand::EraseLine:
  ------------------
  |  Branch (467:3): [True: 174, False: 34.4k]
  ------------------
  468|    174|			return "Erase Line";
  469|    396|		case TelnetCommand::GoAhead:
  ------------------
  |  Branch (469:3): [True: 396, False: 34.2k]
  ------------------
  470|    396|			return "Go Ahead";
  471|  6.50k|		case TelnetCommand::Subnegotiation:
  ------------------
  |  Branch (471:3): [True: 6.50k, False: 28.1k]
  ------------------
  472|  6.50k|			return "Subnegotiation";
  473|    591|		case TelnetCommand::WillPerform:
  ------------------
  |  Branch (473:3): [True: 591, False: 34.0k]
  ------------------
  474|    591|			return "Will Perform";
  475|    224|		case TelnetCommand::WontPerform:
  ------------------
  |  Branch (475:3): [True: 224, False: 34.4k]
  ------------------
  476|    224|			return "Wont Perform";
  477|    552|		case TelnetCommand::DoPerform:
  ------------------
  |  Branch (477:3): [True: 552, False: 34.1k]
  ------------------
  478|    552|			return "Do Perform";
  479|  2.61k|		case TelnetCommand::DontPerform:
  ------------------
  |  Branch (479:3): [True: 2.61k, False: 32.0k]
  ------------------
  480|  2.61k|			return "Dont Perform";
  481|      0|		case TelnetCommand::InterpretAsCommand:
  ------------------
  |  Branch (481:3): [True: 0, False: 34.6k]
  ------------------
  482|      0|			return "Interpret As Command";
  483|  11.3k|		default:
  ------------------
  |  Branch (483:3): [True: 11.3k, False: 23.3k]
  ------------------
  484|  11.3k|			return "Unknown Command";
  485|  34.6k|		}
  486|  34.6k|	}
_ZN4pcpp11TelnetLayer23getTelnetOptionAsStringENS0_12TelnetOptionE:
  489|  34.6k|	{
  490|  34.6k|		switch (val)
  491|  34.6k|		{
  492|  25.1k|		case TelnetOption::TelnetOptionNoOption:
  ------------------
  |  Branch (492:3): [True: 25.1k, False: 9.55k]
  ------------------
  493|  25.1k|			return "No option for this command";
  494|     26|		case TelnetOption::TransmitBinary:
  ------------------
  |  Branch (494:3): [True: 26, False: 34.6k]
  ------------------
  495|     26|			return "Binary Transmission";
  496|    142|		case TelnetOption::Echo:
  ------------------
  |  Branch (496:3): [True: 142, False: 34.5k]
  ------------------
  497|    142|			return "Echo";
  498|     21|		case TelnetOption::Reconnection:
  ------------------
  |  Branch (498:3): [True: 21, False: 34.6k]
  ------------------
  499|     21|			return "Reconnection";
  500|      0|		case TelnetOption::SuppressGoAhead:
  ------------------
  |  Branch (500:3): [True: 0, False: 34.6k]
  ------------------
  501|      0|			return "Suppress Go Ahead";
  502|      0|		case TelnetOption::ApproxMsgSizeNegotiation:
  ------------------
  |  Branch (502:3): [True: 0, False: 34.6k]
  ------------------
  503|      0|			return "Negotiate approximate message size";
  504|     45|		case TelnetOption::Status:
  ------------------
  |  Branch (504:3): [True: 45, False: 34.6k]
  ------------------
  505|     45|			return "Status";
  506|      0|		case TelnetOption::TimingMark:
  ------------------
  |  Branch (506:3): [True: 0, False: 34.6k]
  ------------------
  507|      0|			return "Timing Mark";
  508|     68|		case TelnetOption::RemoteControlledTransAndEcho:
  ------------------
  |  Branch (508:3): [True: 68, False: 34.5k]
  ------------------
  509|     68|			return "Remote Controlled Transmission and Echo";
  510|    389|		case TelnetOption::OutputLineWidth:
  ------------------
  |  Branch (510:3): [True: 389, False: 34.2k]
  ------------------
  511|    389|			return "Output Line Width";
  512|     48|		case TelnetOption::OutputPageSize:
  ------------------
  |  Branch (512:3): [True: 48, False: 34.6k]
  ------------------
  513|     48|			return "Output Page Size";
  514|      0|		case TelnetOption::OutputCarriageReturnDisposition:
  ------------------
  |  Branch (514:3): [True: 0, False: 34.6k]
  ------------------
  515|      0|			return "Negotiate About Output Carriage-Return Disposition";
  516|     48|		case TelnetOption::OutputHorizontalTabStops:
  ------------------
  |  Branch (516:3): [True: 48, False: 34.6k]
  ------------------
  517|     48|			return "Negotiate About Output Horizontal Tabstops";
  518|      0|		case TelnetOption::OutputHorizontalTabDisposition:
  ------------------
  |  Branch (518:3): [True: 0, False: 34.6k]
  ------------------
  519|      0|			return "Negotiate About Output Horizontal Tab Disposition";
  520|     48|		case TelnetOption::OutputFormfeedDisposition:
  ------------------
  |  Branch (520:3): [True: 48, False: 34.6k]
  ------------------
  521|     48|			return "Negotiate About Output Formfeed Disposition";
  522|     16|		case TelnetOption::OutputVerticalTabStops:
  ------------------
  |  Branch (522:3): [True: 16, False: 34.6k]
  ------------------
  523|     16|			return "Negotiate About Vertical Tabstops";
  524|  3.53k|		case TelnetOption::OutputVerticalTabDisposition:
  ------------------
  |  Branch (524:3): [True: 3.53k, False: 31.1k]
  ------------------
  525|  3.53k|			return "Negotiate About Output Vertcial Tab Disposition";
  526|     12|		case TelnetOption::OutputLinefeedDisposition:
  ------------------
  |  Branch (526:3): [True: 12, False: 34.6k]
  ------------------
  527|     12|			return "Negotiate About Output Linefeed Disposition";
  528|    291|		case TelnetOption::ExtendedASCII:
  ------------------
  |  Branch (528:3): [True: 291, False: 34.3k]
  ------------------
  529|    291|			return "Extended ASCII";
  530|     22|		case TelnetOption::Logout:
  ------------------
  |  Branch (530:3): [True: 22, False: 34.6k]
  ------------------
  531|     22|			return "Logout";
  532|    167|		case TelnetOption::ByteMacro:
  ------------------
  |  Branch (532:3): [True: 167, False: 34.5k]
  ------------------
  533|    167|			return "Byte Macro";
  534|     48|		case TelnetOption::DataEntryTerminal:
  ------------------
  |  Branch (534:3): [True: 48, False: 34.6k]
  ------------------
  535|     48|			return "Data Entry Terminal";
  536|      0|		case TelnetOption::SUPDUP:
  ------------------
  |  Branch (536:3): [True: 0, False: 34.6k]
  ------------------
  537|      0|			return "SUPDUP";
  538|     13|		case TelnetOption::SUPDUPOutput:
  ------------------
  |  Branch (538:3): [True: 13, False: 34.6k]
  ------------------
  539|     13|			return "SUPDUP Output";
  540|      0|		case TelnetOption::SendLocation:
  ------------------
  |  Branch (540:3): [True: 0, False: 34.6k]
  ------------------
  541|      0|			return "Send Location";
  542|      0|		case TelnetOption::TerminalType:
  ------------------
  |  Branch (542:3): [True: 0, False: 34.6k]
  ------------------
  543|      0|			return "Terminal Type";
  544|    436|		case TelnetOption::EndOfRecordOption:
  ------------------
  |  Branch (544:3): [True: 436, False: 34.2k]
  ------------------
  545|    436|			return "End Of Record";
  546|      0|		case TelnetOption::TACACSUserIdentification:
  ------------------
  |  Branch (546:3): [True: 0, False: 34.6k]
  ------------------
  547|      0|			return "TACACS User Identification";
  548|     16|		case TelnetOption::OutputMarking:
  ------------------
  |  Branch (548:3): [True: 16, False: 34.6k]
  ------------------
  549|     16|			return "Output Marking";
  550|      0|		case TelnetOption::TerminalLocationNumber:
  ------------------
  |  Branch (550:3): [True: 0, False: 34.6k]
  ------------------
  551|      0|			return "Terminal Location Number";
  552|     57|		case TelnetOption::Telnet3270Regime:
  ------------------
  |  Branch (552:3): [True: 57, False: 34.6k]
  ------------------
  553|     57|			return "Telnet 3270 Regime";
  554|    144|		case TelnetOption::X3Pad:
  ------------------
  |  Branch (554:3): [True: 144, False: 34.5k]
  ------------------
  555|    144|			return "X3 Pad";
  556|      0|		case TelnetOption::NegotiateAboutWindowSize:
  ------------------
  |  Branch (556:3): [True: 0, False: 34.6k]
  ------------------
  557|      0|			return "Negotiate About Window Size";
  558|    112|		case TelnetOption::TerminalSpeed:
  ------------------
  |  Branch (558:3): [True: 112, False: 34.5k]
  ------------------
  559|    112|			return "Terminal Speed";
  560|    112|		case TelnetOption::RemoteFlowControl:
  ------------------
  |  Branch (560:3): [True: 112, False: 34.5k]
  ------------------
  561|    112|			return "Remote Flow Control";
  562|      0|		case TelnetOption::Linemode:
  ------------------
  |  Branch (562:3): [True: 0, False: 34.6k]
  ------------------
  563|      0|			return "Line mode";
  564|     16|		case TelnetOption::XDisplayLocation:
  ------------------
  |  Branch (564:3): [True: 16, False: 34.6k]
  ------------------
  565|     16|			return "X Display Location";
  566|     50|		case TelnetOption::EnvironmentOption:
  ------------------
  |  Branch (566:3): [True: 50, False: 34.6k]
  ------------------
  567|     50|			return "Environment Option";
  568|    129|		case TelnetOption::AuthenticationOption:
  ------------------
  |  Branch (568:3): [True: 129, False: 34.5k]
  ------------------
  569|    129|			return "Authentication Option";
  570|    284|		case TelnetOption::EncryptionOption:
  ------------------
  |  Branch (570:3): [True: 284, False: 34.3k]
  ------------------
  571|    284|			return "Encryption Option";
  572|     27|		case TelnetOption::NewEnvironmentOption:
  ------------------
  |  Branch (572:3): [True: 27, False: 34.6k]
  ------------------
  573|     27|			return "New Environment Option";
  574|      0|		case TelnetOption::TN3270E:
  ------------------
  |  Branch (574:3): [True: 0, False: 34.6k]
  ------------------
  575|      0|			return "TN3270E";
  576|      0|		case TelnetOption::XAuth:
  ------------------
  |  Branch (576:3): [True: 0, False: 34.6k]
  ------------------
  577|      0|			return "X Server Authentication";
  578|      0|		case TelnetOption::Charset:
  ------------------
  |  Branch (578:3): [True: 0, False: 34.6k]
  ------------------
  579|      0|			return "Charset";
  580|      0|		case TelnetOption::TelnetRemoteSerialPort:
  ------------------
  |  Branch (580:3): [True: 0, False: 34.6k]
  ------------------
  581|      0|			return "Telnet Remote Serial Port";
  582|    133|		case TelnetOption::ComPortControlOption:
  ------------------
  |  Branch (582:3): [True: 133, False: 34.5k]
  ------------------
  583|    133|			return "Com Port Control Option";
  584|      3|		case TelnetOption::TelnetSuppressLocalEcho:
  ------------------
  |  Branch (584:3): [True: 3, False: 34.6k]
  ------------------
  585|      3|			return "Telnet Suppress Local Echo";
  586|      0|		case TelnetOption::TelnetStartTLS:
  ------------------
  |  Branch (586:3): [True: 0, False: 34.6k]
  ------------------
  587|      0|			return "Telnet Start TLS";
  588|     63|		case TelnetOption::Kermit:
  ------------------
  |  Branch (588:3): [True: 63, False: 34.6k]
  ------------------
  589|     63|			return "Kermit";
  590|      0|		case TelnetOption::SendURL:
  ------------------
  |  Branch (590:3): [True: 0, False: 34.6k]
  ------------------
  591|      0|			return "Send URL";
  592|      0|		case TelnetOption::ForwardX:
  ------------------
  |  Branch (592:3): [True: 0, False: 34.6k]
  ------------------
  593|      0|			return "Forward X Server";
  594|     48|		case TelnetOption::TelOptPragmaLogon:
  ------------------
  |  Branch (594:3): [True: 48, False: 34.6k]
  ------------------
  595|     48|			return "Telnet Option Pragma Logon";
  596|    305|		case TelnetOption::TelOptSSPILogon:
  ------------------
  |  Branch (596:3): [True: 305, False: 34.3k]
  ------------------
  597|    305|			return "Telnet Option SSPI Logon";
  598|     48|		case TelnetOption::TelOptPragmaHeartbeat:
  ------------------
  |  Branch (598:3): [True: 48, False: 34.6k]
  ------------------
  599|     48|			return "Telnet Option Pragma Heartbeat";
  600|  2.38k|		case TelnetOption::ExtendedOptions:
  ------------------
  |  Branch (600:3): [True: 2.38k, False: 32.2k]
  ------------------
  601|  2.38k|			return "Extended option list";
  602|    256|		default:
  ------------------
  |  Branch (602:3): [True: 256, False: 34.4k]
  ------------------
  603|    256|			return "Unknown Option";
  604|  34.6k|		}
  605|  34.6k|	}
_ZNK4pcpp11TelnetLayer8toStringEv:
  608|  16.6k|	{
  609|       |		// TODO: Perhaps print the entire sequence of commands and data?
  610|  16.6k|		switch (getTelnetSequenceType(m_Data, m_DataLen))
  611|  16.6k|		{
  612|    310|		case TelnetSequenceType::Unknown:
  ------------------
  |  Branch (612:3): [True: 310, False: 16.3k]
  ------------------
  613|    310|			return "Telnet Unknown";
  614|  8.51k|		case TelnetSequenceType::Command:
  ------------------
  |  Branch (614:3): [True: 8.51k, False: 8.14k]
  ------------------
  615|  8.51k|			return "Telnet Control";
  616|  7.83k|		case TelnetSequenceType::UserData:
  ------------------
  |  Branch (616:3): [True: 7.83k, False: 8.82k]
  ------------------
  617|  7.83k|			return "Telnet Data";
  618|      0|		default:
  ------------------
  |  Branch (618:3): [True: 0, False: 16.6k]
  ------------------
  619|      0|			throw std::logic_error("Unsupported sequence type");
  620|  16.6k|		}
  621|  16.6k|	}
TelnetLayer.cpp:_ZN4pcpp12_GLOBAL__N_111findNextIACEPhS1_:
   77|   204k|		{
   78|       |			// FF FF pattern is FF literal
   79|       |			// FF non-FF pattern is IAC op code
   80|       |			// Sample seq: FF AB CD 0F FF FF A4 B5 [FF] 2D DA
   81|       |
   82|       |			// Requires at least 2 elements.
   83|   204k|			if (first + 1 >= last)
  ------------------
  |  Branch (83:8): [True: 4.76k, False: 200k]
  ------------------
   84|  4.76k|				return last;
   85|       |
   86|   200k|			constexpr int IAC = static_cast<int>(TelnetLayer::TelnetCommand::InterpretAsCommand);
   87|       |
   88|       |			// Start the search from the second byte.
   89|   200k|			auto it = first + 1;
   90|   348k|			while (it != last)
  ------------------
  |  Branch (90:11): [True: 342k, False: 6.34k]
  ------------------
   91|   342k|			{
   92|       |				// Find the next IAC symbol.
   93|   342k|				it = std::find(it, last, IAC);
   94|       |
   95|       |				// Reached the end of the sequence.
   96|   342k|				if (it == last)
  ------------------
  |  Branch (96:9): [True: 13.4k, False: 329k]
  ------------------
   97|  13.4k|					return last;
   98|       |
   99|   329k|				auto itNext = std::next(it);
  100|       |				// Reached the end of the sequence.
  101|       |				// IAC at the end of the sequence is invalid.
  102|   329k|				if (itNext == last)
  ------------------
  |  Branch (102:9): [True: 7.42k, False: 321k]
  ------------------
  103|  7.42k|					return last;
  104|       |
  105|       |				// If the next symbol is not IAC, this isn't an escaped sequence.
  106|   321k|				if (*itNext != IAC)
  ------------------
  |  Branch (106:9): [True: 172k, False: 148k]
  ------------------
  107|   172k|					return it;
  108|       |
  109|       |				// Escaped sequence "FF FF", move it to 1 past the second FF, to skip the view "FF [[FF XX]]".
  110|   148k|				it = std::next(itNext);
  111|   148k|			}
  112|       |
  113|  6.34k|			return last;
  114|   200k|		}
TelnetLayer.cpp:_ZN4pcpp12_GLOBAL__N_121getTelnetSequenceTypeEPKhm:
   33|   567k|		{
   34|   567k|			if (first == nullptr || maxCount == 0)
  ------------------
  |  Branch (34:8): [True: 0, False: 567k]
  |  Branch (34:28): [True: 0, False: 567k]
  ------------------
   35|      0|			{
   36|      0|				PCPP_LOG_DEBUG("Checking empty or null buffer for telnet sequence type");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   37|      0|				return TelnetSequenceType::Unknown;
   38|      0|			}
   39|       |
   40|       |			// If first byte is not "FF" it's data
   41|   567k|			if (*first != static_cast<int>(TelnetLayer::TelnetCommand::InterpretAsCommand))
  ------------------
  |  Branch (41:8): [True: 146k, False: 420k]
  ------------------
   42|   146k|			{
   43|   146k|				return TelnetSequenceType::UserData;
   44|   146k|			}
   45|       |
   46|       |			// IAC must be followed by another octet
   47|   420k|			if (maxCount <= 1)
  ------------------
  |  Branch (47:8): [True: 8.44k, False: 412k]
  ------------------
   48|  8.44k|			{
   49|  8.44k|				PCPP_LOG_DEBUG("Telnet Parse Error: IAC (FF) must always be followed by another octet");
  ------------------
  |  |  425|  8.44k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  8.44k|	do                                                                                                                 \
  |  |  |  |  413|  8.44k|	{                                                                                                                  \
  |  |  |  |  414|  8.44k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  8.44k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  8.44k|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 8.44k]
  |  |  |  |  ------------------
  |  |  |  |  416|  8.44k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTelnetLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  8.44k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 8.44k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   50|  8.44k|				return TelnetSequenceType::Unknown;
   51|  8.44k|			}
   52|       |
   53|   412k|			if (first[1] == static_cast<int>(TelnetLayer::TelnetCommand::InterpretAsCommand))
  ------------------
  |  Branch (53:8): [True: 88.4k, False: 323k]
  ------------------
   54|  88.4k|			{
   55|       |				// "FF FF" means data continue
   56|  88.4k|				return TelnetSequenceType::UserData;
   57|  88.4k|			}
   58|       |
   59|       |			// "FF X" where X != "FF" means command
   60|   323k|			return TelnetSequenceType::Command;
   61|   412k|		}
TelnetLayer.cpp:_ZZN4pcpp11TelnetLayer15getDataAsStringEbENK3$_0clEc:
  267|   573k|			std::copy_if(beginIt, endIt, std::back_inserter(result), [](char ch) -> bool {
  268|   573k|				return ch > 31 && ch < 127;  // From SPACE to ~
  ------------------
  |  Branch (268:12): [True: 69.6k, False: 504k]
  |  Branch (268:23): [True: 63.7k, False: 5.92k]
  ------------------
  269|   573k|			});
TelnetLayer.cpp:_ZN4pcpp12_GLOBAL__N_115isTelnetCommandEPKhm:
   68|   104k|		{
   69|   104k|			return getTelnetSequenceType(first, maxCount) == TelnetSequenceType::Command;
   70|   104k|		}

_ZN4pcpp18tbp_my_own_strnlenEPKcm:
   13|  38.9k|	{
   14|  38.9k|		if (s == nullptr || maxlen == 0)
  ------------------
  |  Branch (14:7): [True: 0, False: 38.9k]
  |  Branch (14:23): [True: 2.05k, False: 36.9k]
  ------------------
   15|  2.05k|			return 0;
   16|       |
   17|  36.9k|		size_t i = 0;
   18|   741k|		for (; (i < maxlen) && s[i]; ++i)
  ------------------
  |  Branch (18:10): [True: 729k, False: 12.7k]
  |  Branch (18:26): [True: 704k, False: 24.2k]
  ------------------
   19|   704k|			;
   20|  36.9k|		return i;
   21|  38.9k|	}
_ZN4pcpp24TextBasedProtocolMessageC2EPhmPNS_5LayerEPNS_6PacketEh:
   27|   127k|	    : Layer(data, dataLen, prevLayer, packet, protocol), m_FieldList(nullptr), m_LastField(nullptr),
   28|   127k|	      m_FieldsOffset(0)
   29|   127k|	{}
_ZN4pcpp24TextBasedProtocolMessageC2ERKS0_:
   31|  3.97k|	TextBasedProtocolMessage::TextBasedProtocolMessage(const TextBasedProtocolMessage& other) : Layer(other)
   32|  3.97k|	{
   33|  3.97k|		copyDataFrom(other);
   34|  3.97k|	}
_ZN4pcpp24TextBasedProtocolMessage12copyDataFromERKS0_:
   53|  3.97k|	{
   54|       |		// copy field list
   55|  3.97k|		if (other.m_FieldList != nullptr)
  ------------------
  |  Branch (55:7): [True: 3.97k, False: 0]
  ------------------
   56|  3.97k|		{
   57|  3.97k|			m_FieldList = new HeaderField(*(other.m_FieldList));
   58|  3.97k|			HeaderField* curField = m_FieldList;
   59|  3.97k|			curField->attachToTextBasedProtocolMessage(this, other.m_FieldList->m_NameOffsetInMessage);
   60|  3.97k|			HeaderField* curOtherField = other.m_FieldList;
   61|  41.3k|			while (curOtherField->getNextField() != nullptr)
  ------------------
  |  Branch (61:11): [True: 37.3k, False: 3.97k]
  ------------------
   62|  37.3k|			{
   63|  37.3k|				HeaderField* newField = new HeaderField(*(curOtherField->getNextField()));
   64|  37.3k|				newField->attachToTextBasedProtocolMessage(this, curOtherField->getNextField()->m_NameOffsetInMessage);
   65|  37.3k|				curField->setNextField(newField);
   66|  37.3k|				curField = curField->getNextField();
   67|  37.3k|				curOtherField = curOtherField->getNextField();
   68|  37.3k|			}
   69|       |
   70|  3.97k|			m_LastField = curField;
   71|  3.97k|		}
   72|      0|		else
   73|      0|		{
   74|      0|			m_FieldList = nullptr;
   75|      0|			m_LastField = nullptr;
   76|      0|		}
   77|       |
   78|  3.97k|		m_FieldsOffset = other.m_FieldsOffset;
   79|       |
   80|       |		// copy map
   81|  45.3k|		for (HeaderField* field = m_FieldList; field != nullptr; field = field->getNextField())
  ------------------
  |  Branch (81:42): [True: 41.3k, False: 3.97k]
  ------------------
   82|  41.3k|		{
   83|  41.3k|			m_FieldNameToFieldMap.insert(std::pair<std::string, HeaderField*>(field->getFieldName(), field));
   84|  41.3k|		}
   85|  3.97k|	}
_ZN4pcpp24TextBasedProtocolMessage11parseFieldsEv:
   88|   127k|	{
   89|   127k|		char nameValueSeparator = getHeaderFieldNameValueSeparator();
   90|   127k|		bool spacesAllowedBetweenNameAndValue = spacesAllowedBetweenHeaderFieldNameAndValue();
   91|       |
   92|   127k|		HeaderField* firstField =
   93|   127k|		    new HeaderField(this, m_FieldsOffset, nameValueSeparator, spacesAllowedBetweenNameAndValue);
   94|   127k|		PCPP_LOG_DEBUG("Added new field: name='" << firstField->getFieldName()
  ------------------
  |  |  425|   127k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|   127k|	do                                                                                                                 \
  |  |  |  |  413|   127k|	{                                                                                                                  \
  |  |  |  |  414|   127k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|   127k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   127k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 127k]
  |  |  |  |  ------------------
  |  |  |  |  416|   127k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|   127k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 127k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   95|   127k|		                                         << "'; offset in packet=" << firstField->m_NameOffsetInMessage
   96|   127k|		                                         << "; length=" << firstField->getFieldSize());
   97|   127k|		PCPP_LOG_DEBUG("     Field value = " << firstField->getFieldValue());
  ------------------
  |  |  425|   127k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|   127k|	do                                                                                                                 \
  |  |  |  |  413|   127k|	{                                                                                                                  \
  |  |  |  |  414|   127k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|   127k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   127k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 127k]
  |  |  |  |  ------------------
  |  |  |  |  416|   127k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|   127k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 127k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   98|       |
   99|   127k|		if (m_FieldList == nullptr)
  ------------------
  |  Branch (99:7): [True: 127k, False: 0]
  ------------------
  100|   127k|			m_FieldList = firstField;
  101|      0|		else
  102|      0|			m_FieldList->setNextField(firstField);
  103|       |
  104|   127k|		std::string fieldName = firstField->getFieldName();
  105|   127k|		std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  106|   127k|		m_FieldNameToFieldMap.insert(std::pair<std::string, HeaderField*>(fieldName, firstField));
  107|       |
  108|       |		// Last field will be empty and contain just "\n" or "\r\n". This field will mark the end of the header
  109|   127k|		HeaderField* curField = m_FieldList;
  110|   127k|		int curOffset = m_FieldsOffset;
  111|       |		// last field can be one of:
  112|       |		// a.) \r\n\r\n or \n\n marking the end of the header
  113|       |		// b.) the end of the packet
  114|  1.08M|		while (!curField->isEndOfHeader() && curOffset + curField->getFieldSize() < m_DataLen)
  ------------------
  |  Branch (114:10): [True: 999k, False: 90.5k]
  |  Branch (114:40): [True: 973k, False: 25.1k]
  ------------------
  115|   973k|		{
  116|   973k|			curOffset += curField->getFieldSize();
  117|   973k|			HeaderField* newField =
  118|   973k|			    new HeaderField(this, curOffset, nameValueSeparator, spacesAllowedBetweenNameAndValue);
  119|   973k|			if (newField->getFieldSize() > 0)
  ------------------
  |  Branch (119:8): [True: 961k, False: 12.2k]
  ------------------
  120|   961k|			{
  121|   961k|				PCPP_LOG_DEBUG("Added new field: name='" << newField->getFieldName()
  ------------------
  |  |  425|   961k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|   961k|	do                                                                                                                 \
  |  |  |  |  413|   961k|	{                                                                                                                  \
  |  |  |  |  414|   961k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|   961k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   961k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 961k]
  |  |  |  |  ------------------
  |  |  |  |  416|   961k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|   961k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 961k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  122|   961k|				                                         << "'; offset in packet=" << newField->m_NameOffsetInMessage
  123|   961k|				                                         << "; length=" << newField->getFieldSize());
  124|   961k|				PCPP_LOG_DEBUG("     Field value = " << newField->getFieldValue());
  ------------------
  |  |  425|   961k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|   961k|	do                                                                                                                 \
  |  |  |  |  413|   961k|	{                                                                                                                  \
  |  |  |  |  414|   961k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|   961k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   961k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 961k]
  |  |  |  |  ------------------
  |  |  |  |  416|   961k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|   961k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 961k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  125|   961k|				curField->setNextField(newField);
  126|   961k|				curField = newField;
  127|   961k|				fieldName = newField->getFieldName();
  128|   961k|				std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  129|   961k|				m_FieldNameToFieldMap.insert(std::pair<std::string, HeaderField*>(fieldName, newField));
  130|   961k|			}
  131|  12.2k|			else
  132|  12.2k|			{
  133|  12.2k|				delete newField;
  134|  12.2k|				break;
  135|  12.2k|			}
  136|   973k|		}
  137|       |
  138|   127k|		m_LastField = curField;
  139|   127k|	}
_ZN4pcpp24TextBasedProtocolMessageD2Ev:
  142|   131k|	{
  143|  1.26M|		while (m_FieldList != nullptr)
  ------------------
  |  Branch (143:10): [True: 1.13M, False: 131k]
  ------------------
  144|  1.13M|		{
  145|  1.13M|			HeaderField* temp = m_FieldList;
  146|  1.13M|			m_FieldList = m_FieldList->getNextField();
  147|  1.13M|			delete temp;
  148|  1.13M|		}
  149|   131k|	}
_ZN4pcpp24TextBasedProtocolMessage8addFieldERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  152|  9.02k|	{
  153|  9.02k|		HeaderField newField(fieldName, fieldValue, getHeaderFieldNameValueSeparator(),
  154|  9.02k|		                     spacesAllowedBetweenHeaderFieldNameAndValue());
  155|  9.02k|		return addField(newField);
  156|  9.02k|	}
_ZN4pcpp24TextBasedProtocolMessage8addFieldERKNS_11HeaderFieldE:
  159|  9.02k|	{
  160|  9.02k|		return insertField(m_LastField, newField);
  161|  9.02k|	}
_ZN4pcpp24TextBasedProtocolMessage11insertFieldEPNS_11HeaderFieldERKS1_:
  195|  9.02k|	{
  196|  9.02k|		if (newField.m_TextBasedProtocolMessage != nullptr)
  ------------------
  |  Branch (196:7): [True: 0, False: 9.02k]
  ------------------
  197|      0|		{
  198|      0|			PCPP_LOG_ERROR("This field is already associated with another message");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  199|      0|			return nullptr;
  200|      0|		}
  201|       |
  202|  9.02k|		if (prevField != nullptr && prevField->getFieldName() == PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER)
  ------------------
  |  |   12|  9.02k|#define PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER ""
  ------------------
  |  Branch (202:7): [True: 9.02k, False: 0]
  |  Branch (202:7): [True: 3.99k, False: 5.03k]
  |  Branch (202:31): [True: 3.99k, False: 5.03k]
  ------------------
  203|  3.99k|		{
  204|  3.99k|			PCPP_LOG_ERROR("Cannot add a field after end of header");
  ------------------
  |  |  443|  3.99k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  3.99k|	do                                                                                                                 \
  |  |  |  |  413|  3.99k|	{                                                                                                                  \
  |  |  |  |  414|  3.99k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.99k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|  3.99k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 3.99k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.99k|		{                                                                                                              \
  |  |  |  |  417|  3.99k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  3.99k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|  3.99k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  3.99k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  3.99k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  3.99k|		}                                                                                                              \
  |  |  |  |  422|  3.99k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.99k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  205|  3.99k|			return nullptr;
  206|  3.99k|		}
  207|       |
  208|  5.03k|		HeaderField* newFieldToAdd = new HeaderField(newField);
  209|       |
  210|  5.03k|		int newFieldOffset = m_FieldsOffset;
  211|  5.03k|		if (prevField != nullptr)
  ------------------
  |  Branch (211:7): [True: 5.03k, False: 0]
  ------------------
  212|  5.03k|			newFieldOffset = prevField->m_NameOffsetInMessage + prevField->getFieldSize();
  213|       |
  214|       |		// extend layer to make room for the new field. Field will be added just before the last field
  215|  5.03k|		if (!extendLayer(newFieldOffset, newFieldToAdd->getFieldSize()))
  ------------------
  |  Branch (215:7): [True: 1.79k, False: 3.24k]
  ------------------
  216|  1.79k|		{
  217|  1.79k|			PCPP_LOG_ERROR("Cannot extend layer to insert the header");
  ------------------
  |  |  443|  1.79k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  1.79k|	do                                                                                                                 \
  |  |  |  |  413|  1.79k|	{                                                                                                                  \
  |  |  |  |  414|  1.79k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.79k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|  1.79k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.79k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.79k|		{                                                                                                              \
  |  |  |  |  417|  1.79k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.79k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|  1.79k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.79k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.79k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.79k|		}                                                                                                              \
  |  |  |  |  422|  1.79k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.79k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  218|  1.79k|			delete newFieldToAdd;
  219|  1.79k|			return nullptr;
  220|  1.79k|		}
  221|       |
  222|  3.24k|		HeaderField* curField = m_FieldList;
  223|  3.24k|		if (prevField != nullptr)
  ------------------
  |  Branch (223:7): [True: 3.24k, False: 0]
  ------------------
  224|  3.24k|			curField = prevField->getNextField();
  225|       |
  226|       |		// go over all fields after prevField and update their offsets
  227|  3.24k|		shiftFieldsOffset(curField, newFieldToAdd->getFieldSize());
  228|       |
  229|       |		// copy new field data to message
  230|  3.24k|		memcpy(m_Data + newFieldOffset, newFieldToAdd->m_NewFieldData, newFieldToAdd->getFieldSize());
  231|       |
  232|       |		// attach new field to message
  233|  3.24k|		newFieldToAdd->attachToTextBasedProtocolMessage(this, newFieldOffset);
  234|       |
  235|       |		// insert field into fields link list
  236|  3.24k|		if (prevField == nullptr)
  ------------------
  |  Branch (236:7): [True: 0, False: 3.24k]
  ------------------
  237|      0|		{
  238|      0|			newFieldToAdd->setNextField(m_FieldList);
  239|      0|			m_FieldList = newFieldToAdd;
  240|      0|		}
  241|  3.24k|		else
  242|  3.24k|		{
  243|  3.24k|			newFieldToAdd->setNextField(prevField->getNextField());
  244|  3.24k|			prevField->setNextField(newFieldToAdd);
  245|  3.24k|		}
  246|       |
  247|       |		// if newField is the last field, update m_LastField
  248|  3.24k|		if (newFieldToAdd->getNextField() == nullptr)
  ------------------
  |  Branch (248:7): [True: 3.24k, False: 0]
  ------------------
  249|  3.24k|			m_LastField = newFieldToAdd;
  250|       |
  251|       |		// insert the new field into name to field map
  252|  3.24k|		std::string fieldName = newFieldToAdd->getFieldName();
  253|  3.24k|		std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  254|  3.24k|		m_FieldNameToFieldMap.insert(std::pair<std::string, HeaderField*>(fieldName, newFieldToAdd));
  255|       |
  256|  3.24k|		return newFieldToAdd;
  257|  5.03k|	}
_ZN4pcpp24TextBasedProtocolMessage11removeFieldENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEi:
  260|  3.97k|	{
  261|  3.97k|		std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  262|       |
  263|  3.97k|		HeaderField* fieldToRemove = nullptr;
  264|       |
  265|  3.97k|		auto range = m_FieldNameToFieldMap.equal_range(fieldName);
  266|  3.97k|		int i = 0;
  267|  3.97k|		for (std::multimap<std::string, HeaderField*>::iterator iter = range.first; iter != range.second; ++iter)
  ------------------
  |  Branch (267:79): [True: 3.79k, False: 175]
  ------------------
  268|  3.79k|		{
  269|  3.79k|			if (i == index)
  ------------------
  |  Branch (269:8): [True: 3.79k, False: 0]
  ------------------
  270|  3.79k|			{
  271|  3.79k|				fieldToRemove = iter->second;
  272|  3.79k|				break;
  273|  3.79k|			}
  274|       |
  275|      0|			i++;
  276|      0|		}
  277|       |
  278|  3.97k|		if (fieldToRemove != nullptr)
  ------------------
  |  Branch (278:7): [True: 3.79k, False: 175]
  ------------------
  279|  3.79k|			return removeField(fieldToRemove);
  280|    175|		else
  281|    175|		{
  282|    175|			PCPP_LOG_ERROR("Cannot find field '" << fieldName << "'");
  ------------------
  |  |  443|    175|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    175|	do                                                                                                                 \
  |  |  |  |  413|    175|	{                                                                                                                  \
  |  |  |  |  414|    175|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    175|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|    175|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 175, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    175|		{                                                                                                              \
  |  |  |  |  417|    175|			auto ctx =                                                                                                 \
  |  |  |  |  418|    175|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|    175|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    175|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    175|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    175|		}                                                                                                              \
  |  |  |  |  422|    175|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 175]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  283|    175|			return false;
  284|    175|		}
  285|  3.97k|	}
_ZN4pcpp24TextBasedProtocolMessage11removeFieldEPNS_11HeaderFieldE:
  288|  3.79k|	{
  289|  3.79k|		if (fieldToRemove == nullptr)
  ------------------
  |  Branch (289:7): [True: 0, False: 3.79k]
  ------------------
  290|      0|			return true;
  291|       |
  292|  3.79k|		if (fieldToRemove->m_TextBasedProtocolMessage != this)
  ------------------
  |  Branch (292:7): [True: 0, False: 3.79k]
  ------------------
  293|      0|		{
  294|      0|			PCPP_LOG_ERROR("Field isn't associated with this message");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  295|      0|			return false;
  296|      0|		}
  297|       |
  298|  3.79k|		std::string fieldName = fieldToRemove->getFieldName();
  299|       |
  300|       |		// shorten layer and delete this field
  301|  3.79k|		if (!shortenLayer(fieldToRemove->m_NameOffsetInMessage, fieldToRemove->getFieldSize()))
  ------------------
  |  Branch (301:7): [True: 0, False: 3.79k]
  ------------------
  302|      0|		{
  303|      0|			PCPP_LOG_ERROR("Cannot shorten layer");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  304|      0|			return false;
  305|      0|		}
  306|       |
  307|       |		// update offsets of all fields after this field
  308|  3.79k|		HeaderField* curField = fieldToRemove->getNextField();
  309|  3.79k|		shiftFieldsOffset(curField, 0 - fieldToRemove->getFieldSize());
  310|       |
  311|       |		// update fields link list
  312|  3.79k|		if (fieldToRemove == m_FieldList)
  ------------------
  |  Branch (312:7): [True: 3.31k, False: 486]
  ------------------
  313|  3.31k|			m_FieldList = m_FieldList->getNextField();
  314|    486|		else
  315|    486|		{
  316|    486|			curField = m_FieldList;
  317|  7.24k|			while (curField->getNextField() != fieldToRemove)
  ------------------
  |  Branch (317:11): [True: 6.76k, False: 486]
  ------------------
  318|  6.76k|				curField = curField->getNextField();
  319|       |
  320|    486|			curField->setNextField(fieldToRemove->getNextField());
  321|    486|		}
  322|       |
  323|       |		// re-calculate m_LastField if needed
  324|  3.79k|		if (fieldToRemove == m_LastField)
  ------------------
  |  Branch (324:7): [True: 407, False: 3.39k]
  ------------------
  325|    407|		{
  326|    407|			if (m_FieldList == nullptr)
  ------------------
  |  Branch (326:8): [True: 0, False: 407]
  ------------------
  327|      0|				m_LastField = nullptr;
  328|    407|			else
  329|    407|			{
  330|    407|				curField = m_FieldList;
  331|  6.27k|				while (curField->getNextField() != nullptr)
  ------------------
  |  Branch (331:12): [True: 5.86k, False: 407]
  ------------------
  332|  5.86k|					curField = curField->getNextField();
  333|    407|				m_LastField = curField;
  334|    407|			}
  335|    407|		}
  336|       |
  337|       |		// remove the hash entry for this field
  338|  3.79k|		std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  339|  3.79k|		auto range = m_FieldNameToFieldMap.equal_range(fieldName);
  340|  3.79k|		for (std::multimap<std::string, HeaderField*>::iterator iter = range.first; iter != range.second; ++iter)
  ------------------
  |  Branch (340:79): [True: 3.79k, False: 0]
  ------------------
  341|  3.79k|		{
  342|  3.79k|			if (iter->second == fieldToRemove)
  ------------------
  |  Branch (342:8): [True: 3.79k, False: 0]
  ------------------
  343|  3.79k|			{
  344|  3.79k|				m_FieldNameToFieldMap.erase(iter);
  345|  3.79k|				break;
  346|  3.79k|			}
  347|  3.79k|		}
  348|       |
  349|       |		// finally - delete this field
  350|  3.79k|		delete fieldToRemove;
  351|       |
  352|  3.79k|		return true;
  353|  3.79k|	}
_ZN4pcpp24TextBasedProtocolMessage17shiftFieldsOffsetEPNS_11HeaderFieldEi:
  364|  7.62k|	{
  365|  42.6k|		while (fromField != nullptr)
  ------------------
  |  Branch (365:10): [True: 35.0k, False: 7.62k]
  ------------------
  366|  35.0k|		{
  367|  35.0k|			fromField->m_NameOffsetInMessage += numOfBytesToShift;
  368|  35.0k|			if (fromField->m_ValueOffsetInMessage != -1)
  ------------------
  |  Branch (368:8): [True: 34.1k, False: 909]
  ------------------
  369|  34.1k|				fromField->m_ValueOffsetInMessage += numOfBytesToShift;
  370|  35.0k|			fromField = fromField->getNextField();
  371|  35.0k|		}
  372|  7.62k|	}
_ZNK4pcpp24TextBasedProtocolMessage14getFieldByNameENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEi:
  375|   130k|	{
  376|   130k|		std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  377|       |
  378|   130k|		auto range = m_FieldNameToFieldMap.equal_range(fieldName);
  379|   130k|		int i = 0;
  380|   133k|		for (std::multimap<std::string, HeaderField*>::const_iterator iter = range.first; iter != range.second; ++iter)
  ------------------
  |  Branch (380:85): [True: 124k, False: 8.77k]
  ------------------
  381|   124k|		{
  382|   124k|			if (i == index)
  ------------------
  |  Branch (382:8): [True: 121k, False: 2.94k]
  ------------------
  383|   121k|				return iter->second;
  384|       |
  385|  2.94k|			i++;
  386|  2.94k|		}
  387|       |
  388|  8.77k|		return nullptr;
  389|   130k|	}
_ZNK4pcpp24TextBasedProtocolMessage13getFieldCountEv:
  392|  3.97k|	{
  393|  3.97k|		int result = 0;
  394|       |
  395|  3.97k|		HeaderField* curField = getFirstField();
  396|  45.3k|		while (curField != nullptr)
  ------------------
  |  Branch (396:10): [True: 41.3k, False: 3.97k]
  ------------------
  397|  41.3k|		{
  398|  41.3k|			if (!curField->isEndOfHeader())
  ------------------
  |  Branch (398:8): [True: 39.3k, False: 1.99k]
  ------------------
  399|  39.3k|				result++;
  400|  41.3k|			curField = curField->getNextField();
  401|  41.3k|		}
  402|       |
  403|  3.97k|		return result;
  404|  3.97k|	}
_ZN4pcpp24TextBasedProtocolMessage14parseNextLayerEv:
  407|  61.2k|	{
  408|  61.2k|		size_t headerLen = getHeaderLen();
  409|  61.2k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (409:7): [True: 36.1k, False: 25.1k]
  ------------------
  410|  36.1k|			return;
  411|       |
  412|  25.1k|		constructNextLayer<PayloadLayer>(m_Data + headerLen, m_DataLen - headerLen);
  413|  25.1k|	}
_ZNK4pcpp24TextBasedProtocolMessage12getHeaderLenEv:
  416|   209k|	{
  417|   209k|		return m_LastField->m_NameOffsetInMessage + m_LastField->m_FieldSize;
  418|   209k|	}
_ZN4pcpp24TextBasedProtocolMessage22computeCalculateFieldsEv:
  421|  7.15k|	{
  422|       |		// nothing to do for now
  423|  7.15k|	}
_ZN4pcpp11HeaderFieldC2EPNS_24TextBasedProtocolMessageEicb:
  429|  1.10M|	    : m_NewFieldData(nullptr), m_TextBasedProtocolMessage(TextBasedProtocolMessage),
  430|  1.10M|	      m_NameOffsetInMessage(offsetInMessage), m_NextField(nullptr), m_NameValueSeparator(nameValueSeparator),
  431|  1.10M|	      m_SpacesAllowedBetweenNameAndValue(spacesAllowedBetweenNameAndValue)
  432|  1.10M|	{
  433|  1.10M|		char* fieldData = reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data + m_NameOffsetInMessage);
  434|  1.10M|		char* fieldEndPtr = static_cast<char*>(memchr(
  435|  1.10M|		    fieldData, '\n', m_TextBasedProtocolMessage->m_DataLen - static_cast<size_t>(m_NameOffsetInMessage)));
  436|  1.10M|		if (fieldEndPtr == nullptr)
  ------------------
  |  Branch (436:7): [True: 38.9k, False: 1.06M]
  ------------------
  437|  38.9k|			m_FieldSize = tbp_my_own_strnlen(fieldData, m_TextBasedProtocolMessage->m_DataLen -
  438|  38.9k|			                                                static_cast<size_t>(m_NameOffsetInMessage));
  439|  1.06M|		else
  440|  1.06M|			m_FieldSize = fieldEndPtr - fieldData + 1;
  441|       |
  442|  1.10M|		if (m_FieldSize == 0 || (*fieldData) == '\r' || (*fieldData) == '\n')
  ------------------
  |  Branch (442:7): [True: 14.3k, False: 1.08M]
  |  Branch (442:27): [True: 82.2k, False: 1.00M]
  |  Branch (442:51): [True: 6.16k, False: 999k]
  ------------------
  443|   102k|		{
  444|   102k|			m_FieldNameSize = -1;
  445|   102k|			m_ValueOffsetInMessage = -1;
  446|   102k|			m_FieldValueSize = -1;
  447|   102k|			m_FieldNameSize = -1;
  448|   102k|			m_IsEndOfHeaderField = true;
  449|   102k|			return;
  450|   102k|		}
  451|   999k|		else
  452|   999k|			m_IsEndOfHeaderField = false;
  453|       |
  454|   999k|		char* fieldValuePtr = static_cast<char*>(
  455|   999k|		    memchr(fieldData, nameValueSeparator,
  456|   999k|		           m_TextBasedProtocolMessage->m_DataLen - static_cast<size_t>(m_NameOffsetInMessage)));
  457|       |		// could not find the position of the separator, meaning field value position is unknown
  458|   999k|		if (fieldValuePtr == nullptr || (fieldEndPtr != nullptr && fieldValuePtr >= fieldEndPtr))
  ------------------
  |  Branch (458:7): [True: 116k, False: 882k]
  |  Branch (458:36): [True: 868k, False: 14.0k]
  |  Branch (458:62): [True: 94.6k, False: 773k]
  ------------------
  459|   211k|		{
  460|   211k|			m_ValueOffsetInMessage = -1;
  461|   211k|			m_FieldValueSize = -1;
  462|   211k|			m_FieldNameSize = m_FieldSize;
  463|   211k|		}
  464|   787k|		else
  465|   787k|		{
  466|   787k|			m_FieldNameSize = fieldValuePtr - fieldData;
  467|       |			// Header field looks like this: <field_name>[separator]<zero or more spaces><field_Value>
  468|       |			// So fieldValuePtr give us the position of the separator. Value offset is the first non-space byte forward
  469|   787k|			fieldValuePtr++;
  470|       |
  471|       |			// reached the end of the packet and value start offset wasn't found
  472|   787k|			if (static_cast<size_t>(fieldValuePtr - reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data)) >=
  ------------------
  |  Branch (472:8): [True: 414, False: 787k]
  ------------------
  473|   787k|			    m_TextBasedProtocolMessage->getDataLen())
  474|    414|			{
  475|    414|				m_ValueOffsetInMessage = -1;
  476|    414|				m_FieldValueSize = -1;
  477|    414|				return;
  478|    414|			}
  479|       |
  480|   787k|			if (spacesAllowedBetweenNameAndValue)
  ------------------
  |  Branch (480:8): [True: 540k, False: 246k]
  ------------------
  481|   540k|			{
  482|       |				// advance fieldValuePtr 1 byte forward while didn't get to end of packet and fieldValuePtr points to a
  483|       |				// space char
  484|   540k|				while (
  485|  1.07M|				    static_cast<size_t>(fieldValuePtr - reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data)) <
  ------------------
  |  Branch (485:9): [True: 1.07M, False: 0]
  ------------------
  486|  1.07M|				        m_TextBasedProtocolMessage->getDataLen() &&
  487|  1.07M|				    (*fieldValuePtr) == ' ')
  ------------------
  |  Branch (487:9): [True: 531k, False: 540k]
  ------------------
  488|   531k|				{
  489|   531k|					fieldValuePtr++;
  490|   531k|				}
  491|   540k|			}
  492|       |
  493|       |			// reached the end of the packet and value start offset wasn't found
  494|   787k|			if (static_cast<size_t>(fieldValuePtr - reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data)) >=
  ------------------
  |  Branch (494:8): [True: 0, False: 787k]
  ------------------
  495|   787k|			    m_TextBasedProtocolMessage->getDataLen())
  496|      0|			{
  497|      0|				m_ValueOffsetInMessage = -1;
  498|      0|				m_FieldValueSize = -1;
  499|      0|			}
  500|   787k|			else
  501|   787k|			{
  502|   787k|				m_ValueOffsetInMessage = fieldValuePtr - reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data);
  503|       |				// couldn't find the end of the field, so assuming the field value length is from m_ValueOffsetInMessage
  504|       |				// until the end of the packet
  505|   787k|				if (fieldEndPtr == nullptr)
  ------------------
  |  Branch (505:9): [True: 13.6k, False: 773k]
  ------------------
  506|  13.6k|				{
  507|       |					// clang-format off
  508|  13.6k|					m_FieldValueSize = reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data + m_TextBasedProtocolMessage->getDataLen()) - fieldValuePtr;
  509|       |					// clang-format on
  510|  13.6k|				}
  511|   773k|				else
  512|   773k|				{
  513|   773k|					m_FieldValueSize = fieldEndPtr - fieldValuePtr;
  514|       |					// if field ends with \r\n, decrease the value length by 1
  515|   773k|					if ((*(--fieldEndPtr)) == '\r')
  ------------------
  |  Branch (515:10): [True: 707k, False: 66.4k]
  ------------------
  516|   707k|						m_FieldValueSize--;
  517|   773k|				}
  518|   787k|			}
  519|   787k|		}
  520|   999k|	}
_ZN4pcpp11HeaderFieldC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_cb:
  524|  9.02k|	{
  525|  9.02k|		m_NameValueSeparator = nameValueSeparator;
  526|  9.02k|		m_SpacesAllowedBetweenNameAndValue = spacesAllowedBetweenNameAndValue;
  527|  9.02k|		initNewField(name, value);
  528|  9.02k|	}
_ZN4pcpp11HeaderField12initNewFieldERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  531|  55.4k|	{
  532|  55.4k|		m_TextBasedProtocolMessage = nullptr;
  533|  55.4k|		m_NameOffsetInMessage = 0;
  534|  55.4k|		m_NextField = nullptr;
  535|       |
  536|       |		// first building the name-value separator
  537|  55.4k|		std::string nameValueSeparation(1, m_NameValueSeparator);
  538|  55.4k|		if (m_SpacesAllowedBetweenNameAndValue)
  ------------------
  |  Branch (538:7): [True: 0, False: 55.4k]
  ------------------
  539|      0|			nameValueSeparation += " ";
  540|       |
  541|       |		// Field size is: name_length + separator_len + value_length + '\r\n'
  542|  55.4k|		if (name != PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER)
  ------------------
  |  |   12|  55.4k|#define PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER ""
  ------------------
  |  Branch (542:7): [True: 53.3k, False: 2.07k]
  ------------------
  543|  53.3k|			m_FieldSize = name.length() + nameValueSeparation.length() + value.length() + 2;
  544|  2.07k|		else
  545|       |			// Field is \r\n (2B)
  546|  2.07k|			m_FieldSize = 2;
  547|       |
  548|  55.4k|		m_NewFieldData = new uint8_t[m_FieldSize];
  549|  55.4k|		std::string fieldData;
  550|       |
  551|  55.4k|		if (name != PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER)
  ------------------
  |  |   12|  55.4k|#define PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER ""
  ------------------
  |  Branch (551:7): [True: 53.3k, False: 2.07k]
  ------------------
  552|  53.3k|			fieldData = name + nameValueSeparation + value + "\r\n";
  553|  2.07k|		else
  554|  2.07k|			fieldData = "\r\n";
  555|       |
  556|       |		// copy field data to m_NewFieldData
  557|  55.4k|		memcpy(m_NewFieldData, fieldData.c_str(), m_FieldSize);
  558|       |
  559|       |		// calculate value offset
  560|  55.4k|		if (name != PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER)
  ------------------
  |  |   12|  55.4k|#define PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER ""
  ------------------
  |  Branch (560:7): [True: 53.3k, False: 2.07k]
  ------------------
  561|  53.3k|			m_ValueOffsetInMessage = name.length() + nameValueSeparation.length();
  562|  2.07k|		else
  563|  2.07k|			m_ValueOffsetInMessage = 0;
  564|  55.4k|		m_FieldNameSize = name.length();
  565|  55.4k|		m_FieldValueSize = value.length();
  566|       |
  567|  55.4k|		if (name != PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER)
  ------------------
  |  |   12|  55.4k|#define PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER ""
  ------------------
  |  Branch (567:7): [True: 53.3k, False: 2.07k]
  ------------------
  568|  53.3k|			m_IsEndOfHeaderField = false;
  569|  2.07k|		else
  570|  2.07k|			m_IsEndOfHeaderField = true;
  571|  55.4k|	}
_ZN4pcpp11HeaderFieldD2Ev:
  574|  1.15M|	{
  575|  1.15M|		if (m_NewFieldData != nullptr)
  ------------------
  |  Branch (575:7): [True: 10.8k, False: 1.14M]
  ------------------
  576|  10.8k|			delete[] m_NewFieldData;
  577|  1.15M|	}
_ZN4pcpp11HeaderFieldC2ERKS0_:
  580|  46.3k|	    : m_NameValueSeparator('\0'), m_SpacesAllowedBetweenNameAndValue(false)
  581|  46.3k|	{
  582|  46.3k|		m_NameValueSeparator = other.m_NameValueSeparator;
  583|  46.3k|		m_SpacesAllowedBetweenNameAndValue = other.m_SpacesAllowedBetweenNameAndValue;
  584|  46.3k|		initNewField(other.getFieldName(), other.getFieldValue());
  585|  46.3k|	}
_ZNK4pcpp11HeaderField7getDataEv:
  599|  1.25M|	{
  600|  1.25M|		if (m_TextBasedProtocolMessage == nullptr)
  ------------------
  |  Branch (600:7): [True: 10.0k, False: 1.24M]
  ------------------
  601|  10.0k|			return reinterpret_cast<char*>(m_NewFieldData);
  602|  1.24M|		else
  603|  1.24M|			return reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data);
  604|  1.25M|	}
_ZN4pcpp11HeaderField12setNextFieldEPS0_:
  607|  1.00M|	{
  608|  1.00M|		m_NextField = nextField;
  609|  1.00M|	}
_ZNK4pcpp11HeaderField12getNextFieldEv:
  612|  1.48M|	{
  613|  1.48M|		return m_NextField;
  614|  1.48M|	}
_ZNK4pcpp11HeaderField12getFieldNameEv:
  617|  1.19M|	{
  618|  1.19M|		std::string result;
  619|       |
  620|  1.19M|		if (m_FieldNameSize != static_cast<size_t>(-1))
  ------------------
  |  Branch (620:7): [True: 1.10M, False: 92.5k]
  ------------------
  621|  1.10M|			result.assign((getData() + m_NameOffsetInMessage), m_FieldNameSize);
  622|       |
  623|  1.19M|		return result;
  624|  1.19M|	}
_ZNK4pcpp11HeaderField13getFieldValueEv:
  627|   162k|	{
  628|   162k|		std::string result;
  629|   162k|		if (m_ValueOffsetInMessage != -1)
  ------------------
  |  Branch (629:7): [True: 144k, False: 18.1k]
  ------------------
  630|   144k|			result.assign((getData() + m_ValueOffsetInMessage), m_FieldValueSize);
  631|   162k|		return result;
  632|   162k|	}
_ZN4pcpp11HeaderField13setFieldValueERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  635|  4.41k|	{
  636|       |		// Field isn't linked with any message yet
  637|  4.41k|		if (m_TextBasedProtocolMessage == nullptr)
  ------------------
  |  Branch (637:7): [True: 0, False: 4.41k]
  ------------------
  638|      0|		{
  639|      0|			std::string name = getFieldName();
  640|      0|			delete[] m_NewFieldData;
  641|      0|			initNewField(name, newValue);
  642|      0|			return true;
  643|      0|		}
  644|       |
  645|  4.41k|		std::string curValue = getFieldValue();
  646|  4.41k|		int lengthDifference = newValue.length() - curValue.length();
  647|       |		// new value is longer than current value
  648|  4.41k|		if (lengthDifference > 0)
  ------------------
  |  Branch (648:7): [True: 402, False: 4.01k]
  ------------------
  649|    402|		{
  650|    402|			if (!m_TextBasedProtocolMessage->extendLayer(m_ValueOffsetInMessage, lengthDifference))
  ------------------
  |  Branch (650:8): [True: 0, False: 402]
  ------------------
  651|      0|			{
  652|      0|				PCPP_LOG_ERROR("Could not extend layer");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  653|      0|				return false;
  654|      0|			}
  655|    402|		}
  656|       |		// new value is shorter than current value
  657|  4.01k|		else if (lengthDifference < 0)
  ------------------
  |  Branch (657:12): [True: 177, False: 3.83k]
  ------------------
  658|    177|		{
  659|    177|			if (!m_TextBasedProtocolMessage->shortenLayer(m_ValueOffsetInMessage, 0 - lengthDifference))
  ------------------
  |  Branch (659:8): [True: 0, False: 177]
  ------------------
  660|      0|			{
  661|      0|				PCPP_LOG_ERROR("Could not shorten layer");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  662|      0|				return false;
  663|      0|			}
  664|    177|		}
  665|       |
  666|  4.41k|		if (lengthDifference != 0)
  ------------------
  |  Branch (666:7): [True: 579, False: 3.83k]
  ------------------
  667|    579|			m_TextBasedProtocolMessage->shiftFieldsOffset(getNextField(), lengthDifference);
  668|       |
  669|       |		// update sizes
  670|  4.41k|		m_FieldValueSize += lengthDifference;
  671|  4.41k|		m_FieldSize += lengthDifference;
  672|       |
  673|       |		// write new value to field data
  674|  4.41k|		memcpy(getData() + m_ValueOffsetInMessage, newValue.c_str(), newValue.length());
  675|       |
  676|  4.41k|		return true;
  677|  4.41k|	}
_ZN4pcpp11HeaderField32attachToTextBasedProtocolMessageEPNS_24TextBasedProtocolMessageEi:
  680|  44.6k|	{
  681|  44.6k|		if (m_TextBasedProtocolMessage != nullptr && m_TextBasedProtocolMessage != message)
  ------------------
  |  Branch (681:7): [True: 0, False: 44.6k]
  |  Branch (681:48): [True: 0, False: 0]
  ------------------
  682|      0|		{
  683|      0|			PCPP_LOG_ERROR("Header field already associated with another message");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  684|      0|			return;
  685|      0|		}
  686|       |
  687|  44.6k|		if (m_NewFieldData == nullptr)
  ------------------
  |  Branch (687:7): [True: 0, False: 44.6k]
  ------------------
  688|      0|		{
  689|      0|			PCPP_LOG_ERROR("Header field doesn't have new field data");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  690|      0|			return;
  691|      0|		}
  692|       |
  693|  44.6k|		delete[] m_NewFieldData;
  694|  44.6k|		m_NewFieldData = nullptr;
  695|  44.6k|		m_TextBasedProtocolMessage = message;
  696|       |
  697|  44.6k|		int valueAndNameDifference = m_ValueOffsetInMessage - m_NameOffsetInMessage;
  698|  44.6k|		m_NameOffsetInMessage = fieldOffsetInMessage;
  699|  44.6k|		m_ValueOffsetInMessage = m_NameOffsetInMessage + valueAndNameDifference;
  700|  44.6k|	}

_ZNK4pcpp9TpktLayer10getVersionEv:
   27|  6.21k|	{
   28|  6.21k|		return getTpktHeader()->version;
   29|  6.21k|	}
_ZNK4pcpp9TpktLayer9getLengthEv:
   32|  6.21k|	{
   33|       |		return htobe16(getTpktHeader()->length);
   34|  6.21k|	}
_ZNK4pcpp9TpktLayer8toStringEv:
   47|  6.21k|	{
   48|  6.21k|		std::ostringstream versionStream;
   49|  6.21k|		versionStream << std::to_string(getVersion());
   50|  6.21k|		std::ostringstream lengthStream;
   51|  6.21k|		lengthStream << std::to_string(getLength());
   52|       |
   53|  6.21k|		return "TPKT Layer, version: " + versionStream.str() + ", length: " + lengthStream.str();
   54|  6.21k|	}
_ZN4pcpp9TpktLayer14parseNextLayerEv:
   57|  21.9k|	{
   58|  21.9k|		size_t headerLen = getHeaderLen();
   59|  21.9k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (59:7): [True: 18, False: 21.9k]
  ------------------
   60|     18|			return;
   61|       |
   62|  21.9k|		uint8_t* payload = m_Data + headerLen;
   63|  21.9k|		size_t payloadLen = m_DataLen - headerLen;
   64|       |
   65|  21.9k|		tryConstructNextLayerWithFallback<CotpLayer, PayloadLayer>(payload, payloadLen);
   66|  21.9k|	}

_ZNK4pcpp8UdpLayer10getSrcPortEv:
   38|   418k|	{
   39|       |		return be16toh(getUdpHeader()->portSrc);
   40|   418k|	}
_ZNK4pcpp8UdpLayer10getDstPortEv:
   43|   418k|	{
   44|       |		return be16toh(getUdpHeader()->portDst);
   45|   418k|	}
_ZN4pcpp8UdpLayer17calculateChecksumEb:
   48|  50.2k|	{
   49|  50.2k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
   50|  50.2k|		uint16_t checksumRes = 0;
   51|  50.2k|		uint16_t currChecksumValue = udpHdr->headerChecksum;
   52|       |
   53|  50.2k|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (53:7): [True: 50.2k, False: 0]
  ------------------
   54|  50.2k|		{
   55|  50.2k|			udpHdr->headerChecksum = 0;
   56|  50.2k|			PCPP_LOG_DEBUG("UDP data len = " << m_DataLen);
  ------------------
  |  |  425|  50.2k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  50.2k|	do                                                                                                                 \
  |  |  |  |  413|  50.2k|	{                                                                                                                  \
  |  |  |  |  414|  50.2k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  50.2k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  50.2k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 50.2k]
  |  |  |  |  ------------------
  |  |  |  |  416|  50.2k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  50.2k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 50.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   57|       |
   58|  50.2k|			if (m_PrevLayer->getProtocol() == IPv4)
  ------------------
  |  Branch (58:8): [True: 44.6k, False: 5.55k]
  ------------------
   59|  44.6k|			{
   60|  44.6k|				IPv4Address srcIP = static_cast<IPv4Layer*>(m_PrevLayer)->getSrcIPv4Address();
   61|  44.6k|				IPv4Address dstIP = static_cast<IPv4Layer*>(m_PrevLayer)->getDstIPv4Address();
   62|       |
   63|  44.6k|				checksumRes = pcpp::computePseudoHdrChecksum((uint8_t*)udpHdr, getDataLen(), IPAddress::IPv4AddressType,
   64|  44.6k|				                                             PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   65|       |
   66|  44.6k|				PCPP_LOG_DEBUG("calculated IPv4 UDP checksum = 0x" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  44.6k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  44.6k|	do                                                                                                                 \
  |  |  |  |  413|  44.6k|	{                                                                                                                  \
  |  |  |  |  414|  44.6k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  44.6k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  44.6k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 44.6k]
  |  |  |  |  ------------------
  |  |  |  |  416|  44.6k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  44.6k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 44.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   67|  44.6k|			}
   68|  5.55k|			else if (m_PrevLayer->getProtocol() == IPv6)
  ------------------
  |  Branch (68:13): [True: 5.55k, False: 0]
  ------------------
   69|  5.55k|			{
   70|  5.55k|				IPv6Address srcIP = static_cast<IPv6Layer*>(m_PrevLayer)->getSrcIPv6Address();
   71|  5.55k|				IPv6Address dstIP = static_cast<IPv6Layer*>(m_PrevLayer)->getDstIPv6Address();
   72|       |
   73|  5.55k|				checksumRes = computePseudoHdrChecksum((uint8_t*)udpHdr, getDataLen(), IPAddress::IPv6AddressType,
   74|  5.55k|				                                       PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   75|       |
   76|  5.55k|				PCPP_LOG_DEBUG("calculated IPv6 UDP checksum = 0xX" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  5.55k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  5.55k|	do                                                                                                                 \
  |  |  |  |  413|  5.55k|	{                                                                                                                  \
  |  |  |  |  414|  5.55k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  5.55k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.55k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 5.55k]
  |  |  |  |  ------------------
  |  |  |  |  416|  5.55k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  5.55k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 5.55k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   77|  5.55k|			}
   78|  50.2k|		}
   79|       |
   80|  50.2k|		if (checksumRes == 0)
  ------------------
  |  Branch (80:7): [True: 24, False: 50.1k]
  ------------------
   81|     24|			checksumRes = 0xffff;
   82|       |
   83|  50.2k|		if (writeResultToPacket)
  ------------------
  |  Branch (83:7): [True: 50.2k, False: 0]
  ------------------
   84|  50.2k|			udpHdr->headerChecksum = htobe16(checksumRes);
   85|      0|		else
   86|      0|			udpHdr->headerChecksum = currChecksumValue;
   87|       |
   88|  50.2k|		return checksumRes;
   89|  50.2k|	}
_ZN4pcpp8UdpLayer14parseNextLayerEv:
   92|   317k|	{
   93|   317k|		if (m_DataLen <= sizeof(udphdr))
  ------------------
  |  Branch (93:7): [True: 0, False: 317k]
  ------------------
   94|      0|			return;
   95|       |
   96|   317k|		uint16_t portDst = getDstPort();
   97|   317k|		uint16_t portSrc = getSrcPort();
   98|       |
   99|   317k|		uint8_t* udpData = m_Data + sizeof(udphdr);
  100|   317k|		size_t udpDataLen = m_DataLen - sizeof(udphdr);
  101|       |
  102|   317k|		if (DhcpLayer::isDhcpPorts(portSrc, portDst))
  ------------------
  |  Branch (102:7): [True: 14.1k, False: 303k]
  ------------------
  103|  14.1k|		{
  104|  14.1k|			tryConstructNextLayerWithFallback<DhcpLayer, PayloadLayer>(udpData, udpDataLen);
  105|  14.1k|		}
  106|   303k|		else if (VxlanLayer::isVxlanPort(portDst))
  ------------------
  |  Branch (106:12): [True: 24, False: 303k]
  ------------------
  107|     24|		{
  108|     24|			tryConstructNextLayerWithFallback<VxlanLayer, PayloadLayer>(udpData, udpDataLen);
  109|     24|		}
  110|   303k|		else if (DnsLayer::isDataValid(udpData, udpDataLen) &&
  ------------------
  |  Branch (110:12): [True: 269k, False: 33.8k]
  ------------------
  111|   269k|		         (DnsLayer::isDnsPort(portDst) || DnsLayer::isDnsPort(portSrc)))
  ------------------
  |  Branch (111:13): [True: 40.3k, False: 229k]
  |  Branch (111:45): [True: 10.2k, False: 219k]
  ------------------
  112|  50.5k|		{
  113|  50.5k|			constructNextLayer<DnsLayer>(udpData, udpDataLen);
  114|  50.5k|		}
  115|   253k|		else if (SipLayer::isSipPort(portDst) || SipLayer::isSipPort(portSrc))
  ------------------
  |  Branch (115:12): [True: 68.0k, False: 185k]
  |  Branch (115:44): [True: 1.61k, False: 183k]
  ------------------
  116|  69.6k|		{
  117|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  118|  69.6k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*, uint16_t, uint16_t) = SipLayer::parseSipLayer;
  119|  69.6k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen, portSrc, portDst);
  120|  69.6k|		}
  121|   183k|		else if ((RadiusLayer::isRadiusPort(portDst) || RadiusLayer::isRadiusPort(portSrc)) &&
  ------------------
  |  Branch (121:13): [True: 3.08k, False: 180k]
  |  Branch (121:51): [True: 8.47k, False: 171k]
  ------------------
  122|  11.5k|		         RadiusLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (122:12): [True: 10.8k, False: 693]
  ------------------
  123|  10.8k|		{
  124|  10.8k|			constructNextLayer<RadiusLayer>(udpData, udpDataLen);
  125|  10.8k|		}
  126|   172k|		else if ((GtpV1Layer::isGTPv1Port(portDst) || GtpV1Layer::isGTPv1Port(portSrc)) &&
  ------------------
  |  Branch (126:13): [True: 21.7k, False: 150k]
  |  Branch (126:49): [True: 10.0k, False: 140k]
  ------------------
  127|  31.8k|		         GtpV1Layer::isGTPv1(udpData, udpDataLen))
  ------------------
  |  Branch (127:12): [True: 31.6k, False: 154]
  ------------------
  128|  31.6k|		{
  129|  31.6k|			constructNextLayer<GtpV1Layer>(udpData, udpDataLen);
  130|  31.6k|		}
  131|   140k|		else if ((GtpV2Layer::isGTPv2Port(portDst) || GtpV2Layer::isGTPv2Port(portSrc)) &&
  ------------------
  |  Branch (131:13): [True: 0, False: 140k]
  |  Branch (131:49): [True: 0, False: 140k]
  ------------------
  132|      0|		         GtpV2Layer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (132:12): [True: 0, False: 0]
  ------------------
  133|      0|		{
  134|      0|			constructNextLayer<GtpV2Layer>(udpData, udpDataLen);
  135|      0|		}
  136|   140k|		else if ((DhcpV6Layer::isDhcpV6Port(portSrc) || DhcpV6Layer::isDhcpV6Port(portDst)) &&
  ------------------
  |  Branch (136:13): [True: 12.2k, False: 128k]
  |  Branch (136:51): [True: 6.02k, False: 122k]
  ------------------
  137|  18.2k|		         (DhcpV6Layer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (137:12): [True: 18.1k, False: 130]
  ------------------
  138|  18.1k|		{
  139|  18.1k|			constructNextLayer<DhcpV6Layer>(udpData, udpDataLen);
  140|  18.1k|		}
  141|   122k|		else if ((NtpLayer::isNTPPort(portSrc) || NtpLayer::isNTPPort(portDst)) &&
  ------------------
  |  Branch (141:13): [True: 13.9k, False: 108k]
  |  Branch (141:45): [True: 490, False: 108k]
  ------------------
  142|  14.4k|		         NtpLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (142:12): [True: 14.4k, False: 5]
  ------------------
  143|  14.4k|		{
  144|  14.4k|			constructNextLayer<NtpLayer>(udpData, udpDataLen);
  145|  14.4k|		}
  146|   108k|		else if ((DoIpLayer::isDoIpPort(portSrc) || DoIpLayer::isDoIpPort(portDst)) &&
  ------------------
  |  Branch (146:13): [True: 15.5k, False: 92.7k]
  |  Branch (146:47): [True: 26.9k, False: 65.8k]
  ------------------
  147|  42.5k|		         (DoIpLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (147:12): [True: 37.9k, False: 4.62k]
  ------------------
  148|  37.9k|		{
  149|  37.9k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(DoIpLayer::parseDoIpLayer, udpData, udpDataLen);
  150|  37.9k|		}
  151|  70.4k|		else if (SomeIpLayer::isSomeIpPort(portSrc) || SomeIpLayer::isSomeIpPort(portDst))
  ------------------
  |  Branch (151:12): [True: 28.6k, False: 41.8k]
  |  Branch (151:50): [True: 2.26k, False: 39.5k]
  ------------------
  152|  30.8k|		{
  153|  30.8k|			constructNextLayerFromFactory(SomeIpLayer::parseSomeIpLayer, udpData, udpDataLen);
  154|  30.8k|		}
  155|  39.5k|		else if ((WakeOnLanLayer::isWakeOnLanPort(portDst) && WakeOnLanLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (155:13): [True: 2.07k, False: 37.4k]
  |  Branch (155:57): [True: 775, False: 1.29k]
  ------------------
  156|    775|		{
  157|    775|			constructNextLayer<WakeOnLanLayer>(udpData, udpDataLen);
  158|    775|		}
  159|  38.7k|		else if ((WireGuardLayer::isWireGuardPorts(portDst, portSrc) &&
  ------------------
  |  Branch (159:13): [True: 1.82k, False: 36.9k]
  ------------------
  160|  1.82k|		          WireGuardLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (160:13): [True: 1.82k, False: 0]
  ------------------
  161|  1.82k|		{
  162|  1.82k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(WireGuardLayer::parseWireGuardLayer, udpData,
  163|  1.82k|			                                                           udpDataLen);
  164|  1.82k|		}
  165|       |
  166|       |		// If a valid layer was found, return immediately
  167|   317k|		if (hasNextLayer())
  ------------------
  |  Branch (167:7): [True: 280k, False: 36.9k]
  ------------------
  168|   280k|		{
  169|   280k|			return;
  170|   280k|		}
  171|       |
  172|       |		// Here, heuristics for all protocols should be invoked to determine the correct layer
  173|  36.9k|		{
  174|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  175|  36.9k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*) = SipLayer::parseSipLayer;
  176|  36.9k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen);
  177|  36.9k|		}
  178|       |
  179|  36.9k|		if (!hasNextLayer())
  ------------------
  |  Branch (179:7): [True: 0, False: 36.9k]
  ------------------
  180|      0|		{
  181|      0|			constructNextLayer<PayloadLayer>(udpData, udpDataLen);
  182|      0|		}
  183|  36.9k|	}
_ZN4pcpp8UdpLayer22computeCalculateFieldsEv:
  186|  50.2k|	{
  187|  50.2k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
  188|       |		udpHdr->length = htobe16(m_DataLen);
  189|  50.2k|		calculateChecksum(true);
  190|  50.2k|	}
_ZNK4pcpp8UdpLayer8toStringEv:
  193|   100k|	{
  194|   100k|		std::ostringstream srcPortStream;
  195|   100k|		srcPortStream << getSrcPort();
  196|   100k|		std::ostringstream dstPortStream;
  197|   100k|		dstPortStream << getDstPort();
  198|       |
  199|   100k|		return "UDP Layer, Src port: " + srcPortStream.str() + ", Dst port: " + dstPortStream.str();
  200|   100k|	}

_ZNK4pcpp9VlanLayer9getVlanIDEv:
   30|  45.0k|	{
   31|       |		return be16toh(getVlanHeader()->vlan) & 0xFFF;
   32|  45.0k|	}
_ZNK4pcpp9VlanLayer6getCFIEv:
   35|  45.0k|	{
   36|       |		return ((be16toh(getVlanHeader()->vlan) >> 12) & 1);
   37|  45.0k|	}
_ZNK4pcpp9VlanLayer11getPriorityEv:
   40|  45.0k|	{
   41|       |		return (be16toh(getVlanHeader()->vlan) >> 13) & 7;
   42|  45.0k|	}
_ZN4pcpp9VlanLayer14parseNextLayerEv:
   60|   198k|	{
   61|   198k|		if (m_DataLen <= sizeof(vlan_header))
  ------------------
  |  Branch (61:7): [True: 225, False: 198k]
  ------------------
   62|    225|			return;
   63|       |
   64|   198k|		uint8_t* payload = m_Data + sizeof(vlan_header);
   65|   198k|		size_t payloadLen = m_DataLen - sizeof(vlan_header);
   66|       |
   67|   198k|		vlan_header* hdr = getVlanHeader();
   68|   198k|		switch (be16toh(hdr->etherType))
   69|   198k|		{
   70|  80.9k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|  80.9k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (70:3): [True: 80.9k, False: 117k]
  ------------------
   71|  80.9k|		{
   72|  80.9k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   73|  80.9k|			break;
   74|      0|		}
   75|  16.7k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|  16.7k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (75:3): [True: 16.7k, False: 181k]
  ------------------
   76|  16.7k|		{
   77|  16.7k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   78|  16.7k|			break;
   79|      0|		}
   80|  1.81k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   33|  1.81k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (80:3): [True: 1.81k, False: 196k]
  ------------------
   81|  1.81k|		{
   82|  1.81k|			constructNextLayer<ArpLayer>(payload, payloadLen);
   83|  1.81k|			break;
   84|      0|		}
   85|  53.4k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|  53.4k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (85:3): [True: 53.4k, False: 144k]
  ------------------
   86|  53.4k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   61|  53.4k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (86:3): [True: 56, False: 198k]
  ------------------
   87|  53.4k|		{
   88|  53.4k|			constructNextLayer<VlanLayer>(payload, payloadLen);
   89|  53.4k|			break;
   90|  53.4k|		}
   91|  41.9k|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   53|  41.9k|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (91:3): [True: 41.9k, False: 156k]
  ------------------
   92|  41.9k|		{
   93|  41.9k|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   94|  41.9k|			break;
   95|  53.4k|		}
   96|  1.06k|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   51|  1.06k|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (96:3): [True: 1.06k, False: 197k]
  ------------------
   97|  1.06k|		{
   98|  1.06k|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   99|  1.06k|			break;
  100|  53.4k|		}
  101|  1.11k|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|  1.11k|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (101:3): [True: 1.11k, False: 197k]
  ------------------
  102|  1.11k|		{
  103|  1.11k|			constructNextLayer<MplsLayer>(payload, payloadLen);
  104|  1.11k|			break;
  105|  53.4k|		}
  106|  1.23k|		default:
  ------------------
  |  Branch (106:3): [True: 1.23k, False: 197k]
  ------------------
  107|  1.23k|		{
  108|  1.23k|			if ((be16toh(hdr->etherType) < 1500))
  ------------------
  |  Branch (108:8): [True: 968, False: 264]
  ------------------
  109|    968|			{
  110|    968|				tryConstructNextLayerWithFallback<LLCLayer, PayloadLayer>(payload, payloadLen);
  111|    968|			}
  112|    264|			else
  113|    264|			{
  114|    264|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  115|    264|			}
  116|  1.23k|			break;
  117|  53.4k|		}
  118|   198k|		}
  119|   198k|	}
_ZN4pcpp9VlanLayer22computeCalculateFieldsEv:
  122|  22.5k|	{
  123|  22.5k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (123:7): [True: 75, False: 22.4k]
  ------------------
  124|     75|			return;
  125|       |
  126|  22.4k|		switch (m_NextLayer->getProtocol())
  127|  22.4k|		{
  128|  9.78k|		case IPv4:
  ------------------
  |  Branch (128:3): [True: 9.78k, False: 12.6k]
  ------------------
  129|  9.78k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_IP);
  130|  9.78k|			break;
  131|  2.69k|		case IPv6:
  ------------------
  |  Branch (131:3): [True: 2.69k, False: 19.7k]
  ------------------
  132|  2.69k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_IPV6);
  133|  2.69k|			break;
  134|    364|		case ARP:
  ------------------
  |  Branch (134:3): [True: 364, False: 22.0k]
  ------------------
  135|    364|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_ARP);
  136|    364|			break;
  137|  5.12k|		case VLAN:
  ------------------
  |  Branch (137:3): [True: 5.12k, False: 17.3k]
  ------------------
  138|  5.12k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_VLAN);
  139|  5.12k|			break;
  140|  4.48k|		default:
  ------------------
  |  Branch (140:3): [True: 4.48k, False: 17.9k]
  ------------------
  141|  4.48k|			return;
  142|  22.4k|		}
  143|  22.4k|	}
_ZNK4pcpp9VlanLayer8toStringEv:
  146|  45.0k|	{
  147|  45.0k|		std::ostringstream cfiStream;
  148|  45.0k|		cfiStream << (int)getCFI();
  149|  45.0k|		std::ostringstream priStream;
  150|  45.0k|		priStream << (int)getPriority();
  151|  45.0k|		std::ostringstream idStream;
  152|  45.0k|		idStream << getVlanID();
  153|       |
  154|  45.0k|		return "VLAN Layer, Priority: " + priStream.str() + ", Vlan ID: " + idStream.str() +
  155|  45.0k|		       ", CFI: " + cfiStream.str();
  156|  45.0k|	}

_ZN4pcpp9VrrpLayer18getVersionFromDataEPhm:
   46|  10.7k|	{
   47|  10.7k|		if (!data || dataLen <= VRRP_PACKET_FIX_LEN)
  ------------------
  |  |   18|  10.7k|#define VRRP_PACKET_FIX_LEN 8
  ------------------
  |  Branch (47:7): [True: 0, False: 10.7k]
  |  Branch (47:16): [True: 0, False: 10.7k]
  ------------------
   48|      0|		{
   49|      0|			return UnknownProtocol;
   50|      0|		}
   51|       |
   52|  10.7k|		auto* vrrpPacketCommon = (vrrp_header*)data;
   53|  10.7k|		uint8_t version = vrrpPacketCommon->version;
   54|  10.7k|		switch (version)
   55|  10.7k|		{
   56|  3.48k|		case VRRP_V2_VERSION:
  ------------------
  |  |   21|  3.48k|#define VRRP_V2_VERSION 2
  ------------------
  |  Branch (56:3): [True: 3.48k, False: 7.30k]
  ------------------
   57|  3.48k|			return VRRPv2;
   58|  7.02k|		case VRRP_V3_VERSION:
  ------------------
  |  |   22|  7.02k|#define VRRP_V3_VERSION 3
  ------------------
  |  Branch (58:3): [True: 7.02k, False: 3.77k]
  ------------------
   59|  7.02k|			return VRRPv3;
   60|    285|		default:
  ------------------
  |  Branch (60:3): [True: 285, False: 10.5k]
  ------------------
   61|    285|			return UnknownProtocol;
   62|  10.7k|		}
   63|  10.7k|	}
_ZN4pcpp9VrrpLayer22computeCalculateFieldsEv:
   66|  2.32k|	{
   67|       |		// calculate and fill the checksum to packet
   68|  2.32k|		calculateAndSetChecksum();
   69|  2.32k|	}
_ZNK4pcpp9VrrpLayer15getIPAddressLenEv:
   72|  37.1k|	{
   73|  37.1k|		if (getAddressType() == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (73:7): [True: 36.4k, False: 673]
  ------------------
   74|  36.4k|		{
   75|  36.4k|			return 4;
   76|  36.4k|		}
   77|       |
   78|    673|		return 16;
   79|  37.1k|	}
_ZNK4pcpp9VrrpLayer17isChecksumCorrectEv:
   82|  2.32k|	{
   83|  2.32k|		auto vrrpHeader = getVrrpHeader();
   84|  2.32k|		if (vrrpHeader == nullptr)
  ------------------
  |  Branch (84:7): [True: 0, False: 2.32k]
  ------------------
   85|      0|		{
   86|      0|			return false;
   87|      0|		}
   88|       |
   89|  2.32k|		return (calculateChecksum() == be16toh(vrrpHeader->checksum));
   90|  2.32k|	}
_ZNK4pcpp9VrrpLayer17getPriorityAsEnumEv:
   93|  2.32k|	{
   94|  2.32k|		switch (getVrrpHeader()->priority)
   95|  2.32k|		{
   96|    137|		case VRRP_PRIO_DEF:
  ------------------
  |  |   15|    137|#define VRRP_PRIO_DEF 100    ///< default priority
  ------------------
  |  Branch (96:3): [True: 137, False: 2.19k]
  ------------------
   97|    137|			return VrrpLayer::VrrpPriority::Default;
   98|       |
   99|    748|		case VRRP_PRIO_STOP:
  ------------------
  |  |   14|    748|#define VRRP_PRIO_STOP 0     ///< priority to stop
  ------------------
  |  Branch (99:3): [True: 748, False: 1.58k]
  ------------------
  100|    748|			return VrrpLayer::VrrpPriority::Stop;
  101|       |
  102|     85|		case VRRP_PRIO_OWNER:
  ------------------
  |  |   16|     85|#define VRRP_PRIO_OWNER 255  ///< priority of the ip owner
  ------------------
  |  Branch (102:3): [True: 85, False: 2.24k]
  ------------------
  103|     85|			return VrrpLayer::VrrpPriority::Owner;
  104|       |
  105|  1.35k|		default:
  ------------------
  |  Branch (105:3): [True: 1.35k, False: 970]
  ------------------
  106|  1.35k|			return VrrpLayer::VrrpPriority::Other;
  107|  2.32k|		}
  108|  2.32k|	}
_ZNK4pcpp9VrrpLayer8toStringEv:
  111|  4.65k|	{
  112|  4.65k|		return "VRRP v" + std::to_string(getVersion()) +
  113|  4.65k|		       " Layer, virtual router ID: " + std::to_string(getVirtualRouterID()) +
  114|  4.65k|		       ", IP address count: " + std::to_string(getIPAddressesCount());
  115|  4.65k|	}
_ZNK4pcpp9VrrpLayer10getVersionEv:
  118|  4.65k|	{
  119|  4.65k|		return getVrrpHeader()->version;
  120|  4.65k|	}
_ZNK4pcpp9VrrpLayer7getTypeEv:
  123|  2.32k|	{
  124|  2.32k|		if (getVrrpHeader()->type == VrrpType_Advertisement)
  ------------------
  |  Branch (124:7): [True: 629, False: 1.70k]
  ------------------
  125|    629|		{
  126|    629|			return VrrpType_Advertisement;
  127|    629|		}
  128|       |
  129|  1.70k|		return VrrpType_Unknown;
  130|  2.32k|	}
_ZNK4pcpp9VrrpLayer18getVirtualRouterIDEv:
  133|  4.65k|	{
  134|  4.65k|		return getVrrpHeader()->vrId;
  135|  4.65k|	}
_ZNK4pcpp9VrrpLayer11getPriorityEv:
  143|  2.32k|	{
  144|  2.32k|		return getVrrpHeader()->priority;
  145|  2.32k|	}
_ZNK4pcpp9VrrpLayer11getChecksumEv:
  153|  2.32k|	{
  154|       |		return be16toh(getVrrpHeader()->checksum);
  155|  2.32k|	}
_ZN4pcpp9VrrpLayer23calculateAndSetChecksumEv:
  158|  2.32k|	{
  159|       |		getVrrpHeader()->checksum = htobe16(calculateChecksum());
  160|  2.32k|	}
_ZNK4pcpp9VrrpLayer19getIPAddressesCountEv:
  163|  4.65k|	{
  164|  4.65k|		return getVrrpHeader()->ipAddrCount;
  165|  4.65k|	}
_ZNK4pcpp9VrrpLayer14getIPAddressesEv:
  168|  2.32k|	{
  169|  2.32k|		std::vector<IPAddress> ipAddressesVec;
  170|  2.32k|		auto ipAddressesPtr = getFirstIPAddressPtr();
  171|  37.1k|		while (ipAddressesPtr != nullptr)
  ------------------
  |  Branch (171:10): [True: 34.7k, False: 2.32k]
  ------------------
  172|  34.7k|		{
  173|  34.7k|			IPAddress ipAddress = getIPAddressFromData(ipAddressesPtr);
  174|  34.7k|			ipAddressesVec.push_back(ipAddress);
  175|  34.7k|			ipAddressesPtr = getNextIPAddressPtr(ipAddressesPtr);
  176|  34.7k|		}
  177|       |
  178|  2.32k|		return ipAddressesVec;
  179|  2.32k|	}
_ZNK4pcpp9VrrpLayer20getFirstIPAddressPtrEv:
  182|  2.32k|	{
  183|  2.32k|		size_t ipAddressLen = getIPAddressLen();
  184|       |
  185|       |		// check if there are virtual IP address at all
  186|  2.32k|		if (getHeaderLen() <= VRRP_PACKET_FIX_LEN + ipAddressLen)
  ------------------
  |  |   18|  2.32k|#define VRRP_PACKET_FIX_LEN 8
  ------------------
  |  Branch (186:7): [True: 673, False: 1.65k]
  ------------------
  187|    673|		{
  188|    673|			return nullptr;
  189|    673|		}
  190|       |
  191|  1.65k|		return (m_Data + VRRP_PACKET_FIX_LEN);
  ------------------
  |  |   18|  1.65k|#define VRRP_PACKET_FIX_LEN 8
  ------------------
  192|  2.32k|	}
_ZNK4pcpp9VrrpLayer19getNextIPAddressPtrEPh:
  195|  34.7k|	{
  196|  34.7k|		if (ipAddressPtr == nullptr)
  ------------------
  |  Branch (196:7): [True: 0, False: 34.7k]
  ------------------
  197|      0|		{
  198|      0|			return nullptr;
  199|      0|		}
  200|       |
  201|  34.7k|		size_t ipAddressLen = getIPAddressLen();
  202|       |
  203|       |		// prev virtual IP address was the last virtual IP address
  204|  34.7k|		if (ipAddressPtr + ipAddressLen - m_Data >= (int)getHeaderLen())
  ------------------
  |  Branch (204:7): [True: 1.65k, False: 33.1k]
  ------------------
  205|  1.65k|		{
  206|  1.65k|			return nullptr;
  207|  1.65k|		}
  208|       |
  209|  33.1k|		return (ipAddressPtr + ipAddressLen);
  210|  34.7k|	}
_ZNK4pcpp9VrrpLayer20getIPAddressFromDataEPh:
  347|  34.7k|	{
  348|  34.7k|		if (getAddressType() == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (348:7): [True: 34.7k, False: 0]
  ------------------
  349|  34.7k|		{
  350|  34.7k|			return IPv4Address(*reinterpret_cast<const uint32_t*>(data));
  351|  34.7k|		}
  352|       |
  353|      0|		return IPv6Address(data);
  354|  34.7k|	}
_ZNK4pcpp9VrrpLayer14getAddressTypeEv:
  373|  74.8k|	{
  374|  74.8k|		return m_AddressType;
  375|  74.8k|	}
_ZNK4pcpp11VrrpV2Layer17getAuthTypeAsEnumEv:
  392|    853|	{
  393|    853|		auto authType = getAuthType();
  394|    853|		if (authType > 3)
  ------------------
  |  Branch (394:7): [True: 765, False: 88]
  ------------------
  395|    765|		{
  396|    765|			return VrrpAuthType::Other;
  397|    765|		}
  398|       |
  399|     88|		return static_cast<VrrpAuthType>(authType);
  400|    853|	}
_ZNK4pcpp11VrrpV2Layer9getAdvIntEv:
  403|    853|	{
  404|    853|		uint16_t authAdvInt = getVrrpHeader()->authTypeAdvInt;
  405|    853|		auto authAdvIntPtr = (vrrpv2_auth_adv*)(&authAdvInt);
  406|    853|		return authAdvIntPtr->advInt;
  407|    853|	}
_ZNK4pcpp11VrrpV2Layer11getAuthTypeEv:
  416|    853|	{
  417|    853|		uint16_t authAdvInt = getVrrpHeader()->authTypeAdvInt;
  418|    853|		auto* authAdvIntPtr = (vrrpv2_auth_adv*)(&authAdvInt);
  419|    853|		return authAdvIntPtr->authType;
  420|    853|	}
_ZNK4pcpp11VrrpV2Layer17calculateChecksumEv:
  429|  1.70k|	{
  430|  1.70k|		if ((getData() == nullptr) || (getDataLen() == 0))
  ------------------
  |  Branch (430:7): [True: 0, False: 1.70k]
  |  Branch (430:33): [True: 0, False: 1.70k]
  ------------------
  431|      0|		{
  432|      0|			return 0;
  433|      0|		}
  434|       |
  435|  1.70k|		auto vrrpHeader = getVrrpHeader();
  436|  1.70k|		ScalarBuffer<uint16_t> buffer = {};
  437|  1.70k|		buffer.buffer = reinterpret_cast<uint16_t*>(vrrpHeader);
  438|  1.70k|		buffer.len = getHeaderLen();
  439|       |
  440|  1.70k|		uint16_t currChecksumValue = vrrpHeader->checksum;
  441|  1.70k|		vrrpHeader->checksum = 0;
  442|  1.70k|		uint16_t checksum = computeChecksum(&buffer, 1);
  443|  1.70k|		vrrpHeader->checksum = currChecksumValue;
  444|       |
  445|  1.70k|		return checksum;
  446|  1.70k|	}
_ZNK4pcpp11VrrpV3Layer12getMaxAdvIntEv:
  459|  1.47k|	{
  460|  1.47k|		uint16_t authAdvInt = getVrrpHeader()->authTypeAdvInt;
  461|  1.47k|		auto rsvdAdv = (vrrpv3_rsvd_adv*)(&authAdvInt);
  462|       |		return be16toh(rsvdAdv->maxAdvInt);
  463|  1.47k|	}
_ZNK4pcpp11VrrpV3Layer17calculateChecksumEv:
  476|  2.95k|	{
  477|  2.95k|		auto* ipLayer = getAttachedPacket()->getLayerOfType<pcpp::IPLayer>();
  478|  2.95k|		if (ipLayer == nullptr)
  ------------------
  |  Branch (478:7): [True: 0, False: 2.95k]
  ------------------
  479|      0|		{
  480|      0|			PCPP_LOG_ERROR("Calculate checksum failed, for can not get IPLayer" << "");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleVrrpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleVrrpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  481|      0|			return 0;
  482|      0|		}
  483|       |
  484|  2.95k|		auto vrrpHeader = getVrrpHeader();
  485|  2.95k|		uint16_t currChecksumValue = vrrpHeader->checksum;
  486|  2.95k|		vrrpHeader->checksum = 0;
  487|       |
  488|  2.95k|		pcpp::IPAddress srcIPAddr = ipLayer->getSrcIPAddress();
  489|  2.95k|		pcpp::IPAddress dstIPAddr = ipLayer->getDstIPAddress();
  490|  2.95k|		uint16_t checksum;
  491|  2.95k|		if (getAddressType() == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (491:7): [True: 1.60k, False: 1.34k]
  ------------------
  492|  1.60k|		{
  493|  1.60k|			checksum = computePseudoHdrChecksum((uint8_t*)vrrpHeader, getDataLen(), IPAddress::IPv4AddressType,
  494|  1.60k|			                                    PACKETPP_IPPROTO_VRRP, srcIPAddr, dstIPAddr);
  495|  1.60k|		}
  496|  1.34k|		else
  497|  1.34k|		{
  498|  1.34k|			checksum = computePseudoHdrChecksum((uint8_t*)vrrpHeader, getDataLen(), IPAddress::IPv6AddressType,
  499|  1.34k|			                                    PACKETPP_IPPROTO_VRRP, srcIPAddr, dstIPAddr);
  500|  1.34k|		}
  501|       |
  502|  2.95k|		vrrpHeader->checksum = currChecksumValue;
  503|       |
  504|  2.95k|		return checksum;
  505|  2.95k|	}

_ZNK4pcpp10VxlanLayer8toStringEv:
   45|      6|	{
   46|      6|		return "VXLAN Layer";
   47|      6|	}
_ZN4pcpp10VxlanLayer14parseNextLayerEv:
   50|     24|	{
   51|     24|		if (m_DataLen <= sizeof(vxlan_header))
  ------------------
  |  Branch (51:7): [True: 0, False: 24]
  ------------------
   52|      0|			return;
   53|       |
   54|     24|		auto payload = m_Data + sizeof(vxlan_header);
   55|     24|		auto payloadLen = m_DataLen - sizeof(vxlan_header);
   56|     24|		constructNextLayer<EthLayer>(payload, payloadLen);
   57|     24|	}

_ZNK4pcpp14WakeOnLanLayer13getTargetAddrEv:
   46|    310|	{
   47|    310|		return pcpp::MacAddress(getWakeOnLanHeader()->addrBody);
   48|    310|	}
_ZN4pcpp14WakeOnLanLayer11isDataValidEPKhm:
  114|  2.07k|	{
  115|  2.07k|		if (data && dataSize >= sizeof(wol_header))
  ------------------
  |  Branch (115:7): [True: 2.07k, False: 0]
  |  Branch (115:15): [True: 1.86k, False: 206]
  ------------------
  116|  1.86k|		{
  117|       |			// It should repeat same MAC address at the payload 16 times
  118|  1.86k|			pcpp::MacAddress bufAddr(&data[6]);
  119|  18.6k|			for (size_t idx = 1; idx < 16; ++idx)
  ------------------
  |  Branch (119:25): [True: 17.8k, False: 775]
  ------------------
  120|  17.8k|			{
  121|  17.8k|				if (bufAddr != pcpp::MacAddress(&data[6 + idx * 6]))
  ------------------
  |  Branch (121:9): [True: 1.09k, False: 16.7k]
  ------------------
  122|  1.09k|					return false;
  123|  17.8k|			}
  124|    775|			return true;
  125|  1.86k|		}
  126|    206|		return false;
  127|  2.07k|	}
_ZNK4pcpp14WakeOnLanLayer8toStringEv:
  130|    310|	{
  131|    310|		return "Wake On LAN Layer, target address: " + getTargetAddr().toString();
  132|    310|	}

_ZN4pcpp14WireGuardLayer19parseWireGuardLayerEPhmPNS_5LayerEPNS_6PacketE:
   11|  1.82k|	{
   12|  1.82k|		if (dataLen < sizeof(WireGuardLayer::wg_common_header))
  ------------------
  |  Branch (12:7): [True: 0, False: 1.82k]
  ------------------
   13|      0|			return nullptr;
   14|  1.82k|		wg_common_header* wgHeader = reinterpret_cast<wg_common_header*>(data);
   15|       |
   16|  1.82k|		switch (wgHeader->messageType)
   17|  1.82k|		{
   18|    355|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeInitiation):
  ------------------
  |  Branch (18:3): [True: 355, False: 1.46k]
  ------------------
   19|    355|			return new WireGuardHandshakeInitiationLayer(data, dataLen, prevLayer, packet);
   20|    205|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeResponse):
  ------------------
  |  Branch (20:3): [True: 205, False: 1.61k]
  ------------------
   21|    205|			return new WireGuardHandshakeResponseLayer(data, dataLen, prevLayer, packet);
   22|     15|		case static_cast<uint8_t>(WireGuardMessageType::CookieReply):
  ------------------
  |  Branch (22:3): [True: 15, False: 1.80k]
  ------------------
   23|     15|			return new WireGuardCookieReplyLayer(data, dataLen, prevLayer, packet);
   24|  1.24k|		case static_cast<uint8_t>(WireGuardMessageType::TransportData):
  ------------------
  |  Branch (24:3): [True: 1.24k, False: 575]
  ------------------
   25|  1.24k|			return new WireGuardTransportDataLayer(data, dataLen, prevLayer, packet);
   26|      0|		default:
  ------------------
  |  Branch (26:3): [True: 0, False: 1.82k]
  ------------------
   27|      0|			return nullptr;
   28|  1.82k|		}
   29|  1.82k|	}
_ZNK4pcpp14WireGuardLayer22getMessageTypeAsStringEv:
   32|    728|	{
   33|    728|		uint32_t messageType = getMessageType();
   34|    728|		switch (messageType)
   35|    728|		{
   36|    142|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeInitiation):
  ------------------
  |  Branch (36:3): [True: 142, False: 586]
  ------------------
   37|    142|			return "Handshake Initiation";
   38|     82|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeResponse):
  ------------------
  |  Branch (38:3): [True: 82, False: 646]
  ------------------
   39|     82|			return "Handshake Response";
   40|      6|		case static_cast<uint8_t>(WireGuardMessageType::CookieReply):
  ------------------
  |  Branch (40:3): [True: 6, False: 722]
  ------------------
   41|      6|			return "Cookie Reply";
   42|    498|		case static_cast<uint8_t>(WireGuardMessageType::TransportData):
  ------------------
  |  Branch (42:3): [True: 498, False: 230]
  ------------------
   43|    498|			return "Transport Data";
   44|      0|		default:
  ------------------
  |  Branch (44:3): [True: 0, False: 728]
  ------------------
   45|      0|			return "Unknown";
   46|    728|		}
   47|    728|	}
_ZNK4pcpp14WireGuardLayer8toStringEv:
   50|    728|	{
   51|    728|		return "WireGuard Layer, " + getMessageTypeAsString() + " message";
   52|    728|	}
_ZNK4pcpp14WireGuardLayer12getHeaderLenEv:
   55|    364|	{
   56|    364|		return m_DataLen;
   57|    364|	}
_ZNK4pcpp14WireGuardLayer14getMessageTypeEv:
   60|    728|	{
   61|    728|		return getBasicHeader()->messageType;
   62|    728|	}
_ZN4pcpp14WireGuardLayer11isDataValidEPKhm:
   78|  1.82k|	{
   79|  1.82k|		if (dataLen < sizeof(WireGuardLayer::wg_common_header))
  ------------------
  |  Branch (79:7): [True: 0, False: 1.82k]
  ------------------
   80|      0|			return false;
   81|       |
   82|  1.82k|		uint8_t messageType = data[0];
   83|  1.82k|		return messageType >= static_cast<uint8_t>(WireGuardLayer::WireGuardMessageType::HandshakeInitiation) &&
  ------------------
  |  Branch (83:10): [True: 1.82k, False: 0]
  ------------------
   84|  1.82k|		       messageType <= static_cast<uint8_t>(WireGuardLayer::WireGuardMessageType::TransportData);
  ------------------
  |  Branch (84:10): [True: 1.82k, False: 0]
  ------------------
   85|  1.82k|	}

_ZN4pcpp17IFilterableDeviceC2Ev:
   47|  3.41k|		IFilterableDevice() = default;
_ZN4pcpp7IDeviceC2Ev:
   23|  3.41k|		IDevice() = default;
_ZN4pcpp7IDeviceD2Ev:
   26|  3.41k|		virtual ~IDevice() = default;

_ZN4pcpp23IPcapStatisticsProviderD2Ev:
   27|  3.41k|		virtual ~IPcapStatisticsProvider() = default;

_ZN4pcpp11IFileDevice21reportPacketProcessedEm:
   66|   175k|		{
   67|   175k|			m_NumOfPacketsProcessed += numPackets;
   68|   175k|		}
_ZN4pcpp22PcapNgFileReaderDeviceD2Ev:
  363|  3.41k|		{
  364|  3.41k|			PcapNgFileReaderDevice::close();
  365|  3.41k|		}

_ZN4pcpp16BpfFilterWrapperC2Ev:
   92|  3.41k|		BpfFilterWrapper() = default;

_ZN4pcpp11IFileDeviceC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  493|  3.41k|	{
  494|  3.41k|		m_FileName = fileName;
  495|  3.41k|	}
_ZNK4pcpp11IFileDevice13getStatisticsERNS_9PcapStatsE:
  503|  3.41k|	{
  504|  3.41k|		PCPP_LOG_DEBUG("Statistics requested for file device for filename '" << m_FileName << "'");
  ------------------
  |  |  425|  3.41k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  3.41k|	do                                                                                                                 \
  |  |  |  |  413|  3.41k|	{                                                                                                                  \
  |  |  |  |  414|  3.41k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.41k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|  3.41k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 3.41k]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.41k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  3.41k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.41k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  505|  3.41k|		stats.packetsRecv = m_NumOfPacketsProcessed;
  506|  3.41k|		stats.packetsDrop = m_NumOfPacketsDropped;
  507|  3.41k|		stats.packetsDropByInterface = 0;
  508|  3.41k|	}
_ZN4pcpp11IFileDevice22resetStatisticCountersEv:
  511|  3.41k|	{
  512|  3.41k|		m_NumOfPacketsProcessed = 0;
  513|  3.41k|		m_NumOfPacketsDropped = 0;
  514|  3.41k|	}
_ZN4pcpp17IFileReaderDeviceC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  530|  3.41k|	IFileReaderDevice::IFileReaderDevice(const std::string& fileName) : IFileDevice(fileName)
  531|  3.41k|	{}
_ZN4pcpp17IFileReaderDevice9getReaderERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  534|  3.41k|	{
  535|  3.41k|		const auto extensionPos = fileName.find_last_of('.');
  536|  3.41k|		const auto fileExtension = extensionPos != std::string::npos ? fileName.substr(extensionPos) : "";
  ------------------
  |  Branch (536:30): [True: 3.41k, False: 0]
  ------------------
  537|       |
  538|  3.41k|		if (fileExtension == ".pcapng" || fileExtension == ".zstd" || fileExtension == ".zst")
  ------------------
  |  Branch (538:7): [True: 3.41k, False: 0]
  |  Branch (538:37): [True: 0, False: 0]
  |  Branch (538:65): [True: 0, False: 0]
  ------------------
  539|  3.41k|			return new PcapNgFileReaderDevice(fileName);
  540|      0|		else if (fileExtension == ".snoop")
  ------------------
  |  Branch (540:12): [True: 0, False: 0]
  ------------------
  541|      0|			return new SnoopFileReaderDevice(fileName);
  542|       |
  543|      0|		return new PcapFileReaderDevice(fileName);
  544|  3.41k|	}
_ZN4pcpp17IFileReaderDevice14getNextPacketsERNS_13PointerVectorINS_9RawPacketENSt3__114default_deleteIS2_EEEEi:
  605|  3.41k|	{
  606|  3.41k|		int numOfPacketsRead = 0;
  607|       |
  608|  6.81k|		for (; numOfPacketsToRead < 0 || numOfPacketsRead < numOfPacketsToRead; numOfPacketsRead++)
  ------------------
  |  Branch (608:10): [True: 0, False: 6.81k]
  |  Branch (608:36): [True: 3.41k, False: 3.39k]
  ------------------
  609|  3.41k|		{
  610|  3.41k|			RawPacket* newPacket = new RawPacket();
  611|  3.41k|			bool packetRead = getNextPacket(*newPacket);
  612|  3.41k|			if (packetRead)
  ------------------
  |  Branch (612:8): [True: 3.39k, False: 17]
  ------------------
  613|  3.39k|			{
  614|  3.39k|				packetVec.pushBack(newPacket);
  615|  3.39k|			}
  616|     17|			else
  617|     17|			{
  618|     17|				delete newPacket;
  619|     17|				break;
  620|     17|			}
  621|  3.41k|		}
  622|       |
  623|  3.41k|		return numOfPacketsRead;
  624|  3.41k|	}
_ZN4pcpp22PcapNgFileReaderDeviceC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1152|  3.41k|	PcapNgFileReaderDevice::PcapNgFileReaderDevice(const std::string& fileName) : IFileReaderDevice(fileName)
 1153|  3.41k|	{
 1154|  3.41k|		m_LightPcapNg = nullptr;
 1155|  3.41k|	}
_ZN4pcpp22PcapNgFileReaderDevice4openEv:
 1158|  3.41k|	{
 1159|  3.41k|		resetStatisticCounters();
 1160|       |
 1161|  3.41k|		if (m_LightPcapNg != nullptr)
  ------------------
  |  Branch (1161:7): [True: 0, False: 3.41k]
  ------------------
 1162|      0|		{
 1163|      0|			PCPP_LOG_DEBUG("pcapng descriptor already opened. Nothing to do");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1164|      0|			return true;
 1165|      0|		}
 1166|       |
 1167|  3.41k|		m_LightPcapNg = toLightPcapNgHandle(light_pcapng_open_read(m_FileName.c_str(), LIGHT_FALSE));
 1168|  3.41k|		if (m_LightPcapNg == nullptr)
  ------------------
  |  Branch (1168:7): [True: 0, False: 3.41k]
  ------------------
 1169|      0|		{
 1170|      0|			PCPP_LOG_ERROR("Cannot open pcapng reader device for filename '" << m_FileName << "'");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1171|      0|			return false;
 1172|      0|		}
 1173|       |
 1174|  3.41k|		PCPP_LOG_DEBUG("Successfully opened pcapng reader device for filename '" << m_FileName << "'");
  ------------------
  |  |  425|  3.41k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  3.41k|	do                                                                                                                 \
  |  |  |  |  413|  3.41k|	{                                                                                                                  \
  |  |  |  |  414|  3.41k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.41k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|  3.41k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 3.41k]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.41k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  3.41k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.41k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1175|  3.41k|		return true;
 1176|  3.41k|	}
_ZN4pcpp22PcapNgFileReaderDevice13getNextPacketERNS_9RawPacketE:
 1184|   178k|	{
 1185|   178k|		return getNextPacketInternal(rawPacket, nullptr);
 1186|   178k|	}
_ZN4pcpp22PcapNgFileReaderDevice21getNextPacketInternalERNS_9RawPacketEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
 1189|   178k|	{
 1190|   178k|		if (m_LightPcapNg == nullptr)
  ------------------
  |  Branch (1190:7): [True: 0, False: 178k]
  ------------------
 1191|      0|		{
 1192|      0|			PCPP_LOG_ERROR("Pcapng file device '" << m_FileName << "' not opened");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1193|      0|			return false;
 1194|      0|		}
 1195|       |
 1196|   178k|		light_packet_header pktHeader;
 1197|   178k|		const uint8_t* pktData = nullptr;
 1198|       |
 1199|   178k|		if (!light_get_next_packet(toLightPcapNgT(m_LightPcapNg), &pktHeader, &pktData))
  ------------------
  |  Branch (1199:7): [True: 3.41k, False: 175k]
  ------------------
 1200|  3.41k|		{
 1201|  3.41k|			PCPP_LOG_DEBUG("Packet could not be read. Probably end-of-file");
  ------------------
  |  |  425|  3.41k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  3.41k|	do                                                                                                                 \
  |  |  |  |  413|  3.41k|	{                                                                                                                  \
  |  |  |  |  414|  3.41k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.41k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|  3.41k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 3.41k]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.41k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  3.41k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.41k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1202|  3.41k|			return false;
 1203|  3.41k|		}
 1204|       |
 1205|   175k|		while (!m_BpfWrapper.matches(pktData, pktHeader.captured_length, pktHeader.timestamp, pktHeader.data_link))
  ------------------
  |  Branch (1205:10): [True: 0, False: 175k]
  ------------------
 1206|      0|		{
 1207|      0|			if (!light_get_next_packet(toLightPcapNgT(m_LightPcapNg), &pktHeader, &pktData))
  ------------------
  |  Branch (1207:8): [True: 0, False: 0]
  ------------------
 1208|      0|			{
 1209|      0|				PCPP_LOG_DEBUG("Packet could not be read. Probably end-of-file");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1210|      0|				return false;
 1211|      0|			}
 1212|      0|		}
 1213|       |
 1214|   175k|		uint8_t* myPacketData = new uint8_t[pktHeader.captured_length];
 1215|   175k|		memcpy(myPacketData, pktData, pktHeader.captured_length);
 1216|   175k|		const LinkLayerType linkType = static_cast<LinkLayerType>(pktHeader.data_link);
 1217|   175k|		if (linkType == LinkLayerType::LINKTYPE_INVALID)
  ------------------
  |  Branch (1217:7): [True: 1.24k, False: 174k]
  ------------------
 1218|  1.24k|		{
 1219|  1.24k|			PCPP_LOG_ERROR("Link layer type of raw packet could not be determined");
  ------------------
  |  |  443|  1.24k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  1.24k|	do                                                                                                                 \
  |  |  |  |  413|  1.24k|	{                                                                                                                  \
  |  |  |  |  414|  1.24k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.24k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|  1.24k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.24k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.24k|		{                                                                                                              \
  |  |  |  |  417|  1.24k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.24k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|  1.24k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.24k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.24k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.24k|		}                                                                                                              \
  |  |  |  |  422|  1.24k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.24k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1220|  1.24k|		}
 1221|       |
 1222|   175k|		if (!rawPacket.setRawData(myPacketData, pktHeader.captured_length, true, pktHeader.timestamp, linkType,
  ------------------
  |  Branch (1222:7): [True: 0, False: 175k]
  ------------------
 1223|   175k|		                          pktHeader.original_length))
 1224|      0|		{
 1225|      0|			PCPP_LOG_ERROR("Couldn't set data to raw packet");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1226|      0|			return false;
 1227|      0|		}
 1228|       |
 1229|   175k|		if (packetComment != nullptr)
  ------------------
  |  Branch (1229:7): [True: 0, False: 175k]
  ------------------
 1230|      0|		{
 1231|      0|			if (pktHeader.comment != nullptr && pktHeader.comment_length > 0)
  ------------------
  |  Branch (1231:8): [True: 0, False: 0]
  |  Branch (1231:40): [True: 0, False: 0]
  ------------------
 1232|      0|			{
 1233|      0|				packetComment->assign(pktHeader.comment, pktHeader.comment_length);
 1234|      0|			}
 1235|      0|			else
 1236|      0|			{
 1237|      0|				packetComment->clear();
 1238|      0|			}
 1239|      0|		}
 1240|       |
 1241|   175k|		reportPacketProcessed();
 1242|   175k|		return true;
 1243|   175k|	}
_ZN4pcpp22PcapNgFileReaderDevice5closeEv:
 1246|  6.81k|	{
 1247|  6.81k|		if (m_LightPcapNg == nullptr)
  ------------------
  |  Branch (1247:7): [True: 3.39k, False: 3.41k]
  ------------------
 1248|  3.39k|			return;
 1249|       |
 1250|  3.41k|		light_pcapng_close(toLightPcapNgT(m_LightPcapNg));
 1251|  3.41k|		m_LightPcapNg = nullptr;
 1252|       |
 1253|  3.41k|		PCPP_LOG_DEBUG("File reader closed for file '" << m_FileName << "'");
  ------------------
  |  |  425|  3.41k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  3.41k|	do                                                                                                                 \
  |  |  |  |  413|  3.41k|	{                                                                                                                  \
  |  |  |  |  414|  3.41k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.41k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|  3.41k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 3.41k]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.41k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  3.41k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.41k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1254|  3.41k|	}
_ZNK4pcpp22PcapNgFileReaderDevice5getOSEv:
 1257|  3.41k|	{
 1258|  3.41k|		if (m_LightPcapNg == nullptr)
  ------------------
  |  Branch (1258:7): [True: 0, False: 3.41k]
  ------------------
 1259|      0|		{
 1260|      0|			PCPP_LOG_ERROR("Pcapng file device '" << m_FileName << "' not opened");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1261|      0|			return {};
 1262|      0|		}
 1263|       |
 1264|  3.41k|		light_pcapng_file_info* fileInfo = light_pcang_get_file_info(toLightPcapNgT(m_LightPcapNg));
 1265|  3.41k|		if (fileInfo == nullptr || fileInfo->os_desc == nullptr || fileInfo->os_desc_size == 0)
  ------------------
  |  Branch (1265:7): [True: 6, False: 3.41k]
  |  Branch (1265:30): [True: 1.16k, False: 2.24k]
  |  Branch (1265:62): [True: 0, False: 2.24k]
  ------------------
 1266|  1.17k|			return {};
 1267|       |
 1268|  2.24k|		return std::string(fileInfo->os_desc, fileInfo->os_desc_size);
 1269|  3.41k|	}
_ZNK4pcpp22PcapNgFileReaderDevice11getHardwareEv:
 1272|  3.41k|	{
 1273|  3.41k|		if (m_LightPcapNg == nullptr)
  ------------------
  |  Branch (1273:7): [True: 0, False: 3.41k]
  ------------------
 1274|      0|		{
 1275|      0|			PCPP_LOG_ERROR("Pcapng file device '" << m_FileName << "' not opened");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1276|      0|			return {};
 1277|      0|		}
 1278|       |
 1279|  3.41k|		light_pcapng_file_info* fileInfo = light_pcang_get_file_info(toLightPcapNgT(m_LightPcapNg));
 1280|  3.41k|		if (fileInfo == nullptr || fileInfo->hardware_desc == nullptr || fileInfo->hardware_desc_size == 0)
  ------------------
  |  Branch (1280:7): [True: 6, False: 3.41k]
  |  Branch (1280:30): [True: 3.19k, False: 214]
  |  Branch (1280:68): [True: 0, False: 214]
  ------------------
 1281|  3.20k|			return {};
 1282|       |
 1283|    214|		return std::string(fileInfo->hardware_desc, fileInfo->hardware_desc_size);
 1284|  3.41k|	}
_ZNK4pcpp22PcapNgFileReaderDevice21getCaptureApplicationEv:
 1287|  3.41k|	{
 1288|  3.41k|		if (m_LightPcapNg == nullptr)
  ------------------
  |  Branch (1288:7): [True: 0, False: 3.41k]
  ------------------
 1289|      0|		{
 1290|      0|			PCPP_LOG_ERROR("Pcapng file device '" << m_FileName << "' not opened");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1291|      0|			return {};
 1292|      0|		}
 1293|       |
 1294|  3.41k|		light_pcapng_file_info* fileInfo = light_pcang_get_file_info(toLightPcapNgT(m_LightPcapNg));
 1295|  3.41k|		if (fileInfo == nullptr || fileInfo->user_app_desc == nullptr || fileInfo->user_app_desc_size == 0)
  ------------------
  |  Branch (1295:7): [True: 6, False: 3.41k]
  |  Branch (1295:30): [True: 695, False: 2.71k]
  |  Branch (1295:68): [True: 0, False: 2.71k]
  ------------------
 1296|    701|			return {};
 1297|       |
 1298|  2.71k|		return std::string(fileInfo->user_app_desc, fileInfo->user_app_desc_size);
 1299|  3.41k|	}
_ZNK4pcpp22PcapNgFileReaderDevice21getCaptureFileCommentEv:
 1302|  3.41k|	{
 1303|  3.41k|		if (m_LightPcapNg == nullptr)
  ------------------
  |  Branch (1303:7): [True: 0, False: 3.41k]
  ------------------
 1304|      0|		{
 1305|      0|			PCPP_LOG_ERROR("Pcapng file device '" << m_FileName << "' not opened");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    2|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1306|      0|			return {};
 1307|      0|		}
 1308|       |
 1309|  3.41k|		light_pcapng_file_info* fileInfo = light_pcang_get_file_info(toLightPcapNgT(m_LightPcapNg));
 1310|  3.41k|		if (fileInfo == nullptr || fileInfo->file_comment == nullptr || fileInfo->file_comment_size == 0)
  ------------------
  |  Branch (1310:7): [True: 6, False: 3.41k]
  |  Branch (1310:30): [True: 3.05k, False: 359]
  |  Branch (1310:67): [True: 0, False: 359]
  ------------------
 1311|  3.05k|			return {};
 1312|       |
 1313|    359|		return std::string(fileInfo->file_comment, fileInfo->file_comment_size);
 1314|  3.41k|	}
PcapFileDevice.cpp:_ZN4pcpp12_GLOBAL__N_119toLightPcapNgHandleEP15_light_pcapng_t:
   34|  3.41k|		{
   35|  3.41k|			return reinterpret_cast<internal::LightPcapNgHandle*>(pcapngHandle);
   36|  3.41k|		}
PcapFileDevice.cpp:_ZN4pcpp12_GLOBAL__N_114toLightPcapNgTEPNS_8internal17LightPcapNgHandleE:
   42|   195k|		{
   43|   195k|			return reinterpret_cast<light_pcapng_t*>(pcapngHandle);
   44|   195k|		}

_ZNK4pcpp16BpfFilterWrapper7matchesEPKhj8timespect:
  104|   175k|	{
  105|   175k|		if (m_FilterStr.empty())
  ------------------
  |  Branch (105:7): [True: 175k, False: 0]
  ------------------
  106|   175k|			return true;
  107|       |
  108|      0|#ifdef USE_PCAP
  109|       |		// Handle uncompiled program or link type mismatch
  110|      0|		if (m_CachedProgram == nullptr || linkType != static_cast<uint16_t>(m_CachedProgramLinkType))
  ------------------
  |  Branch (110:7): [True: 0, False: 0]
  |  Branch (110:37): [True: 0, False: 0]
  ------------------
  111|      0|		{
  112|      0|			auto newProgram = compileFilter(m_FilterStr, static_cast<LinkLayerType>(linkType));
  113|      0|			if (newProgram == nullptr)
  ------------------
  |  Branch (113:8): [True: 0, False: 0]
  ------------------
  114|      0|			{
  115|      0|				PCPP_LOG_ERROR("Couldn't compile BPF filter: '" << m_FilterStr << "' for link type: " << linkType);
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleLiveDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleLiveDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  116|      0|				return false;
  117|      0|			}
  118|      0|			m_CachedProgram = std::move(newProgram);
  119|      0|			m_CachedProgramLinkType = static_cast<LinkLayerType>(linkType);
  120|      0|		}
  121|       |
  122|       |		// Test the packet against the filter
  123|      0|		pcap_pkthdr pktHdr;
  124|      0|		pktHdr.caplen = packetDataLength;
  125|      0|		pktHdr.len = packetDataLength;
  126|      0|		pktHdr.ts = internal::toTimeval(timestamp);
  127|      0|		return (pcap_offline_filter(m_CachedProgram.get(), &pktHdr, packetData) != 0);
  128|       |#else
  129|       |		PCPP_LOG_ERROR("pcap is not available");
  130|       |		return false;
  131|       |#endif
  132|      0|	}

FuzzTarget.cpp:_ZL18dumpDataToPcapFilePKhmPKc:
    8|  3.41k|{
    9|  3.41k|	FILE* fd;
   10|  3.41k|	int written = 0;
   11|       |
   12|  3.41k|	fd = fopen(path, "wb");
   13|  3.41k|	if (fd == nullptr)
  ------------------
  |  Branch (13:6): [True: 0, False: 3.41k]
  ------------------
   14|      0|	{
   15|      0|		std::cerr << "Error opening pcap file for writing\n";
   16|      0|		return -1;
   17|      0|	}
   18|       |
   19|  3.41k|	written = fwrite(data, 1, size, fd);
   20|  3.41k|	if (static_cast<size_t>(written) != size)
  ------------------
  |  Branch (20:6): [True: 0, False: 3.41k]
  ------------------
   21|      0|	{
   22|      0|		std::cerr << "Error writing pcap file\n";
   23|      0|		fclose(fd);
   24|      0|		return -1;
   25|      0|	}
   26|       |
   27|  3.41k|	fclose(fd);
   28|  3.41k|	return 0;
   29|  3.41k|}

LLVMFuzzerTestOneInput:
   11|  3.41k|{
   12|  3.41k|	if (tmpName.empty())
  ------------------
  |  Branch (12:6): [True: 1, False: 3.41k]
  ------------------
   13|      1|		tmpName = tmpnam(nullptr);
   14|       |
   15|  3.41k|	if (tmpFile.empty())
  ------------------
  |  Branch (15:6): [True: 1, False: 3.41k]
  ------------------
   16|      1|		tmpFile = tmpName + FILE_EXT;
   17|       |
   18|  3.41k|	if (dumpDataToPcapFile(data, size, tmpFile.c_str()) != 0)
  ------------------
  |  Branch (18:6): [True: 0, False: 3.41k]
  ------------------
   19|      0|	{
   20|      0|		std::cerr << "Can't Dump buffer to the '" << tmpFile << "' file!!!!\n";
   21|      0|		return -1;
   22|      0|	}
   23|       |
   24|  3.41k|	pcpp::Logger::getInstance().suppressLogs();
   25|       |
   26|  3.41k|	std::unique_ptr<pcpp::IFileReaderDevice> reader(pcpp::IFileReaderDevice::getReader(tmpFile));
   27|  3.41k|	if (!reader->open())
  ------------------
  |  Branch (27:6): [True: 0, False: 3.41k]
  ------------------
   28|      0|	{
   29|      0|		std::cerr << "Error opening the '" << tmpFile << "' file\n";
   30|      0|		return -1;
   31|      0|	}
   32|       |
   33|  3.41k|	pcpp::PcapStats stats;
   34|  3.41k|	reader->getStatistics(stats);
   35|  3.41k|	std::cout << "Read " << stats.packetsRecv << " packets successfully and " << stats.packetsDrop
   36|  3.41k|	          << " packets could not be read" << std::endl;
   37|       |
   38|  3.41k|	if (auto ngReader = dynamic_cast<pcpp::PcapNgFileReaderDevice*>(reader.get()))
  ------------------
  |  Branch (38:11): [True: 3.41k, False: 0]
  ------------------
   39|  3.41k|	{
   40|  3.41k|		std::cout << "OS is '" << ngReader->getOS() << "'; Hardware is '" << ngReader->getHardware() << "'"
   41|  3.41k|		          << "'; CaptureApplication is '" << ngReader->getCaptureApplication() << "'; CaptureFileComment is '"
   42|  3.41k|		          << ngReader->getCaptureFileComment() << "'" << std::endl;
   43|  3.41k|	}
   44|       |
   45|  3.41k|	pcpp::RawPacketVector packets;
   46|  3.41k|	if (reader->getNextPackets(packets, 1) != 1)
  ------------------
  |  Branch (46:6): [True: 17, False: 3.39k]
  ------------------
   47|     17|	{
   48|     17|		std::cerr << "Couldn't read the first packet in the file\n";
   49|     17|		return 0;
   50|     17|	}
   51|       |
   52|  3.39k|	pcpp::RawPacket& rawPacket = *packets.front();
   53|  3.39k|	do
   54|   175k|	{
   55|       |		// go deeper only for .pcap and .pcapng format
   56|       |		// for .snoop we are only fuzzing the reader
   57|   175k|		if (0 == strcmp(FILE_EXT, ".pcap") || 0 == strcmp(FILE_EXT, ".pcapng"))
  ------------------
  |  Branch (57:7): [Folded, False: 0]
  |  Branch (57:41): [True: 0, Folded]
  ------------------
   58|   175k|		{
   59|   175k|			pcpp::Packet parsedPacket(&rawPacket);
   60|   175k|			parsedPacket.toString();
   61|   175k|			auto layer = parsedPacket.getFirstLayer();
   62|   953k|			while (layer != nullptr)
  ------------------
  |  Branch (62:11): [True: 778k, False: 175k]
  ------------------
   63|   778k|			{
   64|   778k|				std::cout << layer->toString() << std::endl;
   65|   778k|				layer->getHeaderLen();
   66|   778k|				readParsedPacket(parsedPacket, layer);
   67|   778k|				layer = layer->getNextLayer();
   68|   778k|			}
   69|   175k|			parsedPacket.computeCalculateFields();
   70|   175k|		}
   71|   175k|	} while (reader->getNextPacket(rawPacket));
  ------------------
  |  Branch (71:11): [True: 171k, False: 3.39k]
  ------------------
   72|       |
   73|  3.39k|	reader->close();
   74|  3.39k|	return 0;
   75|  3.41k|}

FuzzTarget.cpp:_ZL16readParsedPacketN4pcpp6PacketEPNS_5LayerE:
   28|   778k|{
   29|   778k|	if (parsedPacket.isPacketOfType(pcpp::Telnet))
  ------------------
  |  Branch (29:6): [True: 41.6k, False: 736k]
  ------------------
   30|  41.6k|	{
   31|  41.6k|		if (auto telnetLayer = dynamic_cast<pcpp::TelnetLayer*>(layer))
  ------------------
  |  Branch (31:12): [True: 8.32k, False: 33.2k]
  ------------------
   32|  8.32k|		{
   33|  8.32k|			telnetLayer->getFirstCommand();
   34|  8.32k|			telnetLayer->getTotalNumberOfCommands();
   35|       |
   36|  8.32k|			pcpp::TelnetLayer::TelnetCommand commandVal;
   37|  8.32k|			do
   38|  34.6k|			{
   39|  34.6k|				commandVal = telnetLayer->getNextCommand();
   40|  34.6k|				std::cout << "Telnet command is '" << telnetLayer->getTelnetCommandAsString(commandVal) << "'"
   41|  34.6k|				          << std::endl;
   42|  34.6k|				pcpp::TelnetLayer::TelnetOption option = telnetLayer->getOption();
   43|  34.6k|				std::cout << "Telnet option is '" << telnetLayer->getTelnetOptionAsString(option) << "'" << std::endl;
   44|       |
   45|  34.6k|				telnetLayer->getDataAsString(true);
   46|  34.6k|				telnetLayer->getNumberOfCommands(commandVal);
   47|  34.6k|				telnetLayer->getOption(commandVal);
   48|  34.6k|				size_t length = 0;
   49|  34.6k|				telnetLayer->getOptionData(length);
   50|  34.6k|				telnetLayer->getOptionData(commandVal, length);
   51|  34.6k|			} while (commandVal != pcpp::TelnetLayer::TelnetCommand::TelnetCommandEndOfPacket);
  ------------------
  |  Branch (51:13): [True: 26.3k, False: 8.32k]
  ------------------
   52|  8.32k|		}
   53|  41.6k|	}
   54|   778k|	if (parsedPacket.isPacketOfType(pcpp::ARP))
  ------------------
  |  Branch (54:6): [True: 3.44k, False: 774k]
  ------------------
   55|  3.44k|	{
   56|  3.44k|		if (auto arpLayer = dynamic_cast<pcpp::ArpLayer*>(layer))
  ------------------
  |  Branch (56:12): [True: 1.33k, False: 2.11k]
  ------------------
   57|  1.33k|		{
   58|  1.33k|			arpLayer->isReply();
   59|  1.33k|			arpLayer->isRequest();
   60|  1.33k|		}
   61|  3.44k|	}
   62|   778k|	if (parsedPacket.isPacketOfType(pcpp::SomeIP))
  ------------------
  |  Branch (62:6): [True: 26.3k, False: 751k]
  ------------------
   63|  26.3k|	{
   64|  26.3k|		if (auto someipLayer = dynamic_cast<pcpp::SomeIpSdLayer*>(layer))
  ------------------
  |  Branch (64:12): [True: 3.05k, False: 23.3k]
  ------------------
   65|  3.05k|		{
   66|  3.05k|			auto entries = someipLayer->getEntries();
   67|  3.05k|			if (!entries.empty())
  ------------------
  |  Branch (67:8): [True: 3.00k, False: 48]
  ------------------
   68|  3.00k|			{
   69|  3.00k|				auto opts = someipLayer->getOptionsFromEntry(0);
   70|  3.00k|				for (auto opt : opts)
  ------------------
  |  Branch (70:19): [True: 1.82k, False: 3.00k]
  ------------------
   71|  1.82k|					delete opt;
   72|  3.00k|			}
   73|       |
   74|  3.05k|			for (auto entry : entries)
  ------------------
  |  Branch (74:20): [True: 3.00k, False: 3.05k]
  ------------------
   75|  3.00k|			{
   76|  3.00k|				entry->getNumOptions();
   77|  3.00k|				entry->getServiceId();
   78|  3.00k|				entry->getInstanceId();
   79|  3.00k|				entry->getMajorVersion();
   80|  3.00k|				entry->getMinorVersion();
   81|  3.00k|				entry->getCounter();
   82|  3.00k|				entry->getEventgroupId();
   83|  3.00k|				delete entry;
   84|  3.00k|			}
   85|       |
   86|  3.05k|			someipLayer->getFlags();
   87|  3.05k|			auto opts = someipLayer->getOptions();
   88|  3.05k|			for (auto opt : opts)
  ------------------
  |  Branch (88:18): [True: 2.35k, False: 3.05k]
  ------------------
   89|  2.35k|			{
   90|  2.35k|				opt->getType();
   91|  2.35k|				if (auto v4opt = dynamic_cast<pcpp::SomeIpSdIPv4Option*>(opt))
  ------------------
  |  Branch (91:14): [True: 860, False: 1.49k]
  ------------------
   92|    860|				{
   93|    860|					v4opt->getIpAddress();
   94|    860|					v4opt->getPort();
   95|    860|					v4opt->getProtocol();
   96|    860|				}
   97|  1.49k|				else if (auto v6opt = dynamic_cast<pcpp::SomeIpSdIPv6Option*>(opt))
  ------------------
  |  Branch (97:19): [True: 635, False: 859]
  ------------------
   98|    635|				{
   99|    635|					v6opt->getIpAddress();
  100|    635|					v6opt->getPort();
  101|    635|					v6opt->getProtocol();
  102|    635|				}
  103|  2.35k|				delete opt;
  104|  2.35k|			}
  105|  3.05k|		}
  106|  26.3k|	}
  107|   778k|	if (parsedPacket.isPacketOfType(pcpp::GTP))
  ------------------
  |  Branch (107:6): [True: 27.1k, False: 750k]
  ------------------
  108|  27.1k|	{
  109|  27.1k|		if (auto gtpLayer = dynamic_cast<pcpp::GtpV1Layer*>(layer))
  ------------------
  |  Branch (109:12): [True: 4.53k, False: 22.5k]
  ------------------
  110|  4.53k|		{
  111|  4.53k|			uint16_t value16 = 0;
  112|  4.53k|			gtpLayer->getSequenceNumber(value16);
  113|  4.53k|			uint8_t value8;
  114|  4.53k|			gtpLayer->getNpduNumber(value8);
  115|  4.53k|			gtpLayer->getMessageType();
  116|  4.53k|			gtpLayer->getMessageTypeAsString();
  117|  4.53k|			gtpLayer->isGTPUMessage();
  118|  4.53k|			gtpLayer->isGTPCMessage();
  119|  4.53k|			auto ext = gtpLayer->getNextExtension();
  120|  4.53k|			ext.getExtensionType();
  121|  4.53k|			ext.getContent();
  122|  4.53k|			ext.getContentLength();
  123|  4.53k|			ext.getNextExtension();
  124|  4.53k|		}
  125|  27.1k|	}
  126|   778k|	if (parsedPacket.isPacketOfType(pcpp::GRE))
  ------------------
  |  Branch (126:6): [True: 74.1k, False: 703k]
  ------------------
  127|  74.1k|	{
  128|  74.1k|		if (auto greLayer = dynamic_cast<pcpp::GreLayer*>(layer))
  ------------------
  |  Branch (128:12): [True: 9.29k, False: 64.8k]
  ------------------
  129|  9.29k|		{
  130|  9.29k|			uint32_t value32 = 0;
  131|  9.29k|			greLayer->getSequenceNumber(value32);
  132|  9.29k|		}
  133|  74.1k|	}
  134|   778k|	if (parsedPacket.isPacketOfType(pcpp::GREv0))
  ------------------
  |  Branch (134:6): [True: 7.87k, False: 770k]
  ------------------
  135|  7.87k|	{
  136|  7.87k|		if (auto greLayer = dynamic_cast<pcpp::GREv0Layer*>(layer))
  ------------------
  |  Branch (136:12): [True: 1.92k, False: 5.95k]
  ------------------
  137|  1.92k|		{
  138|  1.92k|			uint16_t value16 = 0;
  139|  1.92k|			greLayer->getChecksum(value16);
  140|  1.92k|			greLayer->getOffset(value16);
  141|  1.92k|			uint32_t value32 = 0;
  142|  1.92k|			greLayer->getKey(value32);
  143|  1.92k|		}
  144|  7.87k|	}
  145|   778k|	if (parsedPacket.isPacketOfType(pcpp::GREv1))
  ------------------
  |  Branch (145:6): [True: 66.3k, False: 711k]
  ------------------
  146|  66.3k|	{
  147|  66.3k|		if (auto greLayer = dynamic_cast<pcpp::GREv1Layer*>(layer))
  ------------------
  |  Branch (147:12): [True: 7.37k, False: 58.9k]
  ------------------
  148|  7.37k|		{
  149|  7.37k|			uint32_t value32 = 0;
  150|  7.37k|			greLayer->getAcknowledgmentNum(value32);
  151|  7.37k|		}
  152|  66.3k|	}
  153|   778k|	if (parsedPacket.isPacketOfType(pcpp::FTP))
  ------------------
  |  Branch (153:6): [True: 10.5k, False: 767k]
  ------------------
  154|  10.5k|	{
  155|  10.5k|		if (auto ftpLayer = dynamic_cast<pcpp::FtpRequestLayer*>(layer))
  ------------------
  |  Branch (155:12): [True: 0, False: 10.5k]
  ------------------
  156|      0|		{
  157|      0|			ftpLayer->getCommandOption(false);
  158|      0|			ftpLayer->getCommandOption(true);
  159|      0|		}
  160|  10.5k|		else if (auto ftpLayer = dynamic_cast<pcpp::FtpResponseLayer*>(layer))
  ------------------
  |  Branch (160:17): [True: 1.93k, False: 8.57k]
  ------------------
  161|  1.93k|		{
  162|  1.93k|			ftpLayer->getStatusCode();
  163|  1.93k|			ftpLayer->getStatusOption(false);
  164|  1.93k|			ftpLayer->getStatusOption(true);
  165|  1.93k|		}
  166|  10.5k|	}
  167|   778k|	if (parsedPacket.isPacketOfType(pcpp::SLL2))
  ------------------
  |  Branch (167:6): [True: 0, False: 778k]
  ------------------
  168|      0|	{
  169|      0|		if (auto sllLayer = dynamic_cast<pcpp::Sll2Layer*>(layer))
  ------------------
  |  Branch (169:12): [True: 0, False: 0]
  ------------------
  170|      0|		{
  171|      0|			sllLayer->getLinkLayerAsMacAddress();
  172|      0|			sllLayer->getProtocolType();
  173|      0|			sllLayer->getInterfaceIndex();
  174|      0|			sllLayer->getArphrdType();
  175|      0|			sllLayer->getPacketType();
  176|      0|		}
  177|      0|	}
  178|   778k|	if (parsedPacket.isPacketOfType(pcpp::VRRP))
  ------------------
  |  Branch (178:6): [True: 8.18k, False: 769k]
  ------------------
  179|  8.18k|	{
  180|  8.18k|		if (auto vrrpLayer = dynamic_cast<pcpp::VrrpLayer*>(layer))
  ------------------
  |  Branch (180:12): [True: 2.32k, False: 5.85k]
  ------------------
  181|  2.32k|		{
  182|  2.32k|			vrrpLayer->getIPAddresses();
  183|  2.32k|			vrrpLayer->isChecksumCorrect();
  184|  2.32k|			vrrpLayer->getChecksum();
  185|  2.32k|			vrrpLayer->getPriorityAsEnum();
  186|  2.32k|			vrrpLayer->getPriority();
  187|  2.32k|			vrrpLayer->getType();
  188|  2.32k|		}
  189|  8.18k|	}
  190|   778k|	if (parsedPacket.isPacketOfType(pcpp::VRRPv2))
  ------------------
  |  Branch (190:6): [True: 2.63k, False: 775k]
  ------------------
  191|  2.63k|	{
  192|  2.63k|		if (auto vrrpLayer = dynamic_cast<pcpp::VrrpV2Layer*>(layer))
  ------------------
  |  Branch (192:12): [True: 853, False: 1.78k]
  ------------------
  193|    853|		{
  194|    853|			vrrpLayer->getAuthTypeAsEnum();
  195|    853|			vrrpLayer->getAdvInt();
  196|    853|		}
  197|  2.63k|	}
  198|   778k|	if (parsedPacket.isPacketOfType(pcpp::VRRPv3))
  ------------------
  |  Branch (198:6): [True: 5.54k, False: 772k]
  ------------------
  199|  5.54k|	{
  200|  5.54k|		if (auto vrrpLayer = dynamic_cast<pcpp::VrrpV3Layer*>(layer))
  ------------------
  |  Branch (200:12): [True: 1.47k, False: 4.07k]
  ------------------
  201|  1.47k|		{
  202|  1.47k|			vrrpLayer->getMaxAdvInt();
  203|  1.47k|		}
  204|  5.54k|	}
  205|   778k|	if (parsedPacket.isPacketOfType(pcpp::TCP))
  ------------------
  |  Branch (205:6): [True: 411k, False: 366k]
  ------------------
  206|   411k|	{
  207|   411k|		if (auto tcpLayer = dynamic_cast<pcpp::TcpLayer*>(layer))
  ------------------
  |  Branch (207:12): [True: 93.0k, False: 318k]
  ------------------
  208|  93.0k|		{
  209|  93.0k|			auto tcpLayer2(*tcpLayer);
  210|  93.0k|			tcpLayer2.insertTcpOptionAfter(pcpp::TcpOptionBuilder(pcpp::TcpOptionBuilder::NopEolOptionEnumType::Nop),
  211|  93.0k|			                               pcpp::TcpOptionEnumType::Nop);
  212|  93.0k|		}
  213|   411k|	}
  214|   778k|	if (parsedPacket.isPacketOfType(pcpp::SDP))
  ------------------
  |  Branch (214:6): [True: 40.9k, False: 737k]
  ------------------
  215|  40.9k|	{
  216|  40.9k|		if (auto sdpLayer = dynamic_cast<pcpp::SdpLayer*>(layer))
  ------------------
  |  Branch (216:12): [True: 3.97k, False: 36.9k]
  ------------------
  217|  3.97k|		{
  218|  3.97k|			sdpLayer->getOwnerIPv4Address();
  219|  3.97k|			sdpLayer->getMediaPort("audio");
  220|  3.97k|			sdpLayer->getFieldCount();
  221|       |
  222|  3.97k|			auto sdpLayer2 = *sdpLayer;
  223|  3.97k|			std::vector<std::string> audioAttributes;
  224|  3.97k|			audioAttributes.push_back("rtpmap:8 PCMA/8000");
  225|  3.97k|			sdpLayer2.addMediaDescription("audio", 6010, "RTP/AVP", "8 96", audioAttributes);
  226|  3.97k|			sdpLayer2.addField(PCPP_SDP_PROTOCOL_VERSION_FIELD, "0");
  ------------------
  |  |   15|  3.97k|#define PCPP_SDP_PROTOCOL_VERSION_FIELD "v"
  ------------------
  227|  3.97k|			sdpLayer2.removeField(PCPP_SDP_PROTOCOL_VERSION_FIELD);
  ------------------
  |  |   15|  3.97k|#define PCPP_SDP_PROTOCOL_VERSION_FIELD "v"
  ------------------
  228|  3.97k|		}
  229|  40.9k|	}
  230|   778k|	if (parsedPacket.isPacketOfType(pcpp::SSL))
  ------------------
  |  Branch (230:6): [True: 96.0k, False: 681k]
  ------------------
  231|  96.0k|	{
  232|  96.0k|		if (auto handshakeLayer = dynamic_cast<pcpp::SSLHandshakeLayer*>(layer))
  ------------------
  |  Branch (232:12): [True: 18.5k, False: 77.5k]
  ------------------
  233|  18.5k|		{
  234|  18.5k|			if (auto clientHelloMessage = handshakeLayer->getHandshakeMessageOfType<pcpp::SSLClientHelloMessage>())
  ------------------
  |  Branch (234:13): [True: 6.43k, False: 12.1k]
  ------------------
  235|  6.43k|			{
  236|  6.43k|				clientHelloMessage->getCompressionMethodsValue();
  237|  6.43k|				clientHelloMessage->getSessionID();
  238|  6.43k|				clientHelloMessage->getHandshakeType();
  239|  6.43k|				clientHelloMessage->getHandshakeVersion();
  240|       |
  241|  6.43k|				pcpp::SSLCipherSuite::getCipherSuiteByName("TLS_RSA_WITH_NULL_MD5");
  242|  2.06M|				for (int i = 0; i < clientHelloMessage->getCipherSuiteCount(); i++)
  ------------------
  |  Branch (242:21): [True: 2.06M, False: 6.43k]
  ------------------
  243|  2.06M|				{
  244|  2.06M|					clientHelloMessage->getCipherSuite(i);
  245|  2.06M|					bool valid;
  246|  2.06M|					clientHelloMessage->getCipherSuiteID(i, valid);
  247|  2.06M|				}
  248|  6.43k|				if (auto ext = clientHelloMessage->getExtensionOfType<pcpp::SSLServerNameIndicationExtension>())
  ------------------
  |  Branch (248:14): [True: 2.95k, False: 3.48k]
  ------------------
  249|  2.95k|					ext->getHostName();
  250|  6.43k|				if (auto ext = clientHelloMessage->getExtensionOfType<pcpp::SSLSupportedVersionsExtension>())
  ------------------
  |  Branch (250:14): [True: 853, False: 5.57k]
  ------------------
  251|    853|					ext->getSupportedVersions();
  252|       |
  253|  6.43k|				clientHelloMessage->getExtensionOfType(pcpp::SSL_EXT_SERVER_NAME);
  254|  6.43k|				clientHelloMessage->getExtensionOfType((uint16_t)0);
  255|       |
  256|  6.43k|				auto fingerprint = clientHelloMessage->generateTLSFingerprint();
  257|  6.43k|				fingerprint.toMD5();
  258|  6.43k|			}
  259|  18.5k|			if (auto serverHelloMessage = handshakeLayer->getHandshakeMessageOfType<pcpp::SSLServerHelloMessage>())
  ------------------
  |  Branch (259:13): [True: 4.34k, False: 14.2k]
  ------------------
  260|  4.34k|			{
  261|  4.34k|				serverHelloMessage->getCompressionMethodsValue();
  262|  4.34k|				serverHelloMessage->getSessionID();
  263|  4.34k|				serverHelloMessage->getCipherSuite();
  264|       |
  265|  4.34k|				serverHelloMessage->getExtensionOfType<pcpp::SSLServerNameIndicationExtension>();
  266|  4.34k|				serverHelloMessage->getExtensionOfType(pcpp::SSL_EXT_SERVER_NAME);
  267|  4.34k|				serverHelloMessage->getExtensionOfType((uint16_t)0);
  268|       |
  269|  4.34k|				serverHelloMessage->getHandshakeVersion();
  270|  4.34k|				auto fingerprint = serverHelloMessage->generateTLSFingerprint();
  271|  4.34k|				fingerprint.toMD5();
  272|  4.34k|			}
  273|  18.5k|			if (auto handshakeMessage = handshakeLayer->getHandshakeMessageOfType<pcpp::SSLHandshakeMessage>())
  ------------------
  |  Branch (273:13): [True: 17.4k, False: 1.09k]
  ------------------
  274|  17.4k|			{
  275|  17.4k|				handshakeMessage->isMessageComplete();
  276|  17.4k|			}
  277|  18.5k|		}
  278|  96.0k|	}
  279|   778k|	if (parsedPacket.isPacketOfType(pcpp::NTP))
  ------------------
  |  Branch (279:6): [True: 11.5k, False: 766k]
  ------------------
  280|  11.5k|	{
  281|  11.5k|		if (auto ntpLayer = dynamic_cast<pcpp::NtpLayer*>(layer))
  ------------------
  |  Branch (281:12): [True: 2.89k, False: 8.68k]
  ------------------
  282|  2.89k|		{
  283|  2.89k|			ntpLayer->getLeapIndicator();
  284|  2.89k|			ntpLayer->getMode();
  285|  2.89k|			ntpLayer->getModeString();
  286|  2.89k|			ntpLayer->getStratum();
  287|  2.89k|			ntpLayer->getPollInterval();
  288|  2.89k|			ntpLayer->getPrecision();
  289|  2.89k|			ntpLayer->getRootDelay();
  290|  2.89k|			ntpLayer->getRootDispersion();
  291|  2.89k|			ntpLayer->getReferenceIdentifier();
  292|  2.89k|			ntpLayer->getReferenceIdentifierString();
  293|  2.89k|			ntpLayer->getReferenceTimestamp();
  294|  2.89k|			ntpLayer->getOriginTimestamp();
  295|  2.89k|			ntpLayer->getReceiveTimestamp();
  296|  2.89k|			ntpLayer->getTransmitTimestamp();
  297|       |
  298|  2.89k|			ntpLayer->getDigest();
  299|  2.89k|			ntpLayer->getKeyID();
  300|       |
  301|  2.89k|			ntpLayer->getPollIntervalInSecs();
  302|  2.89k|			ntpLayer->getPrecisionInSecs();
  303|  2.89k|			ntpLayer->getRootDelayInSecs();
  304|  2.89k|			ntpLayer->getRootDispersionInSecs();
  305|  2.89k|			ntpLayer->getReferenceTimestampInSecs();
  306|  2.89k|			ntpLayer->getOriginTimestampInSecs();
  307|  2.89k|			ntpLayer->getReceiveTimestampInSecs();
  308|  2.89k|			ntpLayer->getTransmitTimestampInSecs();
  309|       |
  310|  2.89k|			ntpLayer->getReferenceTimestampAsString();
  311|  2.89k|			ntpLayer->getOriginTimestampAsString();
  312|  2.89k|			ntpLayer->getReceiveTimestampAsString();
  313|  2.89k|			ntpLayer->getTransmitTimestampAsString();
  314|       |
  315|  2.89k|			auto ntpLayer2(*ntpLayer);
  316|  2.89k|			ntpLayer2.setRootDelayInSecs(0.1);
  317|  2.89k|			ntpLayer2.setReferenceTimestampInSecs(0.1);
  318|  2.89k|		}
  319|  11.5k|	}
  320|   778k|	if (parsedPacket.isPacketOfType(pcpp::ICMP))
  ------------------
  |  Branch (320:6): [True: 32.0k, False: 745k]
  ------------------
  321|  32.0k|	{
  322|  32.0k|		if (auto icmpLayer = dynamic_cast<pcpp::IcmpLayer*>(layer))
  ------------------
  |  Branch (322:12): [True: 7.11k, False: 24.9k]
  ------------------
  323|  7.11k|		{
  324|  7.11k|			auto icmpLayer2(*icmpLayer);
  325|       |
  326|  7.11k|			if (icmpLayer->isMessageOfType(pcpp::ICMP_TIMESTAMP_REPLY))
  ------------------
  |  Branch (326:8): [True: 988, False: 6.12k]
  ------------------
  327|    988|			{
  328|    988|				icmpLayer->getTimestampReplyData();
  329|    988|				timeval orig = { 16131, 171000 };
  330|    988|				timeval recv = { 16133, 474000 };
  331|    988|				timeval tran = { 16133, 474000 };
  332|    988|				icmpLayer2.setTimestampReplyData(14640, 0, orig, recv, tran);
  333|    988|			}
  334|  6.12k|			else if (icmpLayer->isMessageOfType(pcpp::ICMP_ADDRESS_MASK_REQUEST))
  ------------------
  |  Branch (334:13): [True: 725, False: 5.40k]
  ------------------
  335|    725|			{
  336|    725|				icmpLayer->getAddressMaskRequestData();
  337|    725|				icmpLayer2.setAddressMaskRequestData(45068, 1536, pcpp::IPv4Address::Zero);
  338|    725|			}
  339|  5.40k|			else if (icmpLayer->isMessageOfType(pcpp::ICMP_ADDRESS_MASK_REPLY))
  ------------------
  |  Branch (339:13): [True: 1.08k, False: 4.32k]
  ------------------
  340|  1.08k|			{
  341|  1.08k|				icmpLayer->getAddressMaskReplyData();
  342|  1.08k|				icmpLayer2.setAddressMaskReplyData(45068, 1536, pcpp::IPv4Address::Zero);
  343|  1.08k|			}
  344|  4.32k|			else if (icmpLayer->isMessageOfType(pcpp::ICMP_DEST_UNREACHABLE))
  ------------------
  |  Branch (344:13): [True: 500, False: 3.82k]
  ------------------
  345|    500|			{
  346|    500|				icmpLayer->getDestUnreachableData();
  347|    500|				icmpLayer2.setDestUnreachableData(pcpp::IcmpHostUnreachable, 0, nullptr, nullptr);
  348|    500|			}
  349|  3.82k|			else if (icmpLayer->isMessageOfType(pcpp::ICMP_INFO_REPLY))
  ------------------
  |  Branch (349:13): [True: 370, False: 3.45k]
  ------------------
  350|    370|			{
  351|    370|				auto layerData = icmpLayer->getInfoReplyData();
  352|    370|				icmpLayer2.setInfoReplyData(layerData->id, layerData->sequence);
  353|    370|			}
  354|  3.45k|			else if (icmpLayer->isMessageOfType(pcpp::ICMP_INFO_REQUEST))
  ------------------
  |  Branch (354:13): [True: 330, False: 3.12k]
  ------------------
  355|    330|			{
  356|    330|				auto layerData = icmpLayer->getInfoRequestData();
  357|    330|				icmpLayer2.setInfoRequestData(layerData->id, layerData->sequence);
  358|    330|			}
  359|  3.12k|			else if (icmpLayer->isMessageOfType(pcpp::ICMP_PARAM_PROBLEM))
  ------------------
  |  Branch (359:13): [True: 636, False: 2.48k]
  ------------------
  360|    636|			{
  361|    636|				auto layerData = icmpLayer->getParamProblemData();
  362|    636|				icmpLayer2.setParamProblemData(layerData->code, layerData->pointer, nullptr, nullptr);
  363|    636|			}
  364|  2.48k|			else if (icmpLayer->isMessageOfType(pcpp::ICMP_TIME_EXCEEDED))
  ------------------
  |  Branch (364:13): [True: 500, False: 1.98k]
  ------------------
  365|    500|			{
  366|    500|				icmpLayer->getTimeExceededData();
  367|    500|				icmpLayer2.setTimeExceededData(1, nullptr, nullptr);
  368|    500|			}
  369|  1.98k|			else if (icmpLayer->isMessageOfType(pcpp::ICMP_ROUTER_ADV))
  ------------------
  |  Branch (369:13): [True: 571, False: 1.41k]
  ------------------
  370|    571|			{
  371|    571|				icmpLayer->getRouterAdvertisementData();
  372|    571|				pcpp::icmp_router_address_structure addr1;
  373|    571|				addr1.setRouterAddress(pcpp::IPv4Address("192.168.144.2"), (uint32_t)0x08000000);
  374|    571|				std::vector<pcpp::icmp_router_address_structure> routerAddresses;
  375|    571|				routerAddresses.push_back(addr1);
  376|    571|				icmpLayer2.setRouterAdvertisementData(16, 200, routerAddresses);
  377|    571|			}
  378|  7.11k|		}
  379|  32.0k|	}
  380|   778k|	if (parsedPacket.isPacketOfType(pcpp::DHCPv6))
  ------------------
  |  Branch (380:6): [True: 14.6k, False: 763k]
  ------------------
  381|  14.6k|	{
  382|  14.6k|		if (auto dhcpLayer = dynamic_cast<pcpp::DhcpV6Layer*>(layer))
  ------------------
  |  Branch (382:12): [True: 3.48k, False: 11.1k]
  ------------------
  383|  3.48k|		{
  384|  3.48k|			dhcpLayer->getTransactionID();
  385|  3.48k|			if (dhcpLayer->getOptionCount() > 0)
  ------------------
  |  Branch (385:8): [True: 3.36k, False: 121]
  ------------------
  386|  3.36k|			{
  387|  3.36k|				pcpp::DhcpV6Option opt = dhcpLayer->getFirstOptionData();
  388|  3.36k|				opt.getType();
  389|  3.36k|				opt.getTotalSize();
  390|  3.36k|				opt.getValueAsHexString();
  391|  11.0k|				for (size_t i = 0; i < dhcpLayer->getOptionCount(); i++)
  ------------------
  |  Branch (391:24): [True: 7.65k, False: 3.36k]
  ------------------
  392|  7.65k|				{
  393|  7.65k|					opt = dhcpLayer->getNextOptionData(opt);
  394|  7.65k|				}
  395|  3.36k|				dhcpLayer->getOptionData(pcpp::DHCPV6_OPT_CLIENTID);
  396|  3.36k|			}
  397|  3.48k|		}
  398|  14.6k|	}
  399|   778k|	if (parsedPacket.isPacketOfType(pcpp::DHCP))
  ------------------
  |  Branch (399:6): [True: 11.2k, False: 766k]
  ------------------
  400|  11.2k|	{
  401|  11.2k|		if (auto dhcpLayer = dynamic_cast<pcpp::DhcpLayer*>(layer))
  ------------------
  |  Branch (401:12): [True: 2.78k, False: 8.42k]
  ------------------
  402|  2.78k|		{
  403|  2.78k|			dhcpLayer->getOpCode();
  404|  2.78k|			dhcpLayer->getDhcpHeader();
  405|  2.78k|			dhcpLayer->getClientIpAddress();
  406|  2.78k|			dhcpLayer->getYourIpAddress();
  407|  2.78k|			dhcpLayer->getServerIpAddress();
  408|  2.78k|			dhcpLayer->getGatewayIpAddress();
  409|  2.78k|			dhcpLayer->getClientHardwareAddress();
  410|  2.78k|			if (dhcpLayer->getOptionsCount() > 0)
  ------------------
  |  Branch (410:8): [True: 2.74k, False: 39]
  ------------------
  411|  2.74k|			{
  412|  2.74k|				pcpp::DhcpOption opt = dhcpLayer->getFirstOptionData();
  413|  2.74k|				opt.getValueAsIpAddr();
  414|  2.74k|				opt.getValueAsString();
  415|  57.1k|				for (size_t i = 0; i < dhcpLayer->getOptionsCount(); i++)
  ------------------
  |  Branch (415:24): [True: 54.4k, False: 2.74k]
  ------------------
  416|  54.4k|				{
  417|  54.4k|					opt = dhcpLayer->getNextOptionData(opt);
  418|  54.4k|				}
  419|  2.74k|			}
  420|  2.78k|			dhcpLayer->getOptionData(pcpp::DHCPOPT_SUBNET_MASK);
  421|  2.78k|		}
  422|  11.2k|	}
  423|   778k|	if (parsedPacket.isPacketOfType(pcpp::BGP))
  ------------------
  |  Branch (423:6): [True: 37.1k, False: 740k]
  ------------------
  424|  37.1k|	{
  425|  37.1k|		if (auto bgpLayer = dynamic_cast<pcpp::BgpLayer*>(layer))
  ------------------
  |  Branch (425:12): [True: 17.3k, False: 19.7k]
  ------------------
  426|  17.3k|		{
  427|  17.3k|			bgpLayer->getMessageTypeAsString();
  428|  17.3k|			if (auto bgpOpenMsgLayer = dynamic_cast<pcpp::BgpOpenMessageLayer*>(bgpLayer))
  ------------------
  |  Branch (428:13): [True: 3.17k, False: 14.2k]
  ------------------
  429|  3.17k|			{
  430|  3.17k|				std::vector<pcpp::BgpOpenMessageLayer::optional_parameter> optionalParams;
  431|  3.17k|				bgpOpenMsgLayer->getOptionalParameters(optionalParams);
  432|  3.17k|				std::vector<pcpp::BgpOpenMessageLayer::optional_parameter> optionalParams2(optionalParams);
  433|  3.17k|				optionalParams2.push_back(pcpp::BgpOpenMessageLayer::optional_parameter(2, "010400010001"));
  434|  3.17k|				optionalParams2.push_back(pcpp::BgpOpenMessageLayer::optional_parameter(2, "8000"));
  435|  3.17k|				optionalParams2.push_back(pcpp::BgpOpenMessageLayer::optional_parameter(2, "0200"));
  436|  3.17k|				optionalParams2.push_back(pcpp::BgpOpenMessageLayer::optional_parameter(2, "4600"));
  437|  3.17k|				optionalParams2.push_back(pcpp::BgpOpenMessageLayer::optional_parameter(2, "410400000001"));
  438|  3.17k|				bgpOpenMsgLayer->setOptionalParameters(optionalParams2);
  439|  3.17k|				bgpOpenMsgLayer->clearOptionalParameters();
  440|  3.17k|				bgpOpenMsgLayer->setOptionalParameters(optionalParams);
  441|  3.17k|			}
  442|  14.2k|			else if (auto bgpUpdateMsgLayer = dynamic_cast<pcpp::BgpUpdateMessageLayer*>(bgpLayer))
  ------------------
  |  Branch (442:18): [True: 12.2k, False: 1.94k]
  ------------------
  443|  12.2k|			{
  444|  12.2k|				std::vector<pcpp::BgpUpdateMessageLayer::prefix_and_ip> withdrawnRoutes;
  445|  12.2k|				bgpUpdateMsgLayer->getWithdrawnRoutes(withdrawnRoutes);
  446|  12.2k|				std::vector<pcpp::BgpUpdateMessageLayer::prefix_and_ip> withdrawnRoutes2(withdrawnRoutes);
  447|  12.2k|				withdrawnRoutes2.push_back(pcpp::BgpUpdateMessageLayer::prefix_and_ip(24, "40.1.1.0"));
  448|  12.2k|				withdrawnRoutes2.push_back(pcpp::BgpUpdateMessageLayer::prefix_and_ip(24, "40.40.40.0"));
  449|  12.2k|				withdrawnRoutes2.push_back(pcpp::BgpUpdateMessageLayer::prefix_and_ip(16, "103.103.0.0"));
  450|  12.2k|				withdrawnRoutes2.push_back(pcpp::BgpUpdateMessageLayer::prefix_and_ip(24, "103.103.40.0"));
  451|  12.2k|				bgpUpdateMsgLayer->setWithdrawnRoutes(withdrawnRoutes2);
  452|  12.2k|				bgpUpdateMsgLayer->clearWithdrawnRoutes();
  453|  12.2k|				bgpUpdateMsgLayer->setWithdrawnRoutes(withdrawnRoutes);
  454|       |
  455|  12.2k|				std::vector<pcpp::BgpUpdateMessageLayer::prefix_and_ip> nlriVec;
  456|  12.2k|				bgpUpdateMsgLayer->getNetworkLayerReachabilityInfo(nlriVec);
  457|  12.2k|				std::vector<pcpp::BgpUpdateMessageLayer::prefix_and_ip> nlriVec2(nlriVec);
  458|  12.2k|				nlriVec2.push_back(pcpp::BgpUpdateMessageLayer::prefix_and_ip(24, "40.1.1.0"));
  459|  12.2k|				bgpUpdateMsgLayer->setNetworkLayerReachabilityInfo(nlriVec2);
  460|  12.2k|				bgpUpdateMsgLayer->clearNetworkLayerReachabilityInfo();
  461|  12.2k|				bgpUpdateMsgLayer->setNetworkLayerReachabilityInfo(nlriVec);
  462|       |
  463|  12.2k|				std::vector<pcpp::BgpUpdateMessageLayer::path_attribute> pathAttributes;
  464|  12.2k|				bgpUpdateMsgLayer->getPathAttributes(pathAttributes);
  465|  12.2k|				std::vector<pcpp::BgpUpdateMessageLayer::path_attribute> pathAttributes2(pathAttributes);
  466|  12.2k|				pathAttributes2.push_back(pcpp::BgpUpdateMessageLayer::path_attribute(0x40, 1, "02"));
  467|  12.2k|				pathAttributes2.push_back(
  468|  12.2k|				    pcpp::BgpUpdateMessageLayer::path_attribute(0x40, 2, "02030000000a0000001400000028"));
  469|  12.2k|				pathAttributes2.push_back(pcpp::BgpUpdateMessageLayer::path_attribute(0x40, 3, "1e031e03"));
  470|  12.2k|				bgpUpdateMsgLayer->setPathAttributes(pathAttributes2);
  471|  12.2k|				bgpUpdateMsgLayer->clearPathAttributes();
  472|  12.2k|				bgpUpdateMsgLayer->setPathAttributes(pathAttributes);
  473|  12.2k|			}
  474|  1.94k|			else if (auto bgpNotificationMsgLayer = dynamic_cast<pcpp::BgpNotificationMessageLayer*>(bgpLayer))
  ------------------
  |  Branch (474:18): [True: 670, False: 1.27k]
  ------------------
  475|    670|			{
  476|    670|				bgpNotificationMsgLayer->getNotificationDataAsHexString();
  477|    670|			}
  478|  17.3k|		}
  479|  37.1k|	}
  480|   778k|	if (parsedPacket.isPacketOfType(pcpp::DNS))
  ------------------
  |  Branch (480:6): [True: 55.3k, False: 722k]
  ------------------
  481|  55.3k|	{
  482|  55.3k|		if (auto dnsLayer = dynamic_cast<pcpp::DnsLayer*>(layer))
  ------------------
  |  Branch (482:12): [True: 12.9k, False: 42.4k]
  ------------------
  483|  12.9k|		{
  484|  12.9k|			dnsLayer->addQuery("mail-attachment.googleusercontent.com", pcpp::DNS_TYPE_A, pcpp::DNS_CLASS_IN);
  485|  12.9k|			dnsLayer->removeQuery("a", true);
  486|  12.9k|			dnsLayer->removeQuery("mail-attachment.googleusercontent.com", false);
  487|  12.9k|			pcpp::IPv4DnsResourceData ipv4DnsData(std::string("151.249.90.217"));
  488|  12.9k|			dnsLayer->addAnswer("assets.pinterest.com.cdngc.net", pcpp::DNS_TYPE_A, pcpp::DNS_CLASS_IN, 3,
  489|  12.9k|			                    &ipv4DnsData);
  490|  12.9k|			dnsLayer->removeAnswer("a", true);
  491|  12.9k|			dnsLayer->removeAnswer("assets.pinterest.com.cdngc.net", false);
  492|  12.9k|			dnsLayer->addAuthority("Yaels-iPhone.local", pcpp::DNS_TYPE_A, pcpp::DNS_CLASS_IN, 120, &ipv4DnsData);
  493|  12.9k|			dnsLayer->removeAuthority("a", true);
  494|  12.9k|			dnsLayer->removeAuthority("Yaels-iPhone.local", false);
  495|  12.9k|			pcpp::GenericDnsResourceData genericData("0004000800df581faa4f3f9d");
  496|  12.9k|			dnsLayer->addAdditionalRecord("abc", pcpp::DNS_TYPE_OPT, 0xa005, 0x1194, &genericData);
  497|  12.9k|			dnsLayer->removeAdditionalRecord("a", true);
  498|  12.9k|			dnsLayer->removeAdditionalRecord("abc", false);
  499|       |
  500|  12.9k|			auto add = dnsLayer->getFirstAdditionalRecord();
  501|  14.8k|			while (add != nullptr)
  ------------------
  |  Branch (501:11): [True: 1.93k, False: 12.9k]
  ------------------
  502|  1.93k|			{
  503|  1.93k|				add = dnsLayer->getNextAdditionalRecord(add);
  504|  1.93k|			}
  505|       |
  506|  12.9k|			auto answer = dnsLayer->getFirstAnswer();
  507|  16.0k|			while (answer != nullptr)
  ------------------
  |  Branch (507:11): [True: 3.05k, False: 12.9k]
  ------------------
  508|  3.05k|			{
  509|  3.05k|				answer = dnsLayer->getNextAnswer(answer);
  510|  3.05k|			}
  511|       |
  512|  12.9k|			auto auth = dnsLayer->getFirstAuthority();
  513|  15.4k|			while (auth != nullptr)
  ------------------
  |  Branch (513:11): [True: 2.48k, False: 12.9k]
  ------------------
  514|  2.48k|			{
  515|  2.48k|				auth = dnsLayer->getNextAuthority(auth);
  516|  2.48k|			}
  517|       |
  518|  12.9k|			pcpp::DnsLayer other(*dnsLayer);
  519|  12.9k|			other = *dnsLayer;
  520|  12.9k|		}
  521|  55.3k|	}
  522|   778k|}

