_ZN4pcpp5alignILi4EEEii:
   51|  31.0k|	{
   52|       |		// Only works for alignment with power of 2
   53|  31.0k|		constexpr bool isPowerOfTwo = alignment && ((alignment & (alignment - 1)) == 0);
  ------------------
  |  Branch (53:33): [True: 0, Folded]
  |  Branch (53:46): [True: 0, Folded]
  ------------------
   54|  31.0k|		static_assert(isPowerOfTwo, "Alignment must be a power of 2");
   55|  31.0k|		int mask = alignment - 1;
   56|  31.0k|		return (number + mask) & ~mask;
   57|  31.0k|	}
_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|     88|		{
  124|     88|			return static_cast<std::underlying_type_t<EnumClass>>(value);
  125|     88|		}
_ZNK4pcpp13EnumClassHashINS_14LdapResultCode5ValueELb0EEclES2_:
  123|    120|		{
  124|    120|			return static_cast<std::underlying_type_t<EnumClass>>(value);
  125|    120|		}
_ZNK4pcpp13EnumClassHashINS_22LdapSearchRequestLayer18SearchRequestScope5ValueELb0EEclES3_:
  123|      8|		{
  124|      8|			return static_cast<std::underlying_type_t<EnumClass>>(value);
  125|      8|		}
_ZNK4pcpp13EnumClassHashINS_22LdapSearchRequestLayer12DerefAliases5ValueELb0EEclES3_:
  123|     10|		{
  124|     10|			return static_cast<std::underlying_type_t<EnumClass>>(value);
  125|     10|		}

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

_ZN4pcpp6Logger11getInstanceEv:
  368|  28.6M|		{
  369|  28.6M|			static Logger instance;
  370|  28.6M|			return instance;
  371|  28.6M|		}
_ZN4pcpp6Logger12suppressLogsEv:
  320|  2.26k|		{
  321|  2.26k|			m_LogsEnabled = false;
  322|  2.26k|		}
_ZN4pcpp9LogSourceC2ENS_9LogModuleEPKcS3_i:
  138|   133k|		    : file(file), function(function), line(line), logModule(logModule)
  139|   133k|		{}
_ZN4pcpp8internal10LogContext4initENS_8LogLevelERKNS_9LogSourceE:
  188|   133k|			{
  189|   133k|				m_Source = source;
  190|   133k|				m_Level = level;
  191|   133k|				m_Stream.clear();
  192|   133k|				m_Stream.str({});
  193|   133k|			}
_ZNK4pcpp6Logger14isDebugEnabledENS_9LogModuleE:
  279|  98.4k|		{
  280|  98.4k|			return m_LogModulesArray[module] == LogLevel::Debug;
  281|  98.4k|		}
_ZNK4pcpp6Logger9shouldLogENS_8LogLevelENS_9LogModuleE:
  288|  28.5M|		{
  289|  28.5M|			return level != LogLevel::Off && m_LogModulesArray[module] >= level;
  ------------------
  |  Branch (289:11): [True: 28.5M, False: 0]
  |  Branch (289:37): [True: 133k, False: 28.4M]
  ------------------
  290|  28.5M|		}
_ZN4pcpp8internal10LogContextlsIA52_cEERS1_RKT_:
  199|    411|			{
  200|    411|				m_Stream << value;
  201|    411|				return *this;
  202|    411|			}
_ZN4pcpp8internal10LogContextlsINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEERS1_RKT_:
  199|  1.42k|			{
  200|  1.42k|				m_Stream << value;
  201|  1.42k|				return *this;
  202|  1.42k|			}
_ZN4pcpp8internal10LogContextlsIA2_cEERS1_RKT_:
  199|  1.30k|			{
  200|  1.30k|				m_Stream << value;
  201|  1.30k|				return *this;
  202|  1.30k|			}
_ZN4pcpp8internal10LogContextlsIPKcEERS1_RKT_:
  199|      2|			{
  200|      2|				m_Stream << value;
  201|      2|				return *this;
  202|      2|			}
_ZN4pcpp8internal10LogContextlsIA20_cEERS1_RKT_:
  199|  1.30k|			{
  200|  1.30k|				m_Stream << value;
  201|  1.30k|				return *this;
  202|  1.30k|			}
_ZN4pcpp8internal10LogContextlsIA46_cEERS1_RKT_:
  199|    971|			{
  200|    971|				m_Stream << value;
  201|    971|				return *this;
  202|    971|			}
_ZN4pcpp8internal10LogContextlsIA86_cEERS1_RKT_:
  199|    345|			{
  200|    345|				m_Stream << value;
  201|    345|				return *this;
  202|    345|			}
_ZN4pcpp8internal10LogContextlsIjEERS1_RKT_:
  199|  10.3k|			{
  200|  10.3k|				m_Stream << value;
  201|  10.3k|				return *this;
  202|  10.3k|			}
_ZN4pcpp8internal10LogContextlsIA32_cEERS1_RKT_:
  199|    101|			{
  200|    101|				m_Stream << value;
  201|    101|				return *this;
  202|    101|			}
_ZN4pcpp8internal10LogContextlsIA26_cEERS1_RKT_:
  199|  1.00k|			{
  200|  1.00k|				m_Stream << value;
  201|  1.00k|				return *this;
  202|  1.00k|			}
_ZN4pcpp8internal10LogContextlsIA31_cEERS1_RKT_:
  199|  12.9k|			{
  200|  12.9k|				m_Stream << value;
  201|  12.9k|				return *this;
  202|  12.9k|			}
_ZN4pcpp8internal10LogContextlsIA24_cEERS1_RKT_:
  199|  6.11k|			{
  200|  6.11k|				m_Stream << value;
  201|  6.11k|				return *this;
  202|  6.11k|			}
_ZN4pcpp8internal10LogContextlsIA23_cEERS1_RKT_:
  199|    426|			{
  200|    426|				m_Stream << value;
  201|    426|				return *this;
  202|    426|			}
_ZN4pcpp8internal10LogContextlsIA27_cEERS1_RKT_:
  199|    304|			{
  200|    304|				m_Stream << value;
  201|    304|				return *this;
  202|    304|			}
_ZN4pcpp8internal10LogContextlsIA25_cEERS1_RKT_:
  199|  65.0k|			{
  200|  65.0k|				m_Stream << value;
  201|  65.0k|				return *this;
  202|  65.0k|			}
_ZN4pcpp8internal10LogContextlsIA50_cEERS1_RKT_:
  199|  1.02k|			{
  200|  1.02k|				m_Stream << value;
  201|  1.02k|				return *this;
  202|  1.02k|			}
_ZN4pcpp8internal10LogContextlsIA77_cEERS1_RKT_:
  199|     18|			{
  200|     18|				m_Stream << value;
  201|     18|				return *this;
  202|     18|			}
_ZN4pcpp8internal10LogContextlsIA70_cEERS1_RKT_:
  199|    292|			{
  200|    292|				m_Stream << value;
  201|    292|				return *this;
  202|    292|			}
_ZN4pcpp8internal10LogContextlsIA39_cEERS1_RKT_:
  199|    814|			{
  200|    814|				m_Stream << value;
  201|    814|				return *this;
  202|    814|			}
_ZN4pcpp8internal10LogContextlsIA48_cEERS1_RKT_:
  199|      2|			{
  200|      2|				m_Stream << value;
  201|      2|				return *this;
  202|      2|			}
_ZN4pcpp8internal10LogContextlsIA21_cEERS1_RKT_:
  199|    161|			{
  200|    161|				m_Stream << value;
  201|    161|				return *this;
  202|    161|			}
_ZN4pcpp8internal10LogContextlsIA44_cEERS1_RKT_:
  199|  2.34k|			{
  200|  2.34k|				m_Stream << value;
  201|  2.34k|				return *this;
  202|  2.34k|			}
_ZN4pcpp8internal10LogContextlsIA33_cEERS1_RKT_:
  199|      6|			{
  200|      6|				m_Stream << value;
  201|      6|				return *this;
  202|      6|			}
_ZN4pcpp8internal10LogContextlsIA59_cEERS1_RKT_:
  199|    506|			{
  200|    506|				m_Stream << value;
  201|    506|				return *this;
  202|    506|			}
_ZN4pcpp8internal10LogContextlsIA45_cEERS1_RKT_:
  199|  2.71k|			{
  200|  2.71k|				m_Stream << value;
  201|  2.71k|				return *this;
  202|  2.71k|			}
_ZN4pcpp8internal10LogContextlsIA36_cEERS1_RKT_:
  199|    626|			{
  200|    626|				m_Stream << value;
  201|    626|				return *this;
  202|    626|			}
_ZN4pcpp8internal10LogContextlsIA72_cEERS1_RKT_:
  199|    297|			{
  200|    297|				m_Stream << value;
  201|    297|				return *this;
  202|    297|			}
_ZN4pcpp8internal10LogContextlsIiEERS1_RKT_:
  199|  70.4k|			{
  200|  70.4k|				m_Stream << value;
  201|  70.4k|				return *this;
  202|  70.4k|			}
_ZN4pcpp8internal10LogContextlsIA142_cEERS1_RKT_:
  199|    868|			{
  200|    868|				m_Stream << value;
  201|    868|				return *this;
  202|    868|			}
_ZN4pcpp8internal10LogContextlsIA76_cEERS1_RKT_:
  199|     51|			{
  200|     51|				m_Stream << value;
  201|     51|				return *this;
  202|     51|			}
_ZN4pcpp8internal10LogContextlsIA85_cEERS1_RKT_:
  199|  2.47k|			{
  200|  2.47k|				m_Stream << value;
  201|  2.47k|				return *this;
  202|  2.47k|			}
_ZN4pcpp8internal10LogContextlsIA75_cEERS1_RKT_:
  199|    704|			{
  200|    704|				m_Stream << value;
  201|    704|				return *this;
  202|    704|			}
_ZN4pcpp8internal10LogContextlsIA84_cEERS1_RKT_:
  199|  1.54k|			{
  200|  1.54k|				m_Stream << value;
  201|  1.54k|				return *this;
  202|  1.54k|			}
_ZN4pcpp8internal10LogContextlsIA69_cEERS1_RKT_:
  199|    690|			{
  200|    690|				m_Stream << value;
  201|    690|				return *this;
  202|    690|			}
_ZN4pcpp8internal10LogContextlsIA73_cEERS1_RKT_:
  199|     16|			{
  200|     16|				m_Stream << value;
  201|     16|				return *this;
  202|     16|			}
_ZN4pcpp8internal10LogContextlsIA98_cEERS1_RKT_:
  199|  10.7k|			{
  200|  10.7k|				m_Stream << value;
  201|  10.7k|				return *this;
  202|  10.7k|			}
_ZN4pcpp8internal10LogContextlsIA43_cEERS1_RKT_:
  199|  18.9k|			{
  200|  18.9k|				m_Stream << value;
  201|  18.9k|				return *this;
  202|  18.9k|			}
_ZN4pcpp8internal10LogContextlsIA64_cEERS1_RKT_:
  199|    509|			{
  200|    509|				m_Stream << value;
  201|    509|				return *this;
  202|    509|			}
_ZN4pcpp8internal10LogContextlsIA38_cEERS1_RKT_:
  199|  1.58k|			{
  200|  1.58k|				m_Stream << value;
  201|  1.58k|				return *this;
  202|  1.58k|			}
_ZN4pcpp8internal10LogContextlsIA40_cEERS1_RKT_:
  199|  65.0k|			{
  200|  65.0k|				m_Stream << value;
  201|  65.0k|				return *this;
  202|  65.0k|			}
_ZN4pcpp8internal10LogContextlsIA41_cEERS1_RKT_:
  199|  2.34k|			{
  200|  2.34k|				m_Stream << value;
  201|  2.34k|				return *this;
  202|  2.34k|			}
_ZN4pcpp8internal10LogContextlsIA141_cEERS1_RKT_:
  199|    612|			{
  200|    612|				m_Stream << value;
  201|    612|				return *this;
  202|    612|			}
_ZN4pcpp8internal10LogContextlsIA67_cEERS1_RKT_:
  199|    566|			{
  200|    566|				m_Stream << value;
  201|    566|				return *this;
  202|    566|			}
_ZN4pcpp9LogSourceC2Ev:
  125|      2|		constexpr LogSource() = default;
_ZN4pcpp8internal10LogContextC2Ev:
  176|      2|			LogContext() = default;

_ZN4pcpp10MacAddressC2EPKh:
   36|   696k|		explicit MacAddress(const uint8_t addr[6]) : MacAddress(addr, 6)
   37|   696k|		{}
_ZN4pcpp10MacAddressC2Ehhhhhh:
   73|      4|		    : m_Address{ firstOctet, secondOctet, thirdOctet, fourthOctet, fifthOctet, sixthOctet }
   74|      4|		{}
_ZNK4pcpp10MacAddresseqERKS0_:
   93|  9.50k|		{
   94|  9.50k|			return m_Address == other.m_Address;
   95|  9.50k|		}
_ZNK4pcpp10MacAddressneERKS0_:
  101|  9.50k|		{
  102|  9.50k|			return !operator==(other);
  103|  9.50k|		}
_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|   133k|			{
   69|   133k|				return std::unique_ptr<T>(acquireObjectRaw());
   70|   133k|			}
_ZN4pcpp8internal17DynamicObjectPoolINS0_10LogContextELb1EE16acquireObjectRawEv:
   79|   133k|			{
   80|   133k|				std::unique_lock<std::mutex> lock(m_Mutex);
   81|       |
   82|   133k|				if (m_Pool.empty())
  ------------------
  |  Branch (82:9): [True: 0, False: 133k]
  ------------------
   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|   133k|				T* obj = m_Pool.top();
   90|   133k|				m_Pool.pop();
   91|   133k|				return obj;
   92|   133k|			}
_ZN4pcpp8internal17DynamicObjectPoolINS0_10LogContextELb1EE13releaseObjectENSt3__110unique_ptrIS2_NS4_14default_deleteIS2_EEEE:
  101|   133k|			{
  102|   133k|				releaseObjectRaw(obj.release());
  103|   133k|			}
_ZN4pcpp8internal17DynamicObjectPoolINS0_10LogContextELb1EE16releaseObjectRawEPS2_:
  112|   133k|			{
  113|   133k|				std::unique_lock<std::mutex> lock(m_Mutex);
  114|       |
  115|   133k|				if (m_MaxPoolSize == INFINITE_POOL_SIZE || m_Pool.size() < m_MaxPoolSize)
  ------------------
  |  Branch (115:9): [True: 0, False: 133k]
  |  Branch (115:48): [True: 133k, False: 0]
  ------------------
  116|   133k|				{
  117|   133k|					m_Pool.push(obj);
  118|   133k|				}
  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|   133k|			}

_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEEC2Ev:
   59|  2.24k|		PointerVector() = default;
_ZNK4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|   122k|		{
  217|   122k|			return m_Vector.size();
  218|   122k|		}
_ZNK4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE2atEi:
  319|  81.2k|		{
  320|  81.2k|			return m_Vector.at(index);
  321|  81.2k|		}
_ZNK4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE4sizeEv:
  216|  84.6k|		{
  217|  84.6k|			return m_Vector.size();
  218|  84.6k|		}
_ZNK4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE2atEi:
  319|   218k|		{
  320|   218k|			return m_Vector.at(index);
  321|   218k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEED2Ev:
   78|  2.24k|		{
   79|  2.24k|			freeVectorUnsafe(m_Vector);
   80|  2.24k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  2.24k|		{
  363|  2.24k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 2.24k, False: 2.24k]
  ------------------
  364|  2.24k|			{
  365|  2.24k|				Deleter{}(obj);
  366|  2.24k|			}
  367|  2.24k|		}
_ZNK4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE5frontEv:
  238|  2.24k|		{
  239|  2.24k|			return m_Vector.front();
  240|  2.24k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|  2.24k|		{
  148|  2.24k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 2.24k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|  2.24k|			try
  154|  2.24k|			{
  155|  2.24k|				m_Vector.push_back(element);
  156|  2.24k|			}
  157|  2.24k|			catch (const std::exception&)
  158|  2.24k|			{
  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|  2.24k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEEC2Ev:
   59|  83.7k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEEC2Ev:
   59|  3.16k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEED2Ev:
   78|  83.7k|		{
   79|  83.7k|			freeVectorUnsafe(m_Vector);
   80|  83.7k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  83.7k|		{
  363|  83.7k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 310k, False: 83.7k]
  ------------------
  364|   310k|			{
  365|   310k|				Deleter{}(obj);
  366|   310k|			}
  367|  83.7k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|   310k|		{
  173|   310k|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 310k]
  ------------------
  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|   310k|			m_Vector.push_back(element.get());
  182|   310k|			element.release();
  183|   310k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEED2Ev:
   78|  3.16k|		{
   79|  3.16k|			freeVectorUnsafe(m_Vector);
   80|  3.16k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  3.16k|		{
  363|  3.16k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 3.31k, False: 3.16k]
  ------------------
  364|  3.31k|			{
  365|  3.31k|				Deleter{}(obj);
  366|  3.31k|			}
  367|  3.16k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|  3.31k|		{
  148|  3.31k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 3.31k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|  3.31k|			try
  154|  3.31k|			{
  155|  3.31k|				m_Vector.push_back(element);
  156|  3.31k|			}
  157|  3.31k|			catch (const std::exception&)
  158|  3.31k|			{
  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.31k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|   142k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|   142k|		{
   79|   142k|			freeVectorUnsafe(m_Vector);
   80|   142k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|   142k|		{
  363|   142k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 140k, False: 142k]
  ------------------
  364|   140k|			{
  365|   140k|				Deleter{}(obj);
  366|   140k|			}
  367|   142k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|   140k|		{
  148|   140k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 140k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|   140k|			try
  154|   140k|			{
  155|   140k|				m_Vector.push_back(element);
  156|   140k|			}
  157|   140k|			catch (const std::exception&)
  158|   140k|			{
  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|   140k|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|     35|		{
  363|     35|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 7, False: 35]
  ------------------
  364|      7|			{
  365|      7|				Deleter{}(obj);
  366|      7|			}
  367|     35|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  17.2k|		{
  363|  17.2k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 2.12k, False: 17.2k]
  ------------------
  364|  2.12k|			{
  365|  2.12k|				Deleter{}(obj);
  366|  2.12k|			}
  367|  17.2k|		}
_ZNK4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE2atEi:
  319|    257|		{
  320|    257|			return m_Vector.at(index);
  321|    257|		}
_ZNK4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE4sizeEv:
  216|      2|		{
  217|      2|			return m_Vector.size();
  218|      2|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEEC2Ev:
   59|  10.1k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEED2Ev:
   78|  10.1k|		{
   79|  10.1k|			freeVectorUnsafe(m_Vector);
   80|  10.1k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  10.1k|		{
  363|  10.1k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 15.8k, False: 10.1k]
  ------------------
  364|  15.8k|			{
  365|  15.8k|				Deleter{}(obj);
  366|  15.8k|			}
  367|  10.1k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|  15.8k|		{
  173|  15.8k|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 15.8k]
  ------------------
  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|  15.8k|			m_Vector.push_back(element.get());
  182|  15.8k|			element.release();
  183|  15.8k|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|  17.2k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|  17.2k|		{
   79|  17.2k|			freeVectorUnsafe(m_Vector);
   80|  17.2k|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|  2.12k|		{
  173|  2.12k|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 2.12k]
  ------------------
  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|  2.12k|			m_Vector.push_back(element.get());
  182|  2.12k|			element.release();
  183|  2.12k|		}
_ZNK4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|  6.46k|		{
  217|  6.46k|			return m_Vector.size();
  218|  6.46k|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|     35|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|     35|		{
   79|     35|			freeVectorUnsafe(m_Vector);
   80|     35|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|      7|		{
  173|      7|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 7]
  ------------------
  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|      7|			m_Vector.push_back(element.get());
  182|      7|			element.release();
  183|      7|		}
_ZNK4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|     14|		{
  217|     14|			return m_Vector.size();
  218|     14|		}

_ZN4pcpp15FieldDescriptorC2EtNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPFNS1_6vectorIS0_NS5_IS0_EEEEvE:
   35|    480|		    : id(fieldId), name(std::move(fieldName)), getChildren(fieldChildren)
   36|    480|		{}
_ZN4pcpp21ObjectFieldDescriptorINS_9IPv6Layer16SerializedFields19IPv6ExtensionObjectEEC2EtNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
   54|      2|		    : FieldDescriptor(fieldId, std::move(fieldName), &Derived::all)
   55|      2|		{}
_ZN4pcpp21ObjectFieldDescriptorINS_6Packet16SerializedFields15TimestampObjectEEC2EtNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
   54|      2|		    : FieldDescriptor(fieldId, std::move(fieldName), &Derived::all)
   55|      2|		{}

_ZN4pcpp20byteArrayToHexStringEPKhmi:
   17|  45.5k|	{
   18|  45.5k|		if (stringSizeLimit <= 0)
  ------------------
  |  Branch (18:7): [True: 5.71k, False: 39.8k]
  ------------------
   19|  5.71k|		{
   20|  5.71k|			stringSizeLimit = static_cast<int>(byteArrSize);
   21|  5.71k|		}
   22|       |
   23|  45.5k|		std::stringstream dataStream;
   24|  45.5k|		dataStream << std::hex;
   25|   649k|		for (size_t i = 0; i < byteArrSize; ++i)
  ------------------
  |  Branch (25:22): [True: 620k, False: 29.0k]
  ------------------
   26|   620k|		{
   27|   620k|			if (i >= static_cast<size_t>(stringSizeLimit))
  ------------------
  |  Branch (27:8): [True: 16.5k, False: 603k]
  ------------------
   28|  16.5k|			{
   29|  16.5k|				break;
   30|  16.5k|			}
   31|       |
   32|   603k|			dataStream << std::setw(2) << std::setfill('0') << static_cast<int>(byteArr[i]);
   33|   603k|		}
   34|       |
   35|  45.5k|		return dataStream.str();
   36|  45.5k|	}
_ZN4pcpp20hexStringToByteArrayERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPhm:
   56|  32.2k|	{
   57|  32.2k|		if (hexString.size() % 2 != 0)
  ------------------
  |  Branch (57:7): [True: 0, False: 32.2k]
  ------------------
   58|      0|		{
   59|      0|			PCPP_LOG_ERROR("Input string is in odd size");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE CommonLogModuleGenericUtils
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   60|      0|			return 0;
   61|      0|		}
   62|       |
   63|  32.2k|		memset(resultByteArr, 0, resultByteArrSize);
   64|   261k|		for (size_t i = 0; i < hexString.length(); i += 2)
  ------------------
  |  Branch (64:22): [True: 229k, False: 32.2k]
  ------------------
   65|   229k|		{
   66|   229k|			if (i >= resultByteArrSize * 2)
  ------------------
  |  Branch (66:8): [True: 0, False: 229k]
  ------------------
   67|      0|			{
   68|      0|				return resultByteArrSize;
   69|      0|			}
   70|       |
   71|   229k|			const int firstChar = char2int(hexString[i]);
   72|   229k|			const int secondChar = char2int(hexString[i + 1]);
   73|   229k|			if (firstChar < 0 || secondChar < 0)
  ------------------
  |  Branch (73:8): [True: 0, False: 229k]
  |  Branch (73:25): [True: 0, False: 229k]
  ------------------
   74|      0|			{
   75|      0|				PCPP_LOG_ERROR("Input string has an illegal character");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE CommonLogModuleGenericUtils
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   76|      0|				resultByteArr[0] = '\0';
   77|      0|				return 0;
   78|      0|			}
   79|       |
   80|   229k|			resultByteArr[i / 2] = (firstChar << 4) | secondChar;
   81|   229k|		}
   82|       |
   83|  32.2k|		return hexString.length() / 2;
   84|  32.2k|	}
_ZN4pcpp21cross_platform_memmemEPKcmS1_m:
   87|  84.1k|	{
   88|  84.1k|		char* ptr = const_cast<char*>(haystack);
   89|   282k|		while (needleLen <= (haystackLen - (ptr - haystack)))
  ------------------
  |  Branch (89:10): [True: 282k, False: 73]
  ------------------
   90|   282k|		{
   91|   282k|			if (nullptr !=
  ------------------
  |  Branch (91:8): [True: 262k, False: 20.6k]
  ------------------
   92|   282k|			    (ptr = static_cast<char*>(memchr(ptr, static_cast<int>(*needle), haystackLen - (ptr - haystack)))))
   93|   262k|			{
   94|       |				// check if there is room to do a memcmp
   95|   262k|				if (needleLen > (haystackLen - (ptr - haystack)))
  ------------------
  |  Branch (95:9): [True: 513, False: 261k]
  ------------------
   96|    513|				{
   97|    513|					return nullptr;
   98|    513|				}
   99|       |
  100|   261k|				if (0 == memcmp(ptr, needle, needleLen))
  ------------------
  |  Branch (100:9): [True: 62.8k, False: 198k]
  ------------------
  101|  62.8k|				{
  102|  62.8k|					return ptr;
  103|  62.8k|				}
  104|   198k|				++ptr;
  105|   198k|			}
  106|  20.6k|			else
  107|  20.6k|			{
  108|  20.6k|				break;
  109|  20.6k|			}
  110|   282k|		}
  111|       |
  112|  20.7k|		return nullptr;
  113|  84.1k|	}
GeneralUtils.cpp:_ZN4pcppL8char2intEc:
   39|   459k|	{
   40|   459k|		if (input >= '0' && input <= '9')
  ------------------
  |  Branch (40:7): [True: 459k, False: 0]
  |  Branch (40:23): [True: 375k, False: 83.7k]
  ------------------
   41|   375k|		{
   42|   375k|			return input - '0';
   43|   375k|		}
   44|  83.7k|		if (input >= 'A' && input <= 'F')
  ------------------
  |  Branch (44:7): [True: 83.7k, False: 0]
  |  Branch (44:23): [True: 0, False: 83.7k]
  ------------------
   45|      0|		{
   46|      0|			return input - 'A' + 10;
   47|      0|		}
   48|  83.7k|		if (input >= 'a' && input <= 'f')
  ------------------
  |  Branch (48:7): [True: 83.7k, False: 0]
  |  Branch (48:23): [True: 83.7k, False: 0]
  ------------------
   49|  83.7k|		{
   50|  83.7k|			return input - 'a' + 10;
   51|  83.7k|		}
   52|      0|		return -1;
   53|  83.7k|	}

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

_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|   133k|	{
   90|   133k|		if (m_UseContextPooling)
  ------------------
  |  Branch (90:7): [True: 133k, False: 0]
  ------------------
   91|   133k|		{
   92|   133k|			auto ctx = m_LogContextPool.acquireObject();
   93|   133k|			ctx->init(level, source);
   94|   133k|			return ctx;
   95|   133k|		}
   96|      0|		return std::make_unique<internal::LogContext>(level, source);
   97|   133k|	}
_ZN4pcpp6Logger4emitENSt3__110unique_ptrINS_8internal10LogContextENS1_14default_deleteIS4_EEEE:
  100|   133k|	{
  101|   133k|		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|   133k|		if (m_UseContextPooling)
  ------------------
  |  Branch (103:7): [True: 133k, False: 0]
  ------------------
  104|   133k|		{
  105|   133k|			m_LogContextPool.releaseObject(std::move(message));
  106|   133k|		}
  107|   133k|	}
_ZN4pcpp6Logger4emitERKNS_9LogSourceENS_8LogLevelERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
  110|   133k|	{
  111|       |		// If the log level is an error, save the error to the last error message variable.
  112|   133k|		if (logLevel == LogLevel::Error)
  ------------------
  |  Branch (112:7): [True: 128k, False: 5.16k]
  ------------------
  113|   128k|		{
  114|   128k|			static_assert(m_LastError.size() >= 1,
  115|   128k|			              "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|   128k|			auto const copied = message.copy(m_LastError.data(), m_LastError.size() - 1);
  119|   128k|			m_LastError[copied] = '\0';
  120|   128k|		}
  121|   133k|		if (m_LogsEnabled)
  ------------------
  |  Branch (121:7): [True: 0, False: 133k]
  ------------------
  122|      0|		{
  123|      0|			m_LogPrinter(logLevel, message, source.file, source.function, source.line);
  124|      0|		}
  125|   133k|	}

_ZNK4pcpp10MacAddress8toStringEv:
   11|   683k|	{
   12|   683k|		char str[19];
   13|   683k|		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: 683k]
  ------------------
   14|   683k|		             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|   683k|		return str;
   19|   683k|	}
_ZN4pcpp10MacAddressC2EPKhm:
   22|   696k|	{
   23|   696k|		if (addr == nullptr)
  ------------------
  |  Branch (23:7): [True: 0, False: 696k]
  ------------------
   24|      0|		{
   25|      0|			throw std::invalid_argument("Address pointer is null");
   26|      0|		}
   27|       |
   28|   696k|		if (size < 6)
  ------------------
  |  Branch (28:7): [True: 0, False: 696k]
  ------------------
   29|      0|		{
   30|      0|			throw std::out_of_range("Buffer size is smaller than MAC address size (6 bytes)");
   31|      0|		}
   32|       |
   33|   696k|		std::copy(addr, addr + 6, m_Address.begin());
   34|   696k|	}
_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|	}

_ZN4pcpp11hostToNet16Et:
  241|  2.45k|	{
  242|       |		return htobe16(host);
  243|  2.45k|	}
_ZN4pcpp11netToHost16Et:
  246|  4.90k|	{
  247|       |		return be16toh(net);
  248|  4.90k|	}
_ZN4pcpp11hostToNet32Ej:
  251|  2.45k|	{
  252|       |		return htobe32(host);
  253|  2.45k|	}
_ZN4pcpp11netToHost32Ej:
  256|  20.2k|	{
  257|       |		return be32toh(net);
  258|  20.2k|	}

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

_ZNK4pcpp10Asn1Record10getTagTypeEv:
  164|    169|		{
  165|    169|			return m_TagType;
  166|    169|		}
_ZNK4pcpp10Asn1Record14getTotalLengthEv:
  176|  31.8k|		{
  177|  31.8k|			return m_TotalLength;
  178|  31.8k|		}
_ZN4pcpp21Asn1ConstructedRecord13getSubRecordsEv:
  313|  1.69k|		{
  314|  1.69k|			decodeValueIfNeeded();
  315|  1.69k|			return m_SubRecords;
  316|  1.69k|		};
_ZNK4pcpp14Asn1NullRecord11decodeValueEPKh:
  688|     48|		{}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EE11decodeValueEPKh:
  553|     98|		{
  554|     98|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  555|     98|		}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE19EE11decodeValueEPKh:
  553|      5|		{
  554|      5|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  555|      5|		}
_ZN4pcpp10Asn1Record6castAsINS_18Asn1SequenceRecordEEEPT_v:
  188|  1.67k|		{
  189|  1.67k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  1.67k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 25, False: 1.65k]
  ------------------
  191|     25|			{
  192|     25|				throw std::bad_cast();
  193|     25|			}
  194|  1.65k|			return result;
  195|  1.67k|		}
_ZNK4pcpp17Asn1IntegerRecord11getIntValueIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS4_EE5valueEiE4typeELi0EEES4_v:
  425|     42|		{
  426|     42|			decodeValueIfNeeded();
  427|     42|			return m_Value.getInt<T>();
  428|     42|		}
_ZNK4pcpp17Asn1IntegerRecord6BigInt6getIntIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS5_EE5valueEiE4typeELi0EEES5_v:
  476|     42|			{
  477|     42|				if (!canFit<T>())
  ------------------
  |  Branch (477:9): [True: 0, False: 42]
  ------------------
  478|      0|				{
  479|      0|					throw std::overflow_error("Value cannot fit into requested int type");
  480|      0|				}
  481|       |
  482|     42|				std::stringstream sstream;
  483|     42|				sstream << std::hex << m_Value;
  484|       |
  485|     42|				uint64_t result;
  486|     42|				sstream >> result;
  487|     42|				return static_cast<T>(result);
  488|     42|			}
_ZNK4pcpp17Asn1IntegerRecord6BigInt6canFitIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS5_EE5valueEiE4typeELi0EEEbv:
  491|     42|			{
  492|     42|				return sizeof(T) >= (m_Value.size() + 1) / 2;
  493|     42|			}
_ZN4pcpp10Asn1Record6castAsINS_21Asn1ConstructedRecordEEEPT_v:
  188|     90|		{
  189|     90|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|     90|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 0, False: 90]
  ------------------
  191|      0|			{
  192|      0|				throw std::bad_cast();
  193|      0|			}
  194|     90|			return result;
  195|     90|		}
_ZN4pcpp18Asn1SequenceRecordC2Ev:
  368|  3.05k|		Asn1SequenceRecord() = default;
_ZN4pcpp21Asn1ConstructedRecordC2Ev:
  319|  10.1k|		Asn1ConstructedRecord() = default;
_ZN4pcpp13Asn1SetRecordC2Ev:
  387|     28|		Asn1SetRecord() = default;
_ZN4pcpp17Asn1IntegerRecordC2Ev:
  447|  3.13k|		Asn1IntegerRecord() = default;
_ZN4pcpp19Asn1PrimitiveRecordC2Ev:
  398|  4.47k|		Asn1PrimitiveRecord() = default;
_ZN4pcpp20Asn1EnumeratedRecordC2Ev:
  526|  1.46k|		Asn1EnumeratedRecord() = default;
_ZN4pcpp21Asn1OctetStringRecordC2Ev:
  593|  1.49k|		Asn1OctetStringRecord() = default;
_ZN4pcpp25Asn1PrintableStringRecordC2Ev:
  627|      5|		Asn1PrintableStringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE19EEC2Ev:
  543|      5|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  544|      5|		{}
_ZN4pcpp17Asn1BooleanRecordC2Ev:
  671|     12|		Asn1BooleanRecord() = default;
_ZN4pcpp19Asn1BitStringRecordC2Ev:
  924|     20|		Asn1BitStringRecord() = default;
_ZN4pcpp26Asn1ObjectIdentifierRecordC2Ev:
  779|  1.29k|		Asn1ObjectIdentifierRecord() = default;
_ZN4pcpp17Asn1UtcTimeRecordC2Ev:
  839|      5|		Asn1UtcTimeRecord() = default;
_ZN4pcpp14Asn1TimeRecordC2Ev:
  808|      5|		Asn1TimeRecord() = default;
_ZN4pcpp17Asn1GenericRecordC2Ev:
  278|  3.10k|		Asn1GenericRecord() = default;
_ZN4pcpp10Asn1RecordC2Ev:
  207|  19.2k|		Asn1Record() = default;
_ZN4pcpp10Asn1RecordD2Ev:
  197|  19.2k|		virtual ~Asn1Record() = default;
_ZN4pcpp17Asn1IntegerRecord6BigIntC2Ev:
  458|  3.13k|			BigInt() = default;
_ZN4pcpp20Asn1ObjectIdentifierC2Ev:
  746|  1.29k|		Asn1ObjectIdentifier() = default;
_ZN4pcpp19Asn1BitStringRecord6BitSetC2Ev:
  903|     20|			BitSet() = default;
_ZN4pcpp17Asn1GenericRecordD2Ev:
  268|  3.10k|		~Asn1GenericRecord() override = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EEC2Ev:
  543|  1.49k|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  544|  1.49k|		{}
_ZN4pcpp10Asn1Record6castAsINS_20Asn1EnumeratedRecordEEEPT_v:
  188|     42|		{
  189|     42|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|     42|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 0, False: 42]
  ------------------
  191|      0|			{
  192|      0|				throw std::bad_cast();
  193|      0|			}
  194|     42|			return result;
  195|     42|		}

_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2EhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  269|  25.5k|			prefix_and_ip(uint8_t prefixVal, const std::string& ipAddrVal) : prefix(prefixVal), ipAddr(ipAddrVal)
  270|  25.5k|			{}
_ZN4pcpp8BgpLayer9isBgpPortEtt:
   66|   237k|		{
   67|   237k|			return portSrc == 179 || portDst == 179;
  ------------------
  |  Branch (67:11): [True: 4.75k, False: 232k]
  |  Branch (67:29): [True: 26.0k, False: 206k]
  ------------------
   68|   237k|		}
_ZNK4pcpp8BgpLayer16getOsiModelLayerEv:
   92|  7.70k|		{
   93|  7.70k|			return OsiModelApplicationLayer;
   94|  7.70k|		}
_ZN4pcpp8BgpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  107|  51.1k|		    : Layer(data, dataLen, prevLayer, packet, BGP)
  108|  51.1k|		{}
_ZNK4pcpp8BgpLayer14getBasicHeaderEv:
  111|   496k|		{
  112|   496k|			return reinterpret_cast<bgp_common_header*>(m_Data);
  113|   496k|		}
_ZN4pcpp19BgpOpenMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  172|  9.48k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  173|  9.48k|		{}
_ZNK4pcpp19BgpOpenMessageLayer16getOpenMsgHeaderEv:
  195|  16.0k|		{
  196|  16.0k|			return reinterpret_cast<bgp_open_message*>(m_Data);
  197|  16.0k|		}
_ZNK4pcpp19BgpOpenMessageLayer17getBgpMessageTypeEv:
  235|  6.70k|		{
  236|  6.70k|			return BgpLayer::Open;
  237|  6.70k|		}
_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2Ev:
  263|  6.43k|			prefix_and_ip() : prefix(0), ipAddr(IPv4Address::Zero)
  264|  6.43k|			{}
_ZN4pcpp21BgpUpdateMessageLayer14path_attributeC2Ev:
  289|  16.7k|			{}
_ZN4pcpp21BgpUpdateMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  306|  37.2k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  307|  37.2k|		{}
_ZNK4pcpp21BgpUpdateMessageLayer17getBgpMessageTypeEv:
  401|  20.5k|		{
  402|  20.5k|			return BgpLayer::Update;
  403|  20.5k|		}
_ZN4pcpp27BgpNotificationMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  438|    635|		    : BgpLayer(data, dataLen, prevLayer, packet)
  439|    635|		{}
_ZNK4pcpp27BgpNotificationMessageLayer17getBgpMessageTypeEv:
  503|    508|		{
  504|    508|			return BgpLayer::Notification;
  505|    508|		}
_ZN4pcpp24BgpKeepaliveMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  527|  3.15k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  528|  3.15k|		{}
_ZNK4pcpp24BgpKeepaliveMessageLayer17getBgpMessageTypeEv:
  544|  2.48k|		{
  545|  2.48k|			return BgpLayer::Keepalive;
  546|  2.48k|		}
_ZN4pcpp27BgpRouteRefreshMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  574|    608|		    : BgpLayer(data, dataLen, prevLayer, packet)
  575|    608|		{}
_ZNK4pcpp27BgpRouteRefreshMessageLayer17getBgpMessageTypeEv:
  593|    484|		{
  594|    484|			return BgpLayer::RouteRefresh;
  595|    484|		}
_ZN4pcpp19BgpOpenMessageLayer18optional_parameterC2Ev:
  157|  7.43k|			optional_parameter() = default;

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

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

_ZNK4pcpp9DhcpLayer9getOpCodeEv:
  609|  3.41k|		{
  610|  3.41k|			return static_cast<BootpOpCodes>(getDhcpHeader()->opCode);
  611|  3.41k|		}
_ZNK4pcpp9DhcpLayer13getDhcpHeaderEv:
  603|  27.3k|		{
  604|  27.3k|			return reinterpret_cast<dhcp_header*>(m_Data);
  605|  27.3k|		}
_ZNK4pcpp9DhcpLayer18getClientIpAddressEv:
  616|  3.41k|		{
  617|  3.41k|			return getDhcpHeader()->clientIpAddress;
  618|  3.41k|		}
_ZNK4pcpp9DhcpLayer16getYourIpAddressEv:
  643|  3.41k|		{
  644|  3.41k|			return getDhcpHeader()->yourIpAddress;
  645|  3.41k|		}
_ZNK4pcpp9DhcpLayer18getServerIpAddressEv:
  630|  3.41k|		{
  631|  3.41k|			return getDhcpHeader()->serverIpAddress;
  632|  3.41k|		}
_ZNK4pcpp9DhcpLayer19getGatewayIpAddressEv:
  657|  3.41k|		{
  658|  3.41k|			return getDhcpHeader()->gatewayIpAddress;
  659|  3.41k|		}
_ZNK4pcpp10DhcpOption16getValueAsIpAddrEv:
  400|  3.36k|		{
  401|  3.36k|			return getValueAs<uint32_t>();
  402|  3.36k|		}
_ZNK4pcpp10DhcpOption16getValueAsStringEi:
  420|  3.36k|		{
  421|       |			// TODO: This will burn if valueOffset is negative.
  422|       |			// Should negative offsets even be allowed? Potentially change it to size_t?
  423|  3.36k|			if (m_Data == nullptr || getDataSize() < static_cast<size_t>(valueOffset) + 1)
  ------------------
  |  Branch (423:8): [True: 0, False: 3.36k]
  |  Branch (423:29): [True: 1.32k, False: 2.03k]
  ------------------
  424|  1.32k|				return "";
  425|       |
  426|  2.03k|			return std::string(reinterpret_cast<const char*>(m_Data->recordValue) + valueOffset,
  427|  2.03k|			                   static_cast<int>(m_Data->recordLen) - valueOffset);
  428|  3.36k|		}
_ZNK4pcpp10DhcpOption12getTotalSizeEv:
  471|  3.60M|		{
  472|  3.60M|			if (m_Data == nullptr)
  ------------------
  |  Branch (472:8): [True: 0, False: 3.60M]
  ------------------
  473|      0|				return 0;
  474|       |
  475|  3.60M|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (475:8): [True: 132k, False: 3.47M]
  ------------------
  476|  3.47M|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (476:8): [True: 3.09M, False: 383k]
  ------------------
  477|  3.22M|				return sizeof(uint8_t);
  478|       |
  479|   383k|			return sizeof(uint8_t) * 2 + static_cast<size_t>(m_Data->recordLen);
  480|  3.60M|		}
_ZNK4pcpp10DhcpOption11getDataSizeEv:
  483|  14.9k|		{
  484|  14.9k|			if (m_Data == nullptr)
  ------------------
  |  Branch (484:8): [True: 0, False: 14.9k]
  ------------------
  485|      0|				return 0;
  486|       |
  487|  14.9k|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (487:8): [True: 1.15k, False: 13.8k]
  ------------------
  488|  13.8k|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (488:8): [True: 1.48k, False: 12.3k]
  ------------------
  489|  2.63k|				return 0;
  490|       |
  491|  12.3k|			return m_Data->recordLen;
  492|  14.9k|		}
_ZN4pcpp10DhcpOptionC2EPh:
  391|   738k|		explicit DhcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  392|   738k|		{}
_ZN4pcpp10DhcpOption9canAssignEPKhm:
  453|   738k|		{
  454|   738k|			auto data = reinterpret_cast<TLVRawData const*>(recordRawData);
  455|   738k|			if (data == nullptr)
  ------------------
  |  Branch (455:8): [True: 0, False: 738k]
  ------------------
  456|      0|				return false;
  457|       |
  458|   738k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (458:8): [True: 4.87k, False: 733k]
  ------------------
  459|  4.87k|				return false;
  460|       |
  461|   733k|			if (data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (461:8): [True: 27.0k, False: 706k]
  ------------------
  462|   706k|			    data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (462:8): [True: 619k, False: 86.9k]
  ------------------
  463|   646k|				return true;
  464|       |
  465|  86.9k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  466|   733k|		}
_ZN4pcpp9DhcpLayer11isDataValidEPKhm:
  595|  19.3k|		{
  596|  19.3k|			return canReinterpretAs<dhcp_header>(data, dataLen);
  597|  19.3k|		}
_ZN4pcpp9DhcpLayer14parseNextLayerEv:
  744|  18.9k|		{}
_ZNK4pcpp9DhcpLayer12getHeaderLenEv:
  748|   435k|		{
  749|   435k|			return m_DataLen;
  750|   435k|		}
_ZNK4pcpp9DhcpLayer16getOsiModelLayerEv:
  822|  3.41k|		{
  823|  3.41k|			return OsiModelApplicationLayer;
  824|  3.41k|		}
_ZNK4pcpp9DhcpLayer17getOptionsBasePtrEv:
  831|   431k|		{
  832|   431k|			return m_Data + sizeof(dhcp_header);
  833|   431k|		}
_ZN4pcpp9DhcpLayer11isDhcpPortsEtt:
  845|   250k|	{
  846|   250k|		return ((portSrc == 68 && portDst == 67) || (portSrc == 67 && portDst == 68) ||
  ------------------
  |  Branch (846:12): [True: 14.3k, False: 235k]
  |  Branch (846:29): [True: 14.2k, False: 144]
  |  Branch (846:48): [True: 5.19k, False: 230k]
  |  Branch (846:65): [True: 2.01k, False: 3.18k]
  ------------------
  847|   233k|		        (portSrc == 67 && portDst == 67));
  ------------------
  |  Branch (847:12): [True: 3.18k, False: 230k]
  |  Branch (847:29): [True: 3.16k, False: 16]
  ------------------
  848|   250k|	}
_ZN4pcpp9DhcpLayerD2Ev:
  592|  18.9k|		~DhcpLayer() override = default;

_ZN4pcpp12DhcpV6OptionC2EPh:
  192|  12.3k|		explicit DhcpV6Option(uint8_t* optionRawData) : TLVRecord(optionRawData)
  193|  12.3k|		{}
_ZN4pcpp11DhcpV6Layer14parseNextLayerEv:
  353|  5.40k|		{}
_ZNK4pcpp11DhcpV6Layer12getHeaderLenEv:
  357|  11.5k|		{
  358|  11.5k|			return m_DataLen;
  359|  11.5k|		}
_ZN4pcpp11DhcpV6Layer22computeCalculateFieldsEv:
  363|  1.05k|		{}
_ZNK4pcpp11DhcpV6Layer16getOsiModelLayerEv:
  390|  1.05k|		{
  391|  1.05k|			return OsiModelApplicationLayer;
  392|  1.05k|		}
_ZNK4pcpp11DhcpV6Layer17getOptionsBasePtrEv:
  399|  10.4k|		{
  400|  10.4k|			return m_Data + sizeof(dhcpv6_header);
  401|  10.4k|		}
_ZNK4pcpp11DhcpV6Layer13getDhcpHeaderEv:
  403|  3.16k|		{
  404|  3.16k|			return reinterpret_cast<dhcpv6_header*>(m_Data);
  405|  3.16k|		}
_ZN4pcpp11DhcpV6Layer12isDhcpV6PortEt:
  414|   226k|	{
  415|   226k|		return (port == 546) || (port == 547);
  ------------------
  |  Branch (415:10): [True: 1.60k, False: 225k]
  |  Branch (415:27): [True: 3.79k, False: 221k]
  ------------------
  416|   226k|	}
_ZN4pcpp11DhcpV6Layer11isDataValidEPKhm:
  419|  5.40k|	{
  420|  5.40k|		return data && dataLen >= sizeof(dhcpv6_header);
  ------------------
  |  Branch (420:10): [True: 5.40k, False: 0]
  |  Branch (420:18): [True: 5.40k, False: 0]
  ------------------
  421|  5.40k|	}

_ZN4pcpp8DnsLayer14parseNextLayerEv:
  354|  41.5k|		{}
_ZNK4pcpp8DnsLayer12getHeaderLenEv:
  359|  98.0k|		{
  360|  98.0k|			return m_DataLen;
  361|  98.0k|		}  // No layer above DNS
_ZN4pcpp8DnsLayer22computeCalculateFieldsEv:
  365|  7.90k|		{}
_ZNK4pcpp8DnsLayer16getOsiModelLayerEv:
  370|  8.55k|		{
  371|  8.55k|			return OsiModelApplicationLayer;
  372|  8.55k|		}
_ZN4pcpp15DnsOverTcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  440|  3.26k|		    : DnsLayer(data, dataLen, prevLayer, packet, sizeof(uint16_t))
  441|  3.26k|		{}
_ZN4pcpp8DnsLayer9isDnsPortEt:
  469|   680k|	{
  470|   680k|		switch (port)
  471|   680k|		{
  472|  31.2k|		case 53:
  ------------------
  |  Branch (472:3): [True: 31.2k, False: 648k]
  ------------------
  473|  37.8k|		case 5353:
  ------------------
  |  Branch (473:3): [True: 6.56k, False: 673k]
  ------------------
  474|  41.5k|		case 5355:
  ------------------
  |  Branch (474:3): [True: 3.72k, False: 676k]
  ------------------
  475|  41.5k|			return true;
  476|   638k|		default:
  ------------------
  |  Branch (476:3): [True: 638k, False: 41.5k]
  ------------------
  477|   638k|			return false;
  478|   680k|		}
  479|   680k|	}
_ZN4pcpp8DnsLayer11isDataValidEPKhmb:
  482|   415k|	{
  483|   415k|		size_t minSize = sizeof(dnshdr) + (dnsOverTcp ? sizeof(uint16_t) : 0);
  ------------------
  |  Branch (483:38): [True: 191k, False: 224k]
  ------------------
  484|   415k|		return data && dataLen >= minSize;
  ------------------
  |  Branch (484:10): [True: 415k, False: 0]
  |  Branch (484:18): [True: 355k, False: 60.0k]
  ------------------
  485|   415k|	}

_ZNK4pcpp12IDnsResource15getNextResourceEv:
   47|   518k|		{
   48|   518k|			return m_NextResource;
   49|   518k|		}
_ZN4pcpp12IDnsResource15setNextResourceEPS0_:
   51|   145k|		{
   52|   145k|			m_NextResource = next;
   53|   145k|		}
_ZNK4pcpp12IDnsResource7getNameEv:
   78|  88.9k|		{
   79|  88.9k|			return m_DecodedName;
   80|  88.9k|		}
_ZN4pcpp8DnsQueryC2EPNS_8DnsLayerEm:
  117|  78.7k|		DnsQuery(DnsLayer* dnsLayer, size_t offsetInLayer) : IDnsResource(dnsLayer, offsetInLayer)
  118|  78.7k|		{}
_ZN4pcpp8DnsQueryC2EPh:
  120|  8.55k|		explicit DnsQuery(uint8_t* emptyRawData) : IDnsResource(emptyRawData)
  121|  8.55k|		{}
_ZNK4pcpp8DnsQuery7getSizeEv:
  128|   154k|		{
  129|   154k|			return m_NameLength + 2 * sizeof(uint16_t);
  130|   154k|		}
_ZNK4pcpp8DnsQuery7getTypeEv:
  132|  94.7k|		{
  133|  94.7k|			return DnsQueryType;
  134|  94.7k|		}
_ZN4pcpp11DnsResourceC2EPNS_8DnsLayerEmNS_15DnsResourceTypeE:
  147|  58.5k|		    : IDnsResource(dnsLayer, offsetInLayer)
  148|  58.5k|		{
  149|  58.5k|			m_ResourceType = resourceType;
  150|  58.5k|		}
_ZN4pcpp11DnsResourceC2EPhNS_15DnsResourceTypeE:
  153|  25.6k|		    : IDnsResource(emptyRawData), m_ResourceType(resType)
  154|  25.6k|		{}
_ZNK4pcpp11DnsResource7getSizeEv:
  219|   166k|		{
  220|   166k|			return m_NameLength + 3 * sizeof(uint16_t) + sizeof(uint32_t) + getDataLength();
  221|   166k|		}
_ZNK4pcpp11DnsResource7getTypeEv:
  223|   124k|		{
  224|   124k|			return m_ResourceType;
  225|   124k|		}
_ZN4pcpp12IDnsResourceD2Ev:
   60|   171k|		virtual ~IDnsResource() = default;

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

_ZN4pcpp9DoIpLayer10isDoIpPortEt:
  667|   517k|	{
  668|   517k|		auto portAsEnum = static_cast<DoIpPorts>(port);
  669|   517k|		return (portAsEnum == DoIpPorts::TCP_UDP_PORT || portAsEnum == DoIpPorts::TLS_PORT);
  ------------------
  |  Branch (669:11): [True: 15, False: 517k]
  |  Branch (669:52): [True: 20, False: 517k]
  ------------------
  670|   517k|	}
_ZN4pcpp9DoIpLayer18isPayloadTypeValidEt:
  714|     35|	{
  715|     35|		const DoIpPayloadTypes payloadType = static_cast<DoIpPayloadTypes>(type);
  716|       |
  717|     35|		switch (payloadType)
  718|     35|		{
  719|      0|		case DoIpPayloadTypes::GENERIC_HEADER_NACK:
  ------------------
  |  Branch (719:3): [True: 0, False: 35]
  ------------------
  720|      0|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST:
  ------------------
  |  Branch (720:3): [True: 0, False: 35]
  ------------------
  721|      0|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID:
  ------------------
  |  Branch (721:3): [True: 0, False: 35]
  ------------------
  722|      0|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN:
  ------------------
  |  Branch (722:3): [True: 0, False: 35]
  ------------------
  723|      0|		case DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE:
  ------------------
  |  Branch (723:3): [True: 0, False: 35]
  ------------------
  724|      0|		case DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST:
  ------------------
  |  Branch (724:3): [True: 0, False: 35]
  ------------------
  725|      0|		case DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE:
  ------------------
  |  Branch (725:3): [True: 0, False: 35]
  ------------------
  726|      0|		case DoIpPayloadTypes::ALIVE_CHECK_REQUEST:
  ------------------
  |  Branch (726:3): [True: 0, False: 35]
  ------------------
  727|      0|		case DoIpPayloadTypes::ALIVE_CHECK_RESPONSE:
  ------------------
  |  Branch (727:3): [True: 0, False: 35]
  ------------------
  728|      0|		case DoIpPayloadTypes::ENTITY_STATUS_REQUEST:
  ------------------
  |  Branch (728:3): [True: 0, False: 35]
  ------------------
  729|      0|		case DoIpPayloadTypes::ENTITY_STATUS_RESPONSE:
  ------------------
  |  Branch (729:3): [True: 0, False: 35]
  ------------------
  730|      0|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST:
  ------------------
  |  Branch (730:3): [True: 0, False: 35]
  ------------------
  731|      0|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE:
  ------------------
  |  Branch (731:3): [True: 0, False: 35]
  ------------------
  732|      0|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE:
  ------------------
  |  Branch (732:3): [True: 0, False: 35]
  ------------------
  733|      0|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK:
  ------------------
  |  Branch (733:3): [True: 0, False: 35]
  ------------------
  734|      0|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK:
  ------------------
  |  Branch (734:3): [True: 0, False: 35]
  ------------------
  735|      0|			return true;
  736|       |
  737|     35|		default:
  ------------------
  |  Branch (737:3): [True: 35, False: 0]
  ------------------
  738|     35|			PCPP_LOG_DEBUG("[Malformed doip packet]: Invalid DoIP payload type: 0x" << std::hex << type);
  ------------------
  |  |  426|     35|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|     35|	do                                                                                                                 \
  |  |  |  |  414|     35|	{                                                                                                                  \
  |  |  |  |  415|     35|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|     35|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     35|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 35]
  |  |  |  |  ------------------
  |  |  |  |  417|     35|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|     35|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 35]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  739|     35|			return false;
  740|     35|		}
  741|     35|	}

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

_ZN4pcpp8EthLayerC2EPhmPNS_6PacketE:
   76|   872k|		EthLayer(uint8_t* data, size_t dataLen, Packet* packet) : Layer(data, dataLen, nullptr, packet, Ethernet)
   77|   872k|		{}
_ZN4pcpp8EthLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   85|  6.01k|		    : Layer(data, dataLen, prevLayer, packet, Ethernet)
   86|  6.01k|		{}
_ZNK4pcpp8EthLayer12getEthHeaderEv:
  101|  1.71M|		{
  102|  1.71M|			return reinterpret_cast<ether_header*>(m_Data);
  103|  1.71M|		}
_ZNK4pcpp8EthLayer12getSourceMacEv:
  108|   336k|		{
  109|   336k|			return MacAddress(getEthHeader()->srcMac);
  110|   336k|		}
_ZNK4pcpp8EthLayer10getDestMacEv:
  122|   336k|		{
  123|   336k|			return MacAddress(getEthHeader()->dstMac);
  124|   336k|		}
_ZNK4pcpp8EthLayer12getHeaderLenEv:
  141|   259k|		{
  142|   259k|			return sizeof(ether_header);
  143|   259k|		}
_ZNK4pcpp8EthLayer16getOsiModelLayerEv:
  151|   168k|		{
  152|   168k|			return OsiModelDataLinkLayer;
  153|   168k|		}

_ZN4pcpp8FtpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   17|  20.0k|		    : SingleCommandTextProtocol(data, dataLen, prevLayer, packet, FTPControl) {};
_ZN4pcpp8FtpLayer9isFtpPortEt:
   25|   344k|		{
   26|   344k|			return port == 21;
   27|   344k|		}
_ZN4pcpp8FtpLayer13isFtpDataPortEt:
   32|   316k|		{
   33|   316k|			return port == 20;
   34|   316k|		}
_ZN4pcpp8FtpLayer14parseNextLayerEv:
   40|  20.0k|		{}
_ZNK4pcpp8FtpLayer12getHeaderLenEv:
   44|  3.80k|		{
   45|  3.80k|			return m_DataLen;
   46|  3.80k|		}
_ZN4pcpp8FtpLayer22computeCalculateFieldsEv:
   50|  3.80k|		{}
_ZNK4pcpp8FtpLayer16getOsiModelLayerEv:
   54|  3.80k|		{
   55|  3.80k|			return OsiModelApplicationLayer;
   56|  3.80k|		}
_ZN4pcpp15FtpRequestLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  220|  6.82k|		    : FtpLayer(data, dataLen, prevLayer, packet) {};
_ZN4pcpp16FtpResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  396|  13.2k|		    : FtpLayer(data, dataLen, prevLayer, packet) {};
_ZN4pcpp12FtpDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  448|  1.45k|		    : PayloadLayer(data, dataLen, prevLayer, packet)
  449|  1.45k|		{
  450|  1.45k|			m_Protocol = FTPData;
  451|  1.45k|		};

_ZNK4pcpp8GreLayer16getOsiModelLayerEv:
  137|  5.94k|		{
  138|  5.94k|			return OsiModelNetworkLayer;
  139|  5.94k|		}
_ZN4pcpp8GreLayerC2EPhmPNS_5LayerEPNS_6PacketEh:
  197|  36.4k|		    : Layer(data, dataLen, prevLayer, packet, protocol)
  198|  36.4k|		{}
_ZN4pcpp10GREv0LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  229|  15.8k|		    : GreLayer(data, dataLen, prevLayer, packet, GREv0)
  230|  15.8k|		{}
_ZNK4pcpp10GREv0Layer12getGreHeaderEv:
  245|  19.9k|		{
  246|  19.9k|			return reinterpret_cast<gre_basic_header*>(m_Data);
  247|  19.9k|		}
_ZN4pcpp10GREv0Layer11isDataValidEPKhm:
  302|  15.8k|		{
  303|  15.8k|			return data && dataLen >= sizeof(gre_basic_header);
  ------------------
  |  Branch (303:11): [True: 15.8k, False: 0]
  |  Branch (303:19): [True: 15.8k, False: 0]
  ------------------
  304|  15.8k|		}
_ZN4pcpp10GREv1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  359|  20.5k|		    : GreLayer(data, dataLen, prevLayer, packet, GREv1)
  360|  20.5k|		{}
_ZNK4pcpp10GREv1Layer12getGreHeaderEv:
  377|  5.63k|		{
  378|  5.63k|			return reinterpret_cast<gre1_header*>(m_Data);
  379|  5.63k|		}
_ZN4pcpp10GREv1Layer11isDataValidEPKhm:
  404|  20.5k|		{
  405|  20.5k|			return data && dataLen >= sizeof(gre1_header);
  ------------------
  |  Branch (405:11): [True: 20.5k, False: 0]
  |  Branch (405:19): [True: 20.5k, False: 0]
  ------------------
  406|  20.5k|		}
_ZN4pcpp13PPP_PPTPLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  465|  6.17k|		    : Layer(data, dataLen, prevLayer, packet, PPP_PPTP)
  466|  6.17k|		{}
_ZNK4pcpp13PPP_PPTPLayer17getPPP_PPTPHeaderEv:
  479|  6.86k|		{
  480|  6.86k|			return reinterpret_cast<ppp_pptp_header*>(m_Data);
  481|  6.86k|		}
_ZNK4pcpp13PPP_PPTPLayer12getHeaderLenEv:
  496|  6.86k|		{
  497|  6.86k|			return sizeof(ppp_pptp_header);
  498|  6.86k|		}
_ZNK4pcpp13PPP_PPTPLayer8toStringEv:
  505|  1.38k|		{
  506|  1.38k|			return "PPP for PPTP Layer";
  507|  1.38k|		}
_ZNK4pcpp13PPP_PPTPLayer16getOsiModelLayerEv:
  510|    690|		{
  511|    690|			return OsiModelSessionLayer;
  512|    690|		}
_ZN4pcpp13PPP_PPTPLayer11isDataValidEPKhm:
  547|  6.57k|	{
  548|  6.57k|		return data && dataLen >= sizeof(ppp_pptp_header);
  ------------------
  |  Branch (548:10): [True: 6.57k, False: 0]
  |  Branch (548:18): [True: 6.17k, False: 392]
  ------------------
  549|  6.57k|	}

_ZN4pcpp10GtpV1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  291|  21.7k|		    : Layer(data, dataLen, prevLayer, packet, GTPv1)
  292|  21.7k|		{}
_ZNK4pcpp10GtpV1Layer9getHeaderEv:
  322|  94.5k|		{
  323|  94.5k|			return reinterpret_cast<gtpv1_header*>(m_Data);
  324|  94.5k|		}
_ZN4pcpp10GtpV1Layer11isGTPv1PortEt:
  387|   265k|		{
  388|   265k|			return port == 2152 /* GTP-U */ || port == 2123 /* GTP-C */;
  ------------------
  |  Branch (388:11): [True: 23.0k, False: 242k]
  |  Branch (388:39): [True: 9.06k, False: 233k]
  ------------------
  389|   265k|		}
_ZNK4pcpp10GtpV1Layer16getOsiModelLayerEv:
  409|  3.41k|		{
  410|  3.41k|			return OsiModelTransportLayer;
  411|  3.41k|		}
_ZN4pcpp16GtpV2MessageTypeC2ENS0_5ValueE:
  595|  10.9k|		constexpr GtpV2MessageType(Value value) : m_Value(value)
  596|  10.9k|		{}
_ZNK4pcpp16GtpV2MessageTypecvNS0_5ValueEEv:
  609|  5.63k|		{
  610|  5.63k|			return m_Value;
  611|  5.63k|		}
_ZN4pcpp10GtpV2LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  980|  16.9k|		    : Layer(data, dataLen, prevLayer, packet, GTPv2)
  981|  16.9k|		{}
_ZN4pcpp10GtpV2Layer11isGTPv2PortEt:
  997|   454k|		{
  998|   454k|			return port == 2123;
  999|   454k|		}
_ZNK4pcpp10GtpV2Layer16getOsiModelLayerEv:
 1113|  2.71k|		{
 1114|  2.71k|			return OsiModelTransportLayer;
 1115|  2.71k|		}
_ZNK4pcpp10GtpV2Layer9getHeaderEv:
 1134|  36.8k|		{
 1135|  36.8k|			return reinterpret_cast<gtpv2_basic_header*>(m_Data);
 1136|  36.8k|		}
_ZN4pcpp10GtpV2LayerD2Ev:
  972|  16.9k|		~GtpV2Layer() override = default;

_ZN4pcpp9GvcpLayer10isGvcpPortEt:
   94|  98.6k|		{
   95|  98.6k|			return port == 3956;
   96|  98.6k|		}

_ZN4pcpp11HttpMessage10isHttpPortEt:
   75|   962k|		{
   76|   962k|			return port == 80 || port == 8080;
  ------------------
  |  Branch (76:11): [True: 28.8k, False: 933k]
  |  Branch (76:25): [True: 82.8k, False: 850k]
  ------------------
   77|   962k|		}
_ZNK4pcpp22HttpResponseStatusCode17isUnsupportedCodeEv:
  454|  14.3k|		{
  455|  14.3k|			return m_Value > 599;
  456|  14.3k|		}
_ZNK4pcpp11HttpMessage16getOsiModelLayerEv:
   88|  17.0k|		{
   89|  17.0k|			return OsiModelApplicationLayer;
   90|  17.0k|		}
_ZN4pcpp11HttpMessageC2EPhmPNS_5LayerEPNS_6PacketEh:
   94|  89.6k|		    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, protocol)
   95|  89.6k|		{}
_ZNK4pcpp11HttpMessage32getHeaderFieldNameValueSeparatorEv:
  108|  89.6k|		{
  109|  89.6k|			return ':';
  110|  89.6k|		}
_ZNK4pcpp11HttpMessage43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  112|  89.6k|		{
  113|  89.6k|			return true;
  114|  89.6k|		}
_ZN4pcpp22HttpResponseStatusCodeC2ENS0_5ValueE:
  416|    440|		HttpResponseStatusCode(Value statusCode) : m_Value(statusCode)
  417|    440|		{}
_ZNK4pcpp22HttpResponseStatusCodecvNS0_5ValueEEv:
  431|  28.5k|		{
  432|  28.5k|			return m_Value;
  433|  28.5k|		}
_ZNK4pcpp20HttpRequestFirstLine7getSizeEv:
  613|   104k|		{
  614|   104k|			return m_FirstLineEndOffset;
  615|   104k|		}
_ZN4pcpp20HttpRequestFirstLine29HttpRequestFirstLineExceptionD2Ev:
  634|  75.4k|			{}
_ZNK4pcpp21HttpResponseFirstLine7getSizeEv:
  733|  19.0k|		{
  734|  19.0k|			return m_FirstLineEndOffset;
  735|  19.0k|		}
_ZN4pcpp21HttpResponseFirstLine30HttpResponseFirstLineExceptionD2Ev:
  755|  14.1k|			{}
_ZN4pcpp22HttpResponseStatusCodeC2Ev:
  411|  14.1k|		HttpResponseStatusCode() = default;

_ZN4pcpp7IPLayerC2Ev:
   20|   948k|		IPLayer() = default;
_ZN4pcpp7IPLayerD2Ev:
   32|   948k|		virtual ~IPLayer() = default;

_ZN4pcpp25AuthenticationHeaderLayer11isDataValidEPKhm:
  228|  1.42k|	{
  229|  1.42k|		if (dataLen < sizeof(ipsec_authentication_header))
  ------------------
  |  Branch (229:7): [True: 0, False: 1.42k]
  ------------------
  230|      0|			return false;
  231|       |
  232|  1.42k|		size_t payloadLen = 4 * (data[1] + 2);
  233|  1.42k|		if (payloadLen < sizeof(ipsec_authentication_header) || payloadLen > dataLen)
  ------------------
  |  Branch (233:7): [True: 0, False: 1.42k]
  |  Branch (233:59): [True: 6, False: 1.42k]
  ------------------
  234|      6|			return false;
  235|       |
  236|  1.42k|		return true;
  237|  1.42k|	}
_ZN4pcpp25AuthenticationHeaderLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   54|  1.42k|		    : Layer(data, dataLen, prevLayer, packet, AuthenticationHeader)
   55|  1.42k|		{}
_ZN4pcpp8ESPLayer11isDataValidEPKhm:
  240|     95|	{
  241|     95|		return data && dataLen >= sizeof(ipsec_esp);
  ------------------
  |  Branch (241:10): [True: 95, False: 0]
  |  Branch (241:18): [True: 95, False: 0]
  ------------------
  242|     95|	}
_ZN4pcpp8ESPLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  153|     95|		    : Layer(data, dataLen, prevLayer, packet, ESP)
  154|     95|		{}
_ZNK4pcpp25AuthenticationHeaderLayer11getAHHeaderEv:
   61|  3.13k|		{
   62|  3.13k|			return reinterpret_cast<ipsec_authentication_header*>(m_Data);
   63|  3.13k|		}
_ZNK4pcpp25AuthenticationHeaderLayer12getHeaderLenEv:
   90|  1.70k|		{
   91|  1.70k|			return static_cast<size_t>(4) * (getAHHeader()->payloadLen + 2);
   92|  1.70k|		}
_ZN4pcpp25AuthenticationHeaderLayer22computeCalculateFieldsEv:
  100|    285|		{}
_ZNK4pcpp25AuthenticationHeaderLayer16getOsiModelLayerEv:
  105|    285|		{
  106|    285|			return OsiModelNetworkLayer;
  107|    285|		}
_ZNK4pcpp8ESPLayer12getESPHeaderEv:
  157|     38|		{
  158|     38|			return reinterpret_cast<ipsec_esp*>(m_Data);
  159|     38|		}
_ZNK4pcpp8ESPLayer12getHeaderLenEv:
  177|    114|		{
  178|    114|			return sizeof(ipsec_esp);
  179|    114|		}
_ZN4pcpp8ESPLayer22computeCalculateFieldsEv:
  186|     19|		{}
_ZNK4pcpp8ESPLayer16getOsiModelLayerEv:
  191|     19|		{
  192|     19|			return OsiModelTransportLayer;
  193|     19|		}

_ZNK4pcpp9IPv4Layer13getIPv4HeaderEv:
  450|  5.85M|		{
  451|  5.85M|			return reinterpret_cast<iphdr*>(m_Data);
  452|  5.85M|		}
_ZNK4pcpp9IPv4Layer15getSrcIPAddressEv:
  458|  1.47k|		{
  459|  1.47k|			return getSrcIPv4Address();
  460|  1.47k|		}
_ZNK4pcpp9IPv4Layer17getSrcIPv4AddressEv:
  465|   423k|		{
  466|   423k|			return getIPv4Header()->ipSrc;
  467|   423k|		}
_ZNK4pcpp9IPv4Layer15getDstIPAddressEv:
  480|  1.47k|		{
  481|  1.47k|			return getDstIPv4Address();
  482|  1.47k|		}
_ZNK4pcpp9IPv4Layer17getDstIPv4AddressEv:
  487|   423k|		{
  488|   423k|			return getIPv4Header()->ipDst;
  489|   423k|		}
_ZNK4pcpp9IPv4Layer12getHeaderLenEv:
  584|  1.12M|		{
  585|  1.12M|			return static_cast<size_t>(static_cast<uint16_t>(getIPv4Header()->internetHeaderLength) * 4) +
  586|  1.12M|			       m_TempHeaderExtension;
  587|  1.12M|		}
_ZNK4pcpp9IPv4Layer16getOsiModelLayerEv:
  600|   146k|		{
  601|   146k|			return OsiModelNetworkLayer;
  602|   146k|		}
_ZN4pcpp9IPv4Layer11isDataValidEPKhm:
  675|   788k|	{
  676|   788k|		const iphdr* hdr = reinterpret_cast<const iphdr*>(data);
  677|   788k|		return canReinterpretAs<iphdr>(data, dataLen) && hdr->ipVersion == 4 && hdr->internetHeaderLength >= 5;
  ------------------
  |  Branch (677:10): [True: 786k, False: 2.21k]
  |  Branch (677:52): [True: 783k, False: 2.83k]
  |  Branch (677:75): [True: 782k, False: 282]
  ------------------
  678|   788k|	}

_ZNK4pcpp13IPv6Extension15getExtensionLenEv:
   41|  7.51k|		{
   42|  7.51k|			return 8 * (getBaseHeader()->headerLen + 1);
   43|  7.51k|		}
_ZNK4pcpp13IPv6Extension16getExtensionTypeEv:
   47|  3.67k|		{
   48|  3.67k|			return m_ExtType;
   49|  3.67k|		}
_ZNK4pcpp13IPv6Extension13getNextHeaderEv:
   58|  7.66k|		{
   59|  7.66k|			return m_NextHeader;
   60|  7.66k|		}
_ZN4pcpp13IPv6ExtensionC2EPNS_14IDataContainerEm:
   71|  4.65k|		    : m_NextHeader(nullptr), m_ExtType(IPv6ExtensionUnknown), m_DataContainer(dataContainer), m_Offset(offset),
   72|  4.65k|		      m_ShadowData(nullptr)
   73|  4.65k|		{}
_ZNK4pcpp13IPv6Extension13getBaseHeaderEv:
   89|  17.4k|		{
   90|  17.4k|			return reinterpret_cast<ipv6_ext_base_header*>(getDataPtr());
   91|  17.4k|		}
_ZN4pcpp13IPv6Extension13setNextHeaderEPS0_:
   94|    540|		{
   95|    540|			m_NextHeader = nextHeader;
   96|    540|		}
_ZN4pcpp23IPv6FragmentationHeaderC2EPNS_14IDataContainerEm:
  157|    881|		IPv6FragmentationHeader(IDataContainer* dataContainer, size_t offset) : IPv6Extension(dataContainer, offset)
  158|    881|		{
  159|    881|			m_ExtType = IPv6Fragmentation;
  160|    881|		}
_ZN4pcpp18IPv6HopByHopHeaderC2EPNS_14IDataContainerEm:
  328|  2.87k|		IPv6HopByHopHeader(IDataContainer* dataContainer, size_t offset) : IPv6TLVOptionHeader(dataContainer, offset)
  329|  2.87k|		{
  330|  2.87k|			m_ExtType = IPv6HopByHop;
  331|  2.87k|		}
_ZNK4pcpp24IPv6AuthenticationHeader15getExtensionLenEv:
  483|  1.80k|		{
  484|  1.80k|			return 4 * (getBaseHeader()->headerLen + 2);
  485|  1.80k|		}
_ZN4pcpp24IPv6AuthenticationHeaderC2EPNS_14IDataContainerEm:
  488|    902|		IPv6AuthenticationHeader(IDataContainer* dataContainer, size_t offset) : IPv6Extension(dataContainer, offset)
  489|    902|		{
  490|    902|			m_ExtType = IPv6AuthenticationHdr;
  491|    902|		}

_ZN4pcpp9IPv6Layer11isDataValidEPKhm:
  304|   165k|	{
  305|   165k|		auto ip6Header = reinterpret_cast<const ip6_hdr*>(data);
  306|   165k|		return canReinterpretAs<ip6_hdr>(data, dataLen) && ip6Header->ipVersion == 6;
  ------------------
  |  Branch (306:10): [True: 165k, False: 422]
  |  Branch (306:54): [True: 165k, False: 199]
  ------------------
  307|   165k|	}
_ZNK4pcpp9IPv6Layer13getIPv6HeaderEv:
   83|   716k|		{
   84|   716k|			return reinterpret_cast<ip6_hdr*>(m_Data);
   85|   716k|		}
_ZNK4pcpp9IPv6Layer15getSrcIPAddressEv:
   91|  2.31k|		{
   92|  2.31k|			return getSrcIPv6Address();
   93|  2.31k|		}
_ZNK4pcpp9IPv6Layer17getSrcIPv6AddressEv:
   98|  97.6k|		{
   99|  97.6k|			return getIPv6Header()->ipSrc;
  100|  97.6k|		}
_ZNK4pcpp9IPv6Layer15getDstIPAddressEv:
  120|  2.31k|		{
  121|  2.31k|			return getDstIPv6Address();
  122|  2.31k|		}
_ZNK4pcpp9IPv6Layer17getDstIPv6AddressEv:
  127|  97.6k|		{
  128|  97.6k|			return getIPv6Header()->ipDst;
  129|  97.6k|		}
_ZNK4pcpp9IPv6Layer12getHeaderLenEv:
  177|   368k|		{
  178|   368k|			return sizeof(ip6_hdr) + m_ExtensionsLen;
  179|   368k|		}
_ZNK4pcpp9IPv6Layer16getOsiModelLayerEv:
  191|  32.6k|		{
  192|  32.6k|			return OsiModelNetworkLayer;
  193|  32.6k|		}

_ZNK4pcpp9IcmpLayer15isMessageOfTypeENS_15IcmpMessageTypeE:
  369|  30.6k|		{
  370|  30.6k|			return getMessageType() == type;
  371|  30.6k|		}
_ZN4pcpp9IcmpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  346|  21.0k|		    : Layer(data, dataLen, prevLayer, packet, ICMP)
  347|  21.0k|		{}
_ZNK4pcpp9IcmpLayer13getIcmpHeaderEv:
  359|   116k|		{
  360|   116k|			return reinterpret_cast<icmphdr*>(m_Data);
  361|   116k|		}
_ZNK4pcpp9IcmpLayer16getOsiModelLayerEv:
  612|  3.91k|		{
  613|  3.91k|			return OsiModelNetworkLayer;
  614|  3.91k|		}
_ZN4pcpp9IcmpLayer11isDataValidEPKhm:
  720|  21.2k|	{
  721|  21.2k|		if (dataLen < sizeof(icmphdr))
  ------------------
  |  Branch (721:7): [True: 0, False: 21.2k]
  ------------------
  722|      0|			return false;
  723|       |
  724|  21.2k|		uint8_t type = data[0];
  725|       |
  726|       |		// ICMP_ECHO_REQUEST, ICMP_ECHO_REPLY, ICMP_ROUTER_SOL
  727|  21.2k|		if (type == 8 || type == 0 || type == 10)
  ------------------
  |  Branch (727:7): [True: 3.17k, False: 18.0k]
  |  Branch (727:20): [True: 3.73k, False: 14.3k]
  |  Branch (727:33): [True: 0, False: 14.3k]
  ------------------
  728|  6.91k|			return true;
  729|       |
  730|       |		// ICMP_INFO_REQUEST, ICMP_INFO_REPLY
  731|  14.3k|		if (type == 15 || type == 16)
  ------------------
  |  Branch (731:7): [True: 0, False: 14.3k]
  |  Branch (731:21): [True: 5.76k, False: 8.54k]
  ------------------
  732|  5.76k|			return dataLen >= sizeof(icmp_info_request);
  733|       |
  734|       |		// ICMP_TIMESTAMP_REQUEST, ICMP_TIMESTAMP_REPLY
  735|  8.54k|		if (type == 13 || type == 14)
  ------------------
  |  Branch (735:7): [True: 248, False: 8.29k]
  |  Branch (735:21): [True: 776, False: 7.51k]
  ------------------
  736|  1.02k|			return dataLen >= sizeof(icmp_timestamp_request);
  737|       |
  738|       |		// ICMP_ADDRESS_MASK_REPLY, ICMP_ADDRESS_MASK_REQUEST
  739|  7.51k|		if (type == 17 || type == 18)
  ------------------
  |  Branch (739:7): [True: 0, False: 7.51k]
  |  Branch (739:21): [True: 2.04k, False: 5.47k]
  ------------------
  740|  2.04k|			return dataLen >= sizeof(icmp_address_mask_request);
  741|       |
  742|       |		// ICMP_DEST_UNREACHABLE
  743|  5.47k|		if (type == 3)
  ------------------
  |  Branch (743:7): [True: 3.24k, False: 2.23k]
  ------------------
  744|  3.24k|			return dataLen >= sizeof(icmp_destination_unreachable);
  745|       |
  746|       |		// ICMP_REDIRECT
  747|  2.23k|		if (type == 5)
  ------------------
  |  Branch (747:7): [True: 508, False: 1.72k]
  ------------------
  748|    508|			return dataLen >= sizeof(icmp_redirect);
  749|       |
  750|       |		// ICMP_TIME_EXCEEDED, ICMP_SOURCE_QUENCH
  751|  1.72k|		if (type == 4 || type == 11)
  ------------------
  |  Branch (751:7): [True: 268, False: 1.45k]
  |  Branch (751:20): [True: 456, False: 998]
  ------------------
  752|    724|			return dataLen >= sizeof(icmp_time_exceeded);
  753|       |
  754|       |		// ICMP_PARAM_PROBLEM
  755|    998|		if (type == 12)
  ------------------
  |  Branch (755:7): [True: 256, False: 742]
  ------------------
  756|    256|			return dataLen >= sizeof(icmp_param_problem);
  757|       |
  758|       |		// ICMP_ROUTER_ADV
  759|    742|		if (type == 9)
  ------------------
  |  Branch (759:7): [True: 540, False: 202]
  ------------------
  760|    540|			return dataLen >= sizeof(icmp_router_advertisement_hdr);
  761|       |
  762|    202|		return false;
  763|    742|	}

_ZN4pcpp11IcmpV6LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  132|  7.80k|		    : Layer(data, dataLen, prevLayer, packet, ICMPv6)
  133|  7.80k|		{}
_ZN4pcpp11IcmpV6Layer14parseNextLayerEv:
  170|  7.80k|		{}
_ZNK4pcpp11IcmpV6Layer12getHeaderLenEv:
  174|  4.13k|		{
  175|  4.13k|			return m_DataLen;
  176|  4.13k|		}
_ZNK4pcpp11IcmpV6Layer16getOsiModelLayerEv:
  182|  2.01k|		{
  183|  2.01k|			return OsiModelNetworkLayer;
  184|  2.01k|		}
_ZNK4pcpp11IcmpV6Layer15getIcmpv6HeaderEv:
  226|  6.50k|		{
  227|  6.50k|			return reinterpret_cast<icmpv6hdr*>(m_Data);
  228|  6.50k|		}
_ZN4pcpp15ICMPv6EchoLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  251|    864|		    : IcmpV6Layer(data, dataLen, prevLayer, packet)
  252|    864|		{}

_ZN4pcpp11IgmpV1Layer11isDataValidEPKhm:
  244|  2.87k|		{
  245|  2.87k|			return canReinterpretAs<igmp_header>(data, dataLen);
  246|  2.87k|		}
_ZN4pcpp11IgmpV1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  220|  2.87k|		    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv1)
  221|  2.87k|		{}
_ZN4pcpp9IgmpLayerC2EPhmPNS_5LayerEPNS_6PacketEh:
  142|  9.48k|		    : Layer(data, dataLen, prevLayer, packet, igmpVer)
  143|  9.48k|		{}
_ZN4pcpp11IgmpV2Layer11isDataValidEPKhm:
  287|  4.82k|		{
  288|  4.82k|			return canReinterpretAs<igmp_header>(data, dataLen);
  289|  4.82k|		}
_ZN4pcpp11IgmpV2LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  261|  4.82k|		    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv2)
  262|  4.82k|		{}
_ZN4pcpp17IgmpV3ReportLayer11isDataValidEPKhm:
  477|  1.78k|		{
  478|  1.78k|			return canReinterpretAs<igmpv3_report_header>(data, dataLen);
  479|  1.78k|		}
_ZN4pcpp17IgmpV3ReportLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  394|  1.78k|		    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv3)
  395|  1.78k|		{}
_ZNK4pcpp9IgmpLayer13getIgmpHeaderEv:
  158|  7.55k|		{
  159|  7.55k|			return reinterpret_cast<igmp_header*>(m_Data);
  160|  7.55k|		}
_ZN4pcpp9IgmpLayer14parseNextLayerEv:
  192|  9.48k|		{}
_ZNK4pcpp9IgmpLayer12getHeaderLenEv:
  196|  3.11k|		{
  197|  3.11k|			return sizeof(igmp_header);
  198|  3.11k|		}
_ZNK4pcpp9IgmpLayer16getOsiModelLayerEv:
  203|  2.00k|		{
  204|  2.00k|			return OsiModelNetworkLayer;
  205|  2.00k|		}
_ZNK4pcpp17IgmpV3ReportLayer15getReportHeaderEv:
  405|    443|		{
  406|    443|			return reinterpret_cast<igmpv3_report_header*>(m_Data);
  407|    443|		}
_ZNK4pcpp17IgmpV3ReportLayer12getHeaderLenEv:
  468|    886|		{
  469|    886|			return m_DataLen;
  470|    886|		}

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

_ZNK4pcpp5Layer12getNextLayerEv:
  127|  85.2M|		{
  128|  85.2M|			return m_NextLayer;
  129|  85.2M|		}
_ZNK4pcpp5Layer12getPrevLayerEv:
  133|  1.25M|		{
  134|  1.25M|			return m_PrevLayer;
  135|  1.25M|		}
_ZNK4pcpp5Layer11getProtocolEv:
  139|  61.4M|		{
  140|  61.4M|			return m_Protocol;
  141|  61.4M|		}
_ZNK4pcpp5Layer7getDataEv:
  150|   235k|		{
  151|   235k|			return m_Data;
  152|   235k|		}
_ZNK4pcpp5Layer10getDataLenEv:
  156|  2.42M|		{
  157|  2.42M|			return m_DataLen;
  158|  2.42M|		}
_ZNK4pcpp5Layer19getLayerPayloadSizeEv:
  168|  26.2k|		{
  169|  26.2k|			return m_DataLen - getHeaderLen();
  170|  26.2k|		}
_ZNK4pcpp5Layer19isAllocatedToPacketEv:
  182|  4.52M|		{
  183|  4.52M|			return m_AllocationInfo.attachedPacket != nullptr;
  184|  4.52M|		}
_ZNK4pcpp5Layer10getDataPtrEm:
  239|   106k|		{
  240|   106k|			return static_cast<uint8_t*>(m_Data + offset);
  241|   106k|		}
_ZN4pcpp5LayerC2EPhmPS0_PNS_6PacketEh:
  276|  4.40M|		    : m_Data(data), m_DataLen(dataLen), m_Protocol(protocol), m_NextLayer(nullptr), m_PrevLayer(prevLayer),
  277|  4.40M|		      m_AllocationInfo{ packet, false }
  278|  4.40M|		{}
_ZN4pcpp5Layer17getAttachedPacketEv:
  287|  3.95M|		{
  288|  3.95M|			return m_AllocationInfo.attachedPacket;
  289|  3.95M|		}
_ZNK4pcpp5Layer17getAttachedPacketEv:
  294|  3.78k|		{
  295|  3.78k|			return m_AllocationInfo.attachedPacket;
  296|  3.78k|		}
_ZN4pcpp5Layer12setNextLayerEPS0_:
  299|  3.50M|		{
  300|  3.50M|			m_NextLayer = nextLayer;
  301|  3.50M|		}
_ZNK4pcpp5Layer12hasNextLayerEv:
  327|  6.19M|		{
  328|  6.19M|			return m_NextLayer != nullptr;
  329|  6.19M|		}
_ZN4pcpp5Layer16canReinterpretAsINS_6arphdrEEEbPKhm:
  587|  18.0k|		{
  588|  18.0k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 18.0k, False: 0]
  |  Branch (588:30): [True: 17.9k, False: 132]
  ------------------
  589|  18.0k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_5iphdrEEEbPKhm:
  587|   788k|		{
  588|   788k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 788k, False: 0]
  |  Branch (588:30): [True: 786k, False: 2.21k]
  ------------------
  589|   788k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11dhcp_headerEEEbPKhm:
  587|  19.3k|		{
  588|  19.3k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 19.3k, False: 0]
  |  Branch (588:30): [True: 18.9k, False: 396]
  ------------------
  589|  19.3k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vrrp_headerEEEbPKhm:
  587|  9.49k|		{
  588|  9.49k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 9.49k, False: 0]
  |  Branch (588:30): [True: 9.49k, False: 0]
  ------------------
  589|  9.49k|		}
_ZN4pcpp14IDataContainerD2Ev:
   30|  4.52M|		virtual ~IDataContainer() = default;
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  387|  37.6k|		{
  388|  37.6k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|  37.6k|			                                               std::forward<Args>(extraArgs)...);
  390|  37.6k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  68.4k|		{
  412|  68.4k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 68.4k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  68.4k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  68.4k|			setNextLayer(newLayer);
  420|  68.4k|			return newLayer;
  421|  68.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|   747k|		{
  483|   747k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|   747k|			                                                       std::forward<Args>(extraArgs)...);
  485|   747k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|   747k|		{
  505|   747k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 742k, False: 5.00k]
  ------------------
  506|   742k|			{
  507|   742k|				return m_NextLayer;
  508|   742k|			}
  509|       |
  510|  5.00k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|   747k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|   747k|		{
  457|   747k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 742k, False: 5.00k]
  ------------------
  458|   742k|			{
  459|   742k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|   742k|			}
  461|  5.00k|			return nullptr;
  462|   747k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   742k|		{
  358|   742k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 742k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   742k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   742k|			setNextLayer(newLayer);
  365|   742k|			return newLayer;
  366|   742k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   279k|		{
  358|   279k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 279k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   279k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   279k|			setNextLayer(newLayer);
  365|   279k|			return newLayer;
  366|   279k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|   156k|		{
  483|   156k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|   156k|			                                                       std::forward<Args>(extraArgs)...);
  485|   156k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|   163k|		{
  505|   163k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 162k, False: 365]
  ------------------
  506|   162k|			{
  507|   162k|				return m_NextLayer;
  508|   162k|			}
  509|       |
  510|    365|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|   163k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|   163k|		{
  457|   163k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 162k, False: 365]
  ------------------
  458|   162k|			{
  459|   162k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|   162k|			}
  461|    365|			return nullptr;
  462|   163k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7ip6_hdrEEEbPKhm:
  587|   165k|		{
  588|   165k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 165k, False: 0]
  |  Branch (588:30): [True: 165k, False: 422]
  ------------------
  589|   165k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   162k|		{
  358|   162k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 162k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   162k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   162k|			setNextLayer(newLayer);
  365|   162k|			return newLayer;
  366|   162k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  60.6k|		{
  483|  60.6k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  60.6k|			                                                       std::forward<Args>(extraArgs)...);
  485|  60.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  60.6k|		{
  505|  60.6k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 60.4k, False: 151]
  ------------------
  506|  60.4k|			{
  507|  60.4k|				return m_NextLayer;
  508|  60.4k|			}
  509|       |
  510|    151|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  60.6k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  60.6k|		{
  457|  60.6k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 60.4k, False: 151]
  ------------------
  458|  60.4k|			{
  459|  60.4k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  60.4k|			}
  461|    151|			return nullptr;
  462|  60.6k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vlan_headerEEEbPKhm:
  587|  60.6k|		{
  588|  60.6k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 60.6k, False: 0]
  |  Branch (588:30): [True: 60.4k, False: 151]
  ------------------
  589|  60.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  60.4k|		{
  358|  60.4k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 60.4k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  60.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  60.4k|			setNextLayer(newLayer);
  365|  60.4k|			return newLayer;
  366|  60.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9MplsLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|   343k|		{
  483|   343k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|   343k|			                                                       std::forward<Args>(extraArgs)...);
  485|   343k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9MplsLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|   343k|		{
  505|   343k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 343k, False: 0]
  ------------------
  506|   343k|			{
  507|   343k|				return m_NextLayer;
  508|   343k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|   343k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9MplsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|   343k|		{
  457|   343k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 343k, False: 0]
  ------------------
  458|   343k|			{
  459|   343k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|   343k|			}
  461|      0|			return nullptr;
  462|   343k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_9MplsLayer11mpls_headerEEEbPKhm:
  587|   343k|		{
  588|   343k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 343k, False: 0]
  |  Branch (588:30): [True: 343k, False: 0]
  ------------------
  589|   343k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9MplsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   343k|		{
  358|   343k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 343k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   343k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   343k|			setNextLayer(newLayer);
  365|   343k|			return newLayer;
  366|   343k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_13PPP_PPTPLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  6.57k|		{
  483|  6.57k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  6.57k|			                                                       std::forward<Args>(extraArgs)...);
  485|  6.57k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_13PPP_PPTPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  6.57k|		{
  505|  6.57k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 6.17k, False: 392]
  ------------------
  506|  6.17k|			{
  507|  6.17k|				return m_NextLayer;
  508|  6.17k|			}
  509|       |
  510|    392|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  6.57k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  6.57k|		{
  457|  6.57k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 6.17k, False: 392]
  ------------------
  458|  6.17k|			{
  459|  6.17k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  6.17k|			}
  461|    392|			return nullptr;
  462|  6.57k|		}
_ZN4pcpp5Layer18constructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  6.17k|		{
  358|  6.17k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 6.17k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  6.17k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  6.17k|			setNextLayer(newLayer);
  365|  6.17k|			return newLayer;
  366|  6.17k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8EthLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  6.12k|		{
  457|  6.12k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 6.01k, False: 103]
  ------------------
  458|  6.01k|			{
  459|  6.01k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  6.01k|			}
  461|    103|			return nullptr;
  462|  6.12k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8EthLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  6.01k|		{
  358|  6.01k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 6.01k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  6.01k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  6.01k|			setNextLayer(newLayer);
  365|  6.01k|			return newLayer;
  366|  6.01k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmDpOT0_:
  343|  92.1k|		{
  344|  92.1k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  92.1k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GtpV2LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  10.1k|		{
  483|  10.1k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  10.1k|			                                                       std::forward<Args>(extraArgs)...);
  485|  10.1k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GtpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  10.1k|		{
  505|  10.1k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 8.31k, False: 1.78k]
  ------------------
  506|  8.31k|			{
  507|  8.31k|				return m_NextLayer;
  508|  8.31k|			}
  509|       |
  510|  1.78k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  10.1k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GtpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  10.1k|		{
  457|  10.1k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 8.31k, False: 1.78k]
  ------------------
  458|  8.31k|			{
  459|  8.31k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  8.31k|			}
  461|  1.78k|			return nullptr;
  462|  10.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  16.9k|		{
  358|  16.9k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 16.9k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  16.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  16.9k|			setNextLayer(newLayer);
  365|  16.9k|			return newLayer;
  366|  16.9k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|   250k|		{
  505|   250k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 250k, False: 47]
  ------------------
  506|   250k|			{
  507|   250k|				return m_NextLayer;
  508|   250k|			}
  509|       |
  510|     47|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|   250k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|   250k|		{
  457|   250k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 250k, False: 47]
  ------------------
  458|   250k|			{
  459|   250k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|   250k|			}
  461|     47|			return nullptr;
  462|   250k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   250k|		{
  358|   250k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 250k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   250k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   250k|			setNextLayer(newLayer);
  365|   250k|			return newLayer;
  366|   250k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|   579k|		{
  505|   579k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 576k, False: 3.08k]
  ------------------
  506|   576k|			{
  507|   576k|				return m_NextLayer;
  508|   576k|			}
  509|       |
  510|  3.08k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|   579k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|   579k|		{
  457|   579k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 576k, False: 3.08k]
  ------------------
  458|   576k|			{
  459|   576k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|   576k|			}
  461|  3.08k|			return nullptr;
  462|   579k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   576k|		{
  358|   576k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 576k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   576k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   576k|			setNextLayer(newLayer);
  365|   576k|			return newLayer;
  366|   576k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IcmpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  21.2k|		{
  505|  21.2k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 21.0k, False: 202]
  ------------------
  506|  21.0k|			{
  507|  21.0k|				return m_NextLayer;
  508|  21.0k|			}
  509|       |
  510|    202|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  21.2k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  21.2k|		{
  457|  21.2k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 21.0k, False: 202]
  ------------------
  458|  21.0k|			{
  459|  21.0k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  21.0k|			}
  461|    202|			return nullptr;
  462|  21.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  21.0k|		{
  358|  21.0k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 21.0k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  21.0k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  21.0k|			setNextLayer(newLayer);
  365|  21.0k|			return newLayer;
  366|  21.0k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  15.8k|		{
  505|  15.8k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 15.8k, False: 0]
  ------------------
  506|  15.8k|			{
  507|  15.8k|				return m_NextLayer;
  508|  15.8k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  15.8k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  15.8k|		{
  457|  15.8k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 15.8k, False: 0]
  ------------------
  458|  15.8k|			{
  459|  15.8k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  15.8k|			}
  461|      0|			return nullptr;
  462|  15.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  15.8k|		{
  358|  15.8k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 15.8k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  15.8k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  15.8k|			setNextLayer(newLayer);
  365|  15.8k|			return newLayer;
  366|  15.8k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv1LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  20.5k|		{
  505|  20.5k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 20.5k, False: 0]
  ------------------
  506|  20.5k|			{
  507|  20.5k|				return m_NextLayer;
  508|  20.5k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  20.5k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  20.5k|		{
  457|  20.5k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 20.5k, False: 0]
  ------------------
  458|  20.5k|			{
  459|  20.5k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  20.5k|			}
  461|      0|			return nullptr;
  462|  20.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  20.5k|		{
  358|  20.5k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 20.5k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  20.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  20.5k|			setNextLayer(newLayer);
  365|  20.5k|			return newLayer;
  366|  20.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11IgmpV1LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  2.87k|		{
  505|  2.87k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 2.87k, False: 0]
  ------------------
  506|  2.87k|			{
  507|  2.87k|				return m_NextLayer;
  508|  2.87k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  2.87k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11IgmpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  2.87k|		{
  457|  2.87k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 2.87k, False: 0]
  ------------------
  458|  2.87k|			{
  459|  2.87k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  2.87k|			}
  461|      0|			return nullptr;
  462|  2.87k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11igmp_headerEEEbPKhm:
  587|  7.70k|		{
  588|  7.70k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 7.70k, False: 0]
  |  Branch (588:30): [True: 7.70k, False: 0]
  ------------------
  589|  7.70k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11IgmpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  2.87k|		{
  358|  2.87k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 2.87k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  2.87k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  2.87k|			setNextLayer(newLayer);
  365|  2.87k|			return newLayer;
  366|  2.87k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11IgmpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  4.82k|		{
  505|  4.82k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 4.82k, False: 0]
  ------------------
  506|  4.82k|			{
  507|  4.82k|				return m_NextLayer;
  508|  4.82k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  4.82k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  4.82k|		{
  457|  4.82k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 4.82k, False: 0]
  ------------------
  458|  4.82k|			{
  459|  4.82k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  4.82k|			}
  461|      0|			return nullptr;
  462|  4.82k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  4.82k|		{
  358|  4.82k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 4.82k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  4.82k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  4.82k|			setNextLayer(newLayer);
  365|  4.82k|			return newLayer;
  366|  4.82k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17IgmpV3ReportLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  1.78k|		{
  505|  1.78k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 1.78k, False: 0]
  ------------------
  506|  1.78k|			{
  507|  1.78k|				return m_NextLayer;
  508|  1.78k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  1.78k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  1.78k|		{
  457|  1.78k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 1.78k, False: 0]
  ------------------
  458|  1.78k|			{
  459|  1.78k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  1.78k|			}
  461|      0|			return nullptr;
  462|  1.78k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20igmpv3_report_headerEEEbPKhm:
  587|  1.78k|		{
  588|  1.78k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 1.78k, False: 0]
  |  Branch (588:30): [True: 1.78k, False: 0]
  ------------------
  589|  1.78k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  1.78k|		{
  358|  1.78k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 1.78k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  1.78k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  1.78k|			setNextLayer(newLayer);
  365|  1.78k|			return newLayer;
  366|  1.78k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_25AuthenticationHeaderLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  1.42k|		{
  505|  1.42k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 1.42k, False: 6]
  ------------------
  506|  1.42k|			{
  507|  1.42k|				return m_NextLayer;
  508|  1.42k|			}
  509|       |
  510|      6|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  1.42k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  1.42k|		{
  457|  1.42k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 1.42k, False: 6]
  ------------------
  458|  1.42k|			{
  459|  1.42k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  1.42k|			}
  461|      6|			return nullptr;
  462|  1.42k|		}
_ZN4pcpp5Layer18constructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  1.42k|		{
  358|  1.42k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 1.42k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  1.42k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  1.42k|			setNextLayer(newLayer);
  365|  1.42k|			return newLayer;
  366|  1.42k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|     95|		{
  505|     95|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 95, False: 0]
  ------------------
  506|     95|			{
  507|     95|				return m_NextLayer;
  508|     95|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|     95|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|     95|		{
  457|     95|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 95, False: 0]
  ------------------
  458|     95|			{
  459|     95|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|     95|			}
  461|      0|			return nullptr;
  462|     95|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|     95|		{
  358|     95|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 95]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|     95|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|     95|			setNextLayer(newLayer);
  365|     95|			return newLayer;
  366|     95|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  6.42k|		{
  505|  6.42k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 6.42k, False: 0]
  ------------------
  506|  6.42k|			{
  507|  6.42k|				return m_NextLayer;
  508|  6.42k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  6.42k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  6.42k|		{
  457|  6.42k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 6.42k, False: 0]
  ------------------
  458|  6.42k|			{
  459|  6.42k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  6.42k|			}
  461|      0|			return nullptr;
  462|  6.42k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  6.42k|		{
  358|  6.42k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 6.42k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  6.42k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  6.42k|			setNextLayer(newLayer);
  365|  6.42k|			return newLayer;
  366|  6.42k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV3LayerENS_12PayloadLayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  3.07k|		{
  505|  3.07k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 3.07k, False: 0]
  ------------------
  506|  3.07k|			{
  507|  3.07k|				return m_NextLayer;
  508|  3.07k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  3.07k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  3.07k|		{
  457|  3.07k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 3.07k, False: 0]
  ------------------
  458|  3.07k|			{
  459|  3.07k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  3.07k|			}
  461|      0|			return nullptr;
  462|  3.07k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  7.72k|		{
  358|  7.72k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 7.72k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  7.72k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  7.72k|			setNextLayer(newLayer);
  365|  7.72k|			return newLayer;
  366|  7.72k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  11.1k|		{
  483|  11.1k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  11.1k|			                                                       std::forward<Args>(extraArgs)...);
  485|  11.1k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|   134k|		{
  483|   134k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|   134k|			                                                       std::forward<Args>(extraArgs)...);
  485|   134k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  2.83k|		{
  483|  2.83k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  2.83k|			                                                       std::forward<Args>(extraArgs)...);
  485|  2.83k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|     15|		{
  483|     15|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|     15|			                                                       std::forward<Args>(extraArgs)...);
  485|     15|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mDpOT0_:
  387|  65.7k|		{
  388|  65.7k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|  65.7k|			                                               std::forward<Args>(extraArgs)...);
  390|  65.7k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mS5_DpOT0_:
  411|  65.7k|		{
  412|  65.7k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 65.7k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  65.7k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  65.7k|			setNextLayer(newLayer);
  420|  65.7k|			return newLayer;
  421|  65.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmDpOT0_:
  343|  4.64k|		{
  344|  4.64k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  4.64k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  18.0k|		{
  483|  18.0k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  18.0k|			                                                       std::forward<Args>(extraArgs)...);
  485|  18.0k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  18.0k|		{
  505|  18.0k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 17.9k, False: 132]
  ------------------
  506|  17.9k|			{
  507|  17.9k|				return m_NextLayer;
  508|  17.9k|			}
  509|       |
  510|    132|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  18.0k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  18.0k|		{
  457|  18.0k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 17.9k, False: 132]
  ------------------
  458|  17.9k|			{
  459|  17.9k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  17.9k|			}
  461|    132|			return nullptr;
  462|  18.0k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  17.9k|		{
  358|  17.9k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 17.9k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  17.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  17.9k|			setNextLayer(newLayer);
  365|  17.9k|			return newLayer;
  366|  17.9k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  29.8k|		{
  483|  29.8k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  29.8k|			                                                       std::forward<Args>(extraArgs)...);
  485|  29.8k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  29.8k|		{
  505|  29.8k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 29.7k, False: 128]
  ------------------
  506|  29.7k|			{
  507|  29.7k|				return m_NextLayer;
  508|  29.7k|			}
  509|       |
  510|    128|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  29.8k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  29.8k|		{
  457|  29.8k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 29.7k, False: 128]
  ------------------
  458|  29.7k|			{
  459|  29.7k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  29.7k|			}
  461|    128|			return nullptr;
  462|  29.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  29.7k|		{
  358|  29.7k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 29.7k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  29.7k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  29.7k|			setNextLayer(newLayer);
  365|  29.7k|			return newLayer;
  366|  29.7k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  3.43k|		{
  483|  3.43k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  3.43k|			                                                       std::forward<Args>(extraArgs)...);
  485|  3.43k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  3.43k|		{
  505|  3.43k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 3.43k, False: 0]
  ------------------
  506|  3.43k|			{
  507|  3.43k|				return m_NextLayer;
  508|  3.43k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  3.43k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  3.43k|		{
  457|  3.43k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 3.43k, False: 0]
  ------------------
  458|  3.43k|			{
  459|  3.43k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  3.43k|			}
  461|      0|			return nullptr;
  462|  3.43k|		}
_ZN4pcpp5Layer18constructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  3.43k|		{
  358|  3.43k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 3.43k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  3.43k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  3.43k|			setNextLayer(newLayer);
  365|  3.43k|			return newLayer;
  366|  3.43k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  13.6k|		{
  483|  13.6k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  13.6k|			                                                       std::forward<Args>(extraArgs)...);
  485|  13.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  13.6k|		{
  505|  13.6k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 12.3k, False: 1.31k]
  ------------------
  506|  12.3k|			{
  507|  12.3k|				return m_NextLayer;
  508|  12.3k|			}
  509|       |
  510|  1.31k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  13.6k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  13.6k|		{
  457|  13.6k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 12.3k, False: 1.31k]
  ------------------
  458|  12.3k|			{
  459|  12.3k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  12.3k|			}
  461|  1.31k|			return nullptr;
  462|  13.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  12.3k|		{
  358|  12.3k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 12.3k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  12.3k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  12.3k|			setNextLayer(newLayer);
  365|  12.3k|			return newLayer;
  366|  12.3k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20ssl_tls_record_layerEEEbPKhm:
  587|   332k|		{
  588|   332k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 332k, False: 0]
  |  Branch (588:30): [True: 332k, False: 0]
  ------------------
  589|   332k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  387|   332k|		{
  388|   332k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|   332k|			                                               std::forward<Args>(extraArgs)...);
  390|   332k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|   332k|		{
  412|   332k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 332k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|   332k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|   332k|			setNextLayer(newLayer);
  420|   332k|			return newLayer;
  421|   332k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7tpkthdrEEEbPKhm:
  587|   156k|		{
  588|   156k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 156k, False: 0]
  |  Branch (588:30): [True: 149k, False: 7.54k]
  ------------------
  589|   156k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16HttpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  75.4k|		{
  358|  75.4k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 75.4k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  75.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  75.4k|			setNextLayer(newLayer);
  365|  75.4k|			return newLayer;
  366|  75.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17HttpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  14.1k|		{
  358|  14.1k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 14.1k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  14.1k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  14.1k|			setNextLayer(newLayer);
  365|  14.1k|			return newLayer;
  366|  14.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16SipResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  2.89k|		{
  358|  2.89k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 2.89k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  2.89k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  2.89k|			setNextLayer(newLayer);
  365|  2.89k|			return newLayer;
  366|  2.89k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  30.8k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  30.8k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  30.8k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  30.8k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  30.8k|		{
  567|  30.8k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  30.8k|			                                                         std::forward<Args>(extraArgs)...);
  569|  30.8k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 29.4k, False: 1.40k]
  ------------------
  570|  29.4k|			{
  571|  29.4k|				return nextLayer;
  572|  29.4k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|  1.40k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  30.8k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  387|  15.9k|		{
  388|  15.9k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|  15.9k|			                                               std::forward<Args>(extraArgs)...);
  390|  15.9k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  15.9k|		{
  412|  15.9k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 15.9k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  15.9k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  15.9k|			setNextLayer(newLayer);
  420|  15.9k|			return newLayer;
  421|  15.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_15DnsOverTcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  3.26k|		{
  358|  3.26k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 3.26k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  3.26k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  3.26k|			setNextLayer(newLayer);
  365|  3.26k|			return newLayer;
  366|  3.26k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11TelnetLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  9.25k|		{
  358|  9.25k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 9.25k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  9.25k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  9.25k|			setNextLayer(newLayer);
  365|  9.25k|			return newLayer;
  366|  9.25k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16FtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  13.2k|		{
  358|  13.2k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 13.2k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  13.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  13.2k|			setNextLayer(newLayer);
  365|  13.2k|			return newLayer;
  366|  13.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_15FtpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  6.82k|		{
  358|  6.82k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 6.82k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  6.82k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  6.82k|			setNextLayer(newLayer);
  365|  6.82k|			return newLayer;
  366|  6.82k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12FtpDataLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  1.45k|		{
  358|  1.45k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 1.45k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  1.45k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  1.45k|			setNextLayer(newLayer);
  365|  1.45k|			return newLayer;
  366|  1.45k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9TpktLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  15.3k|		{
  358|  15.3k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 15.3k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  15.3k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  15.3k|			setNextLayer(newLayer);
  365|  15.3k|			return newLayer;
  366|  15.3k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17SmtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  3.76k|		{
  358|  3.76k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 3.76k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  3.76k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  3.76k|			setNextLayer(newLayer);
  365|  3.76k|			return newLayer;
  366|  3.76k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16SmtpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  10.1k|		{
  358|  10.1k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 10.1k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  10.1k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  10.1k|			setNextLayer(newLayer);
  365|  10.1k|			return newLayer;
  366|  10.1k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  1.67k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  1.67k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  1.67k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  1.67k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  1.67k|		{
  567|  1.67k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  1.67k|			                                                         std::forward<Args>(extraArgs)...);
  569|  1.67k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 118, False: 1.56k]
  ------------------
  570|    118|			{
  571|    118|				return nextLayer;
  572|    118|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|  1.56k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  1.67k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  1.72k|		{
  412|  1.72k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 1.72k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  1.72k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  1.72k|			setNextLayer(newLayer);
  420|  1.72k|			return newLayer;
  421|  1.72k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|     35|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|     35|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|     35|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|     35|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|     35|		{
  567|     35|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|     35|			                                                         std::forward<Args>(extraArgs)...);
  569|     35|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 35, False: 0]
  ------------------
  570|     35|			{
  571|     35|				return nextLayer;
  572|     35|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|     35|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|     35|		{
  412|     35|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 35]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|     35|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|     35|			setNextLayer(newLayer);
  420|     35|			return newLayer;
  421|     35|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  17.2k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  17.2k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  17.2k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  17.2k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  17.2k|		{
  567|  17.2k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  17.2k|			                                                         std::forward<Args>(extraArgs)...);
  569|  17.2k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 17.2k, False: 0]
  ------------------
  570|  17.2k|			{
  571|  17.2k|				return nextLayer;
  572|  17.2k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  17.2k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  17.2k|		{
  412|  17.2k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 17.2k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  17.2k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  17.2k|			setNextLayer(newLayer);
  420|  17.2k|			return newLayer;
  421|  17.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11ModbusLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  1.68k|		{
  358|  1.68k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 1.68k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  1.68k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  1.68k|			setNextLayer(newLayer);
  365|  1.68k|			return newLayer;
  366|  1.68k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  15.2k|		{
  483|  15.2k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  15.2k|			                                                       std::forward<Args>(extraArgs)...);
  485|  15.2k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  15.2k|		{
  505|  15.2k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 13.1k, False: 2.11k]
  ------------------
  506|  13.1k|			{
  507|  13.1k|				return m_NextLayer;
  508|  13.1k|			}
  509|       |
  510|  2.11k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  15.2k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  15.2k|		{
  457|  15.2k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 13.1k, False: 2.11k]
  ------------------
  458|  13.1k|			{
  459|  13.1k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  13.1k|			}
  461|  2.11k|			return nullptr;
  462|  15.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  13.1k|		{
  358|  13.1k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 13.1k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  13.1k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  13.1k|			setNextLayer(newLayer);
  365|  13.1k|			return newLayer;
  366|  13.1k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  19.3k|		{
  483|  19.3k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  19.3k|			                                                       std::forward<Args>(extraArgs)...);
  485|  19.3k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  19.3k|		{
  505|  19.3k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 18.9k, False: 396]
  ------------------
  506|  18.9k|			{
  507|  18.9k|				return m_NextLayer;
  508|  18.9k|			}
  509|       |
  510|    396|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  19.3k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  19.3k|		{
  457|  19.3k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 18.9k, False: 396]
  ------------------
  458|  18.9k|			{
  459|  18.9k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  18.9k|			}
  461|    396|			return nullptr;
  462|  19.3k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  18.9k|		{
  358|  18.9k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 18.9k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  18.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  18.9k|			setNextLayer(newLayer);
  365|  18.9k|			return newLayer;
  366|  18.9k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10VxlanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  6.12k|		{
  483|  6.12k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  6.12k|			                                                       std::forward<Args>(extraArgs)...);
  485|  6.12k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10VxlanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  6.12k|		{
  505|  6.12k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 6.12k, False: 0]
  ------------------
  506|  6.12k|			{
  507|  6.12k|				return m_NextLayer;
  508|  6.12k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  6.12k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10VxlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  6.12k|		{
  457|  6.12k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 6.12k, False: 0]
  ------------------
  458|  6.12k|			{
  459|  6.12k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  6.12k|			}
  461|      0|			return nullptr;
  462|  6.12k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_12vxlan_headerEEEbPKhm:
  587|  6.12k|		{
  588|  6.12k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 6.12k, False: 0]
  |  Branch (588:30): [True: 6.12k, False: 0]
  ------------------
  589|  6.12k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10VxlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  6.12k|		{
  358|  6.12k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 6.12k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  6.12k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  6.12k|			setNextLayer(newLayer);
  365|  6.12k|			return newLayer;
  366|  6.12k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmDpOT0_:
  343|  38.2k|		{
  344|  38.2k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  38.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  38.2k|		{
  358|  38.2k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 38.2k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  38.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  38.2k|			setNextLayer(newLayer);
  365|  38.2k|			return newLayer;
  366|  38.2k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_11QuicV1LayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  1.76k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  1.76k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  1.76k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  1.76k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_11QuicV1LayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  1.76k|		{
  567|  1.76k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  1.76k|			                                                         std::forward<Args>(extraArgs)...);
  569|  1.76k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 1.70k, False: 61]
  ------------------
  570|  1.70k|			{
  571|  1.70k|				return nextLayer;
  572|  1.70k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|     61|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  1.76k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_11QuicV1LayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  1.76k|		{
  412|  1.76k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 1.76k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  1.76k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  1.76k|			setNextLayer(newLayer);
  420|  1.76k|			return newLayer;
  421|  1.76k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mDpOT1_:
  537|  17.7k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  17.7k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  17.7k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  17.7k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mS8_DpOT1_:
  566|  17.7k|		{
  567|  17.7k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  17.7k|			                                                         std::forward<Args>(extraArgs)...);
  569|  17.7k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 16.9k, False: 814]
  ------------------
  570|  16.9k|			{
  571|  16.9k|				return nextLayer;
  572|  16.9k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|    814|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  17.7k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSA_EEES5_T_S4_mS7_DpOT0_:
  411|  17.7k|		{
  412|  17.7k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 17.7k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  17.7k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  17.7k|			setNextLayer(newLayer);
  420|  17.7k|			return newLayer;
  421|  17.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmDpOT0_:
  343|  21.8k|		{
  344|  21.8k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  21.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  21.8k|		{
  358|  21.8k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 21.8k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  21.8k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  21.8k|			setNextLayer(newLayer);
  365|  21.8k|			return newLayer;
  366|  21.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmDpOT0_:
  343|  21.7k|		{
  344|  21.7k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  21.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  21.7k|		{
  358|  21.7k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 21.7k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  21.7k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  21.7k|			setNextLayer(newLayer);
  365|  21.7k|			return newLayer;
  366|  21.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV2LayerEJEEEPS0_PhmDpOT0_:
  343|  8.59k|		{
  344|  8.59k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  8.59k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmDpOT0_:
  343|  5.40k|		{
  344|  5.40k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  5.40k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  5.40k|		{
  358|  5.40k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 5.40k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  5.40k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  5.40k|			setNextLayer(newLayer);
  365|  5.40k|			return newLayer;
  366|  5.40k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmDpOT0_:
  343|  7.36k|		{
  344|  7.36k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  7.36k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  7.36k|		{
  358|  7.36k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 7.36k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  7.36k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  7.36k|			setNextLayer(newLayer);
  365|  7.36k|			return newLayer;
  366|  7.36k|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmDpOT0_:
  343|    365|		{
  344|    365|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|    365|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|    428|		{
  358|    428|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 428]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|    428|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|    428|			setNextLayer(newLayer);
  365|    428|			return newLayer;
  366|    428|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  1.44k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  1.44k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  1.44k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  1.44k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  1.44k|		{
  567|  1.44k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  1.44k|			                                                         std::forward<Args>(extraArgs)...);
  569|  1.44k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 1.44k, False: 0]
  ------------------
  570|  1.44k|			{
  571|  1.44k|				return nextLayer;
  572|  1.44k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  1.44k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  1.44k|		{
  412|  1.44k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 1.44k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  1.44k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  1.44k|			setNextLayer(newLayer);
  420|  1.44k|			return newLayer;
  421|  1.44k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  49.3k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  49.3k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  49.3k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  49.3k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  49.3k|		{
  567|  49.3k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  49.3k|			                                                         std::forward<Args>(extraArgs)...);
  569|  49.3k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 6.36k, False: 42.9k]
  ------------------
  570|  6.36k|			{
  571|  6.36k|				return nextLayer;
  572|  6.36k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|  42.9k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  49.3k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  49.3k|		{
  412|  49.3k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 49.3k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  49.3k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  49.3k|			setNextLayer(newLayer);
  420|  49.3k|			return newLayer;
  421|  49.3k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8EthLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  6.12k|		{
  483|  6.12k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  6.12k|			                                                       std::forward<Args>(extraArgs)...);
  485|  6.12k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8EthLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  6.12k|		{
  505|  6.12k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 6.01k, False: 103]
  ------------------
  506|  6.01k|			{
  507|  6.01k|				return m_NextLayer;
  508|  6.01k|			}
  509|       |
  510|    103|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  6.12k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  10.2k|		{
  483|  10.2k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  10.2k|			                                                       std::forward<Args>(extraArgs)...);
  485|  10.2k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  10.2k|		{
  505|  10.2k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 8.69k, False: 1.59k]
  ------------------
  506|  8.69k|			{
  507|  8.69k|				return m_NextLayer;
  508|  8.69k|			}
  509|       |
  510|  1.59k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  10.2k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  10.2k|		{
  457|  10.2k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 8.69k, False: 1.59k]
  ------------------
  458|  8.69k|			{
  459|  8.69k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  8.69k|			}
  461|  1.59k|			return nullptr;
  462|  10.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  8.69k|		{
  358|  8.69k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 8.69k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  8.69k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  8.69k|			setNextLayer(newLayer);
  365|  8.69k|			return newLayer;
  366|  8.69k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_14WakeOnLanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|    342|		{
  483|    342|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|    342|			                                                       std::forward<Args>(extraArgs)...);
  485|    342|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_14WakeOnLanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|    342|		{
  505|    342|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 63, False: 279]
  ------------------
  506|     63|			{
  507|     63|				return m_NextLayer;
  508|     63|			}
  509|       |
  510|    279|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|    342|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|    342|		{
  457|    342|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 63, False: 279]
  ------------------
  458|     63|			{
  459|     63|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|     63|			}
  461|    279|			return nullptr;
  462|    342|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  387|     50|		{
  388|     50|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|     50|			                                               std::forward<Args>(extraArgs)...);
  390|     50|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8StpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  387|  5.26k|		{
  388|  5.26k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|  5.26k|			                                               std::forward<Args>(extraArgs)...);
  390|  5.26k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8StpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  5.26k|		{
  412|  5.26k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 5.26k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  5.26k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  5.26k|			setNextLayer(newLayer);
  420|  5.26k|			return newLayer;
  421|  5.26k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_12stp_tcn_bpduEEEbPKhm:
  587|  1.60k|		{
  588|  1.60k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 1.60k, False: 0]
  |  Branch (588:30): [True: 1.60k, False: 0]
  ------------------
  589|  1.60k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_13stp_conf_bpduEEEbPKhm:
  587|  2.38k|		{
  588|  2.38k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 2.38k, False: 0]
  |  Branch (588:30): [True: 2.38k, False: 0]
  ------------------
  589|  2.38k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_14rstp_conf_bpduEEEbPKhm:
  587|  1.08k|		{
  588|  1.08k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 1.08k, False: 0]
  |  Branch (588:30): [True: 1.08k, False: 0]
  ------------------
  589|  1.08k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_14mstp_conf_bpduEEEbPKhm:
  587|     68|		{
  588|     68|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 68, False: 0]
  |  Branch (588:30): [True: 64, False: 4]
  ------------------
  589|     68|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmDpOT0_:
  343|  15.2k|		{
  344|  15.2k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  15.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  15.2k|		{
  358|  15.2k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 15.2k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  15.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  15.2k|			setNextLayer(newLayer);
  365|  15.2k|			return newLayer;
  366|  15.2k|		}

_ZN4pcpp9LdapLayer10isLdapPortEt:
  347|   254k|		{
  348|   254k|			return port == 389;
  349|   254k|		}
_ZN4pcpp17LdapOperationTypeC2ENS0_5ValueE:
   74|      5|		constexpr LdapOperationType(Value value) : m_Value(value)
   75|      5|		{}
_ZNK4pcpp17LdapOperationTypecvNS0_5ValueEEv:
   88|    123|		{
   89|    123|			return m_Value;
   90|    123|		}
_ZNK4pcpp9LdapLayer12getHeaderLenEv:
  366|    140|		{
  367|    140|			return m_Asn1Record->getTotalLength();
  368|    140|		}
_ZN4pcpp9LdapLayer22computeCalculateFieldsEv:
  371|     22|		{}
_ZNK4pcpp9LdapLayer16getOsiModelLayerEv:
  374|     22|		{
  375|     22|			return OsiModelApplicationLayer;
  376|     22|		}
_ZN4pcpp17LdapResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  447|    113|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  448|    113|		{}
_ZN4pcpp20LdapBindRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  555|      5|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  556|      5|		{}
_ZN4pcpp21LdapBindResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  602|     73|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  603|     73|		{}
_ZN4pcpp25LdapSearchResultDoneLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  895|     10|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  896|     10|		{}
_ZN4pcpp23LdapModifyResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  928|      5|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  929|      5|		{}
_ZN4pcpp23LdapDeleteResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  994|      5|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  995|      5|		{}
_ZN4pcpp25LdapModifyDNResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
 1027|     15|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
 1028|     15|		{}
_ZN4pcpp24LdapCompareResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
 1060|      5|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
 1061|      5|		{}
_ZN4pcpp9LdapLayerD2Ev:
  299|    118|		~LdapLayer() override = default;

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

_ZN4pcpp9MplsLayer11isDataValidEPKhm:
  115|   343k|		{
  116|   343k|			return canReinterpretAs<mpls_header>(data, dataLen);
  117|   343k|		}
_ZN4pcpp9MplsLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   38|   343k|		    : Layer(data, dataLen, prevLayer, packet, MPLS)
   39|   343k|		{}
_ZNK4pcpp9MplsLayer13getMplsHeaderEv:
   27|   404k|		{
   28|   404k|			return reinterpret_cast<mpls_header*>(m_Data);
   29|   404k|		}
_ZNK4pcpp9MplsLayer6getTTLEv:
   53|  11.0k|		{
   54|  11.0k|			return getMplsHeader()->ttl;
   55|  11.0k|		}
_ZNK4pcpp9MplsLayer12getHeaderLenEv:
   95|   350k|		{
   96|   350k|			return sizeof(mpls_header);
   97|   350k|		}
_ZNK4pcpp9MplsLayer16getOsiModelLayerEv:
  106|  5.52k|		{
  107|  5.52k|			return OsiModelNetworkLayer;
  108|  5.52k|		}

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

_ZN4pcpp28NDPNeighborSolicitationLayer11isDataValidEPKhm:
  211|  2.76k|		{
  212|  2.76k|			return data != nullptr && dataLen >= sizeof(ndpneighborsolicitationhdr);
  ------------------
  |  Branch (212:11): [True: 2.76k, False: 0]
  |  Branch (212:30): [True: 2.76k, False: 0]
  ------------------
  213|  2.76k|		}
_ZN4pcpp28NDPNeighborSolicitationLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  203|  2.76k|		    : NDPLayerBase(data, dataLen, prevLayer, packet)
  204|  2.76k|		{}
_ZN4pcpp12NDPLayerBaseC2EPhmPNS_5LayerEPNS_6PacketE:
  164|  3.16k|		    : IcmpV6Layer(data, dataLen, prevLayer, packet)
  165|  3.16k|		{}
_ZN4pcpp12NDPLayerBaseD2Ev:
  102|  3.16k|		~NDPLayerBase() override = default;
_ZNK4pcpp12NDPLayerBase20getNdpOptionsBasePtrEv:
  174|  2.11k|		{
  175|  2.11k|			return m_Data + getNdpHeaderLen();
  176|  2.11k|		};
_ZN4pcpp29NDPNeighborAdvertisementLayer11isDataValidEPKhm:
  334|    392|		{
  335|    392|			return data != nullptr && dataLen >= sizeof(ndpneighboradvertisementhdr);
  ------------------
  |  Branch (335:11): [True: 392, False: 0]
  |  Branch (335:30): [True: 392, False: 0]
  ------------------
  336|    392|		}
_ZN4pcpp29NDPNeighborAdvertisementLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  326|    392|		    : NDPLayerBase(data, dataLen, prevLayer, packet)
  327|    392|		{}
_ZN4pcpp9NdpOptionC2EPh:
   37|  2.31k|		explicit NdpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
   38|  2.31k|		{}
_ZNK4pcpp9NdpOption12getTotalSizeEv:
   56|  4.73k|		{
   57|  4.73k|			if (m_Data == nullptr)
  ------------------
  |  Branch (57:8): [True: 0, False: 4.73k]
  ------------------
   58|      0|				return 0;
   59|       |
   60|  4.73k|			return static_cast<size_t>(m_Data->recordLen) * 8;
   61|  4.73k|		}
_ZNK4pcpp28NDPNeighborSolicitationLayer11getTargetIPEv:
  230|  1.35k|		{
  231|  1.35k|			return IPv6Address(getNdpHeader()->targetIP);
  232|  1.35k|		};
_ZNK4pcpp28NDPNeighborSolicitationLayer12getNdpHeaderEv:
  271|  1.35k|		{
  272|  1.35k|			return reinterpret_cast<ndpneighborsolicitationhdr*>(m_Data);
  273|  1.35k|		}
_ZNK4pcpp28NDPNeighborSolicitationLayer15getNdpHeaderLenEv:
  275|  3.47k|		{
  276|  3.47k|			return sizeof(ndpneighborsolicitationhdr);
  277|  3.47k|		};
_ZNK4pcpp29NDPNeighborAdvertisementLayer11getTargetIPEv:
  366|    196|		{
  367|    196|			return IPv6Address(getNdpHeader()->targetIP);
  368|    196|		}
_ZNK4pcpp29NDPNeighborAdvertisementLayer12getNdpHeaderEv:
  430|    196|		{
  431|    196|			return reinterpret_cast<ndpneighboradvertisementhdr*>(m_Data);
  432|    196|		}
_ZNK4pcpp29NDPNeighborAdvertisementLayer15getNdpHeaderLenEv:
  434|    760|		{
  435|    760|			return sizeof(ndpneighboradvertisementhdr);
  436|    760|		};

_ZN4pcpp10NflogLayerC2EPhmPNS_6PacketE:
  151|  2.37k|		NflogLayer(uint8_t* data, size_t dataLen, Packet* packet) : Layer(data, dataLen, nullptr, packet, NFLOG)
  152|  2.37k|		{}
_ZN4pcpp8NflogTlvC2EPh:
   89|  8.42k|		{
   90|  8.42k|			assign(recordRawData);
   91|  8.42k|		}
_ZNK4pcpp8NflogTlv12getTotalSizeEv:
   95|  31.0k|		{
   96|       |			// as in
   97|       |			// https://github.com/the-tcpdump-group/libpcap/blob/766b607d60d8038087b49fc4cf433dac3dcdb49c/pcap-util.c#L371-L374
   98|  31.0k|			return align<4>(m_Data->recordLen);
   99|  31.0k|		}
_ZN4pcpp8NflogTlv6assignEPh:
  104|  22.3k|		{
  105|  22.3k|			m_Data = reinterpret_cast<NflogTLVRawData*>(recordRawData);
  106|  22.3k|		}
_ZN4pcpp8NflogTlv9canAssignEPKhm:
  113|  8.42k|		{
  114|  8.42k|			return recordRawData != nullptr && tlvDataLen >= sizeof(NflogTLVRawData::recordLen);
  ------------------
  |  Branch (114:11): [True: 8.42k, False: 0]
  |  Branch (114:39): [True: 8.18k, False: 241]
  ------------------
  115|  8.42k|		}
_ZNK4pcpp8NflogTlv6isNullEv:
  119|  25.0k|		{
  120|  25.0k|			return (m_Data == nullptr);
  121|  25.0k|		}
_ZNK4pcpp8NflogTlv7getTypeEv:
  125|  5.33k|		{
  126|  5.33k|			return m_Data->recordType;
  127|  5.33k|		}
_ZNK4pcpp8NflogTlv16getRecordBasePtrEv:
  131|  27.3k|		{
  132|  27.3k|			return reinterpret_cast<uint8_t*>(m_Data);
  133|  27.3k|		}
_ZNK4pcpp8NflogTlv8getValueEv:
  137|    141|		{
  138|    141|			return m_Data->recordValue;
  139|    141|		}
_ZNK4pcpp10NflogLayer14getNflogHeaderEv:
  159|    141|		{
  160|    141|			return reinterpret_cast<nflog_header*>(m_Data);
  161|    141|		}
_ZN4pcpp10NflogLayer22computeCalculateFieldsEv:
  193|  1.14k|		void computeCalculateFields() override {};
_ZNK4pcpp10NflogLayer16getOsiModelLayerEv:
  198|  1.14k|		{
  199|  1.14k|			return OsiModelDataLinkLayer;
  200|  1.14k|		}
_ZNK4pcpp10NflogLayer14getTlvsBasePtrEv:
  244|  5.00k|		{
  245|  5.00k|			return m_Data + sizeof(nflog_header);
  246|  5.00k|		}
_ZN4pcpp10NflogLayerD2Ev:
  154|  2.37k|		~NflogLayer() override = default;

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

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

_ZNK4pcpp10PPPoELayer14getPPPoEHeaderEv:
   83|  10.5k|		{
   84|  10.5k|			return reinterpret_cast<pppoe_header*>(m_Data);
   85|  10.5k|		}
_ZNK4pcpp10PPPoELayer16getOsiModelLayerEv:
   93|  4.32k|		{
   94|  4.32k|			return OsiModelDataLinkLayer;
   95|  4.32k|		}
_ZN4pcpp10PPPoELayerC2EPhmPNS_5LayerEPNS_6PacketEh:
  130|  33.1k|		    : Layer(data, dataLen, prevLayer, packet, protocol)
  131|  33.1k|		{}
_ZN4pcpp17PPPoESessionLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  151|  29.7k|		    : PPPoELayer(data, dataLen, prevLayer, packet, PPPoESession)
  152|  29.7k|		{}
_ZNK4pcpp17PPPoESessionLayer12getHeaderLenEv:
  190|  69.8k|		{
  191|  69.8k|			return sizeof(pppoe_header) + sizeof(uint16_t);
  192|  69.8k|		}
_ZN4pcpp19PPPoEDiscoveryLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  318|  3.43k|		    : PPPoELayer(data, dataLen, prevLayer, packet, PPPoEDiscovery)
  319|  3.43k|		{
  320|  3.43k|			m_DataLen = getHeaderLen();
  321|  3.43k|		}
_ZN4pcpp19PPPoEDiscoveryLayer14parseNextLayerEv:
  388|  3.43k|		{}
_ZNK4pcpp19PPPoEDiscoveryLayer8toStringEv:
  394|  1.84k|		{
  395|  1.84k|			return "PPP-over-Ethernet Discovery (" + codeToString((PPPoELayer::PPPoECode)getPPPoEHeader()->code) + ")";
  396|  1.84k|		}
_ZN4pcpp17PPPoESessionLayer11isDataValidEPKhm:
  439|  29.8k|	{
  440|  29.8k|		return data && dataLen >= sizeof(pppoe_header) + sizeof(uint16_t);
  ------------------
  |  Branch (440:10): [True: 29.8k, False: 0]
  |  Branch (440:18): [True: 29.7k, False: 128]
  ------------------
  441|  29.8k|	}
_ZN4pcpp19PPPoEDiscoveryLayer11isDataValidEPKhm:
  444|  3.43k|	{
  445|  3.43k|		return data && dataLen >= sizeof(pppoe_header);
  ------------------
  |  Branch (445:10): [True: 3.43k, False: 0]
  |  Branch (445:18): [True: 3.43k, False: 0]
  ------------------
  446|  3.43k|	}

_ZNK4pcpp6Packet13getFirstLayerEv:
  209|  16.4M|		{
  210|  16.4M|			return m_FirstLayer;
  211|  16.4M|		}
_ZN4pcpp6PacketC2ERKS0_:
  150|   772k|		{
  151|   772k|			copyDataFrom(other);
  152|   772k|		}
_ZN4pcpp6PacketD2Ev:
  142|   964k|		{
  143|   964k|			destructPacketData();
  144|   964k|		}
_ZNK4pcpp6Packet12getRawPacketEv:
  165|  76.8k|		{
  166|  76.8k|			return m_RawPacket;
  167|  76.8k|		}
_ZNK4pcpp6Packet14getLayerOfTypeINS_7IPLayerEEEPT_b:
  439|  3.78k|	{
  440|  3.78k|		if (!reverse)
  ------------------
  |  Branch (440:7): [True: 3.78k, False: 0]
  ------------------
  441|  3.78k|		{
  442|  3.78k|			return searchLayerStackForType<TLayer>(
  443|  3.78k|			    m_FirstLayer, [](Layer* layer) { return layer->getNextLayer(); }, false);
  444|  3.78k|		}
  445|       |
  446|       |		// lookup in reverse order
  447|      0|		return searchLayerStackForType<TLayer>(m_LastLayer, [](Layer* layer) { return layer->getPrevLayer(); }, false);
  448|  3.78k|	}
_ZN4pcpp6Packet23searchLayerStackForTypeINS_7IPLayerEZNKS0_14getLayerOfTypeIS2_EEPT_bEUlPNS_5LayerEE_EES5_S7_T0_b:
  462|  3.78k|	{
  463|  3.78k|		if (curLayer == nullptr)
  ------------------
  |  Branch (463:7): [True: 0, False: 3.78k]
  ------------------
  464|      0|			return nullptr;
  465|       |
  466|  3.78k|		if (skipFirst)
  ------------------
  |  Branch (466:7): [True: 0, False: 3.78k]
  ------------------
  467|      0|		{
  468|      0|			curLayer = nextLayerFn(curLayer);
  469|      0|		}
  470|       |
  471|  7.15k|		while (curLayer != nullptr)
  ------------------
  |  Branch (471:10): [True: 7.15k, False: 0]
  ------------------
  472|  7.15k|		{
  473|  7.15k|			auto* curLayerCasted = dynamic_cast<TLayer*>(curLayer);
  474|  7.15k|			if (curLayerCasted != nullptr)
  ------------------
  |  Branch (474:8): [True: 3.78k, False: 3.36k]
  ------------------
  475|  3.78k|				return curLayerCasted;
  476|       |
  477|  3.36k|			curLayer = nextLayerFn(curLayer);
  478|  3.36k|		}
  479|       |
  480|      0|		return nullptr;
  481|  3.78k|	}
_ZZNK4pcpp6Packet14getLayerOfTypeINS_7IPLayerEEEPT_bENKUlPNS_5LayerEE_clES6_:
  443|  3.36k|			    m_FirstLayer, [](Layer* layer) { return layer->getNextLayer(); }, false);

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

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

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

_ZN4pcpp8internal27protoFamilyContainsProtocolEjh:
  449|  15.1M|		{
  450|  15.1M|			auto const protocolToFamily = static_cast<ProtocolTypeFamily>(protocol);
  451|  15.1M|			return (protocolToFamily == (family & 0xff) || protocolToFamily << 8 == (family & 0xff00) ||
  ------------------
  |  Branch (451:12): [True: 43.0k, False: 15.1M]
  |  Branch (451:51): [True: 36.1k, False: 15.1M]
  ------------------
  452|  15.1M|			        protocolToFamily << 16 == (family & 0xff0000) || protocolToFamily << 24 == (family & 0xff000000));
  ------------------
  |  Branch (452:12): [True: 0, False: 15.1M]
  |  Branch (452:61): [True: 0, False: 15.1M]
  ------------------
  453|  15.1M|		}

_ZN4pcpp11QuicV1Layer10isQuicPortEt:
   87|   371k|		{
   88|   371k|			return port == 443;
   89|   371k|		}
_ZN4pcpp11QuicV1Layer22computeCalculateFieldsEv:
  101|    275|		{}
_ZNK4pcpp11QuicV1Layer16getOsiModelLayerEv:
  108|    275|		{
  109|    275|			return OsiModelTransportLayer;
  110|    275|		}
_ZN4pcpp11QuicV1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  114|  1.70k|		    : Layer(data, dataLen, prevLayer, packet, QUICv1)
  115|  1.70k|		{}
_ZN4pcpp21QuicV1LongHeaderLayer15OffsetAndLengthC2Emm:
  221|  1.26k|			OffsetAndLength(size_t length, size_t offset) : length(length), offset(offset)
  222|  1.26k|			{}
_ZNK4pcpp21QuicV1LongHeaderLayer13getLongHeaderEv:
  235|    867|		{
  236|    867|			return reinterpret_cast<quic_long_header*>(m_Data);
  237|    867|		}
_ZN4pcpp24QuicV1EstablishmentLayer18VarintValueAndSizeC2Emm:
  283|    891|			VarintValueAndSize(uint64_t value, size_t size) : value(value), size(size)
  284|    891|			{}
_ZNK4pcpp16QuicV1RetryLayer12getHeaderLenEv:
  371|     36|		{
  372|     36|			return m_DataLen;
  373|     36|		}
_ZNK4pcpp29QuicV1VersionNegotiationLayer13getPacketTypeEv:
  395|     10|		{
  396|     10|			return QuicPacketType::VersionNegotiation;
  397|     10|		}
_ZNK4pcpp29QuicV1VersionNegotiationLayer12getHeaderLenEv:
  408|     30|		{
  409|     30|			return m_DataLen;
  410|     30|		}
_ZNK4pcpp17QuicV1OneRttLayer13getPacketTypeEv:
  427|    316|		{
  428|    316|			return QuicPacketType::OneRtt;
  429|    316|		}
_ZNK4pcpp17QuicV1OneRttLayer12getHeaderLenEv:
  455|  1.40k|		{
  456|  1.40k|			return m_DataLen;
  457|  1.40k|		}

_ZN4pcpp11RadiusLayer12isRadiusPortEt:
  310|   318k|	{
  311|   318k|		switch (port)
  312|   318k|		{
  313|  15.3k|		case 1812:
  ------------------
  |  Branch (313:3): [True: 15.3k, False: 303k]
  ------------------
  314|  16.3k|		case 1813:
  ------------------
  |  Branch (314:3): [True: 942, False: 317k]
  ------------------
  315|  28.9k|		case 3799:
  ------------------
  |  Branch (315:3): [True: 12.6k, False: 306k]
  ------------------
  316|  28.9k|			return true;
  317|   289k|		default:
  ------------------
  |  Branch (317:3): [True: 289k, False: 28.9k]
  ------------------
  318|   289k|			return false;
  319|   318k|		}
  320|   318k|	}  // isRadiusPort
_ZN4pcpp11RadiusLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  152|  21.8k|		    : Layer(data, dataLen, prevLayer, packet, Radius)
  153|  21.8k|		{}
_ZNK4pcpp11RadiusLayer15getRadiusHeaderEv:
  181|  43.7k|		{
  182|  43.7k|			return reinterpret_cast<radius_header*>(m_Data);
  183|  43.7k|		}
_ZN4pcpp11RadiusLayer14parseNextLayerEv:
  258|  21.8k|		{}
_ZNK4pcpp11RadiusLayer16getOsiModelLayerEv:
  266|  4.37k|		{
  267|  4.37k|			return OsiModelApplicationLayer;
  268|  4.37k|		}
_ZN4pcpp11RadiusLayerD2Ev:
  175|  21.8k|		~RadiusLayer() override = default;

_ZNK4pcpp9RawPacket10getRawDataEv:
  694|  1.88M|		{
  695|  1.88M|			return m_RawData;
  696|  1.88M|		}
_ZNK4pcpp9RawPacket16getLinkLayerTypeEv:
  701|   964k|		{
  702|   964k|			return m_LinkLayerType;
  703|   964k|		}
_ZNK4pcpp9RawPacket13getRawDataLenEv:
  713|  2.11M|		{
  714|  2.11M|			return m_RawDataLen;
  715|  2.11M|		}
_ZNK4pcpp9RawPacket18getPacketTimeStampEv:
  726|   191k|		{
  727|   191k|			return m_TimeStamp;
  728|   191k|		}
_ZN4pcpp9RawPacketC2Ev:
  544|  2.24k|		RawPacket() = default;

_ZN4pcpp11S7CommLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   95|  8.69k|		    : Layer(data, dataLen, prevLayer, packet, S7COMM)
   96|  8.69k|		{}
_ZNK4pcpp11S7CommLayer12getHeaderLenEv:
  145|  1.24k|		{
  146|  1.24k|			return m_DataLen;
  147|  1.24k|		}
_ZN4pcpp11S7CommLayer22computeCalculateFieldsEv:
  151|  1.24k|		{}
_ZN4pcpp11S7CommLayer14parseNextLayerEv:
  155|  8.69k|		{}
_ZNK4pcpp11S7CommLayer16getOsiModelLayerEv:
  166|  1.24k|		{
  167|  1.24k|			return OsiModelApplicationLayer;
  168|  1.24k|		}
_ZNK4pcpp11S7CommLayer15getS7commHeaderEv:
  172|  2.48k|		{
  173|  2.48k|			return reinterpret_cast<s7commhdr*>(m_Data);
  174|  2.48k|		}
_ZN4pcpp11S7CommLayerD2Ev:
   98|  8.69k|		~S7CommLayer() override = default;

_ZN4pcpp8SSHLayer9isSSHPortEtt:
   93|   206k|		{
   94|   206k|			return portSrc == 22 || portDst == 22;
  ------------------
  |  Branch (94:11): [True: 3.66k, False: 202k]
  |  Branch (94:28): [True: 11.5k, False: 191k]
  ------------------
   95|   206k|		}
_ZN4pcpp8SSHLayer22computeCalculateFieldsEv:
  105|  3.08k|		{}
_ZNK4pcpp8SSHLayer16getOsiModelLayerEv:
  108|  3.08k|		{
  109|  3.08k|			return OsiModelApplicationLayer;
  110|  3.08k|		}
_ZN4pcpp8SSHLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  115|  15.9k|		    : Layer(data, dataLen, prevLayer, packet, SSH)
  116|  15.9k|		{}
_ZNK4pcpp24SSHIdentificationMessage12getHeaderLenEv:
  149|  1.31k|		{
  150|  1.31k|			return m_DataLen;
  151|  1.31k|		}
_ZN4pcpp24SSHIdentificationMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  161|  1.09k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  162|  1.09k|		{}
_ZN4pcpp19SSHHandshakeMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  261|  2.28k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  262|  2.28k|		{}
_ZNK4pcpp19SSHHandshakeMessage16getMsgBaseHeaderEv:
  265|  3.54k|		{
  266|  3.54k|			return reinterpret_cast<ssh_message_base*>(m_Data);
  267|  3.54k|		}
_ZN4pcpp19SSHEncryptedMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  395|  12.5k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  396|  12.5k|		{}
_ZNK4pcpp19SSHEncryptedMessage12getHeaderLenEv:
  402|  14.9k|		{
  403|  14.9k|			return m_DataLen;
  404|  14.9k|		}

_ZN4pcpp10SSLVersionC2Et:
  157|   460k|		{
  158|   460k|			m_SSLVersionValue = sslVersionValue;
  159|   460k|		}
_ZN4pcpp10SSLVersion6asUIntEv:
  170|  11.6k|		{
  171|  11.6k|			return m_SSLVersionValue;
  172|  11.6k|		}

_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  946|  7.29k|	{
  947|  7.29k|		size_t vecSize = m_ExtensionList.size();
  948|  13.5k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 11.2k, False: 2.25k]
  ------------------
  949|  11.2k|		{
  950|  11.2k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  11.2k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 5.04k, False: 6.22k]
  ------------------
  952|  5.04k|				return static_cast<TExtension*>(curElem);
  953|  11.2k|		}
  954|       |
  955|  2.25k|		return nullptr;
  956|  7.29k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  946|  7.29k|	{
  947|  7.29k|		size_t vecSize = m_ExtensionList.size();
  948|  47.1k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 41.3k, False: 5.79k]
  ------------------
  949|  41.3k|		{
  950|  41.3k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  41.3k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 1.50k, False: 39.8k]
  ------------------
  952|  1.50k|				return static_cast<TExtension*>(curElem);
  953|  41.3k|		}
  954|       |
  955|  5.79k|		return nullptr;
  956|  7.29k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  959|  4.35k|	{
  960|  4.35k|		size_t vecSize = m_ExtensionList.size();
  961|  6.76k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 2.95k, False: 3.80k]
  ------------------
  962|  2.95k|		{
  963|  2.95k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  2.95k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 545, False: 2.41k]
  ------------------
  965|    545|				return static_cast<TExtension*>(curElem);
  966|  2.95k|		}
  967|       |
  968|  3.80k|		return nullptr;
  969|  4.35k|	}
_ZN4pcpp14SSLCipherSuiteC2EtNS_23SSLKeyExchangeAlgorithmENS_26SSLAuthenticationAlgorithmENS_31SSLSymmetricEncryptionAlgorithmENS_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|   762k|		{
  188|   762k|			return reinterpret_cast<SSLExtensionStruct*>(m_RawData);
  189|   762k|		}
_ZN4pcpp18SSLx509CertificateC2EPhmb:
  255|  3.31k|		    : m_Data(data), m_DataLen(dataLen), m_AllDataExists(allDataExists)
  256|  3.31k|		{}
_ZNK4pcpp21SSLClientHelloMessage20getClientHelloHeaderEv:
  402|  14.1k|		{
  403|  14.1k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  404|  14.1k|		}
_ZNK4pcpp21SSLServerHelloMessage20getServerHelloHeaderEv:
  538|  7.27k|		{
  539|  7.27k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  540|  7.27k|		}
_ZN4pcpp22SSLHelloRequestMessageC2EPhmPNS_17SSLHandshakeLayerE:
  676|  8.73k|		    : SSLHandshakeMessage(data, dataLen, container)
  677|  8.73k|		{}
_ZN4pcpp27SSLServerKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  699|     35|		    : SSLHandshakeMessage(data, dataLen, container)
  700|     35|		{}
_ZN4pcpp27SSLClientKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  733|  4.58k|		    : SSLHandshakeMessage(data, dataLen, container)
  734|  4.58k|		{}
_ZN4pcpp25SSLServerHelloDoneMessageC2EPhmPNS_17SSLHandshakeLayerE:
  803|  10.5k|		    : SSLHandshakeMessage(data, dataLen, container)
  804|  10.5k|		{}
_ZN4pcpp18SSLFinishedMessageC2EPhmPNS_17SSLHandshakeLayerE:
  860|  2.18k|		    : SSLHandshakeMessage(data, dataLen, container)
  861|  2.18k|		{}
_ZN4pcpp26SSLNewSessionTicketMessageC2EPhmPNS_17SSLHandshakeLayerE:
  893|    549|		    : SSLHandshakeMessage(data, dataLen, container)
  894|    549|		{}
_ZN4pcpp17SSLUnknownMessageC2EPhmPNS_17SSLHandshakeLayerE:
  927|  25.8k|		    : SSLHandshakeMessage(data, dataLen, container)
  928|  25.8k|		{}
_ZN4pcpp19SSLHandshakeMessageD2Ev:
  306|   140k|		virtual ~SSLHandshakeMessage() = default;
_ZN4pcpp21SSLClientHelloMessageD2Ev:
  397|  43.6k|		~SSLClientHelloMessage() override = default;
_ZN4pcpp21SSLServerHelloMessageD2Ev:
  533|  40.1k|		~SSLServerHelloMessage() override = default;
_ZN4pcpp21SSLCertificateMessageD2Ev:
  641|  3.16k|		~SSLCertificateMessage() override = default;
_ZN4pcpp28SSLCertificateRequestMessageD2Ev:
  767|    855|		~SSLCertificateRequestMessage() override = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_32SSLServerNameIndicationExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  52.0k|		{
  153|  52.0k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 52.0k]
  |  Branch (153:27): [True: 0, False: 52.0k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  52.0k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  52.0k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 979, False: 51.0k]
  ------------------
  160|    979|			{
  161|    979|				return nullptr;
  162|    979|			}
  163|       |
  164|  51.0k|			return std::make_unique<T>(data, dataLen);
  165|  52.0k|		}
_ZN4pcpp12SSLExtensionD2Ev:
  123|   310k|		virtual ~SSLExtension() = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_29SSLSupportedVersionsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  12.8k|		{
  153|  12.8k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 12.8k]
  |  Branch (153:27): [True: 0, False: 12.8k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  12.8k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  12.8k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 10, False: 12.8k]
  ------------------
  160|     10|			{
  161|     10|				return nullptr;
  162|     10|			}
  163|       |
  164|  12.8k|			return std::make_unique<T>(data, dataLen);
  165|  12.8k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_27TLSSupportedGroupsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  21.8k|		{
  153|  21.8k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 21.8k]
  |  Branch (153:27): [True: 0, False: 21.8k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  21.8k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  21.8k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 20, False: 21.8k]
  ------------------
  160|     20|			{
  161|     20|				return nullptr;
  162|     20|			}
  163|       |
  164|  21.8k|			return std::make_unique<T>(data, dataLen);
  165|  21.8k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_25TLSECPointFormatExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  13.3k|		{
  153|  13.3k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 13.3k]
  |  Branch (153:27): [True: 0, False: 13.3k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  13.3k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  13.3k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 25, False: 13.2k]
  ------------------
  160|     25|			{
  161|     25|				return nullptr;
  162|     25|			}
  163|       |
  164|  13.2k|			return std::make_unique<T>(data, dataLen);
  165|  13.3k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionIS0_TnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS2_10unique_ptrIS4_NS2_14default_deleteIS4_EEEEPhm:
  152|   227k|		{
  153|   227k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 227k]
  |  Branch (153:27): [True: 0, False: 227k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|   227k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|   227k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 16.0k, False: 211k]
  ------------------
  160|  16.0k|			{
  161|  16.0k|				return nullptr;
  162|  16.0k|			}
  163|       |
  164|   211k|			return std::make_unique<T>(data, dataLen);
  165|   227k|		}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_27TLSSupportedGroupsExtensionEEEPT_v:
  946|  7.29k|	{
  947|  7.29k|		size_t vecSize = m_ExtensionList.size();
  948|  35.2k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 32.3k, False: 2.92k]
  ------------------
  949|  32.3k|		{
  950|  32.3k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  32.3k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 4.36k, False: 27.9k]
  ------------------
  952|  4.36k|				return static_cast<TExtension*>(curElem);
  953|  32.3k|		}
  954|       |
  955|  2.92k|		return nullptr;
  956|  7.29k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_25TLSECPointFormatExtensionEEEPT_v:
  946|  7.29k|	{
  947|  7.29k|		size_t vecSize = m_ExtensionList.size();
  948|  38.1k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 32.8k, False: 5.25k]
  ------------------
  949|  32.8k|		{
  950|  32.8k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  32.8k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 2.04k, False: 30.8k]
  ------------------
  952|  2.04k|				return static_cast<TExtension*>(curElem);
  953|  32.8k|		}
  954|       |
  955|  5.25k|		return nullptr;
  956|  7.29k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  959|  8.70k|	{
  960|  8.70k|		size_t vecSize = m_ExtensionList.size();
  961|  21.5k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 14.3k, False: 7.25k]
  ------------------
  962|  14.3k|		{
  963|  14.3k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  14.3k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 1.45k, False: 12.8k]
  ------------------
  965|  1.45k|				return static_cast<TExtension*>(curElem);
  966|  14.3k|		}
  967|       |
  968|  7.25k|		return nullptr;
  969|  8.70k|	}

_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLClientHelloMessageEEEPT_v:
  446|  17.3k|	{
  447|  17.3k|		size_t vecSize = m_MessageList.size();
  448|  27.3k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (448:22): [True: 17.3k, False: 10.0k]
  ------------------
  449|  17.3k|		{
  450|  17.3k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  451|  17.3k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (451:8): [True: 7.29k, False: 10.0k]
  ------------------
  452|  7.29k|				return (THandshakeMessage*)curElem;
  453|  17.3k|		}
  454|       |
  455|       |		// element not found
  456|  10.0k|		return nullptr;
  457|  17.3k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLServerHelloMessageEEEPT_v:
  446|  17.3k|	{
  447|  17.3k|		size_t vecSize = m_MessageList.size();
  448|  27.0k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (448:22): [True: 14.0k, False: 12.9k]
  ------------------
  449|  14.0k|		{
  450|  14.0k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  451|  14.0k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (451:8): [True: 4.35k, False: 9.70k]
  ------------------
  452|  4.35k|				return (THandshakeMessage*)curElem;
  453|  14.0k|		}
  454|       |
  455|       |		// element not found
  456|  12.9k|		return nullptr;
  457|  17.3k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_19SSLHandshakeMessageEEEPT_v:
  446|  17.3k|	{
  447|  17.3k|		size_t vecSize = m_MessageList.size();
  448|  17.3k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (448:22): [True: 13.5k, False: 3.79k]
  ------------------
  449|  13.5k|		{
  450|  13.5k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  451|  13.5k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (451:8): [True: 13.5k, False: 0]
  ------------------
  452|  13.5k|				return (THandshakeMessage*)curElem;
  453|  13.5k|		}
  454|       |
  455|       |		// element not found
  456|  3.79k|		return nullptr;
  457|  17.3k|	}  // getHandshakeMessageOfType
_ZNK4pcpp8SSLLayer14getRecordLayerEv:
  227|   626k|		{
  228|   626k|			return reinterpret_cast<ssl_tls_record_layer*>(m_Data);
  229|   626k|		}
_ZNK4pcpp8SSLLayer16getOsiModelLayerEv:
  247|  49.7k|		{
  248|  49.7k|			return OsiModelPresentationLayer;
  249|  49.7k|		}
_ZN4pcpp8SSLLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  253|   332k|		    : Layer(data, dataLen, prevLayer, packet, SSL)
  254|   332k|		{}
_ZN4pcpp17SSLHandshakeLayer22computeCalculateFieldsEv:
  346|  17.3k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  364|  31.3k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  365|  31.3k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayer22computeCalculateFieldsEv:
  375|  4.06k|		{}
_ZN4pcpp13SSLAlertLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  390|  8.21k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  391|  8.21k|		{}
_ZN4pcpp13SSLAlertLayer22computeCalculateFieldsEv:
  409|  1.13k|		{}
_ZN4pcpp23SSLApplicationDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  424|   149k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  425|   149k|		{}
_ZN4pcpp23SSLApplicationDataLayer22computeCalculateFieldsEv:
  442|  27.2k|		{}
_ZN4pcpp8SSLLayer9isSSLPortEt:
  491|   737k|	{
  492|   737k|		if (port == 443)  // HTTPS, this is likely case
  ------------------
  |  Branch (492:7): [True: 208k, False: 528k]
  ------------------
  493|   208k|			return true;
  494|       |
  495|   528k|		switch (port)
  496|   528k|		{
  497|  10.3k|		case 261:  // NSIIOPS
  ------------------
  |  Branch (497:3): [True: 10.3k, False: 518k]
  ------------------
  498|  11.1k|		case 448:  // DDM-SSL
  ------------------
  |  Branch (498:3): [True: 850, False: 527k]
  ------------------
  499|  12.2k|		case 465:  // SMTPS
  ------------------
  |  Branch (499:3): [True: 1.07k, False: 527k]
  ------------------
  500|  12.2k|		case 563:  // NNTPS
  ------------------
  |  Branch (500:3): [True: 20, False: 528k]
  ------------------
  501|  12.5k|		case 614:  // SSHELL
  ------------------
  |  Branch (501:3): [True: 256, False: 528k]
  ------------------
  502|  12.5k|		case 636:  // LDAPS
  ------------------
  |  Branch (502:3): [True: 5, False: 528k]
  ------------------
  503|  12.5k|		case 989:  // FTPS - data
  ------------------
  |  Branch (503:3): [True: 0, False: 528k]
  ------------------
  504|  13.4k|		case 990:  // FTPS - control
  ------------------
  |  Branch (504:3): [True: 885, False: 527k]
  ------------------
  505|  13.4k|		case 992:  // Telnet over TLS/SSL
  ------------------
  |  Branch (505:3): [True: 0, False: 528k]
  ------------------
  506|  13.4k|		case 993:  // IMAPS
  ------------------
  |  Branch (506:3): [True: 30, False: 528k]
  ------------------
  507|  13.4k|		case 994:  // IRCS
  ------------------
  |  Branch (507:3): [True: 0, False: 528k]
  ------------------
  508|  13.6k|		case 995:  // POP3S
  ------------------
  |  Branch (508:3): [True: 212, False: 528k]
  ------------------
  509|  13.6k|			return true;
  510|   514k|		default:
  ------------------
  |  Branch (510:3): [True: 514k, False: 13.6k]
  ------------------
  511|   514k|			return false;
  512|   528k|		}
  513|   528k|	}  // isSSLPort

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

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

_ZN4pcpp8SipLayer9isSipPortEt:
  113|   851k|		{
  114|   851k|			return port == 5060 || port == 5061;
  ------------------
  |  Branch (114:11): [True: 30.8k, False: 820k]
  |  Branch (114:27): [True: 7.90k, False: 812k]
  ------------------
  115|   851k|		}
_ZNK4pcpp8SipLayer16getOsiModelLayerEv:
   97|  3.86k|		{
   98|  3.86k|			return OsiModelSessionLayer;
   99|  3.86k|		}
_ZN4pcpp8SipLayerC2EPhmPNS_5LayerEPNS_6PacketEh:
  141|  26.2k|		    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, protocol)
  142|  26.2k|		{}
_ZNK4pcpp8SipLayer32getHeaderFieldNameValueSeparatorEv:
  155|  26.2k|		{
  156|  26.2k|			return ':';
  157|  26.2k|		}
_ZNK4pcpp8SipLayer43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  159|  26.2k|		{
  160|  26.2k|			return true;
  161|  26.2k|		}
_ZNK4pcpp19SipRequestFirstLine7getSizeEv:
  584|  11.5k|		{
  585|  11.5k|			return m_FirstLineEndOffset;
  586|  11.5k|		}
_ZN4pcpp19SipRequestFirstLine28SipRequestFirstLineExceptionD2Ev:
  605|  8.65k|			{}
_ZNK4pcpp20SipResponseFirstLine7getSizeEv:
  709|  22.3k|		{
  710|  22.3k|			return m_FirstLineEndOffset;
  711|  22.3k|		}
_ZN4pcpp20SipResponseFirstLine29SipResponseFirstLineExceptionD2Ev:
  730|  17.5k|			{}

_ZN4pcpp9Sll2LayerC2EPhmPNS_6PacketE:
   48|  7.67k|		Sll2Layer(uint8_t* data, size_t dataLen, Packet* packet) : Layer(data, dataLen, nullptr, packet, SLL2)
   49|  7.67k|		{}
_ZNK4pcpp9Sll2Layer13getSll2HeaderEv:
   63|  21.2k|		{
   64|  21.2k|			return reinterpret_cast<sll2_header*>(m_Data);
   65|  21.2k|		}
_ZNK4pcpp9Sll2Layer12getHeaderLenEv:
  140|  2.02k|		{
  141|  2.02k|			return sizeof(sll2_header);
  142|  2.02k|		}
_ZNK4pcpp9Sll2Layer16getOsiModelLayerEv:
  147|  2.02k|		{
  148|  2.02k|			return OsiModelDataLinkLayer;
  149|  2.02k|		}

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

_ZN4pcpp9SmtpLayer10isSmtpPortEt:
   28|   279k|		{
   29|   279k|			return port == 25 || port == 587;
  ------------------
  |  Branch (29:11): [True: 7.15k, False: 271k]
  |  Branch (29:25): [True: 11.1k, False: 260k]
  ------------------
   30|   279k|		}
_ZN4pcpp17SmtpResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  251|  3.76k|		    : SmtpLayer(data, dataLen, prevLayer, packet) {};
_ZN4pcpp9SmtpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   18|  13.9k|		    : SingleCommandTextProtocol(data, dataLen, prevLayer, packet, SMTP) {};
_ZN4pcpp9SmtpLayer14parseNextLayerEv:
   36|  13.9k|		{}
_ZNK4pcpp9SmtpLayer12getHeaderLenEv:
   40|  2.78k|		{
   41|  2.78k|			return m_DataLen;
   42|  2.78k|		}
_ZN4pcpp9SmtpLayer22computeCalculateFieldsEv:
   46|  2.78k|		{}
_ZNK4pcpp9SmtpLayer16getOsiModelLayerEv:
   50|  2.78k|		{
   51|  2.78k|			return OsiModelApplicationLayer;
   52|  2.78k|		}
_ZN4pcpp16SmtpRequestLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  121|  10.1k|		    : SmtpLayer(data, dataLen, prevLayer, packet) {};

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

_ZN4pcpp14SomeIpSdOptionC2EPKNS_14IDataContainerEm:
  107|  8.67k|		    : m_DataContainer(dataContainer), m_Offset(offset), m_ShadowData(nullptr), m_DataLen(0)
  108|  8.67k|		{}
_ZN4pcpp18SomeIpSdIPv4Option11isDataValidEPKNS_14IDataContainerEm:
  161|  8.54k|		{
  162|  8.54k|			return data && dataLen >= sizeof(someipsdhdroptionsipv4);
  ------------------
  |  Branch (162:11): [True: 8.54k, False: 0]
  |  Branch (162:19): [True: 8.54k, False: 0]
  ------------------
  163|  8.54k|		}
_ZN4pcpp18SomeIpSdIPv6Option11isDataValidEPKNS_14IDataContainerEm:
  230|     82|		{
  231|     82|			return data && dataLen >= sizeof(someipsdhdroptionsipv6);
  ------------------
  |  Branch (231:11): [True: 82, False: 0]
  |  Branch (231:19): [True: 27, False: 55]
  ------------------
  232|     82|		}
_ZN4pcpp27SomeIpSdConfigurationOption11isDataValidEPKNS_14IDataContainerEm:
  277|     62|		{
  278|     62|			return data && dataLen >= (sizeof(someipsdhdroptionsbase) - 1);
  ------------------
  |  Branch (278:11): [True: 62, False: 0]
  |  Branch (278:19): [True: 62, False: 0]
  ------------------
  279|     62|		}
_ZN4pcpp27SomeIpSdLoadBalancingOption11isDataValidEPKNS_14IDataContainerEm:
  310|     32|		{
  311|     32|			return data && dataLen >= sizeof(someipsdhdroptionsload);
  ------------------
  |  Branch (311:11): [True: 32, False: 0]
  |  Branch (311:19): [True: 32, False: 0]
  ------------------
  312|     32|		}
_ZNK4pcpp13SomeIpSdEntry9getLengthEv:
  440|  7.86k|		{
  441|  7.86k|			return sizeof(someipsdhdrentry);
  442|  7.86k|		}
_ZN4pcpp13SomeIpSdLayer14isSomeIpSdPortEt:
  570|   511k|		{
  571|   511k|			return port == 30490;
  572|   511k|		}
_ZN4pcpp13SomeIpSdLayer22computeCalculateFieldsEv:
  623|  7.38k|		void computeCalculateFields() override {};

_ZN4pcpp8StpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  123|  5.12k|		    : Layer(data, dataLen, prevLayer, packet, STP)
  124|  5.12k|		{}
_ZN4pcpp8StpLayer22computeCalculateFieldsEv:
  201|    860|		{}
_ZNK4pcpp8StpLayer16getOsiModelLayerEv:
  205|    860|		{
  206|    860|			return OsiModelDataLinkLayer;
  207|    860|		}
_ZN4pcpp26StpTopologyChangeBPDULayerC2EPhmPNS_5LayerEPNS_6PacketE:
  240|  5.12k|		    : StpLayer(data, dataLen, prevLayer, packet)
  241|  5.12k|		{}
_ZNK4pcpp26StpTopologyChangeBPDULayer12getHeaderLenEv:
  258|    267|		{
  259|    267|			return sizeof(stp_tcn_bpdu);
  260|    267|		}
_ZNK4pcpp26StpTopologyChangeBPDULayer8toStringEv:
  267|    534|		{
  268|    534|			return "Spanning Tree Topology Change Notification";
  269|    534|		}
_ZN4pcpp26StpTopologyChangeBPDULayer11isDataValidEPKhm:
  277|  1.60k|		{
  278|  1.60k|			return canReinterpretAs<stp_tcn_bpdu>(data, dataLen);
  279|  1.60k|		}
_ZN4pcpp25StpConfigurationBPDULayerC2EPhmPNS_5LayerEPNS_6PacketE:
  297|  3.52k|		    : StpTopologyChangeBPDULayer(data, dataLen, prevLayer, packet)
  298|  3.52k|		{}
_ZNK4pcpp25StpConfigurationBPDULayer12getHeaderLenEv:
  447|    397|		{
  448|    397|			return sizeof(stp_conf_bpdu);
  449|    397|		}
_ZNK4pcpp25StpConfigurationBPDULayer8toStringEv:
  456|    794|		{
  457|    794|			return "Spanning Tree Configuration";
  458|    794|		}
_ZN4pcpp25StpConfigurationBPDULayer11isDataValidEPKhm:
  465|  2.38k|		{
  466|  2.38k|			return canReinterpretAs<stp_conf_bpdu>(data, dataLen);
  467|  2.38k|		}
_ZN4pcpp13RapidStpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  485|  1.14k|		    : StpConfigurationBPDULayer(data, dataLen, prevLayer, packet)
  486|  1.14k|		{}
_ZNK4pcpp13RapidStpLayer12getHeaderLenEv:
  517|    196|		{
  518|    196|			return sizeof(rstp_conf_bpdu);
  519|    196|		}
_ZNK4pcpp13RapidStpLayer8toStringEv:
  526|    360|		{
  527|    360|			return "Rapid Spanning Tree";
  528|    360|		}
_ZN4pcpp13RapidStpLayer11isDataValidEPKhm:
  535|  1.08k|		{
  536|  1.08k|			return canReinterpretAs<rstp_conf_bpdu>(data, dataLen);
  537|  1.08k|		}
_ZN4pcpp16MultipleStpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  552|     64|		    : RapidStpLayer(data, dataLen, prevLayer, packet)
  553|     64|		{}
_ZN4pcpp16MultipleStpLayer14parseNextLayerEv:
  690|     64|		{}
_ZNK4pcpp16MultipleStpLayer8toStringEv:
  694|     32|		{
  695|     32|			return "Multiple Spanning Tree";
  696|     32|		}
_ZN4pcpp16MultipleStpLayer11isDataValidEPKhm:
  703|     68|		{
  704|     68|			return canReinterpretAs<mstp_conf_bpdu>(data, dataLen);
  705|     68|		}

_ZN4pcpp9TLVRecordIhhED2Ev:
   54|  1.22M|		virtual ~TLVRecord() = default;
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEED2Ev:
  237|   687k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp9TLVRecordIttEC2ERKS1_:
   49|  3.68k|		{
   50|  3.68k|			m_Data = other.m_Data;
   51|  3.68k|		}
_ZN4pcpp9TLVRecordIttED2Ev:
   54|  14.3k|		virtual ~TLVRecord() = default;
_ZN4pcpp9TLVRecordIttEaSERKS1_:
   78|  9.95k|		{
   79|  9.95k|			m_Data = other.m_Data;
   80|  9.95k|			return *this;
   81|  9.95k|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIjEET_m:
  164|  3.36k|		{
  165|  3.36k|			static_assert(std::is_trivially_copyable<T>::value && std::is_default_constructible<T>::value &&
  166|  3.36k|			                  !std::is_pointer<T>::value,
  167|  3.36k|			              "TLVRecord::getValueAs<T>() requires T to be a non-pointer, "
  168|  3.36k|			              "default-constructible, trivially copyable type");
  169|       |
  170|  3.36k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (170:8): [True: 3.24k, False: 123]
  ------------------
  171|  3.24k|			{
  172|  3.24k|				return T{};
  173|  3.24k|			}
  174|       |
  175|    123|			T result;
  176|    123|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  177|    123|			return result;
  178|  3.36k|		}
_ZN4pcpp9TLVRecordIhhEC2ERKS1_:
   49|   371k|		{
   50|   371k|			m_Data = other.m_Data;
   51|   371k|		}
_ZNK4pcpp9TLVRecordIhhE14getValueOffsetEv:
  210|  7.74k|		{
  211|  7.74k|			return 0;
  212|  7.74k|		}
_ZN4pcpp9TLVRecordIhhEaSERKS1_:
   78|   909k|		{
   79|   909k|			m_Data = other.m_Data;
   80|   909k|			return *this;
   81|   909k|		}
_ZN4pcpp9TLVRecordIhhE6assignEPh:
   59|  2.30M|		{
   60|  2.30M|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   61|  2.30M|		}
_ZN4pcpp9TLVRecordIhhE9canAssignEPKhm:
   68|   165k|		{
   69|   165k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (69:11): [True: 165k, False: 0]
  ------------------
   70|   165k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (70:11): [True: 162k, False: 2.28k]
  ------------------
   71|   165k|		}
_ZN4pcpp9TLVRecordIttE6assignEPh:
   59|  26.1k|		{
   60|  26.1k|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   61|  26.1k|		}
_ZN4pcpp9TLVRecordIhhEC2EPh:
   41|  1.24M|		{
   42|  1.24M|			assign(recordRawData);
   43|  1.24M|		}
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEED2Ev:
  237|  18.9k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEEC2Ev:
  226|  18.9k|		{
  227|  18.9k|			m_RecordCount = static_cast<size_t>(-1);
  228|  18.9k|		}
_ZNK4pcpp9TLVRecordIhhE6isNullEv:
  129|  2.98M|		{
  130|  2.98M|			return (m_Data == nullptr);
  131|  2.98M|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIhEET_m:
  164|  8.26k|		{
  165|  8.26k|			static_assert(std::is_trivially_copyable<T>::value && std::is_default_constructible<T>::value &&
  166|  8.26k|			                  !std::is_pointer<T>::value,
  167|  8.26k|			              "TLVRecord::getValueAs<T>() requires T to be a non-pointer, "
  168|  8.26k|			              "default-constructible, trivially copyable type");
  169|       |
  170|  8.26k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (170:8): [True: 639, False: 7.62k]
  ------------------
  171|    639|			{
  172|    639|				return T{};
  173|    639|			}
  174|       |
  175|  7.62k|			T result;
  176|  7.62k|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  177|  7.62k|			return result;
  178|  8.26k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE12getTLVRecordEjPhm:
  315|  13.6k|		{
  316|  13.6k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  317|   323k|			while (!curRec.isNull())
  ------------------
  |  Branch (317:11): [True: 318k, False: 4.78k]
  ------------------
  318|   318k|			{
  319|   318k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (319:9): [True: 8.88k, False: 309k]
  ------------------
  320|  8.88k|				{
  321|  8.88k|					return curRec;
  322|  8.88k|				}
  323|       |
  324|   309k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  325|   309k|			}
  326|       |
  327|  4.78k|			curRec.assign(nullptr);
  328|  4.78k|			return curRec;  // for NRVO optimization
  329|  13.6k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getFirstTLVRecordEPhm:
  255|  20.4k|		{
  256|  20.4k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  257|  20.4k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (257:8): [True: 0, False: 20.4k]
  ------------------
  258|      0|				return resRec;
  259|       |
  260|  20.4k|			resRec.assign(tlvDataBasePtr);
  261|       |			// resRec pointer is out-bounds of the TLV records memory
  262|  20.4k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (262:8): [True: 255, False: 20.1k]
  ------------------
  263|    255|				resRec.assign(nullptr);
  264|       |
  265|       |			// check if there are records at all and the total size is not zero
  266|  20.4k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (266:8): [True: 20.1k, False: 255]
  |  Branch (266:29): [True: 0, False: 20.1k]
  |  Branch (266:48): [True: 0, False: 20.1k]
  ------------------
  267|      0|				resRec.assign(nullptr);
  268|       |
  269|  20.4k|			return resRec;
  270|  20.4k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE16getNextTLVRecordERS1_PKhm:
  281|   717k|		{
  282|   717k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  283|       |
  284|   717k|			if (record.isNull())
  ------------------
  |  Branch (284:8): [True: 0, False: 717k]
  ------------------
  285|      0|				return resRec;
  286|       |
  287|   717k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (287:8): [True: 6.70k, False: 711k]
  ------------------
  288|   717k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  289|   717k|			                                  record.getTotalSize()))
  290|  6.70k|				return resRec;
  291|       |
  292|   711k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  293|       |
  294|   711k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (294:8): [True: 0, False: 711k]
  ------------------
  295|      0|				resRec.assign(nullptr);
  296|       |
  297|       |			// resRec pointer is out-bounds of the TLV records memory
  298|   711k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (298:8): [True: 0, False: 711k]
  ------------------
  299|      0|				resRec.assign(nullptr);
  300|       |
  301|       |			// resRec pointer is out-bounds of the TLV records memory
  302|   711k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (302:8): [True: 711k, False: 0]
  |  Branch (302:28): [True: 4.61k, False: 706k]
  ------------------
  303|  4.61k|				resRec.assign(nullptr);
  304|       |
  305|   711k|			return resRec;
  306|   717k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getTLVRecordCountEPhm:
  339|   210k|		{
  340|   210k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (340:8): [True: 207k, False: 3.41k]
  ------------------
  341|   207k|				return m_RecordCount;
  342|       |
  343|  3.41k|			m_RecordCount = 0;
  344|  3.41k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  345|   207k|			while (!curRec.isNull())
  ------------------
  |  Branch (345:11): [True: 204k, False: 3.41k]
  ------------------
  346|   204k|			{
  347|   204k|				m_RecordCount++;
  348|   204k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  349|   204k|			}
  350|       |
  351|  3.41k|			return m_RecordCount;
  352|   210k|		}
_ZNK4pcpp9TLVRecordIhhE7getTypeEv:
  111|   512k|		{
  112|   512k|			if (m_Data == nullptr)
  ------------------
  |  Branch (112:8): [True: 0, False: 512k]
  ------------------
  113|      0|				return 0;
  114|       |
  115|   512k|			return m_Data->recordType;
  116|   512k|		}
_ZN4pcpp9TLVRecordIhhE15purgeRecordDataEv:
  147|  45.5k|		{
  148|  45.5k|			if (!isNull())
  ------------------
  |  Branch (148:8): [True: 45.5k, False: 0]
  ------------------
  149|  45.5k|			{
  150|  45.5k|				delete[] m_Data;
  151|  45.5k|				m_Data = nullptr;
  152|  45.5k|			}
  153|  45.5k|		}
_ZNK4pcpp9TLVRecordIhhE16getRecordBasePtrEv:
  141|  4.60M|		{
  142|  4.60M|			return reinterpret_cast<uint8_t*>(m_Data);
  143|  4.60M|		}
_ZNK4pcpp9TLVRecordIhhE9isNotNullEv:
  135|   167k|		{
  136|   167k|			return (m_Data != nullptr);
  137|   167k|		}
_ZN4pcpp9TLVRecordIttEC2EPh:
   41|  12.3k|		{
   42|  12.3k|			assign(recordRawData);
   43|  12.3k|		}
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEED2Ev:
  237|  5.40k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEEC2Ev:
  226|  5.40k|		{
  227|  5.40k|			m_RecordCount = static_cast<size_t>(-1);
  228|  5.40k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getFirstTLVRecordEPhm:
  255|  2.41k|		{
  256|  2.41k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  257|  2.41k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (257:8): [True: 0, False: 2.41k]
  ------------------
  258|      0|				return resRec;
  259|       |
  260|  2.41k|			resRec.assign(tlvDataBasePtr);
  261|       |			// resRec pointer is out-bounds of the TLV records memory
  262|  2.41k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (262:8): [True: 372, False: 2.04k]
  ------------------
  263|    372|				resRec.assign(nullptr);
  264|       |
  265|       |			// check if there are records at all and the total size is not zero
  266|  2.41k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (266:8): [True: 2.04k, False: 372]
  |  Branch (266:29): [True: 0, False: 2.04k]
  |  Branch (266:48): [True: 0, False: 2.04k]
  ------------------
  267|      0|				resRec.assign(nullptr);
  268|       |
  269|  2.41k|			return resRec;
  270|  2.41k|		}
_ZN4pcpp9TLVRecordIttE9canAssignEPKhm:
   68|  12.3k|		{
   69|  12.3k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (69:11): [True: 12.3k, False: 0]
  ------------------
   70|  12.3k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (70:11): [True: 11.7k, False: 661]
  ------------------
   71|  12.3k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE16getNextTLVRecordERS1_PKhm:
  281|  9.95k|		{
  282|  9.95k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  283|       |
  284|  9.95k|			if (record.isNull())
  ------------------
  |  Branch (284:8): [True: 0, False: 9.95k]
  ------------------
  285|      0|				return resRec;
  286|       |
  287|  9.95k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (287:8): [True: 661, False: 9.29k]
  ------------------
  288|  9.95k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  289|  9.95k|			                                  record.getTotalSize()))
  290|    661|				return resRec;
  291|       |
  292|  9.29k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  293|       |
  294|  9.29k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (294:8): [True: 0, False: 9.29k]
  ------------------
  295|      0|				resRec.assign(nullptr);
  296|       |
  297|       |			// resRec pointer is out-bounds of the TLV records memory
  298|  9.29k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (298:8): [True: 0, False: 9.29k]
  ------------------
  299|      0|				resRec.assign(nullptr);
  300|       |
  301|       |			// resRec pointer is out-bounds of the TLV records memory
  302|  9.29k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (302:8): [True: 9.29k, False: 0]
  |  Branch (302:28): [True: 1.18k, False: 8.11k]
  ------------------
  303|  1.18k|				resRec.assign(nullptr);
  304|       |
  305|  9.29k|			return resRec;
  306|  9.95k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE12getTLVRecordEjPhm:
  315|    682|		{
  316|    682|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  317|  3.25k|			while (!curRec.isNull())
  ------------------
  |  Branch (317:11): [True: 2.78k, False: 477]
  ------------------
  318|  2.78k|			{
  319|  2.78k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (319:9): [True: 205, False: 2.57k]
  ------------------
  320|    205|				{
  321|    205|					return curRec;
  322|    205|				}
  323|       |
  324|  2.57k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  325|  2.57k|			}
  326|       |
  327|    477|			curRec.assign(nullptr);
  328|    477|			return curRec;  // for NRVO optimization
  329|    682|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getTLVRecordCountEPhm:
  339|  5.42k|		{
  340|  5.42k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (340:8): [True: 4.37k, False: 1.05k]
  ------------------
  341|  4.37k|				return m_RecordCount;
  342|       |
  343|  1.05k|			m_RecordCount = 0;
  344|  1.05k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  345|  4.74k|			while (!curRec.isNull())
  ------------------
  |  Branch (345:11): [True: 3.68k, False: 1.05k]
  ------------------
  346|  3.68k|			{
  347|  3.68k|				m_RecordCount++;
  348|  3.68k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  349|  3.68k|			}
  350|       |
  351|  1.05k|			return m_RecordCount;
  352|  5.42k|		}
_ZNK4pcpp9TLVRecordIttE6isNullEv:
  129|  29.6k|		{
  130|  29.6k|			return (m_Data == nullptr);
  131|  29.6k|		}
_ZNK4pcpp9TLVRecordIttE16getRecordBasePtrEv:
  141|  50.2k|		{
  142|  50.2k|			return reinterpret_cast<uint8_t*>(m_Data);
  143|  50.2k|		}
_ZN4pcpp15TLVRecordReaderINS_23GtpV2InformationElementEED2Ev:
  237|  16.9k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_23GtpV2InformationElementEEC2Ev:
  226|  16.9k|		{
  227|  16.9k|			m_RecordCount = static_cast<size_t>(-1);
  228|  16.9k|		}
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEED2Ev:
  237|   782k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEEC2Ev:
  226|   782k|		{
  227|   782k|			m_RecordCount = static_cast<size_t>(-1);
  228|   782k|		}
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEED2Ev:
  237|  2.87k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEEC2Ev:
  226|  2.37k|		{
  227|  2.37k|			m_RecordCount = static_cast<size_t>(-1);
  228|  2.37k|		}
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEED2Ev:
  237|  2.37k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEEC2Ev:
  226|  3.43k|		{
  227|  3.43k|			m_RecordCount = static_cast<size_t>(-1);
  228|  3.43k|		}
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEED2Ev:
  237|  3.43k|		virtual ~TLVRecordReader() = default;
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE12getTLVRecordEjPhm:
  315|   110k|		{
  316|   110k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  317|   134k|			while (!curRec.isNull())
  ------------------
  |  Branch (317:11): [True: 69.6k, False: 65.0k]
  ------------------
  318|  69.6k|			{
  319|  69.6k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (319:9): [True: 45.5k, False: 24.1k]
  ------------------
  320|  45.5k|				{
  321|  45.5k|					return curRec;
  322|  45.5k|				}
  323|       |
  324|  24.1k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  325|  24.1k|			}
  326|       |
  327|  65.0k|			curRec.assign(nullptr);
  328|  65.0k|			return curRec;  // for NRVO optimization
  329|   110k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE17getFirstTLVRecordEPhm:
  255|   156k|		{
  256|   156k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  257|   156k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (257:8): [True: 57.4k, False: 98.6k]
  ------------------
  258|  57.4k|				return resRec;
  259|       |
  260|  98.6k|			resRec.assign(tlvDataBasePtr);
  261|       |			// resRec pointer is out-bounds of the TLV records memory
  262|  98.6k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (262:8): [True: 2.37k, False: 96.2k]
  ------------------
  263|  2.37k|				resRec.assign(nullptr);
  264|       |
  265|       |			// check if there are records at all and the total size is not zero
  266|  98.6k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (266:8): [True: 96.2k, False: 2.37k]
  |  Branch (266:29): [True: 0, False: 96.2k]
  |  Branch (266:48): [True: 100, False: 96.1k]
  ------------------
  267|    100|				resRec.assign(nullptr);
  268|       |
  269|  98.6k|			return resRec;
  270|   156k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE16getNextTLVRecordERS1_PKhm:
  281|   191k|		{
  282|   191k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  283|       |
  284|   191k|			if (record.isNull())
  ------------------
  |  Branch (284:8): [True: 0, False: 191k]
  ------------------
  285|      0|				return resRec;
  286|       |
  287|   191k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (287:8): [True: 46.1k, False: 145k]
  ------------------
  288|   191k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  289|   191k|			                                  record.getTotalSize()))
  290|  46.1k|				return resRec;
  291|       |
  292|   145k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  293|       |
  294|   145k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (294:8): [True: 799, False: 144k]
  ------------------
  295|    799|				resRec.assign(nullptr);
  296|       |
  297|       |			// resRec pointer is out-bounds of the TLV records memory
  298|   145k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (298:8): [True: 799, False: 144k]
  ------------------
  299|    799|				resRec.assign(nullptr);
  300|       |
  301|       |			// resRec pointer is out-bounds of the TLV records memory
  302|   145k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (302:8): [True: 144k, False: 799]
  |  Branch (302:28): [True: 3.60k, False: 141k]
  ------------------
  303|  3.60k|				resRec.assign(nullptr);
  304|       |
  305|   145k|			return resRec;
  306|   191k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEE20changeTLVRecordCountEi:
  360|  45.5k|		{
  361|  45.5k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (361:8): [True: 0, False: 45.5k]
  ------------------
  362|      0|				m_RecordCount += changedBy;
  363|  45.5k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEC2Ev:
  226|   687k|		{
  227|   687k|			m_RecordCount = static_cast<size_t>(-1);
  228|   687k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEaSERKS2_:
  242|   110k|		{
  243|   110k|			m_RecordCount = other.m_RecordCount;
  244|   110k|			return *this;
  245|   110k|		}
_ZN4pcpp15TLVRecordReaderINS_15RadiusAttributeEEC2Ev:
  226|  21.8k|		{
  227|  21.8k|			m_RecordCount = static_cast<size_t>(-1);
  228|  21.8k|		}
_ZN4pcpp15TLVRecordReaderINS_15RadiusAttributeEED2Ev:
  237|  21.8k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_9NdpOptionEEC2Ev:
  226|  3.16k|		{
  227|  3.16k|			m_RecordCount = static_cast<size_t>(-1);
  228|  3.16k|		}
_ZN4pcpp15TLVRecordReaderINS_9NdpOptionEED2Ev:
  237|  3.16k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEEC2Ev:
  226|  2.87k|		{
  227|  2.87k|			m_RecordCount = static_cast<size_t>(-1);
  228|  2.87k|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE17getFirstTLVRecordEPhm:
  255|  2.11k|		{
  256|  2.11k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  257|  2.11k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (257:8): [True: 226, False: 1.89k]
  ------------------
  258|    226|				return resRec;
  259|       |
  260|  1.89k|			resRec.assign(tlvDataBasePtr);
  261|       |			// resRec pointer is out-bounds of the TLV records memory
  262|  1.89k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (262:8): [True: 34, False: 1.85k]
  ------------------
  263|     34|				resRec.assign(nullptr);
  264|       |
  265|       |			// check if there are records at all and the total size is not zero
  266|  1.89k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (266:8): [True: 1.85k, False: 34]
  |  Branch (266:29): [True: 0, False: 1.85k]
  |  Branch (266:48): [True: 632, False: 1.22k]
  ------------------
  267|    632|				resRec.assign(nullptr);
  268|       |
  269|  1.89k|			return resRec;
  270|  2.11k|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE16getNextTLVRecordERS1_PKhm:
  281|    196|		{
  282|    196|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  283|       |
  284|    196|			if (record.isNull())
  ------------------
  |  Branch (284:8): [True: 0, False: 196]
  ------------------
  285|      0|				return resRec;
  286|       |
  287|    196|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (287:8): [True: 0, False: 196]
  ------------------
  288|    196|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  289|    196|			                                  record.getTotalSize()))
  290|      0|				return resRec;
  291|       |
  292|    196|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  293|       |
  294|    196|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (294:8): [True: 0, False: 196]
  ------------------
  295|      0|				resRec.assign(nullptr);
  296|       |
  297|       |			// resRec pointer is out-bounds of the TLV records memory
  298|    196|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (298:8): [True: 0, False: 196]
  ------------------
  299|      0|				resRec.assign(nullptr);
  300|       |
  301|       |			// resRec pointer is out-bounds of the TLV records memory
  302|    196|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (302:8): [True: 196, False: 0]
  |  Branch (302:28): [True: 98, False: 98]
  ------------------
  303|     98|				resRec.assign(nullptr);
  304|       |
  305|    196|			return resRec;
  306|    196|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE12getTLVRecordEjPhm:
  315|  2.11k|		{
  316|  2.11k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  317|  2.31k|			while (!curRec.isNull())
  ------------------
  |  Branch (317:11): [True: 1.32k, False: 990]
  ------------------
  318|  1.32k|			{
  319|  1.32k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (319:9): [True: 1.12k, False: 196]
  ------------------
  320|  1.12k|				{
  321|  1.12k|					return curRec;
  322|  1.12k|				}
  323|       |
  324|    196|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  325|    196|			}
  326|       |
  327|    990|			curRec.assign(nullptr);
  328|    990|			return curRec;  // for NRVO optimization
  329|  2.11k|		}
_ZNK4pcpp9TLVRecordIhhE8getValueEv:
  120|    564|		{
  121|    564|			if (m_Data == nullptr)
  ------------------
  |  Branch (121:8): [True: 0, False: 564]
  ------------------
  122|      0|				return nullptr;
  123|       |
  124|    564|			return m_Data->recordValue;
  125|    564|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE12getTLVRecordEjPhm:
  315|  2.18k|		{
  316|  2.18k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  317|  5.59k|			while (!curRec.isNull())
  ------------------
  |  Branch (317:11): [True: 3.55k, False: 2.04k]
  ------------------
  318|  3.55k|			{
  319|  3.55k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (319:9): [True: 141, False: 3.41k]
  ------------------
  320|    141|				{
  321|    141|					return curRec;
  322|    141|				}
  323|       |
  324|  3.41k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  325|  3.41k|			}
  326|       |
  327|  2.04k|			curRec.assign(nullptr);
  328|  2.04k|			return curRec;  // for NRVO optimization
  329|  2.18k|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE17getFirstTLVRecordEPhm:
  255|  3.36k|		{
  256|  3.36k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  257|  3.36k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (257:8): [True: 97, False: 3.26k]
  ------------------
  258|     97|				return resRec;
  259|       |
  260|  3.26k|			resRec.assign(tlvDataBasePtr);
  261|       |			// resRec pointer is out-bounds of the TLV records memory
  262|  3.26k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (262:8): [True: 1.32k, False: 1.94k]
  ------------------
  263|  1.32k|				resRec.assign(nullptr);
  264|       |
  265|       |			// check if there are records at all and the total size is not zero
  266|  3.26k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (266:8): [True: 1.94k, False: 1.32k]
  |  Branch (266:29): [True: 0, False: 1.94k]
  |  Branch (266:48): [True: 681, False: 1.26k]
  ------------------
  267|    681|				resRec.assign(nullptr);
  268|       |
  269|  3.26k|			return resRec;
  270|  3.36k|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE16getNextTLVRecordERS1_PKhm:
  281|  5.05k|		{
  282|  5.05k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  283|       |
  284|  5.05k|			if (record.isNull())
  ------------------
  |  Branch (284:8): [True: 0, False: 5.05k]
  ------------------
  285|      0|				return resRec;
  286|       |
  287|  5.05k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (287:8): [True: 144, False: 4.91k]
  ------------------
  288|  5.05k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  289|  5.05k|			                                  record.getTotalSize()))
  290|    144|				return resRec;
  291|       |
  292|  4.91k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  293|       |
  294|  4.91k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (294:8): [True: 777, False: 4.13k]
  ------------------
  295|    777|				resRec.assign(nullptr);
  296|       |
  297|       |			// resRec pointer is out-bounds of the TLV records memory
  298|  4.91k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (298:8): [True: 777, False: 4.13k]
  ------------------
  299|    777|				resRec.assign(nullptr);
  300|       |
  301|       |			// resRec pointer is out-bounds of the TLV records memory
  302|  4.91k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (302:8): [True: 4.13k, False: 777]
  |  Branch (302:28): [True: 132, False: 4.00k]
  ------------------
  303|    132|				resRec.assign(nullptr);
  304|       |
  305|  4.91k|			return resRec;
  306|  5.05k|		}

_ZN4pcpp8TcpLayerD2Ev:
  461|   687k|		~TcpLayer() override = default;
_ZN4pcpp9TcpOptionC2EPh:
  259|   504k|		explicit TcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  260|   504k|		{}
_ZN4pcpp9TcpOption9canAssignEPKhm:
  284|   347k|		{
  285|   347k|			const auto* data = reinterpret_cast<const TLVRawData*>(recordRawData);
  286|   347k|			if (data == nullptr)
  ------------------
  |  Branch (286:8): [True: 0, False: 347k]
  ------------------
  287|      0|				return false;
  288|       |
  289|   347k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (289:8): [True: 103k, False: 244k]
  ------------------
  290|   103k|				return false;
  291|       |
  292|   244k|			const auto recordType = getTcpOptionEnumType(data);
  293|   244k|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (293:8): [True: 154k, False: 90.0k]
  |  Branch (293:48): [True: 14.2k, False: 75.7k]
  ------------------
  294|   168k|				return true;
  295|       |
  296|  75.7k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  297|   244k|		}
_ZNK4pcpp9TcpOption12getTotalSizeEv:
  302|  1.36M|		{
  303|  1.36M|			if (m_Data == nullptr)
  ------------------
  |  Branch (303:8): [True: 0, False: 1.36M]
  ------------------
  304|      0|				return 0;
  305|       |
  306|  1.36M|			const auto recordType = getTcpOptionEnumType(m_Data);
  307|  1.36M|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (307:8): [True: 928k, False: 437k]
  |  Branch (307:48): [True: 72.6k, False: 364k]
  ------------------
  308|  1.00M|				return sizeof(uint8_t);
  309|       |
  310|   364k|			return static_cast<size_t>(m_Data->recordLen);
  311|  1.36M|		}
_ZN4pcpp9TcpOption20getTcpOptionEnumTypeEPKNS_9TLVRecordIhhE10TLVRawDataE:
  335|  1.60M|		{
  336|  1.60M|			if (optionRawData == nullptr)
  ------------------
  |  Branch (336:8): [True: 0, False: 1.60M]
  ------------------
  337|      0|				return TcpOptionEnumType::Unknown;
  338|       |
  339|  1.60M|			return static_cast<TcpOptionEnumType>(optionRawData->recordType);
  340|  1.60M|		}
_ZNK4pcpp8TcpLayer12getTcpHeaderEv:
  474|  3.24M|		{
  475|  3.24M|			return reinterpret_cast<tcphdr*>(m_Data);
  476|  3.24M|		}
_ZNK4pcpp8TcpLayer12getHeaderLenEv:
  568|  1.27M|		{
  569|  1.27M|			return getTcpHeader()->dataOffset * 4;
  570|  1.27M|		}
_ZNK4pcpp8TcpLayer16getOsiModelLayerEv:
  578|   110k|		{
  579|   110k|			return OsiModelTransportLayer;
  580|   110k|		}
_ZNK4pcpp8TcpLayer17getOptionsBasePtrEv:
  635|   323k|		{
  636|   323k|			return m_Data + sizeof(tcphdr);
  637|   323k|		}
_ZN4pcpp8TcpLayer11isDataValidEPKhm:
  646|   579k|	{
  647|   579k|		const tcphdr* hdr = reinterpret_cast<const tcphdr*>(data);
  648|   579k|		return dataLen >= sizeof(tcphdr) && hdr->dataOffset >= 5 /* the minimum TCP header size */
  ------------------
  |  Branch (648:10): [True: 579k, False: 459]
  |  Branch (648:39): [True: 577k, False: 1.84k]
  ------------------
  649|   577k|		       && dataLen >= hdr->dataOffset * sizeof(uint32_t);
  ------------------
  |  Branch (649:13): [True: 576k, False: 772]
  ------------------
  650|   579k|	}

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

_ZNK4pcpp11HeaderField12getFieldSizeEv:
   49|  1.87M|		{
   50|  1.87M|			return m_FieldSize;
   51|  1.87M|		}
_ZNK4pcpp11HeaderField13isEndOfHeaderEv:
   70|   744k|		{
   71|   744k|			return m_IsEndOfHeaderField;
   72|   744k|		}
_ZNK4pcpp24TextBasedProtocolMessage13getFirstFieldEv:
  123|  2.14k|		{
  124|  2.14k|			return m_FieldList;
  125|  2.14k|		}

_ZN4pcpp9TpktLayer11isDataValidEPKhm:
   92|   156k|		{
   93|   156k|			return canReinterpretAs<tpkthdr>(data, dataSize);
   94|   156k|		}
_ZN4pcpp9TpktLayer10isTpktPortEtt:
   83|   149k|		{
   84|   149k|			return portSrc == 102 || portDst == 102;
  ------------------
  |  Branch (84:11): [True: 7.21k, False: 142k]
  |  Branch (84:29): [True: 8.17k, False: 133k]
  ------------------
   85|   149k|		}
_ZN4pcpp9TpktLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   38|  15.3k|		    : Layer(data, dataLen, prevLayer, packet, TPKT)
   39|  15.3k|		{}
_ZNK4pcpp9TpktLayer12getHeaderLenEv:
   67|  17.6k|		{
   68|  17.6k|			return sizeof(tpkthdr);
   69|  17.6k|		}
_ZN4pcpp9TpktLayer22computeCalculateFieldsEv:
   73|  2.21k|		{}
_ZNK4pcpp9TpktLayer16getOsiModelLayerEv:
   99|  2.21k|		{
  100|  2.21k|			return OsiModelTransportLayer;
  101|  2.21k|		}
_ZNK4pcpp9TpktLayer13getTpktHeaderEv:
  130|  8.84k|		{
  131|  8.84k|			return reinterpret_cast<tpkthdr*>(m_Data);
  132|  8.84k|		}

_ZN4pcpp8UdpLayer11isDataValidEPKhm:
  126|   250k|	{
  127|   250k|		return data && dataLen >= sizeof(udphdr);
  ------------------
  |  Branch (127:10): [True: 250k, False: 0]
  |  Branch (127:18): [True: 250k, False: 47]
  ------------------
  128|   250k|	}
_ZN4pcpp8UdpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   41|   250k|		    : Layer(data, dataLen, prevLayer, packet, UDP)
   42|   250k|		{}
_ZNK4pcpp8UdpLayer12getUdpHeaderEv:
   53|   684k|		{
   54|   684k|			return reinterpret_cast<udphdr*>(m_Data);
   55|   684k|		}
_ZNK4pcpp8UdpLayer12getHeaderLenEv:
   83|   115k|		{
   84|   115k|			return sizeof(udphdr);
   85|   115k|		}
_ZNK4pcpp8UdpLayer16getOsiModelLayerEv:
   93|  46.0k|		{
   94|  46.0k|			return OsiModelTransportLayer;
   95|  46.0k|		}

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

_ZN4pcpp9VrrpLayerC2EPhmPNS_5LayerEPNS_6PacketEhNS_9IPAddress11AddressTypeE:
  129|  14.1k|		    : Layer(data, dataLen, prevLayer, packet, vrrpVer), m_AddressType(addressType)
  130|  14.1k|		{}
_ZNK4pcpp9VrrpLayer13getVrrpHeaderEv:
  135|  50.1k|		{
  136|  50.1k|			return reinterpret_cast<vrrp_header*>(m_Data);
  137|  50.1k|		}
_ZN4pcpp9VrrpLayer14parseNextLayerEv:
  252|  14.1k|		{}
_ZNK4pcpp9VrrpLayer12getHeaderLenEv:
  260|  21.9k|		{
  261|  21.9k|			return m_DataLen;
  262|  21.9k|		}
_ZNK4pcpp9VrrpLayer16getOsiModelLayerEv:
  267|  3.25k|		{
  268|  3.25k|			return OsiModelNetworkLayer;
  269|  3.25k|		}
_ZN4pcpp11VrrpV2LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  346|  6.42k|		    : VrrpLayer(data, dataLen, prevLayer, packet, VRRPv2, IPAddress::IPv4AddressType)
  347|  6.42k|		{}
_ZN4pcpp11VrrpV2Layer11isDataValidEPKhm:
  387|  6.42k|		{
  388|  6.42k|			return canReinterpretAs<vrrp_header>(data, dataLen);
  389|  6.42k|		}
_ZN4pcpp11VrrpV3LayerC2EPhmPNS_5LayerEPNS_6PacketENS_9IPAddress11AddressTypeE:
  436|  7.72k|		    : VrrpLayer(data, dataLen, prevLayer, packet, VRRPv3, addressType)
  437|  7.72k|		{}
_ZN4pcpp11VrrpV3Layer11isDataValidEPKhm:
  468|  3.07k|		{
  469|  3.07k|			return canReinterpretAs<vrrp_header>(data, dataLen);
  470|  3.07k|		}

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

_ZN4pcpp14WakeOnLanLayer15isWakeOnLanPortEt:
  106|  51.1k|		{
  107|  51.1k|			return (port == 0) || (port == 7) || (port == 9);
  ------------------
  |  Branch (107:11): [True: 1.77k, False: 49.3k]
  |  Branch (107:26): [True: 0, False: 49.3k]
  |  Branch (107:41): [True: 470, False: 48.9k]
  ------------------
  108|  51.1k|		}
_ZN4pcpp14WakeOnLanLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   39|    428|		    : Layer(data, dataLen, prevLayer, packet, WakeOnLan)
   40|    428|		{}
_ZNK4pcpp14WakeOnLanLayer18getWakeOnLanHeaderEv:
   66|    188|		{
   67|    188|			return reinterpret_cast<wol_header*>(m_Data);
   68|    188|		}
_ZN4pcpp14WakeOnLanLayer14parseNextLayerEv:
  120|    428|		{}
_ZNK4pcpp14WakeOnLanLayer12getHeaderLenEv:
  124|     94|		{
  125|     94|			return m_DataLen;
  126|     94|		}
_ZN4pcpp14WakeOnLanLayer22computeCalculateFieldsEv:
  130|     94|		{}
_ZNK4pcpp14WakeOnLanLayer16getOsiModelLayerEv:
  134|     94|		{
  135|     94|			return OsiModelDataLinkLayer;
  136|     94|		}

_ZN4pcpp14WireGuardLayer16isWireGuardPortsEtt:
   68|  50.7k|		{
   69|  50.7k|			return (portSrc == 51820 || portDst == 51820);
  ------------------
  |  Branch (69:12): [True: 820, False: 49.9k]
  |  Branch (69:32): [True: 670, False: 49.3k]
  ------------------
   70|  50.7k|		}
_ZNK4pcpp14WireGuardLayer14getBasicHeaderEv:
   32|    578|		{
   33|    578|			return reinterpret_cast<wg_common_header*>(m_Data);
   34|    578|		}
_ZN4pcpp14WireGuardLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   60|  1.44k|		    : Layer(data, dataLen, prevLayer, packet, WireGuard)
   61|  1.44k|		{}
_ZN4pcpp14WireGuardLayer14parseNextLayerEv:
  100|  1.44k|		{}
_ZN4pcpp14WireGuardLayer22computeCalculateFieldsEv:
  107|    289|		{}
_ZNK4pcpp14WireGuardLayer16getOsiModelLayerEv:
  115|    289|		{
  116|    289|			return OsiModelNetworkLayer;
  117|    289|		}
_ZN4pcpp33WireGuardHandshakeInitiationLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  162|    225|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  163|    225|		{}
_ZN4pcpp33WireGuardHandshakeInitiationLayer11isDataValidEPKhm:
  171|    225|		{
  172|    225|			return data != nullptr && dataLen >= sizeof(wg_handshake_initiation);
  ------------------
  |  Branch (172:11): [True: 225, False: 0]
  |  Branch (172:30): [True: 225, False: 0]
  ------------------
  173|    225|		}
_ZN4pcpp31WireGuardHandshakeResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  269|    540|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  270|    540|		{}
_ZN4pcpp31WireGuardHandshakeResponseLayer11isDataValidEPKhm:
  278|    540|		{
  279|    540|			return data != nullptr && dataLen >= sizeof(wg_handshake_response);
  ------------------
  |  Branch (279:11): [True: 540, False: 0]
  |  Branch (279:30): [True: 540, False: 0]
  ------------------
  280|    540|		}
_ZN4pcpp25WireGuardCookieReplyLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  369|    130|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  370|    130|		{}
_ZN4pcpp25WireGuardCookieReplyLayer11isDataValidEPKhm:
  377|    130|		{
  378|    130|			return data != nullptr && dataLen >= sizeof(wg_cookie_reply);
  ------------------
  |  Branch (378:11): [True: 130, False: 0]
  |  Branch (378:30): [True: 130, False: 0]
  ------------------
  379|    130|		}
_ZN4pcpp27WireGuardTransportDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  445|    550|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  446|    550|		{}
_ZN4pcpp27WireGuardTransportDataLayer11isDataValidEPKhm:
  453|    550|		{
  454|    550|			return data != nullptr && dataLen >= sizeof(wg_transport_data);
  ------------------
  |  Branch (454:11): [True: 550, False: 0]
  |  Branch (454:30): [True: 550, False: 0]
  ------------------
  455|    550|		}

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

_ZN4pcpp10Asn1Record6decodeEPKhmb:
   93|  19.2k|	{
   94|  19.2k|		uint8_t tagLen;
   95|  19.2k|		auto decodedRecord = decodeTagAndCreateRecord(data, dataLen, tagLen);
   96|       |
   97|  19.2k|		uint8_t lengthLen;
   98|  19.2k|		lengthLen = decodedRecord->decodeLength(data + tagLen, dataLen - tagLen);
   99|       |
  100|  19.2k|		decodedRecord->m_TotalLength = tagLen + lengthLen + decodedRecord->m_ValueLength;
  101|  19.2k|		if (decodedRecord->m_TotalLength < decodedRecord->m_ValueLength ||  // check for overflow
  ------------------
  |  Branch (101:7): [True: 1.42k, False: 17.8k]
  ------------------
  102|  17.8k|		    decodedRecord->m_TotalLength > dataLen)
  ------------------
  |  Branch (102:7): [True: 160, False: 17.6k]
  ------------------
  103|    160|		{
  104|    160|			throw std::invalid_argument("Cannot decode ASN.1 record, data doesn't contain the entire record");
  105|    160|		}
  106|       |
  107|  19.1k|		uint8_t const* startOfData = data + tagLen + lengthLen;
  108|  19.1k|		internal::Asn1LoadPolicy policy = lazy ? internal::Asn1LoadPolicy::Lazy : internal::Asn1LoadPolicy::Eager;
  ------------------
  |  Branch (108:37): [True: 1.58k, False: 17.5k]
  ------------------
  109|  19.1k|		decodedRecord->setEncodedValue(startOfData, policy);
  110|       |
  111|  19.1k|		return decodedRecord;
  112|  19.2k|	}
_ZN4pcpp10Asn1Record24decodeTagAndCreateRecordEPKhmRh:
  207|  19.2k|	{
  208|  19.2k|		if (dataLen < 1)
  ------------------
  |  Branch (208:7): [True: 0, False: 19.2k]
  ------------------
  209|      0|		{
  210|      0|			throw std::invalid_argument("Cannot decode ASN.1 record tag");
  211|      0|		}
  212|       |
  213|  19.2k|		tagLen = 1;
  214|       |
  215|  19.2k|		Asn1TagClass tagClass = Asn1TagClass::Universal;
  216|       |
  217|       |		// Check first 2 bits
  218|  19.2k|		auto tagClassBits = data[0] & 0xc0;
  219|  19.2k|		if (tagClassBits == 0)
  ------------------
  |  Branch (219:7): [True: 10.7k, False: 8.55k]
  ------------------
  220|  10.7k|		{
  221|  10.7k|			tagClass = Asn1TagClass::Universal;
  222|  10.7k|		}
  223|  8.55k|		else if ((tagClassBits & 0xc0) == 0xc0)
  ------------------
  |  Branch (223:12): [True: 1.47k, False: 7.07k]
  ------------------
  224|  1.47k|		{
  225|  1.47k|			tagClass = Asn1TagClass::Private;
  226|  1.47k|		}
  227|  7.07k|		else if ((tagClassBits & 0x80) == 0x80)
  ------------------
  |  Branch (227:12): [True: 6.94k, False: 133]
  ------------------
  228|  6.94k|		{
  229|  6.94k|			tagClass = Asn1TagClass::ContextSpecific;
  230|  6.94k|		}
  231|    133|		else if ((tagClassBits & 0x40) == 0x40)
  ------------------
  |  Branch (231:12): [True: 133, False: 0]
  ------------------
  232|    133|		{
  233|    133|			tagClass = Asn1TagClass::Application;
  234|    133|		}
  235|       |
  236|       |		// Check bit 6
  237|  19.2k|		auto tagTypeBits = data[0] & 0x20;
  238|  19.2k|		bool isConstructed = (tagTypeBits != 0);
  239|       |
  240|       |		// Check last 5 bits
  241|  19.2k|		auto tagType = data[0] & 0x1f;
  242|  19.2k|		if (tagType == 0x1f)
  ------------------
  |  Branch (242:7): [True: 20, False: 19.2k]
  ------------------
  243|     20|		{
  244|     20|			if (dataLen < 2)
  ------------------
  |  Branch (244:8): [True: 0, False: 20]
  ------------------
  245|      0|			{
  246|      0|				throw std::invalid_argument("Cannot decode ASN.1 record tag");
  247|      0|			}
  248|       |
  249|     20|			if ((data[1] & 0x80) != 0)
  ------------------
  |  Branch (249:8): [True: 15, False: 5]
  ------------------
  250|     15|			{
  251|     15|				throw std::invalid_argument("ASN.1 tags with value larger than 127 are not supported");
  252|     15|			}
  253|       |
  254|      5|			tagType = data[1] & 0x7f;
  255|      5|			tagLen = 2;
  256|      5|		}
  257|       |
  258|  19.2k|		std::unique_ptr<Asn1Record> newRecord;
  259|       |
  260|  19.2k|		if (isConstructed)
  ------------------
  |  Branch (260:7): [True: 10.1k, False: 9.13k]
  ------------------
  261|  10.1k|		{
  262|  10.1k|			if (tagClass == Asn1TagClass::Universal)
  ------------------
  |  Branch (262:8): [True: 3.14k, False: 6.97k]
  ------------------
  263|  3.14k|			{
  264|  3.14k|				switch (static_cast<Asn1UniversalTagType>(tagType))
  265|  3.14k|				{
  266|  3.05k|				case Asn1UniversalTagType::Sequence:
  ------------------
  |  Branch (266:5): [True: 3.05k, False: 86]
  ------------------
  267|  3.05k|				{
  268|  3.05k|					newRecord.reset(new Asn1SequenceRecord());
  269|  3.05k|					break;
  270|      0|				}
  271|     28|				case Asn1UniversalTagType::Set:
  ------------------
  |  Branch (271:5): [True: 28, False: 3.11k]
  ------------------
  272|     28|				{
  273|     28|					newRecord.reset(new Asn1SetRecord());
  274|     28|					break;
  275|      0|				}
  276|     58|				default:
  ------------------
  |  Branch (276:5): [True: 58, False: 3.08k]
  ------------------
  277|     58|				{
  278|     58|					newRecord.reset(new Asn1ConstructedRecord());
  279|     58|				}
  280|  3.14k|				}
  281|  3.14k|			}
  282|  6.97k|			else
  283|  6.97k|			{
  284|  6.97k|				newRecord.reset(new Asn1ConstructedRecord());
  285|  6.97k|			}
  286|  10.1k|		}
  287|  9.13k|		else
  288|  9.13k|		{
  289|  9.13k|			if (tagClass == Asn1TagClass::Universal)
  ------------------
  |  Branch (289:8): [True: 7.56k, False: 1.56k]
  ------------------
  290|  7.56k|			{
  291|  7.56k|				auto asn1UniversalTagType = static_cast<Asn1UniversalTagType>(tagType);
  292|  7.56k|				switch (asn1UniversalTagType)
  293|  7.56k|				{
  294|  1.67k|				case Asn1UniversalTagType::Integer:
  ------------------
  |  Branch (294:5): [True: 1.67k, False: 5.89k]
  ------------------
  295|  1.67k|				{
  296|  1.67k|					newRecord.reset(new Asn1IntegerRecord());
  297|  1.67k|					break;
  298|      0|				}
  299|  1.46k|				case Asn1UniversalTagType::Enumerated:
  ------------------
  |  Branch (299:5): [True: 1.46k, False: 6.10k]
  ------------------
  300|  1.46k|				{
  301|  1.46k|					newRecord.reset(new Asn1EnumeratedRecord());
  302|  1.46k|					break;
  303|      0|				}
  304|  1.49k|				case Asn1UniversalTagType::OctetString:
  ------------------
  |  Branch (304:5): [True: 1.49k, False: 6.07k]
  ------------------
  305|  1.49k|				{
  306|  1.49k|					newRecord.reset(new Asn1OctetStringRecord());
  307|  1.49k|					break;
  308|      0|				}
  309|      0|				case Asn1UniversalTagType::UTF8String:
  ------------------
  |  Branch (309:5): [True: 0, False: 7.56k]
  ------------------
  310|      0|				{
  311|      0|					newRecord.reset(new Asn1UTF8StringRecord());
  312|      0|					break;
  313|      0|				}
  314|      5|				case Asn1UniversalTagType::PrintableString:
  ------------------
  |  Branch (314:5): [True: 5, False: 7.56k]
  ------------------
  315|      5|				{
  316|      5|					newRecord.reset(new Asn1PrintableStringRecord());
  317|      5|					break;
  318|      0|				}
  319|      0|				case Asn1UniversalTagType::IA5String:
  ------------------
  |  Branch (319:5): [True: 0, False: 7.56k]
  ------------------
  320|      0|				{
  321|      0|					newRecord.reset(new Asn1IA5StringRecord());
  322|      0|					break;
  323|      0|				}
  324|     12|				case Asn1UniversalTagType::Boolean:
  ------------------
  |  Branch (324:5): [True: 12, False: 7.55k]
  ------------------
  325|     12|				{
  326|     12|					newRecord.reset(new Asn1BooleanRecord());
  327|     12|					break;
  328|      0|				}
  329|     20|				case Asn1UniversalTagType::BitString:
  ------------------
  |  Branch (329:5): [True: 20, False: 7.54k]
  ------------------
  330|     20|				{
  331|     20|					newRecord.reset(new Asn1BitStringRecord());
  332|     20|					break;
  333|      0|				}
  334|     59|				case Asn1UniversalTagType::Null:
  ------------------
  |  Branch (334:5): [True: 59, False: 7.50k]
  ------------------
  335|     59|				{
  336|     59|					newRecord.reset(new Asn1NullRecord());
  337|     59|					break;
  338|      0|				}
  339|  1.29k|				case Asn1UniversalTagType::ObjectIdentifier:
  ------------------
  |  Branch (339:5): [True: 1.29k, False: 6.27k]
  ------------------
  340|  1.29k|				{
  341|  1.29k|					newRecord.reset(new Asn1ObjectIdentifierRecord());
  342|  1.29k|					break;
  343|      0|				}
  344|      5|				case Asn1UniversalTagType::UTCTime:
  ------------------
  |  Branch (344:5): [True: 5, False: 7.56k]
  ------------------
  345|      5|				{
  346|      5|					newRecord.reset(new Asn1UtcTimeRecord());
  347|      5|					break;
  348|      0|				}
  349|      0|				case Asn1UniversalTagType::GeneralizedTime:
  ------------------
  |  Branch (349:5): [True: 0, False: 7.56k]
  ------------------
  350|      0|				{
  351|      0|					newRecord.reset(new Asn1GeneralizedTimeRecord());
  352|      0|					break;
  353|      0|				}
  354|  1.53k|				default:
  ------------------
  |  Branch (354:5): [True: 1.53k, False: 6.03k]
  ------------------
  355|  1.53k|				{
  356|  1.53k|					newRecord.reset(new Asn1GenericRecord());
  357|  1.53k|				}
  358|  7.56k|				}
  359|  7.56k|			}
  360|  1.56k|			else
  361|  1.56k|			{
  362|  1.56k|				newRecord.reset(new Asn1GenericRecord());
  363|  1.56k|			}
  364|  9.13k|		}
  365|       |
  366|  19.2k|		newRecord->m_TagClass = tagClass;
  367|  19.2k|		newRecord->m_IsConstructed = isConstructed;
  368|  19.2k|		newRecord->m_TagType = tagType;
  369|       |
  370|  19.2k|		return newRecord;
  371|  19.2k|	}
_ZN4pcpp10Asn1Record12decodeLengthEPKhm:
  374|  19.2k|	{
  375|  19.2k|		if (dataLen < 1)
  ------------------
  |  Branch (375:7): [True: 1.29k, False: 17.9k]
  ------------------
  376|  1.29k|		{
  377|  1.29k|			throw std::invalid_argument("Cannot decode ASN.1 record length");
  378|  1.29k|		}
  379|       |
  380|       |		// Check 8th bit
  381|  17.9k|		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|  17.9k|		if (lengthForm == 0)
  ------------------
  |  Branch (386:7): [True: 10.6k, False: 7.35k]
  ------------------
  387|  10.6k|		{
  388|  10.6k|			m_ValueLength = data[0];
  389|  10.6k|			return 1;
  390|  10.6k|		}
  391|       |
  392|  7.35k|		uint8_t actualLengthBytes = data[0] & 0x7F;
  393|  7.35k|		const uint8_t* actualLengthData = data + 1;
  394|       |
  395|  7.35k|		if (dataLen < static_cast<size_t>(actualLengthBytes) + 1)
  ------------------
  |  Branch (395:7): [True: 42, False: 7.30k]
  ------------------
  396|     42|		{
  397|     42|			throw std::invalid_argument("Cannot decode ASN.1 record length");
  398|     42|		}
  399|       |
  400|  20.5k|		for (int i = 0; i < actualLengthBytes; i++)
  ------------------
  |  Branch (400:19): [True: 13.3k, False: 7.24k]
  ------------------
  401|  13.3k|		{
  402|  13.3k|			size_t partialValueLength = m_ValueLength << 8;
  403|  13.3k|			if (partialValueLength < m_ValueLength)  // check for overflow
  ------------------
  |  Branch (403:8): [True: 68, False: 13.2k]
  ------------------
  404|     68|			{
  405|     68|				throw std::invalid_argument("Cannot decode ASN.1 record length");
  406|     68|			}
  407|       |
  408|  13.2k|			m_ValueLength = partialValueLength | actualLengthData[i];
  409|  13.2k|		}
  410|       |
  411|  7.24k|		return 1 + actualLengthBytes;
  412|  7.30k|	}
_ZNK4pcpp10Asn1Record19decodeValueIfNeededEv:
  415|  17.8k|	{
  416|       |		// TODO: This is not thread-safe and can cause issues in a multiple reader scenario.
  417|  17.8k|		if (m_EncodedValue != nullptr)
  ------------------
  |  Branch (417:7): [True: 17.6k, False: 178]
  ------------------
  418|  17.6k|		{
  419|  17.6k|			decodeValue(m_EncodedValue);
  420|  17.6k|			m_EncodedValue = nullptr;  // Clear the encoded value after decoding
  421|  17.6k|		}
  422|  17.8k|	}
_ZN4pcpp10Asn1Record15setEncodedValueEPKhNS_8internal14Asn1LoadPolicyE:
  462|  17.6k|	{
  463|  17.6k|		m_EncodedValue = dataSource;
  464|       |
  465|  17.6k|		if (loadPolicy == internal::Asn1LoadPolicy::Eager)
  ------------------
  |  Branch (465:7): [True: 16.0k, False: 1.58k]
  ------------------
  466|  16.0k|		{
  467|  16.0k|			decodeValueIfNeeded();
  468|  16.0k|		}
  469|  17.6k|	}
_ZNK4pcpp17Asn1GenericRecord11decodeValueEPKh:
  484|  2.99k|	{
  485|  2.99k|		m_Value = std::make_unique<uint8_t[]>(m_ValueLength);
  486|  2.99k|		std::memcpy(m_Value.get(), data, m_ValueLength);
  487|  2.99k|	}
_ZNK4pcpp21Asn1ConstructedRecord11decodeValueEPKh:
  519|  8.69k|	{
  520|  8.69k|		if (!(data || m_ValueLength))
  ------------------
  |  Branch (520:9): [True: 8.69k, False: 0]
  |  Branch (520:17): [True: 0, False: 0]
  ------------------
  521|      0|		{
  522|      0|			return;
  523|      0|		}
  524|       |
  525|  8.69k|		auto value = data;
  526|  8.69k|		auto valueLen = m_ValueLength;
  527|       |
  528|  26.2k|		while (valueLen > 0)
  ------------------
  |  Branch (528:10): [True: 17.5k, False: 8.69k]
  ------------------
  529|  17.5k|		{
  530|  17.5k|			auto subRecord = Asn1Record::decode(value, valueLen, LazySubRecordDecoding);
  531|  17.5k|			value += subRecord->getTotalLength();
  532|  17.5k|			valueLen -= subRecord->getTotalLength();
  533|       |
  534|  17.5k|			m_SubRecords.pushBack(std::move(subRecord));
  535|  17.5k|		}
  536|  8.69k|	}
_ZN4pcpp19Asn1PrimitiveRecordC2ENS_20Asn1UniversalTagTypeE:
  583|  1.56k|	Asn1PrimitiveRecord::Asn1PrimitiveRecord(Asn1UniversalTagType tagType) : Asn1Record()
  584|  1.56k|	{
  585|  1.56k|		m_TagType = static_cast<uint8_t>(tagType);
  586|  1.56k|		m_TagClass = Asn1TagClass::Universal;
  587|  1.56k|		m_IsConstructed = false;
  588|  1.56k|	}
_ZN4pcpp17Asn1IntegerRecord6BigInt14initFromStringERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  601|  3.13k|	{
  602|  3.13k|		std::string valueStr = value;
  603|       |
  604|       |		// Optional 0x or 0X prefix
  605|  3.13k|		if (value.size() >= 2 && value[0] == '0' && (value[1] == 'x' || value[1] == 'X'))
  ------------------
  |  Branch (605:7): [True: 3.13k, False: 0]
  |  Branch (605:28): [True: 1.62k, False: 1.51k]
  |  Branch (605:48): [True: 0, False: 1.62k]
  |  Branch (605:67): [True: 0, False: 1.62k]
  ------------------
  606|      0|		{
  607|      0|			valueStr = value.substr(2);
  608|      0|		}
  609|       |
  610|  3.13k|		if (valueStr.empty())
  ------------------
  |  Branch (610:7): [True: 0, False: 3.13k]
  ------------------
  611|      0|		{
  612|      0|			throw std::invalid_argument("Value is not a valid hex stream");
  613|      0|		}
  614|       |
  615|  3.13k|		if (std::any_of(valueStr.begin(), valueStr.end(), [](char c) { return !std::isxdigit(c); }))
  ------------------
  |  Branch (615:7): [True: 0, False: 3.13k]
  ------------------
  616|      0|		{
  617|      0|			throw std::invalid_argument("Value is not a valid hex stream");
  618|      0|		}
  619|       |
  620|  3.13k|		return valueStr;
  621|  3.13k|	}
_ZN4pcpp17Asn1IntegerRecord6BigIntaSERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  624|  3.13k|	{
  625|  3.13k|		m_Value = initFromString(value);
  626|  3.13k|		return *this;
  627|  3.13k|	}
_ZNK4pcpp17Asn1IntegerRecord11decodeValueEPKh:
  692|  3.13k|	{
  693|  3.13k|		m_Value = pcpp::byteArrayToHexString(data, m_ValueLength);
  694|  3.13k|	}
_ZNK4pcpp21Asn1OctetStringRecord11decodeValueEPKh:
  721|  1.47k|	{
  722|  1.47k|		auto value = reinterpret_cast<char const*>(data);
  723|       |
  724|  1.47k|		m_IsPrintable = std::all_of(value, value + m_ValueLength, [](char c) { return isprint(0xff & c); });
  725|       |
  726|  1.47k|		if (m_IsPrintable)
  ------------------
  |  Branch (726:7): [True: 98, False: 1.38k]
  ------------------
  727|     98|		{
  728|     98|			Asn1StringRecord::decodeValue(data);
  729|     98|		}
  730|  1.38k|		else
  731|  1.38k|		{
  732|  1.38k|			m_Value = byteArrayToHexString(data, m_ValueLength);
  733|  1.38k|		}
  734|  1.47k|	}
_ZN4pcpp14Asn1NullRecordC2Ev:
  781|     59|	Asn1NullRecord::Asn1NullRecord() : Asn1PrimitiveRecord(Asn1UniversalTagType::Null)
  782|     59|	{
  783|     59|		m_ValueLength = 0;
  784|     59|		m_TotalLength = 2;
  785|     59|	}
_ZN4pcpp20Asn1ObjectIdentifierC2EPKhm:
  788|  1.29k|	{
  789|       |		// A description of OID encoding can be found here:
  790|       |		// https://learn.microsoft.com/en-us/windows/win32/seccertenroll/about-object-identifier?redirectedfrom=MSDN
  791|       |
  792|  1.29k|		if (!data || dataLen == 0)
  ------------------
  |  Branch (792:7): [True: 0, False: 1.29k]
  |  Branch (792:16): [True: 0, False: 1.29k]
  ------------------
  793|      0|		{
  794|      0|			throw std::invalid_argument("Malformed OID: Not enough bytes for the first component");
  795|      0|		}
  796|       |
  797|  1.29k|		size_t currentByteIndex = 0;
  798|  1.29k|		std::vector<uint32_t> components;
  799|       |
  800|  1.29k|		uint8_t firstByte = data[currentByteIndex++];
  801|       |		// Decode the first byte: first_component * 40 + second_component
  802|  1.29k|		components.push_back(static_cast<uint32_t>(firstByte / 40));
  803|  1.29k|		components.push_back(static_cast<uint32_t>(firstByte % 40));
  804|       |
  805|  1.29k|		uint32_t currentComponentValue = 0;
  806|  1.29k|		bool componentStarted = false;
  807|       |
  808|       |		// Process remaining bytes using base-128 encoding
  809|  11.6k|		while (currentByteIndex < dataLen)
  ------------------
  |  Branch (809:10): [True: 10.3k, False: 1.29k]
  ------------------
  810|  10.3k|		{
  811|  10.3k|			uint8_t byte = data[currentByteIndex++];
  812|       |
  813|       |			// Shift previous bits left by 7 and append lower 7 bits
  814|  10.3k|			currentComponentValue = (currentComponentValue << 7) | (byte & 0x7f);
  815|  10.3k|			componentStarted = true;
  816|       |
  817|       |			// If the MSB is 0, this is the final byte of the current value
  818|  10.3k|			if ((byte & 0x80) == 0)
  ------------------
  |  Branch (818:8): [True: 6.48k, False: 3.87k]
  ------------------
  819|  6.48k|			{
  820|  6.48k|				components.push_back(currentComponentValue);
  821|  6.48k|				currentComponentValue = 0;
  822|  6.48k|				componentStarted = false;
  823|  6.48k|			}
  824|  10.3k|		}
  825|       |
  826|  1.29k|		if (componentStarted)
  ------------------
  |  Branch (826:7): [True: 0, False: 1.29k]
  ------------------
  827|      0|		{
  828|      0|			throw std::invalid_argument("Malformed OID: Incomplete component at end of data");
  829|      0|		}
  830|       |
  831|  1.29k|		m_Components = components;
  832|  1.29k|	}
_ZNK4pcpp26Asn1ObjectIdentifierRecord11decodeValueEPKh:
  955|  1.29k|	{
  956|  1.29k|		m_Value = Asn1ObjectIdentifier(data, m_ValueLength);
  957|  1.29k|	}
_ZN4pcpp19Asn1BitStringRecord6BitSetC2EPKhm:
 1240|     10|	Asn1BitStringRecord::BitSet::BitSet(const uint8_t* data, size_t numBits) : m_NumBits(numBits)
 1241|     10|	{
 1242|     10|		if (!data || !numBits)
  ------------------
  |  Branch (1242:7): [True: 0, False: 10]
  |  Branch (1242:16): [True: 0, False: 10]
  ------------------
 1243|      0|		{
 1244|      0|			throw std::invalid_argument("Provided data is null or num of bits is 0");
 1245|      0|		}
 1246|       |
 1247|     10|		size_t requiredBytes = (m_NumBits + 7) / 8;
 1248|     10|		m_Data.resize(requiredBytes);
 1249|     10|		std::copy_n(data, requiredBytes, m_Data.begin());
 1250|     10|	}
_ZNK4pcpp19Asn1BitStringRecord11decodeValueEPKh:
 1296|     10|	{
 1297|       |		// A BitString value must contain at least the initial octet holding the number of unused bits
 1298|     10|		if (m_ValueLength == 0)
  ------------------
  |  Branch (1298:7): [True: 0, False: 10]
  ------------------
 1299|      0|		{
 1300|      0|			throw std::invalid_argument("Cannot decode ASN.1 BitString record, value is empty");
 1301|      0|		}
 1302|       |
 1303|     10|		auto unusedBits = static_cast<size_t>(data[0]);
 1304|       |
 1305|       |		// The number of unused bits must be in the range 0-7, and must be 0 if the bit string is empty
 1306|     10|		if (unusedBits > 7 || (m_ValueLength == 1 && unusedBits != 0))
  ------------------
  |  Branch (1306:7): [True: 0, False: 10]
  |  Branch (1306:26): [True: 0, False: 10]
  |  Branch (1306:48): [True: 0, False: 0]
  ------------------
 1307|      0|		{
 1308|      0|			throw std::invalid_argument("Cannot decode ASN.1 BitString record, invalid number of unused bits");
 1309|      0|		}
 1310|       |
 1311|     10|		auto numBits = (m_ValueLength - 1) * 8 - unusedBits;
 1312|     10|		if (numBits == 0)
  ------------------
  |  Branch (1312:7): [True: 0, False: 10]
  ------------------
 1313|      0|		{
 1314|      0|			m_Value = BitSet();
 1315|      0|			return;
 1316|      0|		}
 1317|       |
 1318|     10|		m_Value = BitSet(data + 1, numBits);
 1319|     10|	}
Asn1Codec.cpp:_ZZN4pcpp17Asn1IntegerRecord6BigInt14initFromStringERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEENK3$_0clEc:
  615|  12.5k|		if (std::any_of(valueStr.begin(), valueStr.end(), [](char c) { return !std::isxdigit(c); }))
Asn1Codec.cpp:_ZZNK4pcpp21Asn1OctetStringRecord11decodeValueEPKhENK3$_0clEc:
  724|  3.06k|		m_IsPrintable = std::all_of(value, value + m_ValueLength, [](char c) { return isprint(0xff & c); });

_ZNK4pcpp8BgpLayer12getHeaderLenEv:
   27|   401k|	{
   28|   401k|		if (m_DataLen < sizeof(bgp_common_header))
  ------------------
  |  Branch (28:7): [True: 0, False: 401k]
  ------------------
   29|      0|		{
   30|      0|			return m_DataLen;
   31|      0|		}
   32|       |
   33|   401k|		uint16_t messageLen = be16toh(getBasicHeader()->length);
   34|   401k|		if (m_DataLen < messageLen)
  ------------------
  |  Branch (34:7): [True: 10.8k, False: 390k]
  ------------------
   35|  10.8k|		{
   36|  10.8k|			return m_DataLen;
   37|  10.8k|		}
   38|       |
   39|   390k|		return (size_t)messageLen;
   40|   401k|	}
_ZN4pcpp8BgpLayer13parseBgpLayerEPhmPNS_5LayerEPNS_6PacketE:
   43|  68.4k|	{
   44|  68.4k|		if (data == nullptr || dataLen < sizeof(bgp_common_header))
  ------------------
  |  Branch (44:7): [True: 0, False: 68.4k]
  |  Branch (44:26): [True: 14.5k, False: 53.9k]
  ------------------
   45|  14.5k|			return nullptr;
   46|       |
   47|  53.9k|		auto* bgpHeader = reinterpret_cast<bgp_common_header*>(data);
   48|       |
   49|       |		// illegal header data - length is too small
   50|  53.9k|		uint16_t messageLen = be16toh(bgpHeader->length);
   51|  53.9k|		if (dataLen < messageLen || messageLen < static_cast<uint16_t>(sizeof(bgp_common_header)))
  ------------------
  |  Branch (51:7): [True: 1.50k, False: 52.4k]
  |  Branch (51:31): [True: 150, False: 52.2k]
  ------------------
   52|  1.65k|			return nullptr;
   53|       |
   54|  52.2k|		switch (bgpHeader->messageType)
   55|  52.2k|		{
   56|  10.3k|		case 1:  // OPEN
  ------------------
  |  Branch (56:3): [True: 10.3k, False: 41.8k]
  ------------------
   57|  10.3k|			return BgpOpenMessageLayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (57:11): [True: 9.48k, False: 917]
  ------------------
   58|  10.3k|			           ? new BgpOpenMessageLayer(data, dataLen, prevLayer, packet)
   59|  10.3k|			           : nullptr;
   60|  37.4k|		case 2:  // UPDATE
  ------------------
  |  Branch (60:3): [True: 37.4k, False: 14.8k]
  ------------------
   61|  37.4k|			return BgpUpdateMessageLayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (61:11): [True: 37.2k, False: 183]
  ------------------
   62|  37.4k|			           ? new BgpUpdateMessageLayer(data, dataLen, prevLayer, packet)
   63|  37.4k|			           : nullptr;
   64|    635|		case 3:  // NOTIFICATION
  ------------------
  |  Branch (64:3): [True: 635, False: 51.6k]
  ------------------
   65|    635|			return new BgpNotificationMessageLayer(data, dataLen, prevLayer, packet);
   66|  3.15k|		case 4:  // KEEPALIVE
  ------------------
  |  Branch (66:3): [True: 3.15k, False: 49.1k]
  ------------------
   67|  3.15k|			return new BgpKeepaliveMessageLayer(data, dataLen, prevLayer, packet);
   68|    608|		case 5:  // ROUTE-REFRESH
  ------------------
  |  Branch (68:3): [True: 608, False: 51.6k]
  ------------------
   69|    608|			return new BgpRouteRefreshMessageLayer(data, dataLen, prevLayer, packet);
   70|     63|		default:
  ------------------
  |  Branch (70:3): [True: 63, False: 52.2k]
  ------------------
   71|     63|			return nullptr;
   72|  52.2k|		}
   73|  52.2k|	}
_ZNK4pcpp8BgpLayer22getMessageTypeAsStringEv:
   76|  23.0k|	{
   77|  23.0k|		switch (getBgpMessageType())
   78|  23.0k|		{
   79|  5.02k|		case BgpLayer::Open:
  ------------------
  |  Branch (79:3): [True: 5.02k, False: 18.0k]
  ------------------
   80|  5.02k|			return "OPEN";
   81|  15.4k|		case BgpLayer::Update:
  ------------------
  |  Branch (81:3): [True: 15.4k, False: 7.62k]
  ------------------
   82|  15.4k|			return "UPDATE";
   83|    381|		case BgpLayer::Notification:
  ------------------
  |  Branch (83:3): [True: 381, False: 22.6k]
  ------------------
   84|    381|			return "NOTIFICATION";
   85|  1.86k|		case BgpLayer::Keepalive:
  ------------------
  |  Branch (85:3): [True: 1.86k, False: 21.1k]
  ------------------
   86|  1.86k|			return "KEEPALIVE";
   87|    363|		case BgpLayer::RouteRefresh:
  ------------------
  |  Branch (87:3): [True: 363, False: 22.6k]
  ------------------
   88|    363|			return "ROUTE-REFRESH";
   89|      0|		default:
  ------------------
  |  Branch (89:3): [True: 0, False: 23.0k]
  ------------------
   90|      0|			return "Unknown";
   91|  23.0k|		}
   92|  23.0k|	}
_ZN4pcpp8BgpLayer14parseNextLayerEv:
   95|  51.1k|	{
   96|  51.1k|		size_t headerLen = getHeaderLen();
   97|  51.1k|		if (m_DataLen <= headerLen || headerLen == 0)
  ------------------
  |  Branch (97:7): [True: 13.4k, False: 37.6k]
  |  Branch (97:33): [True: 0, False: 37.6k]
  ------------------
   98|  13.4k|			return;
   99|       |
  100|  37.6k|		uint8_t* payload = m_Data + headerLen;
  101|  37.6k|		size_t payloadLen = m_DataLen - headerLen;
  102|       |
  103|  37.6k|		constructNextLayerFromFactory(BgpLayer::parseBgpLayer, payload, payloadLen);
  104|  37.6k|	}
_ZNK4pcpp8BgpLayer8toStringEv:
  107|  15.4k|	{
  108|  15.4k|		return "BGP Layer, " + getMessageTypeAsString() + " message";
  109|  15.4k|	}
_ZN4pcpp8BgpLayer22computeCalculateFieldsEv:
  112|  7.70k|	{
  113|  7.70k|		bgp_common_header* bgpHeader = getBasicHeader();
  114|  7.70k|		memset(bgpHeader->marker, 0xff, 16 * sizeof(uint8_t));
  115|  7.70k|		bgpHeader->messageType = (uint8_t)getBgpMessageType();
  116|       |		bgpHeader->length = htobe16(getHeaderLen());
  117|  7.70k|	}
_ZN4pcpp8BgpLayer11extendLayerEim:
  135|  17.9k|	{
  136|  17.9k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (136:7): [True: 17.9k, False: 0]
  ------------------
  137|  17.9k|		{
  138|  17.9k|			int rawPacketLen = getAttachedPacket()->getRawPacket()->getRawDataLen();
  139|  17.9k|			const uint8_t* rawPacketPtr = getAttachedPacket()->getRawPacket()->getRawData();
  140|       |
  141|  17.9k|			if (m_Data - rawPacketPtr + static_cast<ptrdiff_t>(offsetInLayer) > static_cast<ptrdiff_t>(rawPacketLen))
  ------------------
  |  Branch (141:8): [True: 411, False: 17.4k]
  ------------------
  142|    411|			{
  143|    411|				PCPP_LOG_ERROR("Requested offset is larger than total packet length");
  ------------------
  |  |  444|    411|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    411|	do                                                                                                                 \
  |  |  |  |  414|    411|	{                                                                                                                  \
  |  |  |  |  415|    411|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    411|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    411|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 411, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    411|		{                                                                                                              \
  |  |  |  |  418|    411|			auto ctx =                                                                                                 \
  |  |  |  |  419|    411|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    411|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    411|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    411|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    411|		}                                                                                                              \
  |  |  |  |  423|    411|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 411]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|    411|				return false;
  145|    411|			}
  146|       |
  147|  17.4k|			if (m_NextLayer != nullptr && static_cast<ptrdiff_t>(offsetInLayer) > m_NextLayer->getData() - m_Data)
  ------------------
  |  Branch (147:8): [True: 10.6k, False: 6.89k]
  |  Branch (147:34): [True: 1.02k, False: 9.58k]
  ------------------
  148|  1.02k|			{
  149|  1.02k|				PCPP_LOG_ERROR("Requested offset exceeds current layer's boundary");
  ------------------
  |  |  444|  1.02k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|  1.02k|	do                                                                                                                 \
  |  |  |  |  414|  1.02k|	{                                                                                                                  \
  |  |  |  |  415|  1.02k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  1.02k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.02k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 1.02k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|  1.02k|		{                                                                                                              \
  |  |  |  |  418|  1.02k|			auto ctx =                                                                                                 \
  |  |  |  |  419|  1.02k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.02k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|  1.02k|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|  1.02k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|  1.02k|		}                                                                                                              \
  |  |  |  |  423|  1.02k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 1.02k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  150|  1.02k|				return false;
  151|  1.02k|			}
  152|  17.4k|		}
  153|       |
  154|  16.4k|		return Layer::extendLayer(offsetInLayer, numOfBytesToExtend);
  155|  17.9k|	}
_ZN4pcpp8BgpLayer12shortenLayerEim:
  158|  20.5k|	{
  159|  20.5k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (159:7): [True: 20.5k, False: 0]
  ------------------
  160|  20.5k|		{
  161|  20.5k|			int rawPacketLen = getAttachedPacket()->getRawPacket()->getRawDataLen();
  162|  20.5k|			const uint8_t* rawPacketPtr = getAttachedPacket()->getRawPacket()->getRawData();
  163|       |
  164|  20.5k|			if (m_Data - rawPacketPtr + static_cast<ptrdiff_t>(offsetInLayer) +
  ------------------
  |  Branch (164:8): [True: 297, False: 20.2k]
  ------------------
  165|  20.5k|			        static_cast<ptrdiff_t>(numOfBytesToShorten) >
  166|  20.5k|			    static_cast<ptrdiff_t>(rawPacketLen))
  167|    297|			{
  168|    297|				PCPP_LOG_ERROR("Requested number of bytes to shorten is larger than total packet length");
  ------------------
  |  |  444|    297|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    297|	do                                                                                                                 \
  |  |  |  |  414|    297|	{                                                                                                                  \
  |  |  |  |  415|    297|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    297|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    297|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 297, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    297|		{                                                                                                              \
  |  |  |  |  418|    297|			auto ctx =                                                                                                 \
  |  |  |  |  419|    297|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    297|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    297|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    297|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    297|		}                                                                                                              \
  |  |  |  |  423|    297|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 297]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  169|    297|				return false;
  170|    297|			}
  171|       |
  172|  20.2k|			if (m_NextLayer != nullptr &&
  ------------------
  |  Branch (172:8): [True: 13.1k, False: 7.03k]
  ------------------
  173|  13.1k|			    static_cast<ptrdiff_t>(offsetInLayer) + static_cast<ptrdiff_t>(numOfBytesToShorten) >
  ------------------
  |  Branch (173:8): [True: 292, False: 12.8k]
  ------------------
  174|  13.1k|			        m_NextLayer->getData() - m_Data)
  175|    292|			{
  176|    292|				PCPP_LOG_ERROR("Requested number of bytes to shorten exceeds current layer's boundary");
  ------------------
  |  |  444|    292|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    292|	do                                                                                                                 \
  |  |  |  |  414|    292|	{                                                                                                                  \
  |  |  |  |  415|    292|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    292|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    292|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 292, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    292|		{                                                                                                              \
  |  |  |  |  418|    292|			auto ctx =                                                                                                 \
  |  |  |  |  419|    292|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    292|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    292|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    292|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    292|		}                                                                                                              \
  |  |  |  |  423|    292|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 292]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  177|    292|				return false;
  178|    292|			}
  179|  20.2k|		}
  180|       |
  181|  19.9k|		return Layer::shortenLayer(offsetInLayer, numOfBytesToShorten);
  182|  20.5k|	}
_ZN4pcpp19BgpOpenMessageLayer18optional_parameterC2EhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  189|  8.37k|	{
  190|  8.37k|		type = typeVal;
  191|  8.37k|		length = hexStringToByteArray(valueAsHexString, value, 32);
  192|  8.37k|	}
_ZN4pcpp19BgpOpenMessageLayer11isDataValidEPKhm:
  195|  10.3k|	{
  196|  10.3k|		if (data == nullptr || dataSize < sizeof(bgp_common_header))
  ------------------
  |  Branch (196:7): [True: 0, False: 10.3k]
  |  Branch (196:26): [True: 0, False: 10.3k]
  ------------------
  197|      0|		{
  198|      0|			return false;
  199|      0|		}
  200|       |
  201|  10.3k|		const auto* bgpHeader = reinterpret_cast<const bgp_common_header*>(data);
  202|  10.3k|		uint16_t messageLen = be16toh(bgpHeader->length);
  203|  10.3k|		return messageLen >= sizeof(bgp_open_message) && dataSize >= messageLen;
  ------------------
  |  Branch (203:10): [True: 9.48k, False: 917]
  |  Branch (203:52): [True: 9.48k, False: 0]
  ------------------
  204|  10.3k|	}
_ZN4pcpp19BgpOpenMessageLayer25optionalParamsToByteArrayERKNSt3__16vectorINS0_18optional_parameterENS1_9allocatorIS3_EEEEPhm:
  233|  5.02k|	{
  234|  5.02k|		if (resultByteArr == nullptr || maxByteArrSize == 0)
  ------------------
  |  Branch (234:7): [True: 0, False: 5.02k]
  |  Branch (234:35): [True: 0, False: 5.02k]
  ------------------
  235|      0|		{
  236|      0|			return 0;
  237|      0|		}
  238|       |
  239|  5.02k|		size_t dataLen = 0;
  240|       |
  241|  5.02k|		for (const auto& param : optionalParams)
  ------------------
  |  Branch (241:26): [True: 22.1k, False: 5.02k]
  ------------------
  242|  22.1k|		{
  243|  22.1k|			if (param.length > sizeof(param.value))
  ------------------
  |  Branch (243:8): [True: 2, False: 22.1k]
  ------------------
  244|      2|			{
  245|      2|				throw std::invalid_argument("Illegal BGP OPEN optional parameter length " +
  246|      2|				                            std::to_string(param.length) + ", must be " +
  247|      2|				                            std::to_string(sizeof(param.value)) + " bytes or less");
  248|      2|			}
  249|       |
  250|  22.1k|			size_t curDataSize = 2 * sizeof(uint8_t) + (size_t)param.length;
  251|       |
  252|  22.1k|			if (dataLen + curDataSize > maxByteArrSize)
  ------------------
  |  Branch (252:8): [True: 0, False: 22.1k]
  ------------------
  253|      0|			{
  254|      0|				throw std::invalid_argument("The BGP OPEN optional parameters exceed the maximum length of " +
  255|      0|				                            std::to_string(maxByteArrSize) + " bytes");
  256|      0|			}
  257|       |
  258|  22.1k|			resultByteArr[0] = param.type;
  259|  22.1k|			resultByteArr[1] = param.length;
  260|  22.1k|			if (param.length > 0)
  ------------------
  |  Branch (260:8): [True: 14.2k, False: 7.83k]
  ------------------
  261|  14.2k|			{
  262|  14.2k|				memcpy(resultByteArr + 2 * sizeof(uint8_t), param.value, param.length);
  263|  14.2k|			}
  264|       |
  265|  22.1k|			dataLen += curDataSize;
  266|  22.1k|			resultByteArr += curDataSize;
  267|  22.1k|		}
  268|       |
  269|  5.02k|		return dataLen;
  270|  5.02k|	}
_ZN4pcpp19BgpOpenMessageLayer21getOptionalParametersERNSt3__16vectorINS0_18optional_parameterENS1_9allocatorIS3_EEEE:
  284|  1.67k|	{
  285|  1.67k|		size_t headerLen = getHeaderLen();
  286|  1.67k|		bgp_open_message* msgHdr = getOpenMsgHeader();
  287|       |
  288|       |		// Parentheses around std::min avoid clashes with platform min macros (for example on Windows)
  289|  1.67k|		size_t optionalParamsLen =
  290|  1.67k|		    (std::min)(static_cast<size_t>(msgHdr->optionalParameterLength), headerLen - sizeof(bgp_open_message));
  291|       |
  292|  1.67k|		uint8_t* dataPtr = m_Data + sizeof(bgp_open_message);
  293|  1.67k|		size_t byteCount = 0;
  294|  8.54k|		while (byteCount < optionalParamsLen)
  ------------------
  |  Branch (294:10): [True: 8.05k, False: 487]
  ------------------
  295|  8.05k|		{
  296|  8.05k|			size_t remaining = optionalParamsLen - byteCount;
  297|  8.05k|			constexpr size_t optParamHdrSize = sizeof(optional_parameter::type) + sizeof(optional_parameter::length);
  298|  8.05k|			if (remaining < optParamHdrSize)
  ------------------
  |  Branch (298:8): [True: 626, False: 7.43k]
  ------------------
  299|    626|			{
  300|    626|				PCPP_LOG_ERROR("Truncated optional parameter header");
  ------------------
  |  |  444|    626|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    626|	do                                                                                                                 \
  |  |  |  |  414|    626|	{                                                                                                                  \
  |  |  |  |  415|    626|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    626|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    626|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 626, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    626|		{                                                                                                              \
  |  |  |  |  418|    626|			auto ctx =                                                                                                 \
  |  |  |  |  419|    626|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    626|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    626|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    626|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    626|		}                                                                                                              \
  |  |  |  |  423|    626|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 626]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  301|    626|				break;
  302|    626|			}
  303|       |
  304|  7.43k|			optional_parameter op;
  305|  7.43k|			op.type = dataPtr[0];
  306|  7.43k|			op.length = dataPtr[1];
  307|       |
  308|  7.43k|			size_t totalLen = optParamHdrSize + static_cast<size_t>(op.length);
  309|  7.43k|			if (totalLen > remaining)
  ------------------
  |  Branch (309:8): [True: 562, False: 6.86k]
  ------------------
  310|    562|			{
  311|    562|				PCPP_LOG_ERROR("Optional parameter length is out of bounds: " << static_cast<int>(op.length));
  ------------------
  |  |  444|    562|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    562|	do                                                                                                                 \
  |  |  |  |  414|    562|	{                                                                                                                  \
  |  |  |  |  415|    562|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    562|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    562|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 562, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    562|		{                                                                                                              \
  |  |  |  |  418|    562|			auto ctx =                                                                                                 \
  |  |  |  |  419|    562|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    562|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    562|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    562|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    562|		}                                                                                                              \
  |  |  |  |  423|    562|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 562]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  312|    562|				break;
  313|    562|			}
  314|       |
  315|  6.86k|			if (op.length > 0)
  ------------------
  |  Branch (315:8): [True: 2.95k, False: 3.91k]
  ------------------
  316|  2.95k|			{
  317|  2.95k|				memcpy(op.value, dataPtr + optParamHdrSize,
  318|  2.95k|				       (std::min)(static_cast<size_t>(op.length), sizeof(op.value)));
  319|  2.95k|			}
  320|       |
  321|  6.86k|			optionalParameters.push_back(op);
  322|       |
  323|  6.86k|			byteCount += totalLen;
  324|  6.86k|			dataPtr += totalLen;
  325|  6.86k|		}
  326|  1.67k|	}
_ZN4pcpp19BgpOpenMessageLayer27getOptionalParametersLengthEv:
  329|  5.02k|	{
  330|  5.02k|		size_t headerLen = getHeaderLen();
  331|  5.02k|		bgp_open_message* msgHdr = getOpenMsgHeader();
  332|  5.02k|		auto optParamLen = static_cast<size_t>(msgHdr->optionalParameterLength);
  333|       |
  334|  5.02k|		constexpr size_t bgpOpenMsgHeaderSize = sizeof(bgp_open_message);
  335|  5.02k|		if (headerLen < optParamLen + bgpOpenMsgHeaderSize)
  ------------------
  |  Branch (335:7): [True: 868, False: 4.15k]
  ------------------
  336|    868|		{
  337|    868|			PCPP_LOG_WARN("BGP Layer optional param length exceeds total BGP message. "
  ------------------
  |  |  432|    868|#	define PCPP_LOG_WARN(message) PCPP_LOG(pcpp::LogLevel::Warn, message)
  |  |  ------------------
  |  |  |  |  413|    868|	do                                                                                                                 \
  |  |  |  |  414|    868|	{                                                                                                                  \
  |  |  |  |  415|    868|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    868|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    868|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 868, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    868|		{                                                                                                              \
  |  |  |  |  418|    868|			auto ctx =                                                                                                 \
  |  |  |  |  419|    868|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    868|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    868|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    868|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    868|		}                                                                                                              \
  |  |  |  |  423|    868|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 868]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  338|    868|			              "This packet might be malformed! Trimming to maximum allowed by BGP message length.");
  339|    868|			optParamLen = headerLen >= bgpOpenMsgHeaderSize ? headerLen - bgpOpenMsgHeaderSize : 0;
  ------------------
  |  Branch (339:18): [True: 864, False: 4]
  ------------------
  340|    868|		}
  341|       |
  342|  5.02k|		return optParamLen;
  343|  5.02k|	}
_ZN4pcpp19BgpOpenMessageLayer21setOptionalParametersERKNSt3__16vectorINS0_18optional_parameterENS1_9allocatorIS3_EEEE:
  346|  5.02k|	{
  347|  5.02k|		uint8_t newOptionalParamsData[maxOptionalParamsDataLen];
  348|  5.02k|		size_t newOptionalParamsDataLen = 0;
  349|  5.02k|		try
  350|  5.02k|		{
  351|  5.02k|			newOptionalParamsDataLen =
  352|  5.02k|			    optionalParamsToByteArray(optionalParameters, newOptionalParamsData, sizeof(newOptionalParamsData));
  353|  5.02k|		}
  354|  5.02k|		catch (const std::invalid_argument& e)
  355|  5.02k|		{
  356|      2|			PCPP_LOG_ERROR("Couldn't set the BGP OPEN optional parameters: " << e.what());
  ------------------
  |  |  444|      2|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      2|	do                                                                                                                 \
  |  |  |  |  414|      2|	{                                                                                                                  \
  |  |  |  |  415|      2|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      2|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      2|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 2, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      2|		{                                                                                                              \
  |  |  |  |  418|      2|			auto ctx =                                                                                                 \
  |  |  |  |  419|      2|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      2|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      2|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      2|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      2|		}                                                                                                              \
  |  |  |  |  423|      2|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 2]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  357|      2|			return false;
  358|      2|		}
  359|       |
  360|  5.02k|		size_t curOptionalParamsDataLen = getOptionalParametersLength();
  361|  5.02k|		constexpr int offsetInLayer = sizeof(bgp_open_message);
  362|       |
  363|  5.02k|		if (newOptionalParamsDataLen > curOptionalParamsDataLen)
  ------------------
  |  Branch (363:7): [True: 2.71k, False: 2.30k]
  ------------------
  364|  2.71k|		{
  365|  2.71k|			size_t numOfBytesToExtend = newOptionalParamsDataLen - curOptionalParamsDataLen;
  366|       |
  367|  2.71k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (367:8): [True: 18, False: 2.69k]
  ------------------
  368|     18|			{
  369|     18|				PCPP_LOG_ERROR("Couldn't extend BGP open layer to include the additional optional parameters");
  ------------------
  |  |  444|     18|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|     18|	do                                                                                                                 \
  |  |  |  |  414|     18|	{                                                                                                                  \
  |  |  |  |  415|     18|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|     18|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     18|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 18, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|     18|		{                                                                                                              \
  |  |  |  |  418|     18|			auto ctx =                                                                                                 \
  |  |  |  |  419|     18|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     18|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|     18|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|     18|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|     18|		}                                                                                                              \
  |  |  |  |  423|     18|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 18]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  370|     18|				return false;
  371|     18|			}
  372|  2.71k|		}
  373|  2.30k|		else if (newOptionalParamsDataLen < curOptionalParamsDataLen)
  ------------------
  |  Branch (373:12): [True: 2.03k, False: 276]
  ------------------
  374|  2.03k|		{
  375|  2.03k|			size_t numOfBytesToShorten = curOptionalParamsDataLen - newOptionalParamsDataLen;
  376|       |
  377|  2.03k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (377:8): [True: 313, False: 1.71k]
  ------------------
  378|    313|			{
  379|    313|				PCPP_LOG_ERROR("Couldn't shorten BGP open layer to set the right size of the optional parameters data");
  ------------------
  |  |  444|    313|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    313|	do                                                                                                                 \
  |  |  |  |  414|    313|	{                                                                                                                  \
  |  |  |  |  415|    313|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    313|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    313|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 313, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    313|		{                                                                                                              \
  |  |  |  |  418|    313|			auto ctx =                                                                                                 \
  |  |  |  |  419|    313|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    313|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    313|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    313|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    313|		}                                                                                                              \
  |  |  |  |  423|    313|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 313]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  380|    313|				return false;
  381|    313|			}
  382|  2.03k|		}
  383|       |
  384|  4.69k|		if (newOptionalParamsDataLen > 0)
  ------------------
  |  Branch (384:7): [True: 2.90k, False: 1.78k]
  ------------------
  385|  2.90k|		{
  386|  2.90k|			memcpy(m_Data + offsetInLayer, newOptionalParamsData, newOptionalParamsDataLen);
  387|  2.90k|		}
  388|       |
  389|  4.69k|		getOpenMsgHeader()->optionalParameterLength = static_cast<uint8_t>(newOptionalParamsDataLen);
  390|  4.69k|		getOpenMsgHeader()->length = htobe16(sizeof(bgp_open_message) + newOptionalParamsDataLen);
  391|       |
  392|  4.69k|		return true;
  393|  5.02k|	}
_ZN4pcpp19BgpOpenMessageLayer23clearOptionalParametersEv:
  396|  1.67k|	{
  397|  1.67k|		return setOptionalParameters(std::vector<optional_parameter>());
  398|  1.67k|	}
_ZN4pcpp21BgpUpdateMessageLayer14path_attributeC2EhhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  406|  15.3k|	{
  407|  15.3k|		flags = flagsVal;
  408|  15.3k|		type = typeVal;
  409|  15.3k|		length = hexStringToByteArray(dataAsHexString, data, 32);
  410|  15.3k|	}
_ZN4pcpp21BgpUpdateMessageLayer20parsePrefixAndIPDataEPhmRNSt3__16vectorINS0_13prefix_and_ipENS2_9allocatorIS4_EEEE:
  461|  4.76k|	{
  462|  4.76k|		size_t byteCount = 0;
  463|  7.72k|		while (byteCount < dataLen)
  ------------------
  |  Branch (463:10): [True: 6.43k, False: 1.29k]
  ------------------
  464|  6.43k|		{
  465|  6.43k|			prefix_and_ip wr;
  466|  6.43k|			wr.prefix = dataPtr[0];
  467|  6.43k|			size_t curByteCount = 1;
  468|  6.43k|			if (wr.prefix == 32)
  ------------------
  |  Branch (468:8): [True: 2.48k, False: 3.94k]
  ------------------
  469|  2.48k|			{
  470|  2.48k|				uint8_t octets[4] = { dataPtr[1], dataPtr[2], dataPtr[3], dataPtr[4] };
  471|  2.48k|				wr.ipAddr = IPv4Address(octets);
  472|  2.48k|				curByteCount += 4;
  473|  2.48k|			}
  474|  3.94k|			else if (wr.prefix == 24)
  ------------------
  |  Branch (474:13): [True: 1, False: 3.94k]
  ------------------
  475|      1|			{
  476|      1|				uint8_t octets[4] = { dataPtr[1], dataPtr[2], dataPtr[3], 0 };
  477|      1|				wr.ipAddr = IPv4Address(octets);
  478|      1|				curByteCount += 3;
  479|      1|			}
  480|  3.94k|			else if (wr.prefix == 16)
  ------------------
  |  Branch (480:13): [True: 0, False: 3.94k]
  ------------------
  481|      0|			{
  482|      0|				uint8_t octets[4] = { dataPtr[1], dataPtr[2], 0, 0 };
  483|      0|				wr.ipAddr = IPv4Address(octets);
  484|      0|				curByteCount += 2;
  485|      0|			}
  486|  3.94k|			else if (wr.prefix == 8)
  ------------------
  |  Branch (486:13): [True: 472, False: 3.47k]
  ------------------
  487|    472|			{
  488|    472|				uint8_t octets[4] = { dataPtr[1], 0, 0, 0 };
  489|    472|				wr.ipAddr = IPv4Address(octets);
  490|    472|				curByteCount += 1;
  491|    472|			}
  492|  3.47k|			else
  493|  3.47k|			{
  494|  3.47k|				PCPP_LOG_DEBUG("Illegal prefix value " << (int)wr.prefix);
  ------------------
  |  |  426|  3.47k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|  3.47k|	do                                                                                                                 \
  |  |  |  |  414|  3.47k|	{                                                                                                                  \
  |  |  |  |  415|  3.47k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  3.47k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.47k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 3.47k]
  |  |  |  |  ------------------
  |  |  |  |  417|  3.47k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|  3.47k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 3.47k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  495|  3.47k|				break;  // illegal value
  496|  3.47k|			}
  497|       |
  498|  2.96k|			result.push_back(wr);
  499|  2.96k|			dataPtr += curByteCount;
  500|  2.96k|			byteCount += curByteCount;
  501|  2.96k|		}
  502|  4.76k|	}
_ZN4pcpp21BgpUpdateMessageLayer26prefixAndIPDataToByteArrayERKNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEEPhm:
  506|  30.6k|	{
  507|  30.6k|		if (resultByteArr == nullptr || maxByteArrSize == 0)
  ------------------
  |  Branch (507:7): [True: 0, False: 30.6k]
  |  Branch (507:35): [True: 0, False: 30.6k]
  ------------------
  508|      0|		{
  509|      0|			return 0;
  510|      0|		}
  511|       |
  512|  30.6k|		size_t dataLen = 0;
  513|       |
  514|  30.6k|		for (const auto& prefixAndIp : prefixAndIpData)
  ------------------
  |  Branch (514:32): [True: 31.4k, False: 30.6k]
  ------------------
  515|  31.4k|		{
  516|  31.4k|			uint8_t curData[5];
  517|  31.4k|			curData[0] = prefixAndIp.prefix;
  518|  31.4k|			size_t curDataSize = 1;
  519|  31.4k|			const uint8_t* octets = prefixAndIp.ipAddr.toBytes();
  520|  31.4k|			if (prefixAndIp.prefix == 32)
  ------------------
  |  Branch (520:8): [True: 4.97k, False: 26.4k]
  ------------------
  521|  4.97k|			{
  522|  4.97k|				curDataSize += 4;
  523|  4.97k|				curData[1] = octets[0];
  524|  4.97k|				curData[2] = octets[1];
  525|  4.97k|				curData[3] = octets[2];
  526|  4.97k|				curData[4] = octets[3];
  527|  4.97k|			}
  528|  26.4k|			else if (prefixAndIp.prefix == 24)
  ------------------
  |  Branch (528:13): [True: 20.4k, False: 6.04k]
  ------------------
  529|  20.4k|			{
  530|  20.4k|				curDataSize += 3;
  531|  20.4k|				curData[1] = octets[0];
  532|  20.4k|				curData[2] = octets[1];
  533|  20.4k|				curData[3] = octets[2];
  534|  20.4k|			}
  535|  6.04k|			else if (prefixAndIp.prefix == 16)
  ------------------
  |  Branch (535:13): [True: 5.10k, False: 944]
  ------------------
  536|  5.10k|			{
  537|  5.10k|				curDataSize += 2;
  538|  5.10k|				curData[1] = octets[0];
  539|  5.10k|				curData[2] = octets[1];
  540|  5.10k|			}
  541|    944|			else if (prefixAndIp.prefix == 8)
  ------------------
  |  Branch (541:13): [True: 944, False: 0]
  ------------------
  542|    944|			{
  543|    944|				curDataSize += 1;
  544|    944|				curData[1] = octets[0];
  545|    944|			}
  546|      0|			else
  547|      0|			{
  548|      0|				PCPP_LOG_ERROR("Illegal prefix value " << (int)prefixAndIp.prefix);
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  549|      0|				break;  // illegal value
  550|      0|			}
  551|       |
  552|  31.4k|			if (dataLen + curDataSize > maxByteArrSize)
  ------------------
  |  Branch (552:8): [True: 0, False: 31.4k]
  ------------------
  553|      0|			{
  554|      0|				break;
  555|      0|			}
  556|       |
  557|  31.4k|			dataLen += curDataSize;
  558|       |
  559|  31.4k|			memcpy(resultByteArr, curData, curDataSize);
  560|  31.4k|			resultByteArr += curDataSize;
  561|  31.4k|		}
  562|       |
  563|  30.6k|		return dataLen;
  564|  30.6k|	}
_ZN4pcpp21BgpUpdateMessageLayer25pathAttributesToByteArrayERKNSt3__16vectorINS0_14path_attributeENS1_9allocatorIS3_EEEEPhm:
  568|  15.3k|	{
  569|  15.3k|		if (resultByteArr == nullptr || maxByteArrSize == 0)
  ------------------
  |  Branch (569:7): [True: 0, False: 15.3k]
  |  Branch (569:35): [True: 0, False: 15.3k]
  ------------------
  570|      0|		{
  571|      0|			return 0;
  572|      0|		}
  573|       |
  574|  15.3k|		size_t dataLen = 0;
  575|       |
  576|  15.3k|		for (const auto& attribute : pathAttributes)
  ------------------
  |  Branch (576:30): [True: 41.1k, False: 10.4k]
  ------------------
  577|  41.1k|		{
  578|  41.1k|			if (attribute.length > 32)
  ------------------
  |  Branch (578:8): [True: 4.82k, False: 36.3k]
  ------------------
  579|  4.82k|			{
  580|  4.82k|				PCPP_LOG_ERROR("Illegal path attribute length " << (int)attribute.length);
  ------------------
  |  |  444|  4.82k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|  4.82k|	do                                                                                                                 \
  |  |  |  |  414|  4.82k|	{                                                                                                                  \
  |  |  |  |  415|  4.82k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  4.82k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.82k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 4.82k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|  4.82k|		{                                                                                                              \
  |  |  |  |  418|  4.82k|			auto ctx =                                                                                                 \
  |  |  |  |  419|  4.82k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.82k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|  4.82k|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|  4.82k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|  4.82k|		}                                                                                                              \
  |  |  |  |  423|  4.82k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 4.82k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  581|  4.82k|				break;  // illegal value
  582|  4.82k|			}
  583|       |
  584|  36.3k|			size_t curDataSize = 3 * sizeof(uint8_t) + (size_t)attribute.length;
  585|       |
  586|  36.3k|			if (dataLen + curDataSize > maxByteArrSize)
  ------------------
  |  Branch (586:8): [True: 0, False: 36.3k]
  ------------------
  587|      0|			{
  588|      0|				break;
  589|      0|			}
  590|       |
  591|  36.3k|			resultByteArr[0] = attribute.flags;
  592|  36.3k|			resultByteArr[1] = attribute.type;
  593|  36.3k|			resultByteArr[2] = attribute.length;
  594|  36.3k|			if (attribute.length > 0)
  ------------------
  |  Branch (594:8): [True: 25.5k, False: 10.7k]
  ------------------
  595|  25.5k|			{
  596|  25.5k|				memcpy(resultByteArr + 3 * sizeof(uint8_t), attribute.data, attribute.length);
  597|  25.5k|			}
  598|       |
  599|  36.3k|			dataLen += curDataSize;
  600|  36.3k|			resultByteArr += curDataSize;
  601|  36.3k|		}
  602|       |
  603|  15.3k|		return dataLen;
  604|  15.3k|	}
_ZNK4pcpp21BgpUpdateMessageLayer24getWithdrawnRoutesLengthEv:
  607|   129k|	{
  608|   129k|		size_t headerLen = getHeaderLen();
  609|   129k|		size_t minLen = sizeof(bgp_common_header) + sizeof(uint16_t);
  610|   129k|		if (headerLen >= minLen)
  ------------------
  |  Branch (610:7): [True: 129k, False: 576]
  ------------------
  611|   129k|		{
  612|   129k|			uint16_t res = be16toh(*(uint16_t*)(m_Data + sizeof(bgp_common_header)));
  613|   129k|			if ((size_t)res > headerLen - minLen)
  ------------------
  |  Branch (613:8): [True: 3.43k, False: 125k]
  ------------------
  614|  3.43k|			{
  615|  3.43k|				return headerLen - minLen;
  616|  3.43k|			}
  617|       |
  618|   125k|			return (size_t)res;
  619|   129k|		}
  620|       |
  621|    576|		return 0;
  622|   129k|	}
_ZN4pcpp21BgpUpdateMessageLayer18getWithdrawnRoutesERNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  625|  5.10k|	{
  626|  5.10k|		size_t withdrawnRouteLen = getWithdrawnRoutesLength();
  627|  5.10k|		if (withdrawnRouteLen == 0)
  ------------------
  |  Branch (627:7): [True: 3.54k, False: 1.55k]
  ------------------
  628|  3.54k|		{
  629|  3.54k|			return;
  630|  3.54k|		}
  631|       |
  632|  1.55k|		uint8_t* dataPtr = m_Data + sizeof(bgp_common_header) + sizeof(uint16_t);
  633|  1.55k|		parsePrefixAndIPData(dataPtr, withdrawnRouteLen, withdrawnRoutes);
  634|  1.55k|	}
_ZNK4pcpp21BgpUpdateMessageLayer23getPathAttributesLengthEv:
  637|  57.3k|	{
  638|  57.3k|		size_t headerLen = getHeaderLen();
  639|  57.3k|		size_t minLen = sizeof(bgp_common_header) + 2 * sizeof(uint16_t);
  640|  57.3k|		if (headerLen >= minLen)
  ------------------
  |  Branch (640:7): [True: 53.8k, False: 3.49k]
  ------------------
  641|  53.8k|		{
  642|  53.8k|			size_t withdrawnRouteLen = getWithdrawnRoutesLength();
  643|       |			// Ensure the memory access is within bounds
  644|  53.8k|			if (sizeof(bgp_common_header) + sizeof(uint16_t) + withdrawnRouteLen + sizeof(uint16_t) > headerLen)
  ------------------
  |  Branch (644:8): [True: 1.88k, False: 51.9k]
  ------------------
  645|  1.88k|			{
  646|  1.88k|				return 0;  // Invalid access, return 0
  647|  1.88k|			}
  648|  51.9k|			uint16_t res =
  649|  51.9k|			    be16toh(*(uint16_t*)(m_Data + sizeof(bgp_common_header) + sizeof(uint16_t) + withdrawnRouteLen));
  650|  51.9k|			if ((size_t)res > headerLen - minLen - withdrawnRouteLen)
  ------------------
  |  Branch (650:8): [True: 3.57k, False: 48.3k]
  ------------------
  651|  3.57k|			{
  652|  3.57k|				return headerLen - minLen - withdrawnRouteLen;
  653|  3.57k|			}
  654|       |
  655|  48.3k|			return (size_t)res;
  656|  51.9k|		}
  657|       |
  658|  3.49k|		return 0;
  659|  57.3k|	}
_ZN4pcpp21BgpUpdateMessageLayer18setWithdrawnRoutesERKNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  662|  15.3k|	{
  663|  15.3k|		uint8_t newWithdrawnRoutesData[1500];
  664|  15.3k|		size_t newWithdrawnRoutesDataLen = prefixAndIPDataToByteArray(withdrawnRoutes, newWithdrawnRoutesData, 1500);
  665|  15.3k|		size_t curWithdrawnRoutesDataLen = getWithdrawnRoutesLength();
  666|  15.3k|		int offsetInLayer = sizeof(bgp_common_header) + sizeof(uint16_t);
  667|       |
  668|  15.3k|		if (newWithdrawnRoutesDataLen > curWithdrawnRoutesDataLen)
  ------------------
  |  Branch (668:7): [True: 4.76k, False: 10.5k]
  ------------------
  669|  4.76k|		{
  670|  4.76k|			size_t numOfBytesToExtend = newWithdrawnRoutesDataLen - curWithdrawnRoutesDataLen;
  671|       |
  672|  4.76k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (672:8): [True: 51, False: 4.71k]
  ------------------
  673|     51|			{
  674|     51|				PCPP_LOG_ERROR("Couldn't extend BGP update layer to include the additional withdrawn routes");
  ------------------
  |  |  444|     51|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|     51|	do                                                                                                                 \
  |  |  |  |  414|     51|	{                                                                                                                  \
  |  |  |  |  415|     51|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|     51|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     51|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 51, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|     51|		{                                                                                                              \
  |  |  |  |  418|     51|			auto ctx =                                                                                                 \
  |  |  |  |  419|     51|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     51|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|     51|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|     51|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|     51|		}                                                                                                              \
  |  |  |  |  423|     51|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 51]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  675|     51|				return false;
  676|     51|			}
  677|  4.76k|		}
  678|  10.5k|		else if (newWithdrawnRoutesDataLen < curWithdrawnRoutesDataLen)
  ------------------
  |  Branch (678:12): [True: 5.85k, False: 4.67k]
  ------------------
  679|  5.85k|		{
  680|  5.85k|			size_t numOfBytesToShorten = curWithdrawnRoutesDataLen - newWithdrawnRoutesDataLen;
  681|       |
  682|  5.85k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (682:8): [True: 543, False: 5.31k]
  ------------------
  683|    543|			{
  684|    543|				PCPP_LOG_ERROR("Couldn't shorten BGP update layer to set the right size of the withdrawn routes data");
  ------------------
  |  |  444|    543|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    543|	do                                                                                                                 \
  |  |  |  |  414|    543|	{                                                                                                                  \
  |  |  |  |  415|    543|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    543|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    543|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 543, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    543|		{                                                                                                              \
  |  |  |  |  418|    543|			auto ctx =                                                                                                 \
  |  |  |  |  419|    543|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    543|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    543|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    543|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    543|		}                                                                                                              \
  |  |  |  |  423|    543|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 543]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  685|    543|				return false;
  686|    543|			}
  687|  5.85k|		}
  688|       |
  689|  14.7k|		if (newWithdrawnRoutesDataLen > 0)
  ------------------
  |  Branch (689:7): [True: 5.20k, False: 9.50k]
  ------------------
  690|  5.20k|		{
  691|  5.20k|			memcpy(m_Data + offsetInLayer, newWithdrawnRoutesData, newWithdrawnRoutesDataLen);
  692|  5.20k|		}
  693|       |
  694|  14.7k|		getBasicHeader()->length =
  695|  14.7k|		    htobe16(be16toh(getBasicHeader()->length) + newWithdrawnRoutesDataLen - curWithdrawnRoutesDataLen);
  696|       |
  697|  14.7k|		uint16_t newWithdrawnRoutesDataLenBE = htobe16(newWithdrawnRoutesDataLen);
  698|  14.7k|		memcpy(m_Data + sizeof(bgp_common_header), &newWithdrawnRoutesDataLenBE, sizeof(uint16_t));
  699|       |
  700|  14.7k|		return true;
  701|  15.3k|	}
_ZN4pcpp21BgpUpdateMessageLayer20clearWithdrawnRoutesEv:
  704|  5.10k|	{
  705|  5.10k|		return setWithdrawnRoutes(std::vector<prefix_and_ip>());
  706|  5.10k|	}
_ZN4pcpp21BgpUpdateMessageLayer17getPathAttributesERNSt3__16vectorINS0_14path_attributeENS1_9allocatorIS3_EEEE:
  709|  5.10k|	{
  710|  5.10k|		size_t pathAttrLen = getPathAttributesLength();
  711|  5.10k|		if (pathAttrLen == 0)
  ------------------
  |  Branch (711:7): [True: 1.60k, False: 3.50k]
  ------------------
  712|  1.60k|		{
  713|  1.60k|			return;
  714|  1.60k|		}
  715|       |
  716|  3.50k|		uint8_t* dataPtr = m_Data + sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + getWithdrawnRoutesLength();
  717|  3.50k|		size_t byteCount = 0;
  718|  20.2k|		while (byteCount < pathAttrLen)
  ------------------
  |  Branch (718:10): [True: 16.7k, False: 3.50k]
  ------------------
  719|  16.7k|		{
  720|  16.7k|			path_attribute pa;
  721|  16.7k|			pa.flags = dataPtr[0];
  722|  16.7k|			pa.type = dataPtr[1];
  723|  16.7k|			pa.length = dataPtr[2];
  724|  16.7k|			size_t curByteCount = 3 + pa.length;
  725|  16.7k|			if (pa.length > 0)
  ------------------
  |  Branch (725:8): [True: 11.2k, False: 5.53k]
  ------------------
  726|  11.2k|			{
  727|  11.2k|				size_t dataLenToCopy = (pa.length <= 32 ? pa.length : 32);
  ------------------
  |  Branch (727:29): [True: 8.76k, False: 2.44k]
  ------------------
  728|  11.2k|				memcpy(pa.data, dataPtr + 3, dataLenToCopy);
  729|  11.2k|			}
  730|       |
  731|  16.7k|			pathAttributes.push_back(pa);
  732|  16.7k|			dataPtr += curByteCount;
  733|  16.7k|			byteCount += curByteCount;
  734|  16.7k|		}
  735|  3.50k|	}
_ZN4pcpp21BgpUpdateMessageLayer17setPathAttributesERKNSt3__16vectorINS0_14path_attributeENS1_9allocatorIS3_EEEE:
  738|  15.3k|	{
  739|  15.3k|		uint8_t newPathAttributesData[1500];
  740|  15.3k|		size_t newPathAttributesDataLen = pathAttributesToByteArray(pathAttributes, newPathAttributesData, 1500);
  741|  15.3k|		size_t curPathAttributesDataLen = getPathAttributesLength();
  742|  15.3k|		size_t curWithdrawnRoutesDataLen = getWithdrawnRoutesLength();
  743|  15.3k|		int offsetInLayer = sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + curWithdrawnRoutesDataLen;
  744|       |
  745|  15.3k|		if (newPathAttributesDataLen > curPathAttributesDataLen)
  ------------------
  |  Branch (745:7): [True: 6.08k, False: 9.22k]
  ------------------
  746|  6.08k|		{
  747|  6.08k|			size_t numOfBytesToExtend = newPathAttributesDataLen - curPathAttributesDataLen;
  748|       |
  749|  6.08k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (749:8): [True: 704, False: 5.37k]
  ------------------
  750|    704|			{
  751|    704|				PCPP_LOG_ERROR("Couldn't extend BGP update layer to include the additional path attributes");
  ------------------
  |  |  444|    704|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    704|	do                                                                                                                 \
  |  |  |  |  414|    704|	{                                                                                                                  \
  |  |  |  |  415|    704|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    704|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    704|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 704, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    704|		{                                                                                                              \
  |  |  |  |  418|    704|			auto ctx =                                                                                                 \
  |  |  |  |  419|    704|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    704|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    704|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    704|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    704|		}                                                                                                              \
  |  |  |  |  423|    704|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 704]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  752|    704|				return false;
  753|    704|			}
  754|  6.08k|		}
  755|  9.22k|		else if (newPathAttributesDataLen < curPathAttributesDataLen)
  ------------------
  |  Branch (755:12): [True: 6.74k, False: 2.47k]
  ------------------
  756|  6.74k|		{
  757|  6.74k|			size_t numOfBytesToShorten = curPathAttributesDataLen - newPathAttributesDataLen;
  758|       |
  759|  6.74k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (759:8): [True: 36, False: 6.71k]
  ------------------
  760|     36|			{
  761|     36|				PCPP_LOG_ERROR("Couldn't shorten BGP update layer to set the right size of the path attributes data");
  ------------------
  |  |  444|     36|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|     36|	do                                                                                                                 \
  |  |  |  |  414|     36|	{                                                                                                                  \
  |  |  |  |  415|     36|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|     36|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     36|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 36, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|     36|		{                                                                                                              \
  |  |  |  |  418|     36|			auto ctx =                                                                                                 \
  |  |  |  |  419|     36|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     36|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|     36|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|     36|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|     36|		}                                                                                                              \
  |  |  |  |  423|     36|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 36]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  762|     36|				return false;
  763|     36|			}
  764|  6.74k|		}
  765|       |
  766|  14.5k|		if (newPathAttributesDataLen > 0)
  ------------------
  |  Branch (766:7): [True: 7.68k, False: 6.88k]
  ------------------
  767|  7.68k|		{
  768|  7.68k|			memcpy(m_Data + offsetInLayer, newPathAttributesData, newPathAttributesDataLen);
  769|  7.68k|		}
  770|       |
  771|  14.5k|		getBasicHeader()->length =
  772|  14.5k|		    htobe16(be16toh(getBasicHeader()->length) + newPathAttributesDataLen - curPathAttributesDataLen);
  773|       |
  774|  14.5k|		uint16_t newWithdrawnRoutesDataLenBE = htobe16(newPathAttributesDataLen);
  775|  14.5k|		memcpy(m_Data + sizeof(bgp_common_header) + sizeof(uint16_t) + curWithdrawnRoutesDataLen,
  776|  14.5k|		       &newWithdrawnRoutesDataLenBE, sizeof(uint16_t));
  777|       |
  778|  14.5k|		return true;
  779|  15.3k|	}
_ZN4pcpp21BgpUpdateMessageLayer19clearPathAttributesEv:
  782|  5.10k|	{
  783|  5.10k|		return setPathAttributes(std::vector<path_attribute>());
  784|  5.10k|	}
_ZNK4pcpp21BgpUpdateMessageLayer37getNetworkLayerReachabilityInfoLengthEv:
  787|  20.4k|	{
  788|  20.4k|		size_t headerLen = getHeaderLen();
  789|  20.4k|		size_t minLen = sizeof(bgp_common_header) + 2 * sizeof(uint16_t);
  790|  20.4k|		if (headerLen >= minLen)
  ------------------
  |  Branch (790:7): [True: 18.4k, False: 2.00k]
  ------------------
  791|  18.4k|		{
  792|  18.4k|			size_t withdrawnRouteLen = getWithdrawnRoutesLength();
  793|  18.4k|			size_t pathAttrLen = getPathAttributesLength();
  794|  18.4k|			int nlriSize = headerLen - minLen - withdrawnRouteLen - pathAttrLen;
  795|  18.4k|			if (nlriSize >= 0)
  ------------------
  |  Branch (795:8): [True: 17.7k, False: 684]
  ------------------
  796|  17.7k|			{
  797|  17.7k|				return (size_t)nlriSize;
  798|  17.7k|			}
  799|       |
  800|    684|			return 0;
  801|  18.4k|		}
  802|       |
  803|  2.00k|		return 0;
  804|  20.4k|	}
_ZN4pcpp21BgpUpdateMessageLayer31getNetworkLayerReachabilityInfoERNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  807|  5.10k|	{
  808|  5.10k|		size_t nlriSize = getNetworkLayerReachabilityInfoLength();
  809|  5.10k|		if (nlriSize == 0)
  ------------------
  |  Branch (809:7): [True: 1.89k, False: 3.20k]
  ------------------
  810|  1.89k|		{
  811|  1.89k|			return;
  812|  1.89k|		}
  813|       |
  814|  3.20k|		uint8_t* dataPtr = m_Data + sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + getWithdrawnRoutesLength() +
  815|  3.20k|		                   getPathAttributesLength();
  816|  3.20k|		parsePrefixAndIPData(dataPtr, nlriSize, nlri);
  817|  3.20k|	}
_ZN4pcpp21BgpUpdateMessageLayer11isDataValidEPKhm:
  820|  37.4k|	{
  821|  37.4k|		if (dataSize < sizeof(bgp_common_header) + 2 * sizeof(uint16_t))
  ------------------
  |  Branch (821:7): [True: 0, False: 37.4k]
  ------------------
  822|      0|			return false;
  823|       |
  824|  37.4k|		uint16_t withdrLen = be16toh(*(uint16_t*)(data + sizeof(bgp_common_header)));
  825|  37.4k|		if (dataSize < sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + withdrLen)
  ------------------
  |  Branch (825:7): [True: 37, False: 37.3k]
  ------------------
  826|     37|			return false;
  827|       |
  828|  37.3k|		uint16_t attrLen = be16toh(*(uint16_t*)(data + sizeof(bgp_common_header) + sizeof(uint16_t) + withdrLen));
  829|  37.3k|		if (dataSize < sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + withdrLen + attrLen)
  ------------------
  |  Branch (829:7): [True: 146, False: 37.2k]
  ------------------
  830|    146|			return false;
  831|       |
  832|  37.2k|		return true;
  833|  37.3k|	}
_ZN4pcpp21BgpUpdateMessageLayer31setNetworkLayerReachabilityInfoERKNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  836|  15.3k|	{
  837|  15.3k|		uint8_t newNlriData[1500];
  838|  15.3k|		size_t newNlriDataLen = prefixAndIPDataToByteArray(nlri, newNlriData, 1500);
  839|  15.3k|		size_t curNlriDataLen = getNetworkLayerReachabilityInfoLength();
  840|  15.3k|		size_t curPathAttributesDataLen = getPathAttributesLength();
  841|  15.3k|		size_t curWithdrawnRoutesDataLen = getWithdrawnRoutesLength();
  842|  15.3k|		int offsetInLayer =
  843|  15.3k|		    sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + curWithdrawnRoutesDataLen + curPathAttributesDataLen;
  844|       |
  845|  15.3k|		if (newNlriDataLen > curNlriDataLen)
  ------------------
  |  Branch (845:7): [True: 4.34k, False: 10.9k]
  ------------------
  846|  4.34k|		{
  847|  4.34k|			size_t numOfBytesToExtend = newNlriDataLen - curNlriDataLen;
  848|       |
  849|  4.34k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (849:8): [True: 690, False: 3.65k]
  ------------------
  850|    690|			{
  851|    690|				PCPP_LOG_ERROR("Couldn't extend BGP update layer to include the additional NLRI data");
  ------------------
  |  |  444|    690|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    690|	do                                                                                                                 \
  |  |  |  |  414|    690|	{                                                                                                                  \
  |  |  |  |  415|    690|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    690|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    690|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 690, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    690|		{                                                                                                              \
  |  |  |  |  418|    690|			auto ctx =                                                                                                 \
  |  |  |  |  419|    690|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    690|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    690|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    690|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    690|		}                                                                                                              \
  |  |  |  |  423|    690|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 690]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  852|    690|				return false;
  853|    690|			}
  854|  4.34k|		}
  855|  10.9k|		else if (newNlriDataLen < curNlriDataLen)
  ------------------
  |  Branch (855:12): [True: 5.86k, False: 5.08k]
  ------------------
  856|  5.86k|		{
  857|  5.86k|			size_t numOfBytesToShorten = curNlriDataLen - newNlriDataLen;
  858|       |
  859|  5.86k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (859:8): [True: 16, False: 5.85k]
  ------------------
  860|     16|			{
  861|     16|				PCPP_LOG_ERROR("Couldn't shorten BGP update layer to set the right size of the NLRI data");
  ------------------
  |  |  444|     16|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|     16|	do                                                                                                                 \
  |  |  |  |  414|     16|	{                                                                                                                  \
  |  |  |  |  415|     16|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|     16|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     16|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 16, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|     16|		{                                                                                                              \
  |  |  |  |  418|     16|			auto ctx =                                                                                                 \
  |  |  |  |  419|     16|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     16|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|     16|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|     16|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|     16|		}                                                                                                              \
  |  |  |  |  423|     16|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 16]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  862|     16|				return false;
  863|     16|			}
  864|  5.86k|		}
  865|       |
  866|  14.5k|		if (newNlriDataLen > 0)
  ------------------
  |  Branch (866:7): [True: 5.85k, False: 8.73k]
  ------------------
  867|  5.85k|		{
  868|  5.85k|			memcpy(m_Data + offsetInLayer, newNlriData, newNlriDataLen);
  869|  5.85k|		}
  870|       |
  871|  14.5k|		getBasicHeader()->length = htobe16(be16toh(getBasicHeader()->length) + newNlriDataLen - curNlriDataLen);
  872|       |
  873|  14.5k|		return true;
  874|  15.3k|	}
_ZN4pcpp21BgpUpdateMessageLayer33clearNetworkLayerReachabilityInfoEv:
  877|  5.10k|	{
  878|  5.10k|		return setNetworkLayerReachabilityInfo(std::vector<prefix_and_ip>());
  879|  5.10k|	}
_ZNK4pcpp27BgpNotificationMessageLayer22getNotificationDataLenEv:
  923|    246|	{
  924|    246|		size_t headerLen = getHeaderLen();
  925|    246|		if (headerLen > sizeof(bgp_notification_message))
  ------------------
  |  Branch (925:7): [True: 238, False: 8]
  ------------------
  926|    238|		{
  927|    238|			return headerLen - sizeof(bgp_notification_message);
  928|    238|		}
  929|       |
  930|      8|		return 0;
  931|    246|	}
_ZNK4pcpp27BgpNotificationMessageLayer19getNotificationDataEv:
  934|    127|	{
  935|    127|		if (getNotificationDataLen() > 0)
  ------------------
  |  Branch (935:7): [True: 119, False: 8]
  ------------------
  936|    119|		{
  937|    119|			return m_Data + sizeof(bgp_notification_message);
  938|    119|		}
  939|       |
  940|      8|		return nullptr;
  941|    127|	}
_ZNK4pcpp27BgpNotificationMessageLayer30getNotificationDataAsHexStringEv:
  944|    127|	{
  945|    127|		uint8_t* notificationData = getNotificationData();
  946|    127|		if (notificationData == nullptr)
  ------------------
  |  Branch (946:7): [True: 8, False: 119]
  ------------------
  947|      8|		{
  948|      8|			return "";
  949|      8|		}
  950|       |
  951|    119|		return byteArrayToHexString(notificationData, getNotificationDataLen());
  952|    127|	}

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

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

_ZN4pcpp9DhcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   48|  18.9k|	    : Layer(data, dataLen, prevLayer, packet, DHCP)
   49|  18.9k|	{}
_ZNK4pcpp9DhcpLayer24getClientHardwareAddressEv:
   77|  3.41k|	{
   78|  3.41k|		dhcp_header* hdr = getDhcpHeader();
   79|  3.41k|		if (hdr != nullptr && hdr->hardwareType == 1 && hdr->hardwareAddressLength == 6)
  ------------------
  |  Branch (79:7): [True: 3.41k, False: 0]
  |  Branch (79:25): [True: 3.28k, False: 133]
  |  Branch (79:51): [True: 2.03k, False: 1.25k]
  ------------------
   80|  2.03k|			return MacAddress(hdr->clientHardwareAddress);
   81|       |
   82|  1.38k|		PCPP_LOG_DEBUG("Hardware type isn't Ethernet or hardware addr len != 6, returning MacAddress:Zero");
  ------------------
  |  |  426|  1.38k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|  1.38k|	do                                                                                                                 \
  |  |  |  |  414|  1.38k|	{                                                                                                                  \
  |  |  |  |  415|  1.38k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  1.38k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.38k|#define LOG_MODULE PacketLogModuleDhcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 1.38k]
  |  |  |  |  ------------------
  |  |  |  |  417|  1.38k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|  1.38k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 1.38k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   83|       |
   84|  1.38k|		return MacAddress::Zero;
   85|  3.41k|	}
_ZN4pcpp9DhcpLayer22computeCalculateFieldsEv:
   96|  3.41k|	{
   97|  3.41k|		dhcp_header* hdr = getDhcpHeader();
   98|       |
   99|  3.41k|		hdr->magicNumber = DhcpMagicNumber;
  100|       |
  101|  3.41k|		DhcpMessageType msgType = getMessageType();
  102|  3.41k|		switch (msgType)
  103|  3.41k|		{
  104|  1.51k|		case DHCP_DISCOVER:
  ------------------
  |  Branch (104:3): [True: 1.51k, False: 1.90k]
  ------------------
  105|  1.80k|		case DHCP_REQUEST:
  ------------------
  |  Branch (105:3): [True: 288, False: 3.12k]
  ------------------
  106|  1.80k|		case DHCP_DECLINE:
  ------------------
  |  Branch (106:3): [True: 0, False: 3.41k]
  ------------------
  107|  1.80k|		case DHCP_RELEASE:
  ------------------
  |  Branch (107:3): [True: 0, False: 3.41k]
  ------------------
  108|  1.81k|		case DHCP_INFORM:
  ------------------
  |  Branch (108:3): [True: 12, False: 3.40k]
  ------------------
  109|  2.71k|		case DHCP_UNKNOWN_MSG_TYPE:
  ------------------
  |  Branch (109:3): [True: 902, False: 2.51k]
  ------------------
  110|  2.71k|			hdr->opCode = DHCP_BOOTREQUEST;
  111|  2.71k|			break;
  112|    271|		case DHCP_OFFER:
  ------------------
  |  Branch (112:3): [True: 271, False: 3.14k]
  ------------------
  113|    359|		case DHCP_ACK:
  ------------------
  |  Branch (113:3): [True: 88, False: 3.32k]
  ------------------
  114|    428|		case DHCP_NAK:
  ------------------
  |  Branch (114:3): [True: 69, False: 3.34k]
  ------------------
  115|    428|			hdr->opCode = DHCP_BOOTREPLY;
  116|    428|			break;
  117|    270|		default:
  ------------------
  |  Branch (117:3): [True: 270, False: 3.14k]
  ------------------
  118|    270|			break;
  119|  3.41k|		}
  120|       |
  121|  3.41k|		hdr->hardwareType = 1;           // Ethernet
  122|  3.41k|		hdr->hardwareAddressLength = 6;  // MAC address length
  123|  3.41k|	}
_ZNK4pcpp9DhcpLayer8toStringEv:
  126|  6.83k|	{
  127|  6.83k|		std::string msgType = "Unknown";
  128|  6.83k|		switch (getMessageType())
  129|  6.83k|		{
  130|  3.03k|		case DHCP_DISCOVER:
  ------------------
  |  Branch (130:3): [True: 3.03k, False: 3.80k]
  ------------------
  131|  3.03k|		{
  132|  3.03k|			msgType = "Discover";
  133|  3.03k|			break;
  134|      0|		}
  135|    542|		case DHCP_OFFER:
  ------------------
  |  Branch (135:3): [True: 542, False: 6.29k]
  ------------------
  136|    542|		{
  137|    542|			msgType = "Offer";
  138|    542|			break;
  139|      0|		}
  140|    576|		case DHCP_REQUEST:
  ------------------
  |  Branch (140:3): [True: 576, False: 6.25k]
  ------------------
  141|    576|		{
  142|    576|			msgType = "Request";
  143|    576|			break;
  144|      0|		}
  145|      0|		case DHCP_DECLINE:
  ------------------
  |  Branch (145:3): [True: 0, False: 6.83k]
  ------------------
  146|      0|		{
  147|      0|			msgType = "Decline";
  148|      0|			break;
  149|      0|		}
  150|    176|		case DHCP_ACK:
  ------------------
  |  Branch (150:3): [True: 176, False: 6.65k]
  ------------------
  151|    176|		{
  152|    176|			msgType = "Acknowledge";
  153|    176|			break;
  154|      0|		}
  155|    138|		case DHCP_NAK:
  ------------------
  |  Branch (155:3): [True: 138, False: 6.69k]
  ------------------
  156|    138|		{
  157|    138|			msgType = "Negative Acknowledge";
  158|    138|			break;
  159|      0|		}
  160|      0|		case DHCP_RELEASE:
  ------------------
  |  Branch (160:3): [True: 0, False: 6.83k]
  ------------------
  161|      0|		{
  162|      0|			msgType = "Release";
  163|      0|			break;
  164|      0|		}
  165|     24|		case DHCP_INFORM:
  ------------------
  |  Branch (165:3): [True: 24, False: 6.81k]
  ------------------
  166|     24|		{
  167|     24|			msgType = "Inform";
  168|     24|			break;
  169|      0|		}
  170|  2.34k|		default:
  ------------------
  |  Branch (170:3): [True: 2.34k, False: 4.49k]
  ------------------
  171|  2.34k|			break;
  172|  6.83k|		}
  173|       |
  174|  6.83k|		return "DHCP layer (" + msgType + ")";
  175|  6.83k|	}
_ZNK4pcpp9DhcpLayer14getMessageTypeEv:
  178|  10.2k|	{
  179|  10.2k|		DhcpOption opt = getOptionData(DHCPOPT_DHCP_MESSAGE_TYPE);
  180|  10.2k|		if (opt.isNull())
  ------------------
  |  Branch (180:7): [True: 1.98k, False: 8.26k]
  ------------------
  181|  1.98k|			return DHCP_UNKNOWN_MSG_TYPE;
  182|       |
  183|  8.26k|		return (DhcpMessageType)opt.getValueAs<uint8_t>();
  184|  10.2k|	}
_ZNK4pcpp9DhcpLayer13getOptionDataENS_15DhcpOptionTypesE:
  204|  13.6k|	{
  205|  13.6k|		return m_OptionReader.getTLVRecord((uint8_t)option, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  206|  13.6k|	}
_ZNK4pcpp9DhcpLayer18getFirstOptionDataEv:
  209|  3.36k|	{
  210|  3.36k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  211|  3.36k|	}
_ZNK4pcpp9DhcpLayer17getNextOptionDataENS_10DhcpOptionE:
  214|   204k|	{
  215|   204k|		return m_OptionReader.getNextTLVRecord(dhcpOption, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  216|   204k|	}
_ZNK4pcpp9DhcpLayer15getOptionsCountEv:
  219|   210k|	{
  220|   210k|		return m_OptionReader.getTLVRecordCount(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  221|   210k|	}

_ZNK4pcpp12DhcpV6Option7getTypeEv:
   13|  3.46k|	{
   14|  3.46k|		if (m_Data == nullptr)
  ------------------
  |  Branch (14:7): [True: 0, False: 3.46k]
  ------------------
   15|      0|			return DhcpV6OptionType::DHCPV6_OPT_UNKNOWN;
   16|       |
   17|  3.46k|		uint16_t optionType = be16toh(m_Data->recordType);
   18|  3.46k|		if (optionType <= 62 && optionType != 10 && optionType != 35 && optionType != 57 && optionType != 58)
  ------------------
  |  Branch (18:7): [True: 2.24k, False: 1.22k]
  |  Branch (18:27): [True: 2.22k, False: 18]
  |  Branch (18:47): [True: 2.22k, False: 0]
  |  Branch (18:67): [True: 2.22k, False: 0]
  |  Branch (18:87): [True: 2.22k, False: 0]
  ------------------
   19|  2.22k|		{
   20|  2.22k|			return static_cast<DhcpV6OptionType>(optionType);
   21|  2.22k|		}
   22|  1.23k|		if (optionType == 65 || optionType == 66 || optionType == 68 || optionType == 79 || optionType == 112)
  ------------------
  |  Branch (22:7): [True: 34, False: 1.20k]
  |  Branch (22:27): [True: 0, False: 1.20k]
  |  Branch (22:47): [True: 222, False: 983]
  |  Branch (22:67): [True: 0, False: 983]
  |  Branch (22:87): [True: 188, False: 795]
  ------------------
   23|    444|		{
   24|    444|			return static_cast<DhcpV6OptionType>(optionType);
   25|    444|		}
   26|       |
   27|    795|		return DHCPV6_OPT_UNKNOWN;
   28|  1.23k|	}
_ZNK4pcpp12DhcpV6Option19getValueAsHexStringEv:
   31|    682|	{
   32|    682|		if (m_Data == nullptr)
  ------------------
  |  Branch (32:7): [True: 0, False: 682]
  ------------------
   33|      0|			return "";
   34|       |
   35|    682|		return byteArrayToHexString(m_Data->recordValue, getDataSize());
   36|    682|	}
_ZNK4pcpp12DhcpV6Option12getTotalSizeEv:
   39|  52.9k|	{
   40|  52.9k|		if (m_Data == nullptr)
  ------------------
  |  Branch (40:7): [True: 0, False: 52.9k]
  ------------------
   41|      0|			return 0;
   42|       |
   43|  52.9k|		return 2 * sizeof(uint16_t) + be16toh(m_Data->recordLen);
   44|  52.9k|	}
_ZNK4pcpp12DhcpV6Option11getDataSizeEv:
   47|    682|	{
   48|    682|		if (m_Data == nullptr)
  ------------------
  |  Branch (48:7): [True: 0, False: 682]
  ------------------
   49|      0|			return 0;
   50|       |
   51|    682|		return static_cast<size_t>(be16toh(m_Data->recordLen));
   52|    682|	}
_ZN4pcpp11DhcpV6LayerC2EPhmPNS_5LayerEPNS_6PacketE:
   72|  5.40k|	    : Layer(data, dataLen, prevLayer, packet, DHCPv6)
   73|  5.40k|	{}
_ZNK4pcpp11DhcpV6Layer14getMessageTypeEv:
   85|  2.10k|	{
   86|  2.10k|		uint8_t messageType = getDhcpHeader()->messageType;
   87|  2.10k|		if (messageType > 13)
  ------------------
  |  Branch (87:7): [True: 798, False: 1.31k]
  ------------------
   88|    798|		{
   89|    798|			return DHCPV6_UNKNOWN_MSG_TYPE;
   90|    798|		}
   91|       |
   92|  1.31k|		return static_cast<DhcpV6MessageType>(messageType);
   93|  2.10k|	}
_ZNK4pcpp11DhcpV6Layer22getMessageTypeAsStringEv:
   96|  2.10k|	{
   97|  2.10k|		DhcpV6MessageType messageType = getMessageType();
   98|  2.10k|		switch (messageType)
   99|  2.10k|		{
  100|    306|		case DHCPV6_SOLICIT:
  ------------------
  |  Branch (100:3): [True: 306, False: 1.80k]
  ------------------
  101|    306|			return "Solicit";
  102|    224|		case DHCPV6_ADVERTISE:
  ------------------
  |  Branch (102:3): [True: 224, False: 1.88k]
  ------------------
  103|    224|			return "Advertise";
  104|    202|		case DHCPV6_REQUEST:
  ------------------
  |  Branch (104:3): [True: 202, False: 1.90k]
  ------------------
  105|    202|			return "Request";
  106|     32|		case DHCPV6_CONFIRM:
  ------------------
  |  Branch (106:3): [True: 32, False: 2.07k]
  ------------------
  107|     32|			return "Confirm";
  108|     32|		case DHCPV6_RENEW:
  ------------------
  |  Branch (108:3): [True: 32, False: 2.07k]
  ------------------
  109|     32|			return "Renew";
  110|     84|		case DHCPV6_REBIND:
  ------------------
  |  Branch (110:3): [True: 84, False: 2.02k]
  ------------------
  111|     84|			return "Rebind";
  112|    106|		case DHCPV6_REPLY:
  ------------------
  |  Branch (112:3): [True: 106, False: 2.00k]
  ------------------
  113|    106|			return "Reply";
  114|      2|		case DHCPV6_RELEASE:
  ------------------
  |  Branch (114:3): [True: 2, False: 2.10k]
  ------------------
  115|      2|			return "Release";
  116|      4|		case DHCPV6_DECLINE:
  ------------------
  |  Branch (116:3): [True: 4, False: 2.10k]
  ------------------
  117|      4|			return "Decline";
  118|     36|		case DHCPV6_RECONFIGURE:
  ------------------
  |  Branch (118:3): [True: 36, False: 2.07k]
  ------------------
  119|     36|			return "Reconfigure";
  120|     26|		case DHCPV6_INFORMATION_REQUEST:
  ------------------
  |  Branch (120:3): [True: 26, False: 2.08k]
  ------------------
  121|     26|			return "Information-Request";
  122|      0|		case DHCPV6_RELAY_FORWARD:
  ------------------
  |  Branch (122:3): [True: 0, False: 2.10k]
  ------------------
  123|      0|			return "Relay-Forward";
  124|      0|		case DHCPV6_RELAY_REPLY:
  ------------------
  |  Branch (124:3): [True: 0, False: 2.10k]
  ------------------
  125|      0|			return "Relay-Reply";
  126|  1.05k|		default:
  ------------------
  |  Branch (126:3): [True: 1.05k, False: 1.05k]
  ------------------
  127|  1.05k|			return "Unknown";
  128|  2.10k|		}
  129|  2.10k|	}
_ZNK4pcpp11DhcpV6Layer16getTransactionIDEv:
  137|  1.05k|	{
  138|  1.05k|		dhcpv6_header* hdr = getDhcpHeader();
  139|  1.05k|		uint32_t result = hdr->transactionId1 << 16 | hdr->transactionId2 << 8 | hdr->transactionId3;
  140|  1.05k|		return result;
  141|  1.05k|	}
_ZNK4pcpp11DhcpV6Layer18getFirstOptionDataEv:
  152|    682|	{
  153|    682|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcpv6_header));
  154|    682|	}
_ZNK4pcpp11DhcpV6Layer17getNextOptionDataENS_12DhcpV6OptionE:
  157|  3.68k|	{
  158|  3.68k|		return m_OptionReader.getNextTLVRecord(dhcpv6Option, getOptionsBasePtr(),
  159|  3.68k|		                                       getHeaderLen() - sizeof(dhcpv6_header));
  160|  3.68k|	}
_ZNK4pcpp11DhcpV6Layer13getOptionDataENS_16DhcpV6OptionTypeE:
  163|    682|	{
  164|    682|		return m_OptionReader.getTLVRecord(static_cast<uint32_t>(option), getOptionsBasePtr(),
  165|    682|		                                   getHeaderLen() - sizeof(dhcpv6_header));
  166|    682|	}
_ZNK4pcpp11DhcpV6Layer14getOptionCountEv:
  169|  5.42k|	{
  170|  5.42k|		return m_OptionReader.getTLVRecordCount(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcpv6_header));
  171|  5.42k|	}
_ZNK4pcpp11DhcpV6Layer8toStringEv:
  269|  2.10k|	{
  270|  2.10k|		return "DHCPv6 Layer, " + getMessageTypeAsString() + " message";
  271|  2.10k|	}

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

_ZN4pcpp12IDnsResourceC2EPNS_8DnsLayerEm:
   12|   137k|	    : m_DnsLayer(dnsLayer), m_OffsetInLayer(offsetInLayer), m_NextResource(nullptr), m_ExternalRawData(nullptr)
   13|   137k|	{
   14|   137k|		char decodedName[4096];
   15|   137k|		m_NameLength = decodeName((const char*)getRawData(), decodedName);
   16|   137k|		if (m_NameLength > 0)
  ------------------
  |  Branch (16:7): [True: 117k, False: 19.4k]
  ------------------
   17|   117k|			m_DecodedName = decodedName;
   18|   137k|	}
_ZN4pcpp12IDnsResourceC2EPh:
   21|  34.2k|	    : m_DnsLayer(nullptr), m_OffsetInLayer(0), m_NextResource(nullptr), m_DecodedName(""), m_NameLength(0),
   22|  34.2k|	      m_ExternalRawData(emptyRawData)
   23|  34.2k|	{}
_ZNK4pcpp12IDnsResource10getRawDataEv:
   26|   508k|	{
   27|   508k|		if (m_DnsLayer == nullptr)
  ------------------
  |  Branch (27:7): [True: 278k, False: 229k]
  ------------------
   28|   278k|			return m_ExternalRawData;
   29|       |
   30|   229k|		return m_DnsLayer->m_Data + m_OffsetInLayer;
   31|   508k|	}
_ZN4pcpp12IDnsResource10decodeNameEPKcPci:
   52|   193k|	{
   53|   193k|		size_t encodedNameLength = 0;
   54|   193k|		size_t decodedNameLength = 0;
   55|   193k|		char* resultPtr = result;
   56|   193k|		resultPtr[0] = 0;
   57|       |
   58|   193k|		size_t curOffsetInLayer = (uint8_t*)encodedName - m_DnsLayer->m_Data;
   59|   193k|		if (curOffsetInLayer + 1 > m_DnsLayer->m_DataLen)
  ------------------
  |  Branch (59:7): [True: 2.21k, False: 191k]
  ------------------
   60|  2.21k|			return encodedNameLength;
   61|       |
   62|   191k|		if (iteration > 20)
  ------------------
  |  Branch (62:7): [True: 55, False: 191k]
  ------------------
   63|     55|		{
   64|     55|			return encodedNameLength;
   65|     55|		}
   66|       |
   67|   191k|		uint8_t wordLength = encodedName[0];
   68|       |
   69|       |		// A string to parse
   70|   399k|		while (wordLength != 0)
  ------------------
  |  Branch (70:10): [True: 296k, False: 102k]
  ------------------
   71|   296k|		{
   72|       |			// A pointer to another place in the packet
   73|   296k|			if ((wordLength & 0xc0) == 0xc0)
  ------------------
  |  Branch (73:8): [True: 74.0k, False: 222k]
  ------------------
   74|  74.0k|			{
   75|  74.0k|				if (curOffsetInLayer + 2 > m_DnsLayer->m_DataLen || encodedNameLength > 255)
  ------------------
  |  Branch (75:9): [True: 56, False: 74.0k]
  |  Branch (75:57): [True: 28, False: 73.9k]
  ------------------
   76|     84|					return cleanup(resultPtr, result, encodedNameLength);
   77|       |
   78|  73.9k|				uint16_t offsetInLayer =
   79|  73.9k|				    (wordLength & 0x3f) * 256 + (0xFF & encodedName[1]) + m_DnsLayer->m_OffsetAdjustment;
   80|  73.9k|				if (offsetInLayer < sizeof(dnshdr) || offsetInLayer >= m_DnsLayer->m_DataLen)
  ------------------
  |  Branch (80:9): [True: 0, False: 73.9k]
  |  Branch (80:43): [True: 18.0k, False: 55.9k]
  ------------------
   81|  18.0k|				{
   82|  18.0k|					PCPP_LOG_ERROR("DNS parsing error: name pointer is illegal");
  ------------------
  |  |  444|  18.0k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|  18.0k|	do                                                                                                                 \
  |  |  |  |  414|  18.0k|	{                                                                                                                  \
  |  |  |  |  415|  18.0k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  18.0k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  18.0k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 18.0k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|  18.0k|		{                                                                                                              \
  |  |  |  |  418|  18.0k|			auto ctx =                                                                                                 \
  |  |  |  |  419|  18.0k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  18.0k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|  18.0k|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|  18.0k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|  18.0k|		}                                                                                                              \
  |  |  |  |  423|  18.0k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 18.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   83|  18.0k|					return 0;
   84|  18.0k|				}
   85|       |
   86|  55.9k|				char tempResult[4096];
   87|  55.9k|				memset(tempResult, 0, sizeof(tempResult));
   88|  55.9k|				int i = 0;
   89|  55.9k|				decodeName((const char*)(m_DnsLayer->m_Data + offsetInLayer), tempResult, iteration + 1);
   90|  1.65M|				while (tempResult[i] != 0 && decodedNameLength < 255)
  ------------------
  |  Branch (90:12): [True: 1.60M, False: 54.2k]
  |  Branch (90:34): [True: 1.59M, False: 1.70k]
  ------------------
   91|  1.59M|				{
   92|  1.59M|					resultPtr[0] = tempResult[i++];
   93|  1.59M|					resultPtr++;
   94|  1.59M|					decodedNameLength++;
   95|  1.59M|				}
   96|       |
   97|  55.9k|				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|  55.9k|				return encodedNameLength + sizeof(uint16_t);
  101|  73.9k|			}
  102|   222k|			else
  103|   222k|			{
  104|       |				// return if next word would be outside of the DNS layer or overflow the buffer behind resultPtr
  105|   222k|				if (curOffsetInLayer + wordLength + 1 > m_DnsLayer->m_DataLen || encodedNameLength + wordLength > 255)
  ------------------
  |  Branch (105:9): [True: 4.99k, False: 217k]
  |  Branch (105:70): [True: 9.63k, False: 208k]
  ------------------
  106|  14.6k|				{
  107|       |					// add the last '\0' to the decoded string
  108|  14.6k|					if (encodedNameLength == 256)
  ------------------
  |  Branch (108:10): [True: 49, False: 14.5k]
  ------------------
  109|     49|					{
  110|     49|						resultPtr--;
  111|       |						// cppcheck-suppress unreadVariable
  112|     49|						decodedNameLength--;
  113|     49|					}
  114|  14.5k|					else
  115|  14.5k|					{
  116|  14.5k|						encodedNameLength++;
  117|  14.5k|					}
  118|       |
  119|  14.6k|					resultPtr[0] = 0;
  120|  14.6k|					return encodedNameLength;
  121|  14.6k|				}
  122|       |
  123|   208k|				memcpy(resultPtr, encodedName + 1, wordLength);
  124|   208k|				resultPtr += wordLength;
  125|   208k|				resultPtr[0] = '.';
  126|   208k|				resultPtr++;
  127|   208k|				decodedNameLength += wordLength + 1;
  128|   208k|				encodedName += wordLength + 1;
  129|   208k|				encodedNameLength += wordLength + 1;
  130|       |
  131|   208k|				curOffsetInLayer = (uint8_t*)encodedName - m_DnsLayer->m_Data;
  132|   208k|				if (curOffsetInLayer + 1 > m_DnsLayer->m_DataLen)
  ------------------
  |  Branch (132:9): [True: 37, False: 208k]
  ------------------
  133|     37|				{
  134|       |					// add the last '\0' to the decoded string
  135|     37|					if (encodedNameLength == 256)
  ------------------
  |  Branch (135:10): [True: 3, False: 34]
  ------------------
  136|      3|					{
  137|       |						// cppcheck-suppress unreadVariable
  138|      3|						decodedNameLength--;
  139|      3|						resultPtr--;
  140|      3|					}
  141|     34|					else
  142|     34|					{
  143|     34|						encodedNameLength++;
  144|     34|					}
  145|       |
  146|     37|					resultPtr[0] = 0;
  147|     37|					return encodedNameLength;
  148|     37|				}
  149|       |
  150|   208k|				wordLength = encodedName[0];
  151|   208k|			}
  152|   296k|		}
  153|       |
  154|   102k|		return cleanup(resultPtr, result, encodedNameLength);
  155|   191k|	}
_ZN4pcpp12IDnsResource10encodeNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPcRm:
  158|  34.2k|	{
  159|  34.2k|		resultLen = 0;
  160|  34.2k|		std::stringstream strstream(decodedName);
  161|  34.2k|		std::string word;
  162|   128k|		while (getline(strstream, word, '.'))
  ------------------
  |  Branch (162:10): [True: 94.0k, False: 34.2k]
  ------------------
  163|  94.0k|		{
  164|       |			// pointer to a different hostname in the packet
  165|  94.0k|			if (word[0] == '#')
  ------------------
  |  Branch (165:8): [True: 0, False: 94.0k]
  ------------------
  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 << "'");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423: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|  94.0k|			result[0] = word.length();
  187|  94.0k|			result++;
  188|  94.0k|			memcpy(result, word.c_str(), word.length());
  189|  94.0k|			result += word.length();
  190|  94.0k|			resultLen += word.length() + 1;
  191|  94.0k|		}
  192|       |
  193|  34.2k|		result[0] = 0;
  194|  34.2k|		resultLen++;
  195|  34.2k|	}
_ZNK4pcpp12IDnsResource10getDnsTypeEv:
  198|  25.6k|	{
  199|  25.6k|		uint16_t dnsType = *reinterpret_cast<uint16_t*>(getRawData() + m_NameLength);
  200|       |		return static_cast<DnsType>(be16toh(dnsType));
  201|  25.6k|	}
_ZN4pcpp12IDnsResource10setDnsTypeENS_7DnsTypeE:
  204|  34.2k|	{
  205|       |		uint16_t newTypeAsInt = htobe16((uint16_t)newType);
  206|  34.2k|		memcpy(getRawData() + m_NameLength, &newTypeAsInt, sizeof(uint16_t));
  207|  34.2k|	}
_ZN4pcpp12IDnsResource11setDnsClassENS_8DnsClassE:
  216|  34.2k|	{
  217|       |		uint16_t newClassAsInt = htobe16((uint16_t)newClass);
  218|  34.2k|		memcpy(getRawData() + m_NameLength + sizeof(uint16_t), &newClassAsInt, sizeof(uint16_t));
  219|  34.2k|	}
_ZN4pcpp12IDnsResource7setNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  222|  34.2k|	{
  223|  34.2k|		char encodedName[4096];
  224|  34.2k|		size_t encodedNameLen = 0;
  225|  34.2k|		encodeName(newName, encodedName, encodedNameLen);
  226|  34.2k|		if (m_DnsLayer != nullptr)
  ------------------
  |  Branch (226:7): [True: 0, False: 34.2k]
  ------------------
  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");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423: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");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  241|      0|					return false;
  242|      0|				}
  243|      0|			}
  244|      0|		}
  245|  34.2k|		else
  246|  34.2k|		{
  247|  34.2k|			size_t size = getSize();
  248|  34.2k|			char* tempData = new char[size];
  249|  34.2k|			memcpy(tempData, m_ExternalRawData, size);
  250|  34.2k|			memcpy(m_ExternalRawData + encodedNameLen, tempData, size);
  251|  34.2k|			delete[] tempData;
  252|  34.2k|		}
  253|       |
  254|  34.2k|		memcpy(getRawData(), encodedName, encodedNameLen);
  255|  34.2k|		m_NameLength = encodedNameLen;
  256|  34.2k|		m_DecodedName = newName;
  257|       |
  258|  34.2k|		return true;
  259|  34.2k|	}
_ZN4pcpp12IDnsResource11setDnsLayerEPNS_8DnsLayerEm:
  262|  30.8k|	{
  263|  30.8k|		memcpy(dnsLayer->m_Data + offsetInLayer, m_ExternalRawData, getSize());
  264|  30.8k|		m_DnsLayer = dnsLayer;
  265|  30.8k|		m_OffsetInLayer = offsetInLayer;
  266|  30.8k|		m_ExternalRawData = nullptr;
  267|  30.8k|	}
_ZN4pcpp11DnsResource6setTTLEj:
  276|  25.6k|	{
  277|       |		newTTL = htobe32(newTTL);
  278|  25.6k|		memcpy(getRawData() + m_NameLength + 2 * sizeof(uint16_t), &newTTL, sizeof(uint32_t));
  279|  25.6k|	}
_ZNK4pcpp11DnsResource13getDataLengthEv:
  282|   166k|	{
  283|       |
  284|   166k|		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|   166k|		if (m_DnsLayer && m_OffsetInLayer + sizeToRead >= m_DnsLayer->m_DataLen - 1)
  ------------------
  |  Branch (288:7): [True: 93.8k, False: 72.9k]
  |  Branch (288:21): [True: 9.00k, False: 84.8k]
  ------------------
  289|  9.00k|		{
  290|  9.00k|			return 0;
  291|  9.00k|		}
  292|       |
  293|   157k|		uint16_t dataLength = *reinterpret_cast<uint16_t*>(getRawData() + sizeToRead);
  294|       |		return be16toh(dataLength);
  295|   166k|	}
_ZN4pcpp11DnsResource7setDataEPNS_16IDnsResourceDataE:
  342|  25.6k|	{
  343|       |		// convert data to byte array according to the DNS type
  344|  25.6k|		size_t dataLength = 0;
  345|  25.6k|		uint8_t dataAsByteArr[4096];
  346|       |
  347|  25.6k|		if (data == nullptr)
  ------------------
  |  Branch (347:7): [True: 0, False: 25.6k]
  ------------------
  348|      0|		{
  349|      0|			PCPP_LOG_ERROR("Given data is nullptr");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  350|      0|			return false;
  351|      0|		}
  352|       |
  353|  25.6k|		switch (getDnsType())
  354|  25.6k|		{
  355|  17.1k|		case DNS_TYPE_A:
  ------------------
  |  Branch (355:3): [True: 17.1k, False: 8.55k]
  ------------------
  356|  17.1k|		{
  357|  17.1k|			if (!data->isTypeOf<IPv4DnsResourceData>())
  ------------------
  |  Branch (357:8): [True: 0, False: 17.1k]
  ------------------
  358|      0|			{
  359|      0|				PCPP_LOG_ERROR("DNS record is of type A but given data isn't of type IPv4DnsResourceData");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  360|      0|				return false;
  361|      0|			}
  362|  17.1k|			break;
  363|  17.1k|		}
  364|       |
  365|  17.1k|		case DNS_TYPE_AAAA:
  ------------------
  |  Branch (365:3): [True: 0, False: 25.6k]
  ------------------
  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");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423: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: 25.6k]
  ------------------
  376|      0|		case DNS_TYPE_CNAME:
  ------------------
  |  Branch (376:3): [True: 0, False: 25.6k]
  ------------------
  377|      0|		case DNS_TYPE_DNAM:
  ------------------
  |  Branch (377:3): [True: 0, False: 25.6k]
  ------------------
  378|      0|		case DNS_TYPE_PTR:
  ------------------
  |  Branch (378:3): [True: 0, False: 25.6k]
  ------------------
  379|      0|		{
  380|      0|			if (!data->isTypeOf<StringDnsResourceData>())
  ------------------
  |  Branch (380:8): [True: 0, False: 0]
  ------------------
  381|      0|			{
  382|      0|				PCPP_LOG_ERROR(
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423: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: 25.6k]
  ------------------
  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");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  394|      0|				return false;
  395|      0|			}
  396|      0|			break;
  397|      0|		}
  398|       |
  399|  8.55k|		default:
  ------------------
  |  Branch (399:3): [True: 8.55k, False: 17.1k]
  ------------------
  400|  8.55k|		{
  401|       |			// do nothing
  402|  8.55k|		}
  403|  25.6k|		}
  404|       |
  405|       |		// convert the IDnsResourceData to byte array
  406|  25.6k|		if (!data->toByteArr(dataAsByteArr, dataLength, this))
  ------------------
  |  Branch (406:7): [True: 0, False: 25.6k]
  ------------------
  407|      0|		{
  408|      0|			PCPP_LOG_ERROR("Cannot convert DNS resource data to byte array, data is probably invalid");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  409|      0|			return false;
  410|      0|		}
  411|       |
  412|  25.6k|		size_t dataLengthOffset = m_NameLength + (2 * sizeof(uint16_t)) + sizeof(uint32_t);
  413|  25.6k|		size_t dataOffset = dataLengthOffset + sizeof(uint16_t);
  414|       |
  415|  25.6k|		if (m_DnsLayer != nullptr)
  ------------------
  |  Branch (415:7): [True: 0, False: 25.6k]
  ------------------
  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");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423: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");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  431|      0|					return false;
  432|      0|				}
  433|      0|			}
  434|      0|		}
  435|       |
  436|       |		// write data to resource
  437|  25.6k|		memcpy(getRawData() + dataOffset, dataAsByteArr, dataLength);
  438|       |		// update data length in resource
  439|  25.6k|		dataLength = htobe16((uint16_t)dataLength);
  440|  25.6k|		memcpy(getRawData() + dataLengthOffset, &dataLength, sizeof(uint16_t));
  441|       |
  442|  25.6k|		return true;
  443|  25.6k|	}
_ZN4pcpp11DnsResource17setCustomDnsClassEt:
  452|  7.74k|	{
  453|  7.74k|		memcpy(getRawData() + m_NameLength + sizeof(uint16_t), &customValue, sizeof(uint16_t));
  454|  7.74k|	}
DnsResource.cpp:_ZN4pcppL7cleanupEPcS0_m:
   34|   102k|	{
   35|       |		// remove the last "."
   36|   102k|		if (resultPtr > result)
  ------------------
  |  Branch (36:7): [True: 64.1k, False: 38.1k]
  ------------------
   37|  64.1k|		{
   38|  64.1k|			result[resultPtr - result - 1] = 0;
   39|  64.1k|		}
   40|       |
   41|   102k|		if (resultPtr - result < 256)
  ------------------
  |  Branch (41:7): [True: 102k, False: 36]
  ------------------
   42|   102k|		{
   43|       |			// add the last '\0' to encodedNameLength
   44|   102k|			resultPtr[0] = 0;
   45|   102k|			encodedNameLength++;
   46|   102k|		}
   47|       |
   48|   102k|		return encodedNameLength;
   49|   102k|	}

_ZNK4pcpp19IPv4DnsResourceData9toByteArrEPhRmPNS_12IDnsResourceE:
   67|  17.1k|	{
   68|  17.1k|		arrLength = sizeof(uint32_t);
   69|  17.1k|		memcpy(arr, m_Data.toBytes(), sizeof(uint32_t));
   70|  17.1k|		return true;
   71|  17.1k|	}
_ZN4pcpp22GenericDnsResourceDataC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  152|  8.55k|	{
  153|  8.55k|		m_Data = nullptr;
  154|  8.55k|		uint8_t tempDataArr[2048];
  155|  8.55k|		m_DataLen = hexStringToByteArray(dataAsHexString, tempDataArr, 2048);
  156|  8.55k|		if (m_DataLen != 0)
  ------------------
  |  Branch (156:7): [True: 8.55k, False: 0]
  ------------------
  157|  8.55k|		{
  158|  8.55k|			m_Data = new uint8_t[m_DataLen];
  159|  8.55k|			memcpy(m_Data, tempDataArr, m_DataLen);
  160|  8.55k|		}
  161|  8.55k|	}
_ZNK4pcpp22GenericDnsResourceData9toByteArrEPhRmPNS_12IDnsResourceE:
  209|  8.55k|	{
  210|  8.55k|		if (m_DataLen == 0 || m_Data == nullptr)
  ------------------
  |  Branch (210:7): [True: 0, False: 8.55k]
  |  Branch (210:25): [True: 0, False: 8.55k]
  ------------------
  211|      0|		{
  212|      0|			PCPP_LOG_ERROR("Input data is null or illegal" << "|m_DataLen:" << m_DataLen);
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  213|      0|			return false;
  214|      0|		}
  215|       |
  216|  8.55k|		arrLength = m_DataLen;
  217|  8.55k|		memcpy(arr, m_Data, m_DataLen);
  218|  8.55k|		return true;
  219|  8.55k|	}

_ZN4pcpp9DoIpLayer11isDataValidEPhm:
  203|     35|	{
  204|     35|		if (data == nullptr || dataLen < DOIP_HEADER_LEN)
  ------------------
  |  Branch (204:7): [True: 0, False: 35]
  |  Branch (204:26): [True: 0, False: 35]
  ------------------
  205|      0|			return false;
  206|       |
  207|     35|		auto* doipHeader = reinterpret_cast<doiphdr*>(data);
  208|     35|		const uint8_t version = doipHeader->protocolVersion;
  209|     35|		const uint8_t inVersion = doipHeader->invertProtocolVersion;
  210|     35|		const uint16_t payloadTypeRaw = doipHeader->payloadType;
  211|     35|		const uint32_t lengthRaw = doipHeader->payloadLength;
  212|       |
  213|     35|		if (!isPayloadTypeValid(be16toh(payloadTypeRaw)))
  ------------------
  |  Branch (213:7): [True: 35, False: 0]
  ------------------
  214|     35|			return false;
  215|       |		// if payload type is validated, we ensure passing a valid type to isProtocolVersionValid()
  216|      0|		const DoIpPayloadTypes payloadType = static_cast<DoIpPayloadTypes>(be16toh(payloadTypeRaw));
  217|      0|		if (!isProtocolVersionValid(version, inVersion, payloadType))
  ------------------
  |  Branch (217:7): [True: 0, False: 0]
  ------------------
  218|      0|			return false;
  219|       |
  220|      0|		if (!isPayloadLengthValid(be32toh(lengthRaw), dataLen))
  ------------------
  |  Branch (220:7): [True: 0, False: 0]
  ------------------
  221|      0|			return false;
  222|       |
  223|      0|		return true;
  224|      0|	}

_ZN4pcpp12EthDot3Layer14parseNextLayerEv:
   23|  9.22k|	{
   24|  9.22k|		if (m_DataLen <= sizeof(ether_dot3_header))
  ------------------
  |  Branch (24:7): [True: 0, False: 9.22k]
  ------------------
   25|      0|			return;
   26|       |
   27|  9.22k|		uint8_t* payload = m_Data + sizeof(ether_dot3_header);
   28|  9.22k|		size_t payloadLen = m_DataLen - sizeof(ether_dot3_header);
   29|       |
   30|  9.22k|		tryConstructNextLayerWithFallback<LLCLayer, PayloadLayer>(payload, payloadLen);
   31|  9.22k|	}
_ZNK4pcpp12EthDot3Layer8toStringEv:
   34|  3.98k|	{
   35|  3.98k|		return "IEEE 802.3 Ethernet, Src: " + getSourceMac().toString() + ", Dst: " + getDestMac().toString();
   36|  3.98k|	}
_ZN4pcpp12EthDot3Layer11isDataValidEPKhm:
   39|  9.30k|	{
   40|  9.30k|		if (dataLen >= sizeof(ether_dot3_header))
  ------------------
  |  Branch (40:7): [True: 9.24k, False: 66]
  ------------------
   41|  9.24k|		{
   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|  9.24k|			return be16toh(*reinterpret_cast<const uint16_t*>(data + 12)) <= static_cast<uint16_t>(0x05DC);
   49|  9.24k|		}
   50|     66|		else
   51|     66|		{
   52|     66|			return false;
   53|     66|		}
   54|  9.30k|	}

_ZN4pcpp8EthLayer14parseNextLayerEv:
   29|   878k|	{
   30|   878k|		if (m_DataLen <= sizeof(ether_header))
  ------------------
  |  Branch (30:7): [True: 256, False: 878k]
  ------------------
   31|    256|			return;
   32|       |
   33|   878k|		ether_header* hdr = getEthHeader();
   34|   878k|		uint8_t* payload = m_Data + sizeof(ether_header);
   35|   878k|		size_t payloadLen = m_DataLen - sizeof(ether_header);
   36|       |
   37|   878k|		switch (be16toh(hdr->etherType))
  ------------------
  |  Branch (37:11): [True: 875k, False: 2.90k]
  ------------------
   38|   878k|		{
   39|   667k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   33|   667k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (39:3): [True: 667k, False: 210k]
  ------------------
   40|   667k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   41|   667k|			break;
   42|   144k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   49|   144k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (42:3): [True: 144k, False: 733k]
  ------------------
   43|   144k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   44|   144k|			break;
   45|  11.1k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   35|  11.1k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (45:3): [True: 11.1k, False: 867k]
  ------------------
   46|  11.1k|			tryConstructNextLayerWithFallback<ArpLayer, PayloadLayer>(payload, payloadLen);
   47|  11.1k|			break;
   48|  29.1k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   45|  29.1k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (48:3): [True: 29.1k, False: 849k]
  ------------------
   49|  39.3k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   63|  39.3k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (49:3): [True: 10.2k, False: 868k]
  ------------------
   50|  39.3k|			tryConstructNextLayerWithFallback<VlanLayer, PayloadLayer>(payload, payloadLen);
   51|  39.3k|			break;
   52|  3.56k|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   55|  3.56k|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (52:3): [True: 3.56k, False: 874k]
  ------------------
   53|  3.56k|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   54|  3.56k|			break;
   55|  3.10k|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   53|  3.10k|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (55:3): [True: 3.10k, False: 875k]
  ------------------
   56|  3.10k|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   57|  3.10k|			break;
   58|  5.56k|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   57|  5.56k|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (58:3): [True: 5.56k, False: 872k]
  ------------------
   59|  5.56k|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
   60|  5.56k|			break;
   61|    342|		case PCPP_ETHERTYPE_WAKE_ON_LAN:
  ------------------
  |  |   65|    342|#define PCPP_ETHERTYPE_WAKE_ON_LAN 0x0842
  ------------------
  |  Branch (61:3): [True: 342, False: 878k]
  ------------------
   62|    342|			tryConstructNextLayerWithFallback<WakeOnLanLayer, PayloadLayer>(payload, payloadLen);
   63|    342|			break;
   64|   878k|		}
   65|       |
   66|       |		// If no next layer was constructed, assume it's a payload layer
   67|   878k|		if (!hasNextLayer())
  ------------------
  |  Branch (67:7): [True: 2.90k, False: 875k]
  ------------------
   68|  2.90k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   69|   878k|	}
_ZN4pcpp8EthLayer22computeCalculateFieldsEv:
   72|   168k|	{
   73|   168k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (73:7): [True: 128, False: 168k]
  ------------------
   74|    128|			return;
   75|       |
   76|   168k|		switch (m_NextLayer->getProtocol())
   77|   168k|		{
   78|   127k|		case IPv4:
  ------------------
  |  Branch (78:3): [True: 127k, False: 40.8k]
  ------------------
   79|   127k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_IP);
   80|   127k|			break;
   81|  29.0k|		case IPv6:
  ------------------
  |  Branch (81:3): [True: 29.0k, False: 139k]
  ------------------
   82|  29.0k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_IPV6);
   83|  29.0k|			break;
   84|  3.01k|		case ARP:
  ------------------
  |  Branch (84:3): [True: 3.01k, False: 165k]
  ------------------
   85|  3.01k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_ARP);
   86|  3.01k|			break;
   87|  5.41k|		case VLAN:
  ------------------
  |  Branch (87:3): [True: 5.41k, False: 162k]
  ------------------
   88|  5.41k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_VLAN);
   89|  5.41k|			break;
   90|  3.39k|		default:
  ------------------
  |  Branch (90:3): [True: 3.39k, False: 164k]
  ------------------
   91|  3.39k|			return;
   92|   168k|		}
   93|   168k|	}
_ZNK4pcpp8EthLayer8toStringEv:
   96|   336k|	{
   97|   336k|		return "Ethernet II Layer, Src: " + getSourceMac().toString() + ", Dst: " + getDestMac().toString();
   98|   336k|	}
_ZN4pcpp8EthLayer11isDataValidEPKhm:
  101|   888k|	{
  102|   888k|		if (dataLen >= sizeof(ether_header))
  ------------------
  |  Branch (102:7): [True: 888k, False: 73]
  ------------------
  103|   888k|		{
  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|   888k|			return be16toh(*reinterpret_cast<const uint16_t*>(data + 12)) >= static_cast<uint16_t>(0x0600);
  112|   888k|		}
  113|     73|		else
  114|     73|		{
  115|     73|			return false;
  116|     73|		}
  117|   888k|	}

_ZNK4pcpp15FtpRequestLayer16getCommandStringEv:
   28|  2.69k|	{
   29|  2.69k|		return getCommandInternal();
   30|  2.69k|	}
_ZNK4pcpp15FtpRequestLayer16getCommandOptionEb:
   38|  2.69k|	{
   39|  2.69k|		if (removeEscapeCharacters)
  ------------------
  |  Branch (39:7): [True: 1.34k, False: 1.34k]
  ------------------
   40|  1.34k|		{
   41|  1.34k|			std::stringstream ss;
   42|  1.34k|			std::string field = getCommandOptionInternal();
   43|   331k|			for (size_t idx = 0; idx < field.size(); ++idx)
  ------------------
  |  Branch (43:25): [True: 330k, False: 1.34k]
  ------------------
   44|   330k|			{
   45|   330k|				if (int(field.c_str()[idx]) < 127 && int(field.c_str()[idx]) > 31)  // From SPACE to ~
  ------------------
  |  Branch (45:9): [True: 329k, False: 1.05k]
  |  Branch (45:42): [True: 136k, False: 192k]
  ------------------
   46|   136k|					ss << field.c_str()[idx];
   47|   330k|			}
   48|  1.34k|			return ss.str();
   49|  1.34k|		}
   50|  1.34k|		return getCommandOptionInternal();
   51|  2.69k|	}
_ZNK4pcpp15FtpRequestLayer8toStringEv:
  217|  2.69k|	{
  218|  2.69k|		return "FTP Request: " + getCommandString();
  219|  2.69k|	}
_ZNK4pcpp16FtpResponseLayer13getStatusCodeEv:
  230|  2.45k|	{
  231|  2.45k|		return static_cast<FtpStatusCode>(atoi(getCommandInternal().c_str()));
  232|  2.45k|	}
_ZNK4pcpp16FtpResponseLayer19getStatusCodeStringEv:
  235|  4.91k|	{
  236|  4.91k|		return getCommandInternal();
  237|  4.91k|	}
_ZNK4pcpp16FtpResponseLayer15getStatusOptionEb:
  245|  4.91k|	{
  246|  4.91k|		if (removeEscapeCharacters)
  ------------------
  |  Branch (246:7): [True: 2.45k, False: 2.45k]
  ------------------
  247|  2.45k|		{
  248|  2.45k|			std::stringstream ss;
  249|  2.45k|			std::string field = getCommandOptionInternal();
  250|   331k|			for (size_t idx = 0; idx < field.size(); ++idx)
  ------------------
  |  Branch (250:25): [True: 328k, False: 2.45k]
  ------------------
  251|   328k|			{
  252|   328k|				if (int(field.c_str()[idx]) < 127 && int(field.c_str()[idx]) > 31)  // From SPACE to ~
  ------------------
  |  Branch (252:9): [True: 327k, False: 1.05k]
  |  Branch (252:42): [True: 160k, False: 167k]
  ------------------
  253|   160k|					ss << field.c_str()[idx];
  254|   328k|			}
  255|  2.45k|			return ss.str();
  256|  2.45k|		}
  257|  2.45k|		return getCommandOptionInternal();
  258|  4.91k|	}
_ZNK4pcpp16FtpResponseLayer8toStringEv:
  382|  4.91k|	{
  383|  4.91k|		return "FTP Response: " + getStatusCodeString();
  384|  4.91k|	}
_ZNK4pcpp12FtpDataLayer8toStringEv:
  387|    514|	{
  388|    514|		return "FTP Data";
  389|    514|	}

_ZN4pcpp8GreLayer13getGREVersionEPhm:
   24|  36.5k|	{
   25|  36.5k|		if (greDataLen < sizeof(gre_basic_header))
  ------------------
  |  Branch (25:7): [True: 0, False: 36.5k]
  ------------------
   26|      0|			return UnknownProtocol;
   27|       |
   28|  36.5k|		uint8_t version = *(greData + 1);
   29|  36.5k|		version &= 0x07;
   30|  36.5k|		if (version == 0)
  ------------------
  |  Branch (30:7): [True: 15.8k, False: 20.7k]
  ------------------
   31|  15.8k|			return GREv0;
   32|  20.7k|		else if (version == 1)
  ------------------
  |  Branch (32:12): [True: 20.5k, False: 141]
  ------------------
   33|  20.5k|			return GREv1;
   34|    141|		else
   35|    141|			return UnknownProtocol;
   36|  36.5k|	}
_ZNK4pcpp8GreLayer13getFieldValueENS0_8GreFieldEb:
   39|  15.7k|	{
   40|  15.7k|		uint8_t* ptr = m_Data + sizeof(gre_basic_header);
   41|       |
   42|  15.7k|		auto* header = reinterpret_cast<gre_basic_header*>(m_Data);
   43|       |
   44|  15.7k|		constexpr int numGreField = 4;
   45|  31.8k|		for (int curFieldAsInt = static_cast<int>(GreChecksumOrRouting); curFieldAsInt < numGreField; ++curFieldAsInt)
  ------------------
  |  Branch (45:68): [True: 31.8k, False: 0]
  ------------------
   46|  31.8k|		{
   47|  31.8k|			const GreField curField = static_cast<GreField>(curFieldAsInt);
   48|  31.8k|			bool curFieldExists = false;
   49|       |
   50|  31.8k|			uint8_t* origPtr = ptr;
   51|       |
   52|  31.8k|			switch (curField)
   53|  31.8k|			{
   54|  15.7k|			case GreChecksumOrRouting:
  ------------------
  |  Branch (54:4): [True: 15.7k, False: 16.0k]
  ------------------
   55|  15.7k|				if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (55:9): [True: 11.9k, False: 3.85k]
  |  Branch (55:37): [True: 1.42k, False: 2.42k]
  ------------------
   56|  13.3k|				{
   57|  13.3k|					curFieldExists = true;
   58|  13.3k|					ptr += sizeof(uint32_t);
   59|  13.3k|				}
   60|  15.7k|				break;
   61|  8.63k|			case GreKey:
  ------------------
  |  Branch (61:4): [True: 8.63k, False: 23.1k]
  ------------------
   62|  8.63k|				if (header->keyBit == 1)
  ------------------
  |  Branch (62:9): [True: 6.95k, False: 1.67k]
  ------------------
   63|  6.95k|				{
   64|  6.95k|					curFieldExists = true;
   65|  6.95k|					ptr += sizeof(uint32_t);
   66|  6.95k|				}
   67|  8.63k|				break;
   68|  6.38k|			case GreSeq:
  ------------------
  |  Branch (68:4): [True: 6.38k, False: 25.4k]
  ------------------
   69|  6.38k|				if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (69:9): [True: 6.38k, False: 4]
  ------------------
   70|  6.38k|				{
   71|  6.38k|					curFieldExists = true;
   72|  6.38k|					ptr += sizeof(uint32_t);
   73|  6.38k|				}
   74|  6.38k|				break;
   75|  1.03k|			case GreAck:
  ------------------
  |  Branch (75:4): [True: 1.03k, False: 30.7k]
  ------------------
   76|  1.03k|				if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (76:9): [True: 1.03k, False: 0]
  ------------------
   77|  1.03k|				{
   78|  1.03k|					curFieldExists = true;
   79|  1.03k|					ptr += sizeof(uint32_t);
   80|  1.03k|				}
   81|  1.03k|				break;
   82|      0|			default:  // shouldn't get there
  ------------------
  |  Branch (82:4): [True: 0, False: 31.8k]
  ------------------
   83|      0|				return nullptr;
   84|  31.8k|			}
   85|       |
   86|  31.8k|			if (field == curField)
  ------------------
  |  Branch (86:8): [True: 15.7k, False: 16.0k]
  ------------------
   87|  15.7k|			{
   88|       |				// If the packet is truncated/malformed it might be overflow packet length
   89|  15.7k|				if ((curFieldExists && static_cast<size_t>(std::abs(ptr - m_Data)) <= m_DataLen) ||
  ------------------
  |  Branch (89:10): [True: 15.7k, False: 0]
  |  Branch (89:28): [True: 15.3k, False: 444]
  ------------------
   90|    444|				    returnOffsetEvenIfFieldMissing)
  ------------------
  |  Branch (90:9): [True: 0, False: 444]
  ------------------
   91|  15.3k|					return origPtr;
   92|       |
   93|    444|				return nullptr;
   94|  15.7k|			}
   95|  31.8k|		}  // for
   96|       |
   97|      0|		return nullptr;
   98|  15.7k|	}
_ZN4pcpp8GreLayer27computeCalculateFieldsInnerEv:
  101|  5.94k|	{
  102|  5.94k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  103|  5.94k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (103:7): [True: 4.67k, False: 1.26k]
  ------------------
  104|  4.67k|		{
  105|  4.67k|			switch (m_NextLayer->getProtocol())
  106|  4.67k|			{
  107|     22|			case IPv4:
  ------------------
  |  Branch (107:4): [True: 22, False: 4.65k]
  ------------------
  108|     22|				header->protocol = htobe16(PCPP_ETHERTYPE_IP);
  109|     22|				break;
  110|      0|			case IPv6:
  ------------------
  |  Branch (110:4): [True: 0, False: 4.67k]
  ------------------
  111|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_IPV6);
  112|      0|				break;
  113|    866|			case VLAN:
  ------------------
  |  Branch (113:4): [True: 866, False: 3.81k]
  ------------------
  114|    866|				header->protocol = htobe16(PCPP_ETHERTYPE_VLAN);
  115|    866|				break;
  116|      0|			case MPLS:
  ------------------
  |  Branch (116:4): [True: 0, False: 4.67k]
  ------------------
  117|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_MPLS);
  118|      0|				break;
  119|    690|			case PPP_PPTP:
  ------------------
  |  Branch (119:4): [True: 690, False: 3.98k]
  ------------------
  120|    690|				header->protocol = htobe16(PCPP_ETHERTYPE_PPP);
  121|    690|				break;
  122|      0|			case Ethernet:
  ------------------
  |  Branch (122:4): [True: 0, False: 4.67k]
  ------------------
  123|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_ETHBRIDGE);
  124|      0|				break;
  125|  3.10k|			default:
  ------------------
  |  Branch (125:4): [True: 3.10k, False: 1.57k]
  ------------------
  126|  3.10k|				break;
  127|  4.67k|			}
  128|  4.67k|		}
  129|  5.94k|	}
_ZNK4pcpp8GreLayer17getSequenceNumberERj:
  132|  5.94k|	{
  133|  5.94k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  134|       |
  135|  5.94k|		if (header->sequenceNumBit == 0)
  ------------------
  |  Branch (135:7): [True: 592, False: 5.35k]
  ------------------
  136|    592|			return false;
  137|       |
  138|  5.35k|		uint32_t* val = (uint32_t*)getFieldValue(GreSeq, false);
  139|  5.35k|		if (val == nullptr)
  ------------------
  |  Branch (139:7): [True: 443, False: 4.91k]
  ------------------
  140|    443|			return false;
  141|       |
  142|  4.91k|		seqNumber = be32toh(*val);
  143|  4.91k|		return true;
  144|  5.35k|	}
_ZN4pcpp8GreLayer14parseNextLayerEv:
  198|  36.4k|	{
  199|  36.4k|		size_t headerLen = getHeaderLen();
  200|  36.4k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (200:7): [True: 7.07k, False: 29.3k]
  ------------------
  201|  7.07k|			return;
  202|       |
  203|  29.3k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  204|  29.3k|		uint8_t* payload = m_Data + headerLen;
  205|  29.3k|		size_t payloadLen = m_DataLen - headerLen;
  206|       |
  207|  29.3k|		switch (be16toh(header->protocol))
  208|  29.3k|		{
  209|    138|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   33|    138|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (209:3): [True: 138, False: 29.2k]
  ------------------
  210|    138|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  211|    138|			break;
  212|      0|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   49|      0|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (212:3): [True: 0, False: 29.3k]
  ------------------
  213|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  214|      0|			break;
  215|  8.63k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   45|  8.63k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (215:3): [True: 8.63k, False: 20.7k]
  ------------------
  216|  8.63k|			tryConstructNextLayerWithFallback<VlanLayer, PayloadLayer>(payload, payloadLen);
  217|  8.63k|			break;
  218|      0|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   57|      0|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (218:3): [True: 0, False: 29.3k]
  ------------------
  219|      0|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
  220|      0|			break;
  221|  6.57k|		case PCPP_ETHERTYPE_PPP:
  ------------------
  |  |   59|  6.57k|#define PCPP_ETHERTYPE_PPP 0x880B
  ------------------
  |  Branch (221:3): [True: 6.57k, False: 22.8k]
  ------------------
  222|  6.57k|			tryConstructNextLayerWithFallback<PPP_PPTPLayer, PayloadLayer>(payload, payloadLen);
  223|  6.57k|			break;
  224|      0|		case PCPP_ETHERTYPE_ETHBRIDGE:
  ------------------
  |  |   37|      0|#define PCPP_ETHERTYPE_ETHBRIDGE 0x6558
  ------------------
  |  Branch (224:3): [True: 0, False: 29.3k]
  ------------------
  225|      0|		{
  226|      0|			if (tryConstructNextLayer<EthLayer>(payload, payloadLen) != nullptr)
  ------------------
  |  Branch (226:8): [True: 0, False: 0]
  ------------------
  227|      0|			{
  228|      0|				break;
  229|      0|			}
  230|       |
  231|      0|			tryConstructNextLayerWithFallback<EthDot3Layer, PayloadLayer>(payload, payloadLen);
  232|      0|			break;
  233|      0|		}
  234|  14.0k|		default:
  ------------------
  |  Branch (234:3): [True: 14.0k, False: 15.3k]
  ------------------
  235|  14.0k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  236|  29.3k|		}
  237|  29.3k|	}
_ZNK4pcpp8GreLayer12getHeaderLenEv:
  240|  45.2k|	{
  241|  45.2k|		size_t result = sizeof(gre_basic_header);
  242|       |
  243|  45.2k|		gre_basic_header const* header = reinterpret_cast<gre_basic_header const*>(m_Data);
  244|       |
  245|  45.2k|		if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (245:7): [True: 16.0k, False: 29.2k]
  |  Branch (245:35): [True: 2.44k, False: 26.7k]
  ------------------
  246|  18.4k|			result += 4;
  247|  45.2k|		if (header->keyBit == 1)
  ------------------
  |  Branch (247:7): [True: 30.1k, False: 15.0k]
  ------------------
  248|  30.1k|			result += 4;
  249|  45.2k|		if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (249:7): [True: 41.2k, False: 3.96k]
  ------------------
  250|  41.2k|			result += 4;
  251|  45.2k|		if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (251:7): [True: 9.00k, False: 36.2k]
  ------------------
  252|  9.00k|			result += 4;
  253|       |
  254|  45.2k|		return result;
  255|  45.2k|	}
_ZNK4pcpp10GREv0Layer11getChecksumERt:
  303|  3.12k|	{
  304|  3.12k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (304:7): [True: 1.25k, False: 1.87k]
  ------------------
  305|  1.25k|			return false;
  306|       |
  307|  1.87k|		uint16_t* val = (uint16_t*)getFieldValue(GreChecksumOrRouting, false);
  308|  1.87k|		if (val == nullptr)
  ------------------
  |  Branch (308:7): [True: 0, False: 1.87k]
  ------------------
  309|      0|			return false;
  310|       |
  311|  1.87k|		checksum = be16toh(*val);
  312|  1.87k|		return true;
  313|  1.87k|	}
_ZN4pcpp10GREv0Layer11setChecksumEt:
  316|  3.74k|	{
  317|  3.74k|		gre_basic_header* header = getGreHeader();
  318|       |
  319|  3.74k|		bool needToExtendLayer = false;
  320|       |
  321|  3.74k|		if (header->routingBit == 0 && header->checksumBit == 0)
  ------------------
  |  Branch (321:7): [True: 1.67k, False: 2.07k]
  |  Branch (321:34): [True: 0, False: 1.67k]
  ------------------
  322|      0|			needToExtendLayer = true;
  323|       |
  324|  3.74k|		uint8_t* offsetPtr = getFieldValue(GreChecksumOrRouting, true);
  325|  3.74k|		int offset = offsetPtr - m_Data;
  326|       |		// extend layer in 4 bytes to keep 4-byte alignment
  327|  3.74k|		if (needToExtendLayer && !extendLayer(offset, sizeof(uint32_t)))
  ------------------
  |  Branch (327:7): [True: 0, False: 3.74k]
  |  Branch (327:28): [True: 0, False: 0]
  ------------------
  328|      0|		{
  329|      0|			PCPP_LOG_ERROR("Couldn't extend layer to set checksum");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleGreLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  330|      0|			return false;
  331|      0|		}
  332|       |
  333|  3.74k|		uint16_t* checksumPtr = (uint16_t*)(m_Data + offset);
  334|  3.74k|		*checksumPtr = htobe16(checksum);
  335|       |
  336|       |		// if layer was extended in 4 bytes, make sure the offset field stays 0
  337|  3.74k|		if (needToExtendLayer)
  ------------------
  |  Branch (337:7): [True: 0, False: 3.74k]
  ------------------
  338|      0|		{
  339|      0|			checksumPtr++;
  340|      0|			*checksumPtr = 0;
  341|      0|		}
  342|       |
  343|  3.74k|		header = getGreHeader();
  344|  3.74k|		header->checksumBit = 1;
  345|       |
  346|  3.74k|		return true;
  347|  3.74k|	}
_ZNK4pcpp10GREv0Layer9getOffsetERt:
  383|  3.12k|	{
  384|  3.12k|		if (getGreHeader()->routingBit == 0)
  ------------------
  |  Branch (384:7): [True: 1.61k, False: 1.51k]
  ------------------
  385|  1.61k|			return false;
  386|       |
  387|  1.51k|		uint8_t* val = (uint8_t*)getFieldValue(GreChecksumOrRouting, false);
  388|  1.51k|		if (val == nullptr)
  ------------------
  |  Branch (388:7): [True: 0, False: 1.51k]
  ------------------
  389|      0|			return false;
  390|       |
  391|  1.51k|		offset = be16toh(*(val + 2));
  392|  1.51k|		return true;
  393|  1.51k|	}
_ZNK4pcpp10GREv0Layer6getKeyERj:
  396|  3.12k|	{
  397|  3.12k|		if (getGreHeader()->keyBit == 0)
  ------------------
  |  Branch (397:7): [True: 878, False: 2.24k]
  ------------------
  398|    878|			return false;
  399|       |
  400|  2.24k|		uint32_t* val = (uint32_t*)getFieldValue(GreKey, false);
  401|  2.24k|		if (val == nullptr)
  ------------------
  |  Branch (401:7): [True: 0, False: 2.24k]
  ------------------
  402|      0|			return false;
  403|       |
  404|  2.24k|		key = be32toh(*val);
  405|  2.24k|		return true;
  406|  2.24k|	}
_ZN4pcpp10GREv0Layer22computeCalculateFieldsEv:
  460|  3.12k|	{
  461|  3.12k|		computeCalculateFieldsInner();
  462|       |
  463|  3.12k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (463:7): [True: 1.25k, False: 1.87k]
  ------------------
  464|  1.25k|			return;
  465|       |
  466|       |		// calculate checksum
  467|  1.87k|		setChecksum(0);
  468|       |
  469|  1.87k|		ScalarBuffer<uint16_t> buffer;
  470|  1.87k|		buffer.buffer = (uint16_t*)m_Data;
  471|  1.87k|		buffer.len = m_DataLen;
  472|  1.87k|		size_t checksum = computeChecksum(&buffer, 1);
  473|       |
  474|  1.87k|		setChecksum(checksum);
  475|  1.87k|	}
_ZNK4pcpp10GREv0Layer8toStringEv:
  478|  6.25k|	{
  479|  6.25k|		return "GRE Layer, version 0";
  480|  6.25k|	}
_ZNK4pcpp10GREv1Layer20getAcknowledgmentNumERj:
  525|  2.81k|	{
  526|  2.81k|		if (getGreHeader()->ackSequenceNumBit == 0)
  ------------------
  |  Branch (526:7): [True: 1.78k, False: 1.03k]
  ------------------
  527|  1.78k|			return false;
  528|       |
  529|  1.03k|		uint32_t* val = (uint32_t*)getFieldValue(GreAck, false);
  530|  1.03k|		if (val == nullptr)
  ------------------
  |  Branch (530:7): [True: 1, False: 1.03k]
  ------------------
  531|      1|			return false;
  532|       |
  533|  1.03k|		ackNum = be32toh(*val);
  534|  1.03k|		return true;
  535|  1.03k|	}
_ZN4pcpp10GREv1Layer22computeCalculateFieldsEv:
  586|  2.81k|	{
  587|  2.81k|		computeCalculateFieldsInner();
  588|       |
  589|       |		getGreHeader()->payloadLength = htobe16(m_DataLen - getHeaderLen());
  590|  2.81k|	}
_ZNK4pcpp10GREv1Layer8toStringEv:
  593|  5.63k|	{
  594|  5.63k|		return "GRE Layer, version 1";
  595|  5.63k|	}
_ZN4pcpp13PPP_PPTPLayer14parseNextLayerEv:
  636|  6.17k|	{
  637|  6.17k|		size_t headerLen = getHeaderLen();
  638|  6.17k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (638:7): [True: 0, False: 6.17k]
  ------------------
  639|      0|			return;
  640|       |
  641|  6.17k|		uint8_t* payload = m_Data + headerLen;
  642|  6.17k|		size_t payloadLen = m_DataLen - headerLen;
  643|       |
  644|  6.17k|		switch (be16toh(getPPP_PPTPHeader()->protocol))
  645|  6.17k|		{
  646|  5.49k|		case PCPP_PPP_IP:
  ------------------
  |  |  457|  5.49k|#define PCPP_PPP_IP 0x21
  ------------------
  |  Branch (646:3): [True: 5.49k, False: 680]
  ------------------
  647|  5.49k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  648|  5.49k|			break;
  649|      0|		case PCPP_PPP_IPV6:
  ------------------
  |  |  509|      0|#define PCPP_PPP_IPV6 0x57
  ------------------
  |  Branch (649:3): [True: 0, False: 6.17k]
  ------------------
  650|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  651|      0|			break;
  652|    680|		default:
  ------------------
  |  Branch (652:3): [True: 680, False: 5.49k]
  ------------------
  653|    680|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  654|    680|			break;
  655|  6.17k|		}
  656|  6.17k|	}
_ZN4pcpp13PPP_PPTPLayer22computeCalculateFieldsEv:
  659|    690|	{
  660|    690|		ppp_pptp_header* header = getPPP_PPTPHeader();
  661|    690|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (661:7): [True: 690, False: 0]
  ------------------
  662|    690|		{
  663|    690|			switch (m_NextLayer->getProtocol())
  664|    690|			{
  665|    588|			case IPv4:
  ------------------
  |  Branch (665:4): [True: 588, False: 102]
  ------------------
  666|    588|				header->protocol = htobe16(PCPP_PPP_IP);
  667|    588|				break;
  668|      0|			case IPv6:
  ------------------
  |  Branch (668:4): [True: 0, False: 690]
  ------------------
  669|      0|				header->protocol = htobe16(PCPP_PPP_IPV6);
  670|      0|				break;
  671|    102|			default:
  ------------------
  |  Branch (671:4): [True: 102, False: 588]
  ------------------
  672|    102|				break;
  673|    690|			}
  674|    690|		}
  675|      0|		else
  676|      0|			header->protocol = 0;
  677|    690|	}

_ZN4pcpp10GtpV1Layer12GtpExtensionC2Ev:
   22|  16.2k|	{
   23|  16.2k|		m_Data = nullptr;
   24|  16.2k|		m_DataLen = 0;
   25|  16.2k|		m_ExtType = 0;
   26|  16.2k|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionC2EPhmh:
   29|  3.08k|	{
   30|  3.08k|		m_Data = data;
   31|  3.08k|		m_DataLen = dataLen;
   32|  3.08k|		m_ExtType = type;
   33|  3.08k|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionaSERKS1_:
   43|  2.89k|	{
   44|  2.89k|		m_Data = other.m_Data;
   45|  2.89k|		m_DataLen = other.m_DataLen;
   46|  2.89k|		m_ExtType = other.m_ExtType;
   47|  2.89k|		return *this;
   48|  2.89k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension6isNullEv:
   51|  12.4k|	{
   52|  12.4k|		return m_Data == nullptr;
   53|  12.4k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getExtensionTypeEv:
   56|  3.41k|	{
   57|  3.41k|		return m_ExtType;
   58|  3.41k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension14getTotalLengthEv:
   61|  18.8k|	{
   62|  18.8k|		if (m_Data == nullptr)
  ------------------
  |  Branch (62:7): [True: 6.51k, False: 12.2k]
  ------------------
   63|  6.51k|		{
   64|  6.51k|			return 0;
   65|  6.51k|		}
   66|       |
   67|  12.2k|		size_t len = (size_t)(m_Data[0] * 4);
   68|  12.2k|		if (len <= m_DataLen)
  ------------------
  |  Branch (68:7): [True: 9.14k, False: 3.15k]
  ------------------
   69|  9.14k|		{
   70|  9.14k|			return len;
   71|  9.14k|		}
   72|       |
   73|  3.15k|		return m_DataLen;
   74|  12.2k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getContentLengthEv:
   77|  6.54k|	{
   78|  6.54k|		size_t res = getTotalLength();
   79|       |
   80|  6.54k|		if (res >= 2 * sizeof(uint8_t))
  ------------------
  |  Branch (80:7): [True: 3.22k, False: 3.32k]
  ------------------
   81|  3.22k|		{
   82|  3.22k|			return (size_t)(res - 2 * sizeof(uint8_t));
   83|  3.22k|		}
   84|       |
   85|  3.32k|		return 0;
   86|  6.54k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension10getContentEv:
   89|  3.41k|	{
   90|  3.41k|		if (m_Data == nullptr || getContentLength() == 0)
  ------------------
  |  Branch (90:7): [True: 3.25k, False: 160]
  |  Branch (90:28): [True: 32, False: 128]
  ------------------
   91|  3.29k|		{
   92|  3.29k|			return nullptr;
   93|  3.29k|		}
   94|       |
   95|    128|		return m_Data + sizeof(uint8_t);
   96|  3.41k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension26getNextExtensionHeaderTypeEv:
   99|  6.31k|	{
  100|  6.31k|		if (m_Data == nullptr || getTotalLength() < 4)
  ------------------
  |  Branch (100:7): [True: 3.25k, False: 3.05k]
  |  Branch (100:28): [True: 90, False: 2.96k]
  ------------------
  101|  3.34k|		{
  102|  3.34k|			return 0;
  103|  3.34k|		}
  104|       |
  105|  2.96k|		uint8_t res = *(uint8_t*)(m_Data + sizeof(uint8_t) + getContentLength());
  106|       |
  107|  2.96k|		return res;
  108|  6.31k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getNextExtensionEv:
  111|  6.31k|	{
  112|  6.31k|		size_t totalLength = getTotalLength();
  113|  6.31k|		uint8_t nextExtType = getNextExtensionHeaderType();
  114|  6.31k|		if (nextExtType > 0 && m_DataLen > totalLength + sizeof(uint8_t))
  ------------------
  |  Branch (114:7): [True: 2.79k, False: 3.52k]
  |  Branch (114:26): [True: 2.09k, False: 701]
  ------------------
  115|  2.09k|		{
  116|  2.09k|			return { m_Data + totalLength, m_DataLen - totalLength, nextExtType };
  117|  2.09k|		}
  118|  4.22k|		else
  119|  4.22k|		{
  120|  4.22k|			return {};
  121|  4.22k|		}
  122|  6.31k|	}
_ZN4pcpp10GtpV1Layer7isGTPv1EPKhm:
  200|  32.1k|	{
  201|  32.1k|		if (data != nullptr && dataSize >= sizeof(gtpv1_header) && (data[0] & 0xE0) == 0x20)
  ------------------
  |  Branch (201:7): [True: 32.1k, False: 0]
  |  Branch (201:26): [True: 32.0k, False: 130]
  |  Branch (201:62): [True: 21.7k, False: 10.2k]
  ------------------
  202|  21.7k|		{
  203|  21.7k|			return true;
  204|  21.7k|		}
  205|       |
  206|  10.4k|		return false;
  207|  32.1k|	}
_ZNK4pcpp10GtpV1Layer14getHeaderExtraEv:
  210|  33.0k|	{
  211|  33.0k|		if (m_Data != nullptr && m_DataLen >= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (211:7): [True: 33.0k, False: 0]
  |  Branch (211:28): [True: 33.0k, False: 20]
  ------------------
  212|  33.0k|		{
  213|  33.0k|			return (gtpv1_header_extra*)(m_Data + sizeof(gtpv1_header));
  214|  33.0k|		}
  215|       |
  216|     20|		return nullptr;
  217|  33.0k|	}
_ZNK4pcpp10GtpV1Layer17getSequenceNumberERt:
  220|  3.41k|	{
  221|  3.41k|		gtpv1_header* header = getHeader();
  222|  3.41k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  223|  3.41k|		if (header != nullptr && headerExtra != nullptr && header->sequenceNumberFlag == 1)
  ------------------
  |  Branch (223:7): [True: 3.41k, False: 0]
  |  Branch (223:28): [True: 3.41k, False: 4]
  |  Branch (223:54): [True: 900, False: 2.51k]
  ------------------
  224|    900|		{
  225|    900|			seqNumber = be16toh(headerExtra->sequenceNumber);
  226|    900|			return true;
  227|    900|		}
  228|       |
  229|  2.51k|		return false;
  230|  3.41k|	}
_ZNK4pcpp10GtpV1Layer13getNpduNumberERh:
  272|  3.41k|	{
  273|  3.41k|		gtpv1_header* header = getHeader();
  274|  3.41k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  275|  3.41k|		if (header != nullptr && headerExtra != nullptr && header->npduNumberFlag == 1)
  ------------------
  |  Branch (275:7): [True: 3.41k, False: 0]
  |  Branch (275:28): [True: 3.41k, False: 4]
  |  Branch (275:54): [True: 1.58k, False: 1.82k]
  ------------------
  276|  1.58k|		{
  277|  1.58k|			npduNum = headerExtra->npduNumber;
  278|  1.58k|			return true;
  279|  1.58k|		}
  280|       |
  281|  1.83k|		return false;
  282|  3.41k|	}
_ZNK4pcpp10GtpV1Layer26getNextExtensionHeaderTypeERh:
  324|  13.0k|	{
  325|  13.0k|		gtpv1_header* header = getHeader();
  326|  13.0k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  327|  13.0k|		if (header != nullptr && headerExtra != nullptr && header->extensionHeaderFlag == 1)
  ------------------
  |  Branch (327:7): [True: 13.0k, False: 0]
  |  Branch (327:28): [True: 13.0k, False: 4]
  |  Branch (327:54): [True: 3.36k, False: 9.64k]
  ------------------
  328|  3.36k|		{
  329|  3.36k|			nextExtType = headerExtra->nextExtensionHeader;
  330|  3.36k|			return true;
  331|  3.36k|		}
  332|       |
  333|  9.65k|		return false;
  334|  13.0k|	}
_ZNK4pcpp10GtpV1Layer16getNextExtensionEv:
  337|  13.0k|	{
  338|  13.0k|		uint8_t nextExtType = 0;
  339|  13.0k|		bool nextExtExists = getNextExtensionHeaderType(nextExtType);
  340|  13.0k|		if (!nextExtExists || nextExtType == 0 || m_DataLen <= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (340:7): [True: 9.65k, False: 3.36k]
  |  Branch (340:25): [True: 2.37k, False: 987]
  |  Branch (340:45): [True: 0, False: 987]
  ------------------
  341|  12.0k|		{
  342|  12.0k|			return {};
  343|  12.0k|		}
  344|       |
  345|    987|		return { m_Data + sizeof(gtpv1_header) + sizeof(gtpv1_header_extra),
  346|    987|			     m_DataLen - sizeof(gtpv1_header) - sizeof(gtpv1_header_extra), nextExtType };
  347|  13.0k|	}
_ZNK4pcpp10GtpV1Layer14getMessageTypeEv:
  428|  3.41k|	{
  429|  3.41k|		gtpv1_header* header = getHeader();
  430|       |
  431|  3.41k|		if (header == nullptr)
  ------------------
  |  Branch (431:7): [True: 0, False: 3.41k]
  ------------------
  432|      0|		{
  433|      0|			return GtpV1_MessageTypeUnknown;
  434|      0|		}
  435|       |
  436|  3.41k|		return (GtpV1MessageType)header->messageType;
  437|  3.41k|	}
_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|  7.23k|	{
  520|  7.23k|		gtpv1_header* header = getHeader();
  521|       |
  522|  7.23k|		if (header == nullptr)
  ------------------
  |  Branch (522:7): [True: 0, False: 7.23k]
  ------------------
  523|      0|		{
  524|      0|			return GTPv1MsgTypeToStringMap.find(0)->second;
  525|      0|		}
  526|       |
  527|  7.23k|		auto iter = GTPv1MsgTypeToStringMap.find(header->messageType);
  528|  7.23k|		if (iter != GTPv1MsgTypeToStringMap.end())
  ------------------
  |  Branch (528:7): [True: 5.81k, False: 1.41k]
  ------------------
  529|  5.81k|		{
  530|  5.81k|			return iter->second;
  531|  5.81k|		}
  532|  1.41k|		else
  533|  1.41k|		{
  534|  1.41k|			return GTPv1MsgTypeToStringMap.find(0)->second;
  535|  1.41k|		}
  536|  7.23k|	}
_ZNK4pcpp10GtpV1Layer13isGTPUMessageEv:
  539|  3.41k|	{
  540|  3.41k|		gtpv1_header* header = getHeader();
  541|  3.41k|		if (header == nullptr)
  ------------------
  |  Branch (541:7): [True: 0, False: 3.41k]
  ------------------
  542|      0|		{
  543|      0|			return false;
  544|      0|		}
  545|       |
  546|  3.41k|		return header->messageType == GtpV1GpduMessageType;
  547|  3.41k|	}
_ZNK4pcpp10GtpV1Layer13isGTPCMessageEv:
  550|  3.41k|	{
  551|  3.41k|		gtpv1_header* header = getHeader();
  552|  3.41k|		if (header == nullptr)
  ------------------
  |  Branch (552:7): [True: 0, False: 3.41k]
  ------------------
  553|      0|		{
  554|      0|			return false;
  555|      0|		}
  556|       |
  557|  3.41k|		return header->messageType != GtpV1GpduMessageType;
  558|  3.41k|	}
_ZN4pcpp10GtpV1Layer14parseNextLayerEv:
  561|  21.7k|	{
  562|  21.7k|		size_t headerLen = getHeaderLen();
  563|  21.7k|		if (headerLen < sizeof(gtpv1_header))
  ------------------
  |  Branch (563:7): [True: 0, False: 21.7k]
  ------------------
  564|      0|		{
  565|       |			// do nothing
  566|      0|			return;
  567|      0|		}
  568|       |
  569|  21.7k|		gtpv1_header* header = getHeader();
  570|  21.7k|		if (header->messageType != GtpV1GpduMessageType)
  ------------------
  |  Branch (570:7): [True: 10.1k, False: 11.6k]
  ------------------
  571|  10.1k|		{
  572|       |			// this is a GTP-C message, hence it is the last layer
  573|  10.1k|			return;
  574|  10.1k|		}
  575|       |
  576|  11.6k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (576:7): [True: 553, False: 11.0k]
  ------------------
  577|    553|		{
  578|       |			// no data beyond headerLen, nothing to parse further
  579|    553|			return;
  580|    553|		}
  581|       |
  582|       |		// GTP-U message, try to parse the next layer
  583|       |
  584|  11.0k|		auto* payload = static_cast<uint8_t*>(m_Data + headerLen);
  585|  11.0k|		size_t payloadLen = m_DataLen - headerLen;
  586|       |
  587|  11.0k|		uint8_t subProto = *payload;
  588|  11.0k|		if (subProto >= 0x45 && subProto <= 0x4e)
  ------------------
  |  Branch (588:7): [True: 10.7k, False: 290]
  |  Branch (588:27): [True: 7.71k, False: 3.06k]
  ------------------
  589|  7.71k|		{
  590|  7.71k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  591|  7.71k|		}
  592|  3.35k|		else if ((subProto & 0xf0) == 0x60)
  ------------------
  |  Branch (592:12): [True: 2.94k, False: 416]
  ------------------
  593|  2.94k|		{
  594|  2.94k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  595|  2.94k|		}
  596|    416|		else
  597|    416|		{
  598|    416|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  599|    416|		}
  600|  11.0k|	}
_ZNK4pcpp10GtpV1Layer12getHeaderLenEv:
  603|  25.1k|	{
  604|  25.1k|		gtpv1_header* header = getHeader();
  605|  25.1k|		if (header == nullptr)
  ------------------
  |  Branch (605:7): [True: 0, False: 25.1k]
  ------------------
  606|      0|		{
  607|      0|			return 0;
  608|      0|		}
  609|       |
  610|  25.1k|		size_t res = sizeof(gtpv1_header);
  611|       |
  612|  25.1k|		if (header->messageType != GtpV1GpduMessageType)
  ------------------
  |  Branch (612:7): [True: 12.0k, False: 13.1k]
  ------------------
  613|  12.0k|		{
  614|  12.0k|			size_t msgLen = be16toh(header->messageLength);
  615|  12.0k|			res += (msgLen > m_DataLen - sizeof(gtpv1_header) ? m_DataLen - sizeof(gtpv1_header) : msgLen);
  ------------------
  |  Branch (615:12): [True: 2.74k, False: 9.27k]
  ------------------
  616|  12.0k|		}
  617|  13.1k|		else
  618|  13.1k|		{
  619|  13.1k|			gtpv1_header_extra* headerExtra = getHeaderExtra();
  620|  13.1k|			if (headerExtra != nullptr &&
  ------------------
  |  Branch (620:8): [True: 13.1k, False: 8]
  ------------------
  621|  13.1k|			    (header->extensionHeaderFlag == 1 || header->sequenceNumberFlag == 1 || header->npduNumberFlag == 1))
  ------------------
  |  Branch (621:9): [True: 2.98k, False: 10.1k]
  |  Branch (621:45): [True: 6.07k, False: 4.10k]
  |  Branch (621:80): [True: 537, False: 3.56k]
  ------------------
  622|  9.59k|			{
  623|  9.59k|				res += sizeof(gtpv1_header_extra);
  624|  9.59k|				GtpExtension nextExt = getNextExtension();
  625|  12.4k|				while (!nextExt.isNull())
  ------------------
  |  Branch (625:12): [True: 2.89k, False: 9.59k]
  ------------------
  626|  2.89k|				{
  627|  2.89k|					res += nextExt.getTotalLength();
  628|  2.89k|					nextExt = nextExt.getNextExtension();
  629|  2.89k|				}
  630|  9.59k|			}
  631|  13.1k|		}
  632|       |
  633|  25.1k|		return res;
  634|  25.1k|	}
_ZNK4pcpp10GtpV1Layer8toStringEv:
  637|  6.83k|	{
  638|  6.83k|		std::string res = "GTP v1 Layer";
  639|       |
  640|  6.83k|		gtpv1_header* header = getHeader();
  641|  6.83k|		if (header != nullptr)
  ------------------
  |  Branch (641:7): [True: 6.83k, False: 0]
  ------------------
  642|  6.83k|		{
  643|  6.83k|			std::stringstream teidStream;
  644|  6.83k|			teidStream << be32toh(header->teid);
  645|       |
  646|  6.83k|			std::string gtpu_gtpc;
  647|  6.83k|			if (header->messageType == GtpV1GpduMessageType)
  ------------------
  |  Branch (647:8): [True: 3.02k, False: 3.81k]
  ------------------
  648|  3.02k|			{
  649|  3.02k|				gtpu_gtpc = "GTP-U message";
  650|  3.02k|			}
  651|  3.81k|			else
  652|  3.81k|			{
  653|  3.81k|				gtpu_gtpc = "GTP-C message: " + getMessageTypeAsString();
  654|  3.81k|			}
  655|       |
  656|  6.83k|			res += ", " + gtpu_gtpc + ", TEID: " + teidStream.str();
  657|  6.83k|		}
  658|       |
  659|  6.83k|		return res;
  660|  6.83k|	}
_ZN4pcpp10GtpV1Layer22computeCalculateFieldsEv:
  663|  3.41k|	{
  664|  3.41k|		gtpv1_header* hdr = getHeader();
  665|  3.41k|		if (hdr == nullptr)
  ------------------
  |  Branch (665:7): [True: 0, False: 3.41k]
  ------------------
  666|      0|		{
  667|      0|			return;
  668|      0|		}
  669|       |
  670|  3.41k|		hdr->messageLength = htobe16(m_DataLen - sizeof(gtpv1_header));
  671|  3.41k|	}
_ZNK4pcpp16GtpV2MessageType8toStringEv:
  771|  5.42k|	{
  772|  5.42k|		auto iter = messageTypeMap.find(m_Value);
  773|  5.42k|		if (iter != messageTypeMap.end())
  ------------------
  |  Branch (773:7): [True: 22, False: 5.40k]
  ------------------
  774|     22|		{
  775|     22|			return iter->second;
  776|     22|		}
  777|       |
  778|  5.40k|		return "Unknown GTPv2 Message Type";
  779|  5.42k|	}
_ZN4pcpp16GtpV2MessageType13fromUintValueEh:
  869|  5.42k|	{
  870|  5.42k|		auto iter = uintToValueMap.find(value);
  871|  5.42k|		if (iter != uintToValueMap.end())
  ------------------
  |  Branch (871:7): [True: 22, False: 5.40k]
  ------------------
  872|     22|		{
  873|     22|			return iter->second;
  874|     22|		}
  875|       |
  876|  5.40k|		return Unknown;
  877|  5.42k|	}
_ZN4pcpp10GtpV2Layer11isDataValidEPKhm:
 1017|  19.0k|	{
 1018|  19.0k|		if (!data || dataSize < sizeof(gtpv2_basic_header) + sizeof(uint32_t))
  ------------------
  |  Branch (1018:7): [True: 0, False: 19.0k]
  |  Branch (1018:16): [True: 637, False: 18.3k]
  ------------------
 1019|    637|		{
 1020|    637|			return false;
 1021|    637|		}
 1022|       |
 1023|  18.3k|		auto* header = reinterpret_cast<const gtpv2_basic_header*>(data);
 1024|       |
 1025|  18.3k|		if (header->version != 2)
  ------------------
  |  Branch (1025:7): [True: 1.33k, False: 17.0k]
  ------------------
 1026|  1.33k|		{
 1027|  1.33k|			return false;
 1028|  1.33k|		}
 1029|       |
 1030|       |		// When the TEID-present flag is set, the fixed header carries the 4-byte TEID before
 1031|       |		// the sequence-number word, so the minimum length grows accordingly. Without this
 1032|       |		// check accessors such as getSequenceNumber() would read past the buffer (GH #2171).
 1033|  17.0k|		if (header->teidPresent && dataSize < sizeof(gtpv2_basic_header) + 2 * sizeof(uint32_t))
  ------------------
  |  Branch (1033:7): [True: 17.0k, False: 37]
  |  Branch (1033:30): [True: 145, False: 16.8k]
  ------------------
 1034|    145|		{
 1035|    145|			return false;
 1036|    145|		}
 1037|       |
 1038|  16.9k|		return true;
 1039|  17.0k|	}
_ZNK4pcpp10GtpV2Layer14getMessageTypeEv:
 1042|  5.42k|	{
 1043|  5.42k|		return GtpV2MessageType::fromUintValue(getHeader()->messageType);
 1044|  5.42k|	}
_ZN4pcpp10GtpV2Layer14parseNextLayerEv:
 1306|  16.9k|	{
 1307|  16.9k|		auto headerLen = getHeaderLen();
 1308|  16.9k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (1308:7): [True: 6.75k, False: 10.1k]
  ------------------
 1309|  6.75k|		{
 1310|  6.75k|			return;
 1311|  6.75k|		}
 1312|       |
 1313|  10.1k|		auto* nextLayerData = m_Data + headerLen;
 1314|  10.1k|		auto nextLayerDataLen = m_DataLen - headerLen;
 1315|       |
 1316|  10.1k|		if (getHeader()->piggybacking)
  ------------------
  |  Branch (1316:7): [True: 10.1k, False: 51]
  ------------------
 1317|  10.1k|		{
 1318|  10.1k|			tryConstructNextLayerWithFallback<GtpV2Layer, PayloadLayer>(nextLayerData, nextLayerDataLen);
 1319|  10.1k|		}
 1320|     51|		else
 1321|     51|		{
 1322|     51|			constructNextLayer<PayloadLayer>(nextLayerData, nextLayerDataLen);
 1323|     51|		}
 1324|  10.1k|	}
_ZNK4pcpp10GtpV2Layer12getHeaderLenEv:
 1327|  19.6k|	{
 1328|  19.6k|		auto messageLength = be16toh(getHeader()->messageLength) + sizeof(gtpv2_basic_header);
 1329|  19.6k|		if (messageLength > m_DataLen)
  ------------------
  |  Branch (1329:7): [True: 7.85k, False: 11.7k]
  ------------------
 1330|  7.85k|		{
 1331|  7.85k|			return m_DataLen;
 1332|  7.85k|		}
 1333|       |
 1334|  11.7k|		return messageLength;
 1335|  19.6k|	}
_ZN4pcpp10GtpV2Layer22computeCalculateFieldsEv:
 1338|  2.71k|	{
 1339|  2.71k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (1339:7): [True: 1.10k, False: 1.61k]
  ------------------
 1340|  1.10k|		{
 1341|  1.10k|			return;
 1342|  1.10k|		}
 1343|       |
 1344|  1.61k|		if (m_NextLayer->getProtocol() == GTPv2)
  ------------------
  |  Branch (1344:7): [True: 1.31k, False: 295]
  ------------------
 1345|  1.31k|		{
 1346|  1.31k|			getHeader()->piggybacking = 1;
 1347|  1.31k|		}
 1348|    295|		else
 1349|    295|		{
 1350|    295|			getHeader()->piggybacking = 0;
 1351|    295|		}
 1352|  1.61k|	}
_ZNK4pcpp10GtpV2Layer8toStringEv:
 1355|  5.42k|	{
 1356|  5.42k|		return "GTPv2 Layer, " + getMessageType().toString() + " message";
 1357|  5.42k|	}
_ZNK4pcpp20GtpV2MessageTypeHashclERKNS_16GtpV2MessageTypeE:
  680|  5.59k|		{
  681|  5.59k|			return static_cast<uint8_t>(messageType);
  682|  5.59k|		}

_ZN4pcpp16HttpRequestLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   63|  75.4k|	    : HttpMessage(data, dataLen, prevLayer, packet, HTTPRequest)
   64|  75.4k|	{
   65|  75.4k|		m_FirstLine = new HttpRequestFirstLine(this);
   66|  75.4k|		setFieldsOffset(m_FirstLine->getSize());
   67|  75.4k|		parseFields();
   68|  75.4k|	}
_ZN4pcpp16HttpRequestLayerD2Ev:
  109|  75.4k|	{
  110|  75.4k|		delete m_FirstLine;
  111|  75.4k|	}
_ZNK4pcpp16HttpRequestLayer8toStringEv:
  114|  29.1k|	{
  115|  29.1k|		static const int maxLengthToPrint = 120;
  116|  29.1k|		std::string result = "HTTP request, ";
  117|  29.1k|		int size = m_FirstLine->getSize() - 2;  // the -2 is to remove \r\n at the end of the first line
  118|  29.1k|		if (size <= 0)
  ------------------
  |  Branch (118:7): [True: 0, False: 29.1k]
  ------------------
  119|      0|		{
  120|      0|			result += std::string("CORRUPT DATA");
  121|      0|			return result;
  122|      0|		}
  123|  29.1k|		if (size <= maxLengthToPrint)
  ------------------
  |  Branch (123:7): [True: 21.0k, False: 8.03k]
  ------------------
  124|  21.0k|		{
  125|  21.0k|			char* firstLine = new char[size + 1];
  126|  21.0k|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), size);
  127|  21.0k|			firstLine[size] = 0;
  128|  21.0k|			result += std::string(firstLine);
  129|  21.0k|			delete[] firstLine;
  130|  21.0k|		}
  131|  8.03k|		else
  132|  8.03k|		{
  133|  8.03k|			char firstLine[maxLengthToPrint + 1];
  134|  8.03k|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), maxLengthToPrint - 3);
  135|  8.03k|			firstLine[maxLengthToPrint - 3] = '.';
  136|  8.03k|			firstLine[maxLengthToPrint - 2] = '.';
  137|  8.03k|			firstLine[maxLengthToPrint - 1] = '.';
  138|  8.03k|			firstLine[maxLengthToPrint] = 0;
  139|  8.03k|			result += std::string(firstLine);
  140|  8.03k|		}
  141|       |
  142|  29.1k|		return result;
  143|  29.1k|	}
_ZN4pcpp20HttpRequestFirstLineC2EPNS_16HttpRequestLayerE:
  171|  75.4k|	HttpRequestFirstLine::HttpRequestFirstLine(HttpRequestLayer* httpRequest) : m_HttpRequest(httpRequest)
  172|  75.4k|	{
  173|  75.4k|		m_Method = parseMethod((char*)m_HttpRequest->m_Data, m_HttpRequest->getDataLen());
  174|  75.4k|		if (m_Method == HttpRequestLayer::HttpMethodUnknown)
  ------------------
  |  Branch (174:7): [True: 0, False: 75.4k]
  ------------------
  175|      0|		{
  176|      0|			m_UriOffset = -1;
  177|      0|			PCPP_LOG_DEBUG("Couldn't resolve HTTP request method");
  ------------------
  |  |  426|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  178|      0|			m_IsComplete = false;
  179|      0|			m_Version = HttpVersionUnknown;
  180|      0|			m_VersionOffset = -1;
  181|      0|			m_FirstLineEndOffset = m_HttpRequest->getDataLen();
  182|      0|			return;
  183|      0|		}
  184|  75.4k|		else
  185|  75.4k|		{
  186|  75.4k|			m_UriOffset = MethodEnumToString[m_Method].length() + 1;
  187|  75.4k|		}
  188|       |
  189|  75.4k|		parseVersion();
  190|  75.4k|		if (m_VersionOffset < 0)
  ------------------
  |  Branch (190:7): [True: 17.3k, False: 58.0k]
  ------------------
  191|  17.3k|		{
  192|  17.3k|			m_IsComplete = false;
  193|  17.3k|			m_FirstLineEndOffset = m_HttpRequest->getDataLen();
  194|  17.3k|			return;
  195|  17.3k|		}
  196|       |
  197|  58.0k|		char* endOfFirstLine;
  198|  58.0k|		if ((endOfFirstLine = (char*)memchr((char*)(m_HttpRequest->m_Data + m_VersionOffset), '\n',
  ------------------
  |  Branch (198:7): [True: 57.2k, False: 851]
  ------------------
  199|  58.0k|		                                    m_HttpRequest->m_DataLen - (size_t)m_VersionOffset)) != nullptr)
  200|  57.2k|		{
  201|  57.2k|			m_FirstLineEndOffset = endOfFirstLine - (char*)m_HttpRequest->m_Data + 1;
  202|  57.2k|			m_IsComplete = true;
  203|  57.2k|		}
  204|    851|		else
  205|    851|		{
  206|    851|			m_FirstLineEndOffset = m_HttpRequest->getDataLen();
  207|    851|			m_IsComplete = false;
  208|    851|		}
  209|       |
  210|  58.0k|		if (Logger::getInstance().isDebugEnabled(PacketLogModuleHttpLayer))
  ------------------
  |  Branch (210:7): [True: 0, False: 58.0k]
  ------------------
  211|      0|		{
  212|      0|			std::string method =
  213|      0|			    m_Method == HttpRequestLayer::HttpMethodUnknown ? "Unknown" : MethodEnumToString[m_Method];
  ------------------
  |  Branch (213:8): [True: 0, False: 0]
  ------------------
  214|      0|			PCPP_LOG_DEBUG("Method='" << method << "'; "
  ------------------
  |  |  426|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  215|      0|			                          << "HTTP version='" << VersionEnumToString[m_Version] << "'; "
  216|      0|			                          << "URI='" << getUri() << "'");
  217|      0|		}
  218|  58.0k|	}
_ZN4pcpp20HttpRequestFirstLine11parseMethodEPKcm:
  267|   164k|	{
  268|   164k|		if (!data || dataLen < 4)
  ------------------
  |  Branch (268:7): [True: 0, False: 164k]
  |  Branch (268:16): [True: 176, False: 164k]
  ------------------
  269|    176|		{
  270|    176|			return HttpRequestLayer::HttpMethodUnknown;
  271|    176|		}
  272|       |
  273|   164k|		size_t spaceIndex = 0;
  274|  1.10M|		while (spaceIndex < dataLen && data[spaceIndex] != ' ')
  ------------------
  |  Branch (274:10): [True: 1.10M, False: 787]
  |  Branch (274:34): [True: 937k, False: 163k]
  ------------------
  275|   937k|		{
  276|   937k|			spaceIndex++;
  277|   937k|		}
  278|       |
  279|   164k|		if (spaceIndex == 0 || spaceIndex == dataLen)
  ------------------
  |  Branch (279:7): [True: 161, False: 164k]
  |  Branch (279:26): [True: 787, False: 163k]
  ------------------
  280|    948|		{
  281|    948|			return HttpRequestLayer::HttpMethodUnknown;
  282|    948|		}
  283|       |
  284|   163k|		auto methodAdEnum = HttpMethodStringToEnum.find(std::string(data, data + spaceIndex));
  285|   163k|		if (methodAdEnum == HttpMethodStringToEnum.end())
  ------------------
  |  Branch (285:7): [True: 12.7k, False: 150k]
  ------------------
  286|  12.7k|		{
  287|  12.7k|			return HttpRequestLayer::HttpMethodUnknown;
  288|  12.7k|		}
  289|   150k|		return methodAdEnum->second;
  290|   163k|	}
_ZN4pcpp20HttpRequestFirstLine12parseVersionEv:
  293|  75.4k|	{
  294|  75.4k|		char* data = (char*)(m_HttpRequest->m_Data + m_UriOffset);
  295|  75.4k|		char* verPos = cross_platform_memmem(data, m_HttpRequest->getDataLen() - m_UriOffset, " HTTP/", 6);
  296|  75.4k|		if (verPos == nullptr)
  ------------------
  |  Branch (296:7): [True: 17.3k, False: 58.1k]
  ------------------
  297|  17.3k|		{
  298|  17.3k|			m_Version = HttpVersionUnknown;
  299|  17.3k|			m_VersionOffset = -1;
  300|  17.3k|			return;
  301|  17.3k|		}
  302|       |
  303|       |		// verify packet doesn't end before the version, meaning still left place for " HTTP/x.y" (9 chars)
  304|  58.1k|		std::ptrdiff_t actualLen = verPos + 9 - (char*)m_HttpRequest->m_Data;
  305|  58.1k|		if (static_cast<size_t>(actualLen) > m_HttpRequest->getDataLen())
  ------------------
  |  Branch (305:7): [True: 67, False: 58.0k]
  ------------------
  306|     67|		{
  307|     67|			m_Version = HttpVersionUnknown;
  308|     67|			m_VersionOffset = -1;
  309|     67|			return;
  310|     67|		}
  311|       |
  312|       |		// skip " HTTP/" (6 chars)
  313|  58.0k|		verPos += 6;
  314|  58.0k|		auto versionAsEnum = HttpVersionStringToEnum.find(std::string(verPos, verPos + 3));
  315|  58.0k|		if (versionAsEnum == HttpVersionStringToEnum.end())
  ------------------
  |  Branch (315:7): [True: 10.5k, False: 47.5k]
  ------------------
  316|  10.5k|		{
  317|  10.5k|			m_Version = HttpVersionUnknown;
  318|  10.5k|		}
  319|  47.5k|		else
  320|  47.5k|		{
  321|  47.5k|			m_Version = versionAsEnum->second;
  322|  47.5k|		}
  323|       |
  324|  58.0k|		m_VersionOffset = verPos - (char*)m_HttpRequest->m_Data;
  325|  58.0k|	}
_ZN4pcpp22HttpResponseStatusCodeC2ERKiRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
  516|  28.4k|	{
  517|  28.4k|		if (statusMessage != "")
  ------------------
  |  Branch (517:7): [True: 28.4k, False: 0]
  ------------------
  518|  28.4k|		{
  519|  28.4k|			m_CustomizedMessage = statusMessage;
  520|  28.4k|		}
  521|       |
  522|  28.4k|		if (intStatusCodeMap.find(statusCodeNumber) != intStatusCodeMap.end())
  ------------------
  |  Branch (522:7): [True: 28.3k, False: 93]
  ------------------
  523|  28.3k|		{
  524|  28.3k|			m_Value = intStatusCodeMap.at(statusCodeNumber);
  525|  28.3k|			return;
  526|  28.3k|		}
  527|       |
  528|     93|		if (statusCodeNumber >= 100 && statusCodeNumber <= 199)
  ------------------
  |  Branch (528:7): [True: 81, False: 12]
  |  Branch (528:34): [True: 10, False: 71]
  ------------------
  529|     10|		{
  530|     10|			m_Value = HttpResponseStatusCode::HttpStatus1xxCodeUnknown;
  531|     10|		}
  532|     83|		else if (statusCodeNumber >= 200 && statusCodeNumber <= 299)
  ------------------
  |  Branch (532:12): [True: 71, False: 12]
  |  Branch (532:39): [True: 36, False: 35]
  ------------------
  533|     36|		{
  534|     36|			m_Value = HttpResponseStatusCode::HttpStatus2xxCodeUnknown;
  535|     36|		}
  536|     47|		else if (statusCodeNumber >= 300 && statusCodeNumber <= 399)
  ------------------
  |  Branch (536:12): [True: 35, False: 12]
  |  Branch (536:39): [True: 0, False: 35]
  ------------------
  537|      0|		{
  538|      0|			m_Value = HttpResponseStatusCode::HttpStatus3xxCodeUnknown;
  539|      0|		}
  540|     47|		else if (statusCodeNumber >= 400 && statusCodeNumber <= 499)
  ------------------
  |  Branch (540:12): [True: 35, False: 12]
  |  Branch (540:39): [True: 0, False: 35]
  ------------------
  541|      0|		{
  542|      0|			m_Value = HttpResponseStatusCode::HttpStatus4xxCodeUnknown;
  543|      0|		}
  544|     47|		else if (statusCodeNumber >= 500 && statusCodeNumber <= 599)
  ------------------
  |  Branch (544:12): [True: 35, False: 12]
  |  Branch (544:39): [True: 0, False: 35]
  ------------------
  545|      0|		{
  546|      0|			m_Value = HttpResponseStatusCode::HttpStatus5xxCodeUnknown;
  547|      0|		}
  548|     93|	}
_ZN4pcpp17HttpResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  672|  14.1k|	    : HttpMessage(data, dataLen, prevLayer, packet, HTTPResponse)
  673|  14.1k|	{
  674|  14.1k|		m_FirstLine = new HttpResponseFirstLine(this);
  675|  14.1k|		setFieldsOffset(m_FirstLine->getSize());
  676|  14.1k|		parseFields();
  677|  14.1k|	}
_ZN4pcpp17HttpResponseLayerD2Ev:
  695|  14.1k|	{
  696|  14.1k|		delete m_FirstLine;
  697|  14.1k|	}
_ZNK4pcpp17HttpResponseLayer8toStringEv:
  750|  4.93k|	{
  751|  4.93k|		static const int maxLengthToPrint = 120;
  752|  4.93k|		std::string result = "HTTP response, ";
  753|  4.93k|		int size = m_FirstLine->getSize() - 2;  // the -2 is to remove \r\n at the end of the first line
  754|  4.93k|		if (size <= maxLengthToPrint)
  ------------------
  |  Branch (754:7): [True: 4.78k, False: 150]
  ------------------
  755|  4.78k|		{
  756|  4.78k|			char* firstLine = new char[size + 1];
  757|  4.78k|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), size);
  758|  4.78k|			firstLine[size] = 0;
  759|  4.78k|			result += std::string(firstLine);
  760|  4.78k|			delete[] firstLine;
  761|  4.78k|		}
  762|    150|		else
  763|    150|		{
  764|    150|			char firstLine[maxLengthToPrint + 1];
  765|    150|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), maxLengthToPrint - 3);
  766|    150|			firstLine[maxLengthToPrint - 3] = '.';
  767|    150|			firstLine[maxLengthToPrint - 2] = '.';
  768|    150|			firstLine[maxLengthToPrint - 1] = '.';
  769|    150|			firstLine[maxLengthToPrint] = 0;
  770|    150|			result += std::string(firstLine);
  771|    150|		}
  772|       |
  773|  4.93k|		return result;
  774|  4.93k|	}
_ZN4pcpp21HttpResponseFirstLine15parseStatusCodeEPKcm:
  862|  28.5k|	{
  863|       |		// minimum data should be 12B long: "HTTP/x.y XXX"
  864|  28.5k|		if (!data || dataLen < 12)
  ------------------
  |  Branch (864:7): [True: 0, False: 28.5k]
  |  Branch (864:16): [True: 35, False: 28.4k]
  ------------------
  865|     35|		{
  866|     35|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  867|     35|		}
  868|       |
  869|  28.4k|		const std::string codeString = std::string(data + 9, 3);
  870|       |
  871|  28.4k|		if (codeString.empty() || (std::find_if(codeString.begin(), codeString.end(),
  ------------------
  |  Branch (871:7): [True: 0, False: 28.4k]
  |  Branch (871:7): [True: 25, False: 28.4k]
  |  Branch (871:29): [True: 25, False: 28.4k]
  ------------------
  872|  28.4k|		                                        [](unsigned char c) { return !std::isdigit(c); }) != codeString.end()))
  873|     25|		{
  874|     25|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  875|     25|		}
  876|       |
  877|  28.4k|		constexpr size_t messageOffset = 13;  // expect "HTTP/x.y XXX YYY", YYY starts from 13
  878|  28.4k|		size_t offset = messageOffset;
  879|  28.4k|		bool isMessageFound = false;
  880|   451k|		while (offset < dataLen)
  ------------------
  |  Branch (880:10): [True: 451k, False: 0]
  ------------------
  881|   451k|		{
  882|   451k|			if (data[offset] == '\n')
  ------------------
  |  Branch (882:8): [True: 28.4k, False: 423k]
  ------------------
  883|  28.4k|			{
  884|  28.4k|				isMessageFound = true;
  885|  28.4k|				break;
  886|  28.4k|			}
  887|   423k|			offset++;
  888|   423k|		}
  889|       |
  890|  28.4k|		if (!isMessageFound)
  ------------------
  |  Branch (890:7): [True: 0, False: 28.4k]
  ------------------
  891|      0|		{
  892|      0|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  893|      0|		}
  894|       |
  895|  28.4k|		std::string messageString(data + messageOffset, offset - messageOffset);
  896|  28.4k|		if (!messageString.empty() && messageString.back() == '\r')
  ------------------
  |  Branch (896:7): [True: 28.4k, False: 0]
  |  Branch (896:33): [True: 27.2k, False: 1.21k]
  ------------------
  897|  27.2k|		{
  898|  27.2k|			messageString.pop_back();
  899|  27.2k|		}
  900|  28.4k|		if (messageString.empty())
  ------------------
  |  Branch (900:7): [True: 36, False: 28.4k]
  ------------------
  901|     36|		{
  902|     36|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  903|     36|		}
  904|       |
  905|  28.4k|		return HttpResponseStatusCode(std::stoi(codeString), messageString);
  906|  28.4k|	}
_ZN4pcpp21HttpResponseFirstLineC2EPNS_17HttpResponseLayerE:
  908|  14.1k|	HttpResponseFirstLine::HttpResponseFirstLine(HttpResponseLayer* httpResponse) : m_HttpResponse(httpResponse)
  909|  14.1k|	{
  910|  14.1k|		m_Version = parseVersion((char*)m_HttpResponse->m_Data, m_HttpResponse->getDataLen());
  911|  14.1k|		if (m_Version == HttpVersionUnknown)
  ------------------
  |  Branch (911:7): [True: 0, False: 14.1k]
  ------------------
  912|      0|		{
  913|      0|			m_StatusCode = HttpResponseStatusCode::HttpStatusCodeUnknown;
  914|      0|		}
  915|  14.1k|		else
  916|  14.1k|		{
  917|  14.1k|			m_StatusCode = parseStatusCode((char*)m_HttpResponse->m_Data, m_HttpResponse->getDataLen());
  918|  14.1k|		}
  919|       |
  920|  14.1k|		char* endOfFirstLine;
  921|  14.1k|		if ((endOfFirstLine = (char*)memchr((char*)(m_HttpResponse->m_Data), '\n', m_HttpResponse->m_DataLen)) !=
  ------------------
  |  Branch (921:7): [True: 14.1k, False: 0]
  ------------------
  922|  14.1k|		    nullptr)
  923|  14.1k|		{
  924|  14.1k|			m_FirstLineEndOffset = endOfFirstLine - (char*)m_HttpResponse->m_Data + 1;
  925|  14.1k|			m_IsComplete = true;
  926|  14.1k|		}
  927|      0|		else
  928|      0|		{
  929|      0|			m_FirstLineEndOffset = m_HttpResponse->getDataLen();
  930|      0|			m_IsComplete = false;
  931|      0|		}
  932|       |
  933|  14.1k|		if (Logger::getInstance().isDebugEnabled(PacketLogModuleHttpLayer))
  ------------------
  |  Branch (933:7): [True: 0, False: 14.1k]
  ------------------
  934|      0|		{
  935|      0|			std::string version = (m_Version == HttpVersionUnknown ? "Unknown" : VersionEnumToString[m_Version]);
  ------------------
  |  Branch (935:27): [True: 0, False: 0]
  ------------------
  936|      0|			int statusCode = (m_StatusCode == HttpResponseStatusCode::HttpStatusCodeUnknown ? 0 : m_StatusCode.toInt());
  ------------------
  |  Branch (936:22): [True: 0, False: 0]
  ------------------
  937|      0|			PCPP_LOG_DEBUG("Version='" << version << "'; Status code=" << statusCode << " '" << getStatusCodeString()
  ------------------
  |  |  426|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  938|      0|			                           << "'");
  939|      0|		}
  940|  14.1k|	}
_ZN4pcpp21HttpResponseFirstLine12parseVersionEPKcm:
  976|  36.5k|	{
  977|  36.5k|		if (!data || dataLen < 8)  // "HTTP/x.y"
  ------------------
  |  Branch (977:7): [True: 0, False: 36.5k]
  |  Branch (977:16): [True: 186, False: 36.3k]
  ------------------
  978|    186|		{
  979|    186|			PCPP_LOG_DEBUG("HTTP response length < 8, cannot identify version");
  ------------------
  |  |  426|    186|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|    186|	do                                                                                                                 \
  |  |  |  |  414|    186|	{                                                                                                                  \
  |  |  |  |  415|    186|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    186|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    186|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 186]
  |  |  |  |  ------------------
  |  |  |  |  417|    186|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|    186|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 186]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  980|    186|			return HttpVersionUnknown;
  981|    186|		}
  982|       |
  983|  36.3k|		if (data[0] != 'H' || data[1] != 'T' || data[2] != 'T' || data[3] != 'P' || data[4] != '/')
  ------------------
  |  Branch (983:7): [True: 7.64k, False: 28.7k]
  |  Branch (983:25): [True: 55, False: 28.6k]
  |  Branch (983:43): [True: 15, False: 28.6k]
  |  Branch (983:61): [True: 0, False: 28.6k]
  |  Branch (983:79): [True: 10, False: 28.6k]
  ------------------
  984|  7.72k|		{
  985|  7.72k|			PCPP_LOG_DEBUG("HTTP response does not begin with 'HTTP/'");
  ------------------
  |  |  426|  7.72k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|  7.72k|	do                                                                                                                 \
  |  |  |  |  414|  7.72k|	{                                                                                                                  \
  |  |  |  |  415|  7.72k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  7.72k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  7.72k|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 7.72k]
  |  |  |  |  ------------------
  |  |  |  |  417|  7.72k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|  7.72k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 7.72k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  986|  7.72k|			return HttpVersionUnknown;
  987|  7.72k|		}
  988|       |
  989|  28.6k|		const char* verPos = data + 5;
  990|  28.6k|		auto versionAsEnum = HttpVersionStringToEnum.find(std::string(verPos, verPos + 3));
  991|  28.6k|		if (versionAsEnum == HttpVersionStringToEnum.end())
  ------------------
  |  Branch (991:7): [True: 132, False: 28.5k]
  ------------------
  992|    132|		{
  993|    132|			return HttpVersionUnknown;
  994|    132|		}
  995|  28.5k|		return versionAsEnum->second;
  996|  28.6k|	}
HttpLayer.cpp:_ZZN4pcpp21HttpResponseFirstLine15parseStatusCodeEPKcmENK3$_0clEh:
  872|  85.4k|		                                        [](unsigned char c) { return !std::isdigit(c); }) != codeString.end()))
_ZNK4pcpp26HttpResponseStatusCodeHashclERKNS_22HttpResponseStatusCodeE:
  555|    178|		{
  556|    178|			return static_cast<int>(status);
  557|    178|		}

_ZN4pcpp7IPLayer12getIPVersionEPKhm:
    6|      8|	{
    7|       |		// The data requires at least 1 byte of valid buffer
    8|      8|		if (data == nullptr || dataLen < 1)
  ------------------
  |  Branch (8:7): [True: 0, False: 8]
  |  Branch (8:26): [True: 0, False: 8]
  ------------------
    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|      8|		uint8_t version = data[0] >> 4;
   15|       |
   16|      8|		switch (version)
   17|      8|		{
   18|      0|		case 4:
  ------------------
  |  Branch (18:3): [True: 0, False: 8]
  ------------------
   19|      0|			return IPv4;
   20|      0|		case 6:
  ------------------
  |  Branch (20:3): [True: 0, False: 8]
  ------------------
   21|      0|			return IPv6;
   22|      8|		default:
  ------------------
  |  Branch (22:3): [True: 8, False: 0]
  ------------------
   23|      8|			return UnknownProtocol;
   24|      8|		}
   25|      8|	}

_ZN4pcpp25AuthenticationHeaderLayer14parseNextLayerEv:
   55|  1.42k|	{
   56|  1.42k|		size_t headerLen = getHeaderLen();
   57|  1.42k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (57:7): [True: 0, False: 1.42k]
  ------------------
   58|      0|			return;
   59|       |
   60|  1.42k|		uint8_t* payload = m_Data + headerLen;
   61|  1.42k|		size_t payloadLen = m_DataLen - headerLen;
   62|       |
   63|  1.42k|		switch (getAHHeader()->nextHeader)
   64|  1.42k|		{
   65|  1.41k|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (65:3): [True: 1.41k, False: 13]
  ------------------
   66|  1.41k|		{
   67|  1.41k|			tryConstructNextLayerWithFallback<UdpLayer, PayloadLayer>(payload, payloadLen);
   68|  1.41k|			break;
   69|      0|		}
   70|      0|		case PACKETPP_IPPROTO_TCP:
  ------------------
  |  Branch (70:3): [True: 0, False: 1.42k]
  ------------------
   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: 1.42k]
  ------------------
   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|      0|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (98:3): [True: 0, False: 1.42k]
  ------------------
   99|      0|		{
  100|      0|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen);
  101|      0|			break;
  102|      0|		}
  103|     13|		default:
  ------------------
  |  Branch (103:3): [True: 13, False: 1.41k]
  ------------------
  104|     13|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  105|  1.42k|		}
  106|  1.42k|	}
_ZNK4pcpp25AuthenticationHeaderLayer8toStringEv:
  109|    570|	{
  110|    570|		return "Authentication Header Layer";
  111|    570|	}
_ZNK4pcpp8ESPLayer6getSPIEv:
  131|     38|	{
  132|       |		return be32toh(getESPHeader()->spi);
  133|     38|	}
_ZN4pcpp8ESPLayer14parseNextLayerEv:
  141|     95|	{
  142|     95|		size_t headerLen = getHeaderLen();
  143|     95|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (143:7): [True: 0, False: 95]
  ------------------
  144|      0|			return;
  145|       |
  146|     95|		constructNextLayer<PayloadLayer>(m_Data + headerLen, m_DataLen - headerLen);
  147|     95|	}
_ZNK4pcpp8ESPLayer8toStringEv:
  150|     38|	{
  151|     38|		std::ostringstream stream;
  152|     38|		stream << "ESP Layer, SPI: 0x" << std::hex << getSPI();
  153|     38|		return stream.str();
  154|     38|	}

_ZN4pcpp9IPv4Layer17initLayerInPacketEb:
  231|   782k|	{
  232|   782k|		m_Protocol = IPv4;
  233|   782k|		m_NumOfTrailingBytes = 0;
  234|   782k|		m_TempHeaderExtension = 0;
  235|   782k|		if (setTotalLenAsDataLen)
  ------------------
  |  Branch (235:7): [True: 782k, False: 0]
  ------------------
  236|   782k|		{
  237|   782k|			size_t totalLen = be16toh(getIPv4Header()->totalLength);
  238|       |			// if totalLen == 0 this usually means TCP Segmentation Offload (TSO). In this case we should ignore the
  239|       |			// value of totalLen and look at the data captured on the wire
  240|   782k|			if ((totalLen < m_DataLen) && (totalLen != 0))
  ------------------
  |  Branch (240:8): [True: 96.2k, False: 686k]
  |  Branch (240:34): [True: 80.9k, False: 15.3k]
  ------------------
  241|  80.9k|			{
  242|  80.9k|				auto headerLen = (std::min)(getHeaderLen(), m_DataLen);
  243|       |				// Make sure totalLen is larger than header len, otherwise it's a malformed packet
  244|  80.9k|				m_DataLen = (std::max)(totalLen, headerLen);
  245|  80.9k|			}
  246|   782k|		}
  247|   782k|	}
_ZN4pcpp9IPv4LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  268|   782k|	    : Layer(data, dataLen, prevLayer, packet)
  269|   782k|	{
  270|   782k|		initLayerInPacket(true);
  271|   782k|	}
_ZN4pcpp9IPv4Layer14parseNextLayerEv:
  296|   782k|	{
  297|   782k|		size_t hdrLen = getHeaderLen();
  298|   782k|		if (m_DataLen <= hdrLen || hdrLen == 0)
  ------------------
  |  Branch (298:7): [True: 97, False: 782k]
  |  Branch (298:30): [True: 0, False: 782k]
  ------------------
  299|     97|			return;
  300|       |
  301|   782k|		iphdr* ipHdr = getIPv4Header();
  302|       |
  303|   782k|		uint8_t* payload = m_Data + hdrLen;
  304|   782k|		size_t payloadLen = m_DataLen - hdrLen;
  305|       |
  306|       |		// If it's a fragment don't parse upper layers, unless if it's the first fragment
  307|       |		// TODO: assuming first fragment contains at least L4 header, what if it's not true?
  308|   782k|		if (isFragment())
  ------------------
  |  Branch (308:7): [True: 13.5k, False: 769k]
  ------------------
  309|  13.5k|		{
  310|  13.5k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  311|  13.5k|			return;
  312|  13.5k|		}
  313|       |
  314|   769k|		switch (ipHdr->protocol)
  ------------------
  |  Branch (314:11): [True: 766k, False: 2.33k]
  ------------------
  315|   769k|		{
  316|   239k|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (316:3): [True: 239k, False: 529k]
  ------------------
  317|   239k|			tryConstructNextLayerWithFallback<UdpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  318|   239k|			break;
  319|   445k|		case PACKETPP_IPPROTO_TCP:
  ------------------
  |  Branch (319:3): [True: 445k, False: 323k]
  ------------------
  320|   445k|			tryConstructNextLayerWithFallback<TcpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  321|   445k|			break;
  322|  21.2k|		case PACKETPP_IPPROTO_ICMP:
  ------------------
  |  Branch (322:3): [True: 21.2k, False: 748k]
  ------------------
  323|  21.2k|			tryConstructNextLayerWithFallback<IcmpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  324|  21.2k|			break;
  325|      8|		case PACKETPP_IPPROTO_IPIP:
  ------------------
  |  Branch (325:3): [True: 8, False: 769k]
  ------------------
  326|      8|		{
  327|       |			// todo: no tests for this case
  328|      8|			switch (IPLayer::getIPVersion(payload, payloadLen))
  329|      8|			{
  330|      0|			case IPv4:
  ------------------
  |  Branch (330:4): [True: 0, False: 8]
  ------------------
  331|      0|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  332|      0|				break;
  333|      0|			case IPv6:
  ------------------
  |  Branch (333:4): [True: 0, False: 8]
  ------------------
  334|      0|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  335|      0|				break;
  336|      8|			default:
  ------------------
  |  Branch (336:4): [True: 8, False: 0]
  ------------------
  337|      8|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  338|      8|				break;
  339|      8|			}
  340|      8|			break;
  341|      8|		}
  342|  33.7k|		case PACKETPP_IPPROTO_GRE:
  ------------------
  |  Branch (342:3): [True: 33.7k, False: 735k]
  ------------------
  343|  33.7k|		{
  344|  33.7k|			switch (GreLayer::getGREVersion(payload, payloadLen))
  345|  33.7k|			{
  346|  13.0k|			case GREv0:
  ------------------
  |  Branch (346:4): [True: 13.0k, False: 20.7k]
  ------------------
  347|  13.0k|				tryConstructNextLayerWithFallback<GREv0Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  348|  13.0k|				break;
  349|  20.5k|			case GREv1:
  ------------------
  |  Branch (349:4): [True: 20.5k, False: 13.1k]
  ------------------
  350|  20.5k|				tryConstructNextLayerWithFallback<GREv1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  351|  20.5k|				break;
  352|    123|			default:
  ------------------
  |  Branch (352:4): [True: 123, False: 33.6k]
  ------------------
  353|    123|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  354|    123|				break;
  355|  33.7k|			};
  356|  33.7k|			break;
  357|  33.7k|		}
  358|  9.61k|		case PACKETPP_IPPROTO_IGMP:
  ------------------
  |  Branch (358:3): [True: 9.61k, False: 759k]
  ------------------
  359|  9.61k|		{
  360|  9.61k|			bool igmpQuery = false;
  361|  9.61k|			ProtocolType igmpVer = IgmpLayer::getIGMPVerFromData(
  362|  9.61k|			    payload, std::min<size_t>(payloadLen, be16toh(getIPv4Header()->totalLength) - hdrLen), igmpQuery);
  363|       |
  364|  9.61k|			switch (igmpVer)
  365|  9.61k|			{
  366|  2.87k|			case IGMPv1:
  ------------------
  |  Branch (366:4): [True: 2.87k, False: 6.74k]
  ------------------
  367|  2.87k|				tryConstructNextLayerWithFallback<IgmpV1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  368|  2.87k|				break;
  369|  4.82k|			case IGMPv2:
  ------------------
  |  Branch (369:4): [True: 4.82k, False: 4.78k]
  ------------------
  370|  4.82k|				tryConstructNextLayerWithFallback<IgmpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  371|  4.82k|				break;
  372|  1.78k|			case IGMPv3:
  ------------------
  |  Branch (372:4): [True: 1.78k, False: 7.83k]
  ------------------
  373|  1.78k|			{
  374|  1.78k|				if (igmpQuery)
  ------------------
  |  Branch (374:9): [True: 0, False: 1.78k]
  ------------------
  375|      0|					tryConstructNextLayerWithFallback<IgmpV3QueryLayer, PayloadLayer>(payload, payloadLen,
  376|      0|					                                                                  getAttachedPacket());
  377|  1.78k|				else
  378|  1.78k|					tryConstructNextLayerWithFallback<IgmpV3ReportLayer, PayloadLayer>(payload, payloadLen,
  379|  1.78k|					                                                                   getAttachedPacket());
  380|  1.78k|				break;
  381|      0|			}
  382|    130|			default:
  ------------------
  |  Branch (382:4): [True: 130, False: 9.48k]
  ------------------
  383|    130|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  384|    130|				break;
  385|  9.61k|			}
  386|  9.61k|			break;
  387|  9.61k|		}
  388|  9.61k|		case PACKETPP_IPPROTO_AH:
  ------------------
  |  Branch (388:3): [True: 1.42k, False: 767k]
  ------------------
  389|  1.42k|			tryConstructNextLayerWithFallback<AuthenticationHeaderLayer, PayloadLayer>(payload, payloadLen,
  390|  1.42k|			                                                                           getAttachedPacket());
  391|  1.42k|			break;
  392|     80|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (392:3): [True: 80, False: 769k]
  ------------------
  393|     80|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  394|     80|			break;
  395|  6.60k|		case PACKETPP_IPPROTO_IPV6:
  ------------------
  |  Branch (395:3): [True: 6.60k, False: 762k]
  ------------------
  396|  6.60k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  397|  6.60k|			break;
  398|  9.60k|		case PACKETPP_IPPROTO_VRRP:
  ------------------
  |  Branch (398:3): [True: 9.60k, False: 759k]
  ------------------
  399|  9.60k|		{
  400|  9.60k|			switch (VrrpLayer::getVersionFromData(payload, payloadLen))
  401|  9.60k|			{
  402|  6.42k|			case VRRPv2:
  ------------------
  |  Branch (402:4): [True: 6.42k, False: 3.18k]
  ------------------
  403|  6.42k|				tryConstructNextLayerWithFallback<VrrpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  404|  6.42k|				break;
  405|  3.07k|			case VRRPv3:
  ------------------
  |  Branch (405:4): [True: 3.07k, False: 6.53k]
  ------------------
  406|  3.07k|				tryConstructNextLayerWithFallback<VrrpV3Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket(),
  407|  3.07k|				                                                             IPAddress::IPv4AddressType);
  408|  3.07k|				break;
  409|    108|			default:
  ------------------
  |  Branch (409:4): [True: 108, False: 9.49k]
  ------------------
  410|    108|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  411|    108|				break;
  412|  9.60k|			}
  413|  9.60k|			break;
  414|  9.60k|		}
  415|   769k|		}
  416|       |
  417|       |		// If no next layer was constructed, assume it's a payload layer
  418|   769k|		if (!hasNextLayer())
  ------------------
  |  Branch (418:7): [True: 2.33k, False: 766k]
  ------------------
  419|  2.33k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  420|   769k|	}
_ZN4pcpp9IPv4Layer22computeCalculateFieldsEv:
  423|   146k|	{
  424|   146k|		auto* ipHdr = getIPv4Header();
  425|   146k|		ipHdr->ipVersion = (4 & 0x0f);
  426|   146k|		ipHdr->totalLength = htobe16(m_DataLen);
  427|   146k|		ipHdr->headerChecksum = 0;
  428|       |
  429|   146k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (429:7): [True: 146k, False: 1]
  ------------------
  430|   146k|		{
  431|   146k|			switch (m_NextLayer->getProtocol())
  432|   146k|			{
  433|  84.4k|			case TCP:
  ------------------
  |  Branch (433:4): [True: 84.4k, False: 62.2k]
  ------------------
  434|  84.4k|				ipHdr->protocol = PACKETPP_IPPROTO_TCP;
  435|  84.4k|				break;
  436|  43.8k|			case UDP:
  ------------------
  |  Branch (436:4): [True: 43.8k, False: 102k]
  ------------------
  437|  43.8k|				ipHdr->protocol = PACKETPP_IPPROTO_UDP;
  438|  43.8k|				break;
  439|  3.91k|			case ICMP:
  ------------------
  |  Branch (439:4): [True: 3.91k, False: 142k]
  ------------------
  440|  3.91k|				ipHdr->protocol = PACKETPP_IPPROTO_ICMP;
  441|  3.91k|				break;
  442|  2.72k|			case GREv0:
  ------------------
  |  Branch (442:4): [True: 2.72k, False: 144k]
  ------------------
  443|  5.53k|			case GREv1:
  ------------------
  |  Branch (443:4): [True: 2.81k, False: 143k]
  ------------------
  444|  5.53k|				ipHdr->protocol = PACKETPP_IPPROTO_GRE;
  445|  5.53k|				break;
  446|    579|			case IGMPv1:
  ------------------
  |  Branch (446:4): [True: 579, False: 146k]
  ------------------
  447|  1.55k|			case IGMPv2:
  ------------------
  |  Branch (447:4): [True: 978, False: 145k]
  ------------------
  448|  2.00k|			case IGMPv3:
  ------------------
  |  Branch (448:4): [True: 443, False: 146k]
  ------------------
  449|  2.00k|				ipHdr->protocol = PACKETPP_IPPROTO_IGMP;
  450|  2.00k|				break;
  451|  1.35k|			case VRRPv2:
  ------------------
  |  Branch (451:4): [True: 1.35k, False: 145k]
  ------------------
  452|  2.09k|			case VRRPv3:
  ------------------
  |  Branch (452:4): [True: 735, False: 145k]
  ------------------
  453|  2.09k|				ipHdr->protocol = PACKETPP_IPPROTO_VRRP;
  454|  2.09k|				break;
  455|  4.87k|			default:
  ------------------
  |  Branch (455:4): [True: 4.87k, False: 141k]
  ------------------
  456|  4.87k|				break;
  457|   146k|			}
  458|   146k|		}
  459|       |
  460|   146k|		auto headerLen = (std::min)(static_cast<size_t>(ipHdr->internetHeaderLength * 4), m_DataLen);
  461|   146k|		ScalarBuffer<uint16_t> scalar = { reinterpret_cast<uint16_t*>(ipHdr), headerLen };
  462|       |		ipHdr->headerChecksum = htobe16(computeChecksum(&scalar, 1));
  463|   146k|	}
_ZNK4pcpp9IPv4Layer10isFragmentEv:
  466|  1.08M|	{
  467|  1.08M|		return ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) != 0 || getFragmentOffset() != 0);
  ------------------
  |  |  156|  1.08M|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (467:11): [True: 11.3k, False: 1.07M]
  |  Branch (467:65): [True: 15.1k, False: 1.05M]
  ------------------
  468|  1.08M|	}
_ZNK4pcpp9IPv4Layer15isFirstFragmentEv:
  471|  4.35k|	{
  472|  4.35k|		return isFragment() && (getFragmentOffset() == 0);
  ------------------
  |  Branch (472:10): [True: 4.35k, False: 0]
  |  Branch (472:26): [True: 136, False: 4.21k]
  ------------------
  473|  4.35k|	}
_ZNK4pcpp9IPv4Layer14isLastFragmentEv:
  476|  4.21k|	{
  477|  4.21k|		return isFragment() && ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) == 0);
  ------------------
  |  |  156|  4.21k|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (477:10): [True: 4.21k, False: 0]
  |  Branch (477:26): [True: 2.55k, False: 1.65k]
  ------------------
  478|  4.21k|	}
_ZNK4pcpp9IPv4Layer16getFragmentFlagsEv:
  481|  1.08M|	{
  482|  1.08M|		return getIPv4Header()->fragmentOffset & 0xE0;
  483|  1.08M|	}
_ZNK4pcpp9IPv4Layer17getFragmentOffsetEv:
  486|  1.08M|	{
  487|       |		return be16toh(getIPv4Header()->fragmentOffset & (uint16_t)0xFF1F) * 8;
  488|  1.08M|	}
_ZNK4pcpp9IPv4Layer8toStringEv:
  491|   293k|	{
  492|   293k|		std::string fragment = "";
  493|   293k|		if (isFragment())
  ------------------
  |  Branch (493:7): [True: 4.35k, False: 289k]
  ------------------
  494|  4.35k|		{
  495|  4.35k|			if (isFirstFragment())
  ------------------
  |  Branch (495:8): [True: 136, False: 4.21k]
  ------------------
  496|    136|				fragment = "First fragment";
  497|  4.21k|			else if (isLastFragment())
  ------------------
  |  Branch (497:13): [True: 2.55k, False: 1.65k]
  ------------------
  498|  2.55k|				fragment = "Last fragment";
  499|  1.65k|			else
  500|  1.65k|				fragment = "Fragment";
  501|       |
  502|  4.35k|			std::stringstream sstm;
  503|  4.35k|			sstm << fragment << " [offset= " << getFragmentOffset() << "], ";
  504|  4.35k|			fragment = sstm.str();
  505|  4.35k|		}
  506|       |
  507|   293k|		return "IPv4 Layer, " + fragment + "Src: " + getSrcIPv4Address().toString() +
  508|   293k|		       ", Dst: " + getDstIPv4Address().toString();
  509|   293k|	}

_ZNK4pcpp13IPv6Extension10getDataPtrEv:
   30|  17.4k|	{
   31|  17.4k|		if (m_DataContainer != nullptr)
  ------------------
  |  Branch (31:7): [True: 17.4k, False: 0]
  ------------------
   32|  17.4k|			return m_DataContainer->getDataPtr(m_Offset);
   33|       |
   34|      0|		return m_ShadowData;
   35|  17.4k|	}
_ZN4pcpp13IPv6ExtensionD2Ev:
   43|  4.65k|	{
   44|  4.65k|		if (m_ShadowData != nullptr)
  ------------------
  |  Branch (44:7): [True: 0, False: 4.65k]
  ------------------
   45|      0|			delete[] m_ShadowData;
   46|  4.65k|	}
_ZNK4pcpp13IPv6Extension24getExtensionTypeAsStringEv:
   49|  2.46k|	{
   50|  2.46k|		switch (m_ExtType)
   51|  2.46k|		{
   52|    504|		case IPv6Fragmentation:
  ------------------
  |  Branch (52:3): [True: 504, False: 1.96k]
  ------------------
   53|    504|			return "Fragment";
   54|  1.51k|		case IPv6HopByHop:
  ------------------
  |  Branch (54:3): [True: 1.51k, False: 954]
  ------------------
   55|  1.51k|			return "Hop-By-Hop";
   56|      0|		case IPv6Destination:
  ------------------
  |  Branch (56:3): [True: 0, False: 2.46k]
  ------------------
   57|      0|			return "Destination";
   58|      0|		case IPv6Routing:
  ------------------
  |  Branch (58:3): [True: 0, False: 2.46k]
  ------------------
   59|      0|			return "Routing";
   60|    450|		case IPv6AuthenticationHdr:
  ------------------
  |  Branch (60:3): [True: 450, False: 2.01k]
  ------------------
   61|    450|			return "Authentication";
   62|      0|		default:
  ------------------
  |  Branch (62:3): [True: 0, False: 2.46k]
  ------------------
   63|      0|			return "Unknown";
   64|  2.46k|		}
   65|  2.46k|	}
_ZN4pcpp19IPv6TLVOptionHeaderC2EPNS_14IDataContainerEm:
  205|  2.87k|	    : IPv6Extension(dataContainer, offset)
  206|  2.87k|	{}

_ZN4pcpp9IPv6LayerC2EPhmPNS_5LayerEPNS_6PacketE:
   30|   165k|	    : Layer(data, dataLen, prevLayer, packet, IPv6)
   31|   165k|	{
   32|   165k|		m_FirstExtension = nullptr;
   33|   165k|		m_LastExtension = nullptr;
   34|   165k|		m_ExtensionsLen = 0;
   35|       |
   36|   165k|		parseExtensions();
   37|       |
   38|   165k|		size_t totalLen = be16toh(getIPv6Header()->payloadLength) + getHeaderLen();
   39|   165k|		if (totalLen < m_DataLen)
  ------------------
  |  Branch (39:7): [True: 6.37k, False: 158k]
  ------------------
   40|  6.37k|			m_DataLen = totalLen;
   41|   165k|	}
_ZN4pcpp9IPv6LayerD2Ev:
   65|   165k|	{
   66|   165k|		deleteExtensions();
   67|   165k|	}
_ZN4pcpp9IPv6Layer15parseExtensionsEv:
   81|   165k|	{
   82|   165k|		uint8_t nextHdr = getIPv6Header()->nextHeader;
   83|   165k|		IPv6Extension* curExt = nullptr;
   84|       |
   85|   165k|		size_t offset = sizeof(ip6_hdr);
   86|       |
   87|   169k|		while (offset <= m_DataLen - 2 * sizeof(uint8_t))  // 2*sizeof(uint8_t) is the min len for IPv6 extensions
  ------------------
  |  Branch (87:10): [True: 166k, False: 3.31k]
  ------------------
   88|   166k|		{
   89|   166k|			IPv6Extension* newExt = nullptr;
   90|       |
   91|   166k|			switch (nextHdr)
   92|   166k|			{
   93|    881|			case PACKETPP_IPPROTO_FRAGMENT:
  ------------------
  |  Branch (93:4): [True: 881, False: 165k]
  ------------------
   94|    881|			{
   95|    881|				newExt = new IPv6FragmentationHeader(this, offset);
   96|    881|				break;
   97|      0|			}
   98|  2.87k|			case PACKETPP_IPPROTO_HOPOPTS:
  ------------------
  |  Branch (98:4): [True: 2.87k, False: 163k]
  ------------------
   99|  2.87k|			{
  100|  2.87k|				newExt = new IPv6HopByHopHeader(this, offset);
  101|  2.87k|				break;
  102|      0|			}
  103|      0|			case PACKETPP_IPPROTO_DSTOPTS:
  ------------------
  |  Branch (103:4): [True: 0, False: 166k]
  ------------------
  104|      0|			{
  105|      0|				newExt = new IPv6DestinationHeader(this, offset);
  106|      0|				break;
  107|      0|			}
  108|      0|			case PACKETPP_IPPROTO_ROUTING:
  ------------------
  |  Branch (108:4): [True: 0, False: 166k]
  ------------------
  109|      0|			{
  110|      0|				newExt = new IPv6RoutingHeader(this, offset);
  111|      0|				break;
  112|      0|			}
  113|    902|			case PACKETPP_IPPROTO_AH:
  ------------------
  |  Branch (113:4): [True: 902, False: 165k]
  ------------------
  114|    902|			{
  115|    902|				newExt = new IPv6AuthenticationHeader(this, offset);
  116|    902|				break;
  117|      0|			}
  118|   161k|			default:
  ------------------
  |  Branch (118:4): [True: 161k, False: 4.65k]
  ------------------
  119|   161k|			{
  120|   161k|				break;
  121|      0|			}
  122|   166k|			}
  123|       |
  124|   166k|			if (newExt == nullptr)
  ------------------
  |  Branch (124:8): [True: 161k, False: 4.65k]
  ------------------
  125|   161k|				break;
  126|       |
  127|  4.65k|			if (m_FirstExtension == nullptr)
  ------------------
  |  Branch (127:8): [True: 4.11k, False: 540]
  ------------------
  128|  4.11k|			{
  129|  4.11k|				m_FirstExtension = newExt;
  130|  4.11k|				curExt = m_FirstExtension;
  131|  4.11k|			}
  132|    540|			else
  133|    540|			{
  134|    540|				if (curExt == nullptr)
  ------------------
  |  Branch (134:9): [True: 0, False: 540]
  ------------------
  135|      0|				{
  136|      0|					throw std::logic_error("curExt is nullptr");
  137|      0|				}
  138|    540|				curExt->setNextHeader(newExt);
  139|    540|				curExt = curExt->getNextHeader();
  140|    540|			}
  141|       |
  142|  4.65k|			offset += newExt->getExtensionLen();
  143|  4.65k|			nextHdr = newExt->getBaseHeader()->nextHeader;
  144|  4.65k|			m_ExtensionsLen += newExt->getExtensionLen();
  145|  4.65k|		}
  146|       |
  147|   165k|		m_LastExtension = curExt;
  148|   165k|	}
_ZN4pcpp9IPv6Layer16deleteExtensionsEv:
  151|   165k|	{
  152|   165k|		IPv6Extension* curExt = m_FirstExtension;
  153|   169k|		while (curExt != nullptr)
  ------------------
  |  Branch (153:10): [True: 4.65k, False: 165k]
  ------------------
  154|  4.65k|		{
  155|  4.65k|			IPv6Extension* tmpExt = curExt->getNextHeader();
  156|  4.65k|			delete curExt;
  157|  4.65k|			curExt = tmpExt;
  158|  4.65k|		}
  159|       |
  160|   165k|		m_FirstExtension = nullptr;
  161|   165k|		m_LastExtension = nullptr;
  162|   165k|		m_ExtensionsLen = 0;
  163|   165k|	}
_ZN4pcpp9IPv6Layer14parseNextLayerEv:
  196|   165k|	{
  197|   165k|		size_t headerLen = getHeaderLen();
  198|       |
  199|   165k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (199:7): [True: 3.40k, False: 161k]
  ------------------
  200|  3.40k|			return;
  201|       |
  202|   161k|		uint8_t* payload = m_Data + headerLen;
  203|   161k|		size_t payloadLen = m_DataLen - headerLen;
  204|       |
  205|   161k|		uint8_t nextHdr;
  206|   161k|		if (m_LastExtension != nullptr)
  ------------------
  |  Branch (206:7): [True: 3.67k, False: 158k]
  ------------------
  207|  3.67k|		{
  208|  3.67k|			if (m_LastExtension->getExtensionType() == IPv6Extension::IPv6Fragmentation)
  ------------------
  |  Branch (208:8): [True: 879, False: 2.79k]
  ------------------
  209|    879|			{
  210|    879|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  211|    879|				return;
  212|    879|			}
  213|       |
  214|  2.79k|			nextHdr = m_LastExtension->getBaseHeader()->nextHeader;
  215|  2.79k|		}
  216|   158k|		else
  217|   158k|		{
  218|   158k|			nextHdr = getIPv6Header()->nextHeader;
  219|   158k|		}
  220|       |
  221|   160k|		switch (nextHdr)
  222|   160k|		{
  223|  9.73k|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (223:3): [True: 9.73k, False: 151k]
  ------------------
  224|  9.73k|		{
  225|  9.73k|			tryConstructNextLayerWithFallback<UdpLayer, PayloadLayer>(payload, payloadLen);
  226|  9.73k|			break;
  227|      0|		}
  228|   134k|		case PACKETPP_IPPROTO_TCP:
  ------------------
  |  Branch (228:3): [True: 134k, False: 26.3k]
  ------------------
  229|   134k|		{
  230|   134k|			tryConstructNextLayerWithFallback<TcpLayer, PayloadLayer>(payload, payloadLen);
  231|   134k|			break;
  232|      0|		}
  233|      3|		case PACKETPP_IPPROTO_IPIP:
  ------------------
  |  Branch (233:3): [True: 3, False: 160k]
  ------------------
  234|      3|		{
  235|      3|			uint8_t ipVersion = *payload >> 4;
  236|      3|			switch (ipVersion)
  237|      3|			{
  238|      0|			case 4:
  ------------------
  |  Branch (238:4): [True: 0, False: 3]
  ------------------
  239|      0|			{
  240|      0|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  241|      0|				break;
  242|      0|			}
  243|      0|			case 6:
  ------------------
  |  Branch (243:4): [True: 0, False: 3]
  ------------------
  244|      0|			{
  245|      0|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  246|      0|				break;
  247|      0|			}
  248|      3|			default:
  ------------------
  |  Branch (248:4): [True: 3, False: 0]
  ------------------
  249|      3|			{
  250|      3|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  251|      3|				break;
  252|      0|			}
  253|      3|			}
  254|      3|			break;
  255|      3|		}
  256|  2.85k|		case PACKETPP_IPPROTO_GRE:
  ------------------
  |  Branch (256:3): [True: 2.85k, False: 158k]
  ------------------
  257|  2.85k|		{
  258|  2.85k|			ProtocolType greVer = GreLayer::getGREVersion(payload, payloadLen);
  259|       |
  260|  2.85k|			switch (greVer)
  261|  2.85k|			{
  262|  2.83k|			case GREv0:
  ------------------
  |  Branch (262:4): [True: 2.83k, False: 18]
  ------------------
  263|  2.83k|			{
  264|  2.83k|				tryConstructNextLayerWithFallback<GREv0Layer, PayloadLayer>(payload, payloadLen);
  265|  2.83k|				break;
  266|      0|			}
  267|      0|			case GREv1:
  ------------------
  |  Branch (267:4): [True: 0, False: 2.85k]
  ------------------
  268|      0|			{
  269|      0|				tryConstructNextLayerWithFallback<GREv1Layer, PayloadLayer>(payload, payloadLen);
  270|      0|				break;
  271|      0|			}
  272|     18|			default:
  ------------------
  |  Branch (272:4): [True: 18, False: 2.83k]
  ------------------
  273|     18|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  274|     18|				break;
  275|  2.85k|			}
  276|  2.85k|			break;
  277|  2.85k|		}
  278|  2.85k|		case PACKETPP_IPPROTO_AH:
  ------------------
  |  Branch (278:3): [True: 0, False: 160k]
  ------------------
  279|      0|		{
  280|      0|			tryConstructNextLayerWithFallback<AuthenticationHeaderLayer, PayloadLayer>(payload, payloadLen);
  281|      0|			break;
  282|  2.85k|		}
  283|     15|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (283:3): [True: 15, False: 160k]
  ------------------
  284|     15|		{
  285|     15|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen);
  286|     15|			break;
  287|  2.85k|		}
  288|  8.96k|		case PACKETPP_IPPROTO_ICMPV6:
  ------------------
  |  Branch (288:3): [True: 8.96k, False: 152k]
  ------------------
  289|  8.96k|		{
  290|  8.96k|			constructNextLayerFromFactory(IcmpV6Layer::parseIcmpV6Layer, payload, payloadLen);
  291|  8.96k|			break;
  292|  2.85k|		}
  293|  4.64k|		case PACKETPP_IPPROTO_VRRP:
  ------------------
  |  Branch (293:3): [True: 4.64k, False: 156k]
  ------------------
  294|  4.64k|		{
  295|  4.64k|			auto vrrpVer = VrrpLayer::getVersionFromData(payload, payloadLen);
  296|       |
  297|  4.64k|			if (vrrpVer == VRRPv3)
  ------------------
  |  Branch (297:8): [True: 4.64k, False: 0]
  ------------------
  298|  4.64k|			{
  299|  4.64k|				constructNextLayer<VrrpV3Layer>(payload, payloadLen, IPAddress::IPv6AddressType);
  300|  4.64k|			}
  301|      0|			else
  302|      0|			{
  303|      0|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  304|      0|			}
  305|  4.64k|			break;
  306|  2.85k|		}
  307|    151|		default:
  ------------------
  |  Branch (307:3): [True: 151, False: 160k]
  ------------------
  308|    151|		{
  309|    151|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  310|    151|			break;
  311|  2.85k|		}
  312|   160k|		}
  313|   160k|	}
_ZN4pcpp9IPv6Layer22computeCalculateFieldsEv:
  316|  32.6k|	{
  317|  32.6k|		ip6_hdr* ipHdr = getIPv6Header();
  318|  32.6k|		ipHdr->payloadLength = htobe16(m_DataLen - sizeof(ip6_hdr));
  319|  32.6k|		ipHdr->ipVersion = (6 & 0x0f);
  320|       |
  321|  32.6k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (321:7): [True: 32.1k, False: 503]
  ------------------
  322|  32.1k|		{
  323|  32.1k|			uint8_t nextHeader = 0;
  324|  32.1k|			switch (m_NextLayer->getProtocol())
  325|  32.1k|			{
  326|  26.0k|			case TCP:
  ------------------
  |  Branch (326:4): [True: 26.0k, False: 6.08k]
  ------------------
  327|  26.0k|				nextHeader = PACKETPP_IPPROTO_TCP;
  328|  26.0k|				break;
  329|  1.94k|			case UDP:
  ------------------
  |  Branch (329:4): [True: 1.94k, False: 30.2k]
  ------------------
  330|  1.94k|				nextHeader = PACKETPP_IPPROTO_UDP;
  331|  1.94k|				break;
  332|      0|			case ICMP:
  ------------------
  |  Branch (332:4): [True: 0, False: 32.1k]
  ------------------
  333|      0|				nextHeader = PACKETPP_IPPROTO_ICMP;
  334|      0|				break;
  335|  2.01k|			case ICMPv6:
  ------------------
  |  Branch (335:4): [True: 2.01k, False: 30.1k]
  ------------------
  336|  2.01k|				nextHeader = PACKETPP_IPPROTO_ICMPV6;
  337|  2.01k|				break;
  338|    406|			case GREv0:
  ------------------
  |  Branch (338:4): [True: 406, False: 31.7k]
  ------------------
  339|    406|			case GREv1:
  ------------------
  |  Branch (339:4): [True: 0, False: 32.1k]
  ------------------
  340|    406|				nextHeader = PACKETPP_IPPROTO_GRE;
  341|    406|				break;
  342|  1.15k|			case VRRPv3:
  ------------------
  |  Branch (342:4): [True: 1.15k, False: 31.0k]
  ------------------
  343|  1.15k|				nextHeader = PACKETPP_IPPROTO_VRRP;
  344|  1.15k|				break;
  345|    560|			default:
  ------------------
  |  Branch (345:4): [True: 560, False: 31.6k]
  ------------------
  346|    560|				break;
  347|  32.1k|			}
  348|       |
  349|  32.1k|			if (nextHeader != 0)
  ------------------
  |  Branch (349:8): [True: 31.6k, False: 560]
  ------------------
  350|  31.6k|			{
  351|  31.6k|				if (m_LastExtension != nullptr)
  ------------------
  |  Branch (351:9): [True: 689, False: 30.9k]
  ------------------
  352|    689|					m_LastExtension->getBaseHeader()->nextHeader = nextHeader;
  353|  30.9k|				else
  354|  30.9k|					ipHdr->nextHeader = nextHeader;
  355|  31.6k|			}
  356|  32.1k|		}
  357|  32.6k|	}
_ZNK4pcpp9IPv6Layer8toStringEv:
  360|  65.3k|	{
  361|  65.3k|		std::string result =
  362|  65.3k|		    "IPv6 Layer, Src: " + getSrcIPv6Address().toString() + ", Dst: " + getDstIPv6Address().toString();
  363|  65.3k|		if (m_ExtensionsLen > 0)
  ------------------
  |  Branch (363:7): [True: 2.18k, False: 63.1k]
  ------------------
  364|  2.18k|		{
  365|  2.18k|			result += ", Options=[";
  366|  4.65k|			for (auto const* curExt = m_FirstExtension; curExt != nullptr; curExt = curExt->getNextHeader())
  ------------------
  |  Branch (366:48): [True: 2.46k, False: 2.18k]
  ------------------
  367|  2.46k|			{
  368|  2.46k|				result += curExt->getExtensionTypeAsString();
  369|  2.46k|				result += ",";
  370|  2.46k|			}
  371|       |
  372|       |			// replace the last ','
  373|  2.18k|			result[result.size() - 1] = ']';
  374|  2.18k|		}
  375|       |
  376|  65.3k|		return result;
  377|  65.3k|	}

_ZN4pcpp29icmp_router_address_structure16setRouterAddressENS_11IPv4AddressEj:
   25|    178|	{
   26|    178|		routerAddress = addr.toInt();
   27|       |		preferenceLevel = htobe32(preference);
   28|    178|	}
_ZNK4pcpp9IcmpLayer14getMessageTypeEv:
   37|  94.8k|	{
   38|  94.8k|		uint8_t type = getIcmpHeader()->type;
   39|  94.8k|		if (type > 18)
  ------------------
  |  Branch (39:7): [True: 0, False: 94.8k]
  ------------------
   40|      0|			return ICMP_UNSUPPORTED;
   41|       |
   42|  94.8k|		return static_cast<IcmpMessageType>(type);
   43|  94.8k|	}
_ZN4pcpp9IcmpLayer14cleanIcmpLayerEv:
   46|  2.48k|	{
   47|       |		// remove all layers after
   48|       |
   49|  2.48k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (49:7): [True: 0, False: 2.48k]
  ------------------
   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|  2.48k|		size_t headerLen = this->getHeaderLen();
   59|  2.48k|		if (headerLen > sizeof(icmphdr))
  ------------------
  |  Branch (59:7): [True: 1.32k, False: 1.15k]
  ------------------
   60|  1.32k|		{
   61|  1.32k|			if (!this->shortenLayer(sizeof(icmphdr), headerLen - sizeof(icmphdr)))
  ------------------
  |  Branch (61:8): [True: 0, False: 1.32k]
  ------------------
   62|      0|				return false;
   63|  1.32k|		}
   64|       |
   65|  2.48k|		return true;
   66|  2.48k|	}
_ZN4pcpp9IcmpLayer16setIpAndL4LayersEPNS_9IPv4LayerEPNS_5LayerE:
   99|    612|	{
  100|    612|		if (getAttachedPacket() == nullptr)
  ------------------
  |  Branch (100:7): [True: 612, False: 0]
  ------------------
  101|    612|		{
  102|    612|			PCPP_LOG_ERROR("Cannot set ICMP data that involves IP and L4 layers on a layer not attached to a packet. "
  ------------------
  |  |  444|    612|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    612|	do                                                                                                                 \
  |  |  |  |  414|    612|	{                                                                                                                  \
  |  |  |  |  415|    612|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    612|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    612|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 612, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    612|		{                                                                                                              \
  |  |  |  |  418|    612|			auto ctx =                                                                                                 \
  |  |  |  |  419|    612|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    612|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    612|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    612|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    612|		}                                                                                                              \
  |  |  |  |  423|    612|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 612]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  103|    612|			               "Please add the ICMP layer to a packet and try again");
  104|    612|			return false;
  105|    612|		}
  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");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423: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");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  116|      0|			return false;
  117|      0|		}
  118|       |
  119|      0|		return true;
  120|      0|	}
_ZN4pcpp9IcmpLayer21getTimestampReplyDataEv:
  195|    388|	{
  196|    388|		if (!isMessageOfType(ICMP_TIMESTAMP_REPLY))
  ------------------
  |  Branch (196:7): [True: 0, False: 388]
  ------------------
  197|      0|			return nullptr;
  198|       |
  199|    388|		return reinterpret_cast<icmp_timestamp_reply*>(m_Data);
  200|    388|	}
_ZN4pcpp9IcmpLayer21setTimestampReplyDataEtt7timevalS1_S1_:
  204|    194|	{
  205|    194|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (205:7): [True: 0, False: 194]
  ------------------
  206|      0|			return nullptr;
  207|       |
  208|    194|		if (!this->extendLayer(m_DataLen, sizeof(icmp_timestamp_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (208:7): [True: 0, False: 194]
  ------------------
  209|      0|			return nullptr;
  210|       |
  211|    194|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_TIMESTAMP_REPLY);
  212|       |
  213|    194|		icmp_timestamp_reply* header = getTimestampReplyData();
  214|    194|		header->code = 0;
  215|    194|		header->id = htobe16(id);
  216|    194|		header->sequence = htobe16(sequence);
  217|    194|		header->originateTimestamp = htobe32(originateTimestamp.tv_sec * 1000 + originateTimestamp.tv_usec / 1000);
  218|    194|		header->receiveTimestamp = htobe32(receiveTimestamp.tv_sec * 1000 + receiveTimestamp.tv_usec / 1000);
  219|    194|		header->transmitTimestamp = htobe32(transmitTimestamp.tv_sec * 1000 + transmitTimestamp.tv_usec / 1000);
  220|       |
  221|    194|		return header;
  222|    194|	}
_ZN4pcpp9IcmpLayer22getDestUnreachableDataEv:
  225|    952|	{
  226|    952|		if (!isMessageOfType(ICMP_DEST_UNREACHABLE))
  ------------------
  |  Branch (226:7): [True: 0, False: 952]
  ------------------
  227|      0|			return nullptr;
  228|       |
  229|    952|		return reinterpret_cast<icmp_destination_unreachable*>(m_Data);
  230|    952|	}
_ZN4pcpp9IcmpLayer22setDestUnreachableDataENS_24IcmpDestUnreachableCodesEtPNS_9IPv4LayerEPNS_5LayerE:
  234|    476|	{
  235|    476|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (235:7): [True: 0, False: 476]
  ------------------
  236|      0|			return nullptr;
  237|       |
  238|    476|		if (!this->extendLayer(m_DataLen, sizeof(icmp_destination_unreachable) - sizeof(icmphdr)))
  ------------------
  |  Branch (238:7): [True: 0, False: 476]
  ------------------
  239|      0|			return nullptr;
  240|       |
  241|    476|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_DEST_UNREACHABLE);
  242|       |
  243|    476|		icmp_destination_unreachable* header = getDestUnreachableData();
  244|    476|		header->code = code;
  245|    476|		header->nextHopMTU = htobe16(nextHopMTU);
  246|    476|		header->unused = 0;
  247|       |
  248|    476|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (248:7): [True: 476, False: 0]
  ------------------
  249|    476|			return nullptr;
  250|       |
  251|      0|		return header;
  252|    476|	}
_ZNK4pcpp9IcmpLayer26getRouterAdvertisementDataEv:
  317|  1.60k|	{
  318|  1.60k|		if (!isMessageOfType(ICMP_ROUTER_ADV))
  ------------------
  |  Branch (318:7): [True: 0, False: 1.60k]
  ------------------
  319|      0|			return nullptr;
  320|       |
  321|  1.60k|		m_RouterAdvData.header = reinterpret_cast<icmp_router_advertisement_hdr*>(m_Data);
  322|       |
  323|  1.60k|		return &m_RouterAdvData;
  324|  1.60k|	}
_ZN4pcpp9IcmpLayer26setRouterAdvertisementDataEhtRKNSt3__16vectorINS_29icmp_router_address_structureENS1_9allocatorIS3_EEEE:
  328|    178|	{
  329|    178|		if (code != 0 && code != 16)
  ------------------
  |  Branch (329:7): [True: 178, False: 0]
  |  Branch (329:20): [True: 0, False: 178]
  ------------------
  330|      0|		{
  331|      0|			PCPP_LOG_ERROR("Unknown code " << (int)code
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423: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|    178|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (336:7): [True: 0, False: 178]
  ------------------
  337|      0|			return nullptr;
  338|       |
  339|    178|		if (!this->extendLayer(m_DataLen, sizeof(icmp_router_advertisement_hdr) +
  ------------------
  |  Branch (339:7): [True: 0, False: 178]
  ------------------
  340|    178|		                                      (routerAddresses.size() * sizeof(icmp_router_address_structure)) -
  341|    178|		                                      sizeof(icmphdr)))
  342|      0|			return nullptr;
  343|       |
  344|    178|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ROUTER_ADV);
  345|       |
  346|    178|		icmp_router_advertisement* header = getRouterAdvertisementData();
  347|    178|		header->header->code = code;
  348|    178|		header->header->lifetime = htobe16(lifetimeInSeconds);
  349|    178|		header->header->advertisementCount = static_cast<uint8_t>(routerAddresses.size());
  350|    178|		header->header->addressEntrySize = 2;
  351|       |
  352|    178|		icmp_router_address_structure* curPos = reinterpret_cast<icmp_router_address_structure*>(
  353|    178|		    reinterpret_cast<uint8_t*>(header->header) + sizeof(icmp_router_advertisement_hdr));
  354|    178|		for (const auto& iter : routerAddresses)
  ------------------
  |  Branch (354:25): [True: 178, False: 178]
  ------------------
  355|    178|		{
  356|    178|			curPos->routerAddress = iter.routerAddress;
  357|    178|			curPos->preferenceLevel = iter.preferenceLevel;
  358|    178|			curPos += 1;
  359|    178|		}
  360|       |
  361|    178|		return header;
  362|    178|	}
_ZN4pcpp9IcmpLayer19getTimeExceededDataEv:
  386|    144|	{
  387|    144|		if (!isMessageOfType(ICMP_TIME_EXCEEDED))
  ------------------
  |  Branch (387:7): [True: 0, False: 144]
  ------------------
  388|      0|			return nullptr;
  389|       |
  390|    144|		return reinterpret_cast<icmp_time_exceeded*>(m_Data);
  391|    144|	}
_ZN4pcpp9IcmpLayer19setTimeExceededDataEhPNS_9IPv4LayerEPNS_5LayerE:
  394|     72|	{
  395|     72|		if (code > 1)
  ------------------
  |  Branch (395:7): [True: 0, False: 72]
  ------------------
  396|      0|		{
  397|      0|			PCPP_LOG_ERROR("Unknown code " << (int)code << " for ICMP time exceeded data");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  398|      0|			return nullptr;
  399|      0|		}
  400|       |
  401|     72|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (401:7): [True: 0, False: 72]
  ------------------
  402|      0|			return nullptr;
  403|       |
  404|     72|		if (!this->extendLayer(m_DataLen, sizeof(icmp_time_exceeded) - sizeof(icmphdr)))
  ------------------
  |  Branch (404:7): [True: 0, False: 72]
  ------------------
  405|      0|			return nullptr;
  406|       |
  407|     72|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_TIME_EXCEEDED);
  408|       |
  409|     72|		icmp_time_exceeded* header = getTimeExceededData();
  410|     72|		header->code = code;
  411|     72|		header->unused = 0;
  412|       |
  413|     72|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (413:7): [True: 72, False: 0]
  ------------------
  414|     72|			return nullptr;
  415|       |
  416|      0|		return header;
  417|     72|	}
_ZN4pcpp9IcmpLayer19getParamProblemDataEv:
  420|    128|	{
  421|    128|		if (!isMessageOfType(ICMP_PARAM_PROBLEM))
  ------------------
  |  Branch (421:7): [True: 0, False: 128]
  ------------------
  422|      0|			return nullptr;
  423|       |
  424|    128|		return reinterpret_cast<icmp_param_problem*>(m_Data);
  425|    128|	}
_ZN4pcpp9IcmpLayer19setParamProblemDataEhhPNS_9IPv4LayerEPNS_5LayerE:
  429|     64|	{
  430|     64|		if (code > 2)
  ------------------
  |  Branch (430:7): [True: 0, False: 64]
  ------------------
  431|      0|		{
  432|      0|			PCPP_LOG_ERROR("Unknown code " << (int)code << " for ICMP parameter problem data");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  433|      0|			return nullptr;
  434|      0|		}
  435|       |
  436|     64|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (436:7): [True: 0, False: 64]
  ------------------
  437|      0|			return nullptr;
  438|       |
  439|     64|		if (!this->extendLayer(m_DataLen, sizeof(icmp_param_problem) - sizeof(icmphdr)))
  ------------------
  |  Branch (439:7): [True: 0, False: 64]
  ------------------
  440|      0|			return nullptr;
  441|       |
  442|     64|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_PARAM_PROBLEM);
  443|       |
  444|     64|		icmp_param_problem* header = getParamProblemData();
  445|     64|		header->code = code;
  446|     64|		header->unused1 = 0;
  447|     64|		header->unused2 = 0;
  448|     64|		header->pointer = errorOctetPointer;
  449|       |
  450|     64|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (450:7): [True: 64, False: 0]
  ------------------
  451|     64|			return nullptr;
  452|       |
  453|      0|		return header;
  454|     64|	}
_ZN4pcpp9IcmpLayer23getAddressMaskReplyDataEv:
  484|    690|	{
  485|    690|		if (!isMessageOfType(ICMP_ADDRESS_MASK_REPLY))
  ------------------
  |  Branch (485:7): [True: 0, False: 690]
  ------------------
  486|      0|			return nullptr;
  487|       |
  488|    690|		return reinterpret_cast<icmp_address_mask_reply*>(m_Data);
  489|    690|	}
_ZN4pcpp9IcmpLayer23setAddressMaskReplyDataEttNS_11IPv4AddressE:
  492|    345|	{
  493|    345|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (493:7): [True: 0, False: 345]
  ------------------
  494|      0|			return nullptr;
  495|       |
  496|    345|		if (!this->extendLayer(m_DataLen, sizeof(icmp_address_mask_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (496:7): [True: 0, False: 345]
  ------------------
  497|      0|			return nullptr;
  498|       |
  499|    345|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ADDRESS_MASK_REPLY);
  500|       |
  501|    345|		icmp_address_mask_reply* header = getAddressMaskReplyData();
  502|    345|		header->code = 0;
  503|    345|		header->id = htobe16(id);
  504|    345|		header->sequence = htobe16(sequence);
  505|    345|		header->addressMask = htobe32(mask.toInt());
  506|       |
  507|    345|		return header;
  508|    345|	}
_ZN4pcpp9IcmpLayer16getInfoReplyDataEv:
  537|  2.30k|	{
  538|  2.30k|		if (!isMessageOfType(ICMP_INFO_REPLY))
  ------------------
  |  Branch (538:7): [True: 0, False: 2.30k]
  ------------------
  539|      0|			return nullptr;
  540|       |
  541|  2.30k|		return reinterpret_cast<icmp_info_reply*>(m_Data);
  542|  2.30k|	}
_ZN4pcpp9IcmpLayer16setInfoReplyDataEtt:
  545|  1.15k|	{
  546|  1.15k|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (546:7): [True: 0, False: 1.15k]
  ------------------
  547|      0|			return nullptr;
  548|       |
  549|  1.15k|		if (!this->extendLayer(m_DataLen, sizeof(icmp_info_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (549:7): [True: 0, False: 1.15k]
  ------------------
  550|      0|			return nullptr;
  551|       |
  552|  1.15k|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_INFO_REPLY);
  553|       |
  554|  1.15k|		icmp_info_reply* header = getInfoReplyData();
  555|  1.15k|		header->code = 0;
  556|  1.15k|		header->id = htobe16(id);
  557|  1.15k|		header->sequence = htobe16(sequence);
  558|       |
  559|  1.15k|		return header;
  560|  1.15k|	}
_ZN4pcpp9IcmpLayer14parseNextLayerEv:
  563|  21.0k|	{
  564|  21.0k|		size_t headerLen = getHeaderLen();
  565|       |
  566|  21.0k|		auto payloadPtr = m_Data + headerLen;
  567|  21.0k|		auto payloadLen = m_DataLen - headerLen;
  568|       |
  569|  21.0k|		switch (getMessageType())
  570|  21.0k|		{
  571|  3.24k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (571:3): [True: 3.24k, False: 17.7k]
  ------------------
  572|  3.51k|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (572:3): [True: 268, False: 20.7k]
  ------------------
  573|  3.96k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (573:3): [True: 456, False: 20.5k]
  ------------------
  574|  4.47k|		case ICMP_REDIRECT:
  ------------------
  |  Branch (574:3): [True: 508, False: 20.5k]
  ------------------
  575|  4.73k|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (575:3): [True: 256, False: 20.7k]
  ------------------
  576|  4.73k|		{
  577|  4.73k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payloadPtr, payloadLen);
  578|  4.73k|			break;
  579|  4.47k|		}
  580|  16.2k|		default:
  ------------------
  |  Branch (580:3): [True: 16.2k, False: 4.73k]
  ------------------
  581|  16.2k|			if (m_DataLen > headerLen)
  ------------------
  |  Branch (581:8): [True: 8.84k, False: 7.44k]
  ------------------
  582|  8.84k|			{
  583|  8.84k|				constructNextLayer<PayloadLayer>(payloadPtr, payloadLen);
  584|  8.84k|			}
  585|  16.2k|			break;
  586|  21.0k|		}
  587|  21.0k|	}
_ZNK4pcpp9IcmpLayer12getHeaderLenEv:
  590|  35.3k|	{
  591|  35.3k|		IcmpMessageType type = getMessageType();
  592|  35.3k|		size_t routerAdvSize = 0;
  593|  35.3k|		switch (type)
  594|  35.3k|		{
  595|  4.66k|		case ICMP_ECHO_REQUEST:
  ------------------
  |  Branch (595:3): [True: 4.66k, False: 30.6k]
  ------------------
  596|  10.5k|		case ICMP_ECHO_REPLY:
  ------------------
  |  Branch (596:3): [True: 5.89k, False: 29.4k]
  ------------------
  597|  10.5k|			return m_DataLen;
  598|    341|		case ICMP_TIMESTAMP_REQUEST:
  ------------------
  |  Branch (598:3): [True: 341, False: 34.9k]
  ------------------
  599|  1.89k|		case ICMP_TIMESTAMP_REPLY:
  ------------------
  |  Branch (599:3): [True: 1.55k, False: 33.7k]
  ------------------
  600|  1.89k|			return sizeof(icmp_timestamp_request);
  601|      0|		case ICMP_ROUTER_SOL:
  ------------------
  |  Branch (601:3): [True: 0, False: 35.3k]
  ------------------
  602|      0|		case ICMP_INFO_REQUEST:
  ------------------
  |  Branch (602:3): [True: 0, False: 35.3k]
  ------------------
  603|  10.3k|		case ICMP_INFO_REPLY:
  ------------------
  |  Branch (603:3): [True: 10.3k, False: 24.9k]
  ------------------
  604|  10.3k|		case ICMP_UNSUPPORTED:
  ------------------
  |  Branch (604:3): [True: 0, False: 35.3k]
  ------------------
  605|  10.3k|			return sizeof(icmphdr);
  606|  3.42k|		case ICMP_ADDRESS_MASK_REPLY:
  ------------------
  |  Branch (606:3): [True: 3.42k, False: 31.9k]
  ------------------
  607|  3.42k|		case ICMP_ADDRESS_MASK_REQUEST:
  ------------------
  |  Branch (607:3): [True: 0, False: 35.3k]
  ------------------
  608|  3.42k|			return sizeof(icmp_address_mask_request);
  609|  5.20k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (609:3): [True: 5.20k, False: 30.1k]
  ------------------
  610|  5.20k|			return sizeof(icmp_destination_unreachable);
  611|    889|		case ICMP_REDIRECT:
  ------------------
  |  Branch (611:3): [True: 889, False: 34.4k]
  ------------------
  612|    889|			return sizeof(icmp_redirect);
  613|    744|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (613:3): [True: 744, False: 34.5k]
  ------------------
  614|  1.21k|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (614:3): [True: 469, False: 34.8k]
  ------------------
  615|  1.21k|			return sizeof(icmp_time_exceeded);
  616|    512|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (616:3): [True: 512, False: 34.8k]
  ------------------
  617|    512|			return sizeof(icmp_param_problem);
  618|  1.25k|		case ICMP_ROUTER_ADV:
  ------------------
  |  Branch (618:3): [True: 1.25k, False: 34.0k]
  ------------------
  619|       |			// clang-format off
  620|  1.25k|			routerAdvSize = sizeof(icmp_router_advertisement_hdr) + (getRouterAdvertisementData()->header->advertisementCount * sizeof(icmp_router_address_structure));
  621|       |			// clang-format on
  622|  1.25k|			if (routerAdvSize > m_DataLen)
  ------------------
  |  Branch (622:8): [True: 1.23k, False: 13]
  ------------------
  623|  1.23k|				return m_DataLen;
  624|     13|			return routerAdvSize;
  625|      0|		default:
  ------------------
  |  Branch (625:3): [True: 0, False: 35.3k]
  ------------------
  626|      0|			return sizeof(icmphdr);
  627|  35.3k|		}
  628|  35.3k|	}
_ZN4pcpp9IcmpLayer22computeCalculateFieldsEv:
  631|  3.91k|	{
  632|       |		// calculate checksum
  633|  3.91k|		getIcmpHeader()->checksum = 0;
  634|       |
  635|  3.91k|		size_t icmpLen = 0;
  636|  3.91k|		Layer* curLayer = this;
  637|  11.6k|		while (curLayer != nullptr)
  ------------------
  |  Branch (637:10): [True: 7.75k, False: 3.91k]
  ------------------
  638|  7.75k|		{
  639|  7.75k|			icmpLen += curLayer->getHeaderLen();
  640|  7.75k|			curLayer = curLayer->getNextLayer();
  641|  7.75k|		}
  642|       |
  643|  3.91k|		ScalarBuffer<uint16_t> buffer;
  644|  3.91k|		buffer.buffer = reinterpret_cast<uint16_t*>(getIcmpHeader());
  645|  3.91k|		buffer.len = icmpLen;
  646|  3.91k|		size_t checksum = computeChecksum(&buffer, 1);
  647|       |
  648|       |		getIcmpHeader()->checksum = htobe16(checksum);
  649|  3.91k|	}
_ZNK4pcpp9IcmpLayer8toStringEv:
  652|  7.83k|	{
  653|  7.83k|		std::string messageTypeAsString;
  654|  7.83k|		IcmpMessageType type = getMessageType();
  655|  7.83k|		switch (type)
  656|  7.83k|		{
  657|  1.44k|		case ICMP_ECHO_REPLY:
  ------------------
  |  Branch (657:3): [True: 1.44k, False: 6.39k]
  ------------------
  658|  1.44k|			messageTypeAsString = "Echo (ping) reply";
  659|  1.44k|			break;
  660|    952|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (660:3): [True: 952, False: 6.88k]
  ------------------
  661|    952|			messageTypeAsString = "Destination unreachable";
  662|    952|			break;
  663|    134|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (663:3): [True: 134, False: 7.70k]
  ------------------
  664|    134|			messageTypeAsString = "Source quench (flow control)";
  665|    134|			break;
  666|    254|		case ICMP_REDIRECT:
  ------------------
  |  Branch (666:3): [True: 254, False: 7.58k]
  ------------------
  667|    254|			messageTypeAsString = "Redirect";
  668|    254|			break;
  669|    982|		case ICMP_ECHO_REQUEST:
  ------------------
  |  Branch (669:3): [True: 982, False: 6.85k]
  ------------------
  670|    982|			messageTypeAsString = "Echo (ping) request";
  671|    982|			break;
  672|    356|		case ICMP_ROUTER_ADV:
  ------------------
  |  Branch (672:3): [True: 356, False: 7.48k]
  ------------------
  673|    356|			messageTypeAsString = "Router advertisement";
  674|    356|			break;
  675|      0|		case ICMP_ROUTER_SOL:
  ------------------
  |  Branch (675:3): [True: 0, False: 7.83k]
  ------------------
  676|      0|			messageTypeAsString = "Router solicitation";
  677|      0|			break;
  678|    144|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (678:3): [True: 144, False: 7.69k]
  ------------------
  679|    144|			messageTypeAsString = "Time-to-live exceeded";
  680|    144|			break;
  681|    128|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (681:3): [True: 128, False: 7.70k]
  ------------------
  682|    128|			messageTypeAsString = "Parameter problem: bad IP header";
  683|    128|			break;
  684|     62|		case ICMP_TIMESTAMP_REQUEST:
  ------------------
  |  Branch (684:3): [True: 62, False: 7.77k]
  ------------------
  685|     62|			messageTypeAsString = "Timestamp request";
  686|     62|			break;
  687|    388|		case ICMP_TIMESTAMP_REPLY:
  ------------------
  |  Branch (687:3): [True: 388, False: 7.44k]
  ------------------
  688|    388|			messageTypeAsString = "Timestamp reply";
  689|    388|			break;
  690|      0|		case ICMP_INFO_REQUEST:
  ------------------
  |  Branch (690:3): [True: 0, False: 7.83k]
  ------------------
  691|      0|			messageTypeAsString = "Information request";
  692|      0|			break;
  693|  2.30k|		case ICMP_INFO_REPLY:
  ------------------
  |  Branch (693:3): [True: 2.30k, False: 5.53k]
  ------------------
  694|  2.30k|			messageTypeAsString = "Information reply";
  695|  2.30k|			break;
  696|      0|		case ICMP_ADDRESS_MASK_REQUEST:
  ------------------
  |  Branch (696:3): [True: 0, False: 7.83k]
  ------------------
  697|      0|			messageTypeAsString = "Address mask request";
  698|      0|			break;
  699|    690|		case ICMP_ADDRESS_MASK_REPLY:
  ------------------
  |  Branch (699:3): [True: 690, False: 7.14k]
  ------------------
  700|    690|			messageTypeAsString = "Address mask reply";
  701|    690|			break;
  702|      0|		default:
  ------------------
  |  Branch (702:3): [True: 0, False: 7.83k]
  ------------------
  703|      0|			messageTypeAsString = "Unknown";
  704|      0|			break;
  705|  7.83k|		}
  706|       |
  707|  7.83k|		std::ostringstream typeStream;
  708|  7.83k|		typeStream << (int)getIcmpHeader()->type;
  709|       |
  710|  7.83k|		return "ICMP Layer, " + messageTypeAsString + " (type: " + typeStream.str() + ")";
  711|  7.83k|	}

_ZN4pcpp11IcmpV6Layer16parseIcmpV6LayerEPhmPNS_5LayerEPNS_6PacketE:
   18|  8.96k|	{
   19|  8.96k|		if (dataLen < sizeof(icmpv6hdr))
  ------------------
  |  Branch (19:7): [True: 385, False: 8.58k]
  ------------------
   20|    385|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   21|       |
   22|  8.58k|		icmpv6hdr* hdr = (icmpv6hdr*)data;
   23|  8.58k|		ICMPv6MessageType messageType = static_cast<ICMPv6MessageType>(hdr->type);
   24|       |
   25|  8.58k|		switch (messageType)
   26|  8.58k|		{
   27|    864|		case ICMPv6MessageType::ICMPv6_ECHO_REQUEST:
  ------------------
  |  Branch (27:3): [True: 864, False: 7.71k]
  ------------------
   28|    864|		case ICMPv6MessageType::ICMPv6_ECHO_REPLY:
  ------------------
  |  Branch (28:3): [True: 0, False: 8.58k]
  ------------------
   29|    864|			return new ICMPv6EchoLayer(data, dataLen, prevLayer, packet);
   30|  2.76k|		case ICMPv6MessageType::ICMPv6_NEIGHBOR_SOLICITATION:
  ------------------
  |  Branch (30:3): [True: 2.76k, False: 5.81k]
  ------------------
   31|  2.76k|			if (!NDPNeighborSolicitationLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (31:8): [True: 0, False: 2.76k]
  ------------------
   32|      0|				return new IcmpV6Layer(data, dataLen, prevLayer, packet);
   33|  2.76k|			return new NDPNeighborSolicitationLayer(data, dataLen, prevLayer, packet);
   34|    392|		case ICMPv6MessageType::ICMPv6_NEIGHBOR_ADVERTISEMENT:
  ------------------
  |  Branch (34:3): [True: 392, False: 8.19k]
  ------------------
   35|    392|			if (!NDPNeighborAdvertisementLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (35:8): [True: 0, False: 392]
  ------------------
   36|      0|				return new IcmpV6Layer(data, dataLen, prevLayer, packet);
   37|    392|			return new NDPNeighborAdvertisementLayer(data, dataLen, prevLayer, packet);
   38|    779|		case ICMPv6MessageType::ICMPv6_UNKNOWN_MESSAGE:
  ------------------
  |  Branch (38:3): [True: 779, False: 7.80k]
  ------------------
   39|    779|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   40|  3.77k|		default:
  ------------------
  |  Branch (40:3): [True: 3.77k, False: 4.80k]
  ------------------
   41|  3.77k|			return new IcmpV6Layer(data, dataLen, prevLayer, packet);
   42|  8.58k|		}
   43|  8.58k|	}
_ZNK4pcpp11IcmpV6Layer14getMessageTypeEv:
   59|  2.47k|	{
   60|  2.47k|		return static_cast<ICMPv6MessageType>(getIcmpv6Header()->type);
   61|  2.47k|	}
_ZN4pcpp11IcmpV6Layer22computeCalculateFieldsEv:
   74|  2.01k|	{
   75|  2.01k|		calculateChecksum();
   76|  2.01k|	}
_ZN4pcpp11IcmpV6Layer17calculateChecksumEv:
   79|  2.01k|	{
   80|       |		// Pseudo header of 40 bytes which is composed as follows(in order):
   81|       |		// - 16 bytes for the source address
   82|       |		// - 16 bytes for the destination address
   83|       |		// - 4 bytes big endian payload length(the same value as in the IPv6 header)
   84|       |		// - 3 bytes zero + 1 byte nextheader( 58 decimal) big endian
   85|       |
   86|  2.01k|		getIcmpv6Header()->checksum = 0;
   87|       |
   88|  2.01k|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (88:7): [True: 2.01k, False: 0]
  ------------------
   89|  2.01k|		{
   90|  2.01k|			auto prevLayerAsIPv6 = static_cast<IPv6Layer*>(m_PrevLayer);
   91|       |
   92|  2.01k|			ScalarBuffer<uint16_t> vec[2];
   93|       |
   94|  2.01k|			vec[0].buffer = (uint16_t*)m_Data;
   95|  2.01k|			vec[0].len = m_DataLen;
   96|       |
   97|  2.01k|			const unsigned int pseudoHeaderLen = 40;
   98|  2.01k|			const unsigned int bigEndianLen = htobe32(m_DataLen);
   99|  2.01k|			const unsigned int bigEndianNextHeader = htobe32(PACKETPP_IPPROTO_ICMPV6);
  100|       |
  101|  2.01k|			uint16_t pseudoHeader[pseudoHeaderLen / 2];
  102|  2.01k|			prevLayerAsIPv6->getSrcIPv6Address().copyTo(reinterpret_cast<uint8_t*>(pseudoHeader));
  103|  2.01k|			prevLayerAsIPv6->getDstIPv6Address().copyTo(reinterpret_cast<uint8_t*>(pseudoHeader + 8));
  104|  2.01k|			memcpy(&pseudoHeader[16], &bigEndianLen, sizeof(uint32_t));
  105|  2.01k|			memcpy(&pseudoHeader[18], &bigEndianNextHeader, sizeof(uint32_t));
  106|  2.01k|			vec[1].buffer = pseudoHeader;
  107|  2.01k|			vec[1].len = pseudoHeaderLen;
  108|       |
  109|       |			// Calculate and write checksum
  110|       |			getIcmpv6Header()->checksum = htobe16(computeChecksum(vec, 2));
  111|  2.01k|		}
  112|  2.01k|	}
_ZNK4pcpp11IcmpV6Layer8toStringEv:
  115|  2.04k|	{
  116|  2.04k|		std::ostringstream typeStream;
  117|  2.04k|		typeStream << (int)getMessageType();
  118|  2.04k|		return "ICMPv6 Layer, Message type: " + typeStream.str();
  119|  2.04k|	}
_ZNK4pcpp15ICMPv6EchoLayer8toStringEv:
  164|    432|	{
  165|    432|		std::ostringstream typeStream;
  166|    432|		typeStream << (int)getMessageType();
  167|    432|		return "ICMPv6 Layer, Echo Request/Reply Message (type: " + typeStream.str() + ")";
  168|    432|	}

_ZNK4pcpp9IgmpLayer7getTypeEv:
   30|  4.00k|	{
   31|  4.00k|		uint8_t type = getIgmpHeader()->type;
   32|  4.00k|		if (type < (uint8_t)IgmpType_MembershipQuery ||
  ------------------
  |  Branch (32:7): [True: 0, False: 4.00k]
  ------------------
   33|  4.00k|		    (type > (uint8_t)IgmpType_LeaveGroup && type < (uint8_t)IgmpType_MulticastTracerouteResponse) ||
  ------------------
  |  Branch (33:8): [True: 886, False: 3.11k]
  |  Branch (33:47): [True: 0, False: 886]
  ------------------
   34|  4.00k|		    (type > (uint8_t)IgmpType_MulticastTraceroute && type < (uint8_t)IgmpType_MembershipReportV3) ||
  ------------------
  |  Branch (34:8): [True: 886, False: 3.11k]
  |  Branch (34:56): [True: 0, False: 886]
  ------------------
   35|  4.00k|		    (type > (uint8_t)IgmpType_MembershipReportV3 && type < (uint8_t)IgmpType_MulticastRouterAdvertisement) ||
  ------------------
  |  Branch (35:8): [True: 0, False: 4.00k]
  |  Branch (35:55): [True: 0, False: 0]
  ------------------
   36|  4.00k|		    type > IgmpType_MulticastRouterTermination)
  ------------------
  |  Branch (36:7): [True: 0, False: 4.00k]
  ------------------
   37|      0|		{
   38|      0|			return IgmpType_Unknown;
   39|      0|		}
   40|       |
   41|  4.00k|		return (IgmpType)type;
   42|  4.00k|	}
_ZN4pcpp9IgmpLayer18getIGMPVerFromDataEPhmRb:
   54|  9.61k|	{
   55|  9.61k|		isQuery = false;
   56|       |
   57|  9.61k|		if (dataLen < 8 || data == nullptr)
  ------------------
  |  Branch (57:7): [True: 0, False: 9.61k]
  |  Branch (57:22): [True: 0, False: 9.61k]
  ------------------
   58|      0|			return UnknownProtocol;
   59|       |
   60|  9.61k|		switch ((int)data[0])
   61|  9.61k|		{
   62|  3.10k|		case IgmpType_MembershipReportV2:
  ------------------
  |  Branch (62:3): [True: 3.10k, False: 6.50k]
  ------------------
   63|  3.63k|		case IgmpType_LeaveGroup:
  ------------------
  |  Branch (63:3): [True: 525, False: 9.09k]
  ------------------
   64|  3.63k|			return IGMPv2;
   65|  2.42k|		case IgmpType_MembershipReportV1:
  ------------------
  |  Branch (65:3): [True: 2.42k, False: 7.19k]
  ------------------
   66|  2.42k|			return IGMPv1;
   67|  1.78k|		case IgmpType_MembershipReportV3:
  ------------------
  |  Branch (67:3): [True: 1.78k, False: 7.83k]
  ------------------
   68|  1.78k|			return IGMPv3;
   69|  1.65k|		case IgmpType_MembershipQuery:
  ------------------
  |  Branch (69:3): [True: 1.65k, False: 7.96k]
  ------------------
   70|  1.65k|		{
   71|  1.65k|			isQuery = true;
   72|       |
   73|  1.65k|			if (dataLen >= sizeof(igmpv3_query_header))
  ------------------
  |  Branch (73:8): [True: 0, False: 1.65k]
  ------------------
   74|      0|				return IGMPv3;
   75|       |
   76|  1.65k|			if (data[1] == 0)
  ------------------
  |  Branch (76:8): [True: 455, False: 1.19k]
  ------------------
   77|    455|				return IGMPv1;
   78|  1.19k|			else
   79|  1.19k|				return IGMPv2;
   80|  1.65k|		}
   81|    130|		default:
  ------------------
  |  Branch (81:3): [True: 130, False: 9.48k]
  ------------------
   82|    130|			return UnknownProtocol;
   83|  9.61k|		}
   84|  9.61k|	}
_ZN4pcpp9IgmpLayer17calculateChecksumEv:
   87|  2.00k|	{
   88|  2.00k|		ScalarBuffer<uint16_t> buffer;
   89|  2.00k|		buffer.buffer = reinterpret_cast<uint16_t*>(getIgmpHeader());
   90|  2.00k|		buffer.len = getHeaderLen();
   91|  2.00k|		return computeChecksum(&buffer, 1);
   92|  2.00k|	}
_ZNK4pcpp9IgmpLayer8toStringEv:
  111|  4.00k|	{
  112|  4.00k|		std::string igmpVer = "";
  113|  4.00k|		switch (getProtocol())
  114|  4.00k|		{
  115|  1.15k|		case IGMPv1:
  ------------------
  |  Branch (115:3): [True: 1.15k, False: 2.84k]
  ------------------
  116|  1.15k|			igmpVer = "1";
  117|  1.15k|			break;
  118|  1.95k|		case IGMPv2:
  ------------------
  |  Branch (118:3): [True: 1.95k, False: 2.04k]
  ------------------
  119|  1.95k|			igmpVer = "2";
  120|  1.95k|			break;
  121|    886|		default:
  ------------------
  |  Branch (121:3): [True: 886, False: 3.11k]
  ------------------
  122|    886|			igmpVer = "3";
  123|  4.00k|		}
  124|       |
  125|  4.00k|		std::string msgType;
  126|       |
  127|  4.00k|		switch (getType())
  128|  4.00k|		{
  129|    660|		case IgmpType_MembershipQuery:
  ------------------
  |  Branch (129:3): [True: 660, False: 3.34k]
  ------------------
  130|    660|			msgType = "Membership Query";
  131|    660|			break;
  132|    976|		case IgmpType_MembershipReportV1:
  ------------------
  |  Branch (132:3): [True: 976, False: 3.02k]
  ------------------
  133|    976|			msgType = "Membership Report";
  134|    976|			break;
  135|      0|		case IgmpType_DVMRP:
  ------------------
  |  Branch (135:3): [True: 0, False: 4.00k]
  ------------------
  136|      0|			msgType = "DVMRP";
  137|      0|			break;
  138|      0|		case IgmpType_P1Mv1:
  ------------------
  |  Branch (138:3): [True: 0, False: 4.00k]
  ------------------
  139|      0|			msgType = "PIMv1";
  140|      0|			break;
  141|      0|		case IgmpType_CiscoTrace:
  ------------------
  |  Branch (141:3): [True: 0, False: 4.00k]
  ------------------
  142|      0|			msgType = "Cisco Trace";
  143|      0|			break;
  144|  1.26k|		case IgmpType_MembershipReportV2:
  ------------------
  |  Branch (144:3): [True: 1.26k, False: 2.73k]
  ------------------
  145|  1.26k|			msgType = "Membership Report";
  146|  1.26k|			break;
  147|    210|		case IgmpType_LeaveGroup:
  ------------------
  |  Branch (147:3): [True: 210, False: 3.79k]
  ------------------
  148|    210|			msgType = "Leave Group";
  149|    210|			break;
  150|      0|		case IgmpType_MulticastTracerouteResponse:
  ------------------
  |  Branch (150:3): [True: 0, False: 4.00k]
  ------------------
  151|      0|			msgType = "Multicast Traceroute Response";
  152|      0|			break;
  153|      0|		case IgmpType_MulticastTraceroute:
  ------------------
  |  Branch (153:3): [True: 0, False: 4.00k]
  ------------------
  154|      0|			msgType = "Multicast Traceroute";
  155|      0|			break;
  156|    886|		case IgmpType_MembershipReportV3:
  ------------------
  |  Branch (156:3): [True: 886, False: 3.11k]
  ------------------
  157|    886|			msgType = "Membership Report";
  158|    886|			break;
  159|      0|		case IgmpType_MulticastRouterAdvertisement:
  ------------------
  |  Branch (159:3): [True: 0, False: 4.00k]
  ------------------
  160|      0|			msgType = "Multicast Router Advertisement";
  161|      0|			break;
  162|      0|		case IgmpType_MulticastRouterSolicitation:
  ------------------
  |  Branch (162:3): [True: 0, False: 4.00k]
  ------------------
  163|      0|			msgType = "Multicast Router Solicitation";
  164|      0|			break;
  165|      0|		case IgmpType_MulticastRouterTermination:
  ------------------
  |  Branch (165:3): [True: 0, False: 4.00k]
  ------------------
  166|      0|			msgType = "Multicast Router Termination";
  167|      0|			break;
  168|      0|		default:
  ------------------
  |  Branch (168:3): [True: 0, False: 4.00k]
  ------------------
  169|      0|			msgType = "Unknown";
  170|      0|			break;
  171|  4.00k|		}
  172|       |
  173|  4.00k|		std::string result = "IGMPv" + igmpVer + " Layer, " + msgType + " message";
  174|  4.00k|		return result;
  175|  4.00k|	}
_ZN4pcpp11IgmpV1Layer22computeCalculateFieldsEv:
  180|    579|	{
  181|    579|		igmp_header* hdr = getIgmpHeader();
  182|    579|		hdr->checksum = 0;
  183|       |		hdr->checksum = htobe16(calculateChecksum());
  184|    579|		hdr->maxResponseTime = 0;
  185|    579|	}
_ZN4pcpp11IgmpV2Layer22computeCalculateFieldsEv:
  190|    978|	{
  191|    978|		igmp_header* hdr = getIgmpHeader();
  192|    978|		hdr->checksum = 0;
  193|       |		hdr->checksum = htobe16(calculateChecksum());
  194|    978|	}
_ZN4pcpp17IgmpV3ReportLayer22computeCalculateFieldsEv:
  364|    443|	{
  365|    443|		igmpv3_report_header* hdr = getReportHeader();
  366|    443|		hdr->checksum = 0;
  367|       |		hdr->checksum = htobe16(calculateChecksum());
  368|    443|	}

_ZN4pcpp8LLCLayer14parseNextLayerEv:
   25|  12.3k|	{
   26|  12.3k|		if (m_DataLen <= sizeof(llc_header))
  ------------------
  |  Branch (26:7): [True: 36, False: 12.2k]
  ------------------
   27|     36|			return;
   28|       |
   29|  12.2k|		llc_header* hdr = getLlcHeader();
   30|  12.2k|		uint8_t* payload = m_Data + sizeof(llc_header);
   31|  12.2k|		size_t payloadLen = m_DataLen - sizeof(llc_header);
   32|       |
   33|  12.2k|		if (hdr->dsap == 0x42 && hdr->ssap == 0x42 && StpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (33:7): [True: 5.26k, False: 7.01k]
  |  Branch (33:28): [True: 5.26k, False: 8]
  |  Branch (33:49): [True: 5.26k, False: 0]
  ------------------
   34|  5.26k|		{
   35|  5.26k|			constructNextLayerFromFactory(StpLayer::parseStpLayer, payload, payloadLen);
   36|  5.26k|		}
   37|       |
   38|  12.2k|		if (!hasNextLayer())
  ------------------
  |  Branch (38:7): [True: 7.15k, False: 5.12k]
  ------------------
   39|  7.15k|		{
   40|  7.15k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   41|  7.15k|		}
   42|  12.2k|	}
_ZNK4pcpp8LLCLayer8toStringEv:
   45|  4.86k|	{
   46|  4.86k|		return "Logical Link Control";
   47|  4.86k|	}
_ZN4pcpp8LLCLayer11isDataValidEPKhm:
   50|  13.6k|	{
   51|  13.6k|		return dataLen >= sizeof(llc_header) && !(data[0] == 0xFF && data[1] == 0xFF);
  ------------------
  |  Branch (51:10): [True: 12.4k, False: 1.16k]
  |  Branch (51:45): [True: 3.66k, False: 8.80k]
  |  Branch (51:64): [True: 148, False: 3.51k]
  ------------------
   52|  13.6k|	}

_ZN4pcpp5LayerD2Ev:
   13|  4.52M|	{
   14|  4.52M|		if (!isAllocatedToPacket())
  ------------------
  |  Branch (14:7): [True: 126k, False: 4.40M]
  ------------------
   15|   126k|			delete[] m_Data;
   16|  4.52M|	}
_ZN4pcpp5LayerC2ERKS0_:
   18|   126k|	Layer::Layer(const Layer& other) : m_Protocol(other.m_Protocol), m_NextLayer(nullptr), m_PrevLayer(nullptr)
   19|   126k|	{
   20|   126k|		m_DataLen = other.getHeaderLen();
   21|   126k|		m_Data = new uint8_t[other.m_DataLen];
   22|   126k|		memcpy(m_Data, other.m_Data, other.m_DataLen);
   23|   126k|	}
_ZN4pcpp5LayeraSERKS0_:
   26|  8.55k|	{
   27|  8.55k|		if (this == &other)
  ------------------
  |  Branch (27:7): [True: 0, False: 8.55k]
  ------------------
   28|      0|			return *this;
   29|       |
   30|       |		// Should this really always delete m_Data? What if the layer is attached to a packet?
   31|  8.55k|		if (m_Data != nullptr)
  ------------------
  |  Branch (31:7): [True: 8.55k, False: 0]
  ------------------
   32|  8.55k|			delete[] m_Data;
   33|       |
   34|       |		// Reset allocation info as the layer is considered copied and not attached to any packet.
   35|  8.55k|		m_AllocationInfo = internal::LayerAllocationInfo{};
   36|       |
   37|  8.55k|		m_DataLen = other.getHeaderLen();
   38|  8.55k|		m_Protocol = other.m_Protocol;
   39|  8.55k|		m_NextLayer = nullptr;
   40|  8.55k|		m_PrevLayer = nullptr;
   41|  8.55k|		m_Data = new uint8_t[other.m_DataLen];
   42|  8.55k|		memcpy(m_Data, other.m_Data, other.m_DataLen);
   43|       |
   44|  8.55k|		return *this;
   45|  8.55k|	}
_ZNK4pcpp5Layer24isMemberOfProtocolFamilyEj:
   48|  15.1M|	{
   49|  15.1M|		return m_Protocol != UnknownProtocol && internal::protoFamilyContainsProtocol(protocolTypeFamily, m_Protocol);
  ------------------
  |  Branch (49:10): [True: 15.1M, False: 0]
  |  Branch (49:43): [True: 79.2k, False: 15.1M]
  ------------------
   50|  15.1M|	}
_ZN4pcpp5Layer11extendLayerEim:
  101|   146k|	{
  102|   146k|		if (m_Data == nullptr)
  ------------------
  |  Branch (102:7): [True: 0, False: 146k]
  ------------------
  103|      0|		{
  104|      0|			PCPP_LOG_ERROR("Layer's data is nullptr");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  105|      0|			return false;
  106|      0|		}
  107|       |
  108|   146k|		if (getAttachedPacket() == nullptr)
  ------------------
  |  Branch (108:7): [True: 97.3k, False: 49.2k]
  ------------------
  109|  97.3k|		{
  110|  97.3k|			if (static_cast<size_t>(offsetInLayer) > m_DataLen)
  ------------------
  |  Branch (110:8): [True: 2.34k, False: 94.9k]
  ------------------
  111|  2.34k|			{
  112|  2.34k|				PCPP_LOG_ERROR("Requested offset is larger than data length");
  ------------------
  |  |  444|  2.34k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|  2.34k|	do                                                                                                                 \
  |  |  |  |  414|  2.34k|	{                                                                                                                  \
  |  |  |  |  415|  2.34k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  2.34k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.34k|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 2.34k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|  2.34k|		{                                                                                                              \
  |  |  |  |  418|  2.34k|			auto ctx =                                                                                                 \
  |  |  |  |  419|  2.34k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.34k|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|  2.34k|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|  2.34k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|  2.34k|		}                                                                                                              \
  |  |  |  |  423|  2.34k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 2.34k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  113|  2.34k|				return false;
  114|  2.34k|			}
  115|  94.9k|			uint8_t* newData = new uint8_t[m_DataLen + numOfBytesToExtend];
  116|  94.9k|			memcpy(newData, m_Data, offsetInLayer);
  117|  94.9k|			memcpy(newData + offsetInLayer + numOfBytesToExtend, m_Data + offsetInLayer, m_DataLen - offsetInLayer);
  118|  94.9k|			delete[] m_Data;
  119|  94.9k|			m_Data = newData;
  120|  94.9k|			m_DataLen += numOfBytesToExtend;
  121|  94.9k|			return true;
  122|  97.3k|		}
  123|       |
  124|  49.2k|		return getAttachedPacket()->extendLayer(this, offsetInLayer, numOfBytesToExtend);
  125|   146k|	}
_ZN4pcpp5Layer12shortenLayerEim:
  128|  54.3k|	{
  129|  54.3k|		if (m_Data == nullptr)
  ------------------
  |  Branch (129:7): [True: 0, False: 54.3k]
  ------------------
  130|      0|		{
  131|      0|			PCPP_LOG_ERROR("Layer's data is nullptr");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  132|      0|			return false;
  133|      0|		}
  134|       |
  135|  54.3k|		if (static_cast<size_t>(offsetInLayer) + numOfBytesToShorten > m_DataLen)
  ------------------
  |  Branch (135:7): [True: 509, False: 53.8k]
  ------------------
  136|    509|		{
  137|    509|			PCPP_LOG_ERROR("Requested number of bytes to shorten is larger than data length");
  ------------------
  |  |  444|    509|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    509|	do                                                                                                                 \
  |  |  |  |  414|    509|	{                                                                                                                  \
  |  |  |  |  415|    509|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    509|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    509|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 509, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    509|		{                                                                                                              \
  |  |  |  |  418|    509|			auto ctx =                                                                                                 \
  |  |  |  |  419|    509|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    509|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    509|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    509|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    509|		}                                                                                                              \
  |  |  |  |  423|    509|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 509]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  138|    509|			return false;
  139|    509|		}
  140|       |
  141|  53.8k|		if (getAttachedPacket() == nullptr)
  ------------------
  |  Branch (141:7): [True: 2.16k, False: 51.6k]
  ------------------
  142|  2.16k|		{
  143|  2.16k|			if (static_cast<size_t>(offsetInLayer) >= m_DataLen)
  ------------------
  |  Branch (143:8): [True: 0, False: 2.16k]
  ------------------
  144|      0|			{
  145|      0|				PCPP_LOG_ERROR("Requested offset is larger than data length");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  146|      0|				return false;
  147|      0|			}
  148|  2.16k|			uint8_t* newData = new uint8_t[m_DataLen - numOfBytesToShorten];
  149|  2.16k|			memcpy(newData, m_Data, offsetInLayer);
  150|  2.16k|			memcpy(newData + offsetInLayer, m_Data + offsetInLayer + numOfBytesToShorten,
  151|  2.16k|			       m_DataLen - offsetInLayer - numOfBytesToShorten);
  152|  2.16k|			delete[] m_Data;
  153|  2.16k|			m_Data = newData;
  154|  2.16k|			m_DataLen -= numOfBytesToShorten;
  155|  2.16k|			return true;
  156|  2.16k|		}
  157|       |
  158|  51.6k|		return getAttachedPacket()->shortenLayer(this, offsetInLayer, numOfBytesToShorten);
  159|  53.8k|	}

_ZNK4pcpp17LdapOperationType8toStringEv:
   64|     44|	{
   65|     44|		return LdapOperationTypeToString.at(m_Value);
   66|     44|	}
_ZN4pcpp17LdapOperationType13fromUintValueEh:
   69|    167|	{
   70|    167|		auto result = UintToLdapOperationType.find(value);
   71|    167|		if (result != UintToLdapOperationType.end())
  ------------------
  |  Branch (71:7): [True: 162, False: 5]
  ------------------
   72|    162|		{
   73|    162|			return result->second;
   74|    162|		}
   75|       |
   76|      5|		return LdapOperationType::Unknown;
   77|    167|	}
_ZNK4pcpp14LdapResultCode8toStringEv:
  172|     42|	{
  173|     42|		return LdapResultCodeToString.at(m_Value);
  174|     42|	}
_ZN4pcpp14LdapResultCode13fromUintValueEh:
  177|     42|	{
  178|     42|		auto result = UintToLdapResultCode.find(value);
  179|     42|		if (result != UintToLdapResultCode.end())
  ------------------
  |  Branch (179:7): [True: 42, False: 0]
  ------------------
  180|     42|		{
  181|     42|			return result->second;
  182|     42|		}
  183|       |
  184|      0|		return LdapResultCode::Unknown;
  185|     42|	}
_ZN4pcpp9LdapLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  199|    118|	    : Layer(data, dataLen, prevLayer, packet, LDAP)
  200|    118|	{
  201|    118|		m_Asn1Record = std::move(asn1Record);
  202|    118|	}
_ZNK4pcpp9LdapLayer8toStringEv:
  258|     44|	{
  259|     44|		auto extendedInfo = getExtendedInfoString();
  260|     44|		return "LDAP Layer, " + getLdapOperationType().toString() + (extendedInfo.empty() ? "" : ", " + extendedInfo);
  ------------------
  |  Branch (260:64): [True: 0, False: 44]
  ------------------
  261|     44|	}
_ZN4pcpp9LdapLayer16parseLdapMessageEPhmPNS_5LayerEPNS_6PacketE:
  264|  1.72k|	{
  265|  1.72k|		try
  266|  1.72k|		{
  267|  1.72k|			auto asn1Record = Asn1Record::decode(data, dataLen, true);
  268|  1.72k|			auto operationType = LdapOperationType::fromUintValue(
  269|  1.72k|			    asn1Record->castAs<Asn1SequenceRecord>()->getSubRecords().at(operationTypeIndex)->getTagType());
  270|  1.72k|			switch (operationType)
  271|  1.72k|			{
  272|      5|			case LdapOperationType::BindRequest:
  ------------------
  |  Branch (272:4): [True: 5, False: 1.72k]
  ------------------
  273|      5|				return new LdapBindRequestLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  274|     73|			case LdapOperationType::BindResponse:
  ------------------
  |  Branch (274:4): [True: 73, False: 1.65k]
  ------------------
  275|     73|				return new LdapBindResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  276|      0|			case LdapOperationType::UnbindRequest:
  ------------------
  |  Branch (276:4): [True: 0, False: 1.72k]
  ------------------
  277|      0|				return new LdapUnbindRequestLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  278|      0|			case LdapOperationType::SearchRequest:
  ------------------
  |  Branch (278:4): [True: 0, False: 1.72k]
  ------------------
  279|      0|				return new LdapSearchRequestLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  280|      0|			case LdapOperationType::SearchResultEntry:
  ------------------
  |  Branch (280:4): [True: 0, False: 1.72k]
  ------------------
  281|      0|				return new LdapSearchResultEntryLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  282|     10|			case LdapOperationType::SearchResultDone:
  ------------------
  |  Branch (282:4): [True: 10, False: 1.71k]
  ------------------
  283|     10|				return new LdapSearchResultDoneLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  284|      5|			case LdapOperationType::ModifyResponse:
  ------------------
  |  Branch (284:4): [True: 5, False: 1.72k]
  ------------------
  285|      5|				return new LdapModifyResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  286|      0|			case LdapOperationType::AddResponse:
  ------------------
  |  Branch (286:4): [True: 0, False: 1.72k]
  ------------------
  287|      0|				return new LdapAddResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  288|      5|			case LdapOperationType::DeleteResponse:
  ------------------
  |  Branch (288:4): [True: 5, False: 1.72k]
  ------------------
  289|      5|				return new LdapDeleteResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  290|     15|			case LdapOperationType::ModifyDNResponse:
  ------------------
  |  Branch (290:4): [True: 15, False: 1.71k]
  ------------------
  291|     15|				return new LdapModifyDNResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  292|      5|			case LdapOperationType::CompareResponse:
  ------------------
  |  Branch (292:4): [True: 5, False: 1.72k]
  ------------------
  293|      5|				return new LdapCompareResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  294|      5|			case LdapOperationType::Unknown:
  ------------------
  |  Branch (294:4): [True: 5, False: 1.72k]
  ------------------
  295|      5|				return nullptr;
  296|      0|			default:
  ------------------
  |  Branch (296:4): [True: 0, False: 1.72k]
  ------------------
  297|      0|				return new LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  298|  1.72k|			}
  299|  1.72k|		}
  300|  1.72k|		catch (...)
  301|  1.72k|		{
  302|  1.60k|			return nullptr;
  303|  1.60k|		}
  304|  1.72k|	}
_ZNK4pcpp9LdapLayer17getRootAsn1RecordEv:
  307|     90|	{
  308|     90|		return m_Asn1Record->castAs<Asn1SequenceRecord>();
  309|     90|	}
_ZNK4pcpp9LdapLayer26getLdapOperationAsn1RecordEv:
  312|     90|	{
  313|     90|		return getRootAsn1Record()->getSubRecords().at(operationTypeIndex)->castAs<Asn1ConstructedRecord>();
  314|     90|	}
_ZNK4pcpp9LdapLayer20getLdapOperationTypeEv:
  352|     44|	{
  353|     44|		uint8_t tagType;
  354|     44|		try
  355|     44|		{
  356|     44|			tagType = getLdapOperationAsn1Record()->getTagType();
  357|     44|		}
  358|     44|		catch (...)
  359|     44|		{
  360|      0|			tagType = LdapOperationType::Unknown;
  361|      0|		}
  362|       |
  363|     44|		return LdapOperationType::fromUintValue(tagType);
  364|     44|	}
_ZN4pcpp9LdapLayer14parseNextLayerEv:
  367|    118|	{
  368|    118|		size_t headerLen = getHeaderLen();
  369|    118|		if (m_DataLen <= headerLen || headerLen == 0)
  ------------------
  |  Branch (369:7): [True: 68, False: 50]
  |  Branch (369:33): [True: 0, False: 50]
  ------------------
  370|     68|			return;
  371|       |
  372|     50|		uint8_t* payload = m_Data + headerLen;
  373|     50|		size_t payloadLen = m_DataLen - headerLen;
  374|       |
  375|     50|		constructNextLayerFromFactory(LdapLayer::parseLdapMessage, payload, payloadLen);
  376|     50|	}
_ZNK4pcpp17LdapResponseLayer13getResultCodeEv:
  427|     42|	{
  428|     42|		return LdapResultCode::fromUintValue(getLdapOperationAsn1Record()
  429|     42|		                                         ->getSubRecords()
  430|     42|		                                         .at(resultCodeIndex)
  431|     42|		                                         ->castAs<Asn1EnumeratedRecord>()
  432|     42|		                                         ->getIntValue<uint8_t>());
  433|     42|	}
_ZNK4pcpp17LdapResponseLayer21getExtendedInfoStringEv:
  477|     42|	{
  478|     42|		return getResultCode().toString();
  479|     42|	}
_ZNK4pcpp20LdapBindRequestLayer21getAuthenticationTypeEv:
  548|      2|	{
  549|      2|		if (getLdapOperationAsn1Record()->getSubRecords().size() <= credentialIndex)
  ------------------
  |  Branch (549:7): [True: 0, False: 2]
  ------------------
  550|      0|		{
  551|      0|			return LdapBindRequestLayer::AuthenticationType::NotApplicable;
  552|      0|		}
  553|       |
  554|      2|		auto authType = getLdapOperationAsn1Record()->getSubRecords().at(credentialIndex)->getTagType();
  555|      2|		switch (authType)
  556|      2|		{
  557|      0|		case 0:
  ------------------
  |  Branch (557:3): [True: 0, False: 2]
  ------------------
  558|      0|			return LdapBindRequestLayer::AuthenticationType::Simple;
  559|      2|		case 3:
  ------------------
  |  Branch (559:3): [True: 2, False: 0]
  ------------------
  560|      2|			return LdapBindRequestLayer::AuthenticationType::Sasl;
  561|      0|		default:
  ------------------
  |  Branch (561:3): [True: 0, False: 2]
  ------------------
  562|      0|			return LdapBindRequestLayer::AuthenticationType::NotApplicable;
  563|      2|		}
  564|      2|	}
_ZNK4pcpp20LdapBindRequestLayer21getExtendedInfoStringEv:
  605|      2|	{
  606|      2|		switch (getAuthenticationType())
  607|      2|		{
  608|      0|		case AuthenticationType::Simple:
  ------------------
  |  Branch (608:3): [True: 0, False: 2]
  ------------------
  609|      0|			return "simple";
  610|      2|		case AuthenticationType::Sasl:
  ------------------
  |  Branch (610:3): [True: 2, False: 0]
  ------------------
  611|      2|			return "sasl";
  612|      0|		default:
  ------------------
  |  Branch (612:3): [True: 0, False: 2]
  ------------------
  613|      0|			return "Unknown";
  614|      2|		}
  615|      2|	}

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

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

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

_ZNK4pcpp12NDPLayerBase12getNdpOptionENS_22NDPNeighborOptionTypesE:
   45|  2.11k|	{
   46|  2.11k|		return m_OptionReader.getTLVRecord((uint8_t)option, getNdpOptionsBasePtr(), getHeaderLen() - getNdpHeaderLen());
   47|  2.11k|	}
_ZNK4pcpp28NDPNeighborSolicitationLayer19hasLinkLayerAddressEv:
  121|  1.35k|	{
  122|  1.35k|		NdpOption option = this->getNdpOption(NDPNeighborOptionTypes::NDP_OPTION_SOURCE_LINK_LAYER);
  123|  1.35k|		return option.isNull() ? false : true;
  ------------------
  |  Branch (123:10): [True: 978, False: 380]
  ------------------
  124|  1.35k|	}
_ZNK4pcpp28NDPNeighborSolicitationLayer19getLinkLayerAddressEv:
  127|    380|	{
  128|    380|		NdpOption option = this->getNdpOption(NDPNeighborOptionTypes::NDP_OPTION_SOURCE_LINK_LAYER);
  129|       |
  130|    380|		if (option.isNull())
  ------------------
  |  Branch (130:7): [True: 0, False: 380]
  ------------------
  131|      0|		{
  132|      0|			return MacAddress::Zero;
  133|      0|		}
  134|       |
  135|    380|		return MacAddress(option.getValue());
  136|    380|	}
_ZNK4pcpp28NDPNeighborSolicitationLayer8toStringEv:
  139|  1.35k|	{
  140|  1.35k|		std::ostringstream typeStream;
  141|  1.35k|		typeStream << "ICMPv6 Layer, Neighbor Solicitation Message, TargetIP: " + getTargetIP().toString();
  142|  1.35k|		hasLinkLayerAddress() ? typeStream << ", SourceMAC: " + getLinkLayerAddress().toString()
  ------------------
  |  Branch (142:3): [True: 380, False: 978]
  ------------------
  143|  1.35k|		                      : typeStream << ", no Option";
  144|       |
  145|  1.35k|		return typeStream.str();
  146|  1.35k|	}
_ZNK4pcpp29NDPNeighborAdvertisementLayer16hasTargetMacInfoEv:
  182|    196|	{
  183|    196|		NdpOption option = this->getNdpOption(NDPNeighborOptionTypes::NDP_OPTION_TARGET_LINK_LAYER);
  184|    196|		return option.isNull() ? false : true;
  ------------------
  |  Branch (184:10): [True: 12, False: 184]
  ------------------
  185|    196|	}
_ZNK4pcpp29NDPNeighborAdvertisementLayer12getTargetMacEv:
  188|    184|	{
  189|    184|		NdpOption option = this->getNdpOption(NDPNeighborOptionTypes::NDP_OPTION_TARGET_LINK_LAYER);
  190|       |
  191|    184|		if (option.isNull())
  ------------------
  |  Branch (191:7): [True: 0, False: 184]
  ------------------
  192|      0|		{
  193|      0|			return MacAddress::Zero;
  194|      0|		}
  195|       |
  196|    184|		return MacAddress(option.getValue());
  197|    184|	}
_ZNK4pcpp29NDPNeighborAdvertisementLayer8toStringEv:
  200|    196|	{
  201|    196|		std::ostringstream typeStream;
  202|    196|		typeStream << "ICMPv6 Layer, Neighbor Advertisement Message, TargetIP: " << getTargetIP().toString();
  203|    196|		hasTargetMacInfo() ? typeStream << ", TargetMAC: " + getTargetMac().toString() : typeStream << ", no Option";
  ------------------
  |  Branch (203:3): [True: 184, False: 12]
  ------------------
  204|       |
  205|    196|		return typeStream.str();
  206|    196|	}

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

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

_ZNK4pcpp17NullLoopbackLayer9getFamilyEv:
   24|  12.6k|	{
   25|  12.6k|		uint32_t family = *(reinterpret_cast<uint32_t*>(m_Data));
   26|  12.6k|		if ((family & 0xFFFF'0000) != 0)
  ------------------
  |  Branch (26:7): [True: 10.7k, False: 1.91k]
  ------------------
   27|  10.7k|		{
   28|  10.7k|			if ((family & 0xFF00'0000) == 0 && (family & 0x00FF'0000) < 0x0006'0000)
  ------------------
  |  Branch (28:8): [True: 9.57k, False: 1.20k]
  |  Branch (28:39): [True: 348, False: 9.22k]
  ------------------
   29|    348|			{
   30|    348|				family >>= 16;
   31|    348|			}
   32|  10.4k|			else
   33|  10.4k|			{
   34|  10.4k|				family = BSWAP32(family);
  ------------------
  |  |   11|  10.4k|#define BSWAP32(x) (((x) >> 24) | (((x) & 0x00FF'0000) >> 8) | (((x) & 0x0000'FF00) << 8) | ((x) << 24))
  ------------------
   35|  10.4k|			}
   36|  10.7k|		}
   37|  1.91k|		else if ((family & 0x0000'00FF) == 0 && (family & 0x0000'FF00) < 0x0000'0600)
  ------------------
  |  Branch (37:12): [True: 417, False: 1.49k]
  |  Branch (37:43): [True: 267, False: 150]
  ------------------
   38|    267|		{
   39|    267|			family = BSWAP16(family & 0xFFFF);
  ------------------
  |  |   10|    267|#define BSWAP16(x) (((x) >> 8) | ((x) << 8))
  ------------------
   40|    267|		}
   41|       |
   42|  12.6k|		return family;
   43|  12.6k|	}
_ZN4pcpp17NullLoopbackLayer14parseNextLayerEv:
   51|  12.6k|	{
   52|  12.6k|		uint8_t* payload = m_Data + sizeof(uint32_t);
   53|  12.6k|		size_t payloadLen = m_DataLen - sizeof(uint32_t);
   54|       |
   55|  12.6k|		uint32_t family = getFamily();
   56|  12.6k|		if (family > Ieee8023MaxLength)
  ------------------
  |  Branch (56:7): [True: 10.7k, False: 1.97k]
  ------------------
   57|  10.7k|		{
   58|  10.7k|			uint16_t ethType = static_cast<uint16_t>(family);
   59|  10.7k|			switch (ethType)
   60|  10.7k|			{
   61|  9.05k|			case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   33|  9.05k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (61:4): [True: 9.05k, False: 1.66k]
  ------------------
   62|  9.05k|			{
   63|  9.05k|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   64|  9.05k|				return;
   65|      0|			}
   66|      0|			case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   49|      0|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (66:4): [True: 0, False: 10.7k]
  ------------------
   67|      0|			{
   68|      0|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   69|      0|				return;
   70|      0|			}
   71|  1.66k|			default:
  ------------------
  |  Branch (71:4): [True: 1.66k, False: 9.05k]
  ------------------
   72|  1.66k|			{
   73|  1.66k|				constructNextLayer<PayloadLayer>(payload, payloadLen);
   74|  1.66k|				return;
   75|      0|			}
   76|  10.7k|			}
   77|  10.7k|		}
   78|       |
   79|  1.97k|		switch (family)
   80|  1.97k|		{
   81|    264|		case PCPP_BSD_AF_INET:
  ------------------
  |  |   13|    264|#define PCPP_BSD_AF_INET 2
  ------------------
  |  Branch (81:3): [True: 264, False: 1.70k]
  ------------------
   82|    264|		{
   83|    264|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   84|    264|			break;
   85|      0|		}
   86|    321|		case PCPP_BSD_AF_INET6_BSD:
  ------------------
  |  |   23|    321|#define PCPP_BSD_AF_INET6_BSD 24
  ------------------
  |  Branch (86:3): [True: 321, False: 1.64k]
  ------------------
   87|    321|		case PCPP_BSD_AF_INET6_FREEBSD:
  ------------------
  |  |   25|    321|#define PCPP_BSD_AF_INET6_FREEBSD 28
  ------------------
  |  Branch (87:3): [True: 0, False: 1.97k]
  ------------------
   88|  1.07k|		case PCPP_BSD_AF_INET6_DARWIN:
  ------------------
  |  |   27|  1.07k|#define PCPP_BSD_AF_INET6_DARWIN 30
  ------------------
  |  Branch (88:3): [True: 755, False: 1.21k]
  ------------------
   89|  1.07k|		{
   90|  1.07k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   91|  1.07k|			break;
   92|    321|		}
   93|    630|		default:
  ------------------
  |  Branch (93:3): [True: 630, False: 1.34k]
  ------------------
   94|    630|		{
   95|    630|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   96|    630|			break;
   97|    321|		}
   98|  1.97k|		}
   99|  1.97k|	}
_ZNK4pcpp17NullLoopbackLayer8toStringEv:
  102|  5.03k|	{
  103|  5.03k|		return "Null/Loopback";
  104|  5.03k|	}

_ZN4pcpp10PPPoELayer22computeCalculateFieldsEv:
   33|  4.32k|	{
   34|  4.32k|		pppoe_header* pppoeHdr = getPPPoEHeader();
   35|       |		pppoeHdr->payloadLength = htobe16(m_DataLen - sizeof(pppoe_header));
   36|  4.32k|	}
_ZN4pcpp17PPPoESessionLayer14parseNextLayerEv:
   56|  29.7k|	{
   57|  29.7k|		size_t headerLen = getHeaderLen();
   58|  29.7k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (58:7): [True: 264, False: 29.4k]
  ------------------
   59|    264|			return;
   60|       |
   61|  29.4k|		uint8_t* payload = m_Data + headerLen;
   62|  29.4k|		size_t payloadLen = m_DataLen - headerLen;
   63|       |
   64|  29.4k|		switch (getPPPNextProtocol())
   65|  29.4k|		{
   66|  25.1k|		case PCPP_PPP_IP:
  ------------------
  |  |  457|  25.1k|#define PCPP_PPP_IP 0x21
  ------------------
  |  Branch (66:3): [True: 25.1k, False: 4.31k]
  ------------------
   67|  25.1k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   68|  25.1k|			break;
   69|  3.53k|		case PCPP_PPP_IPV6:
  ------------------
  |  |  509|  3.53k|#define PCPP_PPP_IPV6 0x57
  ------------------
  |  Branch (69:3): [True: 3.53k, False: 25.9k]
  ------------------
   70|  3.53k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   71|  3.53k|			break;
   72|    779|		default:
  ------------------
  |  Branch (72:3): [True: 779, False: 28.6k]
  ------------------
   73|    779|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   74|    779|			break;
   75|  29.4k|		}
   76|  29.4k|	}
_ZNK4pcpp17PPPoESessionLayer18getPPPNextProtocolEv:
   79|  36.6k|	{
   80|  36.6k|		if (m_DataLen < getHeaderLen())
  ------------------
  |  Branch (80:7): [True: 0, False: 36.6k]
  ------------------
   81|      0|		{
   82|      0|			PCPP_LOG_ERROR("ERROR: size of layer is smaller then PPPoE session header");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePPPoELayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   83|      0|			return 0;
   84|      0|		}
   85|       |
   86|  36.6k|		uint16_t pppNextProto = *reinterpret_cast<uint16_t*>(m_Data + sizeof(pppoe_header));
   87|       |		return be16toh(pppNextProto);
   88|  36.6k|	}
_ZN4pcpp29createPPPNextProtoToStringMapEv:
  103|      2|	{
  104|      2|		std::unordered_map<uint16_t, std::string> tempMap;
  105|      2|		tempMap[PCPP_PPP_PADDING] = "Padding Protocol";
  ------------------
  |  |  451|      2|#define PCPP_PPP_PADDING 0x1
  ------------------
  106|      2|		tempMap[PCPP_PPP_ROHC_SCID] = "ROHC small-CID";
  ------------------
  |  |  453|      2|#define PCPP_PPP_ROHC_SCID 0x3
  ------------------
  107|      2|		tempMap[PCPP_PPP_ROHC_LCID] = "ROHC large-CID";
  ------------------
  |  |  455|      2|#define PCPP_PPP_ROHC_LCID 0x5
  ------------------
  108|      2|		tempMap[PCPP_PPP_IP] = "Internet Protocol version 4";
  ------------------
  |  |  457|      2|#define PCPP_PPP_IP 0x21
  ------------------
  109|      2|		tempMap[PCPP_PPP_OSI] = "OSI Network Layer";
  ------------------
  |  |  459|      2|#define PCPP_PPP_OSI 0x23
  ------------------
  110|      2|		tempMap[PCPP_PPP_XNSIDP] = "Xerox NS IDP";
  ------------------
  |  |  461|      2|#define PCPP_PPP_XNSIDP 0x25
  ------------------
  111|      2|		tempMap[PCPP_PPP_DEC4] = "DECnet Phase IV";
  ------------------
  |  |  463|      2|#define PCPP_PPP_DEC4 0x27
  ------------------
  112|      2|		tempMap[PCPP_PPP_AT] = "Appletalk";
  ------------------
  |  |  465|      2|#define PCPP_PPP_AT 0x29
  ------------------
  113|      2|		tempMap[PCPP_PPP_IPX] = "Novell IPX";
  ------------------
  |  |  467|      2|#define PCPP_PPP_IPX 0x2b
  ------------------
  114|      2|		tempMap[PCPP_PPP_VJC_COMP] = "Van Jacobson Compressed TCP/IP";
  ------------------
  |  |  469|      2|#define PCPP_PPP_VJC_COMP 0x2d
  ------------------
  115|      2|		tempMap[PCPP_PPP_VJC_UNCOMP] = "Van Jacobson Uncompressed TCP/IP";
  ------------------
  |  |  471|      2|#define PCPP_PPP_VJC_UNCOMP 0x2f
  ------------------
  116|      2|		tempMap[PCPP_PPP_BCP] = "Bridging PDU";
  ------------------
  |  |  473|      2|#define PCPP_PPP_BCP 0x31
  ------------------
  117|      2|		tempMap[PCPP_PPP_ST] = "Stream Protocol (ST-II)";
  ------------------
  |  |  475|      2|#define PCPP_PPP_ST 0x33
  ------------------
  118|      2|		tempMap[PCPP_PPP_VINES] = "Banyan Vines";
  ------------------
  |  |  477|      2|#define PCPP_PPP_VINES 0x35
  ------------------
  119|      2|		tempMap[PCPP_PPP_AT_EDDP] = "AppleTalk EDDP";
  ------------------
  |  |  479|      2|#define PCPP_PPP_AT_EDDP 0x39
  ------------------
  120|      2|		tempMap[PCPP_PPP_AT_SB] = "AppleTalk SmartBuffered";
  ------------------
  |  |  481|      2|#define PCPP_PPP_AT_SB 0x3b
  ------------------
  121|      2|		tempMap[PCPP_PPP_MP] = "Multi-Link";
  ------------------
  |  |  483|      2|#define PCPP_PPP_MP 0x3d
  ------------------
  122|      2|		tempMap[PCPP_PPP_NB] = "NETBIOS Framing";
  ------------------
  |  |  485|      2|#define PCPP_PPP_NB 0x3f
  ------------------
  123|      2|		tempMap[PCPP_PPP_CISCO] = "Cisco Systems";
  ------------------
  |  |  487|      2|#define PCPP_PPP_CISCO 0x41
  ------------------
  124|      2|		tempMap[PCPP_PPP_ASCOM] = "Ascom Timeplex";
  ------------------
  |  |  489|      2|#define PCPP_PPP_ASCOM 0x43
  ------------------
  125|      2|		tempMap[PCPP_PPP_LBLB] = "Fujitsu Link Backup and Load Balancing (LBLB)";
  ------------------
  |  |  491|      2|#define PCPP_PPP_LBLB 0x45
  ------------------
  126|      2|		tempMap[PCPP_PPP_RL] = "DCA Remote Lan";
  ------------------
  |  |  493|      2|#define PCPP_PPP_RL 0x47
  ------------------
  127|      2|		tempMap[PCPP_PPP_SDTP] = "Serial Data Transport Protocol (PPP-SDTP)";
  ------------------
  |  |  495|      2|#define PCPP_PPP_SDTP 0x49
  ------------------
  128|      2|		tempMap[PCPP_PPP_LLC] = "SNA over 802.2";
  ------------------
  |  |  497|      2|#define PCPP_PPP_LLC 0x4b
  ------------------
  129|      2|		tempMap[PCPP_PPP_SNA] = "SNA";
  ------------------
  |  |  499|      2|#define PCPP_PPP_SNA 0x4d
  ------------------
  130|      2|		tempMap[PCPP_PPP_IPV6HC] = "IPv6 Header Compression ";
  ------------------
  |  |  501|      2|#define PCPP_PPP_IPV6HC 0x4f
  ------------------
  131|      2|		tempMap[PCPP_PPP_KNX] = "KNX Bridging Data";
  ------------------
  |  |  503|      2|#define PCPP_PPP_KNX 0x51
  ------------------
  132|      2|		tempMap[PCPP_PPP_ENCRYPT] = "Encryption";
  ------------------
  |  |  505|      2|#define PCPP_PPP_ENCRYPT 0x53
  ------------------
  133|      2|		tempMap[PCPP_PPP_ILE] = "Individual Link Encryption";
  ------------------
  |  |  507|      2|#define PCPP_PPP_ILE 0x55
  ------------------
  134|      2|		tempMap[PCPP_PPP_IPV6] = "Internet Protocol version 6";
  ------------------
  |  |  509|      2|#define PCPP_PPP_IPV6 0x57
  ------------------
  135|      2|		tempMap[PCPP_PPP_MUX] = "PPP Muxing";
  ------------------
  |  |  511|      2|#define PCPP_PPP_MUX 0x59
  ------------------
  136|      2|		tempMap[PCPP_PPP_VSNP] = "Vendor-Specific Network Protocol (VSNP)";
  ------------------
  |  |  513|      2|#define PCPP_PPP_VSNP 0x5b
  ------------------
  137|      2|		tempMap[PCPP_PPP_TNP] = "TRILL Network Protocol (TNP)";
  ------------------
  |  |  515|      2|#define PCPP_PPP_TNP 0x5d
  ------------------
  138|      2|		tempMap[PCPP_PPP_RTP_FH] = "RTP IPHC Full Header";
  ------------------
  |  |  517|      2|#define PCPP_PPP_RTP_FH 0x61
  ------------------
  139|      2|		tempMap[PCPP_PPP_RTP_CTCP] = "RTP IPHC Compressed TCP";
  ------------------
  |  |  519|      2|#define PCPP_PPP_RTP_CTCP 0x63
  ------------------
  140|      2|		tempMap[PCPP_PPP_RTP_CNTCP] = "RTP IPHC Compressed Non TCP";
  ------------------
  |  |  521|      2|#define PCPP_PPP_RTP_CNTCP 0x65
  ------------------
  141|      2|		tempMap[PCPP_PPP_RTP_CUDP8] = "RTP IPHC Compressed UDP 8";
  ------------------
  |  |  523|      2|#define PCPP_PPP_RTP_CUDP8 0x67
  ------------------
  142|      2|		tempMap[PCPP_PPP_RTP_CRTP8] = "RTP IPHC Compressed RTP 8";
  ------------------
  |  |  525|      2|#define PCPP_PPP_RTP_CRTP8 0x69
  ------------------
  143|      2|		tempMap[PCPP_PPP_STAMPEDE] = "Stampede Bridging";
  ------------------
  |  |  527|      2|#define PCPP_PPP_STAMPEDE 0x6f
  ------------------
  144|      2|		tempMap[PCPP_PPP_MPPLUS] = "MP+ Protocol";
  ------------------
  |  |  529|      2|#define PCPP_PPP_MPPLUS 0x73
  ------------------
  145|      2|		tempMap[PCPP_PPP_NTCITS_IPI] = "NTCITS IPI";
  ------------------
  |  |  531|      2|#define PCPP_PPP_NTCITS_IPI 0xc1
  ------------------
  146|      2|		tempMap[PCPP_PPP_ML_SLCOMP] = "Single link compression in multilink";
  ------------------
  |  |  533|      2|#define PCPP_PPP_ML_SLCOMP 0xfb
  ------------------
  147|      2|		tempMap[PCPP_PPP_COMP] = "Compressed datagram";
  ------------------
  |  |  535|      2|#define PCPP_PPP_COMP 0xfd
  ------------------
  148|      2|		tempMap[PCPP_PPP_STP_HELLO] = "802.1d Hello Packets";
  ------------------
  |  |  537|      2|#define PCPP_PPP_STP_HELLO 0x0201
  ------------------
  149|      2|		tempMap[PCPP_PPP_IBM_SR] = "IBM Source Routing BPDU";
  ------------------
  |  |  539|      2|#define PCPP_PPP_IBM_SR 0x0203
  ------------------
  150|      2|		tempMap[PCPP_PPP_DEC_LB] = "DEC LANBridge100 Spanning Tree";
  ------------------
  |  |  541|      2|#define PCPP_PPP_DEC_LB 0x0205
  ------------------
  151|      2|		tempMap[PCPP_PPP_CDP] = "Cisco Discovery Protocol";
  ------------------
  |  |  543|      2|#define PCPP_PPP_CDP 0x0207
  ------------------
  152|      2|		tempMap[PCPP_PPP_NETCS] = "Netcs Twin Routing";
  ------------------
  |  |  545|      2|#define PCPP_PPP_NETCS 0x0209
  ------------------
  153|      2|		tempMap[PCPP_PPP_STP] = "STP - Scheduled Transfer Protocol";
  ------------------
  |  |  547|      2|#define PCPP_PPP_STP 0x020b
  ------------------
  154|      2|		tempMap[PCPP_PPP_EDP] = "EDP - Extreme Discovery Protocol";
  ------------------
  |  |  549|      2|#define PCPP_PPP_EDP 0x020d
  ------------------
  155|      2|		tempMap[PCPP_PPP_OSCP] = "Optical Supervisory Channel Protocol (OSCP)";
  ------------------
  |  |  551|      2|#define PCPP_PPP_OSCP 0x0211
  ------------------
  156|      2|		tempMap[PCPP_PPP_OSCP2] = "Optical Supervisory Channel Protocol (OSCP)";
  ------------------
  |  |  553|      2|#define PCPP_PPP_OSCP2 0x0213
  ------------------
  157|      2|		tempMap[PCPP_PPP_LUXCOM] = "Luxcom";
  ------------------
  |  |  555|      2|#define PCPP_PPP_LUXCOM 0x0231
  ------------------
  158|      2|		tempMap[PCPP_PPP_SIGMA] = "Sigma Network Systems";
  ------------------
  |  |  557|      2|#define PCPP_PPP_SIGMA 0x0233
  ------------------
  159|      2|		tempMap[PCPP_PPP_ACSP] = "Apple Client Server Protocol";
  ------------------
  |  |  559|      2|#define PCPP_PPP_ACSP 0x0235
  ------------------
  160|      2|		tempMap[PCPP_PPP_MPLS_UNI] = "MPLS Unicast";
  ------------------
  |  |  561|      2|#define PCPP_PPP_MPLS_UNI 0x0281
  ------------------
  161|      2|		tempMap[PCPP_PPP_MPLS_MULTI] = "MPLS Multicast";
  ------------------
  |  |  563|      2|#define PCPP_PPP_MPLS_MULTI 0x0283
  ------------------
  162|      2|		tempMap[PCPP_PPP_P12844] = "IEEE p1284.4 standard - data packets";
  ------------------
  |  |  565|      2|#define PCPP_PPP_P12844 0x0285
  ------------------
  163|      2|		tempMap[PCPP_PPP_TETRA] = "ETSI TETRA Network Protocol Type 1";
  ------------------
  |  |  567|      2|#define PCPP_PPP_TETRA 0x0287
  ------------------
  164|      2|		tempMap[PCPP_PPP_MFTP] = "Multichannel Flow Treatment Protocol";
  ------------------
  |  |  569|      2|#define PCPP_PPP_MFTP 0x0289
  ------------------
  165|      2|		tempMap[PCPP_PPP_RTP_CTCPND] = "RTP IPHC Compressed TCP No Delta";
  ------------------
  |  |  571|      2|#define PCPP_PPP_RTP_CTCPND 0x2063
  ------------------
  166|      2|		tempMap[PCPP_PPP_RTP_CS] = "RTP IPHC Context State";
  ------------------
  |  |  573|      2|#define PCPP_PPP_RTP_CS 0x2065
  ------------------
  167|      2|		tempMap[PCPP_PPP_RTP_CUDP16] = "RTP IPHC Compressed UDP 16";
  ------------------
  |  |  575|      2|#define PCPP_PPP_RTP_CUDP16 0x2067
  ------------------
  168|      2|		tempMap[PCPP_PPP_RTP_CRDP16] = "RTP IPHC Compressed RTP 16";
  ------------------
  |  |  577|      2|#define PCPP_PPP_RTP_CRDP16 0x2069
  ------------------
  169|      2|		tempMap[PCPP_PPP_CCCP] = "Cray Communications Control Protocol";
  ------------------
  |  |  579|      2|#define PCPP_PPP_CCCP 0x4001
  ------------------
  170|      2|		tempMap[PCPP_PPP_CDPD_MNRP] = "CDPD Mobile Network Registration Protocol";
  ------------------
  |  |  581|      2|#define PCPP_PPP_CDPD_MNRP 0x4003
  ------------------
  171|      2|		tempMap[PCPP_PPP_EXPANDAP] = "Expand accelerator protocol";
  ------------------
  |  |  583|      2|#define PCPP_PPP_EXPANDAP 0x4005
  ------------------
  172|      2|		tempMap[PCPP_PPP_ODSICP] = "ODSICP NCP";
  ------------------
  |  |  585|      2|#define PCPP_PPP_ODSICP 0x4007
  ------------------
  173|      2|		tempMap[PCPP_PPP_DOCSIS] = "DOCSIS DLL";
  ------------------
  |  |  587|      2|#define PCPP_PPP_DOCSIS 0x4009
  ------------------
  174|      2|		tempMap[PCPP_PPP_CETACEANNDP] = "Cetacean Network Detection Protocol";
  ------------------
  |  |  589|      2|#define PCPP_PPP_CETACEANNDP 0x400b
  ------------------
  175|      2|		tempMap[PCPP_PPP_LZS] = "Stacker LZS";
  ------------------
  |  |  591|      2|#define PCPP_PPP_LZS 0x4021
  ------------------
  176|      2|		tempMap[PCPP_PPP_REFTEK] = "RefTek Protocol";
  ------------------
  |  |  593|      2|#define PCPP_PPP_REFTEK 0x4023
  ------------------
  177|      2|		tempMap[PCPP_PPP_FC] = "Fibre Channel";
  ------------------
  |  |  595|      2|#define PCPP_PPP_FC 0x4025
  ------------------
  178|      2|		tempMap[PCPP_PPP_EMIT] = "EMIT Protocols";
  ------------------
  |  |  597|      2|#define PCPP_PPP_EMIT 0x4027
  ------------------
  179|      2|		tempMap[PCPP_PPP_VSP] = "Vendor-Specific Protocol (VSP)";
  ------------------
  |  |  599|      2|#define PCPP_PPP_VSP 0x405b
  ------------------
  180|      2|		tempMap[PCPP_PPP_TLSP] = "TRILL Link State Protocol (TLSP)";
  ------------------
  |  |  601|      2|#define PCPP_PPP_TLSP 0x405d
  ------------------
  181|      2|		tempMap[PCPP_PPP_IPCP] = "Internet Protocol Control Protocol";
  ------------------
  |  |  603|      2|#define PCPP_PPP_IPCP 0x8021
  ------------------
  182|      2|		tempMap[PCPP_PPP_OSINLCP] = "OSI Network Layer Control Protocol";
  ------------------
  |  |  605|      2|#define PCPP_PPP_OSINLCP 0x8023
  ------------------
  183|      2|		tempMap[PCPP_PPP_XNSIDPCP] = "Xerox NS IDP Control Protocol";
  ------------------
  |  |  607|      2|#define PCPP_PPP_XNSIDPCP 0x8025
  ------------------
  184|      2|		tempMap[PCPP_PPP_DECNETCP] = "DECnet Phase IV Control Protocol";
  ------------------
  |  |  609|      2|#define PCPP_PPP_DECNETCP 0x8027
  ------------------
  185|      2|		tempMap[PCPP_PPP_ATCP] = "AppleTalk Control Protocol";
  ------------------
  |  |  611|      2|#define PCPP_PPP_ATCP 0x8029
  ------------------
  186|      2|		tempMap[PCPP_PPP_IPXCP] = "Novell IPX Control Protocol";
  ------------------
  |  |  613|      2|#define PCPP_PPP_IPXCP 0x802b
  ------------------
  187|      2|		tempMap[PCPP_PPP_BRIDGENCP] = "Bridging NCP";
  ------------------
  |  |  615|      2|#define PCPP_PPP_BRIDGENCP 0x8031
  ------------------
  188|      2|		tempMap[PCPP_PPP_SPCP] = "Stream Protocol Control Protocol";
  ------------------
  |  |  617|      2|#define PCPP_PPP_SPCP 0x8033
  ------------------
  189|      2|		tempMap[PCPP_PPP_BVCP] = "Banyan Vines Control Protocol";
  ------------------
  |  |  619|      2|#define PCPP_PPP_BVCP 0x8035
  ------------------
  190|      2|		tempMap[PCPP_PPP_MLCP] = "Multi-Link Control Protocol";
  ------------------
  |  |  621|      2|#define PCPP_PPP_MLCP 0x803d
  ------------------
  191|      2|		tempMap[PCPP_PPP_NBCP] = "NETBIOS Framing Control Protocol";
  ------------------
  |  |  623|      2|#define PCPP_PPP_NBCP 0x803f
  ------------------
  192|      2|		tempMap[PCPP_PPP_CISCOCP] = "Cisco Systems Control Protocol";
  ------------------
  |  |  625|      2|#define PCPP_PPP_CISCOCP 0x8041
  ------------------
  193|      2|		tempMap[PCPP_PPP_ASCOMCP] = "Ascom Timeplex";
  ------------------
  |  |  627|      2|#define PCPP_PPP_ASCOMCP 0x8043
  ------------------
  194|      2|		tempMap[PCPP_PPP_LBLBCP] = "Fujitsu LBLB Control Protocol";
  ------------------
  |  |  629|      2|#define PCPP_PPP_LBLBCP 0x8045
  ------------------
  195|      2|		tempMap[PCPP_PPP_RLNCP] = "DCA Remote Lan Network Control Protocol (RLNCP)";
  ------------------
  |  |  631|      2|#define PCPP_PPP_RLNCP 0x8047
  ------------------
  196|      2|		tempMap[PCPP_PPP_SDCP] = "Serial Data Control Protocol (PPP-SDCP)";
  ------------------
  |  |  633|      2|#define PCPP_PPP_SDCP 0x8049
  ------------------
  197|      2|		tempMap[PCPP_PPP_LLCCP] = "SNA over 802.2 Control Protocol";
  ------------------
  |  |  635|      2|#define PCPP_PPP_LLCCP 0x804b
  ------------------
  198|      2|		tempMap[PCPP_PPP_SNACP] = "SNA Control Protocol";
  ------------------
  |  |  637|      2|#define PCPP_PPP_SNACP 0x804d
  ------------------
  199|      2|		tempMap[PCPP_PPP_IP6HCCP] = "IP6 Header Compression Control Protocol";
  ------------------
  |  |  639|      2|#define PCPP_PPP_IP6HCCP 0x804f
  ------------------
  200|      2|		tempMap[PCPP_PPP_KNXCP] = "KNX Bridging Control Protocol";
  ------------------
  |  |  641|      2|#define PCPP_PPP_KNXCP 0x8051
  ------------------
  201|      2|		tempMap[PCPP_PPP_ECP] = "Encryption Control Protocol";
  ------------------
  |  |  643|      2|#define PCPP_PPP_ECP 0x8053
  ------------------
  202|      2|		tempMap[PCPP_PPP_ILECP] = "Individual Link Encryption Control Protocol";
  ------------------
  |  |  645|      2|#define PCPP_PPP_ILECP 0x8055
  ------------------
  203|      2|		tempMap[PCPP_PPP_IPV6CP] = "IPv6 Control Protocol";
  ------------------
  |  |  647|      2|#define PCPP_PPP_IPV6CP 0x8057
  ------------------
  204|      2|		tempMap[PCPP_PPP_MUXCP] = "PPP Muxing Control Protocol";
  ------------------
  |  |  649|      2|#define PCPP_PPP_MUXCP 0x8059
  ------------------
  205|      2|		tempMap[PCPP_PPP_VSNCP] = "Vendor-Specific Network Control Protocol (VSNCP)";
  ------------------
  |  |  651|      2|#define PCPP_PPP_VSNCP 0x805b
  ------------------
  206|      2|		tempMap[PCPP_PPP_TNCP] = "TRILL Network Control Protocol";
  ------------------
  |  |  653|      2|#define PCPP_PPP_TNCP 0x805d
  ------------------
  207|      2|		tempMap[PCPP_PPP_STAMPEDECP] = "Stampede Bridging Control Protocol";
  ------------------
  |  |  655|      2|#define PCPP_PPP_STAMPEDECP 0x806f
  ------------------
  208|      2|		tempMap[PCPP_PPP_MPPCP] = "MP+ Control Protocol";
  ------------------
  |  |  657|      2|#define PCPP_PPP_MPPCP 0x8073
  ------------------
  209|      2|		tempMap[PCPP_PPP_IPICP] = "NTCITS IPI Control Protocol";
  ------------------
  |  |  659|      2|#define PCPP_PPP_IPICP 0x80c1
  ------------------
  210|      2|		tempMap[PCPP_PPP_SLCC] = "Single link compression in multilink control";
  ------------------
  |  |  661|      2|#define PCPP_PPP_SLCC 0x80fb
  ------------------
  211|      2|		tempMap[PCPP_PPP_CCP] = "Compression Control Protocol";
  ------------------
  |  |  663|      2|#define PCPP_PPP_CCP 0x80fd
  ------------------
  212|      2|		tempMap[PCPP_PPP_CDPCP] = "Cisco Discovery Protocol Control Protocol";
  ------------------
  |  |  665|      2|#define PCPP_PPP_CDPCP 0x8207
  ------------------
  213|      2|		tempMap[PCPP_PPP_NETCSCP] = "Netcs Twin Routing";
  ------------------
  |  |  667|      2|#define PCPP_PPP_NETCSCP 0x8209
  ------------------
  214|      2|		tempMap[PCPP_PPP_STPCP] = "STP - Control Protocol";
  ------------------
  |  |  669|      2|#define PCPP_PPP_STPCP 0x820b
  ------------------
  215|      2|		tempMap[PCPP_PPP_EDPCP] = "EDPCP - Extreme Discovery Protocol Control Protocol";
  ------------------
  |  |  671|      2|#define PCPP_PPP_EDPCP 0x820d
  ------------------
  216|      2|		tempMap[PCPP_PPP_ACSPC] = "Apple Client Server Protocol Control";
  ------------------
  |  |  673|      2|#define PCPP_PPP_ACSPC 0x8235
  ------------------
  217|      2|		tempMap[PCPP_PPP_MPLSCP] = "MPLS Control Protocol";
  ------------------
  |  |  675|      2|#define PCPP_PPP_MPLSCP 0x8281
  ------------------
  218|      2|		tempMap[PCPP_PPP_P12844CP] = "IEEE p1284.4 standard - Protocol Control";
  ------------------
  |  |  677|      2|#define PCPP_PPP_P12844CP 0x8285
  ------------------
  219|      2|		tempMap[PCPP_PPP_TETRACP] = "ETSI TETRA TNP1 Control Protocol";
  ------------------
  |  |  679|      2|#define PCPP_PPP_TETRACP 0x8287
  ------------------
  220|      2|		tempMap[PCPP_PPP_MFTPCP] = "Multichannel Flow Treatment Protocol";
  ------------------
  |  |  681|      2|#define PCPP_PPP_MFTPCP 0x8289
  ------------------
  221|      2|		tempMap[PCPP_PPP_LCP] = "Link Control Protocol";
  ------------------
  |  |  683|      2|#define PCPP_PPP_LCP 0xc021
  ------------------
  222|      2|		tempMap[PCPP_PPP_PAP] = "Password Authentication Protocol";
  ------------------
  |  |  685|      2|#define PCPP_PPP_PAP 0xc023
  ------------------
  223|      2|		tempMap[PCPP_PPP_LQR] = "Link Quality Report";
  ------------------
  |  |  687|      2|#define PCPP_PPP_LQR 0xc025
  ------------------
  224|      2|		tempMap[PCPP_PPP_SPAP] = "Shiva Password Authentication Protocol";
  ------------------
  |  |  689|      2|#define PCPP_PPP_SPAP 0xc027
  ------------------
  225|      2|		tempMap[PCPP_PPP_CBCP] = "Callback Control Protocol (CBCP)";
  ------------------
  |  |  691|      2|#define PCPP_PPP_CBCP 0xc029
  ------------------
  226|      2|		tempMap[PCPP_PPP_BACP] = "BACP Bandwidth Allocation Control Protocol";
  ------------------
  |  |  693|      2|#define PCPP_PPP_BACP 0xc02b
  ------------------
  227|      2|		tempMap[PCPP_PPP_BAP] = "BAP Bandwidth Allocation Protocol";
  ------------------
  |  |  695|      2|#define PCPP_PPP_BAP 0xc02d
  ------------------
  228|      2|		tempMap[PCPP_PPP_VSAP] = "Vendor-Specific Authentication Protocol (VSAP)";
  ------------------
  |  |  697|      2|#define PCPP_PPP_VSAP 0xc05b
  ------------------
  229|      2|		tempMap[PCPP_PPP_CONTCP] = "Container Control Protocol";
  ------------------
  |  |  699|      2|#define PCPP_PPP_CONTCP 0xc081
  ------------------
  230|      2|		tempMap[PCPP_PPP_CHAP] = "Challenge Handshake Authentication Protocol";
  ------------------
  |  |  701|      2|#define PCPP_PPP_CHAP 0xc223
  ------------------
  231|      2|		tempMap[PCPP_PPP_RSAAP] = "RSA Authentication Protocol";
  ------------------
  |  |  703|      2|#define PCPP_PPP_RSAAP 0xc225
  ------------------
  232|      2|		tempMap[PCPP_PPP_EAP] = "Extensible Authentication Protocol";
  ------------------
  |  |  705|      2|#define PCPP_PPP_EAP 0xc227
  ------------------
  233|      2|		tempMap[PCPP_PPP_SIEP] = "Mitsubishi Security Information Exchange Protocol (SIEP)";
  ------------------
  |  |  707|      2|#define PCPP_PPP_SIEP 0xc229
  ------------------
  234|      2|		tempMap[PCPP_PPP_SBAP] = "Stampede Bridging Authorization Protocol";
  ------------------
  |  |  709|      2|#define PCPP_PPP_SBAP 0xc26f
  ------------------
  235|      2|		tempMap[PCPP_PPP_PRPAP] = "Proprietary Authentication Protocol";
  ------------------
  |  |  711|      2|#define PCPP_PPP_PRPAP 0xc281
  ------------------
  236|      2|		tempMap[PCPP_PPP_PRPAP2] = "Proprietary Authentication Protocol";
  ------------------
  |  |  713|      2|#define PCPP_PPP_PRPAP2 0xc283
  ------------------
  237|      2|		tempMap[PCPP_PPP_PRPNIAP] = "Proprietary Node ID Authentication Protocol";
  ------------------
  |  |  715|      2|#define PCPP_PPP_PRPNIAP 0xc481
  ------------------
  238|      2|		return tempMap;
  239|      2|	}
_ZNK4pcpp17PPPoESessionLayer8toStringEv:
  244|  6.80k|	{
  245|  6.80k|		auto findResult = PPPNextProtoToString.find(getPPPNextProtocol());
  246|  6.80k|		std::string nextProtocol;
  247|  6.80k|		if (findResult != PPPNextProtoToString.end())
  ------------------
  |  Branch (247:7): [True: 6.37k, False: 430]
  ------------------
  248|  6.37k|			nextProtocol = findResult->second;
  249|    430|		else
  250|    430|		{
  251|    430|			std::ostringstream stream;
  252|    430|			stream << "Unknown (0x" << std::hex << getPPPNextProtocol() << ")";
  253|    430|			nextProtocol = stream.str();
  254|    430|		}
  255|       |
  256|  6.80k|		return "PPP-over-Ethernet Session (followed by '" + nextProtocol + "')";
  257|  6.80k|	}
_ZNK4pcpp19PPPoEDiscoveryLayer12getHeaderLenEv:
  378|  4.35k|	{
  379|  4.35k|		size_t payloadLen = sizeof(pppoe_header) + be16toh(getPPPoEHeader()->payloadLength);
  380|  4.35k|		if (payloadLen > m_DataLen)
  ------------------
  |  Branch (380:7): [True: 1.04k, False: 3.31k]
  ------------------
  381|  1.04k|			return m_DataLen;
  382|       |
  383|  3.31k|		return payloadLen;
  384|  4.35k|	}
_ZNK4pcpp19PPPoEDiscoveryLayer12codeToStringENS_10PPPoELayer9PPPoECodeE:
  424|  1.84k|	{
  425|  1.84k|		switch (code)
  426|  1.84k|		{
  427|      0|		case PPPoELayer::PPPOE_CODE_SESSION:
  ------------------
  |  Branch (427:3): [True: 0, False: 1.84k]
  ------------------
  428|      0|			return std::string("PPPoE Session");
  429|      0|		case PPPoELayer::PPPOE_CODE_PADO:
  ------------------
  |  Branch (429:3): [True: 0, False: 1.84k]
  ------------------
  430|      0|			return std::string("PADO");
  431|    820|		case PPPoELayer::PPPOE_CODE_PADI:
  ------------------
  |  Branch (431:3): [True: 820, False: 1.02k]
  ------------------
  432|    820|			return std::string("PADI");
  433|    438|		case PPPoELayer::PPPOE_CODE_PADG:
  ------------------
  |  Branch (433:3): [True: 438, False: 1.40k]
  ------------------
  434|    438|			return std::string("PADG");
  435|      0|		case PPPoELayer::PPPOE_CODE_PADC:
  ------------------
  |  Branch (435:3): [True: 0, False: 1.84k]
  ------------------
  436|      0|			return std::string("PADC");
  437|      0|		case PPPoELayer::PPPOE_CODE_PADQ:
  ------------------
  |  Branch (437:3): [True: 0, False: 1.84k]
  ------------------
  438|      0|			return std::string("PADQ");
  439|      0|		case PPPoELayer::PPPOE_CODE_PADR:
  ------------------
  |  Branch (439:3): [True: 0, False: 1.84k]
  ------------------
  440|      0|			return std::string("PADR");
  441|    360|		case PPPoELayer::PPPOE_CODE_PADS:
  ------------------
  |  Branch (441:3): [True: 360, False: 1.48k]
  ------------------
  442|    360|			return std::string("PADS");
  443|      0|		case PPPoELayer::PPPOE_CODE_PADT:
  ------------------
  |  Branch (443:3): [True: 0, False: 1.84k]
  ------------------
  444|      0|			return std::string("PADT");
  445|      0|		case PPPoELayer::PPPOE_CODE_PADM:
  ------------------
  |  Branch (445:3): [True: 0, False: 1.84k]
  ------------------
  446|      0|			return std::string("PADM");
  447|      0|		case PPPoELayer::PPPOE_CODE_PADN:
  ------------------
  |  Branch (447:3): [True: 0, False: 1.84k]
  ------------------
  448|      0|			return std::string("PADN");
  449|    224|		default:
  ------------------
  |  Branch (449:3): [True: 224, False: 1.61k]
  ------------------
  450|    224|			return std::string("Unknown PPPoE code");
  451|  1.84k|		}
  452|  1.84k|	}

_ZN4pcpp6Packet12setRawPacketEPNS_9RawPacketEbjNS_13OsiModelLayerE:
   50|   191k|	{
   51|   191k|		destructPacketData();
   52|       |
   53|   191k|		m_FirstLayer = nullptr;
   54|   191k|		m_LastLayer = nullptr;
   55|   191k|		m_MaxPacketLen = rawPacket->getRawDataLen();
   56|   191k|		m_FreeRawPacket = freeRawPacket;
   57|   191k|		m_RawPacket = rawPacket;
   58|   191k|		m_CanReallocateData = true;
   59|       |
   60|   191k|		if (m_RawPacket == nullptr)
  ------------------
  |  Branch (60:7): [True: 0, False: 191k]
  ------------------
   61|      0|			return;
   62|       |
   63|   191k|		parsePacket(PacketParseOptions{ parseUntil, parseUntilLayer });
   64|   191k|	}
_ZN4pcpp6Packet11parsePacketENS_18PacketParseOptionsEb:
   67|   191k|	{
   68|   191k|		if (m_RawPacket == nullptr)
  ------------------
  |  Branch (68:7): [True: 0, False: 191k]
  ------------------
   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|   191k|		if (!incrementalParsing)
  ------------------
  |  Branch (74:7): [True: 0, False: 191k]
  ------------------
   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|   191k|		bool parsingNewLayers = false;
   81|       |
   82|       |		// If there is no first layer, create it based on the link layer type
   83|   191k|		if (m_FirstLayer == nullptr)
  ------------------
  |  Branch (83:7): [True: 191k, False: 0]
  ------------------
   84|   191k|		{
   85|   191k|			parsingNewLayers = true;
   86|       |
   87|   191k|			LinkLayerType linkType = m_RawPacket->getLinkLayerType();
   88|   191k|			m_FirstLayer = createFirstLayer(linkType);
   89|       |
   90|   191k|			if (m_FirstLayer == nullptr)
  ------------------
  |  Branch (90:8): [True: 1.93k, False: 189k]
  ------------------
   91|  1.93k|			{
   92|  1.93k|				PCPP_LOG_ERROR("Failed to create first layer! Possibly attempting to parse a RawPacket with no data.");
  ------------------
  |  |  444|  1.93k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|  1.93k|	do                                                                                                                 \
  |  |  |  |  414|  1.93k|	{                                                                                                                  \
  |  |  |  |  415|  1.93k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  1.93k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.93k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 1.93k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|  1.93k|		{                                                                                                              \
  |  |  |  |  418|  1.93k|			auto ctx =                                                                                                 \
  |  |  |  |  419|  1.93k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.93k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|  1.93k|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|  1.93k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|  1.93k|		}                                                                                                              \
  |  |  |  |  423|  1.93k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 1.93k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   93|  1.93k|				return;
   94|  1.93k|			}
   95|       |
   96|       |			// Mark the first layer as allocated in the packet
   97|   189k|			m_FirstLayer->m_AllocationInfo.ownedByPacket = true;
   98|   189k|		}
   99|       |
  100|   189k|		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|   189k|		if (m_LastLayer != nullptr && options.parseUntilProtocol == UnknownProtocol)
  ------------------
  |  Branch (105:7): [True: 0, False: 189k]
  |  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|   189k|		bool rollbackLastLayer = false;
  122|   189k|		bool foundTargetProtocol = false;
  123|   942k|		for (auto* curLayer = parseStartLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (123:42): [True: 752k, False: 189k]
  ------------------
  124|   752k|		{
  125|       |			// If we are parsing new layers, update the last layer pointer
  126|       |			// Otherwise we are just traversing already parsed layers
  127|   752k|			if (parsingNewLayers)
  ------------------
  |  Branch (127:8): [True: 752k, False: 0]
  ------------------
  128|   752k|			{
  129|       |				// Mark the current layer as allocated in the packet, as it was just created
  130|   752k|				curLayer->m_AllocationInfo.ownedByPacket = true;
  131|   752k|				m_LastLayer = curLayer;
  132|   752k|			}
  133|       |
  134|       |			// If the current layer is of a higher OSI layer than the target, stop parsing
  135|   752k|			if (curLayer->getOsiModelLayer() > options.parseUntilLayer)
  ------------------
  |  Branch (135:8): [True: 0, False: 752k]
  ------------------
  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|   752k|			const bool matchesTarget = curLayer->isMemberOfProtocolFamily(options.parseUntilProtocol);
  144|   752k|			if (options.parseUntilProtocol != UnknownProtocol && matchesTarget)
  ------------------
  |  Branch (144:8): [True: 0, False: 752k]
  |  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|   752k|			if (foundTargetProtocol && !matchesTarget)
  ------------------
  |  Branch (150:8): [True: 0, False: 752k]
  |  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|   752k|			if (!curLayer->hasNextLayer())
  ------------------
  |  Branch (159:8): [True: 752k, False: 0]
  ------------------
  160|   752k|			{
  161|   752k|				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|   752k|				curLayer->parseNextLayer();
  165|   752k|			}
  166|   752k|		}
  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|   189k|		if (rollbackLastLayer && m_LastLayer != m_FirstLayer)
  ------------------
  |  Branch (170:7): [True: 0, False: 189k]
  |  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|   189k|		if (m_LastLayer != nullptr && options.parseUntilProtocol == UnknownProtocol &&
  ------------------
  |  Branch (178:7): [True: 189k, False: 0]
  |  Branch (178:33): [True: 189k, False: 0]
  ------------------
  179|   189k|		    options.parseUntilLayer == OsiModelLayerUnknown)
  ------------------
  |  Branch (179:7): [True: 189k, False: 0]
  ------------------
  180|   189k|		{
  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|   189k|			int trailerLen = (int)((m_RawPacket->getRawData() + m_RawPacket->getRawDataLen()) -
  184|   189k|			                       (m_LastLayer->getData() + m_LastLayer->getDataLen()));
  185|   189k|			if (trailerLen > 0)
  ------------------
  |  Branch (185:8): [True: 19.9k, False: 169k]
  ------------------
  186|  19.9k|			{
  187|  19.9k|				PacketTrailerLayer* trailerLayer =
  188|  19.9k|				    new PacketTrailerLayer(static_cast<uint8_t*>(m_LastLayer->getData() + m_LastLayer->getDataLen()),
  189|  19.9k|				                           trailerLen, m_LastLayer, this);
  190|       |
  191|  19.9k|				trailerLayer->m_AllocationInfo.ownedByPacket = true;
  192|  19.9k|				m_LastLayer->setNextLayer(trailerLayer);
  193|  19.9k|				m_LastLayer = trailerLayer;
  194|  19.9k|			}
  195|   189k|		}
  196|   189k|	}
_ZN4pcpp6PacketC2EPNS_9RawPacketEbhNS_13OsiModelLayerE:
  199|   191k|	    : Packet(rawPacket, freeRawPacket, static_cast<ProtocolTypeFamily>(parseUntil), parseUntilLayer)
  200|   191k|	{}
_ZN4pcpp6PacketC2EPNS_9RawPacketEbjNS_13OsiModelLayerE:
  204|   191k|	{
  205|   191k|		m_FreeRawPacket = false;
  206|   191k|		m_RawPacket = nullptr;
  207|   191k|		m_FirstLayer = nullptr;
  208|   191k|		setRawPacket(rawPacket, freeRawPacket, parseUntil, parseUntilLayer);
  209|   191k|	}
_ZN4pcpp6Packet18destructPacketDataEv:
  237|  1.15M|	{
  238|  1.15M|		destroyAllLayers();
  239|       |
  240|  1.15M|		if (m_RawPacket != nullptr && m_FreeRawPacket)
  ------------------
  |  Branch (240:7): [True: 964k, False: 191k]
  |  Branch (240:33): [True: 772k, False: 191k]
  ------------------
  241|   772k|		{
  242|   772k|			delete m_RawPacket;
  243|   772k|		}
  244|  1.15M|	}
_ZN4pcpp6Packet16destroyAllLayersEv:
  247|  1.15M|	{
  248|  1.15M|		Layer* curLayer = m_FirstLayer;
  249|  5.55M|		while (curLayer != nullptr)
  ------------------
  |  Branch (249:10): [True: 4.40M, False: 1.15M]
  ------------------
  250|  4.40M|		{
  251|  4.40M|			Layer* nextLayer = curLayer->getNextLayer();
  252|  4.40M|			if (curLayer->m_AllocationInfo.ownedByPacket)
  ------------------
  |  Branch (252:8): [True: 4.40M, False: 0]
  ------------------
  253|  4.40M|			{
  254|  4.40M|				delete curLayer;
  255|  4.40M|			}
  256|       |
  257|  4.40M|			curLayer = nextLayer;
  258|  4.40M|		}
  259|       |
  260|  1.15M|		m_FirstLayer = nullptr;
  261|  1.15M|		m_LastLayer = nullptr;
  262|  1.15M|	}
_ZN4pcpp6Packet12copyDataFromERKS0_:
  274|   772k|	{
  275|   772k|		m_RawPacket = new RawPacket(*(other.m_RawPacket));
  276|   772k|		m_FreeRawPacket = true;
  277|   772k|		m_MaxPacketLen = other.m_MaxPacketLen;
  278|   772k|		m_FirstLayer = createFirstLayer(m_RawPacket->getLinkLayerType());
  279|   772k|		m_LastLayer = m_FirstLayer;
  280|   772k|		m_CanReallocateData = true;
  281|   772k|		Layer* curLayer = m_FirstLayer;
  282|  4.40M|		while (curLayer != nullptr)
  ------------------
  |  Branch (282:10): [True: 3.62M, False: 772k]
  ------------------
  283|  3.62M|		{
  284|  3.62M|			curLayer->parseNextLayer();
  285|  3.62M|			curLayer->m_AllocationInfo.ownedByPacket = true;
  286|  3.62M|			curLayer = curLayer->getNextLayer();
  287|  3.62M|			if (curLayer != nullptr)
  ------------------
  |  Branch (287:8): [True: 2.85M, False: 772k]
  ------------------
  288|  2.85M|				m_LastLayer = curLayer;
  289|  3.62M|		}
  290|   772k|	}
_ZN4pcpp6Packet17reallocateRawDataEm:
  293|  13.5k|	{
  294|  13.5k|		PCPP_LOG_DEBUG("Allocating packet to new size: " << newSize);
  ------------------
  |  |  426|  13.5k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|  13.5k|	do                                                                                                                 \
  |  |  |  |  414|  13.5k|	{                                                                                                                  \
  |  |  |  |  415|  13.5k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  13.5k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  13.5k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 13.5k]
  |  |  |  |  ------------------
  |  |  |  |  417|  13.5k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|  13.5k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 13.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  295|       |
  296|       |		// allocate a new array with size newSize
  297|  13.5k|		m_MaxPacketLen = newSize;
  298|       |
  299|       |		// set the new array to RawPacket
  300|  13.5k|		if (!m_RawPacket->reallocateData(m_MaxPacketLen))
  ------------------
  |  Branch (300:7): [True: 0, False: 13.5k]
  ------------------
  301|      0|		{
  302|      0|			PCPP_LOG_ERROR("Couldn't reallocate data of raw packet to " << m_MaxPacketLen << " bytes");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  303|      0|			return;
  304|      0|		}
  305|       |
  306|       |		// set all data pointers in layers to the new array address
  307|  13.5k|		const uint8_t* dataPtr = m_RawPacket->getRawData();
  308|       |
  309|  69.3k|		for (Layer* curLayer = m_FirstLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (309:40): [True: 55.7k, False: 13.5k]
  ------------------
  310|  55.7k|		{
  311|  55.7k|			PCPP_LOG_DEBUG("Setting new data pointer to layer '" << typeid(curLayer).name() << "'");
  ------------------
  |  |  426|  55.7k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|  55.7k|	do                                                                                                                 \
  |  |  |  |  414|  55.7k|	{                                                                                                                  \
  |  |  |  |  415|  55.7k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  55.7k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  55.7k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 55.7k]
  |  |  |  |  ------------------
  |  |  |  |  417|  55.7k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|  55.7k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 55.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  312|  55.7k|			curLayer->m_Data = const_cast<uint8_t*>(dataPtr);
  313|  55.7k|			dataPtr += curLayer->getHeaderLen();
  314|  55.7k|		}
  315|  13.5k|	}
_ZNK4pcpp6Packet14isPacketOfTypeEh:
  615|  13.1M|	{
  616|  73.1M|		for (Layer* curLayer = getFirstLayer(); curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (616:43): [True: 60.8M, False: 12.2M]
  ------------------
  617|  60.8M|		{
  618|  60.8M|			if (curLayer->getProtocol() == protocolType)
  ------------------
  |  Branch (618:8): [True: 838k, False: 60.0M]
  ------------------
  619|   838k|			{
  620|   838k|				return true;
  621|   838k|			}
  622|  60.8M|		}
  623|       |
  624|  12.2M|		return false;
  625|  13.1M|	}
_ZNK4pcpp6Packet14isPacketOfTypeEj:
  628|  3.09M|	{
  629|  3.09M|		Layer* curLayer = getFirstLayer();
  630|  17.4M|		while (curLayer != nullptr)
  ------------------
  |  Branch (630:10): [True: 14.4M, False: 3.01M]
  ------------------
  631|  14.4M|		{
  632|  14.4M|			if (curLayer->isMemberOfProtocolFamily(protocolTypeFamily))
  ------------------
  |  Branch (632:8): [True: 79.2k, False: 14.3M]
  ------------------
  633|  79.2k|			{
  634|  79.2k|				return true;
  635|  79.2k|			}
  636|  14.3M|			curLayer = curLayer->getNextLayer();
  637|  14.3M|		}
  638|       |
  639|  3.01M|		return false;
  640|  3.09M|	}
_ZN4pcpp6Packet11extendLayerEPNS_5LayerEim:
  643|  49.2k|	{
  644|  49.2k|		if (layer == nullptr)
  ------------------
  |  Branch (644:7): [True: 0, False: 49.2k]
  ------------------
  645|      0|		{
  646|      0|			PCPP_LOG_ERROR("Layer is nullptr");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  647|      0|			return false;
  648|      0|		}
  649|       |
  650|       |		// verify layer is allocated to this packet
  651|  49.2k|		if (!(layer->getAttachedPacket() == this))
  ------------------
  |  Branch (651:7): [True: 0, False: 49.2k]
  ------------------
  652|      0|		{
  653|      0|			PCPP_LOG_ERROR("Layer isn't allocated to this packet");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  654|      0|			return false;
  655|      0|		}
  656|       |
  657|  49.2k|		if (m_RawPacket->getRawDataLen() + numOfBytesToExtend > m_MaxPacketLen)
  ------------------
  |  Branch (657:7): [True: 13.5k, False: 35.7k]
  ------------------
  658|  13.5k|		{
  659|  13.5k|			if (!m_CanReallocateData)
  ------------------
  |  Branch (659:8): [True: 0, False: 13.5k]
  ------------------
  660|      0|			{
  661|      0|				PCPP_LOG_ERROR(
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423: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|  13.5k|			if (m_RawPacket->getRawDataLen() + numOfBytesToExtend > m_MaxPacketLen * 2)
  ------------------
  |  Branch (667:8): [True: 444, False: 13.0k]
  ------------------
  668|    444|				reallocateRawData(m_RawPacket->getRawDataLen() + numOfBytesToExtend + m_MaxPacketLen);
  669|  13.0k|			else
  670|  13.0k|				reallocateRawData(m_MaxPacketLen * 2);
  671|  13.5k|		}
  672|       |
  673|       |		// insert layer data to raw packet
  674|  49.2k|		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|  49.2k|		m_RawPacket->insertData(indexToInsertData, nullptr, numOfBytesToExtend);
  681|       |
  682|       |		// re-calculate all layers data ptr and data length
  683|  49.2k|		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|  49.2k|		bool passedExtendedLayer = false;
  687|   273k|		for (Layer* curLayer = m_FirstLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (687:40): [True: 226k, False: 47.4k]
  ------------------
  688|   226k|		{
  689|   226k|			if (dataPtr > m_RawPacket->getRawData() + m_RawPacket->getRawDataLen())
  ------------------
  |  Branch (689:8): [True: 1.83k, False: 224k]
  ------------------
  690|  1.83k|			{
  691|  1.83k|				PCPP_LOG_ERROR("Layer data pointer exceeds packet's boundary");
  ------------------
  |  |  444|  1.83k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|  1.83k|	do                                                                                                                 \
  |  |  |  |  414|  1.83k|	{                                                                                                                  \
  |  |  |  |  415|  1.83k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  1.83k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.83k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 1.83k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|  1.83k|		{                                                                                                              \
  |  |  |  |  418|  1.83k|			auto ctx =                                                                                                 \
  |  |  |  |  419|  1.83k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.83k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|  1.83k|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|  1.83k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|  1.83k|		}                                                                                                              \
  |  |  |  |  423|  1.83k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 1.83k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  692|  1.83k|				return false;
  693|  1.83k|			}
  694|       |
  695|       |			// set the data ptr
  696|   224k|			curLayer->m_Data = const_cast<uint8_t*>(dataPtr);
  697|       |
  698|       |			// set a flag if arrived to the layer being extended
  699|   224k|			if (curLayer->getPrevLayer() == layer)
  ------------------
  |  Branch (699:8): [True: 9.78k, False: 214k]
  ------------------
  700|  9.78k|				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|   224k|			if (!passedExtendedLayer)
  ------------------
  |  Branch (704:8): [True: 205k, False: 19.4k]
  ------------------
  705|   205k|				curLayer->m_DataLen += numOfBytesToExtend;
  706|       |
  707|       |			// assuming header length of the layer that requested to be extended hasn't been enlarged yet
  708|   224k|			size_t headerLen = curLayer->getHeaderLen() + (curLayer == layer ? numOfBytesToExtend : 0);
  ------------------
  |  Branch (708:51): [True: 49.2k, False: 175k]
  ------------------
  709|   224k|			dataPtr += headerLen;
  710|   224k|		}
  711|       |
  712|  47.4k|		return true;
  713|  49.2k|	}
_ZN4pcpp6Packet12shortenLayerEPNS_5LayerEim:
  716|  51.6k|	{
  717|  51.6k|		if (layer == nullptr)
  ------------------
  |  Branch (717:7): [True: 0, False: 51.6k]
  ------------------
  718|      0|		{
  719|      0|			PCPP_LOG_ERROR("Layer is nullptr");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  720|      0|			return false;
  721|      0|		}
  722|       |
  723|       |		// verify layer is allocated to this packet
  724|  51.6k|		if (!(layer->getAttachedPacket() == this))
  ------------------
  |  Branch (724:7): [True: 0, False: 51.6k]
  ------------------
  725|      0|		{
  726|      0|			PCPP_LOG_ERROR("Layer isn't allocated to this packet");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  727|      0|			return false;
  728|      0|		}
  729|       |
  730|       |		// remove data from raw packet
  731|  51.6k|		int indexOfDataToRemove = layer->m_Data + offsetInLayer - m_RawPacket->getRawData();
  732|  51.6k|		if (!m_RawPacket->removeData(indexOfDataToRemove, numOfBytesToShorten))
  ------------------
  |  Branch (732:7): [True: 6, False: 51.6k]
  ------------------
  733|      6|		{
  734|      6|			PCPP_LOG_ERROR("Couldn't remove data from packet");
  ------------------
  |  |  444|      6|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      6|	do                                                                                                                 \
  |  |  |  |  414|      6|	{                                                                                                                  \
  |  |  |  |  415|      6|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      6|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      6|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 6, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      6|		{                                                                                                              \
  |  |  |  |  418|      6|			auto ctx =                                                                                                 \
  |  |  |  |  419|      6|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      6|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      6|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      6|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      6|		}                                                                                                              \
  |  |  |  |  423|      6|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 6]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  735|      6|			return false;
  736|      6|		}
  737|       |
  738|       |		// re-calculate all layers data ptr and data length
  739|  51.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|  51.6k|		bool passedExtendedLayer = false;
  743|   305k|		for (Layer* curLayer = m_FirstLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (743:40): [True: 254k, False: 51.3k]
  ------------------
  744|   254k|		{
  745|   254k|			if (dataPtr > m_RawPacket->getRawData() + m_RawPacket->getRawDataLen())
  ------------------
  |  Branch (745:8): [True: 313, False: 253k]
  ------------------
  746|    313|			{
  747|    313|				PCPP_LOG_ERROR("Layer data pointer exceeds packet's boundary");
  ------------------
  |  |  444|    313|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    313|	do                                                                                                                 \
  |  |  |  |  414|    313|	{                                                                                                                  \
  |  |  |  |  415|    313|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    313|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    313|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 313, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    313|		{                                                                                                              \
  |  |  |  |  418|    313|			auto ctx =                                                                                                 \
  |  |  |  |  419|    313|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    313|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    313|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    313|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    313|		}                                                                                                              \
  |  |  |  |  423|    313|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 313]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  748|    313|				return false;
  749|    313|			}
  750|       |
  751|       |			// set the data ptr
  752|   253k|			curLayer->m_Data = const_cast<uint8_t*>(dataPtr);
  753|       |
  754|       |			// set a flag if arrived to the layer being shortened
  755|   253k|			if (curLayer->getPrevLayer() == layer)
  ------------------
  |  Branch (755:8): [True: 14.7k, False: 239k]
  ------------------
  756|  14.7k|				passedExtendedLayer = true;
  757|       |
  758|   253k|			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|   253k|			if (!passedExtendedLayer)
  ------------------
  |  Branch (762:8): [True: 223k, False: 30.9k]
  ------------------
  763|   223k|				curLayer->m_DataLen -= numOfBytesToShorten;
  764|       |
  765|       |			// assuming header length of the layer that requested to be extended hasn't been enlarged yet
  766|   253k|			headerLen -= (curLayer == layer ? numOfBytesToShorten : 0);
  ------------------
  |  Branch (766:18): [True: 51.6k, False: 202k]
  ------------------
  767|   253k|			dataPtr += headerLen;
  768|   253k|		}
  769|       |
  770|  51.3k|		return true;
  771|  51.6k|	}
_ZN4pcpp6Packet22computeCalculateFieldsEv:
  774|   191k|	{
  775|       |		// calculated fields should be calculated from top layer to bottom layer
  776|   964k|		for (Layer* curLayer = m_LastLayer; curLayer != nullptr; curLayer = curLayer->getPrevLayer())
  ------------------
  |  Branch (776:39): [True: 772k, False: 191k]
  ------------------
  777|   772k|		{
  778|   772k|			curLayer->computeCalculateFields();
  779|   772k|		}
  780|   191k|	}
_ZNK4pcpp6Packet15printPacketInfoEb:
  783|   191k|	{
  784|   191k|		std::ostringstream dataLenStream;
  785|   191k|		dataLenStream << m_RawPacket->getRawDataLen();
  786|       |
  787|       |		// convert raw packet timestamp to printable format
  788|   191k|		timespec timestamp = m_RawPacket->getPacketTimeStamp();
  789|   191k|		time_t nowtime = timestamp.tv_sec;
  790|   191k|		struct tm* nowtm = nullptr;
  791|   191k|#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|   191k|		struct tm nowtm_r;
  797|   191k|		if (timeAsLocalTime)
  ------------------
  |  Branch (797:7): [True: 191k, False: 0]
  ------------------
  798|   191k|			nowtm = localtime_r(&nowtime, &nowtm_r);
  799|      0|		else
  800|      0|			nowtm = gmtime_r(&nowtime, &nowtm_r);
  801|       |
  802|   191k|		if (nowtm != nullptr)
  ------------------
  |  Branch (802:7): [True: 191k, False: 0]
  ------------------
  803|   191k|			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|   191k|		char buf[128];
  815|   191k|		if (nowtm != nullptr)
  ------------------
  |  Branch (815:7): [True: 191k, False: 0]
  ------------------
  816|   191k|		{
  817|   191k|			char tmbuf[64];
  818|   191k|			strftime(tmbuf, sizeof(tmbuf), "%Y-%m-%d %H:%M:%S", nowtm);
  819|   191k|			snprintf(buf, sizeof(buf), "%s.%09lu", tmbuf, (unsigned long)timestamp.tv_nsec);
  820|   191k|		}
  821|      0|		else
  822|      0|			snprintf(buf, sizeof(buf), "0000-00-00 00:00:00.000000000");
  823|       |
  824|   191k|		return "Packet length: " + dataLenStream.str() + " [Bytes], Arrival time: " + std::string(buf);
  825|   191k|	}
_ZN4pcpp6Packet16createFirstLayerENS_13LinkLayerTypeE:
  828|   964k|	{
  829|   964k|		size_t rawDataLen = (size_t)m_RawPacket->getRawDataLen();
  830|   964k|		if (rawDataLen == 0)
  ------------------
  |  Branch (830:7): [True: 1.93k, False: 962k]
  ------------------
  831|  1.93k|			return nullptr;
  832|       |
  833|   962k|		const uint8_t* rawData = m_RawPacket->getRawData();
  834|       |
  835|   962k|		switch (linkType)
  836|   962k|		{
  837|   881k|		case LinkLayerType::LINKTYPE_ETHERNET:
  ------------------
  |  Branch (837:3): [True: 881k, False: 80.1k]
  ------------------
  838|   881k|		{
  839|   881k|			if (EthLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (839:8): [True: 872k, False: 9.30k]
  ------------------
  840|   872k|			{
  841|   872k|				return new EthLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  842|   872k|			}
  843|  9.30k|			if (EthDot3Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (843:8): [True: 9.22k, False: 80]
  ------------------
  844|  9.22k|			{
  845|  9.22k|				return new EthDot3Layer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  846|  9.22k|			}
  847|     80|			break;
  848|  9.30k|		}
  849|  13.3k|		case LinkLayerType::LINKTYPE_LINUX_SLL:
  ------------------
  |  Branch (849:3): [True: 13.3k, False: 948k]
  ------------------
  850|  13.3k|		{
  851|  13.3k|			return new SllLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  852|  9.30k|		}
  853|  7.67k|		case LinkLayerType::LINKTYPE_LINUX_SLL2:
  ------------------
  |  Branch (853:3): [True: 7.67k, False: 954k]
  ------------------
  854|  7.67k|		{
  855|  7.67k|			if (Sll2Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (855:8): [True: 7.67k, False: 2]
  ------------------
  856|  7.67k|			{
  857|  7.67k|				return new Sll2Layer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  858|  7.67k|			}
  859|      2|			break;
  860|  7.67k|		}
  861|  12.9k|		case LinkLayerType::LINKTYPE_NULL:
  ------------------
  |  Branch (861:3): [True: 12.9k, False: 949k]
  ------------------
  862|  12.9k|		{
  863|  12.9k|			if (NullLoopbackLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (863:8): [True: 12.6k, False: 268]
  ------------------
  864|  12.6k|			{
  865|  12.6k|				return new NullLoopbackLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  866|  12.6k|			}
  867|    268|			break;
  868|  12.9k|		}
  869|  6.97k|		case LinkLayerType::LINKTYPE_RAW:
  ------------------
  |  Branch (869:3): [True: 6.97k, False: 955k]
  ------------------
  870|  11.7k|		case LinkLayerType::LINKTYPE_DLT_RAW1:
  ------------------
  |  Branch (870:3): [True: 4.78k, False: 957k]
  ------------------
  871|  13.8k|		case LinkLayerType::LINKTYPE_DLT_RAW2:
  ------------------
  |  Branch (871:3): [True: 2.11k, False: 960k]
  ------------------
  872|  13.8k|		{
  873|  13.8k|			uint8_t ipVer = rawData[0] & 0xf0;
  874|  13.8k|			if (ipVer == 0x40 && IPv4Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (874:8): [True: 11.1k, False: 2.73k]
  |  Branch (874:25): [True: 11.0k, False: 128]
  ------------------
  875|  11.0k|			{
  876|  11.0k|				return new IPv4Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  877|  11.0k|			}
  878|  2.85k|			if (ipVer == 0x60 && IPv6Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (878:8): [True: 2.48k, False: 372]
  |  Branch (878:25): [True: 2.35k, False: 128]
  ------------------
  879|  2.35k|			{
  880|  2.35k|				return new IPv6Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  881|  2.35k|			}
  882|    500|			break;
  883|  2.85k|		}
  884|  29.1k|		case LinkLayerType::LINKTYPE_IPV4:
  ------------------
  |  Branch (884:3): [True: 29.1k, False: 932k]
  ------------------
  885|  29.1k|		{
  886|  29.1k|			if (IPv4Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (886:8): [True: 28.9k, False: 208]
  ------------------
  887|  28.9k|			{
  888|  28.9k|				return new IPv4Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  889|  28.9k|			}
  890|    208|			break;
  891|  29.1k|		}
  892|    208|		case LinkLayerType::LINKTYPE_IPV6:
  ------------------
  |  Branch (892:3): [True: 128, False: 962k]
  ------------------
  893|    128|		{
  894|    128|			if (IPv6Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (894:8): [True: 0, False: 128]
  ------------------
  895|      0|			{
  896|      0|				return new IPv6Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  897|      0|			}
  898|    128|			break;
  899|    128|		}
  900|  2.37k|		case LinkLayerType::LINKTYPE_NFLOG:
  ------------------
  |  Branch (900:3): [True: 2.37k, False: 959k]
  ------------------
  901|  2.37k|		{
  902|  2.37k|			if (NflogLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (902:8): [True: 2.37k, False: 0]
  ------------------
  903|  2.37k|			{
  904|  2.37k|				return new NflogLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  905|  2.37k|			}
  906|      0|			break;
  907|  2.37k|		}
  908|    691|		case LinkLayerType::LINKTYPE_C_HDLC:
  ------------------
  |  Branch (908:3): [True: 691, False: 961k]
  ------------------
  909|    691|		{
  910|    691|			if (CiscoHdlcLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (910:8): [True: 531, False: 160]
  ------------------
  911|    531|			{
  912|    531|				return new CiscoHdlcLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  913|    531|			}
  914|    160|			break;
  915|    691|		}
  916|    160|		default:
  ------------------
  |  Branch (916:3): [True: 0, False: 962k]
  ------------------
  917|       |			// For all other link types, we don't have a specific layer. Just break and create a PayloadLayer
  918|      0|			break;
  919|   962k|		}
  920|       |
  921|       |		// unknown link type
  922|  1.34k|		return new PayloadLayer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  923|   962k|	}
_ZNK4pcpp6Packet8toStringEb:
  926|   191k|	{
  927|   191k|		std::vector<std::string> stringList;
  928|   191k|		toStringList(stringList, timeAsLocalTime);
  929|   191k|		return std::accumulate(stringList.begin(), stringList.end(), std::string(),
  930|   191k|		                       [](std::string a, const std::string& b) { return std::move(a) + b + '\n'; });
  931|   191k|	}
_ZNK4pcpp6Packet12toStringListERNSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEEb:
  934|   191k|	{
  935|   191k|		result.clear();
  936|   191k|		result.push_back(printPacketInfo(timeAsLocalTime));
  937|       |
  938|   964k|		for (Layer* curLayer = m_FirstLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (938:40): [True: 772k, False: 191k]
  ------------------
  939|   772k|		{
  940|   772k|			result.push_back(curLayer->toString());
  941|   772k|		}
  942|   191k|	}
Packet.cpp:_ZZNK4pcpp6Packet8toStringEbENK3$_0clENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKS8_:
  930|   964k|		                       [](std::string a, const std::string& b) { return std::move(a) + b + '\n'; });

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

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

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

_ZN4pcpp15PostgresMessage27parsePostgresBackendMessageEPKhm:
  309|      7|	{
  310|      7|		if (data == nullptr || dataLen < 1)
  ------------------
  |  Branch (310:7): [True: 0, False: 7]
  |  Branch (310:26): [True: 0, False: 7]
  ------------------
  311|      0|		{
  312|      0|			return nullptr;
  313|      0|		}
  314|       |
  315|      7|		if (dataLen < 5)
  ------------------
  |  Branch (315:7): [True: 7, False: 0]
  ------------------
  316|      7|		{
  317|      7|			return std::unique_ptr<PostgresMessage>(
  318|      7|			    new PostgresMessage(data, dataLen, PostgresMessageType::Backend_Unknown));
  319|      7|		}
  320|       |
  321|       |		// The length covers itself (4 bytes) but not the message type byte, so the smallest valid length is 4 (for
  322|       |		// example ParseComplete) and the message takes messageLength + 1 bytes.
  323|       |		// The check doesn't add 1: with a 32-bit size_t, 0xFFFFFFFF + 1 wraps around to 0.
  324|      0|		size_t messageLength = be32toh(*reinterpret_cast<const uint32_t*>(data + 1));
  325|      0|		if (messageLength < sizeof(uint32_t) || messageLength >= dataLen)
  ------------------
  |  Branch (325:7): [True: 0, False: 0]
  |  Branch (325:43): [True: 0, False: 0]
  ------------------
  326|      0|		{
  327|      0|			return std::unique_ptr<PostgresMessage>(
  328|      0|			    new PostgresMessage(data, dataLen, PostgresMessageType::Backend_Unknown));
  329|      0|		}
  330|       |
  331|      0|		auto messageTypeValue = data[0];
  332|      0|		auto messageType = PostgresMessageType::Backend_Unknown;
  333|       |
  334|      0|		switch (messageTypeValue)
  335|      0|		{
  336|      0|		case PostgresBackendMessage_R:
  ------------------
  |  Branch (336:3): [True: 0, False: 0]
  ------------------
  337|      0|		{
  338|      0|			uint32_t authType = be32toh(*reinterpret_cast<const uint32_t*>(data + 5));
  339|      0|			switch (authType)
  340|      0|			{
  341|      0|			case 0:
  ------------------
  |  Branch (341:4): [True: 0, False: 0]
  ------------------
  342|      0|			{
  343|      0|				messageType = PostgresMessageType::Backend_AuthenticationOk;
  344|      0|				break;
  345|      0|			}
  346|      0|			case 1:
  ------------------
  |  Branch (346:4): [True: 0, False: 0]
  ------------------
  347|      0|			{
  348|      0|				messageType = PostgresMessageType::Backend_AuthenticationKerberosV4;
  349|      0|				break;
  350|      0|			}
  351|      0|			case 2:
  ------------------
  |  Branch (351:4): [True: 0, False: 0]
  ------------------
  352|      0|			{
  353|      0|				messageType = PostgresMessageType::Backend_AuthenticationKerberosV5;
  354|      0|				break;
  355|      0|			}
  356|      0|			case 3:
  ------------------
  |  Branch (356:4): [True: 0, False: 0]
  ------------------
  357|      0|			{
  358|      0|				messageType = PostgresMessageType::Backend_AuthenticationCleartextPassword;
  359|      0|				break;
  360|      0|			}
  361|      0|			case 5:
  ------------------
  |  Branch (361:4): [True: 0, False: 0]
  ------------------
  362|      0|			{
  363|      0|				messageType = PostgresMessageType::Backend_AuthenticationMD5Password;
  364|      0|				break;
  365|      0|			}
  366|      0|			case 7:
  ------------------
  |  Branch (366:4): [True: 0, False: 0]
  ------------------
  367|      0|			{
  368|      0|				messageType = PostgresMessageType::Backend_AuthenticationGSS;
  369|      0|				break;
  370|      0|			}
  371|      0|			case 8:
  ------------------
  |  Branch (371:4): [True: 0, False: 0]
  ------------------
  372|      0|			{
  373|      0|				messageType = PostgresMessageType::Backend_AuthenticationGSSContinue;
  374|      0|				break;
  375|      0|			}
  376|      0|			case 9:
  ------------------
  |  Branch (376:4): [True: 0, False: 0]
  ------------------
  377|      0|			{
  378|      0|				messageType = PostgresMessageType::Backend_AuthenticationSSPI;
  379|      0|				break;
  380|      0|			}
  381|      0|			case 10:
  ------------------
  |  Branch (381:4): [True: 0, False: 0]
  ------------------
  382|      0|			{
  383|      0|				messageType = PostgresMessageType::Backend_AuthenticationSASL;
  384|      0|				break;
  385|      0|			}
  386|      0|			case 11:
  ------------------
  |  Branch (386:4): [True: 0, False: 0]
  ------------------
  387|      0|			{
  388|      0|				messageType = PostgresMessageType::Backend_AuthenticationSASLContinue;
  389|      0|				break;
  390|      0|			}
  391|      0|			case 12:
  ------------------
  |  Branch (391:4): [True: 0, False: 0]
  ------------------
  392|      0|			{
  393|      0|				messageType = PostgresMessageType::Backend_AuthenticationSASLFinal;
  394|      0|				break;
  395|      0|			}
  396|      0|			default:
  ------------------
  |  Branch (396:4): [True: 0, False: 0]
  ------------------
  397|      0|			{
  398|      0|				break;
  399|      0|			}
  400|      0|			}
  401|      0|			break;
  402|      0|		}
  403|      0|		case PostgresBackendMessage_K:
  ------------------
  |  Branch (403:3): [True: 0, False: 0]
  ------------------
  404|      0|		{
  405|      0|			messageType = PostgresMessageType::Backend_BackendKeyData;
  406|      0|			break;
  407|      0|		}
  408|      0|		case PostgresBackendMessage_2:
  ------------------
  |  Branch (408:3): [True: 0, False: 0]
  ------------------
  409|      0|		{
  410|      0|			messageType = PostgresMessageType::Backend_BindComplete;
  411|      0|			break;
  412|      0|		}
  413|      0|		case PostgresBackendMessage_3:
  ------------------
  |  Branch (413:3): [True: 0, False: 0]
  ------------------
  414|      0|		{
  415|      0|			messageType = PostgresMessageType::Backend_CloseComplete;
  416|      0|			break;
  417|      0|		}
  418|      0|		case PostgresBackendMessage_S:
  ------------------
  |  Branch (418:3): [True: 0, False: 0]
  ------------------
  419|      0|		{
  420|      0|			return std::make_unique<PostgresParameterStatus>(data, messageLength + 1);
  421|      0|		}
  422|      0|		case PostgresBackendMessage_Z:
  ------------------
  |  Branch (422:3): [True: 0, False: 0]
  ------------------
  423|      0|		{
  424|      0|			messageType = PostgresMessageType::Backend_ReadyForQuery;
  425|      0|			break;
  426|      0|		}
  427|      0|		case PostgresBackendMessage_C:
  ------------------
  |  Branch (427:3): [True: 0, False: 0]
  ------------------
  428|      0|		{
  429|      0|			messageType = PostgresMessageType::Backend_CommandComplete;
  430|      0|			break;
  431|      0|		}
  432|      0|		case PostgresBackendMessage_d:
  ------------------
  |  Branch (432:3): [True: 0, False: 0]
  ------------------
  433|      0|		{
  434|      0|			messageType = PostgresMessageType::Backend_CopyData;
  435|      0|			break;
  436|      0|		}
  437|      0|		case PostgresBackendMessage_c:
  ------------------
  |  Branch (437:3): [True: 0, False: 0]
  ------------------
  438|      0|		{
  439|      0|			messageType = PostgresMessageType::Backend_CopyDone;
  440|      0|			break;
  441|      0|		}
  442|      0|		case PostgresBackendMessage_G:
  ------------------
  |  Branch (442:3): [True: 0, False: 0]
  ------------------
  443|      0|		{
  444|      0|			messageType = PostgresMessageType::Backend_CopyInResponse;
  445|      0|			break;
  446|      0|		}
  447|      0|		case PostgresBackendMessage_H:
  ------------------
  |  Branch (447:3): [True: 0, False: 0]
  ------------------
  448|      0|		{
  449|      0|			messageType = PostgresMessageType::Backend_CopyOutResponse;
  450|      0|			break;
  451|      0|		}
  452|      0|		case PostgresBackendMessage_W:
  ------------------
  |  Branch (452:3): [True: 0, False: 0]
  ------------------
  453|      0|		{
  454|      0|			messageType = PostgresMessageType::Backend_CopyBothResponse;
  455|      0|			break;
  456|      0|		}
  457|      0|		case PostgresBackendMessage_D:
  ------------------
  |  Branch (457:3): [True: 0, False: 0]
  ------------------
  458|      0|		{
  459|      0|			return std::make_unique<PostgresDataRowMessage>(data, messageLength + 1);
  460|      0|		}
  461|      0|		case PostgresBackendMessage_I:
  ------------------
  |  Branch (461:3): [True: 0, False: 0]
  ------------------
  462|      0|		{
  463|      0|			messageType = PostgresMessageType::Backend_EmptyQueryResponse;
  464|      0|			break;
  465|      0|		}
  466|      0|		case PostgresBackendMessage_E:
  ------------------
  |  Branch (466:3): [True: 0, False: 0]
  ------------------
  467|      0|		{
  468|      0|			return std::make_unique<PostgresErrorResponseMessage>(data, messageLength + 1);
  469|      0|		}
  470|      0|		case PostgresBackendMessage_V:
  ------------------
  |  Branch (470:3): [True: 0, False: 0]
  ------------------
  471|      0|		{
  472|      0|			messageType = PostgresMessageType::Backend_FunctionCallResponse;
  473|      0|			break;
  474|      0|		}
  475|      0|		case PostgresBackendMessage_v:
  ------------------
  |  Branch (475:3): [True: 0, False: 0]
  ------------------
  476|      0|		{
  477|      0|			messageType = PostgresMessageType::Backend_NegotiateProtocolVersion;
  478|      0|			break;
  479|      0|		}
  480|      0|		case PostgresBackendMessage_n:
  ------------------
  |  Branch (480:3): [True: 0, False: 0]
  ------------------
  481|      0|		{
  482|      0|			messageType = PostgresMessageType::Backend_NoData;
  483|      0|			break;
  484|      0|		}
  485|      0|		case PostgresBackendMessage_N:
  ------------------
  |  Branch (485:3): [True: 0, False: 0]
  ------------------
  486|      0|		{
  487|      0|			messageType = PostgresMessageType::Backend_NoticeResponse;
  488|      0|			break;
  489|      0|		}
  490|      0|		case PostgresBackendMessage_A:
  ------------------
  |  Branch (490:3): [True: 0, False: 0]
  ------------------
  491|      0|		{
  492|      0|			messageType = PostgresMessageType::Backend_NotificationResponse;
  493|      0|			break;
  494|      0|		}
  495|      0|		case PostgresBackendMessage_t:
  ------------------
  |  Branch (495:3): [True: 0, False: 0]
  ------------------
  496|      0|		{
  497|      0|			messageType = PostgresMessageType::Backend_ParameterDescription;
  498|      0|			break;
  499|      0|		}
  500|      0|		case PostgresBackendMessage_1:
  ------------------
  |  Branch (500:3): [True: 0, False: 0]
  ------------------
  501|      0|		{
  502|      0|			messageType = PostgresMessageType::Backend_ParseComplete;
  503|      0|			break;
  504|      0|		}
  505|      0|		case PostgresBackendMessage_s:
  ------------------
  |  Branch (505:3): [True: 0, False: 0]
  ------------------
  506|      0|		{
  507|      0|			messageType = PostgresMessageType::Backend_PortalSuspended;
  508|      0|			break;
  509|      0|		}
  510|      0|		case PostgresBackendMessage_T:
  ------------------
  |  Branch (510:3): [True: 0, False: 0]
  ------------------
  511|      0|		{
  512|      0|			return std::make_unique<PostgresRowDescriptionMessage>(data, messageLength + 1);
  513|      0|		}
  514|      0|		default:
  ------------------
  |  Branch (514:3): [True: 0, False: 0]
  ------------------
  515|      0|		{
  516|      0|			break;
  517|      0|		}
  518|      0|		}
  519|       |
  520|      0|		return std::unique_ptr<PostgresMessage>(new PostgresMessage(data, messageLength + 1, messageType));
  521|      0|	}
_ZN4pcpp13PostgresLayer28parsePostgresBackendMessagesEPhmPNS_5LayerEPNS_6PacketE:
 1016|     35|	{
 1017|     35|		return new PostgresLayer(data, dataLen, prevLayer, packet, PostgresMessageOrigin::Backend);
 1018|     35|	}
_ZNK4pcpp13PostgresLayer19getPostgresMessagesEv:
 1027|     14|	{
 1028|     14|		if (!m_MessagesInitialized)
  ------------------
  |  Branch (1028:7): [True: 7, False: 7]
  ------------------
 1029|      7|		{
 1030|      7|			auto parseFunc = (m_MessageOrigin == PostgresMessageOrigin::Backend)
  ------------------
  |  Branch (1030:21): [True: 7, False: 0]
  ------------------
 1031|      7|			                     ? &PostgresMessage::parsePostgresBackendMessage
 1032|      7|			                     : &PostgresMessage::parsePostgresFrontendMessage;
 1033|       |
 1034|      7|			auto data = m_Data;
 1035|      7|			auto dataLen = m_DataLen;
 1036|       |
 1037|     14|			while (dataLen > 0)
  ------------------
  |  Branch (1037:11): [True: 7, False: 7]
  ------------------
 1038|      7|			{
 1039|      7|				auto curMessage = parseFunc(data, dataLen);
 1040|      7|				if (curMessage == nullptr)
  ------------------
  |  Branch (1040:9): [True: 0, False: 7]
  ------------------
 1041|      0|				{
 1042|      0|					break;
 1043|      0|				}
 1044|       |
 1045|      7|				dataLen -= curMessage->getTotalMessageLength();
 1046|      7|				data += curMessage->getTotalMessageLength();
 1047|      7|				m_Messages.pushBack(std::move(curMessage));
 1048|      7|			}
 1049|       |
 1050|      7|			m_MessagesInitialized = true;
 1051|      7|		}
 1052|       |
 1053|     14|		return m_Messages;
 1054|     14|	}
_ZNK4pcpp13PostgresLayer8toStringEv:
 1067|     14|	{
 1068|     14|		const auto& messages = getPostgresMessages();
 1069|     14|		return std::string("PostgreSQL ") +
 1070|     14|		       (m_MessageOrigin == PostgresMessageOrigin::Frontend ? "Frontend" : "Backend") + " Layer, " +
  ------------------
  |  Branch (1070:11): [True: 0, False: 14]
  ------------------
 1071|     14|		       std::to_string(messages.size()) + " message(s)";
 1072|     14|	}

_ZN4pcpp11QuicV1Layer14parseQuicLayerEPhmPNS_5LayerEPNS_6PacketE:
   11|  1.76k|	{
   12|  1.76k|		if (data == nullptr || dataLen <= sizeof(quic_common_header))
  ------------------
  |  Branch (12:7): [True: 0, False: 1.76k]
  |  Branch (12:26): [True: 12, False: 1.75k]
  ------------------
   13|     12|		{
   14|     12|			return nullptr;
   15|     12|		}
   16|       |
   17|  1.75k|		auto headerForm = static_cast<QuicHeaderForm>(reinterpret_cast<quic_common_header*>(data)->headerForm);
   18|       |
   19|  1.75k|		if (headerForm == QuicHeaderForm::ShortHeader && QuicV1OneRttLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (19:7): [True: 1.11k, False: 641]
  |  Branch (19:52): [True: 1.11k, False: 0]
  ------------------
   20|  1.11k|		{
   21|  1.11k|			return new QuicV1OneRttLayer(data, dataLen, prevLayer, packet);
   22|  1.11k|		}
   23|       |
   24|    641|		if (headerForm == QuicHeaderForm::LongHeader && QuicV1LongHeaderLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (24:7): [True: 641, False: 0]
  |  Branch (24:51): [True: 623, False: 18]
  ------------------
   25|    623|		{
   26|    623|			auto header = reinterpret_cast<quic_long_header*>(data);
   27|    623|			if (header->version == 0x00000000)
  ------------------
  |  Branch (27:8): [True: 25, False: 598]
  ------------------
   28|     25|			{
   29|     25|				return new QuicV1VersionNegotiationLayer(data, dataLen, prevLayer, packet);
   30|     25|			}
   31|    598|			if (netToHost32(header->version) != 0x00000001)
  ------------------
  |  Branch (31:8): [True: 31, False: 567]
  ------------------
   32|     31|			{
   33|     31|				return nullptr;
   34|     31|			}
   35|       |
   36|    567|			switch (header->longPacketType)
   37|    567|			{
   38|    222|			case static_cast<uint8_t>(QuicPacketType::Initial):
  ------------------
  |  Branch (38:4): [True: 222, False: 345]
  ------------------
   39|    222|			{
   40|    222|				return new QuicV1InitialLayer(data, dataLen, prevLayer, packet);
   41|      0|			}
   42|    315|			case static_cast<uint8_t>(QuicPacketType::Handshake):
  ------------------
  |  Branch (42:4): [True: 315, False: 252]
  ------------------
   43|    315|			{
   44|    315|				return new QuicV1HandshakeLayer(data, dataLen, prevLayer, packet);
   45|      0|			}
   46|      0|			case static_cast<uint8_t>(QuicPacketType::ZeroRTT):
  ------------------
  |  Branch (46:4): [True: 0, False: 567]
  ------------------
   47|      0|			{
   48|      0|				return new QuicV1ZeroRttLayer(data, dataLen, prevLayer, packet);
   49|      0|			}
   50|     30|			default:  // QuicPacketType::Retry
  ------------------
  |  Branch (50:4): [True: 30, False: 537]
  ------------------
   51|     30|			{
   52|     30|				return new QuicV1RetryLayer(data, dataLen, prevLayer, packet);
   53|      0|			}
   54|    567|			}
   55|    567|		}
   56|       |
   57|     18|		return nullptr;
   58|    641|	}
_ZN4pcpp11QuicV1Layer14parseNextLayerEv:
   61|  1.70k|	{
   62|  1.70k|		auto headerLen = getHeaderLen();
   63|       |
   64|  1.70k|		if (headerLen < m_DataLen)
  ------------------
  |  Branch (64:7): [True: 36, False: 1.66k]
  ------------------
   65|     36|		{
   66|     36|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(parseQuicLayer, m_Data + headerLen,
   67|     36|			                                                           m_DataLen - headerLen);
   68|     36|		}
   69|  1.70k|	}
_ZNK4pcpp11QuicV1Layer8toStringEv:
   82|    550|	{
   83|    550|		std::string packetType;
   84|       |
   85|    550|		switch (getPacketType())
   86|    550|		{
   87|     88|		case QuicPacketType::Initial:
  ------------------
  |  Branch (87:3): [True: 88, False: 462]
  ------------------
   88|     88|		{
   89|     88|			packetType = "Initial";
   90|     88|			break;
   91|      0|		}
   92|    124|		case QuicPacketType::Handshake:
  ------------------
  |  Branch (92:3): [True: 124, False: 426]
  ------------------
   93|    124|		{
   94|    124|			packetType = "Handshake";
   95|    124|			break;
   96|      0|		}
   97|      0|		case QuicPacketType::ZeroRTT:
  ------------------
  |  Branch (97:3): [True: 0, False: 550]
  ------------------
   98|      0|		{
   99|      0|			packetType = "0-RTT";
  100|      0|			break;
  101|      0|		}
  102|     12|		case QuicPacketType::Retry:
  ------------------
  |  Branch (102:3): [True: 12, False: 538]
  ------------------
  103|     12|		{
  104|     12|			packetType = "Retry";
  105|     12|			break;
  106|      0|		}
  107|    316|		case QuicPacketType::OneRtt:
  ------------------
  |  Branch (107:3): [True: 316, False: 234]
  ------------------
  108|    316|		{
  109|    316|			packetType = "1-RTT";
  110|    316|			break;
  111|      0|		}
  112|     10|		default:  // QuicPacketType::VersionNegotiation
  ------------------
  |  Branch (112:3): [True: 10, False: 540]
  ------------------
  113|     10|		{
  114|     10|			packetType = "Version Negotiation";
  115|     10|			break;
  116|      0|		}
  117|    550|		}
  118|       |
  119|    550|		return "QUIC v1 Layer, " + packetType + " message";
  120|    550|	}
_ZN4pcpp21QuicV1LongHeaderLayer11isDataValidEPKhm:
  123|    641|	{
  124|    641|		return data != nullptr && dataLen >= sizeof(quic_long_header);
  ------------------
  |  Branch (124:10): [True: 641, False: 0]
  |  Branch (124:29): [True: 623, False: 18]
  ------------------
  125|    641|	}
_ZNK4pcpp21QuicV1LongHeaderLayer13getPacketTypeEv:
  128|    224|	{
  129|    224|		return static_cast<QuicPacketType>(getLongHeader()->longPacketType);
  130|    224|	}
_ZNK4pcpp21QuicV1LongHeaderLayer27getDestConIdOffsetAndLengthEv:
  140|    643|	{
  141|    643|		if (m_DataLen <= destinationConnectionIdOffset)
  ------------------
  |  Branch (141:7): [True: 0, False: 643]
  ------------------
  142|      0|		{
  143|      0|			throw std::out_of_range("Not enough data to read destination connection ID length");
  144|      0|		}
  145|       |
  146|    643|		auto length = static_cast<size_t>(getLongHeader()->destinationConnectionIdLength);
  147|    643|		if (destinationConnectionIdOffset + length > m_DataLen)
  ------------------
  |  Branch (147:7): [True: 12, False: 631]
  ------------------
  148|     12|		{
  149|     12|			throw std::out_of_range("Not enough data to read destination connection ID");
  150|     12|		}
  151|       |
  152|    631|		return { length, destinationConnectionIdOffset };
  153|    643|	}
_ZNK4pcpp21QuicV1LongHeaderLayer26getSrcConIdOffsetAndLengthEv:
  175|    643|	{
  176|    643|		auto destOffsetAndLength = getDestConIdOffsetAndLength();
  177|    643|		auto sourceConnectionIdLengthOffset = destOffsetAndLength.offset + destOffsetAndLength.length;
  178|    643|		if (m_DataLen <= sourceConnectionIdLengthOffset + sizeof(uint8_t))
  ------------------
  |  Branch (178:7): [True: 0, False: 643]
  ------------------
  179|      0|		{
  180|      0|			throw std::out_of_range("Not enough data to read source connection ID length");
  181|      0|		}
  182|       |
  183|    643|		auto offset = sourceConnectionIdLengthOffset + sizeof(uint8_t);
  184|    643|		auto length = static_cast<size_t>(m_Data[sourceConnectionIdLengthOffset]);
  185|    643|		if (offset + length > m_DataLen)
  ------------------
  |  Branch (185:7): [True: 0, False: 643]
  ------------------
  186|      0|		{
  187|      0|			throw std::out_of_range("Not enough data to read source connection ID");
  188|      0|		}
  189|       |
  190|    643|		return { length, offset };
  191|    643|	}
_ZNK4pcpp24QuicV1EstablishmentLayer15getLengthOffsetEv:
  213|    377|	{
  214|    377|		auto srcConOffsetAndLength = getSrcConIdOffsetAndLength();
  215|    377|		if (srcConOffsetAndLength.offset + srcConOffsetAndLength.length + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (215:7): [True: 0, False: 377]
  ------------------
  216|      0|		{
  217|      0|			throw std::out_of_range("Not enough data to read length offset");
  218|      0|		}
  219|       |
  220|    377|		return srcConOffsetAndLength.offset + srcConOffsetAndLength.length;
  221|    377|	}
_ZNK4pcpp24QuicV1EstablishmentLayer21getVarintValueAndSizeEm:
  224|    891|	{
  225|    891|		uint8_t prefix = (m_Data[offset] & 0xc0) >> 6;
  226|    891|		auto size = static_cast<size_t>(1) << prefix;
  227|       |
  228|    891|		if (offset + size > m_DataLen)
  ------------------
  |  Branch (228:7): [True: 0, False: 891]
  ------------------
  229|      0|		{
  230|      0|			throw std::out_of_range("Not enough data to read varint value");
  231|      0|		}
  232|       |
  233|    891|		uint64_t value = m_Data[offset] & 0x3f;
  234|  1.72k|		for (size_t i = 1; i < size; i++)
  ------------------
  |  Branch (234:22): [True: 834, False: 891]
  ------------------
  235|    834|		{
  236|    834|			value = (value << 8) | m_Data[offset + i];
  237|    834|		}
  238|       |
  239|    891|		return { value, size };
  240|    891|	}
_ZNK4pcpp24QuicV1EstablishmentLayer12getHeaderLenEv:
  257|    643|	{
  258|    643|		try
  259|    643|		{
  260|    643|			auto offset = getLengthOffset();
  261|    643|			auto lengthValueAndSize = getVarintValueAndSize(offset);
  262|    643|			return (std::min)(static_cast<size_t>(offset + lengthValueAndSize.size + lengthValueAndSize.value),
  263|    643|			                  m_DataLen);
  264|    643|		}
  265|    643|		catch (std::out_of_range&)
  266|    643|		{
  267|     12|			return m_DataLen;
  268|     12|		}
  269|    643|	}
_ZNK4pcpp18QuicV1InitialLayer15getLengthOffsetEv:
  318|    266|	{
  319|    266|		auto tokenLengthOffset = getTokenLengthOffset();
  320|    266|		auto tokenLengthValueAndSize = getVarintValueAndSize(tokenLengthOffset);
  321|    266|		if (tokenLengthOffset + tokenLengthValueAndSize.size + tokenLengthValueAndSize.value > m_DataLen)
  ------------------
  |  Branch (321:7): [True: 0, False: 266]
  ------------------
  322|      0|		{
  323|      0|			throw std::out_of_range("Not enough data to read length offset");
  324|      0|		}
  325|    266|		return tokenLengthOffset + tokenLengthValueAndSize.size + tokenLengthValueAndSize.value;
  326|    266|	}
_ZNK4pcpp18QuicV1InitialLayer20getTokenLengthOffsetEv:
  329|    266|	{
  330|    266|		auto srcConOffsetAndLength = getSrcConIdOffsetAndLength();
  331|    266|		if (srcConOffsetAndLength.offset + srcConOffsetAndLength.length + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (331:7): [True: 0, False: 266]
  ------------------
  332|      0|		{
  333|      0|			throw std::out_of_range("Not enough data to read token length offset");
  334|      0|		}
  335|    266|		return srcConOffsetAndLength.offset + srcConOffsetAndLength.length;
  336|    266|	}
_ZN4pcpp17QuicV1OneRttLayer11isDataValidEPKhm:
  417|  1.11k|	{
  418|  1.11k|		return data != nullptr && dataLen >= sizeof(quic_short_header);
  ------------------
  |  Branch (418:10): [True: 1.11k, False: 0]
  |  Branch (418:29): [True: 1.11k, False: 0]
  ------------------
  419|  1.11k|	}

_ZN4pcpp11RadiusLayer22getRadiusMessageStringEh:
   93|  8.75k|	{
   94|  8.75k|		switch (radiusMessageCode)
   95|  8.75k|		{
   96|  1.93k|		case 1:
  ------------------
  |  Branch (96:3): [True: 1.93k, False: 6.82k]
  ------------------
   97|  1.93k|			return "Access-Request";
   98|    464|		case 2:
  ------------------
  |  Branch (98:3): [True: 464, False: 8.29k]
  ------------------
   99|    464|			return "Access-Accept";
  100|    544|		case 3:
  ------------------
  |  Branch (100:3): [True: 544, False: 8.21k]
  ------------------
  101|    544|			return "Access-Reject";
  102|    156|		case 4:
  ------------------
  |  Branch (102:3): [True: 156, False: 8.59k]
  ------------------
  103|    156|			return "Accounting-Request";
  104|     72|		case 5:
  ------------------
  |  Branch (104:3): [True: 72, False: 8.68k]
  ------------------
  105|     72|			return "Accounting-Response";
  106|  1.13k|		case 11:
  ------------------
  |  Branch (106:3): [True: 1.13k, False: 7.61k]
  ------------------
  107|  1.13k|			return "Access-Challenge";
  108|      0|		case 12:
  ------------------
  |  Branch (108:3): [True: 0, False: 8.75k]
  ------------------
  109|      0|			return "Status-Server";
  110|      0|		case 13:
  ------------------
  |  Branch (110:3): [True: 0, False: 8.75k]
  ------------------
  111|      0|			return "Status-Client";
  112|  2.41k|		case 40:
  ------------------
  |  Branch (112:3): [True: 2.41k, False: 6.34k]
  ------------------
  113|  2.41k|			return "Disconnect-Request";
  114|  1.50k|		case 41:
  ------------------
  |  Branch (114:3): [True: 1.50k, False: 7.25k]
  ------------------
  115|  1.50k|			return "Disconnect-ACK";
  116|    240|		case 42:
  ------------------
  |  Branch (116:3): [True: 240, False: 8.51k]
  ------------------
  117|    240|			return "Disconnect-NAK";
  118|     52|		case 43:
  ------------------
  |  Branch (118:3): [True: 52, False: 8.70k]
  ------------------
  119|     52|			return "CoA-Request";
  120|     52|		case 44:
  ------------------
  |  Branch (120:3): [True: 52, False: 8.70k]
  ------------------
  121|     52|			return "CoA-ACK";
  122|      0|		case 45:
  ------------------
  |  Branch (122:3): [True: 0, False: 8.75k]
  ------------------
  123|      0|			return "CoA-NAK";
  124|      0|		case 255:
  ------------------
  |  Branch (124:3): [True: 0, False: 8.75k]
  ------------------
  125|      0|			return "Reserved";
  126|    184|		default:
  ------------------
  |  Branch (126:3): [True: 184, False: 8.57k]
  ------------------
  127|    184|			return "Unknown";
  128|  8.75k|		}
  129|  8.75k|	}
_ZNK4pcpp11RadiusLayer12getHeaderLenEv:
  132|  4.37k|	{
  133|  4.37k|		uint16_t len = be16toh(getRadiusHeader()->length);
  134|  4.37k|		if (len > m_DataLen)
  ------------------
  |  Branch (134:7): [True: 0, False: 4.37k]
  ------------------
  135|      0|			return m_DataLen;
  136|       |
  137|  4.37k|		return len;
  138|  4.37k|	}
_ZN4pcpp11RadiusLayer22computeCalculateFieldsEv:
  141|  4.37k|	{
  142|       |		getRadiusHeader()->length = htobe16(m_DataLen);
  143|  4.37k|	}
_ZNK4pcpp11RadiusLayer8toStringEv:
  146|  8.75k|	{
  147|  8.75k|		std::ostringstream str;
  148|  8.75k|		str << "RADIUS Layer, " << RadiusLayer::getRadiusMessageString(getRadiusHeader()->code) << "("
  149|  8.75k|		    << (int)getRadiusHeader()->code
  150|  8.75k|		    << "), "
  151|  8.75k|		       "Id="
  152|  8.75k|		    << (int)getRadiusHeader()->id << ", "
  153|  8.75k|		    << "Length=" << be16toh(getRadiusHeader()->length);
  154|       |
  155|  8.75k|		return str.str();
  156|  8.75k|	}
_ZN4pcpp11RadiusLayer11isDataValidEPKhm:
  239|  28.9k|	{
  240|  28.9k|		if (udpData != nullptr && udpDataLen >= sizeof(radius_header))
  ------------------
  |  Branch (240:7): [True: 28.9k, False: 0]
  |  Branch (240:29): [True: 28.7k, False: 151]
  ------------------
  241|  28.7k|		{
  242|  28.7k|			const radius_header* radHdr = reinterpret_cast<const radius_header*>(udpData);
  243|  28.7k|			size_t radLen = be16toh(radHdr->length);
  244|  28.7k|			return radLen >= sizeof(radius_header) && radLen <= udpDataLen;
  ------------------
  |  Branch (244:11): [True: 28.6k, False: 130]
  |  Branch (244:46): [True: 21.8k, False: 6.74k]
  ------------------
  245|  28.7k|		}
  246|    151|		return false;
  247|  28.9k|	}

_ZN4pcpp9RawPacketD2Ev:
   22|   774k|	{
   23|   774k|		RawPacket::clear();
   24|   774k|	}
_ZN4pcpp9RawPacketC2ERKS0_:
   27|   772k|	{
   28|   772k|		m_RawData = nullptr;
   29|   772k|		copyDataFrom(other, true);
   30|   772k|	}
_ZN4pcpp9RawPacket12copyDataFromERKS0_b:
   50|   772k|	{
   51|   772k|		if (!other.m_RawPacketSet)
  ------------------
  |  Branch (51:7): [True: 0, False: 772k]
  ------------------
   52|      0|			return;
   53|       |
   54|   772k|		m_TimeStamp = other.m_TimeStamp;
   55|       |
   56|   772k|		if (allocateData)
  ------------------
  |  Branch (56:7): [True: 772k, False: 0]
  ------------------
   57|   772k|		{
   58|   772k|			m_OwnsRawData = true;
   59|   772k|			m_RawData = new uint8_t[other.m_RawDataLen];
   60|   772k|			m_RawDataLen = other.m_RawDataLen;
   61|   772k|		}
   62|       |
   63|   772k|		memcpy(m_RawData, other.m_RawData, other.m_RawDataLen);
   64|   772k|		m_LinkLayerType = other.m_LinkLayerType;
   65|   772k|		m_FrameLength = other.m_FrameLength;
   66|   772k|		m_RawPacketSet = true;
   67|   772k|	}
_ZN4pcpp9RawPacket10setRawDataEPKhib8timespecNS_13LinkLayerTypeEi:
   97|   191k|	{
   98|   191k|		return doSetRawData(pRawData, rawDataLen, takeOwnership, timestamp, layerType, frameLength);
   99|   191k|	}
_ZN4pcpp9RawPacket12doSetRawDataEPKhib8timespecNS_13LinkLayerTypeEi:
  103|   191k|	{
  104|   191k|		clear();
  105|       |
  106|   191k|		m_OwnsRawData = takeOwnership;
  107|   191k|		m_FrameLength = (frameLength == -1) ? rawDataLen : frameLength;
  ------------------
  |  Branch (107:19): [True: 549, False: 190k]
  ------------------
  108|   191k|		m_RawData = (uint8_t*)pRawData;
  109|   191k|		m_RawDataLen = rawDataLen;
  110|   191k|		m_TimeStamp = timestamp;
  111|   191k|		m_RawPacketSet = true;
  112|   191k|		m_LinkLayerType = layerType;
  113|   191k|		return true;
  114|   191k|	}
_ZN4pcpp9RawPacket5clearEv:
  123|   966k|	{
  124|   966k|		if (m_RawData != nullptr && m_OwnsRawData)
  ------------------
  |  Branch (124:7): [True: 962k, False: 4.17k]
  |  Branch (124:31): [True: 962k, False: 0]
  ------------------
  125|   962k|			delete[] m_RawData;
  126|       |
  127|   966k|		m_RawData = nullptr;
  128|   966k|		m_RawDataLen = 0;
  129|   966k|		m_FrameLength = 0;
  130|   966k|		m_RawPacketSet = false;
  131|   966k|	}
_ZN4pcpp9RawPacket10insertDataEiPKhm:
  141|  49.2k|	{
  142|  49.2k|		if (atIndex < 0 || atIndex > m_RawDataLen)
  ------------------
  |  Branch (142:7): [True: 0, False: 49.2k]
  |  Branch (142:22): [True: 0, False: 49.2k]
  ------------------
  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|  49.2k|		memmove((uint8_t*)m_RawData + atIndex + dataToInsertLen, (uint8_t*)m_RawData + atIndex, m_RawDataLen - atIndex);
  152|       |
  153|  49.2k|		if (dataToInsert != nullptr)
  ------------------
  |  Branch (153:7): [True: 0, False: 49.2k]
  ------------------
  154|      0|		{
  155|       |			// insert data
  156|      0|			memcpy((uint8_t*)m_RawData + atIndex, dataToInsert, dataToInsertLen);
  157|      0|		}
  158|       |
  159|  49.2k|		m_RawDataLen += dataToInsertLen;
  160|  49.2k|		m_FrameLength = m_RawDataLen;
  161|  49.2k|	}
_ZN4pcpp9RawPacket14reallocateDataEm:
  164|  13.5k|	{
  165|  13.5k|		if ((int)newBufferLength == m_RawDataLen)
  ------------------
  |  Branch (165:7): [True: 0, False: 13.5k]
  ------------------
  166|      0|			return true;
  167|       |
  168|  13.5k|		if ((int)newBufferLength < m_RawDataLen)
  ------------------
  |  Branch (168:7): [True: 0, False: 13.5k]
  ------------------
  169|      0|		{
  170|      0|			PCPP_LOG_ERROR("Cannot reallocate raw packet to a smaller size. Current data length: "
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleRawPacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  171|      0|			               << m_RawDataLen << "; requested length: " << newBufferLength);
  172|      0|			return false;
  173|      0|		}
  174|       |
  175|  13.5k|		uint8_t* newBuffer = new uint8_t[newBufferLength];
  176|  13.5k|		memset(newBuffer, 0, newBufferLength);
  177|  13.5k|		memcpy(newBuffer, m_RawData, m_RawDataLen);
  178|  13.5k|		if (m_OwnsRawData)
  ------------------
  |  Branch (178:7): [True: 13.5k, False: 0]
  ------------------
  179|  13.5k|			delete[] m_RawData;
  180|       |
  181|  13.5k|		m_OwnsRawData = true;
  182|  13.5k|		m_RawData = newBuffer;
  183|       |
  184|  13.5k|		return true;
  185|  13.5k|	}
_ZN4pcpp9RawPacket10removeDataEim:
  188|  51.6k|	{
  189|  51.6k|		if (atIndex < 0 || atIndex + (int)numOfBytesToRemove > m_RawDataLen)
  ------------------
  |  Branch (189:7): [True: 6, False: 51.6k]
  |  Branch (189:22): [True: 0, False: 51.6k]
  ------------------
  190|      6|		{
  191|      6|			PCPP_LOG_ERROR("Remove section is out of raw packet bound. Removes can only happen in range [0, " +
  ------------------
  |  |  444|      6|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      6|	do                                                                                                                 \
  |  |  |  |  414|      6|	{                                                                                                                  \
  |  |  |  |  415|      6|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      6|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      6|#define LOG_MODULE PacketLogModuleRawPacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 6, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      6|		{                                                                                                              \
  |  |  |  |  418|      6|			auto ctx =                                                                                                 \
  |  |  |  |  419|      6|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      6|#define LOG_MODULE PacketLogModuleRawPacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      6|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      6|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      6|		}                                                                                                              \
  |  |  |  |  423|      6|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 6]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  192|      6|			               std::to_string(m_RawDataLen) + ')');
  193|      6|			return false;
  194|      6|		}
  195|       |
  196|  51.6k|		if (numOfBytesToRemove == 0)
  ------------------
  |  Branch (196:7): [True: 0, False: 51.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|  51.6k|		if ((atIndex + (int)numOfBytesToRemove) != m_RawDataLen)
  ------------------
  |  Branch (202:7): [True: 37.8k, False: 13.8k]
  ------------------
  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|  37.8k|			memmove((uint8_t*)m_RawData + atIndex, (uint8_t*)m_RawData + atIndex + numOfBytesToRemove,
  206|  37.8k|			        m_RawDataLen - (atIndex + numOfBytesToRemove));
  207|       |
  208|  51.6k|		m_RawDataLen -= numOfBytesToRemove;
  209|  51.6k|		m_FrameLength = m_RawDataLen;
  210|  51.6k|		return true;
  211|  51.6k|	}

_ZNK4pcpp11S7CommLayer8toStringEv:
   51|  2.48k|	{
   52|  2.48k|		std::ostringstream str;
   53|  2.48k|		str << "S7Comm Layer, ";
   54|       |
   55|  2.48k|		switch (getS7commHeader()->msgType)
   56|  2.48k|		{
   57|    188|		case 0x01:
  ------------------
  |  Branch (57:3): [True: 188, False: 2.29k]
  ------------------
   58|    188|			str << "Job Request";
   59|    188|			break;
   60|      6|		case 0x02:
  ------------------
  |  Branch (60:3): [True: 6, False: 2.47k]
  ------------------
   61|      6|			str << "Ack";
   62|      6|			break;
   63|    160|		case 0x03:
  ------------------
  |  Branch (63:3): [True: 160, False: 2.32k]
  ------------------
   64|    160|			str << "Ack-Data";
   65|    160|			break;
   66|  1.46k|		case 0x07:
  ------------------
  |  Branch (66:3): [True: 1.46k, False: 1.02k]
  ------------------
   67|  1.46k|			str << "Userdata";
   68|  1.46k|			break;
   69|    668|		default:
  ------------------
  |  Branch (69:3): [True: 668, False: 1.81k]
  ------------------
   70|    668|			str << "Unknown message";
   71|  2.48k|		}
   72|       |
   73|  2.48k|		return str.str();
   74|  2.48k|	}
_ZN4pcpp11S7CommLayer11isDataValidEPKhm:
   77|  10.2k|	{
   78|  10.2k|		if (!data || dataSize < sizeof(s7commhdr))
  ------------------
  |  Branch (78:7): [True: 0, False: 10.2k]
  |  Branch (78:16): [True: 140, False: 10.1k]
  ------------------
   79|    140|			return false;
   80|       |
   81|  10.1k|		return data[0] == 0x32;
   82|  10.2k|	}

_ZN4pcpp8SSHLayer16createSSHMessageEPhmPNS_5LayerEPNS_6PacketE:
   19|  15.9k|	{
   20|  15.9k|		SSHIdentificationMessage* sshIdnetMsg = SSHIdentificationMessage::tryParse(data, dataLen, prevLayer, packet);
   21|  15.9k|		if (sshIdnetMsg != nullptr)
  ------------------
  |  Branch (21:7): [True: 1.09k, False: 14.8k]
  ------------------
   22|  1.09k|			return sshIdnetMsg;
   23|       |
   24|  14.8k|		SSHHandshakeMessage* sshHandshakeMessage = SSHHandshakeMessage::tryParse(data, dataLen, prevLayer, packet);
   25|  14.8k|		if (sshHandshakeMessage != nullptr)
  ------------------
  |  Branch (25:7): [True: 2.28k, False: 12.5k]
  ------------------
   26|  2.28k|			return sshHandshakeMessage;
   27|       |
   28|  12.5k|		return new SSHEncryptedMessage(data, dataLen, prevLayer, packet);
   29|  14.8k|	}
_ZN4pcpp8SSHLayer14parseNextLayerEv:
   32|  15.9k|	{
   33|  15.9k|		size_t headerLen = getHeaderLen();
   34|  15.9k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (34:7): [True: 15.1k, False: 728]
  ------------------
   35|  15.1k|			return;
   36|       |
   37|    728|		constructNextLayerFromFactory(SSHLayer::createSSHMessage, m_Data + headerLen, m_DataLen - headerLen);
   38|    728|	}
_ZN4pcpp24SSHIdentificationMessage8tryParseEPhmPNS_5LayerEPNS_6PacketE:
   46|  15.9k|	{
   47|       |		// Payload must be at least as long as the string "SSH-"
   48|  15.9k|		if (dataLen < 5)
  ------------------
  |  Branch (48:7): [True: 209, False: 15.7k]
  ------------------
   49|    209|			return nullptr;
   50|       |
   51|       |		// Payload must begin with "SSH-" and end with "\n"
   52|  15.7k|		if (data[0] == 0x53 && data[1] == 0x53 && data[2] == 0x48 && data[3] == 0x2d && data[dataLen - 1] == 0x0a)
  ------------------
  |  Branch (52:7): [True: 10.2k, False: 5.48k]
  |  Branch (52:26): [True: 9.89k, False: 328]
  |  Branch (52:45): [True: 9.82k, False: 66]
  |  Branch (52:64): [True: 9.80k, False: 21]
  |  Branch (52:83): [True: 1.09k, False: 8.71k]
  ------------------
   53|  1.09k|			return new SSHIdentificationMessage(data, dataLen, prevLayer, packet);
   54|       |
   55|  14.6k|		return nullptr;
   56|  15.7k|	}
_ZNK4pcpp24SSHIdentificationMessage8toStringEv:
   66|    438|	{
   67|    438|		return std::string(SshLayerBaseString) + ", " + "Identification message";
   68|    438|	}
_ZNK4pcpp19SSHHandshakeMessage14getMessageTypeEv:
   75|    842|	{
   76|    842|		uint8_t messageCode = getMsgBaseHeader()->messageCode;
   77|    842|		if (messageCode == 20 || messageCode == 21 || (messageCode >= 30 && messageCode <= 34))
  ------------------
  |  Branch (77:7): [True: 224, False: 618]
  |  Branch (77:28): [True: 236, False: 382]
  |  Branch (77:50): [True: 382, False: 0]
  |  Branch (77:71): [True: 382, False: 0]
  ------------------
   78|    842|			return static_cast<SSHHandshakeMessage::SSHHandshakeMessageType>(messageCode);
   79|      0|		return SSHHandshakeMessage::SSH_MSG_UNKNOWN;
   80|    842|	}
_ZNK4pcpp19SSHHandshakeMessage17getMessageTypeStrEv:
   83|    842|	{
   84|    842|		switch (getMessageType())
   85|    842|		{
   86|    224|		case SSHHandshakeMessage::SSH_MSG_KEX_INIT:
  ------------------
  |  Branch (86:3): [True: 224, False: 618]
  ------------------
   87|    224|			return "Key Exchange Init";
   88|    236|		case SSHHandshakeMessage::SSH_MSG_NEW_KEYS:
  ------------------
  |  Branch (88:3): [True: 236, False: 606]
  ------------------
   89|    236|			return "New Keys";
   90|      6|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_INIT:
  ------------------
  |  Branch (90:3): [True: 6, False: 836]
  ------------------
   91|      6|			return "Diffie-Hellman Key Exchange Init";
   92|     90|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_REPLY:
  ------------------
  |  Branch (92:3): [True: 90, False: 752]
  ------------------
   93|     90|			return "Diffie-Hellman Key Exchange Reply";
   94|     84|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_INIT:
  ------------------
  |  Branch (94:3): [True: 84, False: 758]
  ------------------
   95|     84|			return "Diffie-Hellman Group Exchange Init";
   96|    120|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_REPLY:
  ------------------
  |  Branch (96:3): [True: 120, False: 722]
  ------------------
   97|    120|			return "Diffie-Hellman Group Exchange Reply";
   98|     82|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_REQUEST:
  ------------------
  |  Branch (98:3): [True: 82, False: 760]
  ------------------
   99|     82|			return "Diffie-Hellman Group Exchange Request";
  100|      0|		default:
  ------------------
  |  Branch (100:3): [True: 0, False: 842]
  ------------------
  101|      0|			return "Unknown";
  102|    842|		}
  103|    842|	}
_ZNK4pcpp19SSHHandshakeMessage12getHeaderLenEv:
  130|  2.70k|	{
  131|       |		return (size_t)be32toh(getMsgBaseHeader()->packetLength) + sizeof(uint32_t);
  132|  2.70k|	}
_ZNK4pcpp19SSHHandshakeMessage8toStringEv:
  135|    842|	{
  136|    842|		return std::string(SshLayerBaseString) + ", " + "Handshake Message: " + getMessageTypeStr();
  137|    842|	}
_ZN4pcpp19SSHHandshakeMessage8tryParseEPhmPNS_5LayerEPNS_6PacketE:
  140|  14.8k|	{
  141|  14.8k|		if (dataLen < sizeof(SSHHandshakeMessage::ssh_message_base))
  ------------------
  |  Branch (141:7): [True: 214, False: 14.6k]
  ------------------
  142|    214|		{
  143|    214|			PCPP_LOG_DEBUG(
  ------------------
  |  |  426|    214|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|    214|	do                                                                                                                 \
  |  |  |  |  414|    214|	{                                                                                                                  \
  |  |  |  |  415|    214|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    214|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    214|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 214]
  |  |  |  |  ------------------
  |  |  |  |  417|    214|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|    214|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 214]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|    214|			    "Data length is smaller than the minimum size of an SSH handshake message. It's probably not an SSH handshake message");
  145|    214|			return nullptr;
  146|    214|		}
  147|       |
  148|  14.6k|		SSHHandshakeMessage::ssh_message_base* msgBase = (SSHHandshakeMessage::ssh_message_base*)data;
  149|       |
  150|  14.6k|		uint32_t msgLength = be32toh(msgBase->packetLength);
  151|  14.6k|		if (msgLength + sizeof(uint32_t) > dataLen)
  ------------------
  |  Branch (151:7): [True: 12.2k, False: 2.35k]
  ------------------
  152|  12.2k|		{
  153|  12.2k|			PCPP_LOG_DEBUG("Message size is larger than layer size. It's probably not an SSH handshake message");
  ------------------
  |  |  426|  12.2k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|  12.2k|	do                                                                                                                 \
  |  |  |  |  414|  12.2k|	{                                                                                                                  \
  |  |  |  |  415|  12.2k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  12.2k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  12.2k|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 12.2k]
  |  |  |  |  ------------------
  |  |  |  |  417|  12.2k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|  12.2k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 12.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  154|  12.2k|			return nullptr;
  155|  12.2k|		}
  156|       |
  157|  2.35k|		if (msgBase->paddingLength > msgLength)
  ------------------
  |  Branch (157:7): [True: 0, False: 2.35k]
  ------------------
  158|      0|		{
  159|      0|			PCPP_LOG_DEBUG("Message padding is larger than message size. It's probably not an SSH handshake message");
  ------------------
  |  |  426|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  160|      0|			return nullptr;
  161|      0|		}
  162|       |
  163|  2.35k|		if (msgBase->messageCode != 20 && msgBase->messageCode != 21 &&
  ------------------
  |  Branch (163:7): [True: 1.73k, False: 617]
  |  Branch (163:37): [True: 1.08k, False: 646]
  ------------------
  164|  1.08k|		    (msgBase->messageCode < 30 || msgBase->messageCode > 49))
  ------------------
  |  Branch (164:8): [True: 11, False: 1.07k]
  |  Branch (164:37): [True: 58, False: 1.01k]
  ------------------
  165|     69|		{
  166|     69|			PCPP_LOG_DEBUG("Unknown message type " << (int)msgBase->messageCode
  ------------------
  |  |  426|     69|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|     69|	do                                                                                                                 \
  |  |  |  |  414|     69|	{                                                                                                                  \
  |  |  |  |  415|     69|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|     69|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     69|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 69]
  |  |  |  |  ------------------
  |  |  |  |  417|     69|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|     69|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 69]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  167|     69|			                                       << ". It's probably not an SSH handshake message");
  168|     69|			return nullptr;
  169|     69|		}
  170|       |
  171|  2.28k|		switch (msgBase->messageCode)
  172|  2.28k|		{
  173|    617|		case SSHHandshakeMessage::SSH_MSG_KEX_INIT:
  ------------------
  |  Branch (173:3): [True: 617, False: 1.66k]
  ------------------
  174|    617|			return new SSHKeyExchangeInitMessage(data, dataLen, prevLayer, packet);
  175|  1.66k|		default:
  ------------------
  |  Branch (175:3): [True: 1.66k, False: 617]
  ------------------
  176|  1.66k|			return new SSHHandshakeMessage(data, dataLen, prevLayer, packet);
  177|  2.28k|		}
  178|  2.28k|	}
_ZN4pcpp25SSHKeyExchangeInitMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  186|    617|	    : SSHHandshakeMessage(data, dataLen, prevLayer, packet), m_OffsetsInitialized(false)
  187|    617|	{
  188|    617|		memset(m_FieldOffsets, 0, 11 * sizeof(size_t));
  189|    617|	}
_ZNK4pcpp19SSHEncryptedMessage8toStringEv:
  264|  4.89k|	{
  265|  4.89k|		return std::string(SshLayerBaseString) + ", " + "Encrypted Message";
  266|  4.89k|	}

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

_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|   125k|	{
 1057|   125k|		auto pos = CipherSuiteIdToObjectMap.find(id);
 1058|   125k|		if (pos == CipherSuiteIdToObjectMap.end())
  ------------------
  |  Branch (1058:7): [True: 38.6k, False: 86.6k]
  ------------------
 1059|  38.6k|			return nullptr;
 1060|  86.6k|		else
 1061|  86.6k|			return pos->second;
 1062|   125k|	}
_ZN4pcpp14SSLCipherSuite20getCipherSuiteByNameENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1065|  7.29k|	{
 1066|  7.29k|		uint32_t nameHash = hashString(std::move(name));
 1067|  7.29k|		auto pos = CipherSuiteStringToObjectMap.find(nameHash);
 1068|  7.29k|		if (pos == CipherSuiteStringToObjectMap.end())
  ------------------
  |  Branch (1068:7): [True: 0, False: 7.29k]
  ------------------
 1069|      0|			return nullptr;
 1070|  7.29k|		else
 1071|  7.29k|			return pos->second;
 1072|  7.29k|	}
_ZN4pcpp12SSLExtensionC2EPhm:
 1081|   310k|	SSLExtension::SSLExtension(uint8_t* data, size_t dataLen) : m_RawData(data), m_RawDataLen(dataLen)
 1082|   310k|	{
 1083|   310k|		if (data == nullptr || dataLen < 2 * sizeof(uint16_t))
  ------------------
  |  Branch (1083:7): [True: 0, False: 310k]
  |  Branch (1083:26): [True: 0, False: 310k]
  ------------------
 1084|      0|		{
 1085|      0|			throw std::invalid_argument("Insufficient data buffer for SSL extension header");
 1086|      0|		}
 1087|       |
 1088|   310k|		uint16_t extDataLen = getLength();
 1089|   310k|		if (dataLen < (2 * sizeof(uint16_t) + extDataLen))
  ------------------
  |  Branch (1089:7): [True: 0, False: 310k]
  ------------------
 1090|      0|		{
 1091|      0|			throw std::invalid_argument("Insufficient data buffer for SSL extension data");
 1092|      0|		}
 1093|   310k|	}
_ZNK4pcpp12SSLExtension7getTypeEv:
 1096|  17.1k|	{
 1097|  17.1k|		uint16_t typeAsInt = getTypeAsInt();
 1098|  17.1k|		if (typeAsInt <= 24 || typeAsInt == 35 || typeAsInt == 65281)
  ------------------
  |  Branch (1098:7): [True: 9.29k, False: 7.88k]
  |  Branch (1098:26): [True: 480, False: 7.40k]
  |  Branch (1098:45): [True: 1.80k, False: 5.59k]
  ------------------
 1099|  11.5k|			return (SSLExtensionType)typeAsInt;
 1100|       |
 1101|  5.59k|		return SSL_EXT_Unknown;
 1102|  17.1k|	}
_ZNK4pcpp12SSLExtension12getTypeAsIntEv:
 1105|  82.8k|	{
 1106|       |		return be16toh(getExtensionStruct()->extensionType);
 1107|  82.8k|	}
_ZNK4pcpp12SSLExtension9getLengthEv:
 1110|   658k|	{
 1111|   658k|		return getExtensionStruct()->getDataLength();
 1112|   658k|	}
_ZNK4pcpp12SSLExtension14getTotalLengthEv:
 1115|   310k|	{
 1116|   310k|		return getLength() + 2 * sizeof(uint16_t);
 1117|   310k|	}
_ZNK4pcpp12SSLExtension7getDataEv:
 1120|  22.1k|	{
 1121|  22.1k|		if (getLength() > 0)
  ------------------
  |  Branch (1121:7): [True: 21.1k, False: 963]
  ------------------
 1122|  21.1k|		{
 1123|  21.1k|			return getExtensionStruct()->extensionData;
 1124|  21.1k|		}
 1125|       |
 1126|    963|		return nullptr;
 1127|  22.1k|	}
_ZNK4pcpp12SSLExtension18SSLExtensionStruct13getDataLengthEv:
 1130|   986k|	{
 1131|       |		return be16toh(extensionDataLength);
 1132|   986k|	}
_ZNK4pcpp32SSLServerNameIndicationExtension11getHostNameEv:
 1139|  5.04k|	{
 1140|  5.04k|		auto* extensionDataPtr = getData();
 1141|       |		// server name list length + name type + host name length
 1142|  5.04k|		constexpr size_t minExtensionDataLen = sizeof(uint16_t) + sizeof(uint8_t) + sizeof(uint16_t);
 1143|  5.04k|		auto length = getLength();
 1144|  5.04k|		if (extensionDataPtr == nullptr || length < minExtensionDataLen)
  ------------------
  |  Branch (1144:7): [True: 963, False: 4.08k]
  |  Branch (1144:38): [True: 1, False: 4.07k]
  ------------------
 1145|    964|		{
 1146|    964|			return "";
 1147|    964|		}
 1148|       |
 1149|  4.07k|		uint8_t const* hostNameLengthPos = extensionDataPtr + sizeof(uint16_t) + sizeof(uint8_t);
 1150|  4.07k|		uint16_t hostNameLength = be16toh(*reinterpret_cast<uint16_t const*>(hostNameLengthPos));
 1151|       |
 1152|  4.07k|		uint8_t const* hostNameDataIt = hostNameLengthPos + sizeof(uint16_t);
 1153|  4.07k|		uint8_t const* hostNameDataEndIt = hostNameDataIt + hostNameLength;
 1154|  4.07k|		uint8_t const* extensionDataEndIt = extensionDataPtr + length;
 1155|       |
 1156|  4.07k|		if (hostNameDataEndIt > extensionDataEndIt)
  ------------------
  |  Branch (1156:7): [True: 32, False: 4.04k]
  ------------------
 1157|     32|		{
 1158|     32|			PCPP_LOG_WARN("Host name length exceeds extension data length. Possible data corruption. Truncating.");
  ------------------
  |  |  432|     32|#	define PCPP_LOG_WARN(message) PCPP_LOG(pcpp::LogLevel::Warn, message)
  |  |  ------------------
  |  |  |  |  413|     32|	do                                                                                                                 \
  |  |  |  |  414|     32|	{                                                                                                                  \
  |  |  |  |  415|     32|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|     32|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     32|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 32, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|     32|		{                                                                                                              \
  |  |  |  |  418|     32|			auto ctx =                                                                                                 \
  |  |  |  |  419|     32|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     32|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|     32|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|     32|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|     32|		}                                                                                                              \
  |  |  |  |  423|     32|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 32]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1159|     32|			hostNameDataEndIt = extensionDataEndIt;
 1160|     32|		}
 1161|       |
 1162|  4.07k|		return std::string(hostNameDataIt, hostNameDataEndIt);
 1163|  5.04k|	}
_ZNK4pcpp29SSLSupportedVersionsExtension20getSupportedVersionsEv:
 1170|  2.95k|	{
 1171|  2.95k|		std::vector<SSLVersion> result;
 1172|  2.95k|		uint16_t extensionLength = getLength();
 1173|  2.95k|		if (extensionLength == 0)
  ------------------
  |  Branch (1173:7): [True: 0, False: 2.95k]
  ------------------
 1174|      0|			return result;  // bad extension data
 1175|       |
 1176|  2.95k|		if (extensionLength == 2)  // server hello message
  ------------------
  |  Branch (1176:7): [True: 1.42k, False: 1.53k]
  ------------------
 1177|  1.42k|		{
 1178|  1.42k|			result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(getData()))));
 1179|  1.42k|		}
 1180|  1.53k|		else  // client-hello message
 1181|  1.53k|		{
 1182|  1.53k|			uint8_t listLength = *getData();
 1183|  1.53k|			if (listLength != static_cast<uint8_t>(extensionLength - 1) || listLength % 2 != 0)
  ------------------
  |  Branch (1183:8): [True: 4, False: 1.53k]
  |  Branch (1183:67): [True: 0, False: 1.53k]
  ------------------
 1184|      4|				return result;  // bad extension data
 1185|       |
 1186|  1.53k|			uint8_t* dataPtr = getData() + sizeof(uint8_t);
 1187|  5.55k|			for (int i = 0; i < listLength / 2; i++)
  ------------------
  |  Branch (1187:20): [True: 4.02k, False: 1.53k]
  ------------------
 1188|  4.02k|			{
 1189|  4.02k|				result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(dataPtr))));
 1190|  4.02k|				dataPtr += sizeof(uint16_t);
 1191|  4.02k|			}
 1192|  1.53k|		}
 1193|       |
 1194|  2.95k|		return result;
 1195|  2.95k|	}
_ZNK4pcpp27TLSSupportedGroupsExtension18getSupportedGroupsEv:
 1202|  4.36k|	{
 1203|  4.36k|		std::vector<uint16_t> result;
 1204|       |
 1205|  4.36k|		uint16_t extensionLength = getLength();
 1206|  4.36k|		if (extensionLength < sizeof(uint16_t))
  ------------------
  |  Branch (1206:7): [True: 1, False: 4.36k]
  ------------------
 1207|      1|			return result;  // bad extension data
 1208|       |
 1209|  4.36k|		uint16_t listLength = be16toh(*(uint16_t*)getData());
 1210|  4.36k|		if (listLength != (extensionLength - sizeof(uint16_t)) || listLength % 2 != 0)
  ------------------
  |  Branch (1210:7): [True: 186, False: 4.18k]
  |  Branch (1210:61): [True: 0, False: 4.18k]
  ------------------
 1211|    186|			return result;  // bad extension data
 1212|       |
 1213|  4.18k|		uint8_t* dataPtr = getData() + sizeof(uint16_t);
 1214|  22.2k|		for (int i = 0; i < listLength / 2; i++)
  ------------------
  |  Branch (1214:19): [True: 18.1k, False: 4.18k]
  ------------------
 1215|  18.1k|		{
 1216|  18.1k|			result.push_back(be16toh(*reinterpret_cast<uint16_t*>(dataPtr)));
 1217|  18.1k|			dataPtr += sizeof(uint16_t);
 1218|  18.1k|		}
 1219|       |
 1220|  4.18k|		return result;
 1221|  4.36k|	}
_ZNK4pcpp25TLSECPointFormatExtension20getECPointFormatListEv:
 1228|  2.04k|	{
 1229|  2.04k|		std::vector<uint8_t> result;
 1230|       |
 1231|  2.04k|		uint16_t extensionLength = getLength();
 1232|       |
 1233|  2.04k|		if (extensionLength < 1)
  ------------------
  |  Branch (1233:7): [True: 9, False: 2.03k]
  ------------------
 1234|      9|			return result;
 1235|       |
 1236|  2.03k|		uint8_t listLength = *getData();
 1237|       |
 1238|  2.03k|		if (extensionLength != static_cast<uint16_t>(listLength) + 1)
  ------------------
  |  Branch (1238:7): [True: 4, False: 2.02k]
  ------------------
 1239|      4|			return result;  // bad extension data
 1240|       |
 1241|  2.02k|		uint8_t* dataPtr = getData() + sizeof(uint8_t);
 1242|  4.80k|		for (int i = 0; i < listLength; i++)
  ------------------
  |  Branch (1242:19): [True: 2.77k, False: 2.02k]
  ------------------
 1243|  2.77k|		{
 1244|  2.77k|			result.push_back(*dataPtr);
 1245|  2.77k|			dataPtr += sizeof(uint8_t);
 1246|  2.77k|		}
 1247|       |
 1248|  2.02k|		return result;
 1249|  2.03k|	}
_ZN4pcpp19SSLHandshakeMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1287|   140k|	{
 1288|   140k|		m_Data = data;
 1289|   140k|		m_DataLen = dataLen;
 1290|   140k|		m_Container = container;
 1291|   140k|	}
_ZN4pcpp19SSLHandshakeMessage22createHandshakeMessageEPhmPNS_17SSLHandshakeLayerE:
 1295|   283k|	{
 1296|   283k|		if (dataLen < sizeof(ssl_tls_handshake_layer))
  ------------------
  |  Branch (1296:7): [True: 142k, False: 140k]
  ------------------
 1297|   142k|			return nullptr;
 1298|       |
 1299|   140k|		ssl_tls_handshake_layer* hsMsgHeader = reinterpret_cast<ssl_tls_handshake_layer*>(data);
 1300|       |
 1301|   140k|		if (dataLen >= 16 && (be64toh(*(uint64_t*)data) <= 0xFFFFFF || hsMsgHeader->length1 >= 1))
  ------------------
  |  Branch (1301:7): [True: 130k, False: 10.0k]
  |  Branch (1301:25): [True: 3.32k, False: 126k]
  |  Branch (1301:66): [True: 22.4k, False: 104k]
  ------------------
 1302|  25.7k|		{
 1303|       |			// possibly Encrypted Handshake Message
 1304|       |			// used heuristic:
 1305|       |			// - handshake layer of more than 16 byte
 1306|       |			// - first 5 bytes of the handshake message are zeroes
 1307|       |			// - or wrong message length is over 64K
 1308|       |			// - or message type makes so sense (handled through the switch statement)
 1309|  25.7k|			return new SSLUnknownMessage(data, dataLen, container);
 1310|  25.7k|		}
 1311|       |
 1312|   114k|		switch (hsMsgHeader->handshakeType)
 1313|   114k|		{
 1314|  43.6k|		case SSL_CLIENT_HELLO:
  ------------------
  |  Branch (1314:3): [True: 43.6k, False: 70.9k]
  ------------------
 1315|  43.6k|			return new SSLClientHelloMessage(data, dataLen, container);
 1316|  40.1k|		case SSL_SERVER_HELLO:
  ------------------
  |  Branch (1316:3): [True: 40.1k, False: 74.4k]
  ------------------
 1317|  40.1k|			return new SSLServerHelloMessage(data, dataLen, container);
 1318|  8.73k|		case SSL_HELLO_REQUEST:
  ------------------
  |  Branch (1318:3): [True: 8.73k, False: 105k]
  ------------------
 1319|  8.73k|			return new SSLHelloRequestMessage(data, dataLen, container);
 1320|  3.16k|		case SSL_CERTIFICATE:
  ------------------
  |  Branch (1320:3): [True: 3.16k, False: 111k]
  ------------------
 1321|  3.16k|			return new SSLCertificateMessage(data, dataLen, container);
 1322|     35|		case SSL_SERVER_KEY_EXCHANGE:
  ------------------
  |  Branch (1322:3): [True: 35, False: 114k]
  ------------------
 1323|     35|			return new SSLServerKeyExchangeMessage(data, dataLen, container);
 1324|    855|		case SSL_CERTIFICATE_REQUEST:
  ------------------
  |  Branch (1324:3): [True: 855, False: 113k]
  ------------------
 1325|    855|			return new SSLCertificateRequestMessage(data, dataLen, container);
 1326|      0|		case SSL_CERTIFICATE_VERIFY:
  ------------------
  |  Branch (1326:3): [True: 0, False: 114k]
  ------------------
 1327|      0|			return new SSLCertificateVerifyMessage(data, dataLen, container);
 1328|  4.58k|		case SSL_CLIENT_KEY_EXCHANGE:
  ------------------
  |  Branch (1328:3): [True: 4.58k, False: 109k]
  ------------------
 1329|  4.58k|			return new SSLClientKeyExchangeMessage(data, dataLen, container);
 1330|  2.18k|		case SSL_FINISHED:
  ------------------
  |  Branch (1330:3): [True: 2.18k, False: 112k]
  ------------------
 1331|  2.18k|			return new SSLFinishedMessage(data, dataLen, container);
 1332|  10.5k|		case SSL_SERVER_DONE:
  ------------------
  |  Branch (1332:3): [True: 10.5k, False: 104k]
  ------------------
 1333|  10.5k|			return new SSLServerHelloDoneMessage(data, dataLen, container);
 1334|    549|		case SSL_NEW_SESSION_TICKET:
  ------------------
  |  Branch (1334:3): [True: 549, False: 114k]
  ------------------
 1335|    549|			return new SSLNewSessionTicketMessage(data, dataLen, container);
 1336|    164|		default:
  ------------------
  |  Branch (1336:3): [True: 164, False: 114k]
  ------------------
 1337|    164|			return new SSLUnknownMessage(data, dataLen, container);
 1338|   114k|		}
 1339|   114k|	}
_ZNK4pcpp19SSLHandshakeMessage16getHandshakeTypeEv:
 1342|  7.29k|	{
 1343|  7.29k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1344|  7.29k|		return (SSLHandshakeType)handshakeLayer->handshakeType;
 1345|  7.29k|	}
_ZNK4pcpp19SSLHandshakeMessage16getMessageLengthEv:
 1348|   290k|	{
 1349|   290k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1350|       |		// TODO: add handshakeLayer->length1 to the calculation
 1351|   290k|		size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2);
 1352|   290k|		if (len > m_DataLen)
  ------------------
  |  Branch (1352:7): [True: 59.5k, False: 230k]
  ------------------
 1353|  59.5k|			return m_DataLen;
 1354|       |
 1355|   230k|		return len;
 1356|   290k|	}
_ZNK4pcpp19SSLHandshakeMessage17isMessageCompleteEv:
 1359|  13.5k|	{
 1360|  13.5k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer))
  ------------------
  |  Branch (1360:7): [True: 0, False: 13.5k]
  ------------------
 1361|      0|			return false;
 1362|       |
 1363|  13.5k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1364|       |		size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2);
 1365|  13.5k|		return len <= m_DataLen;
 1366|  13.5k|	}
_ZN4pcpp21SSLClientHelloMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1373|  43.6k|	    : SSLHandshakeMessage(data, dataLen, container)
 1374|  43.6k|	{
 1375|  43.6k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1376|  43.6k|		                               sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() +
 1377|  43.6k|		                               2 * sizeof(uint8_t);
 1378|  43.6k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1378:7): [True: 13.2k, False: 30.3k]
  ------------------
 1379|  13.2k|			return;
 1380|       |
 1381|  30.3k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1382|  30.3k|		uint16_t extensionLength = getExtensionsLength();
 1383|  30.3k|		uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
 1384|       |
 1385|  30.3k|		size_t messageLen = getMessageLength();
 1386|       |
 1387|       |		// Iterators for the entire extension data buffer containing the extensions blocks.
 1388|  30.3k|		uint8_t* extensionIt = extensionPos;
 1389|  30.3k|		uint8_t* extensionEndIt = extensionPos + extensionLength;
 1390|       |
 1391|       |		// If the message length is smaller that the extension data buffer, we might have malformed data.
 1392|       |		// In this case, the extension data buffer is truncated to the message length, to avoid out-of-bounds access.
 1393|  30.3k|		uint8_t* endOfMessageIt = m_Data + messageLen;
 1394|  30.3k|		if (endOfMessageIt < extensionEndIt)
  ------------------
  |  Branch (1394:7): [True: 8.31k, False: 22.0k]
  ------------------
 1395|  8.31k|		{
 1396|  8.31k|			extensionEndIt = endOfMessageIt;
 1397|  8.31k|		}
 1398|       |
 1399|  30.3k|		constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
 1400|   297k|		while (extensionIt < extensionEndIt &&
  ------------------
  |  Branch (1400:10): [True: 287k, False: 10.4k]
  ------------------
 1401|   287k|		       std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
  ------------------
  |  Branch (1401:10): [True: 283k, False: 4.09k]
  ------------------
 1402|   283k|		{
 1403|   283k|			std::unique_ptr<SSLExtension> newExt;
 1404|       |
 1405|   283k|			uint16_t sslExtType = be16toh(*reinterpret_cast<uint16_t*>(extensionIt));
 1406|   283k|			size_t availableDataLen = std::distance(extensionIt, extensionEndIt);
 1407|       |
 1408|   283k|			switch (sslExtType)
 1409|   283k|			{
 1410|  35.9k|			case SSL_EXT_SERVER_NAME:
  ------------------
  |  Branch (1410:4): [True: 35.9k, False: 247k]
  ------------------
 1411|  35.9k|			{
 1412|  35.9k|				newExt =
 1413|  35.9k|				    SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
 1414|  35.9k|				break;
 1415|      0|			}
 1416|  7.55k|			case SSL_EXT_SUPPORTED_VERSIONS:
  ------------------
  |  Branch (1416:4): [True: 7.55k, False: 275k]
  ------------------
 1417|  7.55k|			{
 1418|  7.55k|				newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
 1419|  7.55k|				break;
 1420|      0|			}
 1421|  21.8k|			case SSL_EXT_SUPPORTED_GROUPS:
  ------------------
  |  Branch (1421:4): [True: 21.8k, False: 261k]
  ------------------
 1422|  21.8k|			{
 1423|  21.8k|				newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
 1424|  21.8k|				break;
 1425|      0|			}
 1426|  10.2k|			case SSL_EXT_EC_POINT_FORMATS:
  ------------------
  |  Branch (1426:4): [True: 10.2k, False: 272k]
  ------------------
 1427|  10.2k|			{
 1428|  10.2k|				newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
 1429|  10.2k|				break;
 1430|      0|			}
 1431|   207k|			default:
  ------------------
  |  Branch (1431:4): [True: 207k, False: 75.6k]
  ------------------
 1432|   207k|			{
 1433|   207k|				newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
 1434|   207k|			}
 1435|   283k|			}
 1436|       |
 1437|   283k|			if (newExt == nullptr)
  ------------------
  |  Branch (1437:8): [True: 15.8k, False: 267k]
  ------------------
 1438|  15.8k|			{
 1439|  15.8k|				PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
  ------------------
  |  |  426|  15.8k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|  15.8k|	do                                                                                                                 \
  |  |  |  |  414|  15.8k|	{                                                                                                                  \
  |  |  |  |  415|  15.8k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  15.8k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  15.8k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 15.8k]
  |  |  |  |  ------------------
  |  |  |  |  417|  15.8k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|  15.8k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 15.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1440|  15.8k|				                                                        << " skipping remaining extensions.");
 1441|  15.8k|				break;
 1442|  15.8k|			}
 1443|       |
 1444|       |			// Total length can be zero only if getLength() == 0xfffc which is way too large
 1445|       |			// and means that this extension (and packet) are malformed
 1446|   267k|			size_t newExtTotalLen = newExt->getTotalLength();
 1447|   267k|			if (newExtTotalLen == 0)
  ------------------
  |  Branch (1447:8): [True: 0, False: 267k]
  ------------------
 1448|      0|			{
 1449|      0|				break;
 1450|      0|			}
 1451|       |
 1452|   267k|			m_ExtensionList.pushBack(std::move(newExt));
 1453|   267k|			std::advance(extensionIt, newExtTotalLen);
 1454|   267k|		}
 1455|  30.3k|	}
_ZNK4pcpp21SSLClientHelloMessage19getHandshakeVersionEv:
 1458|  14.5k|	{
 1459|  14.5k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint16_t))
  ------------------
  |  Branch (1459:7): [True: 438, False: 14.1k]
  ------------------
 1460|    438|			return SSLVersion(0);
 1461|       |
 1462|  14.1k|		uint16_t handshakeVersion = be16toh(getClientHelloHeader()->handshakeVersion);
 1463|  14.1k|		return SSLVersion(handshakeVersion);
 1464|  14.5k|	}
_ZNK4pcpp21SSLClientHelloMessage18getSessionIDLengthEv:
 1467|  63.8M|	{
 1468|  63.8M|		if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
  ------------------
  |  Branch (1468:7): [True: 13.9k, False: 63.8M]
  ------------------
 1469|  13.9k|			return 0;
 1470|       |
 1471|  63.8M|		uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
 1472|  63.8M|		if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
  ------------------
  |  Branch (1472:7): [True: 1.75k, False: 63.8M]
  ------------------
 1473|  1.75k|			return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
 1474|       |
 1475|  63.8M|		return val;
 1476|  63.8M|	}
_ZNK4pcpp21SSLClientHelloMessage12getSessionIDEv:
 1479|  7.29k|	{
 1480|  7.29k|		if (getSessionIDLength() > 0)
  ------------------
  |  Branch (1480:7): [True: 1.94k, False: 5.34k]
  ------------------
 1481|  1.94k|			return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
 1482|  5.34k|		else
 1483|  5.34k|			return nullptr;
 1484|  7.29k|	}
_ZNK4pcpp21SSLClientHelloMessage19getCipherSuiteCountEv:
 1487|  36.4M|	{
 1488|  36.4M|		size_t cipherSuiteOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
 1489|  36.4M|		if (cipherSuiteOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1489:7): [True: 8.13k, False: 36.4M]
  ------------------
 1490|  8.13k|			return 0;
 1491|       |
 1492|  36.4M|		uint16_t cipherSuiteLen = *(uint16_t*)(m_Data + cipherSuiteOffset);
 1493|       |		return be16toh(cipherSuiteLen) / 2;
 1494|  36.4M|	}
_ZNK4pcpp21SSLClientHelloMessage14getCipherSuiteEi:
 1497|  9.09M|	{
 1498|  9.09M|		bool isValid;
 1499|  9.09M|		uint16_t id = getCipherSuiteID(index, isValid);
 1500|  9.09M|		return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
  ------------------
  |  Branch (1500:11): [True: 122k, False: 8.97M]
  ------------------
 1501|  9.09M|	}
_ZNK4pcpp21SSLClientHelloMessage16getCipherSuiteIDEiRb:
 1504|  27.2M|	{
 1505|  27.2M|		if (index < 0 || index >= getCipherSuiteCount())
  ------------------
  |  Branch (1505:7): [True: 0, False: 27.2M]
  |  Branch (1505:20): [True: 0, False: 27.2M]
  ------------------
 1506|      0|		{
 1507|      0|			isValid = false;
 1508|      0|			return 0;
 1509|      0|		}
 1510|       |
 1511|  27.2M|		size_t cipherSuiteStartOffset =
 1512|  27.2M|		    sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
 1513|  27.2M|		if (cipherSuiteStartOffset + sizeof(uint16_t) * (index + 1) > m_DataLen)
  ------------------
  |  Branch (1513:7): [True: 26.9M, False: 366k]
  ------------------
 1514|  26.9M|		{
 1515|  26.9M|			isValid = false;
 1516|  26.9M|			return 0;
 1517|  26.9M|		}
 1518|       |
 1519|   366k|		isValid = true;
 1520|   366k|		uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
 1521|       |		return be16toh(*(cipherSuiteStartPos + index));
 1522|  27.2M|	}
_ZNK4pcpp21SSLClientHelloMessage26getCompressionMethodsValueEv:
 1525|  7.29k|	{
 1526|  7.29k|		size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1527|  7.29k|		                sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() + sizeof(uint8_t);
 1528|  7.29k|		if (offset + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (1528:7): [True: 1.64k, False: 5.65k]
  ------------------
 1529|  1.64k|			return 0xff;
 1530|       |
 1531|  5.65k|		uint8_t* pos = m_Data + offset;
 1532|  5.65k|		return *pos;
 1533|  7.29k|	}
_ZNK4pcpp21SSLClientHelloMessage17getExtensionCountEv:
 1536|  7.29k|	{
 1537|  7.29k|		return m_ExtensionList.size();
 1538|  7.29k|	}
_ZNK4pcpp21SSLClientHelloMessage19getExtensionsLengthEv:
 1541|  30.3k|	{
 1542|  30.3k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1543|  30.3k|		                               sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() +
 1544|  30.3k|		                               2 * sizeof(uint8_t);
 1545|  30.3k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1545:7): [True: 0, False: 30.3k]
  ------------------
 1546|      0|			return 0;
 1547|       |
 1548|  30.3k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1549|       |		return be16toh(*reinterpret_cast<uint16_t*>(extensionLengthPos));
 1550|  30.3k|	}
_ZNK4pcpp21SSLClientHelloMessage12getExtensionEi:
 1553|  47.0k|	{
 1554|  47.0k|		return const_cast<SSLExtension*>(m_ExtensionList.at(index));
 1555|  47.0k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeEt:
 1558|  7.29k|	{
 1559|  7.29k|		size_t vecSize = m_ExtensionList.size();
 1560|  13.5k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1560:22): [True: 11.2k, False: 2.25k]
  ------------------
 1561|  11.2k|		{
 1562|  11.2k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1563|  11.2k|			if (curElem->getTypeAsInt() == type)
  ------------------
  |  Branch (1563:8): [True: 5.04k, False: 6.22k]
  ------------------
 1564|  5.04k|				return curElem;
 1565|  11.2k|		}
 1566|       |
 1567|  2.25k|		return nullptr;
 1568|  7.29k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeENS_16SSLExtensionTypeE:
 1571|  7.29k|	{
 1572|  7.29k|		size_t vecSize = m_ExtensionList.size();
 1573|  13.5k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1573:22): [True: 11.2k, False: 2.25k]
  ------------------
 1574|  11.2k|		{
 1575|  11.2k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1576|  11.2k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1576:8): [True: 5.04k, False: 6.22k]
  ------------------
 1577|  5.04k|				return curElem;
 1578|  11.2k|		}
 1579|       |
 1580|  2.25k|		return nullptr;
 1581|  7.29k|	}
_ZNK4pcpp21SSLClientHelloMessage22generateTLSFingerprintEv:
 1584|  7.29k|	{
 1585|  7.29k|		SSLClientHelloMessage::ClientHelloTLSFingerprint result;
 1586|       |
 1587|       |		// extract version
 1588|  7.29k|		result.tlsVersion = getHandshakeVersion().asUInt();
 1589|       |
 1590|       |		// extract cipher suites
 1591|  7.29k|		int cipherSuiteCount = getCipherSuiteCount();
 1592|  9.10M|		for (int i = 0; i < cipherSuiteCount; i++)
  ------------------
  |  Branch (1592:19): [True: 9.09M, False: 7.29k]
  ------------------
 1593|  9.09M|		{
 1594|  9.09M|			bool isValid = false;
 1595|  9.09M|			uint16_t cipherSuiteID = getCipherSuiteID(i, isValid);
 1596|  9.09M|			if (isValid && GreaseSet.find(cipherSuiteID) == GreaseSet.end())
  ------------------
  |  Branch (1596:8): [True: 122k, False: 8.97M]
  |  Branch (1596:8): [True: 120k, False: 8.97M]
  |  Branch (1596:19): [True: 120k, False: 1.59k]
  ------------------
 1597|   120k|				result.cipherSuites.push_back(cipherSuiteID);
 1598|  9.09M|		}
 1599|       |
 1600|       |		// extract extensions
 1601|  7.29k|		int extensionCount = getExtensionCount();
 1602|  54.3k|		for (int i = 0; i < extensionCount; i++)
  ------------------
  |  Branch (1602:19): [True: 47.0k, False: 7.29k]
  ------------------
 1603|  47.0k|		{
 1604|  47.0k|			uint16_t extensionType = getExtension(i)->getTypeAsInt();
 1605|  47.0k|			if (GreaseSet.find(extensionType) != GreaseSet.end())
  ------------------
  |  Branch (1605:8): [True: 1.07k, False: 45.9k]
  ------------------
 1606|  1.07k|				continue;
 1607|       |
 1608|  45.9k|			result.extensions.push_back(extensionType);
 1609|  45.9k|		}
 1610|       |
 1611|       |		// extract supported groups
 1612|  7.29k|		TLSSupportedGroupsExtension* supportedGroupsExt = getExtensionOfType<TLSSupportedGroupsExtension>();
 1613|  7.29k|		if (supportedGroupsExt != nullptr)
  ------------------
  |  Branch (1613:7): [True: 4.36k, False: 2.92k]
  ------------------
 1614|  4.36k|		{
 1615|  4.36k|			std::vector<uint16_t> supportedGroups = supportedGroupsExt->getSupportedGroups();
 1616|  4.36k|			for (const auto& iter : supportedGroups)
  ------------------
  |  Branch (1616:26): [True: 18.1k, False: 4.36k]
  ------------------
 1617|  18.1k|				if (GreaseSet.find(iter) == GreaseSet.end())
  ------------------
  |  Branch (1617:9): [True: 17.7k, False: 385]
  ------------------
 1618|  17.7k|					result.supportedGroups.push_back(iter);
 1619|  4.36k|		}
 1620|       |
 1621|       |		// extract EC point formats
 1622|  7.29k|		TLSECPointFormatExtension* ecPointFormatExt = getExtensionOfType<TLSECPointFormatExtension>();
 1623|  7.29k|		if (ecPointFormatExt != nullptr)
  ------------------
  |  Branch (1623:7): [True: 2.04k, False: 5.25k]
  ------------------
 1624|  2.04k|		{
 1625|  2.04k|			result.ecPointFormats = ecPointFormatExt->getECPointFormatList();
 1626|  2.04k|		}
 1627|       |
 1628|  7.29k|		return result;
 1629|  7.29k|	}
_ZNK4pcpp21SSLClientHelloMessage8toStringEv:
 1632|  14.7k|	{
 1633|  14.7k|		return "Client Hello message";
 1634|  14.7k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint8toStringEv:
 1641|  7.29k|	{
 1642|  7.29k|		std::stringstream tlsFingerprint;
 1643|       |
 1644|       |		// add version
 1645|  7.29k|		tlsFingerprint << tlsVersion << ",";
 1646|       |
 1647|       |		// add cipher suites
 1648|  7.29k|		bool firstCipher = true;
 1649|  7.29k|		for (const auto& iter : cipherSuites)
  ------------------
  |  Branch (1649:25): [True: 120k, False: 7.29k]
  ------------------
 1650|   120k|		{
 1651|   120k|			tlsFingerprint << (firstCipher ? "" : "-") << iter;
  ------------------
  |  Branch (1651:23): [True: 6.66k, False: 113k]
  ------------------
 1652|   120k|			firstCipher = false;
 1653|   120k|		}
 1654|  7.29k|		tlsFingerprint << ",";
 1655|       |
 1656|       |		// add extensions
 1657|  7.29k|		bool firstExtension = true;
 1658|  7.29k|		for (const auto& iter : extensions)
  ------------------
  |  Branch (1658:25): [True: 45.9k, False: 7.29k]
  ------------------
 1659|  45.9k|		{
 1660|  45.9k|			tlsFingerprint << (firstExtension ? "" : "-") << iter;
  ------------------
  |  Branch (1660:23): [True: 5.55k, False: 40.3k]
  ------------------
 1661|  45.9k|			firstExtension = false;
 1662|  45.9k|		}
 1663|  7.29k|		tlsFingerprint << ",";
 1664|       |
 1665|       |		// add supported groups
 1666|  7.29k|		bool firstGroup = true;
 1667|  7.29k|		for (const auto& iter : supportedGroups)
  ------------------
  |  Branch (1667:25): [True: 17.7k, False: 7.29k]
  ------------------
 1668|  17.7k|		{
 1669|  17.7k|			tlsFingerprint << (firstGroup ? "" : "-") << iter;
  ------------------
  |  Branch (1669:23): [True: 4.18k, False: 13.5k]
  ------------------
 1670|  17.7k|			firstGroup = false;
 1671|  17.7k|		}
 1672|  7.29k|		tlsFingerprint << ",";
 1673|       |
 1674|       |		// add EC point formats
 1675|  7.29k|		bool firstPointFormat = true;
 1676|  7.29k|		for (auto iter : ecPointFormats)
  ------------------
  |  Branch (1676:18): [True: 2.77k, False: 7.29k]
  ------------------
 1677|  2.77k|		{
 1678|  2.77k|			tlsFingerprint << (firstPointFormat ? "" : "-") << (int)iter;
  ------------------
  |  Branch (1678:23): [True: 2.02k, False: 750]
  ------------------
 1679|  2.77k|			firstPointFormat = false;
 1680|  2.77k|		}
 1681|       |
 1682|  7.29k|		return tlsFingerprint.str();
 1683|  7.29k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint5toMD5Ev:
 1686|  7.29k|	{
 1687|  7.29k|		return toStringAndMD5().second;
 1688|  7.29k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint14toStringAndMD5Ev:
 1691|  7.29k|	{
 1692|  7.29k|		std::string str = toString();
 1693|  7.29k|		MD5 md5;
 1694|  7.29k|		return std::pair<std::string, std::string>(str, md5(str));
 1695|  7.29k|	}
_ZN4pcpp21SSLServerHelloMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1702|  40.1k|	    : SSLHandshakeMessage(data, dataLen, container)
 1703|  40.1k|	{
 1704|  40.1k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1705|  40.1k|		                               sizeof(uint16_t) + sizeof(uint8_t);
 1706|  40.1k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1706:7): [True: 13.1k, False: 26.9k]
  ------------------
 1707|  13.1k|			return;
 1708|       |
 1709|  26.9k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1710|  26.9k|		uint16_t extensionLength = getExtensionsLength();
 1711|  26.9k|		uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
 1712|  26.9k|		size_t messageLen = getMessageLength();
 1713|       |
 1714|  26.9k|		uint8_t* extensionIt = extensionPos;
 1715|  26.9k|		uint8_t* extensionEndIt = extensionPos + extensionLength;
 1716|       |
 1717|  26.9k|		uint8_t* endOfMessageIt = m_Data + messageLen;
 1718|  26.9k|		if (endOfMessageIt < extensionEndIt)
  ------------------
  |  Branch (1718:7): [True: 17.4k, False: 9.47k]
  ------------------
 1719|  17.4k|		{
 1720|  17.4k|			extensionEndIt = endOfMessageIt;
 1721|  17.4k|		}
 1722|       |
 1723|  26.9k|		constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
 1724|  70.4k|		while (extensionIt < extensionEndIt &&
  ------------------
  |  Branch (1724:10): [True: 44.9k, False: 25.5k]
  ------------------
 1725|  44.9k|		       std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
  ------------------
  |  Branch (1725:10): [True: 44.8k, False: 123]
  ------------------
 1726|  44.8k|		{
 1727|  44.8k|			std::unique_ptr<SSLExtension> newExt;
 1728|       |
 1729|  44.8k|			uint16_t sslExtType = be16toh(*reinterpret_cast<uint16_t*>(extensionIt));
 1730|  44.8k|			size_t availableDataLen = std::distance(extensionIt, extensionEndIt);
 1731|       |
 1732|  44.8k|			switch (sslExtType)
 1733|  44.8k|			{
 1734|  16.1k|			case SSL_EXT_SERVER_NAME:
  ------------------
  |  Branch (1734:4): [True: 16.1k, False: 28.6k]
  ------------------
 1735|  16.1k|			{
 1736|  16.1k|				newExt =
 1737|  16.1k|				    SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
 1738|  16.1k|				break;
 1739|      0|			}
 1740|  5.27k|			case SSL_EXT_SUPPORTED_VERSIONS:
  ------------------
  |  Branch (1740:4): [True: 5.27k, False: 39.5k]
  ------------------
 1741|  5.27k|			{
 1742|  5.27k|				newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
 1743|  5.27k|				break;
 1744|      0|			}
 1745|      0|			case SSL_EXT_SUPPORTED_GROUPS:
  ------------------
  |  Branch (1745:4): [True: 0, False: 44.8k]
  ------------------
 1746|      0|			{
 1747|      0|				newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
 1748|      0|				break;
 1749|      0|			}
 1750|  3.03k|			case SSL_EXT_EC_POINT_FORMATS:
  ------------------
  |  Branch (1750:4): [True: 3.03k, False: 41.8k]
  ------------------
 1751|  3.03k|			{
 1752|  3.03k|				newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
 1753|  3.03k|				break;
 1754|      0|			}
 1755|  20.3k|			default:
  ------------------
  |  Branch (1755:4): [True: 20.3k, False: 24.4k]
  ------------------
 1756|  20.3k|			{
 1757|  20.3k|				newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
 1758|  20.3k|			}
 1759|  44.8k|			}
 1760|       |
 1761|  44.8k|			if (newExt == nullptr)
  ------------------
  |  Branch (1761:8): [True: 1.29k, False: 43.5k]
  ------------------
 1762|  1.29k|			{
 1763|  1.29k|				PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
  ------------------
  |  |  426|  1.29k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|  1.29k|	do                                                                                                                 \
  |  |  |  |  414|  1.29k|	{                                                                                                                  \
  |  |  |  |  415|  1.29k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  1.29k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.29k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 1.29k]
  |  |  |  |  ------------------
  |  |  |  |  417|  1.29k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|  1.29k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 1.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1764|  1.29k|				                                                        << " skipping remaining extensions.");
 1765|  1.29k|				break;
 1766|  1.29k|			}
 1767|       |
 1768|       |			// Total length can be zero only if getLength() == 0xfffc which is way too large
 1769|       |			// and means that this extension (and packet) are malformed
 1770|  43.5k|			size_t newExtTotalLen = newExt->getTotalLength();
 1771|  43.5k|			if (newExtTotalLen == 0)
  ------------------
  |  Branch (1771:8): [True: 0, False: 43.5k]
  ------------------
 1772|      0|			{
 1773|      0|				break;
 1774|      0|			}
 1775|       |
 1776|  43.5k|			m_ExtensionList.pushBack(std::move(newExt));
 1777|  43.5k|			std::advance(extensionIt, newExtTotalLen);
 1778|  43.5k|		}
 1779|  26.9k|	}
_ZNK4pcpp21SSLServerHelloMessage19getHandshakeVersionEv:
 1782|  8.70k|	{
 1783|  8.70k|		SSLSupportedVersionsExtension* supportedVersionsExt = getExtensionOfType<SSLSupportedVersionsExtension>();
 1784|  8.70k|		if (supportedVersionsExt != nullptr)
  ------------------
  |  Branch (1784:7): [True: 1.45k, False: 7.25k]
  ------------------
 1785|  1.45k|		{
 1786|  1.45k|			std::vector<SSLVersion> supportedVersions = supportedVersionsExt->getSupportedVersions();
 1787|  1.45k|			if (supportedVersions.size() == 1)
  ------------------
  |  Branch (1787:8): [True: 1.42k, False: 28]
  ------------------
 1788|  1.42k|				return supportedVersions[0];
 1789|  1.45k|		}
 1790|       |
 1791|  7.28k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint16_t))
  ------------------
  |  Branch (1791:7): [True: 8, False: 7.27k]
  ------------------
 1792|      8|			return SSLVersion(0);
 1793|       |
 1794|  7.27k|		uint16_t handshakeVersion = be16toh(getServerHelloHeader()->handshakeVersion);
 1795|  7.27k|		return SSLVersion(handshakeVersion);
 1796|  7.28k|	}
_ZNK4pcpp21SSLServerHelloMessage18getSessionIDLengthEv:
 1798|  84.4k|	{
 1799|  84.4k|		if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
  ------------------
  |  Branch (1799:7): [True: 4.95k, False: 79.5k]
  ------------------
 1800|  4.95k|			return 0;
 1801|       |
 1802|  79.5k|		uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
 1803|  79.5k|		if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
  ------------------
  |  Branch (1803:7): [True: 11.5k, False: 67.9k]
  ------------------
 1804|  11.5k|			return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
 1805|       |
 1806|  67.9k|		return val;
 1807|  79.5k|	}
_ZNK4pcpp21SSLServerHelloMessage12getSessionIDEv:
 1810|  4.35k|	{
 1811|  4.35k|		if (getSessionIDLength() > 0)
  ------------------
  |  Branch (1811:7): [True: 3.80k, False: 548]
  ------------------
 1812|  3.80k|			return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
 1813|    548|		else
 1814|    548|			return nullptr;
 1815|  4.35k|	}
_ZNK4pcpp21SSLServerHelloMessage14getCipherSuiteEv:
 1818|  4.35k|	{
 1819|  4.35k|		bool isValid;
 1820|  4.35k|		uint16_t id = getCipherSuiteID(isValid);
 1821|  4.35k|		return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
  ------------------
  |  Branch (1821:11): [True: 3.30k, False: 1.05k]
  ------------------
 1822|  4.35k|	}
_ZNK4pcpp21SSLServerHelloMessage16getCipherSuiteIDERb:
 1825|  8.70k|	{
 1826|  8.70k|		size_t cipherSuiteStartOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
 1827|  8.70k|		if (cipherSuiteStartOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1827:7): [True: 2.10k, False: 6.60k]
  ------------------
 1828|  2.10k|		{
 1829|  2.10k|			isValid = false;
 1830|  2.10k|			return 0;
 1831|  2.10k|		}
 1832|       |
 1833|  6.60k|		isValid = true;
 1834|  6.60k|		uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
 1835|       |		return be16toh(*(cipherSuiteStartPos));
 1836|  8.70k|	}
_ZNK4pcpp21SSLServerHelloMessage26getCompressionMethodsValueEv:
 1839|  4.35k|	{
 1840|  4.35k|		size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
 1841|  4.35k|		if (offset + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (1841:7): [True: 1.05k, False: 3.29k]
  ------------------
 1842|  1.05k|			return 0xff;
 1843|       |
 1844|  3.29k|		uint8_t* pos = m_Data + offset;
 1845|  3.29k|		return *pos;
 1846|  4.35k|	}
_ZNK4pcpp21SSLServerHelloMessage17getExtensionCountEv:
 1849|  4.35k|	{
 1850|  4.35k|		return m_ExtensionList.size();
 1851|  4.35k|	}
_ZNK4pcpp21SSLServerHelloMessage19getExtensionsLengthEv:
 1854|  26.9k|	{
 1855|  26.9k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1856|  26.9k|		                               sizeof(uint16_t) + sizeof(uint8_t);
 1857|  26.9k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1857:7): [True: 0, False: 26.9k]
  ------------------
 1858|      0|			return 0;
 1859|       |
 1860|  26.9k|		uint16_t* extensionLengthPos = (uint16_t*)(m_Data + extensionLengthOffset);
 1861|       |		return be16toh(*extensionLengthPos);
 1862|  26.9k|	}
_ZNK4pcpp21SSLServerHelloMessage12getExtensionEi:
 1865|  7.43k|	{
 1866|  7.43k|		if (index < 0 || index >= (int)m_ExtensionList.size())
  ------------------
  |  Branch (1866:7): [True: 0, False: 7.43k]
  |  Branch (1866:20): [True: 0, False: 7.43k]
  ------------------
 1867|      0|			return nullptr;
 1868|       |
 1869|  7.43k|		return const_cast<SSLExtension*>(m_ExtensionList.at(index));
 1870|  7.43k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeEt:
 1873|  4.35k|	{
 1874|  4.35k|		size_t vecSize = m_ExtensionList.size();
 1875|  6.76k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1875:22): [True: 2.95k, False: 3.80k]
  ------------------
 1876|  2.95k|		{
 1877|  2.95k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1878|  2.95k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1878:8): [True: 545, False: 2.41k]
  ------------------
 1879|    545|				return curElem;
 1880|  2.95k|		}
 1881|       |
 1882|  3.80k|		return nullptr;
 1883|  4.35k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeENS_16SSLExtensionTypeE:
 1886|  4.35k|	{
 1887|  4.35k|		size_t vecSize = m_ExtensionList.size();
 1888|  6.76k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1888:22): [True: 2.95k, False: 3.80k]
  ------------------
 1889|  2.95k|		{
 1890|  2.95k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1891|  2.95k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1891:8): [True: 545, False: 2.41k]
  ------------------
 1892|    545|				return curElem;
 1893|  2.95k|		}
 1894|       |
 1895|  3.80k|		return nullptr;
 1896|  4.35k|	}
_ZNK4pcpp21SSLServerHelloMessage22generateTLSFingerprintEv:
 1899|  4.35k|	{
 1900|  4.35k|		SSLServerHelloMessage::ServerHelloTLSFingerprint result;
 1901|       |
 1902|       |		// extract version
 1903|  4.35k|		result.tlsVersion = getHandshakeVersion().asUInt();
 1904|       |
 1905|       |		// extract cipher suite
 1906|  4.35k|		bool isValid;
 1907|  4.35k|		uint16_t cipherSuite = getCipherSuiteID(isValid);
 1908|  4.35k|		result.cipherSuite = (isValid ? cipherSuite : 0);
  ------------------
  |  Branch (1908:25): [True: 3.30k, False: 1.05k]
  ------------------
 1909|       |
 1910|       |		// extract extensions
 1911|  4.35k|		int extensionCount = getExtensionCount();
 1912|  11.7k|		for (int i = 0; i < extensionCount; i++)
  ------------------
  |  Branch (1912:19): [True: 7.43k, False: 4.35k]
  ------------------
 1913|  7.43k|		{
 1914|  7.43k|			uint16_t extensionType = getExtension(i)->getTypeAsInt();
 1915|  7.43k|			result.extensions.push_back(extensionType);
 1916|  7.43k|		}
 1917|       |
 1918|  4.35k|		return result;
 1919|  4.35k|	}
_ZNK4pcpp21SSLServerHelloMessage8toStringEv:
 1922|  8.98k|	{
 1923|  8.98k|		return "Server Hello message";
 1924|  8.98k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint8toStringEv:
 1931|  4.35k|	{
 1932|  4.35k|		std::stringstream tlsFingerprint;
 1933|       |
 1934|       |		// add version and cipher suite
 1935|  4.35k|		tlsFingerprint << tlsVersion << "," << cipherSuite << ",";
 1936|       |
 1937|       |		// add extensions
 1938|  4.35k|		bool firstExtension = true;
 1939|  4.35k|		for (const auto& iter : extensions)
  ------------------
  |  Branch (1939:25): [True: 7.43k, False: 4.35k]
  ------------------
 1940|  7.43k|		{
 1941|  7.43k|			tlsFingerprint << (firstExtension ? "" : "-") << iter;
  ------------------
  |  Branch (1941:23): [True: 1.55k, False: 5.87k]
  ------------------
 1942|  7.43k|			firstExtension = false;
 1943|  7.43k|		}
 1944|       |
 1945|  4.35k|		return tlsFingerprint.str();
 1946|  4.35k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint5toMD5Ev:
 1949|  4.35k|	{
 1950|  4.35k|		return toStringAndMD5().second;
 1951|  4.35k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint14toStringAndMD5Ev:
 1954|  4.35k|	{
 1955|  4.35k|		std::string str = toString();
 1956|  4.35k|		MD5 md5;
 1957|  4.35k|		return std::pair<std::string, std::string>(str, md5(str));
 1958|  4.35k|	}
_ZN4pcpp21SSLCertificateMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1965|  3.16k|	    : SSLHandshakeMessage(data, dataLen, container)
 1966|  3.16k|	{
 1967|  3.16k|		if (dataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t) * 3)  // certificates length (3B)
  ------------------
  |  Branch (1967:7): [True: 80, False: 3.08k]
  ------------------
 1968|     80|			return;
 1969|       |
 1970|  3.08k|		size_t messageLen = getMessageLength();
 1971|       |		// read certificates length
 1972|       |		// TODO: certificates length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs
 1973|  3.08k|		uint8_t* curPos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);
 1974|  3.08k|		uint16_t certificatesLength = be16toh(*reinterpret_cast<uint16_t*>(curPos));
 1975|  3.08k|		if (certificatesLength == 0)
  ------------------
  |  Branch (1975:7): [True: 0, False: 3.08k]
  ------------------
 1976|      0|			return;
 1977|       |
 1978|       |		// advance to position of first certificate
 1979|  3.08k|		curPos += sizeof(uint16_t);
 1980|       |
 1981|  6.39k|		while (true)
  ------------------
  |  Branch (1981:10): [True: 6.39k, Folded]
  ------------------
 1982|  6.39k|		{
 1983|       |			// try to read certificate length (3B)
 1984|       |			// TODO: certificate length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs
 1985|  6.39k|			if (curPos + 3 * sizeof(uint8_t) - data > (int)messageLen)
  ------------------
  |  Branch (1985:8): [True: 3.08k, False: 3.31k]
  ------------------
 1986|  3.08k|				break;
 1987|       |
 1988|       |			// read certificate length
 1989|  3.31k|			curPos += sizeof(uint8_t);
 1990|  3.31k|			uint16_t certificateLength = be16toh(*reinterpret_cast<uint16_t*>(curPos));
 1991|       |
 1992|       |			// advance to start position of certificate
 1993|  3.31k|			curPos += sizeof(uint16_t);
 1994|       |
 1995|       |			// if packet doesn't contain the full certificate, read only what you got from current position till the
 1996|       |			// end of the packet
 1997|  3.31k|			bool certificateFull = true;
 1998|  3.31k|			if (curPos - data + certificateLength > (int)messageLen)
  ------------------
  |  Branch (1998:8): [True: 3.08k, False: 234]
  ------------------
 1999|  3.08k|			{
 2000|  3.08k|				certificateLength = messageLen - (curPos - data);
 2001|  3.08k|				certificateFull = false;
 2002|  3.08k|			}
 2003|       |
 2004|  3.31k|			PCPP_LOG_DEBUG("Parsing certificate: pos=" << (int)(curPos - data) << "; len=" << certificateLength);
  ------------------
  |  |  426|  3.31k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|  3.31k|	do                                                                                                                 \
  |  |  |  |  414|  3.31k|	{                                                                                                                  \
  |  |  |  |  415|  3.31k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  3.31k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.31k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 3.31k]
  |  |  |  |  ------------------
  |  |  |  |  417|  3.31k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|  3.31k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 3.31k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2005|  3.31k|			SSLx509Certificate* newCert = new SSLx509Certificate(curPos, certificateLength, certificateFull);
 2006|  3.31k|			m_CertificateList.pushBack(newCert);
 2007|       |
 2008|  3.31k|			curPos += certificateLength;
 2009|  3.31k|		}
 2010|  3.08k|	}
_ZNK4pcpp21SSLCertificateMessage8toStringEv:
 2013|  1.06k|	{
 2014|  1.06k|		return "Certificate message";
 2015|  1.06k|	}
_ZNK4pcpp22SSLHelloRequestMessage8toStringEv:
 2039|  1.71k|	{
 2040|  1.71k|		return "Hello Request message";
 2041|  1.71k|	}
_ZNK4pcpp25SSLServerHelloDoneMessage8toStringEv:
 2048|  2.34k|	{
 2049|  2.34k|		return "Server Hello Done message";
 2050|  2.34k|	}
_ZNK4pcpp27SSLServerKeyExchangeMessage8toStringEv:
 2074|      8|	{
 2075|      8|		return "Server Key Exchange message";
 2076|      8|	}
_ZNK4pcpp27SSLClientKeyExchangeMessage8toStringEv:
 2100|  1.36k|	{
 2101|  1.36k|		return "Client Key Exchange message";
 2102|  1.36k|	}
_ZN4pcpp28SSLCertificateRequestMessageC2EPhmPNS_17SSLHandshakeLayerE:
 2110|    855|	    : SSLHandshakeMessage(data, dataLen, container)
 2111|    855|	{
 2112|    855|		size_t minMessageSize = sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);  // certificate types count (1B)
 2113|    855|		if (dataLen < minMessageSize)
  ------------------
  |  Branch (2113:7): [True: 0, False: 855]
  ------------------
 2114|      0|			return;
 2115|       |
 2116|    855|		size_t messageLen = getMessageLength();
 2117|    855|		if (messageLen < minMessageSize)
  ------------------
  |  Branch (2117:7): [True: 0, False: 855]
  ------------------
 2118|      0|			return;
 2119|       |
 2120|    855|		uint8_t certificateTypesCount = *(uint8_t*)(data + sizeof(ssl_tls_handshake_layer));
 2121|       |
 2122|    855|		if (certificateTypesCount > messageLen - minMessageSize)
  ------------------
  |  Branch (2122:7): [True: 0, False: 855]
  ------------------
 2123|      0|			certificateTypesCount = messageLen - minMessageSize;
 2124|       |
 2125|    855|		uint8_t* pos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);
 2126|   112k|		for (uint8_t i = 0; i < certificateTypesCount; i++)
  ------------------
  |  Branch (2126:23): [True: 111k, False: 855]
  ------------------
 2127|   111k|		{
 2128|   111k|			uint8_t certType = *(uint8_t*)(pos + i);
 2129|   111k|			if (certType == 0 || (certType > 6 && certType < 20) || (certType > 20 && certType < 64) || certType > 64)
  ------------------
  |  Branch (2129:8): [True: 53.9k, False: 57.2k]
  |  Branch (2129:26): [True: 32.4k, False: 24.7k]
  |  Branch (2129:42): [True: 5.28k, False: 27.1k]
  |  Branch (2129:61): [True: 27.1k, False: 24.7k]
  |  Branch (2129:78): [True: 6.25k, False: 20.9k]
  |  Branch (2129:96): [True: 20.9k, False: 24.7k]
  ------------------
 2130|  86.3k|				m_ClientCertificateTypes.push_back(SSL_CCT_UNKNOWN);
 2131|  24.7k|			else
 2132|  24.7k|				m_ClientCertificateTypes.push_back(static_cast<SSLClientCertificateType>(certType));
 2133|   111k|		}
 2134|    855|	}
_ZNK4pcpp28SSLCertificateRequestMessage8toStringEv:
 2170|     90|	{
 2171|     90|		return "Certificate Request message";
 2172|     90|	}
_ZNK4pcpp18SSLFinishedMessage8toStringEv:
 2222|    102|	{
 2223|    102|		return "Finished message";
 2224|    102|	}
_ZNK4pcpp26SSLNewSessionTicketMessage8toStringEv:
 2248|    160|	{
 2249|    160|		return "New Session Ticket message";
 2250|    160|	}
_ZNK4pcpp17SSLUnknownMessage16getMessageLengthEv:
 2264|  51.7k|	{
 2265|       |		// if message type is unknown, it may be some encrypted message so message length isn't necessarily written
 2266|       |		// in clear. So in this case assume message is in length of all remaining data
 2267|  51.7k|		return m_DataLen;
 2268|  51.7k|	}
_ZNK4pcpp17SSLUnknownMessage8toStringEv:
 2271|  5.87k|	{
 2272|  5.87k|		return "Unknown message";
 2273|  5.87k|	}
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|  7.29k|	{
  695|  7.29k|		unsigned h = SslHashInitialValue;
  696|   160k|		for (auto i = 0u; i < str.size(); ++i)
  ------------------
  |  Branch (696:21): [True: 153k, False: 7.29k]
  ------------------
  697|   153k|		{
  698|   153k|			h = (h * SslHashMultiplierA) ^ (str[i] * SslHashMultiplierB);
  699|   153k|		}
  700|  7.29k|		return h;
  701|  7.29k|	}

_ZN4pcpp8SSLLayer12IsSSLMessageEttPhmb:
   15|   579k|	{
   16|       |		// check the port map first
   17|   579k|		if (!ignorePorts && !isSSLPort(srcPort) && !isSSLPort(dstPort))
  ------------------
  |  Branch (17:7): [True: 429k, False: 150k]
  |  Branch (17:23): [True: 308k, False: 121k]
  |  Branch (17:46): [True: 206k, False: 101k]
  ------------------
   18|   206k|			return false;
   19|       |
   20|   372k|		if (dataLen < sizeof(ssl_tls_record_layer))
  ------------------
  |  Branch (20:7): [True: 2.99k, False: 369k]
  ------------------
   21|  2.99k|			return false;
   22|       |
   23|   369k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   24|       |
   25|       |		// there is no SSL message with length 0
   26|   369k|		if (recordLayer->length == 0)
  ------------------
  |  Branch (26:7): [True: 4.79k, False: 364k]
  ------------------
   27|  4.79k|			return false;
   28|       |
   29|   364k|		if (recordLayer->recordType < 20 || recordLayer->recordType > 23)
  ------------------
  |  Branch (29:7): [True: 5.22k, False: 359k]
  |  Branch (29:39): [True: 26.0k, False: 333k]
  ------------------
   30|  31.2k|			return false;
   31|       |
   32|   333k|		SSLVersion::SSLVersionEnum recordVersion = SSLVersion(be16toh(recordLayer->recordVersion)).asEnum(true);
   33|       |
   34|   333k|		if (recordVersion == SSLVersion::TLS1_3 || recordVersion == SSLVersion::TLS1_2 ||
  ------------------
  |  Branch (34:7): [True: 8.00k, False: 325k]
  |  Branch (34:46): [True: 275k, False: 49.6k]
  ------------------
   35|  49.6k|		    recordVersion == SSLVersion::TLS1_1 || recordVersion == SSLVersion::TLS1_0 ||
  ------------------
  |  Branch (35:7): [True: 45, False: 49.6k]
  |  Branch (35:46): [True: 38.8k, False: 10.7k]
  ------------------
   36|  10.7k|		    recordVersion == SSLVersion::SSL3)
  ------------------
  |  Branch (36:7): [True: 9.34k, False: 1.40k]
  ------------------
   37|   332k|			return true;
   38|  1.40k|		else
   39|  1.40k|			return false;
   40|   333k|	}
_ZN4pcpp8SSLLayer16createSSLMessageEPhmPNS_5LayerEPNS_6PacketE:
   43|   332k|	{
   44|   332k|		if (!canReinterpretAs<ssl_tls_record_layer>(data, dataLen))
  ------------------
  |  Branch (44:7): [True: 0, False: 332k]
  ------------------
   45|      0|		{
   46|      0|			return nullptr;
   47|      0|		}
   48|       |
   49|   332k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   50|   332k|		switch (recordLayer->recordType)
   51|   332k|		{
   52|   142k|		case SSL_HANDSHAKE:
  ------------------
  |  Branch (52:3): [True: 142k, False: 189k]
  ------------------
   53|   142k|		{
   54|   142k|			return new SSLHandshakeLayer(data, dataLen, prevLayer, packet);
   55|      0|		}
   56|       |
   57|  8.21k|		case SSL_ALERT:
  ------------------
  |  Branch (57:3): [True: 8.21k, False: 323k]
  ------------------
   58|  8.21k|		{
   59|  8.21k|			return new SSLAlertLayer(data, dataLen, prevLayer, packet);
   60|      0|		}
   61|       |
   62|  31.3k|		case SSL_CHANGE_CIPHER_SPEC:
  ------------------
  |  Branch (62:3): [True: 31.3k, False: 300k]
  ------------------
   63|  31.3k|		{
   64|  31.3k|			return new SSLChangeCipherSpecLayer(data, dataLen, prevLayer, packet);
   65|      0|		}
   66|       |
   67|   149k|		case SSL_APPLICATION_DATA:
  ------------------
  |  Branch (67:3): [True: 149k, False: 182k]
  ------------------
   68|   149k|		{
   69|   149k|			return new SSLApplicationDataLayer(data, dataLen, prevLayer, packet);
   70|      0|		}
   71|       |
   72|      0|		default:
  ------------------
  |  Branch (72:3): [True: 0, False: 332k]
  ------------------
   73|      0|			return nullptr;
   74|   332k|		}
   75|   332k|	}
_ZNK4pcpp8SSLLayer16getRecordVersionEv:
   78|  99.4k|	{
   79|       |		uint16_t recordVersion = be16toh(getRecordLayer()->recordVersion);
   80|  99.4k|		return SSLVersion(recordVersion);
   81|  99.4k|	}
_ZNK4pcpp8SSLLayer12getHeaderLenEv:
   89|   384k|	{
   90|   384k|		size_t len = sizeof(ssl_tls_record_layer) + be16toh(getRecordLayer()->length);
   91|   384k|		if (len > m_DataLen)
  ------------------
  |  Branch (91:7): [True: 42.0k, False: 342k]
  ------------------
   92|  42.0k|			return m_DataLen;
   93|   342k|		return len;
   94|   384k|	}
_ZN4pcpp8SSLLayer14parseNextLayerEv:
   97|   332k|	{
   98|   332k|		size_t headerLen = getHeaderLen();
   99|   332k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (99:7): [True: 181k, False: 150k]
  ------------------
  100|   181k|			return;
  101|       |
  102|   150k|		if (SSLLayer::IsSSLMessage(0, 0, m_Data + headerLen, m_DataLen - headerLen, true))
  ------------------
  |  Branch (102:7): [True: 143k, False: 6.87k]
  ------------------
  103|   143k|		{
  104|   143k|			constructNextLayerFromFactory(SSLLayer::createSSLMessage, m_Data + headerLen, m_DataLen - headerLen);
  105|   143k|		}
  106|   150k|	}
_ZNK4pcpp17SSLHandshakeLayer8toStringEv:
  113|  34.6k|	{
  114|  34.6k|		std::stringstream result;
  115|  34.6k|		result << getRecordVersion().toString(true) << " Layer, Handshake:";
  116|  71.0k|		for (size_t i = 0; i < m_MessageList.size(); i++)
  ------------------
  |  Branch (116:22): [True: 36.4k, False: 34.6k]
  ------------------
  117|  36.4k|		{
  118|  36.4k|			if (i == 0)
  ------------------
  |  Branch (118:8): [True: 27.0k, False: 9.38k]
  ------------------
  119|  27.0k|				result << " " << m_MessageList.at(i)->toString();
  120|  9.38k|			else
  121|  9.38k|				result << ", " << m_MessageList.at(i)->toString();
  122|  36.4k|		}
  123|  34.6k|		return result.str();
  124|  34.6k|	}
_ZN4pcpp17SSLHandshakeLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  127|   142k|	    : SSLLayer(data, dataLen, prevLayer, packet)
  128|   142k|	{
  129|   142k|		constexpr size_t baseTLSRecordSize = sizeof(ssl_tls_record_layer);
  130|   142k|		uint8_t* curPos = m_Data + baseTLSRecordSize;
  131|   142k|		size_t recordDataLen = be16toh(getRecordLayer()->length);
  132|       |
  133|   142k|		if (m_DataLen < recordDataLen + baseTLSRecordSize)
  ------------------
  |  Branch (133:7): [True: 27.4k, False: 115k]
  ------------------
  134|  27.4k|		{
  135|  27.4k|			recordDataLen = m_DataLen >= baseTLSRecordSize ? m_DataLen - baseTLSRecordSize : 0;
  ------------------
  |  Branch (135:20): [True: 27.4k, False: 0]
  ------------------
  136|  27.4k|		}
  137|       |
  138|   142k|		size_t curPosIndex = 0;
  139|   283k|		while (true)
  ------------------
  |  Branch (139:10): [True: 283k, Folded]
  ------------------
  140|   283k|		{
  141|   283k|			SSLHandshakeMessage* message =
  142|   283k|			    SSLHandshakeMessage::createHandshakeMessage(curPos, recordDataLen - curPosIndex, this);
  143|   283k|			if (message == nullptr)
  ------------------
  |  Branch (143:8): [True: 142k, False: 140k]
  ------------------
  144|   142k|				break;
  145|       |
  146|   140k|			m_MessageList.pushBack(message);
  147|   140k|			curPos += message->getMessageLength();
  148|   140k|			curPosIndex += message->getMessageLength();
  149|   140k|		}
  150|   142k|	}
_ZNK4pcpp24SSLChangeCipherSpecLayer8toStringEv:
  165|  8.12k|	{
  166|  8.12k|		std::stringstream result;
  167|  8.12k|		result << getRecordVersion().toString(true) << " Layer, Change Cipher Spec";
  168|  8.12k|		return result.str();
  169|  8.12k|	}
_ZNK4pcpp13SSLAlertLayer13getAlertLevelEv:
  176|  2.27k|	{
  177|       |		// the record is too short to hold the alert level
  178|  2.27k|		if (getHeaderLen() < sizeof(ssl_tls_record_layer) + sizeof(uint8_t))
  ------------------
  |  Branch (178:7): [True: 0, False: 2.27k]
  ------------------
  179|      0|			return SSL_ALERT_LEVEL_ENCRYPTED;
  180|       |
  181|  2.27k|		uint8_t* pos = m_Data + sizeof(ssl_tls_record_layer);
  182|  2.27k|		uint8_t alertLevel = *pos;
  183|  2.27k|		if (alertLevel == SSL_ALERT_LEVEL_WARNING || alertLevel == SSL_ALERT_LEVEL_FATAL)
  ------------------
  |  Branch (183:7): [True: 1.18k, False: 1.08k]
  |  Branch (183:48): [True: 340, False: 746]
  ------------------
  184|  1.52k|			return (SSLAlertLevel)alertLevel;
  185|    746|		else
  186|    746|			return SSL_ALERT_LEVEL_ENCRYPTED;
  187|  2.27k|	}
_ZNK4pcpp13SSLAlertLayer8toStringEv:
  235|  2.27k|	{
  236|  2.27k|		std::stringstream result;
  237|  2.27k|		result << getRecordVersion().toString(true) << " Layer, ";
  238|  2.27k|		if (getAlertLevel() == SSL_ALERT_LEVEL_ENCRYPTED)
  ------------------
  |  Branch (238:7): [True: 746, False: 1.52k]
  ------------------
  239|    746|			result << "Encrypted Alert";
  240|  1.52k|		else
  241|       |			// TODO: add alert level and description here
  242|  1.52k|			result << "Alert";
  243|  2.27k|		return result.str();
  244|  2.27k|	}
_ZNK4pcpp23SSLApplicationDataLayer8toStringEv:
  268|  54.4k|	{
  269|  54.4k|		return getRecordVersion().toString(true) + " Layer, Application Data";
  270|  54.4k|	}

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

_ZNK4pcpp25SingleCommandTextProtocol22getArgumentFieldOffsetEv:
   14|  28.4k|	{
   15|  28.4k|		size_t maxLen;
   16|  28.4k|		if (m_DataLen < MaxCommandLength)
  ------------------
  |  Branch (16:7): [True: 8.65k, False: 19.8k]
  ------------------
   17|  8.65k|			maxLen = m_DataLen;
   18|  19.8k|		else
   19|  19.8k|			maxLen = MaxCommandLength;
   20|       |
   21|       |		// To correctly detect multi-line packets with the option containing a space in
   22|       |		// the first MAX_CONTENT_LENGTH bytes, search the both of hyphen and space to take
   23|       |		// correct command delimiter
   24|       |
   25|  28.4k|		std::string field(reinterpret_cast<char*>(m_Data), maxLen);
   26|       |
   27|  28.4k|		size_t posHyphen = field.find_first_of(AsciiHyphen);
   28|  28.4k|		size_t posSpace = field.find_first_of(AsciiSpace);
   29|  28.4k|		size_t posCRLF = field.rfind("\r\n");
   30|       |
   31|       |		// No delimiter or packet end
   32|  28.4k|		if (posHyphen == std::string::npos && posSpace == std::string::npos && posCRLF == std::string::npos)
  ------------------
  |  Branch (32:7): [True: 26.5k, False: 1.93k]
  |  Branch (32:41): [True: 9.89k, False: 16.6k]
  |  Branch (32:74): [True: 4.05k, False: 5.83k]
  ------------------
   33|  4.05k|			return 0;
   34|       |		// Both hyphen and space found
   35|  24.4k|		else if (posHyphen != std::string::npos || posSpace != std::string::npos)
  ------------------
  |  Branch (35:12): [True: 1.93k, False: 22.4k]
  |  Branch (35:46): [True: 16.6k, False: 5.83k]
  ------------------
   36|  18.5k|			return std::min(posSpace, posHyphen);
   37|       |		// If nothing found but there is a CRLF it is a only command packet
   38|  5.83k|		else if (posCRLF != std::string::npos)
  ------------------
  |  Branch (38:12): [True: 5.83k, False: 0]
  ------------------
   39|  5.83k|			return posCRLF;
   40|       |
   41|      0|		return 0;
   42|  28.4k|	}
_ZNK4pcpp25SingleCommandTextProtocol18getCommandInternalEv:
  122|  20.8k|	{
  123|  20.8k|		size_t offset = getArgumentFieldOffset();
  124|       |
  125|       |		// If there is no option remove trailing newline characters
  126|  20.8k|		if (offset == (m_DataLen - 1) && offset > 1)
  ------------------
  |  Branch (126:7): [True: 0, False: 20.8k]
  |  Branch (126:36): [True: 0, False: 0]
  ------------------
  127|      0|			return std::string(reinterpret_cast<char*>(m_Data), offset - 1);
  128|  20.8k|		return std::string(reinterpret_cast<char*>(m_Data), offset);
  129|  20.8k|	}
_ZNK4pcpp25SingleCommandTextProtocol24getCommandOptionInternalEv:
  132|  7.60k|	{
  133|  7.60k|		size_t offset = getArgumentFieldOffset();
  134|       |
  135|       |		// We don't want to get delimiter so add 1 for start unless there is no command,
  136|  7.60k|		int addition = offset ? 1 : 0;
  ------------------
  |  Branch (136:18): [True: 4.47k, False: 3.13k]
  ------------------
  137|       |
  138|       |		// Check if command-only packet (-2 to account for len/position comparison and size of CRLF)
  139|  7.60k|		if (offset != (m_DataLen - 2))
  ------------------
  |  Branch (139:7): [True: 5.24k, False: 2.35k]
  ------------------
  140|  5.24k|		{
  141|       |			// We don't want to trailing newline characters so remove 2 and remove addition from start point
  142|  5.24k|			auto option =
  143|  5.24k|			    std::string(reinterpret_cast<char*>(&m_Data[offset + addition]), m_DataLen - (offset + 2 + addition));
  144|       |
  145|       |			// Remove XXX- and XXX<SP> since they are delimiters of the protocol where XXX is the usually status code
  146|       |			// Check RFC821 (SMTP) Section 3.3 and RFC959 (FTP) Section 4.2
  147|  5.24k|			auto code = getCommandInternal();
  148|  5.24k|			auto vDelim = std::vector<std::string>{ code + " ", code + "-" };
  149|       |
  150|  5.24k|			for (const auto& delim : vDelim)
  ------------------
  |  Branch (150:27): [True: 10.4k, False: 5.24k]
  ------------------
  151|  10.4k|			{
  152|  10.4k|				size_t pos = 0;
  153|  35.8k|				while ((pos = option.find(delim, pos)) != std::string::npos)
  ------------------
  |  Branch (153:12): [True: 25.3k, False: 10.4k]
  ------------------
  154|  25.3k|				{
  155|  25.3k|					option.replace(pos, delim.length(), "");
  156|  25.3k|				}
  157|  10.4k|			}
  158|  5.24k|			return option;
  159|  5.24k|		}
  160|  2.35k|		return "";
  161|  7.60k|	}
_ZN4pcpp25SingleCommandTextProtocol11isDataValidEPKhm:
  169|  38.9k|	{
  170|  38.9k|		if (data == nullptr || dataSize < MinPacketLength)
  ------------------
  |  Branch (170:7): [True: 0, False: 38.9k]
  |  Branch (170:26): [True: 132, False: 38.8k]
  ------------------
  171|    132|			return false;
  172|       |
  173|  38.8k|		std::string payload = std::string(reinterpret_cast<const char*>(data), dataSize);
  174|  38.8k|		return payload.rfind("\r\n") == dataSize - 2;
  175|  38.9k|	}

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

_ZN4pcpp9Sll2Layer24getLinkLayerAsMacAddressEv:
   47|  2.02k|	{
   48|  2.02k|		const uint8_t* data = getLinkLayerAddr();
   49|  2.02k|		uint8_t dataLen = getLinkLayerAddrLen();
   50|  2.02k|		if (data == nullptr || dataLen == 0 || dataLen > 8)
  ------------------
  |  Branch (50:7): [True: 0, False: 2.02k]
  |  Branch (50:26): [True: 233, False: 1.79k]
  |  Branch (50:42): [True: 1.62k, False: 168]
  ------------------
   51|  1.85k|		{
   52|  1.85k|			return MacAddress::Zero;
   53|  1.85k|		}
   54|    168|		return MacAddress(data);
   55|  2.02k|	}
_ZN4pcpp9Sll2Layer14parseNextLayerEv:
   65|  7.67k|	{
   66|  7.67k|		if (m_DataLen <= sizeof(sll2_header))
  ------------------
  |  Branch (66:7): [True: 388, False: 7.28k]
  ------------------
   67|    388|			return;
   68|       |
   69|  7.28k|		uint8_t* payload = m_Data + sizeof(sll2_header);
   70|  7.28k|		size_t payloadLen = m_DataLen - sizeof(sll2_header);
   71|       |
   72|  7.28k|		sll2_header* hdr = getSll2Header();
   73|  7.28k|		switch (be16toh(hdr->protocol_type))
   74|  7.28k|		{
   75|    386|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   33|    386|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (75:3): [True: 386, False: 6.89k]
  ------------------
   76|    386|		{
   77|    386|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   78|    386|			break;
   79|      0|		}
   80|      0|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   49|      0|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (80:3): [True: 0, False: 7.28k]
  ------------------
   81|      0|		{
   82|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   83|      0|			break;
   84|      0|		}
   85|      0|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   35|      0|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (85:3): [True: 0, False: 7.28k]
  ------------------
   86|      0|		{
   87|      0|			tryConstructNextLayerWithFallback<ArpLayer, PayloadLayer>(payload, payloadLen);
   88|      0|			break;
   89|      0|		}
   90|      0|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   45|      0|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (90:3): [True: 0, False: 7.28k]
  ------------------
   91|  4.42k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   63|  4.42k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (91:3): [True: 4.42k, False: 2.85k]
  ------------------
   92|  4.42k|		{
   93|  4.42k|			tryConstructNextLayerWithFallback<VlanLayer, PayloadLayer>(payload, payloadLen);
   94|  4.42k|			break;
   95|      0|		}
   96|    384|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   55|    384|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (96:3): [True: 384, False: 6.90k]
  ------------------
   97|    384|		{
   98|    384|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   99|    384|			break;
  100|      0|		}
  101|    322|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   53|    322|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (101:3): [True: 322, False: 6.96k]
  ------------------
  102|    322|		{
  103|    322|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
  104|    322|			break;
  105|      0|		}
  106|      0|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   57|      0|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (106:3): [True: 0, False: 7.28k]
  ------------------
  107|      0|		{
  108|      0|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
  109|      0|			break;
  110|      0|		}
  111|      0|		case Sll2ProtoTypeLLC:
  ------------------
  |  Branch (111:3): [True: 0, False: 7.28k]
  ------------------
  112|      0|		{
  113|      0|			tryConstructNextLayerWithFallback<LLCLayer, PayloadLayer>(payload, payloadLen);
  114|      0|			break;
  115|      0|		}
  116|  1.76k|		default:
  ------------------
  |  Branch (116:3): [True: 1.76k, False: 5.52k]
  ------------------
  117|  1.76k|		{
  118|  1.76k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  119|  1.76k|			break;
  120|      0|		}
  121|  7.28k|		}
  122|  7.28k|	}
_ZN4pcpp9Sll2Layer22computeCalculateFieldsEv:
  125|  2.02k|	{
  126|  2.02k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (126:7): [True: 194, False: 1.83k]
  ------------------
  127|    194|			return;
  128|       |
  129|  1.83k|		sll2_header* hdr = getSll2Header();
  130|  1.83k|		switch (m_NextLayer->getProtocol())
  131|  1.83k|		{
  132|     32|		case IPv4:
  ------------------
  |  Branch (132:3): [True: 32, False: 1.79k]
  ------------------
  133|     32|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IP);
  134|     32|			break;
  135|      0|		case IPv6:
  ------------------
  |  Branch (135:3): [True: 0, False: 1.83k]
  ------------------
  136|      0|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IPV6);
  137|      0|			break;
  138|      0|		case ARP:
  ------------------
  |  Branch (138:3): [True: 0, False: 1.83k]
  ------------------
  139|      0|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_ARP);
  140|      0|			break;
  141|    930|		case VLAN:
  ------------------
  |  Branch (141:3): [True: 930, False: 900]
  ------------------
  142|    930|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_VLAN);
  143|    930|			break;
  144|      0|		case LLC:
  ------------------
  |  Branch (144:3): [True: 0, False: 1.83k]
  ------------------
  145|      0|			hdr->protocol_type = htobe16(Sll2ProtoTypeLLC);
  146|      0|			break;
  147|    868|		default:
  ------------------
  |  Branch (147:3): [True: 868, False: 962]
  ------------------
  148|    868|			return;
  149|  1.83k|		}
  150|  1.83k|	}
_ZN4pcpp9Sll2Layer11isDataValidEPKhm:
  153|  7.67k|	{
  154|  7.67k|		return data && dataLen >= sizeof(sll2_header);
  ------------------
  |  Branch (154:10): [True: 7.67k, False: 0]
  |  Branch (154:18): [True: 7.67k, False: 2]
  ------------------
  155|  7.67k|	}
_ZNK4pcpp9Sll2Layer8toStringEv:
  158|  4.04k|	{
  159|  4.04k|		return "Linux cooked header v2";
  160|  4.04k|	}
_ZNK4pcpp9Sll2Layer15getProtocolTypeEv:
  163|  2.02k|	{
  164|       |		return be16toh(getSll2Header()->protocol_type);
  165|  2.02k|	}
_ZNK4pcpp9Sll2Layer17getInterfaceIndexEv:
  173|  2.02k|	{
  174|       |		return be32toh(getSll2Header()->interface_index);
  175|  2.02k|	}
_ZNK4pcpp9Sll2Layer13getArphrdTypeEv:
  183|  2.02k|	{
  184|       |		return be16toh(getSll2Header()->ARPHRD_type);
  185|  2.02k|	}
_ZNK4pcpp9Sll2Layer13getPacketTypeEv:
  193|  2.02k|	{
  194|  2.02k|		return getSll2Header()->packet_type;
  195|  2.02k|	}
_ZNK4pcpp9Sll2Layer19getLinkLayerAddrLenEv:
  203|  2.02k|	{
  204|  2.02k|		return getSll2Header()->link_layer_addr_len;
  205|  2.02k|	}
_ZNK4pcpp9Sll2Layer16getLinkLayerAddrEv:
  208|  2.02k|	{
  209|  2.02k|		return getSll2Header()->link_layer_addr;
  210|  2.02k|	}

_ZN4pcpp8SllLayer14parseNextLayerEv:
   51|  13.3k|	{
   52|  13.3k|		if (m_DataLen <= sizeof(sll_header))
  ------------------
  |  Branch (52:7): [True: 388, False: 12.9k]
  ------------------
   53|    388|			return;
   54|       |
   55|  12.9k|		uint8_t* payload = m_Data + sizeof(sll_header);
   56|  12.9k|		size_t payloadLen = m_DataLen - sizeof(sll_header);
   57|       |
   58|  12.9k|		sll_header* hdr = getSllHeader();
   59|  12.9k|		switch (be16toh(hdr->protocol_type))
   60|  12.9k|		{
   61|  8.57k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   33|  8.57k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (61:3): [True: 8.57k, False: 4.36k]
  ------------------
   62|  8.57k|		{
   63|  8.57k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   64|  8.57k|			break;
   65|      0|		}
   66|  1.00k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   49|  1.00k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (66:3): [True: 1.00k, False: 11.9k]
  ------------------
   67|  1.00k|		{
   68|  1.00k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   69|  1.00k|			break;
   70|      0|		}
   71|  1.77k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   35|  1.77k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (71:3): [True: 1.77k, False: 11.1k]
  ------------------
   72|  1.77k|		{
   73|  1.77k|			tryConstructNextLayerWithFallback<ArpLayer, PayloadLayer>(payload, payloadLen);
   74|  1.77k|			break;
   75|      0|		}
   76|      0|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   45|      0|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (76:3): [True: 0, False: 12.9k]
  ------------------
   77|      0|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   63|      0|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (77:3): [True: 0, False: 12.9k]
  ------------------
   78|      0|		{
   79|      0|			tryConstructNextLayerWithFallback<VlanLayer, PayloadLayer>(payload, payloadLen);
   80|      0|			break;
   81|      0|		}
   82|      0|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   55|      0|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (82:3): [True: 0, False: 12.9k]
  ------------------
   83|      0|		{
   84|      0|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   85|      0|			break;
   86|      0|		}
   87|      0|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   53|      0|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (87:3): [True: 0, False: 12.9k]
  ------------------
   88|      0|		{
   89|      0|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   90|      0|			break;
   91|      0|		}
   92|    723|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   57|    723|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (92:3): [True: 723, False: 12.2k]
  ------------------
   93|    723|		{
   94|    723|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
   95|    723|			break;
   96|      0|		}
   97|    855|		default:
  ------------------
  |  Branch (97:3): [True: 855, False: 12.0k]
  ------------------
   98|    855|		{
   99|    855|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  100|    855|			break;
  101|      0|		}
  102|  12.9k|		}
  103|  12.9k|	}
_ZN4pcpp8SllLayer22computeCalculateFieldsEv:
  106|  3.24k|	{
  107|  3.24k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (107:7): [True: 194, False: 3.05k]
  ------------------
  108|    194|			return;
  109|       |
  110|  3.05k|		sll_header* hdr = getSllHeader();
  111|  3.05k|		switch (m_NextLayer->getProtocol())
  112|  3.05k|		{
  113|  1.65k|		case IPv4:
  ------------------
  |  Branch (113:3): [True: 1.65k, False: 1.39k]
  ------------------
  114|  1.65k|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IP);
  115|  1.65k|			break;
  116|    202|		case IPv6:
  ------------------
  |  Branch (116:3): [True: 202, False: 2.85k]
  ------------------
  117|    202|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IPV6);
  118|    202|			break;
  119|    473|		case ARP:
  ------------------
  |  Branch (119:3): [True: 473, False: 2.58k]
  ------------------
  120|    473|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_ARP);
  121|    473|			break;
  122|      0|		case VLAN:
  ------------------
  |  Branch (122:3): [True: 0, False: 3.05k]
  ------------------
  123|      0|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_VLAN);
  124|      0|			break;
  125|    720|		default:
  ------------------
  |  Branch (125:3): [True: 720, False: 2.33k]
  ------------------
  126|    720|			return;
  127|  3.05k|		}
  128|  3.05k|	}
_ZNK4pcpp8SllLayer8toStringEv:
  131|  6.49k|	{
  132|  6.49k|		return "Linux cooked header";
  133|  6.49k|	}

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

_ZN4pcpp11SomeIpLayer16parseSomeIpLayerEPhmPNS_5LayerEPNS_6PacketE:
   46|  56.7k|	{
   47|       |		// Ideas taken from wireshark some ip dissector
   48|  56.7k|		const size_t headerLen = sizeof(someiphdr);
   49|  56.7k|		if (dataLen < headerLen)
  ------------------
  |  Branch (49:7): [True: 147, False: 56.6k]
  ------------------
   50|    147|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   51|       |
   52|  56.6k|		uint32_t lengthBE = 0;
   53|  56.6k|		memcpy(&lengthBE, data + sizeof(uint32_t), sizeof(uint32_t));  // length field in SOME/IP header
   54|  56.6k|		uint32_t length = be32toh(lengthBE);
   55|  56.6k|		if ((length < 8) || (length > dataLen - 8))
  ------------------
  |  Branch (55:7): [True: 206, False: 56.4k]
  |  Branch (55:23): [True: 6.25k, False: 50.1k]
  ------------------
   56|  6.45k|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   57|       |
   58|  50.1k|		if (data[12] != SOMEIP_PROTOCOL_VERSION)
  ------------------
  |  Branch (58:7): [True: 184, False: 50.0k]
  ------------------
   59|    184|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   60|       |
   61|  50.0k|		someiphdr* hdr = (someiphdr*)data;
   62|       |
   63|  50.0k|		switch (static_cast<MsgType>(hdr->msgType & ~(uint8_t)MsgType::TP_REQUEST))
   64|  50.0k|		{
   65|  3.37k|		case MsgType::REQUEST:
  ------------------
  |  Branch (65:3): [True: 3.37k, False: 46.6k]
  ------------------
   66|  3.37k|		case MsgType::REQUEST_ACK:
  ------------------
  |  Branch (66:3): [True: 0, False: 50.0k]
  ------------------
   67|  31.3k|		case MsgType::REQUEST_NO_RETURN:
  ------------------
  |  Branch (67:3): [True: 27.9k, False: 22.0k]
  ------------------
   68|  31.3k|		case MsgType::REQUEST_NO_RETURN_ACK:
  ------------------
  |  Branch (68:3): [True: 0, False: 50.0k]
  ------------------
   69|  47.5k|		case MsgType::NOTIFICATION:
  ------------------
  |  Branch (69:3): [True: 16.2k, False: 33.7k]
  ------------------
   70|  47.7k|		case MsgType::NOTIFICATION_ACK:
  ------------------
  |  Branch (70:3): [True: 210, False: 49.7k]
  ------------------
   71|  49.9k|		case MsgType::RESPONSE:
  ------------------
  |  Branch (71:3): [True: 2.19k, False: 47.8k]
  ------------------
   72|  49.9k|		case MsgType::RESPONSE_ACK:
  ------------------
  |  Branch (72:3): [True: 0, False: 50.0k]
  ------------------
   73|  49.9k|		case MsgType::ERRORS:
  ------------------
  |  Branch (73:3): [True: 0, False: 50.0k]
  ------------------
   74|  49.9k|		case MsgType::ERROR_ACK:
  ------------------
  |  Branch (74:3): [True: 0, False: 50.0k]
  ------------------
   75|  49.9k|			break;
   76|     25|		default:
  ------------------
  |  Branch (76:3): [True: 25, False: 49.9k]
  ------------------
   77|     25|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   78|  50.0k|		}
   79|       |
   80|  49.9k|		if (be16toh(hdr->serviceID) == 0xFFFF && be16toh(hdr->methodID) == 0x8100 &&
  ------------------
  |  Branch (80:7): [True: 47.6k, False: 2.35k]
  |  Branch (80:44): [True: 47.2k, False: 334]
  ------------------
   81|  47.2k|		    SomeIpSdLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (81:7): [True: 37.5k, False: 9.78k]
  ------------------
   82|  37.5k|		{
   83|  37.5k|			return new SomeIpSdLayer(data, dataLen, prevLayer, packet);
   84|  37.5k|		}
   85|  12.4k|		else if ((hdr->msgType & (uint8_t)SomeIpLayer::MsgType::TP_REQUEST) != 0)
  ------------------
  |  Branch (85:12): [True: 80, False: 12.3k]
  ------------------
   86|     80|		{
   87|     80|			return new SomeIpTpLayer(data, dataLen, prevLayer, packet);
   88|     80|		}
   89|  12.3k|		else
   90|  12.3k|		{
   91|  12.3k|			return new SomeIpLayer(data, dataLen, prevLayer, packet);
   92|  12.3k|		}
   93|  49.9k|	}
_ZN4pcpp11SomeIpLayer12isSomeIpPortEt:
   96|   511k|	{
   97|   511k|		return SomeIpSdLayer::isSomeIpSdPort(port) ||
  ------------------
  |  Branch (97:10): [True: 50.9k, False: 460k]
  ------------------
   98|   460k|		       std::any_of(m_SomeIpPorts.begin(), m_SomeIpPorts.end(),
  ------------------
  |  Branch (98:10): [True: 0, False: 460k]
  ------------------
   99|   460k|		                   [&](const uint16_t& someIpPort) { return someIpPort == port; });
  100|   511k|	}
_ZNK4pcpp11SomeIpLayer12getServiceIDEv:
  137|  4.82k|	{
  138|       |		return be16toh(getSomeIpHeader()->serviceID);
  139|  4.82k|	}
_ZNK4pcpp11SomeIpLayer11getMethodIDEv:
  147|  4.82k|	{
  148|       |		return be16toh(getSomeIpHeader()->methodID);
  149|  4.82k|	}
_ZNK4pcpp11SomeIpLayer14getLengthFieldEv:
  157|  64.6k|	{
  158|       |		return be32toh(getSomeIpHeader()->length);
  159|  64.6k|	}
_ZNK4pcpp11SomeIpLayer19getMessageTypeAsIntEv:
  226|     16|	{
  227|     16|		return getSomeIpHeader()->msgType;
  228|     16|	}
_ZN4pcpp11SomeIpLayer14setMessageTypeEh:
  236|     16|	{
  237|     16|		getSomeIpHeader()->msgType = type;
  238|     16|	}
_ZN4pcpp11SomeIpLayer14parseNextLayerEv:
  258|  49.9k|	{
  259|  49.9k|		size_t headerLen = getHeaderLen();
  260|  49.9k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (260:7): [True: 44.1k, False: 5.82k]
  ------------------
  261|  44.1k|			return;
  262|       |
  263|  5.82k|		uint8_t* payload = m_Data + headerLen;
  264|  5.82k|		size_t payloadLen = m_DataLen - headerLen;
  265|       |
  266|  5.82k|		constructNextLayerFromFactory(parseSomeIpLayer, payload, payloadLen);
  267|  5.82k|	}
_ZNK4pcpp11SomeIpLayer8toStringEv:
  270|  4.79k|	{
  271|  4.79k|		std::stringstream dataStream;
  272|       |
  273|  4.79k|		dataStream << "SOME/IP Layer" << std::hex << ", Service ID: 0x" << getServiceID() << ", Method ID: 0x"
  274|  4.79k|		           << getMethodID() << std::dec << ", Length: " << getLengthField();
  275|       |
  276|  4.79k|		return dataStream.str();
  277|  4.79k|	}
_ZN4pcpp13SomeIpTpLayer22computeCalculateFieldsEv:
  344|     16|	{
  345|     16|		setMessageType(setTpFlag(getMessageTypeAsInt()));
  346|     16|	}
_ZNK4pcpp13SomeIpTpLayer8toStringEv:
  349|     32|	{
  350|     32|		std::stringstream dataStream;
  351|       |
  352|     32|		dataStream << "SOME/IP-TP Layer" << std::hex << ", Service ID: 0x" << getServiceID() << ", Method ID: 0x"
  353|     32|		           << getMethodID() << std::dec << ", Length: " << getLengthField();
  354|       |
  355|     32|		return dataStream.str();
  356|     32|	}
_ZN4pcpp13SomeIpTpLayer9setTpFlagEh:
  359|     16|	{
  360|     16|		return messageType | (uint8_t)SomeIpLayer::MsgType::TP_REQUEST;
  361|     16|	}

_ZN4pcpp14SomeIpSdOptionD2Ev:
   14|  8.67k|	{
   15|  8.67k|		if (m_ShadowData != nullptr)
  ------------------
  |  Branch (15:7): [True: 0, False: 8.67k]
  ------------------
   16|      0|			delete[] m_ShadowData;
   17|  8.67k|	}
_ZNK4pcpp14SomeIpSdOption7getTypeEv:
   20|  4.64k|	{
   21|  4.64k|		return static_cast<OptionType>(getSomeIpSdOptionHeader()->type);
   22|  4.64k|	}
_ZNK4pcpp14SomeIpSdOption10getDataPtrEv:
   25|  18.3k|	{
   26|  18.3k|		if (m_DataContainer != nullptr)
  ------------------
  |  Branch (26:7): [True: 18.3k, False: 0]
  ------------------
   27|  18.3k|			return m_DataContainer->getDataPtr(m_Offset);
   28|       |
   29|      0|		return m_ShadowData;
   30|  18.3k|	}
_ZNK4pcpp14SomeIpSdOption23getSomeIpSdOptionHeaderEv:
   33|  4.70k|	{
   34|  4.70k|		return reinterpret_cast<someipsdhdroptionsbase*>(getDataPtr());
   35|  4.70k|	}
_ZN4pcpp18SomeIpSdIPv4OptionC2EPKNS_14IDataContainerEm:
   75|  8.54k|	    : SomeIpSdOption(dataContainer, offset)
   76|  8.54k|	{
   77|  8.54k|		m_DataLen = sizeof(someipsdhdroptionsipv4);
   78|  8.54k|	}
_ZNK4pcpp18SomeIpSdIPv4Option12getIpAddressEv:
   81|  4.52k|	{
   82|  4.52k|		someipsdhdroptionsipv4* hdr = reinterpret_cast<someipsdhdroptionsipv4*>(getDataPtr());
   83|  4.52k|		IPv4Address ipAddr(hdr->ipv4Address);
   84|       |
   85|  4.52k|		return ipAddr;
   86|  4.52k|	}
_ZNK4pcpp18SomeIpSdIPv4Option7getPortEv:
   89|  4.52k|	{
   90|  4.52k|		someipsdhdroptionsipv4* hdr = reinterpret_cast<someipsdhdroptionsipv4*>(getDataPtr());
   91|       |		return be16toh(hdr->portNumber);
   92|  4.52k|	}
_ZNK4pcpp18SomeIpSdIPv4Option11getProtocolEv:
   95|  4.52k|	{
   96|  4.52k|		someipsdhdroptionsipv4* hdr = reinterpret_cast<someipsdhdroptionsipv4*>(getDataPtr());
   97|  4.52k|		return hdr->l4Protocol;
   98|  4.52k|	}
_ZN4pcpp18SomeIpSdIPv6OptionC2EPKNS_14IDataContainerEm:
  129|     27|	    : SomeIpSdOption(dataContainer, offset)
  130|     27|	{
  131|     27|		m_DataLen = sizeof(someipsdhdroptionsipv6);
  132|     27|	}
_ZNK4pcpp18SomeIpSdIPv6Option12getIpAddressEv:
  135|     27|	{
  136|     27|		someipsdhdroptionsipv6* hdr = reinterpret_cast<someipsdhdroptionsipv6*>(getDataPtr());
  137|     27|		IPv6Address ipAddr(hdr->ipv6Address);
  138|       |
  139|     27|		return ipAddr;
  140|     27|	}
_ZNK4pcpp18SomeIpSdIPv6Option7getPortEv:
  143|     27|	{
  144|     27|		someipsdhdroptionsipv6* hdr = reinterpret_cast<someipsdhdroptionsipv6*>(getDataPtr());
  145|       |		return be16toh(hdr->portNumber);
  146|     27|	}
_ZNK4pcpp18SomeIpSdIPv6Option11getProtocolEv:
  149|     27|	{
  150|     27|		someipsdhdroptionsipv6* hdr = reinterpret_cast<someipsdhdroptionsipv6*>(getDataPtr());
  151|     27|		return hdr->l4Protocol;
  152|     27|	}
_ZN4pcpp27SomeIpSdConfigurationOptionC2EPKNS_14IDataContainerEm:
  168|     62|	    : SomeIpSdOption(dataContainer, offset)
  169|     62|	{
  170|       |		m_DataLen = sizeof(someipsdhdroptionsbase) - 1 + be16toh(getSomeIpSdOptionHeader()->length);
  171|     62|	}
_ZN4pcpp27SomeIpSdLoadBalancingOptionC2EPKNS_14IDataContainerEm:
  195|     32|	    : SomeIpSdOption(dataContainer, offset)
  196|     32|	{
  197|     32|		m_DataLen = sizeof(someipsdhdroptionsload);
  198|     32|	}
_ZN4pcpp13SomeIpSdEntryC2EPKNS_13SomeIpSdLayerEm:
  230|  7.86k|	    : m_Layer(pSomeIpSdLayer), m_Offset(offset), m_ShadowData(nullptr)
  231|  7.86k|	{
  232|  7.86k|		EntryType entryType;
  233|       |
  234|  7.86k|		someipsdhdrentry* hdr = getSomeIpSdEntryHeader();
  235|  7.86k|		TypeInternal internalType = static_cast<TypeInternal>(hdr->type);
  236|  7.86k|		auto ttl = getTtl();
  237|       |
  238|  7.86k|		switch (internalType)
  239|  7.86k|		{
  240|    537|		case SomeIpSdEntry::TypeInternal::FindService_Internal:
  ------------------
  |  Branch (240:3): [True: 537, False: 7.33k]
  ------------------
  241|    537|			entryType = SomeIpSdEntry::EntryType::FindService;
  242|    537|			break;
  243|  2.21k|		case SomeIpSdEntry::TypeInternal::OfferService_Internal:
  ------------------
  |  Branch (243:3): [True: 2.21k, False: 5.64k]
  ------------------
  244|  2.21k|			if (ttl == 0)
  ------------------
  |  Branch (244:8): [True: 2.16k, False: 53]
  ------------------
  245|  2.16k|			{
  246|  2.16k|				entryType = EntryType::StopOfferService;
  247|  2.16k|			}
  248|     53|			else
  249|     53|			{
  250|     53|				entryType = EntryType::OfferService;
  251|     53|			}
  252|  2.21k|			break;
  253|  3.14k|		case SomeIpSdEntry::TypeInternal::SubscribeEventgroup_Internal:
  ------------------
  |  Branch (253:3): [True: 3.14k, False: 4.71k]
  ------------------
  254|  3.14k|			if (ttl == 0)
  ------------------
  |  Branch (254:8): [True: 2.12k, False: 1.02k]
  ------------------
  255|  2.12k|			{
  256|  2.12k|				entryType = EntryType::StopSubscribeEventgroup;
  257|  2.12k|			}
  258|  1.02k|			else
  259|  1.02k|			{
  260|  1.02k|				entryType = EntryType::SubscribeEventgroup;
  261|  1.02k|			}
  262|  3.14k|			break;
  263|    230|		case SomeIpSdEntry::TypeInternal::SubscribeEventgroupAck_Internal:
  ------------------
  |  Branch (263:3): [True: 230, False: 7.63k]
  ------------------
  264|    230|			if (ttl == 0)
  ------------------
  |  Branch (264:8): [True: 0, False: 230]
  ------------------
  265|      0|			{
  266|      0|				entryType = EntryType::SubscribeEventgroupNack;
  267|      0|			}
  268|    230|			else
  269|    230|			{
  270|    230|				entryType = EntryType::SubscribeEventgroupAck;
  271|    230|			}
  272|    230|			break;
  273|  1.73k|		default:
  ------------------
  |  Branch (273:3): [True: 1.73k, False: 6.13k]
  ------------------
  274|  1.73k|			entryType = EntryType::UnknownEntryType;
  275|  1.73k|			break;
  276|  7.86k|		}
  277|       |
  278|  7.86k|		m_EntryType = entryType;
  279|  7.86k|	}
_ZN4pcpp13SomeIpSdEntryD2Ev:
  282|  7.86k|	{
  283|  7.86k|		if (m_ShadowData != nullptr)
  ------------------
  |  Branch (283:7): [True: 0, False: 7.86k]
  ------------------
  284|      0|			delete[] m_ShadowData;
  285|  7.86k|	}
_ZNK4pcpp13SomeIpSdEntry10getDataPtrEv:
  288|  70.8k|	{
  289|  70.8k|		if (m_Layer != nullptr)
  ------------------
  |  Branch (289:7): [True: 70.8k, False: 0]
  ------------------
  290|  70.8k|			return m_Layer->getDataPtr(m_Offset);
  291|       |
  292|      0|		return m_ShadowData;
  293|  70.8k|	}
_ZNK4pcpp13SomeIpSdEntry22getSomeIpSdEntryHeaderEv:
  296|  70.8k|	{
  297|  70.8k|		return reinterpret_cast<someipsdhdrentry*>(getDataPtr());
  298|  70.8k|	}
_ZNK4pcpp13SomeIpSdEntry13getNumOptionsEv:
  301|  7.86k|	{
  302|  7.86k|		auto* hdr = getSomeIpSdEntryHeader();
  303|  7.86k|		return hdr->nrOpt1 + hdr->nrOpt2;
  304|  7.86k|	}
_ZNK4pcpp13SomeIpSdEntry12getServiceIdEv:
  307|  7.86k|	{
  308|       |		return be16toh(getSomeIpSdEntryHeader()->serviceID);
  309|  7.86k|	}
_ZNK4pcpp13SomeIpSdEntry13getInstanceIdEv:
  317|  7.86k|	{
  318|       |		return be16toh(getSomeIpSdEntryHeader()->instanceID);
  319|  7.86k|	}
_ZNK4pcpp13SomeIpSdEntry15getMajorVersionEv:
  327|  7.86k|	{
  328|       |		return (be32toh(getSomeIpSdEntryHeader()->majorVersion_ttl) & ~SOMEIPSD_HDR_ENTRY_MASK_TTL) >> 24;
  329|  7.86k|	}
_ZNK4pcpp13SomeIpSdEntry6getTtlEv:
  339|  7.86k|	{
  340|       |		return be32toh(getSomeIpSdEntryHeader()->majorVersion_ttl) & SOMEIPSD_HDR_ENTRY_MASK_TTL;
  341|  7.86k|	}
_ZNK4pcpp13SomeIpSdEntry15getMinorVersionEv:
  352|  7.86k|	{
  353|       |		return be32toh(getSomeIpSdEntryHeader()->data);
  354|  7.86k|	}
_ZNK4pcpp13SomeIpSdEntry10getCounterEv:
  362|  7.86k|	{
  363|       |		return static_cast<uint8_t>((be32toh(getSomeIpSdEntryHeader()->data) >> 16) & 0x0F);
  364|  7.86k|	}
_ZNK4pcpp13SomeIpSdEntry15getEventgroupIdEv:
  373|  7.86k|	{
  374|       |		return static_cast<uint16_t>(be32toh(getSomeIpSdEntryHeader()->data) & 0x0000FFFF);
  375|  7.86k|	}
_ZN4pcpp13SomeIpSdLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  433|  37.5k|	    : SomeIpLayer(data, dataLen, prevLayer, packet)
  434|  37.5k|	{
  435|  37.5k|		countOptions(m_NumOptions, data);
  436|  37.5k|	}
_ZNK4pcpp13SomeIpSdLayer8getFlagsEv:
  459|  7.38k|	{
  460|  7.38k|		someipsdhdr* hdr = reinterpret_cast<someipsdhdr*>(m_Data);
  461|  7.38k|		return hdr->flags;
  462|  7.38k|	}
_ZNK4pcpp13SomeIpSdLayer13getNumEntriesEv:
  471|  22.0k|	{
  472|  22.0k|		return static_cast<uint32_t>(getLenEntries() / sizeof(SomeIpSdEntry::someipsdhdrentry));
  473|  22.0k|	}
_ZNK4pcpp13SomeIpSdLayer13getNumOptionsEv:
  476|  14.7k|	{
  477|  14.7k|		return m_NumOptions;
  478|  14.7k|	}
_ZNK4pcpp13SomeIpSdLayer10getEntriesEv:
  481|  7.38k|	{
  482|  7.38k|		size_t remainingLen = getLenEntries();
  483|  7.38k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t);
  484|       |
  485|  7.38k|		EntriesVec vecEntries;
  486|  7.38k|		EntryPtr entry;
  487|       |
  488|  15.2k|		while (remainingLen > 0)
  ------------------
  |  Branch (488:10): [True: 7.95k, False: 7.30k]
  ------------------
  489|  7.95k|		{
  490|       |			// Ensure there is enough remaining length for a new entry
  491|  7.95k|			if (remainingLen < sizeof(SomeIpSdEntry::someipsdhdrentry))
  ------------------
  |  Branch (491:8): [True: 86, False: 7.86k]
  ------------------
  492|     86|			{
  493|     86|				break;
  494|     86|			}
  495|  7.86k|			entry = new SomeIpSdEntry(this, offset);
  496|       |
  497|  7.86k|			size_t entryLen = entry->getLength();
  498|  7.86k|			remainingLen -= entryLen;
  499|  7.86k|			offset += entryLen;
  500|       |
  501|  7.86k|			vecEntries.push_back(entry);
  502|  7.86k|		}
  503|       |
  504|  7.38k|		return vecEntries;
  505|  7.38k|	};
_ZNK4pcpp13SomeIpSdLayer10getOptionsEv:
  508|  7.38k|	{
  509|  7.38k|		OptionsVec vecOptions;
  510|  7.38k|		OptionPtr option;
  511|       |
  512|  7.38k|		size_t remainingLen = getLenOptions();
  513|  7.38k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries() + sizeof(uint32_t);
  514|       |
  515|  14.7k|		while (remainingLen > 0)
  ------------------
  |  Branch (515:10): [True: 7.36k, False: 7.38k]
  ------------------
  516|  7.36k|		{
  517|  7.36k|			SomeIpSdOption::someipsdhdroptionsbase* hdr =
  518|  7.36k|			    reinterpret_cast<SomeIpSdOption::someipsdhdroptionsbase*>(m_Data + offset);
  519|  7.36k|			SomeIpSdOption::OptionType optionType = static_cast<SomeIpSdOption::OptionType>(hdr->type);
  520|       |
  521|  7.36k|			option = parseOption(optionType, offset, remainingLen);
  522|       |
  523|  7.36k|			if (option != nullptr)
  ------------------
  |  Branch (523:8): [True: 4.64k, False: 2.72k]
  ------------------
  524|  4.64k|			{
  525|  4.64k|				vecOptions.push_back(std::move(option));
  526|  4.64k|			}
  527|       |
  528|  7.36k|			size_t optionLen = be16toh(hdr->length) + 3;
  529|  7.36k|			remainingLen -= optionLen;
  530|  7.36k|			offset += optionLen;
  531|  7.36k|		}
  532|       |
  533|  7.38k|		return vecOptions;
  534|  7.38k|	}
_ZNK4pcpp13SomeIpSdLayer19getOptionsFromEntryEj:
  537|  7.32k|	{
  538|  7.32k|		OptionsVec vecOptions;
  539|  7.32k|		OptionPtr option;
  540|       |
  541|  7.32k|		if (index >= getNumEntries())
  ------------------
  |  Branch (541:7): [True: 0, False: 7.32k]
  ------------------
  542|      0|			return vecOptions;
  543|       |
  544|  7.32k|		size_t remainingLen = getLenOptions();
  545|  7.32k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries() + sizeof(uint32_t);
  546|       |
  547|  7.32k|		size_t offsetToEntry = sizeof(someipsdhdr) + sizeof(uint32_t) + index * sizeof(SomeIpSdEntry::someipsdhdrentry);
  548|  7.32k|		SomeIpSdEntry::someipsdhdrentry* hdrEntry =
  549|  7.32k|		    reinterpret_cast<SomeIpSdEntry::someipsdhdrentry*>(m_Data + offsetToEntry);
  550|  7.32k|		uint8_t startIdxRun1 = hdrEntry->indexFirstOption;
  551|  7.32k|		uint8_t lenRun1 = hdrEntry->nrOpt1;
  552|  7.32k|		uint8_t startIdxRun2 = hdrEntry->indexSecondOption;
  553|  7.32k|		uint8_t lenRun2 = hdrEntry->nrOpt2;
  554|       |
  555|  7.32k|		int idx = 0;
  556|       |
  557|  14.5k|		while (remainingLen > 0)
  ------------------
  |  Branch (557:10): [True: 7.20k, False: 7.32k]
  ------------------
  558|  7.20k|		{
  559|  7.20k|			SomeIpSdOption::someipsdhdroptionsbase* hdrOption =
  560|  7.20k|			    reinterpret_cast<SomeIpSdOption::someipsdhdroptionsbase*>(m_Data + offset);
  561|       |
  562|  7.20k|			if (((idx >= startIdxRun1) && (idx < (startIdxRun1 + lenRun1))) ||
  ------------------
  |  Branch (562:9): [True: 6.27k, False: 935]
  |  Branch (562:34): [True: 3.22k, False: 3.05k]
  ------------------
  563|  3.98k|			    ((idx >= startIdxRun2) && (idx < (startIdxRun2 + lenRun2))))
  ------------------
  |  Branch (563:9): [True: 2.55k, False: 1.43k]
  |  Branch (563:34): [True: 1.68k, False: 866]
  ------------------
  564|  4.90k|			{
  565|  4.90k|				SomeIpSdOption::OptionType optionType = static_cast<SomeIpSdOption::OptionType>(hdrOption->type);
  566|       |
  567|  4.90k|				option = parseOption(optionType, offset, remainingLen);
  568|       |
  569|  4.90k|				if (option != nullptr)
  ------------------
  |  Branch (569:9): [True: 4.02k, False: 880]
  ------------------
  570|  4.02k|				{
  571|  4.02k|					vecOptions.push_back(std::move(option));
  572|  4.02k|				}
  573|  4.90k|			}
  574|       |
  575|  7.20k|			size_t optionLen = be16toh(hdrOption->length) + 3;
  576|  7.20k|			remainingLen -= optionLen;
  577|  7.20k|			offset += optionLen;
  578|  7.20k|			++idx;
  579|  7.20k|		}
  580|       |
  581|  7.32k|		return vecOptions;
  582|  7.32k|	}
_ZNK4pcpp13SomeIpSdLayer8toStringEv:
  608|  14.7k|	{
  609|  14.7k|		std::stringstream dataStream;
  610|       |
  611|  14.7k|		dataStream << "SOME/IP-SD Layer, " << getNumEntries() << " entries, " << getNumOptions() << " options";
  612|       |
  613|  14.7k|		return dataStream.str();
  614|  14.7k|	}
_ZN4pcpp13SomeIpSdLayer11isDataValidEPKhm:
  634|  47.2k|	{
  635|  47.2k|		uint32_t count;
  636|  47.2k|		if (!data || dataLen < sizeof(someipsdhdr) + sizeof(uint32_t) ||
  ------------------
  |  Branch (636:7): [True: 0, False: 47.2k]
  |  Branch (636:16): [True: 0, False: 47.2k]
  ------------------
  637|  47.2k|		    dataLen < sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t) ||
  ------------------
  |  Branch (637:7): [True: 578, False: 46.7k]
  ------------------
  638|  46.7k|		    dataLen <
  ------------------
  |  Branch (638:7): [True: 1.05k, False: 45.6k]
  ------------------
  639|  46.7k|		        sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t) + getLenOptions(data) ||
  640|  45.6k|		    !countOptions(count, data))
  ------------------
  |  Branch (640:7): [True: 8.15k, False: 37.5k]
  ------------------
  641|  9.78k|		{
  642|  9.78k|			return false;
  643|  9.78k|		}
  644|       |
  645|  37.5k|		return true;
  646|  47.2k|	}
_ZN4pcpp13SomeIpSdLayer12countOptionsERjPKh:
  649|  83.1k|	{
  650|  83.1k|		size_t offsetOption = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t);
  651|  83.1k|		size_t lenOptions = getLenOptions(data);
  652|  83.1k|		uint32_t len = 0;
  653|       |
  654|  83.1k|		count = 0;
  655|   158k|		while (len < lenOptions)
  ------------------
  |  Branch (655:10): [True: 83.2k, False: 75.0k]
  ------------------
  656|  83.2k|		{
  657|  83.2k|			if (len + sizeof(uint16_t) + 3 * sizeof(uint8_t) > lenOptions)
  ------------------
  |  Branch (657:8): [True: 0, False: 83.2k]
  ------------------
  658|      0|				return false;
  659|       |
  660|  83.2k|			uint32_t lenOption =
  661|  83.2k|			    be16toh(*(reinterpret_cast<uint16_t const*>(data + offsetOption + len))) + 3 * sizeof(uint8_t);
  662|  83.2k|			len += lenOption;
  663|  83.2k|			if (len > lenOptions)  // the last one must be equal to lenOptions
  ------------------
  |  Branch (663:8): [True: 8.15k, False: 75.0k]
  ------------------
  664|  8.15k|				return false;
  665|       |
  666|  75.0k|			++(count);
  667|  75.0k|		}
  668|  75.0k|		return true;
  669|  83.1k|	}
_ZNK4pcpp13SomeIpSdLayer11parseOptionENS_14SomeIpSdOption10OptionTypeEmm:
  762|  12.2k|	{
  763|  12.2k|		switch (type)
  764|  12.2k|		{
  765|    967|		case SomeIpSdOption::OptionType::IPv4Endpoint:
  ------------------
  |  Branch (765:3): [True: 967, False: 11.3k]
  ------------------
  766|  1.05k|		case SomeIpSdOption::OptionType::IPv4Multicast:
  ------------------
  |  Branch (766:3): [True: 92, False: 12.1k]
  ------------------
  767|  8.54k|		case SomeIpSdOption::OptionType::IPv4SdEndpoint:
  ------------------
  |  Branch (767:3): [True: 7.49k, False: 4.78k]
  ------------------
  768|  8.54k|		{
  769|  8.54k|			if (SomeIpSdIPv4Option::isDataValid(this, remainingLength))
  ------------------
  |  Branch (769:8): [True: 8.54k, False: 0]
  ------------------
  770|  8.54k|			{
  771|  8.54k|				return new SomeIpSdIPv4Option(this, offset);
  772|  8.54k|			}
  773|      0|			return nullptr;
  774|  8.54k|		}
  775|     67|		case SomeIpSdOption::OptionType::IPv6Endpoint:
  ------------------
  |  Branch (775:3): [True: 67, False: 12.2k]
  ------------------
  776|     67|		case SomeIpSdOption::OptionType::IPv6Multicast:
  ------------------
  |  Branch (776:3): [True: 0, False: 12.2k]
  ------------------
  777|     82|		case SomeIpSdOption::OptionType::IPv6SdEndpoint:
  ------------------
  |  Branch (777:3): [True: 15, False: 12.2k]
  ------------------
  778|     82|		{
  779|     82|			if (SomeIpSdIPv6Option::isDataValid(this, remainingLength))
  ------------------
  |  Branch (779:8): [True: 27, False: 55]
  ------------------
  780|     27|			{
  781|     27|				return new SomeIpSdIPv6Option(this, offset);
  782|     27|			}
  783|     55|			return nullptr;
  784|     82|		}
  785|     62|		case SomeIpSdOption::OptionType::ConfigurationString:
  ------------------
  |  Branch (785:3): [True: 62, False: 12.2k]
  ------------------
  786|     62|		{
  787|     62|			if (SomeIpSdConfigurationOption::isDataValid(this, remainingLength))
  ------------------
  |  Branch (787:8): [True: 62, False: 0]
  ------------------
  788|     62|			{
  789|     62|				return new SomeIpSdConfigurationOption(this, offset);
  790|     62|			}
  791|      0|			return nullptr;
  792|     62|		}
  793|     32|		case SomeIpSdOption::OptionType::LoadBalancing:
  ------------------
  |  Branch (793:3): [True: 32, False: 12.2k]
  ------------------
  794|     32|		{
  795|     32|			if (SomeIpSdLoadBalancingOption::isDataValid(this, remainingLength))
  ------------------
  |  Branch (795:8): [True: 32, False: 0]
  ------------------
  796|     32|			{
  797|     32|				return new SomeIpSdLoadBalancingOption(this, offset);
  798|     32|			}
  799|      0|			return nullptr;
  800|     32|		}
  801|  3.55k|		default:
  ------------------
  |  Branch (801:3): [True: 3.55k, False: 8.72k]
  ------------------
  802|  3.55k|			break;
  803|  12.2k|		}
  804|  3.55k|		return nullptr;
  805|  12.2k|	}
_ZNK4pcpp13SomeIpSdLayer13getLenEntriesEv:
  808|  44.1k|	{
  809|  44.1k|		return getLenEntries(m_Data);
  810|  44.1k|	}
_ZN4pcpp13SomeIpSdLayer13getLenEntriesEPKh:
  813|   365k|	{
  814|       |		return be32toh(*(reinterpret_cast<const uint32_t*>(data + sizeof(someipsdhdr))));
  815|   365k|	}
_ZNK4pcpp13SomeIpSdLayer13getLenOptionsEv:
  818|  14.7k|	{
  819|  14.7k|		return getLenOptions(m_Data);
  820|  14.7k|	}
_ZN4pcpp13SomeIpSdLayer13getLenOptionsEPKh:
  823|   144k|	{
  824|       |		return be32toh(
  825|   144k|		    *(reinterpret_cast<const uint32_t*>(data + sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data))));
  826|   144k|	}

_ZN4pcpp8StpLayer11isDataValidEPKhm:
   30|  5.26k|	{
   31|  5.26k|		return data && dataLen;
  ------------------
  |  Branch (31:10): [True: 5.26k, False: 0]
  |  Branch (31:18): [True: 5.26k, False: 0]
  ------------------
   32|  5.26k|	}
_ZN4pcpp8StpLayer13parseStpLayerEPhmPNS_5LayerEPNS_6PacketE:
   35|  5.26k|	{
   36|  5.26k|		if (dataLen >= sizeof(stp_tcn_bpdu))
  ------------------
  |  Branch (36:7): [True: 5.26k, False: 0]
  ------------------
   37|  5.26k|		{
   38|  5.26k|			stp_tcn_bpdu* ptr = reinterpret_cast<stp_tcn_bpdu*>(data);
   39|  5.26k|			switch (ptr->type)
   40|  5.26k|			{
   41|  2.38k|			case 0x00:
  ------------------
  |  Branch (41:4): [True: 2.38k, False: 2.87k]
  ------------------
   42|  2.38k|				return StpConfigurationBPDULayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (42:12): [True: 2.38k, False: 0]
  ------------------
   43|  2.38k|				           ? new StpConfigurationBPDULayer(data, dataLen, prevLayer, packet)
   44|  2.38k|				           : nullptr;
   45|  1.27k|			case 0x02:
  ------------------
  |  Branch (45:4): [True: 1.27k, False: 3.98k]
  ------------------
   46|  1.27k|				if (ptr->version == 0x2)
  ------------------
  |  Branch (46:9): [True: 1.08k, False: 196]
  ------------------
   47|  1.08k|					return RapidStpLayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (47:13): [True: 1.08k, False: 0]
  ------------------
   48|  1.08k|					           ? new RapidStpLayer(data, dataLen, prevLayer, packet)
   49|  1.08k|					           : nullptr;
   50|    196|				if (ptr->version == 0x3)
  ------------------
  |  Branch (50:9): [True: 68, False: 128]
  ------------------
   51|     68|					return MultipleStpLayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (51:13): [True: 64, False: 4]
  ------------------
   52|     68|					           ? new MultipleStpLayer(data, dataLen, prevLayer, packet)
   53|     68|					           : nullptr;
   54|    128|				PCPP_LOG_DEBUG("Unknown Spanning Tree Version");
  ------------------
  |  |  426|    128|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|    128|	do                                                                                                                 \
  |  |  |  |  414|    128|	{                                                                                                                  \
  |  |  |  |  415|    128|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    128|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    128|#define LOG_MODULE PacketLogModuleStpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 128]
  |  |  |  |  ------------------
  |  |  |  |  417|    128|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleStpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|    128|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 128]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   55|    128|				return nullptr;
   56|  1.60k|			case 0x80:
  ------------------
  |  Branch (56:4): [True: 1.60k, False: 3.65k]
  ------------------
   57|  1.60k|				return StpTopologyChangeBPDULayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (57:12): [True: 1.60k, False: 0]
  ------------------
   58|  1.60k|				           ? new StpTopologyChangeBPDULayer(data, dataLen, prevLayer, packet)
   59|  1.60k|				           : nullptr;
   60|       |			// TODO: Per VLAN Spanning Tree+ (PVST+)
   61|       |			// TODO: Rapid Per VLAN Spanning Tree+ (RPVST+)
   62|       |			// TODO: Cisco Uplink Fast
   63|      0|			default:
  ------------------
  |  Branch (63:4): [True: 0, False: 5.26k]
  ------------------
   64|      0|				PCPP_LOG_DEBUG("Unknown Spanning Tree Protocol type");
  ------------------
  |  |  426|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleStpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleStpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   65|      0|				return nullptr;
   66|  5.26k|			}
   67|  5.26k|		}
   68|       |
   69|      0|		PCPP_LOG_DEBUG("Data length is less than any STP header");
  ------------------
  |  |  426|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleStpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleStpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   70|      0|		return nullptr;
   71|  5.26k|	}
_ZN4pcpp26StpTopologyChangeBPDULayer14parseNextLayerEv:
   83|  1.60k|	{
   84|  1.60k|		if (m_DataLen > sizeof(stp_tcn_bpdu))
  ------------------
  |  Branch (84:7): [True: 1.60k, False: 0]
  ------------------
   85|  1.60k|		{
   86|  1.60k|			constructNextLayer<PayloadLayer>(m_Data, m_DataLen - sizeof(stp_tcn_bpdu));
   87|  1.60k|		}
   88|  1.60k|	}
_ZN4pcpp25StpConfigurationBPDULayer14parseNextLayerEv:
  230|  2.38k|	{
  231|  2.38k|		if (m_DataLen > sizeof(stp_conf_bpdu))
  ------------------
  |  Branch (231:7): [True: 2.38k, False: 0]
  ------------------
  232|  2.38k|		{
  233|  2.38k|			constructNextLayer<PayloadLayer>(m_Data, m_DataLen - sizeof(stp_conf_bpdu));
  234|  2.38k|		}
  235|  2.38k|	}
_ZN4pcpp13RapidStpLayer14parseNextLayerEv:
  247|  1.08k|	{
  248|  1.08k|		if (m_DataLen > sizeof(rstp_conf_bpdu))
  ------------------
  |  Branch (248:7): [True: 1.08k, False: 0]
  ------------------
  249|  1.08k|		{
  250|  1.08k|			constructNextLayer<PayloadLayer>(m_Data, m_DataLen - sizeof(rstp_conf_bpdu));
  251|  1.08k|		}
  252|  1.08k|	}

_ZN4pcpp16TLVRecordBuilderC2Ev:
    9|   110k|	{
   10|   110k|		m_RecType = 0;
   11|   110k|		m_RecValueLen = 0;
   12|   110k|		m_RecValue = nullptr;
   13|   110k|	}
_ZN4pcpp16TLVRecordBuilderD2Ev:
  101|   110k|	{
  102|   110k|		if (m_RecValue != nullptr)
  ------------------
  |  Branch (102:7): [True: 110k, False: 0]
  ------------------
  103|   110k|			delete[] m_RecValue;
  104|   110k|	}
_ZN4pcpp16TLVRecordBuilder4initEjPKhm:
  107|   110k|	{
  108|   110k|		m_RecType = recType;
  109|   110k|		m_RecValueLen = recValueLen;
  110|   110k|		m_RecValue = new uint8_t[recValueLen];
  111|   110k|		if (recValue != nullptr)
  ------------------
  |  Branch (111:7): [True: 0, False: 110k]
  ------------------
  112|      0|			memcpy(m_RecValue, recValue, recValueLen);
  113|   110k|		else
  114|   110k|			memset(m_RecValue, 0, recValueLen);
  115|   110k|	}

_ZN4pcpp16TcpOptionBuilderC2ENS0_20NopEolOptionEnumTypeE:
  112|   110k|	{
  113|   110k|		switch (optionType)
  114|   110k|		{
  115|      0|		case NopEolOptionEnumType::Eol:
  ------------------
  |  Branch (115:3): [True: 0, False: 110k]
  ------------------
  116|      0|			init(static_cast<uint8_t>(TcpOptionEnumType::Eol), nullptr, 0);
  117|      0|			break;
  118|   110k|		case NopEolOptionEnumType::Nop:
  ------------------
  |  Branch (118:3): [True: 110k, False: 0]
  ------------------
  119|   110k|		default:
  ------------------
  |  Branch (119:3): [True: 0, False: 110k]
  ------------------
  120|   110k|			init(static_cast<uint8_t>(TcpOptionEnumType::Nop), nullptr, 0);
  121|   110k|			break;
  122|   110k|		}
  123|   110k|	}
_ZNK4pcpp16TcpOptionBuilder5buildEv:
  126|  45.5k|	{
  127|  45.5k|		uint8_t recType = static_cast<uint8_t>(m_RecType);
  128|  45.5k|		size_t optionSize = m_RecValueLen + 2 * sizeof(uint8_t);
  129|       |
  130|  45.5k|		if (recType == static_cast<uint8_t>(TcpOptionEnumType::Eol) ||
  ------------------
  |  Branch (130:7): [True: 0, False: 45.5k]
  ------------------
  131|  45.5k|		    recType == static_cast<uint8_t>(TcpOptionEnumType::Nop))
  ------------------
  |  Branch (131:7): [True: 45.5k, False: 0]
  ------------------
  132|  45.5k|		{
  133|  45.5k|			if (m_RecValueLen != 0)
  ------------------
  |  Branch (133:8): [True: 0, False: 45.5k]
  ------------------
  134|      0|			{
  135|      0|				PCPP_LOG_ERROR(
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  136|      0|				    "TCP NOP and TCP EOL options are 1-byte long and don't have option value. Tried to set option value of size "
  137|      0|				    << m_RecValueLen);
  138|      0|				return TcpOption(nullptr);
  139|      0|			}
  140|       |
  141|  45.5k|			optionSize = 1;
  142|  45.5k|		}
  143|       |
  144|  45.5k|		uint8_t* recordBuffer = new uint8_t[optionSize];
  145|  45.5k|		memset(recordBuffer, 0, optionSize);
  146|  45.5k|		recordBuffer[0] = recType;
  147|  45.5k|		if (optionSize > 1)
  ------------------
  |  Branch (147:7): [True: 0, False: 45.5k]
  ------------------
  148|      0|		{
  149|      0|			recordBuffer[1] = static_cast<uint8_t>(optionSize);
  150|      0|			if (optionSize > 2 && m_RecValue != nullptr)
  ------------------
  |  Branch (150:8): [True: 0, False: 0]
  |  Branch (150:26): [True: 0, False: 0]
  ------------------
  151|      0|				memcpy(recordBuffer + 2, m_RecValue, m_RecValueLen);
  152|      0|		}
  153|       |
  154|  45.5k|		return TcpOption(recordBuffer);
  155|  45.5k|	}
_ZNK4pcpp8TcpLayer10getSrcPortEv:
  162|   740k|	{
  163|       |		return be16toh(getTcpHeader()->portSrc);
  164|   740k|	}
_ZNK4pcpp8TcpLayer10getDstPortEv:
  167|   740k|	{
  168|       |		return be16toh(getTcpHeader()->portDst);
  169|   740k|	}
_ZNK4pcpp8TcpLayer12getTcpOptionENS_17TcpOptionEnumTypeE:
  172|   110k|	{
  173|   110k|		return m_OptionReader.getTLVRecord(static_cast<uint8_t>(option), getOptionsBasePtr(),
  174|   110k|		                                   getHeaderLen() - sizeof(tcphdr));
  175|   110k|	}
_ZNK4pcpp8TcpLayer17getFirstTcpOptionEv:
  178|  45.5k|	{
  179|  45.5k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(tcphdr));
  180|  45.5k|	}
_ZNK4pcpp8TcpLayer16getNextTcpOptionERNS_9TcpOptionE:
  183|   167k|	{
  184|   167k|		TcpOption nextOpt =
  185|   167k|		    m_OptionReader.getNextTLVRecord(tcpOption, getOptionsBasePtr(), getHeaderLen() - sizeof(tcphdr));
  186|   167k|		if (nextOpt.isNotNull() && nextOpt.getType() == TcpOptionDummy)
  ------------------
  |  Branch (186:7): [True: 122k, False: 45.3k]
  |  Branch (186:30): [True: 160, False: 122k]
  ------------------
  187|    160|			return TcpOption(nullptr);
  188|       |
  189|   167k|		return nextOpt;
  190|   167k|	}
_ZN4pcpp8TcpLayer20insertTcpOptionAfterERKNS_16TcpOptionBuilderENS_17TcpOptionEnumTypeE:
  204|   110k|	{
  205|   110k|		int offset = 0;
  206|       |
  207|   110k|		if (prevOptionType == TcpOptionEnumType::Unknown)
  ------------------
  |  Branch (207:7): [True: 0, False: 110k]
  ------------------
  208|      0|		{
  209|      0|			offset = sizeof(tcphdr);
  210|      0|		}
  211|   110k|		else
  212|   110k|		{
  213|   110k|			const TcpOption prevOpt = getTcpOption(prevOptionType);
  214|   110k|			if (prevOpt.isNull())
  ------------------
  |  Branch (214:8): [True: 65.0k, False: 45.5k]
  ------------------
  215|  65.0k|			{
  216|  65.0k|				PCPP_LOG_ERROR("Previous option of type " << static_cast<int>(prevOptionType)
  ------------------
  |  |  444|  65.0k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|  65.0k|	do                                                                                                                 \
  |  |  |  |  414|  65.0k|	{                                                                                                                  \
  |  |  |  |  415|  65.0k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  65.0k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  65.0k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 65.0k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|  65.0k|		{                                                                                                              \
  |  |  |  |  418|  65.0k|			auto ctx =                                                                                                 \
  |  |  |  |  419|  65.0k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  65.0k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|  65.0k|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|  65.0k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|  65.0k|		}                                                                                                              \
  |  |  |  |  423|  65.0k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 65.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  217|  65.0k|				                                          << " not found, cannot add a new TCP option");
  218|  65.0k|				return TcpOption(nullptr);
  219|  65.0k|			}
  220|       |
  221|  45.5k|			offset = prevOpt.getRecordBasePtr() + prevOpt.getTotalSize() - m_Data;
  222|  45.5k|		}
  223|       |
  224|  45.5k|		return addTcpOptionAt(optionBuilder, offset);
  225|   110k|	}
_ZN4pcpp8TcpLayer14addTcpOptionAtERKNS_16TcpOptionBuilderEi:
  273|  45.5k|	{
  274|  45.5k|		TcpOption newOption = optionBuilder.build();
  275|  45.5k|		if (newOption.isNull())
  ------------------
  |  Branch (275:7): [True: 0, False: 45.5k]
  ------------------
  276|      0|			return newOption;
  277|       |
  278|       |		// calculate total TCP option size
  279|  45.5k|		TcpOption curOpt = getFirstTcpOption();
  280|  45.5k|		size_t totalOptSize = 0;
  281|   213k|		while (!curOpt.isNull())
  ------------------
  |  Branch (281:10): [True: 167k, False: 45.5k]
  ------------------
  282|   167k|		{
  283|   167k|			totalOptSize += curOpt.getTotalSize();
  284|   167k|			curOpt = getNextTcpOption(curOpt);
  285|   167k|		}
  286|  45.5k|		totalOptSize += newOption.getTotalSize();
  287|       |
  288|  45.5k|		size_t sizeToExtend = newOption.getTotalSize();
  289|       |
  290|  45.5k|		if (!extendLayer(offset, sizeToExtend))
  ------------------
  |  Branch (290:7): [True: 0, False: 45.5k]
  ------------------
  291|      0|		{
  292|      0|			PCPP_LOG_ERROR("Could not extend TcpLayer in [" << sizeToExtend << "] bytes");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  293|      0|			newOption.purgeRecordData();
  294|      0|			return TcpOption(nullptr);
  295|      0|		}
  296|       |
  297|  45.5k|		memcpy(m_Data + offset, newOption.getRecordBasePtr(), newOption.getTotalSize());
  298|       |
  299|  45.5k|		newOption.purgeRecordData();
  300|       |
  301|  45.5k|		adjustTcpOptionTrailer(totalOptSize);
  302|       |
  303|  45.5k|		m_OptionReader.changeTLVRecordCount(1);
  304|       |
  305|  45.5k|		uint8_t* newOptPtr = m_Data + offset;
  306|       |
  307|  45.5k|		return TcpOption(newOptPtr);
  308|  45.5k|	}
_ZN4pcpp8TcpLayer22adjustTcpOptionTrailerEm:
  311|  45.5k|	{
  312|  45.5k|		int newNumberOfTrailingBytes = 0;
  313|   179k|		while ((totalOptSize + newNumberOfTrailingBytes) % 4 != 0)
  ------------------
  |  Branch (313:10): [True: 133k, False: 45.5k]
  ------------------
  314|   133k|			newNumberOfTrailingBytes++;
  315|       |
  316|  45.5k|		if (newNumberOfTrailingBytes < m_NumOfTrailingBytes)
  ------------------
  |  Branch (316:7): [True: 0, False: 45.5k]
  ------------------
  317|      0|			shortenLayer(sizeof(tcphdr) + totalOptSize, m_NumOfTrailingBytes - newNumberOfTrailingBytes - 1);
  318|  45.5k|		else if (newNumberOfTrailingBytes > m_NumOfTrailingBytes)
  ------------------
  |  Branch (318:12): [True: 45.2k, False: 210]
  ------------------
  319|  45.2k|			extendLayer(sizeof(tcphdr) + totalOptSize, newNumberOfTrailingBytes - m_NumOfTrailingBytes);
  320|       |
  321|  45.5k|		m_NumOfTrailingBytes = newNumberOfTrailingBytes;
  322|       |
  323|   179k|		for (int i = 0; i < m_NumOfTrailingBytes; i++)
  ------------------
  |  Branch (323:19): [True: 133k, False: 45.5k]
  ------------------
  324|   133k|			m_Data[sizeof(tcphdr) + totalOptSize + i] = TcpOptionDummy;
  325|       |
  326|  45.5k|		getTcpHeader()->dataOffset = (sizeof(tcphdr) + totalOptSize + m_NumOfTrailingBytes) / 4;
  327|  45.5k|	}
_ZN4pcpp8TcpLayer17calculateChecksumEb:
  330|   110k|	{
  331|   110k|		tcphdr* tcpHdr = getTcpHeader();
  332|   110k|		uint16_t checksumRes = 0;
  333|   110k|		const uint16_t currChecksumValue = tcpHdr->headerChecksum;
  334|       |
  335|   110k|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (335:7): [True: 110k, False: 0]
  ------------------
  336|   110k|		{
  337|   110k|			tcpHdr->headerChecksum = 0;
  338|   110k|			PCPP_LOG_DEBUG("TCP data len = " << m_DataLen);
  ------------------
  |  |  426|   110k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|   110k|	do                                                                                                                 \
  |  |  |  |  414|   110k|	{                                                                                                                  \
  |  |  |  |  415|   110k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|   110k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|   110k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 110k]
  |  |  |  |  ------------------
  |  |  |  |  417|   110k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|   110k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 110k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  339|       |
  340|   110k|			if (m_PrevLayer->getProtocol() == IPv4)
  ------------------
  |  Branch (340:8): [True: 84.4k, False: 26.0k]
  ------------------
  341|  84.4k|			{
  342|  84.4k|				const IPv4Address srcIP = static_cast<IPv4Layer*>(m_PrevLayer)->getSrcIPv4Address();
  343|  84.4k|				const IPv4Address dstIP = static_cast<IPv4Layer*>(m_PrevLayer)->getDstIPv4Address();
  344|       |
  345|  84.4k|				checksumRes =
  346|  84.4k|				    pcpp::computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(tcpHdr), getDataLen(),
  347|  84.4k|				                                   IPAddress::IPv4AddressType, PACKETPP_IPPROTO_TCP, srcIP, dstIP);
  348|       |
  349|  84.4k|				PCPP_LOG_DEBUG("calculated IPv4 TCP checksum = 0x" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  426|  84.4k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|  84.4k|	do                                                                                                                 \
  |  |  |  |  414|  84.4k|	{                                                                                                                  \
  |  |  |  |  415|  84.4k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  84.4k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  84.4k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 84.4k]
  |  |  |  |  ------------------
  |  |  |  |  417|  84.4k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|  84.4k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 84.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  350|  84.4k|			}
  351|  26.0k|			else if (m_PrevLayer->getProtocol() == IPv6)
  ------------------
  |  Branch (351:13): [True: 26.0k, False: 0]
  ------------------
  352|  26.0k|			{
  353|  26.0k|				const IPv6Address srcIP = static_cast<IPv6Layer*>(m_PrevLayer)->getSrcIPv6Address();
  354|  26.0k|				const IPv6Address dstIP = static_cast<IPv6Layer*>(m_PrevLayer)->getDstIPv6Address();
  355|       |
  356|  26.0k|				checksumRes = computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(tcpHdr), getDataLen(),
  357|  26.0k|				                                       IPAddress::IPv6AddressType, PACKETPP_IPPROTO_TCP, srcIP, dstIP);
  358|       |
  359|  26.0k|				PCPP_LOG_DEBUG("calculated IPv6 TCP checksum = 0xX" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  426|  26.0k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|  26.0k|	do                                                                                                                 \
  |  |  |  |  414|  26.0k|	{                                                                                                                  \
  |  |  |  |  415|  26.0k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  26.0k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  26.0k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 26.0k]
  |  |  |  |  ------------------
  |  |  |  |  417|  26.0k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|  26.0k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 26.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  360|  26.0k|			}
  361|   110k|		}
  362|       |
  363|   110k|		if (writeResultToPacket)
  ------------------
  |  Branch (363:7): [True: 110k, False: 0]
  ------------------
  364|   110k|			tcpHdr->headerChecksum = htobe16(checksumRes);
  365|      0|		else
  366|      0|			tcpHdr->headerChecksum = currChecksumValue;
  367|       |
  368|   110k|		return checksumRes;
  369|   110k|	}
_ZN4pcpp8TcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  381|   576k|	    : Layer(data, dataLen, prevLayer, packet, TCP)
  382|   576k|	{
  383|   576k|		m_NumOfTrailingBytes = 0;
  384|   576k|	}
_ZN4pcpp8TcpLayer13copyLayerDataERKS0_:
  399|   110k|	{
  400|   110k|		m_OptionReader = other.m_OptionReader;
  401|   110k|		m_NumOfTrailingBytes = other.m_NumOfTrailingBytes;
  402|   110k|	}
_ZN4pcpp8TcpLayerC2ERKS0_:
  404|   110k|	TcpLayer::TcpLayer(const TcpLayer& other) : Layer(other)
  405|   110k|	{
  406|   110k|		copyLayerData(other);
  407|   110k|	}
_ZN4pcpp8TcpLayer14parseNextLayerEv:
  419|   576k|	{
  420|   576k|		const size_t headerLen = getHeaderLen();
  421|   576k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (421:7): [True: 57.9k, False: 518k]
  ------------------
  422|  57.9k|			return;
  423|       |
  424|   518k|		uint8_t* payload = m_Data + headerLen;
  425|   518k|		const size_t payloadLen = m_DataLen - headerLen;
  426|   518k|		const uint16_t portDst = getDstPort();
  427|   518k|		const uint16_t portSrc = getSrcPort();
  428|   518k|		const char* payloadChar = reinterpret_cast<const char*>(payload);
  429|       |
  430|   518k|		if (HttpMessage::isHttpPort(portDst) &&
  ------------------
  |  Branch (430:7): [True: 89.3k, False: 429k]
  ------------------
  431|  89.3k|		    HttpRequestFirstLine::parseMethod(payloadChar, payloadLen) != HttpRequestLayer::HttpMethodUnknown)
  ------------------
  |  Branch (431:7): [True: 75.4k, False: 13.8k]
  ------------------
  432|  75.4k|		{
  433|  75.4k|			constructNextLayer<HttpRequestLayer>(payload, payloadLen, getAttachedPacket());
  434|  75.4k|		}
  435|   443k|		else if (HttpMessage::isHttpPort(portSrc) &&
  ------------------
  |  Branch (435:12): [True: 22.3k, False: 421k]
  |  Branch (435:12): [True: 14.1k, False: 429k]
  ------------------
  436|  22.3k|		         HttpResponseFirstLine::parseVersion(payloadChar, payloadLen) != HttpVersion::HttpVersionUnknown &&
  ------------------
  |  Branch (436:12): [True: 14.3k, False: 8.04k]
  ------------------
  437|  14.3k|		         !HttpResponseFirstLine::parseStatusCode(payloadChar, payloadLen).isUnsupportedCode())
  ------------------
  |  Branch (437:12): [True: 14.1k, False: 189]
  ------------------
  438|  14.1k|		{
  439|  14.1k|			constructNextLayer<HttpResponseLayer>(payload, payloadLen, getAttachedPacket());
  440|  14.1k|		}
  441|   429k|		else if (SSLLayer::IsSSLMessage(portSrc, portDst, payload, payloadLen))
  ------------------
  |  Branch (441:12): [True: 188k, False: 240k]
  ------------------
  442|   188k|		{
  443|   188k|			constructNextLayerFromFactory(SSLLayer::createSSLMessage, payload, payloadLen);
  444|   188k|		}
  445|   240k|		else if (SipLayer::isSipPort(portDst) || SipLayer::isSipPort(portSrc))
  ------------------
  |  Branch (445:12): [True: 3.27k, False: 237k]
  |  Branch (445:44): [True: 0, False: 237k]
  ------------------
  446|  3.27k|		{
  447|  3.27k|			if (SipRequestFirstLine::parseMethod(payloadChar, payloadLen) != SipRequestLayer::SipMethodUnknown)
  ------------------
  |  Branch (447:8): [True: 0, False: 3.27k]
  ------------------
  448|      0|			{
  449|      0|				constructNextLayer<SipRequestLayer>(payload, payloadLen, getAttachedPacket());
  450|      0|			}
  451|  3.27k|			else if (SipResponseFirstLine::parseStatusCode(payloadChar, payloadLen) !=
  ------------------
  |  Branch (451:13): [True: 2.89k, False: 380]
  ------------------
  452|  3.27k|			         SipResponseLayer::SipStatusCodeUnknown)
  453|  2.89k|			{
  454|  2.89k|				constructNextLayer<SipResponseLayer>(payload, payloadLen, getAttachedPacket());
  455|  2.89k|			}
  456|    380|			else
  457|    380|			{
  458|    380|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  459|    380|			}
  460|  3.27k|		}
  461|   237k|		else if (BgpLayer::isBgpPort(portSrc, portDst))
  ------------------
  |  Branch (461:12): [True: 30.8k, False: 206k]
  ------------------
  462|  30.8k|		{
  463|  30.8k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(BgpLayer::parseBgpLayer, payload, payloadLen);
  464|  30.8k|		}
  465|   206k|		else if (SSHLayer::isSSHPort(portSrc, portDst))
  ------------------
  |  Branch (465:12): [True: 15.1k, False: 191k]
  ------------------
  466|  15.1k|		{
  467|  15.1k|			constructNextLayerFromFactory(SSHLayer::createSSHMessage, payload, payloadLen);
  468|  15.1k|		}
  469|   191k|		else if (DnsLayer::isDataValid(payload, payloadLen, true) &&
  ------------------
  |  Branch (469:12): [True: 134k, False: 56.5k]
  ------------------
  470|   134k|		         (DnsLayer::isDnsPort(portDst) || DnsLayer::isDnsPort(portSrc)))
  ------------------
  |  Branch (470:13): [True: 2.99k, False: 131k]
  |  Branch (470:45): [True: 268, False: 131k]
  ------------------
  471|  3.26k|		{
  472|  3.26k|			constructNextLayer<DnsOverTcpLayer>(payload, payloadLen, getAttachedPacket());
  473|  3.26k|		}
  474|   187k|		else if (TelnetLayer::isDataValid(payload, payloadLen) &&
  ------------------
  |  Branch (474:12): [True: 187k, False: 0]
  ------------------
  475|   187k|		         (TelnetLayer::isTelnetPort(portDst) || TelnetLayer::isTelnetPort(portSrc)))
  ------------------
  |  Branch (475:13): [True: 9.18k, False: 178k]
  |  Branch (475:51): [True: 73, False: 178k]
  ------------------
  476|  9.25k|		{
  477|  9.25k|			constructNextLayer<TelnetLayer>(payload, payloadLen, getAttachedPacket());
  478|  9.25k|		}
  479|   178k|		else if (FtpLayer::isFtpPort(portSrc) && FtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (479:12): [True: 13.6k, False: 165k]
  |  Branch (479:44): [True: 13.2k, False: 375]
  ------------------
  480|  13.2k|		{
  481|  13.2k|			constructNextLayer<FtpResponseLayer>(payload, payloadLen, getAttachedPacket());
  482|  13.2k|		}
  483|   165k|		else if (FtpLayer::isFtpPort(portDst) && FtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (483:12): [True: 7.05k, False: 158k]
  |  Branch (483:44): [True: 6.82k, False: 236]
  ------------------
  484|  6.82k|		{
  485|  6.82k|			constructNextLayer<FtpRequestLayer>(payload, payloadLen, getAttachedPacket());
  486|  6.82k|		}
  487|   158k|		else if (FtpLayer::isFtpDataPort(portSrc) || FtpLayer::isFtpDataPort(portDst))
  ------------------
  |  Branch (487:12): [True: 331, False: 158k]
  |  Branch (487:48): [True: 1.12k, False: 157k]
  ------------------
  488|  1.45k|		{
  489|  1.45k|			constructNextLayer<FtpDataLayer>(payload, payloadLen, getAttachedPacket());
  490|  1.45k|		}
  491|   157k|		else if ((DoIpLayer::isDoIpPort(portSrc) || DoIpLayer::isDoIpPort(portDst)) &&
  ------------------
  |  Branch (491:13): [True: 25, False: 157k]
  |  Branch (491:47): [True: 10, False: 157k]
  ------------------
  492|     35|		         (DoIpLayer::isDataValid(payload, payloadLen)))
  ------------------
  |  Branch (492:12): [True: 0, False: 35]
  ------------------
  493|      0|		{
  494|      0|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(DoIpLayer::parseDoIpLayer, payload, payloadLen);
  495|      0|		}
  496|   157k|		else if (SomeIpLayer::isSomeIpPort(portSrc) || SomeIpLayer::isSomeIpPort(portDst))
  ------------------
  |  Branch (496:12): [True: 55, False: 157k]
  |  Branch (496:50): [True: 265, False: 156k]
  ------------------
  497|    320|		{
  498|    320|			constructNextLayerFromFactory(SomeIpLayer::parseSomeIpLayer, payload, payloadLen);
  499|    320|		}
  500|   156k|		else if (TpktLayer::isDataValid(payload, payloadLen) && TpktLayer::isTpktPort(portSrc, portDst))
  ------------------
  |  Branch (500:12): [True: 149k, False: 7.54k]
  |  Branch (500:59): [True: 15.3k, False: 133k]
  ------------------
  501|  15.3k|		{
  502|  15.3k|			constructNextLayer<TpktLayer>(payload, payloadLen, getAttachedPacket());
  503|  15.3k|		}
  504|   141k|		else if (SmtpLayer::isSmtpPort(portSrc) && SmtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (504:12): [True: 6.16k, False: 135k]
  |  Branch (504:46): [True: 3.76k, False: 2.39k]
  ------------------
  505|  3.76k|		{
  506|  3.76k|			constructNextLayer<SmtpResponseLayer>(payload, payloadLen, getAttachedPacket());
  507|  3.76k|		}
  508|   137k|		else if (SmtpLayer::isSmtpPort(portDst) && SmtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (508:12): [True: 12.1k, False: 125k]
  |  Branch (508:46): [True: 10.1k, False: 1.97k]
  ------------------
  509|  10.1k|		{
  510|  10.1k|			constructNextLayer<SmtpRequestLayer>(payload, payloadLen, getAttachedPacket());
  511|  10.1k|		}
  512|   127k|		else if (LdapLayer::isLdapPort(portDst) || LdapLayer::isLdapPort(portSrc))
  ------------------
  |  Branch (512:12): [True: 10, False: 127k]
  |  Branch (512:46): [True: 1.66k, False: 125k]
  ------------------
  513|  1.67k|		{
  514|  1.67k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(LdapLayer::parseLdapMessage, payload,
  515|  1.67k|			                                                           payloadLen);
  516|  1.67k|		}
  517|   125k|		else if (PostgresLayer::isPostgresPort(portDst))
  ------------------
  |  Branch (517:12): [True: 0, False: 125k]
  ------------------
  518|      0|		{
  519|      0|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(PostgresLayer::parsePostgresFrontendMessages,
  520|      0|			                                                           payload, payloadLen);
  521|      0|		}
  522|   125k|		else if (PostgresLayer::isPostgresPort(portSrc))
  ------------------
  |  Branch (522:12): [True: 35, False: 125k]
  ------------------
  523|     35|		{
  524|     35|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(PostgresLayer::parsePostgresBackendMessages,
  525|     35|			                                                           payload, payloadLen);
  526|     35|		}
  527|   125k|		else if (MySqlLayer::isMySqlPort(portSrc))
  ------------------
  |  Branch (527:12): [True: 5.00k, False: 120k]
  ------------------
  528|  5.00k|		{
  529|  5.00k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(MySqlLayer::parseMySqlServerMessage, payload,
  530|  5.00k|			                                                           payloadLen);
  531|  5.00k|		}
  532|   120k|		else if (MySqlLayer::isMySqlPort(portDst))
  ------------------
  |  Branch (532:12): [True: 12.2k, False: 108k]
  ------------------
  533|  12.2k|		{
  534|  12.2k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(MySqlLayer::parseMySqlClientMessage, payload,
  535|  12.2k|			                                                           payloadLen);
  536|  12.2k|		}
  537|   108k|		else if ((GtpV2Layer::isGTPv2Port(portDst) || GtpV2Layer::isGTPv2Port(portSrc)) &&
  ------------------
  |  Branch (537:13): [True: 15, False: 108k]
  |  Branch (537:49): [True: 0, False: 108k]
  ------------------
  538|     15|		         GtpV2Layer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (538:12): [True: 0, False: 15]
  ------------------
  539|      0|		{
  540|      0|			constructNextLayer<GtpV2Layer>(payload, payloadLen, getAttachedPacket());
  541|      0|		}
  542|   108k|		else if (ModbusLayer::isModbusPort(portDst) && ModbusLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (542:12): [True: 1.68k, False: 106k]
  |  Branch (542:50): [True: 1.68k, False: 0]
  ------------------
  543|  1.68k|		{
  544|  1.68k|			constructNextLayer<ModbusLayer>(payload, payloadLen, getAttachedPacket());
  545|  1.68k|		}
  546|   106k|		else
  547|   106k|		{
  548|   106k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  549|   106k|		}
  550|   518k|	}
_ZN4pcpp8TcpLayer22computeCalculateFieldsEv:
  553|   110k|	{
  554|   110k|		tcphdr* tcpHdr = getTcpHeader();
  555|       |
  556|   110k|		tcpHdr->dataOffset = getHeaderLen() >> 2;
  557|   110k|		calculateChecksum(true);
  558|   110k|	}
_ZNK4pcpp8TcpLayer8toStringEv:
  561|   221k|	{
  562|   221k|		const tcphdr* hdr = getTcpHeader();
  563|   221k|		std::string result = "TCP Layer, ";
  564|   221k|		if (hdr->synFlag)
  ------------------
  |  Branch (564:7): [True: 17.5k, False: 203k]
  ------------------
  565|  17.5k|		{
  566|  17.5k|			if (hdr->ackFlag)
  ------------------
  |  Branch (566:8): [True: 6.81k, False: 10.6k]
  ------------------
  567|  6.81k|				result += "[SYN, ACK], ";
  568|  10.6k|			else
  569|  10.6k|				result += "[SYN], ";
  570|  17.5k|		}
  571|   203k|		else if (hdr->finFlag)
  ------------------
  |  Branch (571:12): [True: 8.71k, False: 194k]
  ------------------
  572|  8.71k|		{
  573|  8.71k|			if (hdr->ackFlag)
  ------------------
  |  Branch (573:8): [True: 6.58k, False: 2.12k]
  ------------------
  574|  6.58k|				result += "[FIN, ACK], ";
  575|  2.12k|			else
  576|  2.12k|				result += "[FIN], ";
  577|  8.71k|		}
  578|   194k|		else if (hdr->ackFlag)
  ------------------
  |  Branch (578:12): [True: 192k, False: 2.85k]
  ------------------
  579|   192k|			result += "[ACK], ";
  580|       |
  581|   221k|		std::ostringstream srcPortStream;
  582|   221k|		srcPortStream << getSrcPort();
  583|   221k|		std::ostringstream dstPortStream;
  584|   221k|		dstPortStream << getDstPort();
  585|   221k|		result += "Src port: " + srcPortStream.str() + ", Dst port: " + dstPortStream.str();
  586|       |
  587|   221k|		return result;
  588|   221k|	}

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

_ZN4pcpp18tbp_my_own_strnlenEPKcm:
   13|  73.1k|	{
   14|  73.1k|		if (s == nullptr || maxlen == 0)
  ------------------
  |  Branch (14:7): [True: 0, False: 73.1k]
  |  Branch (14:23): [True: 20.8k, False: 52.3k]
  ------------------
   15|  20.8k|			return 0;
   16|       |
   17|  52.3k|		size_t i = 0;
   18|   630k|		for (; (i < maxlen) && s[i]; ++i)
  ------------------
  |  Branch (18:10): [True: 623k, False: 7.04k]
  |  Branch (18:26): [True: 578k, False: 45.2k]
  ------------------
   19|   578k|			;
   20|  52.3k|		return i;
   21|  73.1k|	}
_ZN4pcpp24TextBasedProtocolMessageC2EPhmPNS_5LayerEPNS_6PacketEh:
   27|   131k|	    : Layer(data, dataLen, prevLayer, packet, protocol), m_FieldList(nullptr), m_LastField(nullptr),
   28|   131k|	      m_FieldsOffset(0)
   29|   131k|	{}
_ZN4pcpp24TextBasedProtocolMessageC2ERKS0_:
   31|  2.14k|	TextBasedProtocolMessage::TextBasedProtocolMessage(const TextBasedProtocolMessage& other) : Layer(other)
   32|  2.14k|	{
   33|  2.14k|		copyDataFrom(other);
   34|  2.14k|	}
_ZN4pcpp24TextBasedProtocolMessage12copyDataFromERKS0_:
   53|  2.14k|	{
   54|       |		// copy field list
   55|  2.14k|		if (other.m_FieldList != nullptr)
  ------------------
  |  Branch (55:7): [True: 2.14k, False: 0]
  ------------------
   56|  2.14k|		{
   57|  2.14k|			m_FieldList = new HeaderField(*(other.m_FieldList));
   58|  2.14k|			HeaderField* curField = m_FieldList;
   59|  2.14k|			curField->attachToTextBasedProtocolMessage(this, other.m_FieldList->m_NameOffsetInMessage);
   60|  2.14k|			HeaderField* curOtherField = other.m_FieldList;
   61|  16.3k|			while (curOtherField->getNextField() != nullptr)
  ------------------
  |  Branch (61:11): [True: 14.2k, False: 2.14k]
  ------------------
   62|  14.2k|			{
   63|  14.2k|				HeaderField* newField = new HeaderField(*(curOtherField->getNextField()));
   64|  14.2k|				newField->attachToTextBasedProtocolMessage(this, curOtherField->getNextField()->m_NameOffsetInMessage);
   65|  14.2k|				curField->setNextField(newField);
   66|  14.2k|				curField = curField->getNextField();
   67|  14.2k|				curOtherField = curOtherField->getNextField();
   68|  14.2k|			}
   69|       |
   70|  2.14k|			m_LastField = curField;
   71|  2.14k|		}
   72|      0|		else
   73|      0|		{
   74|      0|			m_FieldList = nullptr;
   75|      0|			m_LastField = nullptr;
   76|      0|		}
   77|       |
   78|  2.14k|		m_FieldsOffset = other.m_FieldsOffset;
   79|       |
   80|       |		// copy map
   81|  18.5k|		for (HeaderField* field = m_FieldList; field != nullptr; field = field->getNextField())
  ------------------
  |  Branch (81:42): [True: 16.3k, False: 2.14k]
  ------------------
   82|  16.3k|		{
   83|  16.3k|			m_FieldNameToFieldMap.insert(std::pair<std::string, HeaderField*>(field->getFieldName(), field));
   84|  16.3k|		}
   85|  2.14k|	}
_ZN4pcpp24TextBasedProtocolMessage11parseFieldsEv:
   88|   131k|	{
   89|   131k|		char nameValueSeparator = getHeaderFieldNameValueSeparator();
   90|   131k|		bool spacesAllowedBetweenNameAndValue = spacesAllowedBetweenHeaderFieldNameAndValue();
   91|       |
   92|   131k|		HeaderField* firstField =
   93|   131k|		    new HeaderField(this, m_FieldsOffset, nameValueSeparator, spacesAllowedBetweenNameAndValue);
   94|   131k|		PCPP_LOG_DEBUG("Added new field: name='" << firstField->getFieldName()
  ------------------
  |  |  426|   131k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|   131k|	do                                                                                                                 \
  |  |  |  |  414|   131k|	{                                                                                                                  \
  |  |  |  |  415|   131k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|   131k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   131k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 131k]
  |  |  |  |  ------------------
  |  |  |  |  417|   131k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|   131k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 131k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   95|   131k|		                                         << "'; offset in packet=" << firstField->m_NameOffsetInMessage
   96|   131k|		                                         << "; length=" << firstField->getFieldSize());
   97|   131k|		PCPP_LOG_DEBUG("     Field value = " << firstField->getFieldValue());
  ------------------
  |  |  426|   131k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|   131k|	do                                                                                                                 \
  |  |  |  |  414|   131k|	{                                                                                                                  \
  |  |  |  |  415|   131k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|   131k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   131k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 131k]
  |  |  |  |  ------------------
  |  |  |  |  417|   131k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|   131k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 131k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   98|       |
   99|   131k|		if (m_FieldList == nullptr)
  ------------------
  |  Branch (99:7): [True: 131k, False: 0]
  ------------------
  100|   131k|			m_FieldList = firstField;
  101|      0|		else
  102|      0|			m_FieldList->setNextField(firstField);
  103|       |
  104|   131k|		std::string fieldName = firstField->getFieldName();
  105|   131k|		std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  106|   131k|		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|   131k|		HeaderField* curField = m_FieldList;
  110|   131k|		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|   728k|		while (!curField->isEndOfHeader() && curOffset + curField->getFieldSize() < m_DataLen)
  ------------------
  |  Branch (114:10): [True: 628k, False: 99.5k]
  |  Branch (114:40): [True: 618k, False: 9.54k]
  ------------------
  115|   618k|		{
  116|   618k|			curOffset += curField->getFieldSize();
  117|   618k|			HeaderField* newField =
  118|   618k|			    new HeaderField(this, curOffset, nameValueSeparator, spacesAllowedBetweenNameAndValue);
  119|   618k|			if (newField->getFieldSize() > 0)
  ------------------
  |  Branch (119:8): [True: 596k, False: 22.0k]
  ------------------
  120|   596k|			{
  121|   596k|				PCPP_LOG_DEBUG("Added new field: name='" << newField->getFieldName()
  ------------------
  |  |  426|   596k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|   596k|	do                                                                                                                 \
  |  |  |  |  414|   596k|	{                                                                                                                  \
  |  |  |  |  415|   596k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|   596k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   596k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 596k]
  |  |  |  |  ------------------
  |  |  |  |  417|   596k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|   596k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 596k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  122|   596k|				                                         << "'; offset in packet=" << newField->m_NameOffsetInMessage
  123|   596k|				                                         << "; length=" << newField->getFieldSize());
  124|   596k|				PCPP_LOG_DEBUG("     Field value = " << newField->getFieldValue());
  ------------------
  |  |  426|   596k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|   596k|	do                                                                                                                 \
  |  |  |  |  414|   596k|	{                                                                                                                  \
  |  |  |  |  415|   596k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|   596k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   596k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 596k]
  |  |  |  |  ------------------
  |  |  |  |  417|   596k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|   596k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 596k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  125|   596k|				curField->setNextField(newField);
  126|   596k|				curField = newField;
  127|   596k|				fieldName = newField->getFieldName();
  128|   596k|				std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  129|   596k|				m_FieldNameToFieldMap.insert(std::pair<std::string, HeaderField*>(fieldName, newField));
  130|   596k|			}
  131|  22.0k|			else
  132|  22.0k|			{
  133|  22.0k|				delete newField;
  134|  22.0k|				break;
  135|  22.0k|			}
  136|   618k|		}
  137|       |
  138|   131k|		m_LastField = curField;
  139|   131k|	}
_ZN4pcpp24TextBasedProtocolMessageD2Ev:
  142|   133k|	{
  143|   878k|		while (m_FieldList != nullptr)
  ------------------
  |  Branch (143:10): [True: 745k, False: 133k]
  ------------------
  144|   745k|		{
  145|   745k|			HeaderField* temp = m_FieldList;
  146|   745k|			m_FieldList = m_FieldList->getNextField();
  147|   745k|			delete temp;
  148|   745k|		}
  149|   133k|	}
_ZN4pcpp24TextBasedProtocolMessage8addFieldERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  152|  4.84k|	{
  153|  4.84k|		HeaderField newField(fieldName, fieldValue, getHeaderFieldNameValueSeparator(),
  154|  4.84k|		                     spacesAllowedBetweenHeaderFieldNameAndValue());
  155|  4.84k|		return addField(newField);
  156|  4.84k|	}
_ZN4pcpp24TextBasedProtocolMessage8addFieldERKNS_11HeaderFieldE:
  159|  4.84k|	{
  160|  4.84k|		return insertField(m_LastField, newField);
  161|  4.84k|	}
_ZN4pcpp24TextBasedProtocolMessage11insertFieldEPNS_11HeaderFieldERKS1_:
  195|  4.84k|	{
  196|  4.84k|		if (newField.m_TextBasedProtocolMessage != nullptr)
  ------------------
  |  Branch (196:7): [True: 0, False: 4.84k]
  ------------------
  197|      0|		{
  198|      0|			PCPP_LOG_ERROR("This field is already associated with another message");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  199|      0|			return nullptr;
  200|      0|		}
  201|       |
  202|  4.84k|		if (prevField != nullptr && prevField->getFieldName() == PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER)
  ------------------
  |  |   12|  4.84k|#define PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER ""
  ------------------
  |  Branch (202:7): [True: 4.84k, False: 0]
  |  Branch (202:7): [True: 814, False: 4.03k]
  |  Branch (202:31): [True: 814, False: 4.03k]
  ------------------
  203|    814|		{
  204|    814|			PCPP_LOG_ERROR("Cannot add a field after end of header");
  ------------------
  |  |  444|    814|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    814|	do                                                                                                                 \
  |  |  |  |  414|    814|	{                                                                                                                  \
  |  |  |  |  415|    814|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    814|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|    814|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 814, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    814|		{                                                                                                              \
  |  |  |  |  418|    814|			auto ctx =                                                                                                 \
  |  |  |  |  419|    814|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|    814|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    814|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    814|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    814|		}                                                                                                              \
  |  |  |  |  423|    814|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 814]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  205|    814|			return nullptr;
  206|    814|		}
  207|       |
  208|  4.03k|		HeaderField* newFieldToAdd = new HeaderField(newField);
  209|       |
  210|  4.03k|		int newFieldOffset = m_FieldsOffset;
  211|  4.03k|		if (prevField != nullptr)
  ------------------
  |  Branch (211:7): [True: 4.03k, False: 0]
  ------------------
  212|  4.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|  4.03k|		if (!extendLayer(newFieldOffset, newFieldToAdd->getFieldSize()))
  ------------------
  |  Branch (215:7): [True: 2.34k, False: 1.68k]
  ------------------
  216|  2.34k|		{
  217|  2.34k|			PCPP_LOG_ERROR("Cannot extend layer to insert the header");
  ------------------
  |  |  444|  2.34k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|  2.34k|	do                                                                                                                 \
  |  |  |  |  414|  2.34k|	{                                                                                                                  \
  |  |  |  |  415|  2.34k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  2.34k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|  2.34k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 2.34k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|  2.34k|		{                                                                                                              \
  |  |  |  |  418|  2.34k|			auto ctx =                                                                                                 \
  |  |  |  |  419|  2.34k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|  2.34k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|  2.34k|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|  2.34k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|  2.34k|		}                                                                                                              \
  |  |  |  |  423|  2.34k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 2.34k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  218|  2.34k|			delete newFieldToAdd;
  219|  2.34k|			return nullptr;
  220|  2.34k|		}
  221|       |
  222|  1.68k|		HeaderField* curField = m_FieldList;
  223|  1.68k|		if (prevField != nullptr)
  ------------------
  |  Branch (223:7): [True: 1.68k, False: 0]
  ------------------
  224|  1.68k|			curField = prevField->getNextField();
  225|       |
  226|       |		// go over all fields after prevField and update their offsets
  227|  1.68k|		shiftFieldsOffset(curField, newFieldToAdd->getFieldSize());
  228|       |
  229|       |		// copy new field data to message
  230|  1.68k|		memcpy(m_Data + newFieldOffset, newFieldToAdd->m_NewFieldData, newFieldToAdd->getFieldSize());
  231|       |
  232|       |		// attach new field to message
  233|  1.68k|		newFieldToAdd->attachToTextBasedProtocolMessage(this, newFieldOffset);
  234|       |
  235|       |		// insert field into fields link list
  236|  1.68k|		if (prevField == nullptr)
  ------------------
  |  Branch (236:7): [True: 0, False: 1.68k]
  ------------------
  237|      0|		{
  238|      0|			newFieldToAdd->setNextField(m_FieldList);
  239|      0|			m_FieldList = newFieldToAdd;
  240|      0|		}
  241|  1.68k|		else
  242|  1.68k|		{
  243|  1.68k|			newFieldToAdd->setNextField(prevField->getNextField());
  244|  1.68k|			prevField->setNextField(newFieldToAdd);
  245|  1.68k|		}
  246|       |
  247|       |		// if newField is the last field, update m_LastField
  248|  1.68k|		if (newFieldToAdd->getNextField() == nullptr)
  ------------------
  |  Branch (248:7): [True: 1.68k, False: 0]
  ------------------
  249|  1.68k|			m_LastField = newFieldToAdd;
  250|       |
  251|       |		// insert the new field into name to field map
  252|  1.68k|		std::string fieldName = newFieldToAdd->getFieldName();
  253|  1.68k|		std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  254|  1.68k|		m_FieldNameToFieldMap.insert(std::pair<std::string, HeaderField*>(fieldName, newFieldToAdd));
  255|       |
  256|  1.68k|		return newFieldToAdd;
  257|  4.03k|	}
_ZN4pcpp24TextBasedProtocolMessage11removeFieldENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEi:
  260|  2.14k|	{
  261|  2.14k|		std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  262|       |
  263|  2.14k|		HeaderField* fieldToRemove = nullptr;
  264|       |
  265|  2.14k|		auto range = m_FieldNameToFieldMap.equal_range(fieldName);
  266|  2.14k|		int i = 0;
  267|  2.14k|		for (std::multimap<std::string, HeaderField*>::iterator iter = range.first; iter != range.second; ++iter)
  ------------------
  |  Branch (267:79): [True: 841, False: 1.30k]
  ------------------
  268|    841|		{
  269|    841|			if (i == index)
  ------------------
  |  Branch (269:8): [True: 841, False: 0]
  ------------------
  270|    841|			{
  271|    841|				fieldToRemove = iter->second;
  272|    841|				break;
  273|    841|			}
  274|       |
  275|      0|			i++;
  276|      0|		}
  277|       |
  278|  2.14k|		if (fieldToRemove != nullptr)
  ------------------
  |  Branch (278:7): [True: 841, False: 1.30k]
  ------------------
  279|    841|			return removeField(fieldToRemove);
  280|  1.30k|		else
  281|  1.30k|		{
  282|  1.30k|			PCPP_LOG_ERROR("Cannot find field '" << fieldName << "'");
  ------------------
  |  |  444|  1.30k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|  1.30k|	do                                                                                                                 \
  |  |  |  |  414|  1.30k|	{                                                                                                                  \
  |  |  |  |  415|  1.30k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  1.30k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|  1.30k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 1.30k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|  1.30k|		{                                                                                                              \
  |  |  |  |  418|  1.30k|			auto ctx =                                                                                                 \
  |  |  |  |  419|  1.30k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|  1.30k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|  1.30k|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|  1.30k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|  1.30k|		}                                                                                                              \
  |  |  |  |  423|  1.30k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 1.30k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  283|  1.30k|			return false;
  284|  1.30k|		}
  285|  2.14k|	}
_ZN4pcpp24TextBasedProtocolMessage11removeFieldEPNS_11HeaderFieldE:
  288|    841|	{
  289|    841|		if (fieldToRemove == nullptr)
  ------------------
  |  Branch (289:7): [True: 0, False: 841]
  ------------------
  290|      0|			return true;
  291|       |
  292|    841|		if (fieldToRemove->m_TextBasedProtocolMessage != this)
  ------------------
  |  Branch (292:7): [True: 0, False: 841]
  ------------------
  293|      0|		{
  294|      0|			PCPP_LOG_ERROR("Field isn't associated with this message");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  295|      0|			return false;
  296|      0|		}
  297|       |
  298|    841|		std::string fieldName = fieldToRemove->getFieldName();
  299|       |
  300|       |		// shorten layer and delete this field
  301|    841|		if (!shortenLayer(fieldToRemove->m_NameOffsetInMessage, fieldToRemove->getFieldSize()))
  ------------------
  |  Branch (301:7): [True: 3, False: 838]
  ------------------
  302|      3|		{
  303|      3|			PCPP_LOG_ERROR("Cannot shorten layer");
  ------------------
  |  |  444|      3|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      3|	do                                                                                                                 \
  |  |  |  |  414|      3|	{                                                                                                                  \
  |  |  |  |  415|      3|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      3|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      3|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 3, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      3|		{                                                                                                              \
  |  |  |  |  418|      3|			auto ctx =                                                                                                 \
  |  |  |  |  419|      3|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      3|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      3|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      3|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      3|		}                                                                                                              \
  |  |  |  |  423|      3|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 3]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  304|      3|			return false;
  305|      3|		}
  306|       |
  307|       |		// update offsets of all fields after this field
  308|    838|		HeaderField* curField = fieldToRemove->getNextField();
  309|    838|		shiftFieldsOffset(curField, 0 - fieldToRemove->getFieldSize());
  310|       |
  311|       |		// update fields link list
  312|    838|		if (fieldToRemove == m_FieldList)
  ------------------
  |  Branch (312:7): [True: 292, False: 546]
  ------------------
  313|    292|			m_FieldList = m_FieldList->getNextField();
  314|    546|		else
  315|    546|		{
  316|    546|			curField = m_FieldList;
  317|  3.62k|			while (curField->getNextField() != fieldToRemove)
  ------------------
  |  Branch (317:11): [True: 3.07k, False: 546]
  ------------------
  318|  3.07k|				curField = curField->getNextField();
  319|       |
  320|    546|			curField->setNextField(fieldToRemove->getNextField());
  321|    546|		}
  322|       |
  323|       |		// re-calculate m_LastField if needed
  324|    838|		if (fieldToRemove == m_LastField)
  ------------------
  |  Branch (324:7): [True: 512, False: 326]
  ------------------
  325|    512|		{
  326|    512|			if (m_FieldList == nullptr)
  ------------------
  |  Branch (326:8): [True: 0, False: 512]
  ------------------
  327|      0|				m_LastField = nullptr;
  328|    512|			else
  329|    512|			{
  330|    512|				curField = m_FieldList;
  331|  2.66k|				while (curField->getNextField() != nullptr)
  ------------------
  |  Branch (331:12): [True: 2.15k, False: 512]
  ------------------
  332|  2.15k|					curField = curField->getNextField();
  333|    512|				m_LastField = curField;
  334|    512|			}
  335|    512|		}
  336|       |
  337|       |		// remove the hash entry for this field
  338|    838|		std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  339|    838|		auto range = m_FieldNameToFieldMap.equal_range(fieldName);
  340|    838|		for (std::multimap<std::string, HeaderField*>::iterator iter = range.first; iter != range.second; ++iter)
  ------------------
  |  Branch (340:79): [True: 838, False: 0]
  ------------------
  341|    838|		{
  342|    838|			if (iter->second == fieldToRemove)
  ------------------
  |  Branch (342:8): [True: 838, False: 0]
  ------------------
  343|    838|			{
  344|    838|				m_FieldNameToFieldMap.erase(iter);
  345|    838|				break;
  346|    838|			}
  347|    838|		}
  348|       |
  349|       |		// finally - delete this field
  350|    838|		delete fieldToRemove;
  351|       |
  352|    838|		return true;
  353|    841|	}
_ZN4pcpp24TextBasedProtocolMessage15setFieldsOffsetEi:
  364|   131k|	{
  365|   131k|		validateFieldsOffset(fieldsOffset);
  366|   131k|		m_FieldsOffset = fieldsOffset;
  367|   131k|	}
_ZN4pcpp24TextBasedProtocolMessage17shiftFieldsOffsetEPNS_11HeaderFieldEi:
  379|  4.42k|	{
  380|  15.1k|		for (; fromField != nullptr; fromField = fromField->getNextField())
  ------------------
  |  Branch (380:10): [True: 10.7k, False: 4.42k]
  ------------------
  381|  10.7k|		{
  382|  10.7k|			fromField->m_NameOffsetInMessage += numOfBytesToShift;
  383|  10.7k|			if (fromField->m_ValueOffsetInMessage != -1)
  ------------------
  |  Branch (383:8): [True: 7.88k, False: 2.87k]
  ------------------
  384|  7.88k|				fromField->m_ValueOffsetInMessage += numOfBytesToShift;
  385|  10.7k|		}
  386|  4.42k|	}
_ZNK4pcpp24TextBasedProtocolMessage20validateFieldsOffsetEi:
  389|   131k|	{
  390|   131k|		if (offset < 0 || static_cast<size_t>(offset) > m_DataLen)
  ------------------
  |  Branch (390:7): [True: 0, False: 131k]
  |  Branch (390:21): [True: 0, False: 131k]
  ------------------
  391|      0|			throw std::out_of_range(
  392|      0|			    "Field offset must be greater or equal to zero and less than or equal to the data length");
  393|   131k|	}
_ZNK4pcpp24TextBasedProtocolMessage14getFieldByNameENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEi:
  396|  57.0k|	{
  397|  57.0k|		std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  398|       |
  399|  57.0k|		auto range = m_FieldNameToFieldMap.equal_range(fieldName);
  400|  57.0k|		int i = 0;
  401|   186k|		for (std::multimap<std::string, HeaderField*>::const_iterator iter = range.first; iter != range.second; ++iter)
  ------------------
  |  Branch (401:85): [True: 176k, False: 10.0k]
  ------------------
  402|   176k|		{
  403|   176k|			if (i == index)
  ------------------
  |  Branch (403:8): [True: 46.9k, False: 129k]
  ------------------
  404|  46.9k|				return iter->second;
  405|       |
  406|   129k|			i++;
  407|   129k|		}
  408|       |
  409|  10.0k|		return nullptr;
  410|  57.0k|	}
_ZNK4pcpp24TextBasedProtocolMessage13getFieldCountEv:
  413|  2.14k|	{
  414|  2.14k|		int result = 0;
  415|       |
  416|  2.14k|		HeaderField* curField = getFirstField();
  417|  18.5k|		while (curField != nullptr)
  ------------------
  |  Branch (417:10): [True: 16.3k, False: 2.14k]
  ------------------
  418|  16.3k|		{
  419|  16.3k|			if (!curField->isEndOfHeader())
  ------------------
  |  Branch (419:8): [True: 15.9k, False: 406]
  ------------------
  420|  15.9k|				result++;
  421|  16.3k|			curField = curField->getNextField();
  422|  16.3k|		}
  423|       |
  424|  2.14k|		return result;
  425|  2.14k|	}
_ZN4pcpp24TextBasedProtocolMessage14parseNextLayerEv:
  428|   104k|	{
  429|   104k|		size_t headerLen = getHeaderLen();
  430|   104k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (430:7): [True: 67.5k, False: 37.3k]
  ------------------
  431|  67.5k|			return;
  432|       |
  433|  37.3k|		constructNextLayer<PayloadLayer>(m_Data + headerLen, m_DataLen - headerLen);
  434|  37.3k|	}
_ZNK4pcpp24TextBasedProtocolMessage12getHeaderLenEv:
  437|   184k|	{
  438|   184k|		return m_LastField->m_NameOffsetInMessage + m_LastField->m_FieldSize;
  439|   184k|	}
_ZN4pcpp24TextBasedProtocolMessage22computeCalculateFieldsEv:
  442|  19.1k|	{
  443|       |		// nothing to do for now
  444|  19.1k|	}
_ZN4pcpp11HeaderFieldC2EPNS_24TextBasedProtocolMessageEicb:
  450|   750k|	    : m_NewFieldData(nullptr), m_TextBasedProtocolMessage(TextBasedProtocolMessage),
  451|   750k|	      m_NameOffsetInMessage(offsetInMessage), m_NextField(nullptr), m_NameValueSeparator(nameValueSeparator),
  452|   750k|	      m_SpacesAllowedBetweenNameAndValue(spacesAllowedBetweenNameAndValue)
  453|   750k|	{
  454|   750k|		char* fieldData = reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data + m_NameOffsetInMessage);
  455|   750k|		char* fieldEndPtr = static_cast<char*>(memchr(
  456|   750k|		    fieldData, '\n', m_TextBasedProtocolMessage->m_DataLen - static_cast<size_t>(m_NameOffsetInMessage)));
  457|   750k|		if (fieldEndPtr == nullptr)
  ------------------
  |  Branch (457:7): [True: 73.1k, False: 676k]
  ------------------
  458|  73.1k|			m_FieldSize = tbp_my_own_strnlen(fieldData, m_TextBasedProtocolMessage->m_DataLen -
  459|  73.1k|			                                                static_cast<size_t>(m_NameOffsetInMessage));
  460|   676k|		else
  461|   676k|			m_FieldSize = fieldEndPtr - fieldData + 1;
  462|       |
  463|   750k|		if (m_FieldSize == 0 || (*fieldData) == '\r' || (*fieldData) == '\n')
  ------------------
  |  Branch (463:7): [True: 45.6k, False: 704k]
  |  Branch (463:27): [True: 74.6k, False: 629k]
  |  Branch (463:51): [True: 1.26k, False: 628k]
  ------------------
  464|   121k|		{
  465|   121k|			m_FieldNameSize = -1;
  466|   121k|			m_ValueOffsetInMessage = -1;
  467|   121k|			m_FieldValueSize = -1;
  468|   121k|			m_FieldNameSize = -1;
  469|   121k|			m_IsEndOfHeaderField = true;
  470|   121k|			return;
  471|   121k|		}
  472|   628k|		else
  473|   628k|			m_IsEndOfHeaderField = false;
  474|       |
  475|   628k|		char* fieldValuePtr = static_cast<char*>(
  476|   628k|		    memchr(fieldData, nameValueSeparator,
  477|   628k|		           m_TextBasedProtocolMessage->m_DataLen - static_cast<size_t>(m_NameOffsetInMessage)));
  478|       |		// could not find the position of the separator, meaning field value position is unknown
  479|   628k|		if (fieldValuePtr == nullptr || (fieldEndPtr != nullptr && fieldValuePtr >= fieldEndPtr))
  ------------------
  |  Branch (479:7): [True: 27.4k, False: 601k]
  |  Branch (479:36): [True: 587k, False: 13.2k]
  |  Branch (479:62): [True: 135k, False: 452k]
  ------------------
  480|   163k|		{
  481|   163k|			m_ValueOffsetInMessage = -1;
  482|   163k|			m_FieldValueSize = -1;
  483|   163k|			m_FieldNameSize = m_FieldSize;
  484|   163k|		}
  485|   465k|		else
  486|   465k|		{
  487|   465k|			m_FieldNameSize = fieldValuePtr - fieldData;
  488|       |			// Header field looks like this: <field_name>[separator]<zero or more spaces><field_Value>
  489|       |			// So fieldValuePtr give us the position of the separator. Value offset is the first non-space byte forward
  490|   465k|			fieldValuePtr++;
  491|       |
  492|       |			// reached the end of the packet and value start offset wasn't found
  493|   465k|			if (static_cast<size_t>(fieldValuePtr - reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data)) >=
  ------------------
  |  Branch (493:8): [True: 400, False: 465k]
  ------------------
  494|   465k|			    m_TextBasedProtocolMessage->getDataLen())
  495|    400|			{
  496|    400|				m_ValueOffsetInMessage = -1;
  497|    400|				m_FieldValueSize = -1;
  498|    400|				return;
  499|    400|			}
  500|       |
  501|   465k|			if (spacesAllowedBetweenNameAndValue)
  ------------------
  |  Branch (501:8): [True: 402k, False: 62.5k]
  ------------------
  502|   402k|			{
  503|       |				// advance fieldValuePtr 1 byte forward while didn't get to end of packet and fieldValuePtr points to a
  504|       |				// space char
  505|   402k|				while (
  506|   783k|				    static_cast<size_t>(fieldValuePtr - reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data)) <
  ------------------
  |  Branch (506:9): [True: 783k, False: 102]
  ------------------
  507|   783k|				        m_TextBasedProtocolMessage->getDataLen() &&
  508|   783k|				    (*fieldValuePtr) == ' ')
  ------------------
  |  Branch (508:9): [True: 381k, False: 402k]
  ------------------
  509|   381k|				{
  510|   381k|					fieldValuePtr++;
  511|   381k|				}
  512|   402k|			}
  513|       |
  514|       |			// reached the end of the packet and value start offset wasn't found
  515|   465k|			if (static_cast<size_t>(fieldValuePtr - reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data)) >=
  ------------------
  |  Branch (515:8): [True: 102, False: 464k]
  ------------------
  516|   465k|			    m_TextBasedProtocolMessage->getDataLen())
  517|    102|			{
  518|    102|				m_ValueOffsetInMessage = -1;
  519|    102|				m_FieldValueSize = -1;
  520|    102|			}
  521|   464k|			else
  522|   464k|			{
  523|   464k|				m_ValueOffsetInMessage = fieldValuePtr - reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data);
  524|       |				// couldn't find the end of the field, so assuming the field value length is from m_ValueOffsetInMessage
  525|       |				// until the end of the packet
  526|   464k|				if (fieldEndPtr == nullptr)
  ------------------
  |  Branch (526:9): [True: 12.7k, False: 452k]
  ------------------
  527|  12.7k|				{
  528|       |					// clang-format off
  529|  12.7k|					m_FieldValueSize = reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data + m_TextBasedProtocolMessage->getDataLen()) - fieldValuePtr;
  530|       |					// clang-format on
  531|  12.7k|				}
  532|   452k|				else
  533|   452k|				{
  534|   452k|					m_FieldValueSize = fieldEndPtr - fieldValuePtr;
  535|       |					// if field ends with \r\n, decrease the value length by 1
  536|   452k|					if ((*(--fieldEndPtr)) == '\r')
  ------------------
  |  Branch (536:10): [True: 391k, False: 60.3k]
  ------------------
  537|   391k|						m_FieldValueSize--;
  538|   452k|				}
  539|   464k|			}
  540|   465k|		}
  541|   628k|	}
_ZN4pcpp11HeaderFieldC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_cb:
  545|  4.84k|	{
  546|  4.84k|		m_NameValueSeparator = nameValueSeparator;
  547|  4.84k|		m_SpacesAllowedBetweenNameAndValue = spacesAllowedBetweenNameAndValue;
  548|  4.84k|		initNewField(name, value);
  549|  4.84k|	}
_ZN4pcpp11HeaderField12initNewFieldERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  552|  25.2k|	{
  553|  25.2k|		m_TextBasedProtocolMessage = nullptr;
  554|  25.2k|		m_NameOffsetInMessage = 0;
  555|  25.2k|		m_NextField = nullptr;
  556|       |
  557|       |		// first building the name-value separator
  558|  25.2k|		std::string nameValueSeparation(1, m_NameValueSeparator);
  559|  25.2k|		if (m_SpacesAllowedBetweenNameAndValue)
  ------------------
  |  Branch (559:7): [True: 0, False: 25.2k]
  ------------------
  560|      0|			nameValueSeparation += " ";
  561|       |
  562|       |		// Field size is: name_length + separator_len + value_length + '\r\n'
  563|  25.2k|		if (name != PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER)
  ------------------
  |  |   12|  25.2k|#define PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER ""
  ------------------
  |  Branch (563:7): [True: 24.7k, False: 460]
  ------------------
  564|  24.7k|			m_FieldSize = name.length() + nameValueSeparation.length() + value.length() + 2;
  565|    460|		else
  566|       |			// Field is \r\n (2B)
  567|    460|			m_FieldSize = 2;
  568|       |
  569|  25.2k|		m_NewFieldData = new uint8_t[m_FieldSize];
  570|  25.2k|		std::string fieldData;
  571|       |
  572|  25.2k|		if (name != PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER)
  ------------------
  |  |   12|  25.2k|#define PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER ""
  ------------------
  |  Branch (572:7): [True: 24.7k, False: 460]
  ------------------
  573|  24.7k|			fieldData = name + nameValueSeparation + value + "\r\n";
  574|    460|		else
  575|    460|			fieldData = "\r\n";
  576|       |
  577|       |		// copy field data to m_NewFieldData
  578|  25.2k|		memcpy(m_NewFieldData, fieldData.c_str(), m_FieldSize);
  579|       |
  580|       |		// calculate value offset
  581|  25.2k|		if (name != PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER)
  ------------------
  |  |   12|  25.2k|#define PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER ""
  ------------------
  |  Branch (581:7): [True: 24.7k, False: 460]
  ------------------
  582|  24.7k|			m_ValueOffsetInMessage = name.length() + nameValueSeparation.length();
  583|    460|		else
  584|    460|			m_ValueOffsetInMessage = 0;
  585|  25.2k|		m_FieldNameSize = name.length();
  586|  25.2k|		m_FieldValueSize = value.length();
  587|       |
  588|  25.2k|		if (name != PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER)
  ------------------
  |  |   12|  25.2k|#define PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER ""
  ------------------
  |  Branch (588:7): [True: 24.7k, False: 460]
  ------------------
  589|  24.7k|			m_IsEndOfHeaderField = false;
  590|    460|		else
  591|    460|			m_IsEndOfHeaderField = true;
  592|  25.2k|	}
_ZN4pcpp11HeaderFieldD2Ev:
  595|   775k|	{
  596|   775k|		if (m_NewFieldData != nullptr)
  ------------------
  |  Branch (596:7): [True: 7.19k, False: 768k]
  ------------------
  597|  7.19k|			delete[] m_NewFieldData;
  598|   775k|	}
_ZN4pcpp11HeaderFieldC2ERKS0_:
  601|  20.4k|	    : m_NameValueSeparator('\0'), m_SpacesAllowedBetweenNameAndValue(false)
  602|  20.4k|	{
  603|  20.4k|		m_NameValueSeparator = other.m_NameValueSeparator;
  604|  20.4k|		m_SpacesAllowedBetweenNameAndValue = other.m_SpacesAllowedBetweenNameAndValue;
  605|  20.4k|		initNewField(other.getFieldName(), other.getFieldValue());
  606|  20.4k|	}
_ZNK4pcpp11HeaderField7getDataEv:
  620|   732k|	{
  621|   732k|		if (m_TextBasedProtocolMessage == nullptr)
  ------------------
  |  Branch (621:7): [True: 8.06k, False: 724k]
  ------------------
  622|  8.06k|			return reinterpret_cast<char*>(m_NewFieldData);
  623|   724k|		else
  624|   724k|			return reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data);
  625|   732k|	}
_ZN4pcpp11HeaderField12setNextFieldEPS0_:
  628|   615k|	{
  629|   615k|		m_NextField = nextField;
  630|   615k|	}
_ZNK4pcpp11HeaderField12getNextFieldEv:
  633|   882k|	{
  634|   882k|		return m_NextField;
  635|   882k|	}
_ZNK4pcpp11HeaderField12getFieldNameEv:
  638|   772k|	{
  639|   772k|		std::string result;
  640|       |
  641|   772k|		if (m_FieldNameSize != static_cast<size_t>(-1))
  ------------------
  |  Branch (641:7): [True: 672k, False: 99.9k]
  ------------------
  642|   672k|			result.assign((getData() + m_NameOffsetInMessage), m_FieldNameSize);
  643|       |
  644|   772k|		return result;
  645|   772k|	}
_ZNK4pcpp11HeaderField13getFieldValueEv:
  648|  64.9k|	{
  649|  64.9k|		std::string result;
  650|  64.9k|		if (m_ValueOffsetInMessage != -1)
  ------------------
  |  Branch (650:7): [True: 57.7k, False: 7.14k]
  ------------------
  651|  57.7k|			result.assign((getData() + m_ValueOffsetInMessage), m_FieldValueSize);
  652|  64.9k|		return result;
  653|  64.9k|	}
_ZN4pcpp11HeaderField13setFieldValueERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  656|  2.32k|	{
  657|       |		// Field isn't linked with any message yet
  658|  2.32k|		if (m_TextBasedProtocolMessage == nullptr)
  ------------------
  |  Branch (658:7): [True: 0, False: 2.32k]
  ------------------
  659|      0|		{
  660|      0|			std::string name = getFieldName();
  661|      0|			delete[] m_NewFieldData;
  662|      0|			initNewField(name, newValue);
  663|      0|			return true;
  664|      0|		}
  665|       |
  666|  2.32k|		std::string curValue = getFieldValue();
  667|  2.32k|		int lengthDifference = static_cast<int>(newValue.length()) - static_cast<int>(curValue.length());
  668|       |		// new value is longer than current value
  669|  2.32k|		if (lengthDifference > 0)
  ------------------
  |  Branch (669:7): [True: 60, False: 2.26k]
  ------------------
  670|     60|		{
  671|     60|			if (!m_TextBasedProtocolMessage->extendLayer(m_ValueOffsetInMessage, static_cast<size_t>(lengthDifference)))
  ------------------
  |  Branch (671:8): [True: 0, False: 60]
  ------------------
  672|      0|			{
  673|      0|				PCPP_LOG_ERROR("Could not extend layer");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  674|      0|				return false;
  675|      0|			}
  676|     60|		}
  677|       |		// new value is shorter than current value
  678|  2.26k|		else if (lengthDifference < 0)
  ------------------
  |  Branch (678:12): [True: 1.83k, False: 424]
  ------------------
  679|  1.83k|		{
  680|  1.83k|			if (!m_TextBasedProtocolMessage->shortenLayer(m_ValueOffsetInMessage,
  ------------------
  |  Branch (680:8): [True: 0, False: 1.83k]
  ------------------
  681|  1.83k|			                                              static_cast<size_t>(-lengthDifference)))
  682|      0|			{
  683|      0|				PCPP_LOG_ERROR("Could not shorten layer");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  684|      0|				return false;
  685|      0|			}
  686|  1.83k|		}
  687|       |
  688|  2.32k|		if (lengthDifference != 0)
  ------------------
  |  Branch (688:7): [True: 1.89k, False: 424]
  ------------------
  689|  1.89k|			m_TextBasedProtocolMessage->shiftFieldsOffset(getNextField(), lengthDifference);
  690|       |
  691|       |		// update sizes
  692|  2.32k|		m_FieldValueSize += lengthDifference;
  693|  2.32k|		m_FieldSize += lengthDifference;
  694|       |
  695|       |		// write new value to field data
  696|  2.32k|		memcpy(getData() + m_ValueOffsetInMessage, newValue.c_str(), newValue.length());
  697|       |
  698|  2.32k|		return true;
  699|  2.32k|	}
_ZN4pcpp11HeaderField32attachToTextBasedProtocolMessageEPNS_24TextBasedProtocolMessageEi:
  702|  18.0k|	{
  703|  18.0k|		if (m_TextBasedProtocolMessage != nullptr && m_TextBasedProtocolMessage != message)
  ------------------
  |  Branch (703:7): [True: 0, False: 18.0k]
  |  Branch (703:48): [True: 0, False: 0]
  ------------------
  704|      0|		{
  705|      0|			PCPP_LOG_ERROR("Header field already associated with another message");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  706|      0|			return;
  707|      0|		}
  708|       |
  709|  18.0k|		if (m_NewFieldData == nullptr)
  ------------------
  |  Branch (709:7): [True: 0, False: 18.0k]
  ------------------
  710|      0|		{
  711|      0|			PCPP_LOG_ERROR("Header field doesn't have new field data");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  712|      0|			return;
  713|      0|		}
  714|       |
  715|  18.0k|		delete[] m_NewFieldData;
  716|  18.0k|		m_NewFieldData = nullptr;
  717|  18.0k|		m_TextBasedProtocolMessage = message;
  718|       |
  719|  18.0k|		int valueAndNameDifference = m_ValueOffsetInMessage - m_NameOffsetInMessage;
  720|  18.0k|		m_NameOffsetInMessage = fieldOffsetInMessage;
  721|  18.0k|		m_ValueOffsetInMessage = m_NameOffsetInMessage + valueAndNameDifference;
  722|  18.0k|	}

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

_ZNK4pcpp8UdpLayer10getSrcPortEv:
   42|   342k|	{
   43|       |		return be16toh(getUdpHeader()->portSrc);
   44|   342k|	}
_ZNK4pcpp8UdpLayer10getDstPortEv:
   47|   342k|	{
   48|       |		return be16toh(getUdpHeader()->portDst);
   49|   342k|	}
_ZN4pcpp8UdpLayer17calculateChecksumEb:
   52|  46.0k|	{
   53|  46.0k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
   54|  46.0k|		uint16_t checksumRes = 0;
   55|  46.0k|		uint16_t currChecksumValue = udpHdr->headerChecksum;
   56|       |
   57|  46.0k|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (57:7): [True: 46.0k, False: 0]
  ------------------
   58|  46.0k|		{
   59|  46.0k|			udpHdr->headerChecksum = 0;
   60|  46.0k|			PCPP_LOG_DEBUG("UDP data len = " << m_DataLen);
  ------------------
  |  |  426|  46.0k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|  46.0k|	do                                                                                                                 \
  |  |  |  |  414|  46.0k|	{                                                                                                                  \
  |  |  |  |  415|  46.0k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  46.0k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  46.0k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 46.0k]
  |  |  |  |  ------------------
  |  |  |  |  417|  46.0k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|  46.0k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 46.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   61|       |
   62|  46.0k|			if (m_PrevLayer->getProtocol() == IPv4)
  ------------------
  |  Branch (62:8): [True: 43.8k, False: 2.22k]
  ------------------
   63|  43.8k|			{
   64|  43.8k|				IPv4Address srcIP = static_cast<IPv4Layer*>(m_PrevLayer)->getSrcIPv4Address();
   65|  43.8k|				IPv4Address dstIP = static_cast<IPv4Layer*>(m_PrevLayer)->getDstIPv4Address();
   66|       |
   67|  43.8k|				checksumRes =
   68|  43.8k|				    pcpp::computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(udpHdr), getDataLen(),
   69|  43.8k|				                                   IPAddress::IPv4AddressType, PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   70|       |
   71|  43.8k|				PCPP_LOG_DEBUG("calculated IPv4 UDP checksum = 0x" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  426|  43.8k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|  43.8k|	do                                                                                                                 \
  |  |  |  |  414|  43.8k|	{                                                                                                                  \
  |  |  |  |  415|  43.8k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  43.8k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  43.8k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 43.8k]
  |  |  |  |  ------------------
  |  |  |  |  417|  43.8k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|  43.8k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 43.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   72|  43.8k|			}
   73|  2.22k|			else if (m_PrevLayer->getProtocol() == IPv6)
  ------------------
  |  Branch (73:13): [True: 1.94k, False: 282]
  ------------------
   74|  1.94k|			{
   75|  1.94k|				IPv6Address srcIP = static_cast<IPv6Layer*>(m_PrevLayer)->getSrcIPv6Address();
   76|  1.94k|				IPv6Address dstIP = static_cast<IPv6Layer*>(m_PrevLayer)->getDstIPv6Address();
   77|       |
   78|  1.94k|				checksumRes = computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(udpHdr), getDataLen(),
   79|  1.94k|				                                       IPAddress::IPv6AddressType, PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   80|       |
   81|  1.94k|				PCPP_LOG_DEBUG("calculated IPv6 UDP checksum = 0xX" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  426|  1.94k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|  1.94k|	do                                                                                                                 \
  |  |  |  |  414|  1.94k|	{                                                                                                                  \
  |  |  |  |  415|  1.94k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  1.94k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.94k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 1.94k]
  |  |  |  |  ------------------
  |  |  |  |  417|  1.94k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|  1.94k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 1.94k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   82|  1.94k|			}
   83|  46.0k|		}
   84|       |
   85|  46.0k|		if (checksumRes == 0)
  ------------------
  |  Branch (85:7): [True: 385, False: 45.6k]
  ------------------
   86|    385|			checksumRes = 0xffff;
   87|       |
   88|  46.0k|		if (writeResultToPacket)
  ------------------
  |  Branch (88:7): [True: 46.0k, False: 0]
  ------------------
   89|  46.0k|			udpHdr->headerChecksum = htobe16(checksumRes);
   90|      0|		else
   91|      0|			udpHdr->headerChecksum = currChecksumValue;
   92|       |
   93|  46.0k|		return checksumRes;
   94|  46.0k|	}
_ZN4pcpp8UdpLayer14parseNextLayerEv:
   97|   250k|	{
   98|   250k|		if (m_DataLen <= sizeof(udphdr))
  ------------------
  |  Branch (98:7): [True: 354, False: 250k]
  ------------------
   99|    354|			return;
  100|       |
  101|   250k|		uint16_t portDst = getDstPort();
  102|   250k|		uint16_t portSrc = getSrcPort();
  103|       |
  104|   250k|		uint8_t* udpData = m_Data + sizeof(udphdr);
  105|   250k|		size_t udpDataLen = m_DataLen - sizeof(udphdr);
  106|       |
  107|   250k|		if (DhcpLayer::isDhcpPorts(portSrc, portDst))
  ------------------
  |  Branch (107:7): [True: 19.3k, False: 230k]
  ------------------
  108|  19.3k|		{
  109|  19.3k|			tryConstructNextLayerWithFallback<DhcpLayer, PayloadLayer>(udpData, udpDataLen);
  110|  19.3k|		}
  111|   230k|		else if (VxlanLayer::isVxlanPort(portDst))
  ------------------
  |  Branch (111:12): [True: 6.12k, False: 224k]
  ------------------
  112|  6.12k|		{
  113|  6.12k|			tryConstructNextLayerWithFallback<VxlanLayer, PayloadLayer>(udpData, udpDataLen);
  114|  6.12k|		}
  115|   224k|		else if (DnsLayer::isDataValid(udpData, udpDataLen) &&
  ------------------
  |  Branch (115:12): [True: 221k, False: 3.49k]
  ------------------
  116|   221k|		         (DnsLayer::isDnsPort(portDst) || DnsLayer::isDnsPort(portSrc)))
  ------------------
  |  Branch (116:13): [True: 28.1k, False: 192k]
  |  Branch (116:45): [True: 10.0k, False: 182k]
  ------------------
  117|  38.2k|		{
  118|  38.2k|			constructNextLayer<DnsLayer>(udpData, udpDataLen);
  119|  38.2k|		}
  120|   186k|		else if (QuicV1Layer::isQuicPort(portDst) || QuicV1Layer::isQuicPort(portSrc))
  ------------------
  |  Branch (120:12): [True: 1.31k, False: 184k]
  |  Branch (120:48): [True: 419, False: 184k]
  ------------------
  121|  1.73k|		{
  122|  1.73k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(QuicV1Layer::parseQuicLayer, udpData,
  123|  1.73k|			                                                           udpDataLen);
  124|  1.73k|		}
  125|   184k|		else if (SipLayer::isSipPort(portDst) || SipLayer::isSipPort(portSrc))
  ------------------
  |  Branch (125:12): [True: 17.4k, False: 167k]
  |  Branch (125:44): [True: 317, False: 166k]
  ------------------
  126|  17.7k|		{
  127|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  128|  17.7k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*, uint16_t, uint16_t) = SipLayer::parseSipLayer;
  129|  17.7k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen, portSrc, portDst);
  130|  17.7k|		}
  131|   166k|		else if ((RadiusLayer::isRadiusPort(portDst) || RadiusLayer::isRadiusPort(portSrc)) &&
  ------------------
  |  Branch (131:13): [True: 14.7k, False: 152k]
  |  Branch (131:51): [True: 14.1k, False: 137k]
  ------------------
  132|  28.9k|		         RadiusLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (132:12): [True: 21.8k, False: 7.02k]
  ------------------
  133|  21.8k|		{
  134|  21.8k|			constructNextLayer<RadiusLayer>(udpData, udpDataLen);
  135|  21.8k|		}
  136|   144k|		else if ((GtpV1Layer::isGTPv1Port(portDst) || GtpV1Layer::isGTPv1Port(portSrc)) &&
  ------------------
  |  Branch (136:13): [True: 24.2k, False: 120k]
  |  Branch (136:49): [True: 7.84k, False: 112k]
  ------------------
  137|  32.1k|		         GtpV1Layer::isGTPv1(udpData, udpDataLen))
  ------------------
  |  Branch (137:12): [True: 21.7k, False: 10.4k]
  ------------------
  138|  21.7k|		{
  139|  21.7k|			constructNextLayer<GtpV1Layer>(udpData, udpDataLen);
  140|  21.7k|		}
  141|   123k|		else if ((GtpV2Layer::isGTPv2Port(portDst) || GtpV2Layer::isGTPv2Port(portSrc)) &&
  ------------------
  |  Branch (141:13): [True: 8.90k, False: 114k]
  |  Branch (141:49): [True: 0, False: 114k]
  ------------------
  142|  8.90k|		         GtpV2Layer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (142:12): [True: 8.59k, False: 315]
  ------------------
  143|  8.59k|		{
  144|  8.59k|			constructNextLayer<GtpV2Layer>(udpData, udpDataLen);
  145|  8.59k|		}
  146|   114k|		else if ((DhcpV6Layer::isDhcpV6Port(portSrc) || DhcpV6Layer::isDhcpV6Port(portDst)) &&
  ------------------
  |  Branch (146:13): [True: 2.38k, False: 112k]
  |  Branch (146:51): [True: 3.02k, False: 109k]
  ------------------
  147|  5.40k|		         (DhcpV6Layer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (147:12): [True: 5.40k, False: 0]
  ------------------
  148|  5.40k|		{
  149|  5.40k|			constructNextLayer<DhcpV6Layer>(udpData, udpDataLen);
  150|  5.40k|		}
  151|   109k|		else if ((NtpLayer::isNTPPort(portSrc) || NtpLayer::isNTPPort(portDst)) &&
  ------------------
  |  Branch (151:13): [True: 1.64k, False: 107k]
  |  Branch (151:45): [True: 5.94k, False: 101k]
  ------------------
  152|  7.59k|		         NtpLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (152:12): [True: 7.36k, False: 230]
  ------------------
  153|  7.36k|		{
  154|  7.36k|			constructNextLayer<NtpLayer>(udpData, udpDataLen);
  155|  7.36k|		}
  156|   101k|		else if ((DoIpLayer::isDoIpPort(portSrc) || DoIpLayer::isDoIpPort(portDst)) &&
  ------------------
  |  Branch (156:13): [True: 0, False: 101k]
  |  Branch (156:47): [True: 0, False: 101k]
  ------------------
  157|      0|		         (DoIpLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (157:12): [True: 0, False: 0]
  ------------------
  158|      0|		{
  159|      0|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(DoIpLayer::parseDoIpLayer, udpData, udpDataLen);
  160|      0|		}
  161|   101k|		else if (SomeIpLayer::isSomeIpPort(portSrc) || SomeIpLayer::isSomeIpPort(portDst))
  ------------------
  |  Branch (161:12): [True: 6.39k, False: 95.4k]
  |  Branch (161:50): [True: 44.2k, False: 51.1k]
  ------------------
  162|  50.6k|		{
  163|  50.6k|			constructNextLayerFromFactory(SomeIpLayer::parseSomeIpLayer, udpData, udpDataLen);
  164|  50.6k|		}
  165|  51.1k|		else if ((WakeOnLanLayer::isWakeOnLanPort(portDst) && WakeOnLanLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (165:13): [True: 2.24k, False: 48.9k]
  |  Branch (165:57): [True: 365, False: 1.88k]
  ------------------
  166|    365|		{
  167|    365|			constructNextLayer<WakeOnLanLayer>(udpData, udpDataLen);
  168|    365|		}
  169|  50.7k|		else if ((WireGuardLayer::isWireGuardPorts(portDst, portSrc) &&
  ------------------
  |  Branch (169:13): [True: 1.49k, False: 49.3k]
  ------------------
  170|  1.49k|		          WireGuardLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (170:13): [True: 1.44k, False: 45]
  ------------------
  171|  1.44k|		{
  172|  1.44k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(WireGuardLayer::parseWireGuardLayer, udpData,
  173|  1.44k|			                                                           udpDataLen);
  174|  1.44k|		}
  175|  49.3k|		else if (GvcpLayer::isGvcpPort(portDst) || GvcpLayer::isGvcpPort(portSrc))
  ------------------
  |  Branch (175:12): [True: 0, False: 49.3k]
  |  Branch (175:46): [True: 0, False: 49.3k]
  ------------------
  176|      0|		{
  177|      0|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(GvcpLayer::parseGvcpLayer, udpData, udpDataLen);
  178|      0|		}
  179|       |
  180|       |		// If a valid layer was found, return immediately
  181|   250k|		if (hasNextLayer())
  ------------------
  |  Branch (181:7): [True: 200k, False: 49.3k]
  ------------------
  182|   200k|		{
  183|   200k|			return;
  184|   200k|		}
  185|       |
  186|       |		// Here, heuristics for all protocols should be invoked to determine the correct layer
  187|  49.3k|		{
  188|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  189|  49.3k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*) = SipLayer::parseSipLayer;
  190|  49.3k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen);
  191|  49.3k|		}
  192|       |
  193|       |		// cppcheck-suppress knownConditionTrueFalse
  194|  49.3k|		if (!hasNextLayer())
  ------------------
  |  Branch (194:7): [True: 0, False: 49.3k]
  ------------------
  195|      0|		{
  196|      0|			constructNextLayer<PayloadLayer>(udpData, udpDataLen);
  197|      0|		}
  198|  49.3k|	}
_ZN4pcpp8UdpLayer22computeCalculateFieldsEv:
  201|  46.0k|	{
  202|  46.0k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
  203|       |		udpHdr->length = htobe16(m_DataLen);
  204|  46.0k|		calculateChecksum(true);
  205|  46.0k|	}
_ZNK4pcpp8UdpLayer8toStringEv:
  208|  92.0k|	{
  209|  92.0k|		std::ostringstream srcPortStream;
  210|  92.0k|		srcPortStream << getSrcPort();
  211|  92.0k|		std::ostringstream dstPortStream;
  212|  92.0k|		dstPortStream << getDstPort();
  213|       |
  214|  92.0k|		return "UDP Layer, Src port: " + srcPortStream.str() + ", Dst port: " + dstPortStream.str();
  215|  92.0k|	}

_ZNK4pcpp9VlanLayer9getVlanIDEv:
   30|  16.6k|	{
   31|       |		return be16toh(getVlanHeader()->vlan) & 0xFFF;
   32|  16.6k|	}
_ZNK4pcpp9VlanLayer6getCFIEv:
   35|  16.6k|	{
   36|       |		return ((be16toh(getVlanHeader()->vlan) >> 12) & 1);
   37|  16.6k|	}
_ZNK4pcpp9VlanLayer11getPriorityEv:
   40|  16.6k|	{
   41|       |		return (be16toh(getVlanHeader()->vlan) >> 13) & 7;
   42|  16.6k|	}
_ZN4pcpp9VlanLayer14parseNextLayerEv:
   60|  60.4k|	{
   61|  60.4k|		if (m_DataLen <= sizeof(vlan_header))
  ------------------
  |  Branch (61:7): [True: 0, False: 60.4k]
  ------------------
   62|      0|			return;
   63|       |
   64|  60.4k|		uint8_t* payload = m_Data + sizeof(vlan_header);
   65|  60.4k|		size_t payloadLen = m_DataLen - sizeof(vlan_header);
   66|       |
   67|  60.4k|		vlan_header* hdr = getVlanHeader();
   68|  60.4k|		switch (be16toh(hdr->etherType))
   69|  60.4k|		{
   70|  12.6k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   33|  12.6k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (70:3): [True: 12.6k, False: 47.8k]
  ------------------
   71|  12.6k|		{
   72|  12.6k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   73|  12.6k|			break;
   74|      0|		}
   75|  2.72k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   49|  2.72k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (75:3): [True: 2.72k, False: 57.7k]
  ------------------
   76|  2.72k|		{
   77|  2.72k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   78|  2.72k|			break;
   79|      0|		}
   80|  5.11k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   35|  5.11k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (80:3): [True: 5.11k, False: 55.3k]
  ------------------
   81|  5.11k|		{
   82|  5.11k|			tryConstructNextLayerWithFallback<ArpLayer, PayloadLayer>(payload, payloadLen);
   83|  5.11k|			break;
   84|      0|		}
   85|  8.15k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   45|  8.15k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (85:3): [True: 8.15k, False: 52.3k]
  ------------------
   86|  8.15k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   63|  8.15k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (86:3): [True: 0, False: 60.4k]
  ------------------
   87|  8.15k|		{
   88|  8.15k|			tryConstructNextLayerWithFallback<VlanLayer, PayloadLayer>(payload, payloadLen);
   89|  8.15k|			break;
   90|  8.15k|		}
   91|  25.8k|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   55|  25.8k|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (91:3): [True: 25.8k, False: 34.5k]
  ------------------
   92|  25.8k|		{
   93|  25.8k|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   94|  25.8k|			break;
   95|  8.15k|		}
   96|      8|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   53|      8|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (96:3): [True: 8, False: 60.4k]
  ------------------
   97|      8|		{
   98|      8|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   99|      8|			break;
  100|  8.15k|		}
  101|    522|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   57|    522|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (101:3): [True: 522, False: 59.9k]
  ------------------
  102|    522|		{
  103|    522|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
  104|    522|			break;
  105|  8.15k|		}
  106|  5.40k|		default:
  ------------------
  |  Branch (106:3): [True: 5.40k, False: 55.0k]
  ------------------
  107|  5.40k|		{
  108|  5.40k|			if ((be16toh(hdr->etherType) < 1500))
  ------------------
  |  Branch (108:8): [True: 4.40k, False: 1.00k]
  ------------------
  109|  4.40k|			{
  110|  4.40k|				tryConstructNextLayerWithFallback<LLCLayer, PayloadLayer>(payload, payloadLen);
  111|  4.40k|			}
  112|  1.00k|			else
  113|  1.00k|			{
  114|  1.00k|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  115|  1.00k|			}
  116|  5.40k|			break;
  117|  8.15k|		}
  118|  60.4k|		}
  119|  60.4k|	}
_ZN4pcpp9VlanLayer22computeCalculateFieldsEv:
  122|  8.31k|	{
  123|  8.31k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (123:7): [True: 0, False: 8.31k]
  ------------------
  124|      0|			return;
  125|       |
  126|  8.31k|		switch (m_NextLayer->getProtocol())
  127|  8.31k|		{
  128|  1.87k|		case IPv4:
  ------------------
  |  Branch (128:3): [True: 1.87k, False: 6.43k]
  ------------------
  129|  1.87k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_IP);
  130|  1.87k|			break;
  131|    439|		case IPv6:
  ------------------
  |  Branch (131:3): [True: 439, False: 7.87k]
  ------------------
  132|    439|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_IPV6);
  133|    439|			break;
  134|    958|		case ARP:
  ------------------
  |  Branch (134:3): [True: 958, False: 7.35k]
  ------------------
  135|    958|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_ARP);
  136|    958|			break;
  137|  1.09k|		case VLAN:
  ------------------
  |  Branch (137:3): [True: 1.09k, False: 7.21k]
  ------------------
  138|  1.09k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_VLAN);
  139|  1.09k|			break;
  140|  3.93k|		default:
  ------------------
  |  Branch (140:3): [True: 3.93k, False: 4.37k]
  ------------------
  141|  3.93k|			return;
  142|  8.31k|		}
  143|  8.31k|	}
_ZNK4pcpp9VlanLayer8toStringEv:
  146|  16.6k|	{
  147|  16.6k|		std::ostringstream cfiStream;
  148|  16.6k|		cfiStream << (int)getCFI();
  149|  16.6k|		std::ostringstream priStream;
  150|  16.6k|		priStream << (int)getPriority();
  151|  16.6k|		std::ostringstream idStream;
  152|  16.6k|		idStream << getVlanID();
  153|       |
  154|  16.6k|		return "VLAN Layer, Priority: " + priStream.str() + ", Vlan ID: " + idStream.str() +
  155|  16.6k|		       ", CFI: " + cfiStream.str();
  156|  16.6k|	}

_ZN4pcpp9VrrpLayer18getVersionFromDataEPhm:
   46|  14.2k|	{
   47|  14.2k|		if (!data || dataLen <= VrrpPacketFixedLength)
  ------------------
  |  Branch (47:7): [True: 0, False: 14.2k]
  |  Branch (47:16): [True: 0, False: 14.2k]
  ------------------
   48|      0|		{
   49|      0|			return UnknownProtocol;
   50|      0|		}
   51|       |
   52|  14.2k|		auto* vrrpPacketCommon = (vrrp_header*)data;
   53|  14.2k|		uint8_t version = vrrpPacketCommon->version;
   54|  14.2k|		switch (version)
   55|  14.2k|		{
   56|  6.42k|		case VrrpVersion2:
  ------------------
  |  Branch (56:3): [True: 6.42k, False: 7.82k]
  ------------------
   57|  6.42k|			return VRRPv2;
   58|  7.72k|		case VrrpVersion3:
  ------------------
  |  Branch (58:3): [True: 7.72k, False: 6.53k]
  ------------------
   59|  7.72k|			return VRRPv3;
   60|    108|		default:
  ------------------
  |  Branch (60:3): [True: 108, False: 14.1k]
  ------------------
   61|    108|			return UnknownProtocol;
   62|  14.2k|		}
   63|  14.2k|	}
_ZN4pcpp9VrrpLayer22computeCalculateFieldsEv:
   66|  3.25k|	{
   67|       |		// calculate and fill the checksum to packet
   68|  3.25k|		calculateAndSetChecksum();
   69|  3.25k|	}
_ZNK4pcpp9VrrpLayer15getIPAddressLenEv:
   72|  15.9k|	{
   73|  15.9k|		if (getAddressType() == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (73:7): [True: 10.1k, False: 5.84k]
  ------------------
   74|  10.1k|		{
   75|  10.1k|			return 4;
   76|  10.1k|		}
   77|       |
   78|  5.84k|		return 16;
   79|  15.9k|	}
_ZNK4pcpp9VrrpLayer17isChecksumCorrectEv:
   82|  3.25k|	{
   83|  3.25k|		auto vrrpHeader = getVrrpHeader();
   84|  3.25k|		if (vrrpHeader == nullptr)
  ------------------
  |  Branch (84:7): [True: 0, False: 3.25k]
  ------------------
   85|      0|		{
   86|      0|			return false;
   87|      0|		}
   88|       |
   89|  3.25k|		return (calculateChecksum() == be16toh(vrrpHeader->checksum));
   90|  3.25k|	}
_ZNK4pcpp9VrrpLayer17getPriorityAsEnumEv:
   93|  3.25k|	{
   94|  3.25k|		switch (getVrrpHeader()->priority)
   95|  3.25k|		{
   96|      0|		case VrrpPriorityDefault:
  ------------------
  |  Branch (96:3): [True: 0, False: 3.25k]
  ------------------
   97|      0|			return VrrpLayer::VrrpPriority::Default;
   98|       |
   99|     62|		case VrrpPriorityStop:
  ------------------
  |  Branch (99:3): [True: 62, False: 3.18k]
  ------------------
  100|     62|			return VrrpLayer::VrrpPriority::Stop;
  101|       |
  102|    385|		case VrrpPriorityOwner:
  ------------------
  |  Branch (102:3): [True: 385, False: 2.86k]
  ------------------
  103|    385|			return VrrpLayer::VrrpPriority::Owner;
  104|       |
  105|  2.80k|		default:
  ------------------
  |  Branch (105:3): [True: 2.80k, False: 447]
  ------------------
  106|  2.80k|			return VrrpLayer::VrrpPriority::Other;
  107|  3.25k|		}
  108|  3.25k|	}
_ZNK4pcpp9VrrpLayer8toStringEv:
  111|  6.50k|	{
  112|  6.50k|		return "VRRP v" + std::to_string(getVersion()) +
  113|  6.50k|		       " Layer, virtual router ID: " + std::to_string(getVirtualRouterID()) +
  114|  6.50k|		       ", IP address count: " + std::to_string(getIPAddressesCount());
  115|  6.50k|	}
_ZNK4pcpp9VrrpLayer10getVersionEv:
  118|  6.50k|	{
  119|  6.50k|		return getVrrpHeader()->version;
  120|  6.50k|	}
_ZNK4pcpp9VrrpLayer7getTypeEv:
  123|  3.25k|	{
  124|  3.25k|		if (getVrrpHeader()->type == VrrpType_Advertisement)
  ------------------
  |  Branch (124:7): [True: 2.54k, False: 703]
  ------------------
  125|  2.54k|		{
  126|  2.54k|			return VrrpType_Advertisement;
  127|  2.54k|		}
  128|       |
  129|    703|		return VrrpType_Unknown;
  130|  3.25k|	}
_ZNK4pcpp9VrrpLayer18getVirtualRouterIDEv:
  133|  6.50k|	{
  134|  6.50k|		return getVrrpHeader()->vrId;
  135|  6.50k|	}
_ZNK4pcpp9VrrpLayer11getPriorityEv:
  143|  3.25k|	{
  144|  3.25k|		return getVrrpHeader()->priority;
  145|  3.25k|	}
_ZNK4pcpp9VrrpLayer11getChecksumEv:
  153|  3.25k|	{
  154|       |		return be16toh(getVrrpHeader()->checksum);
  155|  3.25k|	}
_ZN4pcpp9VrrpLayer23calculateAndSetChecksumEv:
  158|  3.25k|	{
  159|       |		getVrrpHeader()->checksum = htobe16(calculateChecksum());
  160|  3.25k|	}
_ZNK4pcpp9VrrpLayer19getIPAddressesCountEv:
  163|  6.50k|	{
  164|  6.50k|		return getVrrpHeader()->ipAddrCount;
  165|  6.50k|	}
_ZNK4pcpp9VrrpLayer14getIPAddressesEv:
  168|  3.25k|	{
  169|  3.25k|		std::vector<IPAddress> ipAddressesVec;
  170|  3.25k|		auto ipAddressesPtr = getFirstIPAddressPtr();
  171|  15.9k|		while (ipAddressesPtr != nullptr)
  ------------------
  |  Branch (171:10): [True: 12.7k, False: 3.25k]
  ------------------
  172|  12.7k|		{
  173|  12.7k|			IPAddress ipAddress = getIPAddressFromData(ipAddressesPtr);
  174|  12.7k|			ipAddressesVec.push_back(ipAddress);
  175|  12.7k|			ipAddressesPtr = getNextIPAddressPtr(ipAddressesPtr);
  176|  12.7k|		}
  177|       |
  178|  3.25k|		return ipAddressesVec;
  179|  3.25k|	}
_ZNK4pcpp9VrrpLayer20getFirstIPAddressPtrEv:
  182|  3.25k|	{
  183|  3.25k|		size_t ipAddressLen = getIPAddressLen();
  184|       |
  185|       |		// check if there are virtual IP address at all
  186|  3.25k|		if (getHeaderLen() <= VrrpPacketFixedLength + ipAddressLen)
  ------------------
  |  Branch (186:7): [True: 163, False: 3.08k]
  ------------------
  187|    163|		{
  188|    163|			return nullptr;
  189|    163|		}
  190|       |
  191|  3.08k|		return (m_Data + VrrpPacketFixedLength);
  192|  3.25k|	}
_ZNK4pcpp9VrrpLayer19getNextIPAddressPtrEPh:
  195|  12.7k|	{
  196|  12.7k|		if (ipAddressPtr == nullptr)
  ------------------
  |  Branch (196:7): [True: 0, False: 12.7k]
  ------------------
  197|      0|		{
  198|      0|			return nullptr;
  199|      0|		}
  200|       |
  201|  12.7k|		size_t ipAddressLen = getIPAddressLen();
  202|  12.7k|		size_t nextOffset = static_cast<size_t>(ipAddressPtr - m_Data) + ipAddressLen;
  203|       |
  204|       |		// The next virtual IP address must fit entirely inside the layer. Checking only that the current
  205|       |		// address ends inside it leaves a trailing partial address reachable, which the caller then reads
  206|       |		// in full and runs past the end of the buffer.
  207|  12.7k|		if (nextOffset + ipAddressLen > getHeaderLen())
  ------------------
  |  Branch (207:7): [True: 3.08k, False: 9.64k]
  ------------------
  208|  3.08k|		{
  209|  3.08k|			return nullptr;
  210|  3.08k|		}
  211|       |
  212|  9.64k|		return (m_Data + nextOffset);
  213|  12.7k|	}
_ZNK4pcpp9VrrpLayer20getIPAddressFromDataEPh:
  350|  12.7k|	{
  351|  12.7k|		if (getAddressType() == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (351:7): [True: 8.04k, False: 4.68k]
  ------------------
  352|  8.04k|		{
  353|  8.04k|			return IPv4Address(*reinterpret_cast<const uint32_t*>(data));
  354|  8.04k|		}
  355|       |
  356|  4.68k|		return IPv6Address(data);
  357|  12.7k|	}
_ZNK4pcpp9VrrpLayer14getAddressTypeEv:
  376|  32.5k|	{
  377|  32.5k|		return m_AddressType;
  378|  32.5k|	}
_ZNK4pcpp11VrrpV2Layer17getAuthTypeAsEnumEv:
  448|  1.35k|	{
  449|  1.35k|		auto authType = getAuthType();
  450|  1.35k|		if (authType > 3)
  ------------------
  |  Branch (450:7): [True: 9, False: 1.34k]
  ------------------
  451|      9|		{
  452|      9|			return VrrpAuthType::Other;
  453|      9|		}
  454|       |
  455|  1.34k|		return static_cast<VrrpAuthType>(authType);
  456|  1.35k|	}
_ZNK4pcpp11VrrpV2Layer9getAdvIntEv:
  459|  1.35k|	{
  460|  1.35k|		uint16_t authAdvInt = getVrrpHeader()->authTypeAdvInt;
  461|  1.35k|		auto authAdvIntPtr = reinterpret_cast<vrrpv2_auth_adv*>(&authAdvInt);
  462|  1.35k|		return authAdvIntPtr->advInt;
  463|  1.35k|	}
_ZNK4pcpp11VrrpV2Layer11getAuthTypeEv:
  472|  1.35k|	{
  473|  1.35k|		uint16_t authAdvInt = getVrrpHeader()->authTypeAdvInt;
  474|  1.35k|		auto* authAdvIntPtr = reinterpret_cast<vrrpv2_auth_adv*>(&authAdvInt);
  475|  1.35k|		return authAdvIntPtr->authType;
  476|  1.35k|	}
_ZNK4pcpp11VrrpV2Layer17calculateChecksumEv:
  485|  2.71k|	{
  486|  2.71k|		if ((getData() == nullptr) || (getDataLen() == 0))
  ------------------
  |  Branch (486:7): [True: 0, False: 2.71k]
  |  Branch (486:33): [True: 0, False: 2.71k]
  ------------------
  487|      0|		{
  488|      0|			return 0;
  489|      0|		}
  490|       |
  491|  2.71k|		auto vrrpHeader = getVrrpHeader();
  492|  2.71k|		ScalarBuffer<uint16_t> buffer = {};
  493|  2.71k|		buffer.buffer = reinterpret_cast<uint16_t*>(vrrpHeader);
  494|  2.71k|		buffer.len = getHeaderLen();
  495|       |
  496|  2.71k|		uint16_t currChecksumValue = vrrpHeader->checksum;
  497|  2.71k|		vrrpHeader->checksum = 0;
  498|  2.71k|		uint16_t checksum = computeChecksum(&buffer, 1);
  499|  2.71k|		vrrpHeader->checksum = currChecksumValue;
  500|       |
  501|  2.71k|		return checksum;
  502|  2.71k|	}
_ZNK4pcpp11VrrpV3Layer12getMaxAdvIntEv:
  541|  1.89k|	{
  542|  1.89k|		uint16_t authAdvInt = getVrrpHeader()->authTypeAdvInt;
  543|  1.89k|		auto rsvdAdv = reinterpret_cast<vrrpv3_rsvd_adv*>(&authAdvInt);
  544|       |		return be16toh(rsvdAdv->maxAdvInt);
  545|  1.89k|	}
_ZNK4pcpp11VrrpV3Layer17calculateChecksumEv:
  558|  3.78k|	{
  559|  3.78k|		auto* ipLayer = getAttachedPacket()->getLayerOfType<pcpp::IPLayer>();
  560|  3.78k|		if (ipLayer == nullptr)
  ------------------
  |  Branch (560:7): [True: 0, False: 3.78k]
  ------------------
  561|      0|		{
  562|      0|			PCPP_LOG_ERROR("Calculate checksum failed, for can not get IPLayer" << "");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleVrrpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      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__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  563|      0|			return 0;
  564|      0|		}
  565|       |
  566|  3.78k|		auto vrrpHeader = getVrrpHeader();
  567|  3.78k|		uint16_t currChecksumValue = vrrpHeader->checksum;
  568|  3.78k|		vrrpHeader->checksum = 0;
  569|       |
  570|  3.78k|		pcpp::IPAddress srcIPAddr = ipLayer->getSrcIPAddress();
  571|  3.78k|		pcpp::IPAddress dstIPAddr = ipLayer->getDstIPAddress();
  572|  3.78k|		uint16_t checksum;
  573|  3.78k|		if (getAddressType() == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (573:7): [True: 1.47k, False: 2.31k]
  ------------------
  574|  1.47k|		{
  575|  1.47k|			checksum = computePseudoHdrChecksum((uint8_t*)vrrpHeader, getDataLen(), IPAddress::IPv4AddressType,
  576|  1.47k|			                                    PACKETPP_IPPROTO_VRRP, srcIPAddr, dstIPAddr);
  577|  1.47k|		}
  578|  2.31k|		else
  579|  2.31k|		{
  580|  2.31k|			checksum = computePseudoHdrChecksum((uint8_t*)vrrpHeader, getDataLen(), IPAddress::IPv6AddressType,
  581|  2.31k|			                                    PACKETPP_IPPROTO_VRRP, srcIPAddr, dstIPAddr);
  582|  2.31k|		}
  583|       |
  584|  3.78k|		vrrpHeader->checksum = currChecksumValue;
  585|       |
  586|  3.78k|		return checksum;
  587|  3.78k|	}

_ZNK4pcpp10VxlanLayer8toStringEv:
   46|  1.43k|	{
   47|  1.43k|		return "VXLAN Layer";
   48|  1.43k|	}
_ZN4pcpp10VxlanLayer14parseNextLayerEv:
   51|  6.12k|	{
   52|  6.12k|		if (m_DataLen <= sizeof(vxlan_header))
  ------------------
  |  Branch (52:7): [True: 0, False: 6.12k]
  ------------------
   53|      0|			return;
   54|       |
   55|  6.12k|		auto payload = m_Data + sizeof(vxlan_header);
   56|  6.12k|		auto payloadLen = m_DataLen - sizeof(vxlan_header);
   57|  6.12k|		tryConstructNextLayerWithFallback<EthLayer, PayloadLayer>(payload, payloadLen);
   58|  6.12k|	}

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

_ZN4pcpp14WireGuardLayer19parseWireGuardLayerEPhmPNS_5LayerEPNS_6PacketE:
   12|  1.44k|	{
   13|  1.44k|		if (dataLen < sizeof(WireGuardLayer::wg_common_header))
  ------------------
  |  Branch (13:7): [True: 0, False: 1.44k]
  ------------------
   14|      0|			return nullptr;
   15|  1.44k|		wg_common_header* wgHeader = reinterpret_cast<wg_common_header*>(data);
   16|       |
   17|  1.44k|		switch (wgHeader->messageType)
   18|  1.44k|		{
   19|    225|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeInitiation):
  ------------------
  |  Branch (19:3): [True: 225, False: 1.22k]
  ------------------
   20|    225|			if (!WireGuardHandshakeInitiationLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (20:8): [True: 0, False: 225]
  ------------------
   21|      0|				return nullptr;
   22|    225|			return new WireGuardHandshakeInitiationLayer(data, dataLen, prevLayer, packet);
   23|    540|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeResponse):
  ------------------
  |  Branch (23:3): [True: 540, False: 905]
  ------------------
   24|    540|			if (!WireGuardHandshakeResponseLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (24:8): [True: 0, False: 540]
  ------------------
   25|      0|				return nullptr;
   26|    540|			return new WireGuardHandshakeResponseLayer(data, dataLen, prevLayer, packet);
   27|    130|		case static_cast<uint8_t>(WireGuardMessageType::CookieReply):
  ------------------
  |  Branch (27:3): [True: 130, False: 1.31k]
  ------------------
   28|    130|			if (!WireGuardCookieReplyLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (28:8): [True: 0, False: 130]
  ------------------
   29|      0|				return nullptr;
   30|    130|			return new WireGuardCookieReplyLayer(data, dataLen, prevLayer, packet);
   31|    550|		case static_cast<uint8_t>(WireGuardMessageType::TransportData):
  ------------------
  |  Branch (31:3): [True: 550, False: 895]
  ------------------
   32|    550|			if (!WireGuardTransportDataLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (32:8): [True: 0, False: 550]
  ------------------
   33|      0|				return nullptr;
   34|    550|			return new WireGuardTransportDataLayer(data, dataLen, prevLayer, packet);
   35|      0|		default:
  ------------------
  |  Branch (35:3): [True: 0, False: 1.44k]
  ------------------
   36|      0|			return nullptr;
   37|  1.44k|		}
   38|  1.44k|	}
_ZNK4pcpp14WireGuardLayer22getMessageTypeAsStringEv:
   41|    578|	{
   42|    578|		uint32_t messageType = getMessageType();
   43|    578|		switch (messageType)
   44|    578|		{
   45|     90|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeInitiation):
  ------------------
  |  Branch (45:3): [True: 90, False: 488]
  ------------------
   46|     90|			return "Handshake Initiation";
   47|    216|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeResponse):
  ------------------
  |  Branch (47:3): [True: 216, False: 362]
  ------------------
   48|    216|			return "Handshake Response";
   49|     52|		case static_cast<uint8_t>(WireGuardMessageType::CookieReply):
  ------------------
  |  Branch (49:3): [True: 52, False: 526]
  ------------------
   50|     52|			return "Cookie Reply";
   51|    220|		case static_cast<uint8_t>(WireGuardMessageType::TransportData):
  ------------------
  |  Branch (51:3): [True: 220, False: 358]
  ------------------
   52|    220|			return "Transport Data";
   53|      0|		default:
  ------------------
  |  Branch (53:3): [True: 0, False: 578]
  ------------------
   54|      0|			return "Unknown";
   55|    578|		}
   56|    578|	}
_ZNK4pcpp14WireGuardLayer8toStringEv:
   59|    578|	{
   60|    578|		return "WireGuard Layer, " + getMessageTypeAsString() + " message";
   61|    578|	}
_ZNK4pcpp14WireGuardLayer12getHeaderLenEv:
   64|    289|	{
   65|    289|		return m_DataLen;
   66|    289|	}
_ZNK4pcpp14WireGuardLayer14getMessageTypeEv:
   69|    578|	{
   70|    578|		return getBasicHeader()->messageType;
   71|    578|	}
_ZN4pcpp14WireGuardLayer11isDataValidEPKhm:
   87|  1.49k|	{
   88|  1.49k|		if (dataLen < sizeof(WireGuardLayer::wg_common_header))
  ------------------
  |  Branch (88:7): [True: 0, False: 1.49k]
  ------------------
   89|      0|			return false;
   90|       |
   91|  1.49k|		uint8_t messageType = data[0];
   92|  1.49k|		return messageType >= static_cast<uint8_t>(WireGuardLayer::WireGuardMessageType::HandshakeInitiation) &&
  ------------------
  |  Branch (92:10): [True: 1.45k, False: 35]
  ------------------
   93|  1.45k|		       messageType <= static_cast<uint8_t>(WireGuardLayer::WireGuardMessageType::TransportData);
  ------------------
  |  Branch (93:10): [True: 1.44k, False: 10]
  ------------------
   94|  1.49k|	}

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

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

_ZN4pcpp11IFileDevice21reportPacketProcessedEm:
   66|   191k|		{
   67|   191k|			m_NumOfPacketsProcessed += numPackets;
   68|   191k|		}
_ZN4pcpp20PcapFileReaderDeviceC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  174|  2.26k|		explicit PcapFileReaderDevice(const std::string& fileName) : IFileReaderDevice(fileName)
  175|  2.26k|		{}
_ZN4pcpp20PcapFileReaderDeviceD2Ev:
  178|  2.26k|		~PcapFileReaderDevice() override = default;

_ZN4pcpp16BpfFilterWrapperC2Ev:
   93|  2.26k|		BpfFilterWrapper() = default;

_ZN4pcpp11IFileDeviceC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  494|  2.26k|	{
  495|  2.26k|		m_FileName = fileName;
  496|  2.26k|	}
_ZNK4pcpp11IFileDevice13getStatisticsERNS_9PcapStatsE:
  504|  2.24k|	{
  505|  2.24k|		PCPP_LOG_DEBUG("Statistics requested for file device for filename '" << m_FileName << "'");
  ------------------
  |  |  426|  2.24k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|  2.24k|	do                                                                                                                 \
  |  |  |  |  414|  2.24k|	{                                                                                                                  \
  |  |  |  |  415|  2.24k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  2.24k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|  2.24k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 2.24k]
  |  |  |  |  ------------------
  |  |  |  |  417|  2.24k|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|  2.24k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 2.24k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  506|  2.24k|		stats.packetsRecv = m_NumOfPacketsProcessed;
  507|  2.24k|		stats.packetsDrop = m_NumOfPacketsDropped;
  508|  2.24k|		stats.packetsDropByInterface = 0;
  509|  2.24k|	}
_ZN4pcpp11IFileDevice22resetStatisticCountersEv:
  512|  2.26k|	{
  513|  2.26k|		m_NumOfPacketsProcessed = 0;
  514|  2.26k|		m_NumOfPacketsDropped = 0;
  515|  2.26k|	}
_ZN4pcpp17IFileReaderDeviceC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  531|  2.26k|	IFileReaderDevice::IFileReaderDevice(const std::string& fileName) : IFileDevice(fileName)
  532|  2.26k|	{}
_ZN4pcpp17IFileReaderDevice9getReaderERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  535|  2.26k|	{
  536|  2.26k|		const auto extensionPos = fileName.find_last_of('.');
  537|  2.26k|		const auto fileExtension = extensionPos != std::string::npos ? fileName.substr(extensionPos) : "";
  ------------------
  |  Branch (537:30): [True: 2.26k, False: 0]
  ------------------
  538|       |
  539|  2.26k|		if (fileExtension == ".pcapng" || fileExtension == ".zstd" || fileExtension == ".zst")
  ------------------
  |  Branch (539:7): [True: 0, False: 2.26k]
  |  Branch (539:37): [True: 0, False: 2.26k]
  |  Branch (539:65): [True: 0, False: 2.26k]
  ------------------
  540|      0|			return new PcapNgFileReaderDevice(fileName);
  541|  2.26k|		else if (fileExtension == ".snoop")
  ------------------
  |  Branch (541:12): [True: 0, False: 2.26k]
  ------------------
  542|      0|			return new SnoopFileReaderDevice(fileName);
  543|       |
  544|  2.26k|		return new PcapFileReaderDevice(fileName);
  545|  2.26k|	}
_ZN4pcpp17IFileReaderDevice14getNextPacketsERNS_13PointerVectorINS_9RawPacketENSt3__114default_deleteIS2_EEEEi:
  606|  2.24k|	{
  607|  2.24k|		int numOfPacketsRead = 0;
  608|       |
  609|  4.48k|		for (; numOfPacketsToRead < 0 || numOfPacketsRead < numOfPacketsToRead; numOfPacketsRead++)
  ------------------
  |  Branch (609:10): [True: 0, False: 4.48k]
  |  Branch (609:36): [True: 2.24k, False: 2.24k]
  ------------------
  610|  2.24k|		{
  611|  2.24k|			RawPacket* newPacket = new RawPacket();
  612|  2.24k|			bool packetRead = getNextPacket(*newPacket);
  613|  2.24k|			if (packetRead)
  ------------------
  |  Branch (613:8): [True: 2.24k, False: 1]
  ------------------
  614|  2.24k|			{
  615|  2.24k|				packetVec.pushBack(newPacket);
  616|  2.24k|			}
  617|      1|			else
  618|      1|			{
  619|      1|				delete newPacket;
  620|      1|				break;
  621|      1|			}
  622|  2.24k|		}
  623|       |
  624|  2.24k|		return numOfPacketsRead;
  625|  2.24k|	}
_ZN4pcpp20PcapFileReaderDevice4openEv:
  709|  2.26k|	{
  710|  2.26k|		if (m_PcapFile.is_open())
  ------------------
  |  Branch (710:7): [True: 0, False: 2.26k]
  ------------------
  711|      0|		{
  712|      0|			PCPP_LOG_ERROR("File already opened");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  713|      0|			return false;
  714|      0|		}
  715|       |
  716|  2.26k|		resetStatisticCounters();
  717|       |
  718|  2.26k|		std::ifstream pcapFile;
  719|  2.26k|		pcapFile.open(m_FileName.c_str(), std::ifstream::binary);
  720|  2.26k|		if (!pcapFile.is_open())
  ------------------
  |  Branch (720:7): [True: 0, False: 2.26k]
  ------------------
  721|      0|		{
  722|      0|			PCPP_LOG_ERROR("Cannot open pcap reader device for filename '" << m_FileName << "'");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  723|      0|			return false;
  724|      0|		}
  725|       |
  726|  2.26k|		pcap_file_header pcapFileHeader{};
  727|  2.26k|		auto status = readPcapHeader(pcapFile, pcapFileHeader, m_Precision, m_NeedsSwap);
  728|  2.26k|		switch (status)
  729|  2.26k|		{
  730|  2.26k|		case PcapReadHeaderStatus::Ok:
  ------------------
  |  Branch (730:3): [True: 2.26k, False: 0]
  ------------------
  731|  2.26k|			break;
  732|      0|		case PcapReadHeaderStatus::NoData:
  ------------------
  |  Branch (732:3): [True: 0, False: 2.26k]
  ------------------
  733|      0|		case PcapReadHeaderStatus::MalformedData:
  ------------------
  |  Branch (733:3): [True: 0, False: 2.26k]
  ------------------
  734|      0|		{
  735|      0|			PCPP_LOG_ERROR("Cannot read pcap file header");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  736|      0|			return false;
  737|      0|		}
  738|      0|		case PcapReadHeaderStatus::UnsupportedFormat:
  ------------------
  |  Branch (738:3): [True: 0, False: 2.26k]
  ------------------
  739|      0|		{
  740|      0|			PCPP_LOG_ERROR("File content is not pcap or byte order can't be determined. Detected magic number: 0x"
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  741|      0|			               << std::hex << pcapFileHeader.magic);
  742|      0|			return false;
  743|      0|		}
  744|      0|		default:
  ------------------
  |  Branch (744:3): [True: 0, False: 2.26k]
  ------------------
  745|      0|			throw std::logic_error("Unhandled PcapReadHeaderStatus value");
  746|  2.26k|		}
  747|       |
  748|  2.26k|		if (pcapFileHeader.version_major != 2 && pcapFileHeader.version_major != 543)
  ------------------
  |  Branch (748:7): [True: 0, False: 2.26k]
  |  Branch (748:44): [True: 0, False: 0]
  ------------------
  749|      0|		{
  750|      0|			PCPP_LOG_ERROR("Unsupported pcap file version: " << std::to_string(pcapFileHeader.version_major) << "."
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  751|      0|			                                                 << std::to_string(pcapFileHeader.version_minor));
  752|      0|			return false;
  753|      0|		}
  754|       |
  755|  2.26k|		constexpr uint32_t MAX_SNAPLEN = 1024 * 1024;
  756|  2.26k|		if (pcapFileHeader.snaplen == 0 || pcapFileHeader.snaplen > MAX_SNAPLEN)
  ------------------
  |  Branch (756:7): [True: 0, False: 2.26k]
  |  Branch (756:38): [True: 17, False: 2.24k]
  ------------------
  757|     17|		{
  758|     17|			PCPP_LOG_ERROR("Invalid snapshot length: " << std::to_string(pcapFileHeader.snaplen));
  ------------------
  |  |  444|     17|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|     17|	do                                                                                                                 \
  |  |  |  |  414|     17|	{                                                                                                                  \
  |  |  |  |  415|     17|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|     17|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|     17|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 17, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|     17|		{                                                                                                              \
  |  |  |  |  418|     17|			auto ctx =                                                                                                 \
  |  |  |  |  419|     17|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|     17|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|     17|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|     17|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|     17|		}                                                                                                              \
  |  |  |  |  423|     17|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 17]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  759|     17|			return false;
  760|     17|		}
  761|       |
  762|  2.24k|		m_PcapLinkLayerType = toLinkLayerType(pcapFileHeader.linktype);
  763|       |
  764|  2.24k|		m_SnapshotLength = pcapFileHeader.snaplen;
  765|  2.24k|		m_ReadBuffer.resize(m_SnapshotLength);
  766|       |
  767|  2.24k|		m_PcapFile = std::move(pcapFile);
  768|  2.24k|		return true;
  769|  2.26k|	}
_ZN4pcpp20PcapFileReaderDevice13getNextPacketERNS_9RawPacketE:
  772|   193k|	{
  773|   193k|		timespec packetTimestamp;
  774|   193k|		uint32_t capturedLength = 0, frameLength = 0;
  775|       |
  776|   193k|		while (readNextPacket(packetTimestamp, m_ReadBuffer.data(), m_SnapshotLength, capturedLength, frameLength))
  ------------------
  |  Branch (776:10): [True: 191k, False: 2.24k]
  ------------------
  777|   191k|		{
  778|   191k|			if (m_BpfWrapper.matches(m_ReadBuffer.data(), capturedLength, packetTimestamp, m_PcapLinkLayerType))
  ------------------
  |  Branch (778:8): [True: 191k, False: 0]
  ------------------
  779|   191k|			{
  780|       |				// TODO: Fixup tirage hack of adding 20 bytes buffer to pass fuzz.
  781|   191k|				auto packetData = std::make_unique<uint8_t[]>(capturedLength /* + 200 */);
  782|   191k|				std::copy(m_ReadBuffer.begin(), std::next(m_ReadBuffer.begin(), capturedLength), packetData.get());
  783|       |
  784|   191k|				rawPacket.setRawData(capturedLength > 0 ? packetData.release() : nullptr, capturedLength, true,
  ------------------
  |  Branch (784:26): [True: 189k, False: 1.93k]
  ------------------
  785|   191k|				                     packetTimestamp, m_PcapLinkLayerType, frameLength);
  786|   191k|				reportPacketProcessed();
  787|   191k|				return true;
  788|   191k|			}
  789|      0|			PCPP_LOG_DEBUG("Packet doesn't match filter");
  ------------------
  |  |  426|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  790|      0|		}
  791|       |
  792|  2.24k|		return false;
  793|   193k|	}
_ZN4pcpp20PcapFileReaderDevice5closeEv:
  796|  2.24k|	{
  797|  2.24k|		m_PcapFile.close();
  798|  2.24k|	}
_ZN4pcpp20PcapFileReaderDevice14readNextPacketER8timespecPhjRjS4_:
  802|   193k|	{
  803|   193k|		packet_header packetHeader{};
  804|   193k|		m_PcapFile.read(reinterpret_cast<char*>(&packetHeader), sizeof(packetHeader));
  805|       |
  806|   193k|		auto bytesRead = m_PcapFile.gcount();
  807|   193k|		if (bytesRead == 0)
  ------------------
  |  Branch (807:7): [True: 263, False: 193k]
  ------------------
  808|    263|		{
  809|    263|			return false;
  810|    263|		}
  811|       |
  812|   193k|		if (static_cast<size_t>(bytesRead) < sizeof(packetHeader))
  ------------------
  |  Branch (812:7): [True: 434, False: 192k]
  ------------------
  813|    434|		{
  814|    434|			PCPP_LOG_ERROR("Failed to read packet metadata");
  ------------------
  |  |  444|    434|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    434|	do                                                                                                                 \
  |  |  |  |  414|    434|	{                                                                                                                  \
  |  |  |  |  415|    434|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    434|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|    434|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 434, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    434|		{                                                                                                              \
  |  |  |  |  418|    434|			auto ctx =                                                                                                 \
  |  |  |  |  419|    434|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|    434|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    434|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    434|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    434|		}                                                                                                              \
  |  |  |  |  423|    434|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 434]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  815|    434|			return false;
  816|    434|		}
  817|       |
  818|   192k|		if (m_NeedsSwap)
  ------------------
  |  Branch (818:7): [True: 282, False: 192k]
  ------------------
  819|    282|		{
  820|    282|			packetHeader.tv_sec = swap32(packetHeader.tv_sec);
  821|    282|			packetHeader.tv_usec = swap32(packetHeader.tv_usec);
  822|    282|			packetHeader.caplen = swap32(packetHeader.caplen);
  823|    282|			packetHeader.len = swap32(packetHeader.len);
  824|    282|		}
  825|       |
  826|   192k|		if (packetHeader.caplen > packetHeader.len)
  ------------------
  |  Branch (826:7): [True: 715, False: 192k]
  ------------------
  827|    715|		{
  828|    715|			PCPP_LOG_ERROR("Packet captured length " << packetHeader.caplen << " exceeds packet length "
  ------------------
  |  |  444|    715|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    715|	do                                                                                                                 \
  |  |  |  |  414|    715|	{                                                                                                                  \
  |  |  |  |  415|    715|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    715|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|    715|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 715, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    715|		{                                                                                                              \
  |  |  |  |  418|    715|			auto ctx =                                                                                                 \
  |  |  |  |  419|    715|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|    715|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    715|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    715|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    715|		}                                                                                                              \
  |  |  |  |  423|    715|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 715]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  829|    715|			                                         << packetHeader.len);
  830|    715|			return false;
  831|    715|		}
  832|       |
  833|   192k|		constexpr uint32_t MAX_PACKET_SIZE = 256 * 1024;
  834|   192k|		if (packetHeader.caplen > MAX_PACKET_SIZE)
  ------------------
  |  Branch (834:7): [True: 426, False: 191k]
  ------------------
  835|    426|		{
  836|    426|			PCPP_LOG_ERROR("Packet captured length " << packetHeader.caplen << " is suspiciously large");
  ------------------
  |  |  444|    426|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    426|	do                                                                                                                 \
  |  |  |  |  414|    426|	{                                                                                                                  \
  |  |  |  |  415|    426|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    426|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|    426|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 426, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    426|		{                                                                                                              \
  |  |  |  |  418|    426|			auto ctx =                                                                                                 \
  |  |  |  |  419|    426|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|    426|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    426|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    426|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    426|		}                                                                                                              \
  |  |  |  |  423|    426|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 426]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  837|    426|			return false;
  838|    426|		}
  839|       |
  840|   191k|		if (m_Precision == FileTimestampPrecision::Nanoseconds)
  ------------------
  |  Branch (840:7): [True: 4.85k, False: 186k]
  ------------------
  841|  4.85k|		{
  842|  4.85k|			constexpr uint32_t NANO_PER_SEC = 1'000'000'000;
  843|  4.85k|			if (packetHeader.tv_usec >= NANO_PER_SEC)
  ------------------
  |  Branch (843:8): [True: 2, False: 4.85k]
  ------------------
  844|      2|			{
  845|      2|				PCPP_LOG_ERROR("Invalid nanosecond timestamp: " << std::to_string(packetHeader.tv_usec));
  ------------------
  |  |  444|      2|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      2|	do                                                                                                                 \
  |  |  |  |  414|      2|	{                                                                                                                  \
  |  |  |  |  415|      2|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      2|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      2|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 2, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      2|		{                                                                                                              \
  |  |  |  |  418|      2|			auto ctx =                                                                                                 \
  |  |  |  |  419|      2|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      2|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      2|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      2|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      2|		}                                                                                                              \
  |  |  |  |  423|      2|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 2]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  846|      2|				return false;
  847|      2|			}
  848|  4.85k|		}
  849|   186k|		else
  850|   186k|		{
  851|   186k|			constexpr uint32_t MICRO_PER_SEC = 1'000'000;
  852|   186k|			if (packetHeader.tv_usec >= MICRO_PER_SEC)
  ------------------
  |  Branch (852:8): [True: 101, False: 186k]
  ------------------
  853|    101|			{
  854|    101|				PCPP_LOG_ERROR("Invalid microsecond timestamp: " << std::to_string(packetHeader.tv_usec));
  ------------------
  |  |  444|    101|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    101|	do                                                                                                                 \
  |  |  |  |  414|    101|	{                                                                                                                  \
  |  |  |  |  415|    101|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    101|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|    101|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 101, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    101|		{                                                                                                              \
  |  |  |  |  418|    101|			auto ctx =                                                                                                 \
  |  |  |  |  419|    101|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|    101|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    101|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    101|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    101|		}                                                                                                              \
  |  |  |  |  423|    101|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 101]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  855|    101|				return false;
  856|    101|			}
  857|   186k|		}
  858|       |
  859|   191k|		uint32_t bytesToDiscard = 0;
  860|   191k|		if (packetHeader.caplen > packetDataLen)
  ------------------
  |  Branch (860:7): [True: 4.26k, False: 187k]
  ------------------
  861|  4.26k|		{
  862|  4.26k|			PCPP_LOG_WARN("Packet captured length " << packetHeader.caplen << " exceeds file snapshot length "
  ------------------
  |  |  432|  4.26k|#	define PCPP_LOG_WARN(message) PCPP_LOG(pcpp::LogLevel::Warn, message)
  |  |  ------------------
  |  |  |  |  413|  4.26k|	do                                                                                                                 \
  |  |  |  |  414|  4.26k|	{                                                                                                                  \
  |  |  |  |  415|  4.26k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|  4.26k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|  4.26k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 4.26k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|  4.26k|		{                                                                                                              \
  |  |  |  |  418|  4.26k|			auto ctx =                                                                                                 \
  |  |  |  |  419|  4.26k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|  4.26k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|  4.26k|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|  4.26k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|  4.26k|		}                                                                                                              \
  |  |  |  |  423|  4.26k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 4.26k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  863|  4.26k|			                                        << packetDataLen);
  864|  4.26k|			bytesToDiscard = packetHeader.caplen - packetDataLen;
  865|  4.26k|			packetHeader.caplen = packetDataLen;
  866|  4.26k|		}
  867|       |
  868|   191k|		if (packetHeader.caplen > 0 && !m_PcapFile.read(reinterpret_cast<char*>(packetData), packetHeader.caplen))
  ------------------
  |  Branch (868:7): [True: 189k, False: 1.93k]
  |  Branch (868:34): [True: 304, False: 189k]
  ------------------
  869|    304|		{
  870|    304|			PCPP_LOG_ERROR("Failed to read packet data");
  ------------------
  |  |  444|    304|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|    304|	do                                                                                                                 \
  |  |  |  |  414|    304|	{                                                                                                                  \
  |  |  |  |  415|    304|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|    304|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|    304|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 304, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|    304|		{                                                                                                              \
  |  |  |  |  418|    304|			auto ctx =                                                                                                 \
  |  |  |  |  419|    304|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|    304|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|    304|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|    304|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|    304|		}                                                                                                              \
  |  |  |  |  423|    304|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 304]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  871|    304|			return false;
  872|    304|		}
  873|       |
  874|   191k|		if (bytesToDiscard && !m_PcapFile.ignore(bytesToDiscard))
  ------------------
  |  Branch (874:7): [True: 4.24k, False: 187k]
  |  Branch (874:25): [True: 0, False: 4.24k]
  ------------------
  875|      0|		{
  876|      0|			PCPP_LOG_ERROR("Failed to read discarded packet data");
  ------------------
  |  |  444|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  413|      0|	do                                                                                                                 \
  |  |  |  |  414|      0|	{                                                                                                                  \
  |  |  |  |  415|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  416|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (416:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  417|      0|		{                                                                                                              \
  |  |  |  |  418|      0|			auto ctx =                                                                                                 \
  |  |  |  |  419|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    3|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  420|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  421|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  422|      0|		}                                                                                                              \
  |  |  |  |  423|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (423:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  877|      0|			return false;
  878|      0|		}
  879|       |
  880|   191k|		capturedLength = packetHeader.caplen;
  881|   191k|		frameLength = packetHeader.len;
  882|   191k|		packetTimestamp = { static_cast<time_t>(packetHeader.tv_sec),
  883|   191k|			                static_cast<long>(m_Precision == FileTimestampPrecision::Microseconds
  ------------------
  |  Branch (883:38): [True: 186k, False: 4.84k]
  ------------------
  884|   191k|			                                      ? packetHeader.tv_usec * 1000
  885|   191k|			                                      : packetHeader.tv_usec) };
  886|   191k|		return true;
  887|   191k|	}
PcapFileDevice.cpp:_ZN4pcpp12_GLOBAL__N_115detectPcapMagicEjPNS0_13FileByteOrderE:
  286|  2.26k|		{
  287|       |			// Pcap magic numbers are taken from: https://github.com/the-tcpdump-group/libpcap/blob/master/sf-pcap.c
  288|       |			// There are some other reserved magic numbers but they are not supported by libpcap so we ignore them.
  289|       |			// The order of the magic numbers in the array is important for format detection. See switch statement
  290|       |			// below.
  291|  2.26k|			constexpr std::array<uint32_t, 6> pcapMagicNumbers = {
  292|  2.26k|				TCPDUMP_MAGIC,          // 0xa1'b2'c3'd4 - regular pcap, microsecond-precision
  293|  2.26k|				TCPDUMP_MAGIC_SWAPPED,  // 0xd4'c3'b2'a1 - regular pcap, microsecond-precision (byte-swapped)
  294|       |				// Libpcap 0.9.1 and later support reading a modified pcap format that contains an extended header.
  295|       |				// Format reference: https://wiki.wireshark.org/Development/LibpcapFileFormat#modified-pcap
  296|  2.26k|				KUZNETZOV_TCPDUMP_MAGIC,          // Alexey Kuznetzov's modified libpcap format
  297|  2.26k|				KUZNETZOV_TCPDUMP_MAGIC_SWAPPED,  // Alexey Kuznetzov's modified libpcap format (byte-swapped)
  298|       |				// Libpcap 1.5.0 and later support reading nanosecond-precision pcap files.
  299|  2.26k|				NSEC_TCPDUMP_MAGIC,          // 0xa1'b2'3c'4d - regular pcap, nanosecond-precision
  300|  2.26k|				NSEC_TCPDUMP_MAGIC_SWAPPED,  // 0x4d'3c'b2'a1 - regular pcap, nanosecond-precision (byte-swapped)
  301|  2.26k|			};
  302|       |
  303|  2.26k|			auto it = std::find(pcapMagicNumbers.begin(), pcapMagicNumbers.end(), magic);
  304|  2.26k|			if (it == pcapMagicNumbers.end())
  ------------------
  |  Branch (304:8): [True: 0, False: 2.26k]
  ------------------
  305|      0|			{
  306|      0|				return FileFormat::Unknown;
  307|      0|			}
  308|       |
  309|       |			// Indices 0-1 are regular microsecond-precision pcap files.
  310|       |			// Indices 2-3 are "modified" pcap files
  311|       |			// Indices 4-5 are nanosecond-precision pcap files.
  312|  2.26k|			auto const selectedIdx = std::distance(pcapMagicNumbers.begin(), it);
  313|       |
  314|  2.26k|			if (byteOrder != nullptr)
  ------------------
  |  Branch (314:8): [True: 2.26k, False: 0]
  ------------------
  315|  2.26k|			{
  316|  2.26k|				*byteOrder = (selectedIdx % 2 == 0) ? FileByteOrder::Native : FileByteOrder::Swapped;
  ------------------
  |  Branch (316:18): [True: 2.25k, False: 3]
  ------------------
  317|  2.26k|			}
  318|       |
  319|  2.26k|			if (selectedIdx < 2)
  ------------------
  |  Branch (319:8): [True: 2.18k, False: 79]
  ------------------
  320|  2.18k|			{
  321|  2.18k|				return FileFormat::Pcap;
  322|  2.18k|			}
  323|     79|			if (selectedIdx < 4)
  ------------------
  |  Branch (323:8): [True: 0, False: 79]
  ------------------
  324|      0|			{
  325|      0|				return FileFormat::PcapMod;
  326|      0|			}
  327|       |
  328|     79|			return FileFormat::PcapNano;
  329|     79|		}
PcapFileDevice.cpp:_ZN4pcpp12_GLOBAL__N_114readPcapHeaderERNSt3__113basic_istreamIcNS1_11char_traitsIcEEEERNS0_16pcap_file_headerERNS_22FileTimestampPrecisionERb:
  670|  2.26k|		{
  671|  2.26k|			inStream.read(reinterpret_cast<char*>(&header), sizeof(header));
  672|       |
  673|  2.26k|			auto readBytes = inStream.gcount();
  674|  2.26k|			if (readBytes == 0)
  ------------------
  |  Branch (674:8): [True: 0, False: 2.26k]
  ------------------
  675|      0|			{
  676|      0|				return PcapReadHeaderStatus::NoData;
  677|      0|			}
  678|  2.26k|			if (readBytes < static_cast<std::streamsize>(sizeof(header)))
  ------------------
  |  Branch (678:8): [True: 0, False: 2.26k]
  ------------------
  679|      0|			{
  680|      0|				return PcapReadHeaderStatus::MalformedData;
  681|      0|			}
  682|       |
  683|  2.26k|			FileByteOrder byteOrder;
  684|  2.26k|			FileFormat pcapFormat = detectPcapMagic(header.magic, &byteOrder);
  685|  2.26k|			if (pcapFormat == FileFormat::Unknown)
  ------------------
  |  Branch (685:8): [True: 0, False: 2.26k]
  ------------------
  686|      0|			{
  687|      0|				return PcapReadHeaderStatus::UnsupportedFormat;
  688|      0|			}
  689|       |
  690|  2.26k|			precision = getPcapPrecision(pcapFormat);
  691|  2.26k|			needsSwap = byteOrder == FileByteOrder::Swapped;
  692|       |
  693|  2.26k|			if (needsSwap)
  ------------------
  |  Branch (693:8): [True: 3, False: 2.25k]
  ------------------
  694|      3|			{
  695|      3|				header.magic = swap32(header.magic);
  696|      3|				header.version_major = swap16(header.version_major);
  697|      3|				header.version_minor = swap16(header.version_minor);
  698|      3|				header.thiszone = swap32(header.thiszone);
  699|      3|				header.sigfigs = swap32(header.sigfigs);
  700|      3|				header.snaplen = swap32(header.snaplen);
  701|      3|				header.linktype = swap32(header.linktype);
  702|      3|			}
  703|       |
  704|  2.26k|			return PcapReadHeaderStatus::Ok;
  705|  2.26k|		}
PcapFileDevice.cpp:_ZN4pcpp12_GLOBAL__N_116getPcapPrecisionENS0_10FileFormatE:
  462|  2.26k|		{
  463|  2.26k|			switch (format)
  464|  2.26k|			{
  465|  2.18k|			case FileFormat::Pcap:
  ------------------
  |  Branch (465:4): [True: 2.18k, False: 79]
  ------------------
  466|  2.18k|			case FileFormat::PcapMod:
  ------------------
  |  Branch (466:4): [True: 0, False: 2.26k]
  ------------------
  467|  2.18k|				return FileTimestampPrecision::Microseconds;
  468|     79|			case FileFormat::PcapNano:
  ------------------
  |  Branch (468:4): [True: 79, False: 2.18k]
  ------------------
  469|     79|				return FileTimestampPrecision::Nanoseconds;
  470|      0|			default:
  ------------------
  |  Branch (470:4): [True: 0, False: 2.26k]
  ------------------
  471|      0|				return FileTimestampPrecision::Unknown;
  472|  2.26k|			}
  473|  2.26k|		}
PcapFileDevice.cpp:_ZN4pcpp12_GLOBAL__N_16swap16Et:
  641|      6|		{
  642|      6|			return static_cast<uint16_t>((value >> 8) | (value << 8));
  643|      6|		}
PcapFileDevice.cpp:_ZN4pcpp12_GLOBAL__N_115toLinkLayerTypeEj:
   91|  2.24k|		{
   92|  2.24k|			switch (value)
   93|  2.24k|			{
   94|     63|			case LINKTYPE_NULL:
  ------------------
  |  Branch (94:4): [True: 63, False: 2.18k]
  ------------------
   95|  1.96k|			case LINKTYPE_ETHERNET:
  ------------------
  |  Branch (95:4): [True: 1.90k, False: 343]
  ------------------
   96|  1.96k|			case LINKTYPE_AX25:
  ------------------
  |  Branch (96:4): [True: 0, False: 2.24k]
  ------------------
   97|  1.96k|			case LINKTYPE_IEEE802_5:
  ------------------
  |  Branch (97:4): [True: 0, False: 2.24k]
  ------------------
   98|  1.96k|			case LINKTYPE_ARCNET_BSD:
  ------------------
  |  Branch (98:4): [True: 0, False: 2.24k]
  ------------------
   99|  1.96k|			case LINKTYPE_SLIP:
  ------------------
  |  Branch (99:4): [True: 0, False: 2.24k]
  ------------------
  100|  1.96k|			case LINKTYPE_PPP:
  ------------------
  |  Branch (100:4): [True: 0, False: 2.24k]
  ------------------
  101|  1.96k|			case LINKTYPE_FDDI:
  ------------------
  |  Branch (101:4): [True: 0, False: 2.24k]
  ------------------
  102|  2.00k|			case LINKTYPE_DLT_RAW1:
  ------------------
  |  Branch (102:4): [True: 37, False: 2.20k]
  ------------------
  103|  2.03k|			case LINKTYPE_DLT_RAW2:
  ------------------
  |  Branch (103:4): [True: 33, False: 2.21k]
  ------------------
  104|  2.03k|			case LINKTYPE_PPP_HDLC:
  ------------------
  |  Branch (104:4): [True: 0, False: 2.24k]
  ------------------
  105|  2.03k|			case LINKTYPE_PPP_ETHER:
  ------------------
  |  Branch (105:4): [True: 0, False: 2.24k]
  ------------------
  106|  2.03k|			case LINKTYPE_ATM_RFC1483:
  ------------------
  |  Branch (106:4): [True: 0, False: 2.24k]
  ------------------
  107|  2.06k|			case LINKTYPE_RAW:
  ------------------
  |  Branch (107:4): [True: 32, False: 2.21k]
  ------------------
  108|  2.07k|			case LINKTYPE_C_HDLC:
  ------------------
  |  Branch (108:4): [True: 4, False: 2.24k]
  ------------------
  109|  2.07k|			case LINKTYPE_IEEE802_11:
  ------------------
  |  Branch (109:4): [True: 0, False: 2.24k]
  ------------------
  110|  2.07k|			case LINKTYPE_FRELAY:
  ------------------
  |  Branch (110:4): [True: 0, False: 2.24k]
  ------------------
  111|  2.07k|			case LINKTYPE_LOOP:
  ------------------
  |  Branch (111:4): [True: 0, False: 2.24k]
  ------------------
  112|  2.11k|			case LINKTYPE_LINUX_SLL:
  ------------------
  |  Branch (112:4): [True: 43, False: 2.20k]
  ------------------
  113|  2.11k|			case LINKTYPE_LTALK:
  ------------------
  |  Branch (113:4): [True: 0, False: 2.24k]
  ------------------
  114|  2.11k|			case LINKTYPE_PFLOG:
  ------------------
  |  Branch (114:4): [True: 0, False: 2.24k]
  ------------------
  115|  2.11k|			case LINKTYPE_IEEE802_11_PRISM:
  ------------------
  |  Branch (115:4): [True: 0, False: 2.24k]
  ------------------
  116|  2.11k|			case LINKTYPE_IP_OVER_FC:
  ------------------
  |  Branch (116:4): [True: 0, False: 2.24k]
  ------------------
  117|  2.11k|			case LINKTYPE_SUNATM:
  ------------------
  |  Branch (117:4): [True: 0, False: 2.24k]
  ------------------
  118|  2.11k|			case LINKTYPE_IEEE802_11_RADIOTAP:
  ------------------
  |  Branch (118:4): [True: 0, False: 2.24k]
  ------------------
  119|  2.11k|			case LINKTYPE_ARCNET_LINUX:
  ------------------
  |  Branch (119:4): [True: 0, False: 2.24k]
  ------------------
  120|  2.11k|			case LINKTYPE_APPLE_IP_OVER_IEEE1394:
  ------------------
  |  Branch (120:4): [True: 0, False: 2.24k]
  ------------------
  121|  2.11k|			case LINKTYPE_MTP2_WITH_PHDR:
  ------------------
  |  Branch (121:4): [True: 0, False: 2.24k]
  ------------------
  122|  2.11k|			case LINKTYPE_MTP2:
  ------------------
  |  Branch (122:4): [True: 0, False: 2.24k]
  ------------------
  123|  2.11k|			case LINKTYPE_MTP3:
  ------------------
  |  Branch (123:4): [True: 0, False: 2.24k]
  ------------------
  124|  2.11k|			case LINKTYPE_SCCP:
  ------------------
  |  Branch (124:4): [True: 0, False: 2.24k]
  ------------------
  125|  2.11k|			case LINKTYPE_DOCSIS:
  ------------------
  |  Branch (125:4): [True: 0, False: 2.24k]
  ------------------
  126|  2.11k|			case LINKTYPE_LINUX_IRDA:
  ------------------
  |  Branch (126:4): [True: 0, False: 2.24k]
  ------------------
  127|  2.11k|			case LINKTYPE_USER0:
  ------------------
  |  Branch (127:4): [True: 0, False: 2.24k]
  ------------------
  128|  2.11k|			case LINKTYPE_USER1:
  ------------------
  |  Branch (128:4): [True: 0, False: 2.24k]
  ------------------
  129|  2.11k|			case LINKTYPE_USER2:
  ------------------
  |  Branch (129:4): [True: 0, False: 2.24k]
  ------------------
  130|  2.11k|			case LINKTYPE_USER3:
  ------------------
  |  Branch (130:4): [True: 0, False: 2.24k]
  ------------------
  131|  2.11k|			case LINKTYPE_USER4:
  ------------------
  |  Branch (131:4): [True: 0, False: 2.24k]
  ------------------
  132|  2.11k|			case LINKTYPE_USER5:
  ------------------
  |  Branch (132:4): [True: 0, False: 2.24k]
  ------------------
  133|  2.11k|			case LINKTYPE_USER6:
  ------------------
  |  Branch (133:4): [True: 0, False: 2.24k]
  ------------------
  134|  2.11k|			case LINKTYPE_USER7:
  ------------------
  |  Branch (134:4): [True: 0, False: 2.24k]
  ------------------
  135|  2.11k|			case LINKTYPE_USER8:
  ------------------
  |  Branch (135:4): [True: 0, False: 2.24k]
  ------------------
  136|  2.11k|			case LINKTYPE_USER9:
  ------------------
  |  Branch (136:4): [True: 0, False: 2.24k]
  ------------------
  137|  2.11k|			case LINKTYPE_USER10:
  ------------------
  |  Branch (137:4): [True: 0, False: 2.24k]
  ------------------
  138|  2.11k|			case LINKTYPE_USER11:
  ------------------
  |  Branch (138:4): [True: 0, False: 2.24k]
  ------------------
  139|  2.11k|			case LINKTYPE_USER12:
  ------------------
  |  Branch (139:4): [True: 0, False: 2.24k]
  ------------------
  140|  2.11k|			case LINKTYPE_USER13:
  ------------------
  |  Branch (140:4): [True: 0, False: 2.24k]
  ------------------
  141|  2.11k|			case LINKTYPE_USER14:
  ------------------
  |  Branch (141:4): [True: 0, False: 2.24k]
  ------------------
  142|  2.11k|			case LINKTYPE_USER15:
  ------------------
  |  Branch (142:4): [True: 0, False: 2.24k]
  ------------------
  143|  2.11k|			case LINKTYPE_IEEE802_11_AVS:
  ------------------
  |  Branch (143:4): [True: 0, False: 2.24k]
  ------------------
  144|  2.11k|			case LINKTYPE_BACNET_MS_TP:
  ------------------
  |  Branch (144:4): [True: 0, False: 2.24k]
  ------------------
  145|  2.11k|			case LINKTYPE_PPP_PPPD:
  ------------------
  |  Branch (145:4): [True: 0, False: 2.24k]
  ------------------
  146|  2.11k|			case LINKTYPE_GPRS_LLC:
  ------------------
  |  Branch (146:4): [True: 0, False: 2.24k]
  ------------------
  147|  2.11k|			case LINKTYPE_GPF_T:
  ------------------
  |  Branch (147:4): [True: 0, False: 2.24k]
  ------------------
  148|  2.11k|			case LINKTYPE_GPF_F:
  ------------------
  |  Branch (148:4): [True: 0, False: 2.24k]
  ------------------
  149|  2.11k|			case LINKTYPE_LINUX_LAPD:
  ------------------
  |  Branch (149:4): [True: 0, False: 2.24k]
  ------------------
  150|  2.11k|			case LINKTYPE_BLUETOOTH_HCI_H4:
  ------------------
  |  Branch (150:4): [True: 0, False: 2.24k]
  ------------------
  151|  2.11k|			case LINKTYPE_USB_LINUX:
  ------------------
  |  Branch (151:4): [True: 0, False: 2.24k]
  ------------------
  152|  2.11k|			case LINKTYPE_PPI:
  ------------------
  |  Branch (152:4): [True: 0, False: 2.24k]
  ------------------
  153|  2.11k|			case LINKTYPE_IEEE802_15_4:
  ------------------
  |  Branch (153:4): [True: 0, False: 2.24k]
  ------------------
  154|  2.11k|			case LINKTYPE_SITA:
  ------------------
  |  Branch (154:4): [True: 0, False: 2.24k]
  ------------------
  155|  2.11k|			case LINKTYPE_ERF:
  ------------------
  |  Branch (155:4): [True: 0, False: 2.24k]
  ------------------
  156|  2.11k|			case LINKTYPE_BLUETOOTH_HCI_H4_WITH_PHDR:
  ------------------
  |  Branch (156:4): [True: 0, False: 2.24k]
  ------------------
  157|  2.11k|			case LINKTYPE_AX25_KISS:
  ------------------
  |  Branch (157:4): [True: 0, False: 2.24k]
  ------------------
  158|  2.11k|			case LINKTYPE_LAPD:
  ------------------
  |  Branch (158:4): [True: 0, False: 2.24k]
  ------------------
  159|  2.11k|			case LINKTYPE_PPP_WITH_DIR:
  ------------------
  |  Branch (159:4): [True: 0, False: 2.24k]
  ------------------
  160|  2.11k|			case LINKTYPE_C_HDLC_WITH_DIR:
  ------------------
  |  Branch (160:4): [True: 0, False: 2.24k]
  ------------------
  161|  2.11k|			case LINKTYPE_FRELAY_WITH_DIR:
  ------------------
  |  Branch (161:4): [True: 0, False: 2.24k]
  ------------------
  162|  2.11k|			case LINKTYPE_IPMB_LINUX:
  ------------------
  |  Branch (162:4): [True: 0, False: 2.24k]
  ------------------
  163|  2.11k|			case LINKTYPE_IEEE802_15_4_NONASK_PHY:
  ------------------
  |  Branch (163:4): [True: 0, False: 2.24k]
  ------------------
  164|  2.11k|			case LINKTYPE_USB_LINUX_MMAPPED:
  ------------------
  |  Branch (164:4): [True: 0, False: 2.24k]
  ------------------
  165|  2.11k|			case LINKTYPE_FC_2:
  ------------------
  |  Branch (165:4): [True: 0, False: 2.24k]
  ------------------
  166|  2.11k|			case LINKTYPE_FC_2_WITH_FRAME_DELIMS:
  ------------------
  |  Branch (166:4): [True: 0, False: 2.24k]
  ------------------
  167|  2.11k|			case LINKTYPE_IPNET:
  ------------------
  |  Branch (167:4): [True: 0, False: 2.24k]
  ------------------
  168|  2.11k|			case LINKTYPE_CAN_SOCKETCAN:
  ------------------
  |  Branch (168:4): [True: 0, False: 2.24k]
  ------------------
  169|  2.20k|			case LINKTYPE_IPV4:
  ------------------
  |  Branch (169:4): [True: 89, False: 2.15k]
  ------------------
  170|  2.20k|			case LINKTYPE_IPV6:
  ------------------
  |  Branch (170:4): [True: 1, False: 2.24k]
  ------------------
  171|  2.20k|			case LINKTYPE_IEEE802_15_4_NOFCS:
  ------------------
  |  Branch (171:4): [True: 0, False: 2.24k]
  ------------------
  172|  2.20k|			case LINKTYPE_DBUS:
  ------------------
  |  Branch (172:4): [True: 0, False: 2.24k]
  ------------------
  173|  2.20k|			case LINKTYPE_DVB_CI:
  ------------------
  |  Branch (173:4): [True: 0, False: 2.24k]
  ------------------
  174|  2.20k|			case LINKTYPE_MUX27010:
  ------------------
  |  Branch (174:4): [True: 0, False: 2.24k]
  ------------------
  175|  2.20k|			case LINKTYPE_STANAG_5066_D_PDU:
  ------------------
  |  Branch (175:4): [True: 0, False: 2.24k]
  ------------------
  176|  2.22k|			case LINKTYPE_NFLOG:
  ------------------
  |  Branch (176:4): [True: 16, False: 2.22k]
  ------------------
  177|  2.22k|			case LINKTYPE_NETANALYZER:
  ------------------
  |  Branch (177:4): [True: 0, False: 2.24k]
  ------------------
  178|  2.22k|			case LINKTYPE_NETANALYZER_TRANSPARENT:
  ------------------
  |  Branch (178:4): [True: 0, False: 2.24k]
  ------------------
  179|  2.22k|			case LINKTYPE_IPOIB:
  ------------------
  |  Branch (179:4): [True: 0, False: 2.24k]
  ------------------
  180|  2.22k|			case LINKTYPE_MPEG_2_TS:
  ------------------
  |  Branch (180:4): [True: 0, False: 2.24k]
  ------------------
  181|  2.22k|			case LINKTYPE_NG40:
  ------------------
  |  Branch (181:4): [True: 0, False: 2.24k]
  ------------------
  182|  2.22k|			case LINKTYPE_NFC_LLCP:
  ------------------
  |  Branch (182:4): [True: 0, False: 2.24k]
  ------------------
  183|  2.22k|			case LINKTYPE_INFINIBAND:
  ------------------
  |  Branch (183:4): [True: 0, False: 2.24k]
  ------------------
  184|  2.22k|			case LINKTYPE_SCTP:
  ------------------
  |  Branch (184:4): [True: 0, False: 2.24k]
  ------------------
  185|  2.22k|			case LINKTYPE_USBPCAP:
  ------------------
  |  Branch (185:4): [True: 0, False: 2.24k]
  ------------------
  186|  2.22k|			case LINKTYPE_RTAC_SERIAL:
  ------------------
  |  Branch (186:4): [True: 0, False: 2.24k]
  ------------------
  187|  2.22k|			case LINKTYPE_BLUETOOTH_LE_LL:
  ------------------
  |  Branch (187:4): [True: 0, False: 2.24k]
  ------------------
  188|  2.22k|			case LINKTYPE_NETLINK:
  ------------------
  |  Branch (188:4): [True: 0, False: 2.24k]
  ------------------
  189|  2.22k|			case LINKTYPE_BLUETOOTH_LINUX_MONITOR:
  ------------------
  |  Branch (189:4): [True: 0, False: 2.24k]
  ------------------
  190|  2.22k|			case LINKTYPE_BLUETOOTH_BREDR_BB:
  ------------------
  |  Branch (190:4): [True: 0, False: 2.24k]
  ------------------
  191|  2.22k|			case LINKTYPE_BLUETOOTH_LE_LL_WITH_PHDR:
  ------------------
  |  Branch (191:4): [True: 0, False: 2.24k]
  ------------------
  192|  2.22k|			case LINKTYPE_PROFIBUS_DL:
  ------------------
  |  Branch (192:4): [True: 0, False: 2.24k]
  ------------------
  193|  2.22k|			case LINKTYPE_PKTAP:
  ------------------
  |  Branch (193:4): [True: 0, False: 2.24k]
  ------------------
  194|  2.22k|			case LINKTYPE_EPON:
  ------------------
  |  Branch (194:4): [True: 0, False: 2.24k]
  ------------------
  195|  2.22k|			case LINKTYPE_IPMI_HPM_2:
  ------------------
  |  Branch (195:4): [True: 0, False: 2.24k]
  ------------------
  196|  2.22k|			case LINKTYPE_ZWAVE_R1_R2:
  ------------------
  |  Branch (196:4): [True: 0, False: 2.24k]
  ------------------
  197|  2.22k|			case LINKTYPE_ZWAVE_R3:
  ------------------
  |  Branch (197:4): [True: 0, False: 2.24k]
  ------------------
  198|  2.22k|			case LINKTYPE_WATTSTOPPER_DLM:
  ------------------
  |  Branch (198:4): [True: 0, False: 2.24k]
  ------------------
  199|  2.22k|			case LINKTYPE_ISO_14443:
  ------------------
  |  Branch (199:4): [True: 0, False: 2.24k]
  ------------------
  200|  2.24k|			case LINKTYPE_LINUX_SLL2:
  ------------------
  |  Branch (200:4): [True: 24, False: 2.22k]
  ------------------
  201|  2.24k|			{
  202|  2.24k|				return static_cast<LinkLayerType>(value);
  203|  2.22k|			}
  204|       |
  205|      1|			default:
  ------------------
  |  Branch (205:4): [True: 1, False: 2.24k]
  ------------------
  206|      1|			{
  207|      1|				return LINKTYPE_INVALID;
  208|  2.22k|			}
  209|  2.24k|			}
  210|  2.24k|		}
PcapFileDevice.cpp:_ZN4pcpp12_GLOBAL__N_16swap32Ej:
  646|  1.14k|		{
  647|  1.14k|			return (value >> 24) | ((value >> 8) & 0x0000FF00) | ((value << 8) & 0x00FF0000) | (value << 24);
  648|  1.14k|		}

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

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

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

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

