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

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

_ZN4pcpp6Logger11getInstanceEv:
  367|  21.7M|		{
  368|  21.7M|			static Logger instance;
  369|  21.7M|			return instance;
  370|  21.7M|		}
_ZN4pcpp6Logger12suppressLogsEv:
  319|  3.72k|		{
  320|  3.72k|			m_LogsEnabled = false;
  321|  3.72k|		}
_ZN4pcpp9LogSourceC2ENS_9LogModuleEPKcS3_i:
  137|   167k|		    : file(file), function(function), line(line), logModule(logModule)
  138|   167k|		{}
_ZN4pcpp8internal10LogContext4initENS_8LogLevelERKNS_9LogSourceE:
  187|   167k|			{
  188|   167k|				m_Source = source;
  189|   167k|				m_Level = level;
  190|   167k|				m_Stream.clear();
  191|   167k|				m_Stream.str({});
  192|   167k|			}
_ZNK4pcpp6Logger14isDebugEnabledENS_9LogModuleE:
  278|  96.0k|		{
  279|  96.0k|			return m_LogModulesArray[module] == LogLevel::Debug;
  280|  96.0k|		}
_ZNK4pcpp6Logger9shouldLogENS_8LogLevelENS_9LogModuleE:
  287|  21.6M|		{
  288|  21.6M|			return level != LogLevel::Off && m_LogModulesArray[module] >= level;
  ------------------
  |  Branch (288:11): [True: 21.6M, False: 0]
  |  Branch (288:37): [True: 167k, False: 21.4M]
  ------------------
  289|  21.6M|		}
_ZN4pcpp8internal10LogContextlsIA52_cEERS1_RKT_:
  198|  3.95k|			{
  199|  3.95k|				m_Stream << value;
  200|  3.95k|				return *this;
  201|  3.95k|			}
_ZN4pcpp8internal10LogContextlsINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEERS1_RKT_:
  198|    223|			{
  199|    223|				m_Stream << value;
  200|    223|				return *this;
  201|    223|			}
_ZN4pcpp8internal10LogContextlsIA2_cEERS1_RKT_:
  198|    223|			{
  199|    223|				m_Stream << value;
  200|    223|				return *this;
  201|    223|			}
_ZN4pcpp8internal10LogContextlsIA20_cEERS1_RKT_:
  198|    223|			{
  199|    223|				m_Stream << value;
  200|    223|				return *this;
  201|    223|			}
_ZN4pcpp8internal10LogContextlsIA46_cEERS1_RKT_:
  198|  7.65k|			{
  199|  7.65k|				m_Stream << value;
  200|  7.65k|				return *this;
  201|  7.65k|			}
_ZN4pcpp8internal10LogContextlsIA86_cEERS1_RKT_:
  198|  1.06k|			{
  199|  1.06k|				m_Stream << value;
  200|  1.06k|				return *this;
  201|  1.06k|			}
_ZN4pcpp8internal10LogContextlsIA26_cEERS1_RKT_:
  198|    402|			{
  199|    402|				m_Stream << value;
  200|    402|				return *this;
  201|    402|			}
_ZN4pcpp8internal10LogContextlsIA31_cEERS1_RKT_:
  198|  32.1k|			{
  199|  32.1k|				m_Stream << value;
  200|  32.1k|				return *this;
  201|  32.1k|			}
_ZN4pcpp8internal10LogContextlsIA27_cEERS1_RKT_:
  198|      2|			{
  199|      2|				m_Stream << value;
  200|      2|				return *this;
  201|      2|			}
_ZN4pcpp8internal10LogContextlsIA25_cEERS1_RKT_:
  198|  33.8k|			{
  199|  33.8k|				m_Stream << value;
  200|  33.8k|				return *this;
  201|  33.8k|			}
_ZN4pcpp8internal10LogContextlsIA50_cEERS1_RKT_:
  198|  3.00k|			{
  199|  3.00k|				m_Stream << value;
  200|  3.00k|				return *this;
  201|  3.00k|			}
_ZN4pcpp8internal10LogContextlsIA77_cEERS1_RKT_:
  198|    113|			{
  199|    113|				m_Stream << value;
  200|    113|				return *this;
  201|    113|			}
_ZN4pcpp8internal10LogContextlsIA70_cEERS1_RKT_:
  198|  1.44k|			{
  199|  1.44k|				m_Stream << value;
  200|  1.44k|				return *this;
  201|  1.44k|			}
_ZN4pcpp8internal10LogContextlsIA39_cEERS1_RKT_:
  198|  3.85k|			{
  199|  3.85k|				m_Stream << value;
  200|  3.85k|				return *this;
  201|  3.85k|			}
_ZN4pcpp8internal10LogContextlsIA21_cEERS1_RKT_:
  198|    199|			{
  199|    199|				m_Stream << value;
  200|    199|				return *this;
  201|    199|			}
_ZN4pcpp8internal10LogContextlsIA54_cEERS1_RKT_:
  198|  1.87k|			{
  199|  1.87k|				m_Stream << value;
  200|  1.87k|				return *this;
  201|  1.87k|			}
_ZN4pcpp8internal10LogContextlsIA44_cEERS1_RKT_:
  198|  2.12k|			{
  199|  2.12k|				m_Stream << value;
  200|  2.12k|				return *this;
  201|  2.12k|			}
_ZN4pcpp8internal10LogContextlsIA33_cEERS1_RKT_:
  198|    448|			{
  199|    448|				m_Stream << value;
  200|    448|				return *this;
  201|    448|			}
_ZN4pcpp8internal10LogContextlsIA45_cEERS1_RKT_:
  198|  14.8k|			{
  199|  14.8k|				m_Stream << value;
  200|  14.8k|				return *this;
  201|  14.8k|			}
_ZN4pcpp8internal10LogContextlsIA36_cEERS1_RKT_:
  198|    329|			{
  199|    329|				m_Stream << value;
  200|    329|				return *this;
  201|    329|			}
_ZN4pcpp8internal10LogContextlsIA14_cEERS1_RKT_:
  198|    448|			{
  199|    448|				m_Stream << value;
  200|    448|				return *this;
  201|    448|			}
_ZN4pcpp8internal10LogContextlsIA72_cEERS1_RKT_:
  198|  4.97k|			{
  199|  4.97k|				m_Stream << value;
  200|  4.97k|				return *this;
  201|  4.97k|			}
_ZN4pcpp8internal10LogContextlsIA35_cEERS1_RKT_:
  198|      2|			{
  199|      2|				m_Stream << value;
  200|      2|				return *this;
  201|      2|			}
_ZN4pcpp8internal10LogContextlsIiEERS1_RKT_:
  198|  50.7k|			{
  199|  50.7k|				m_Stream << value;
  200|  50.7k|				return *this;
  201|  50.7k|			}
_ZN4pcpp8internal10LogContextlsIA142_cEERS1_RKT_:
  198|    931|			{
  199|    931|				m_Stream << value;
  200|    931|				return *this;
  201|    931|			}
_ZN4pcpp8internal10LogContextlsIA76_cEERS1_RKT_:
  198|  2.19k|			{
  199|  2.19k|				m_Stream << value;
  200|  2.19k|				return *this;
  201|  2.19k|			}
_ZN4pcpp8internal10LogContextlsIA85_cEERS1_RKT_:
  198|  4.84k|			{
  199|  4.84k|				m_Stream << value;
  200|  4.84k|				return *this;
  201|  4.84k|			}
_ZN4pcpp8internal10LogContextlsIA75_cEERS1_RKT_:
  198|  2.98k|			{
  199|  2.98k|				m_Stream << value;
  200|  2.98k|				return *this;
  201|  2.98k|			}
_ZN4pcpp8internal10LogContextlsIA84_cEERS1_RKT_:
  198|  1.56k|			{
  199|  1.56k|				m_Stream << value;
  200|  1.56k|				return *this;
  201|  1.56k|			}
_ZN4pcpp8internal10LogContextlsIA69_cEERS1_RKT_:
  198|  3.38k|			{
  199|  3.38k|				m_Stream << value;
  200|  3.38k|				return *this;
  201|  3.38k|			}
_ZN4pcpp8internal10LogContextlsIA73_cEERS1_RKT_:
  198|    353|			{
  199|    353|				m_Stream << value;
  200|    353|				return *this;
  201|    353|			}
_ZN4pcpp8internal10LogContextlsIA98_cEERS1_RKT_:
  198|  18.6k|			{
  199|  18.6k|				m_Stream << value;
  200|  18.6k|				return *this;
  201|  18.6k|			}
_ZN4pcpp8internal10LogContextlsIA43_cEERS1_RKT_:
  198|  10.3k|			{
  199|  10.3k|				m_Stream << value;
  200|  10.3k|				return *this;
  201|  10.3k|			}
_ZN4pcpp8internal10LogContextlsIA38_cEERS1_RKT_:
  198|  2.98k|			{
  199|  2.98k|				m_Stream << value;
  200|  2.98k|				return *this;
  201|  2.98k|			}
_ZN4pcpp8internal10LogContextlsIA40_cEERS1_RKT_:
  198|  33.8k|			{
  199|  33.8k|				m_Stream << value;
  200|  33.8k|				return *this;
  201|  33.8k|			}
_ZN4pcpp8internal10LogContextlsIA41_cEERS1_RKT_:
  198|  2.12k|			{
  199|  2.12k|				m_Stream << value;
  200|  2.12k|				return *this;
  201|  2.12k|			}
_ZN4pcpp8internal10LogContextlsIA141_cEERS1_RKT_:
  198|  1.11k|			{
  199|  1.11k|				m_Stream << value;
  200|  1.11k|				return *this;
  201|  1.11k|			}
_ZN4pcpp8internal10LogContextlsIA67_cEERS1_RKT_:
  198|  3.38k|			{
  199|  3.38k|				m_Stream << value;
  200|  3.38k|				return *this;
  201|  3.38k|			}
_ZN4pcpp9LogSourceC2Ev:
  124|      2|		constexpr LogSource() = default;
_ZN4pcpp8internal10LogContextC2Ev:
  175|      2|			LogContext() = default;

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

_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEEC2Ev:
   59|  3.72k|		PointerVector() = default;
_ZNK4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|   153k|		{
  217|   153k|			return m_Vector.size();
  218|   153k|		}
_ZNK4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE2atEi:
  319|   126k|		{
  320|   126k|			return m_Vector.at(index);
  321|   126k|		}
_ZNK4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE4sizeEv:
  216|  81.2k|		{
  217|  81.2k|			return m_Vector.size();
  218|  81.2k|		}
_ZNK4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE2atEi:
  319|   195k|		{
  320|   195k|			return m_Vector.at(index);
  321|   195k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEED2Ev:
   78|  3.72k|		{
   79|  3.72k|			freeVectorUnsafe(m_Vector);
   80|  3.72k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  3.72k|		{
  363|  3.72k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 3.71k, False: 3.72k]
  ------------------
  364|  3.71k|			{
  365|  3.71k|				Deleter{}(obj);
  366|  3.71k|			}
  367|  3.72k|		}
_ZNK4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE5frontEv:
  238|  3.71k|		{
  239|  3.71k|			return m_Vector.front();
  240|  3.71k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|  3.71k|		{
  148|  3.71k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 3.71k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|  3.71k|			try
  154|  3.71k|			{
  155|  3.71k|				m_Vector.push_back(element);
  156|  3.71k|			}
  157|  3.71k|			catch (const std::exception&)
  158|  3.71k|			{
  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.71k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEEC2Ev:
   59|  67.5k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEEC2Ev:
   59|  9.42k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEED2Ev:
   78|  67.5k|		{
   79|  67.5k|			freeVectorUnsafe(m_Vector);
   80|  67.5k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  67.5k|		{
  363|  67.5k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 278k, False: 67.5k]
  ------------------
  364|   278k|			{
  365|   278k|				Deleter{}(obj);
  366|   278k|			}
  367|  67.5k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|   278k|		{
  173|   278k|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 278k]
  ------------------
  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|   278k|			m_Vector.push_back(element.get());
  182|   278k|			element.release();
  183|   278k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEED2Ev:
   78|  9.42k|		{
   79|  9.42k|			freeVectorUnsafe(m_Vector);
   80|  9.42k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  9.42k|		{
  363|  9.42k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 25.2k, False: 9.42k]
  ------------------
  364|  25.2k|			{
  365|  25.2k|				Deleter{}(obj);
  366|  25.2k|			}
  367|  9.42k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|  25.2k|		{
  148|  25.2k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 25.2k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|  25.2k|			try
  154|  25.2k|			{
  155|  25.2k|				m_Vector.push_back(element);
  156|  25.2k|			}
  157|  25.2k|			catch (const std::exception&)
  158|  25.2k|			{
  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|  25.2k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|   117k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|   117k|		{
   79|   117k|			freeVectorUnsafe(m_Vector);
   80|   117k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|   117k|		{
  363|   117k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 176k, False: 117k]
  ------------------
  364|   176k|			{
  365|   176k|				Deleter{}(obj);
  366|   176k|			}
  367|   117k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|   176k|		{
  148|   176k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 176k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|   176k|			try
  154|   176k|			{
  155|   176k|				m_Vector.push_back(element);
  156|   176k|			}
  157|   176k|			catch (const std::exception&)
  158|   176k|			{
  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|   176k|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|    587|		{
  363|    587|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 98, False: 587]
  ------------------
  364|     98|			{
  365|     98|				Deleter{}(obj);
  366|     98|			}
  367|    587|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  1.81k|		{
  363|  1.81k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 236, False: 1.81k]
  ------------------
  364|    236|			{
  365|    236|				Deleter{}(obj);
  366|    236|			}
  367|  1.81k|		}
_ZNK4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE2atEi:
  319|  87.2k|		{
  320|  87.2k|			return m_Vector.at(index);
  321|  87.2k|		}
_ZNK4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE4sizeEv:
  216|  1.30k|		{
  217|  1.30k|			return m_Vector.size();
  218|  1.30k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEEC2Ev:
   59|   178k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEED2Ev:
   78|   178k|		{
   79|   178k|			freeVectorUnsafe(m_Vector);
   80|   178k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|   178k|		{
  363|   178k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 376k, False: 178k]
  ------------------
  364|   376k|			{
  365|   376k|				Deleter{}(obj);
  366|   376k|			}
  367|   178k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|   376k|		{
  173|   376k|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 376k]
  ------------------
  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|   376k|			m_Vector.push_back(element.get());
  182|   376k|			element.release();
  183|   376k|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|  1.81k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|  1.81k|		{
   79|  1.81k|			freeVectorUnsafe(m_Vector);
   80|  1.81k|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|    236|		{
  173|    236|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 236]
  ------------------
  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|    236|			m_Vector.push_back(element.get());
  182|    236|			element.release();
  183|    236|		}
_ZNK4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|    724|		{
  217|    724|			return m_Vector.size();
  218|    724|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|    587|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|    587|		{
   79|    587|			freeVectorUnsafe(m_Vector);
   80|    587|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|     98|		{
  173|     98|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 98]
  ------------------
  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|     98|			m_Vector.push_back(element.get());
  182|     98|			element.release();
  183|     98|		}
_ZNK4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|    196|		{
  217|    196|			return m_Vector.size();
  218|    196|		}

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

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

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

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

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

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

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

_ZNK4pcpp10Asn1Record10getTagTypeEv:
  164|  71.1k|		{
  165|  71.1k|			return m_TagType;
  166|  71.1k|		}
_ZNK4pcpp10Asn1Record14getTotalLengthEv:
  176|   815k|		{
  177|   815k|			return m_TotalLength;
  178|   815k|		}
_ZN4pcpp21Asn1ConstructedRecord13getSubRecordsEv:
  313|  95.3k|		{
  314|  95.3k|			decodeValueIfNeeded();
  315|  95.3k|			return m_SubRecords;
  316|  95.3k|		};
_ZNK4pcpp14Asn1NullRecord11decodeValueEPKh:
  688|    566|		{}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EE11decodeValueEPKh:
  553|   120k|		{
  554|   120k|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  555|   120k|		}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EE8getValueEv:
  537|  1.03k|		{
  538|  1.03k|			decodeValueIfNeeded();
  539|  1.03k|			return m_Value;
  540|  1.03k|		};
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE12EE11decodeValueEPKh:
  553|     69|		{
  554|     69|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  555|     69|		}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE19EE11decodeValueEPKh:
  553|     16|		{
  554|     16|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  555|     16|		}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE22EE11decodeValueEPKh:
  553|     87|		{
  554|     87|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  555|     87|		}
_ZN4pcpp10Asn1Record6castAsINS_18Asn1SequenceRecordEEEPT_v:
  188|  88.2k|		{
  189|  88.2k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  88.2k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 1.95k, False: 86.2k]
  ------------------
  191|  1.95k|			{
  192|  1.95k|				throw std::bad_cast();
  193|  1.95k|			}
  194|  86.2k|			return result;
  195|  88.2k|		}
_ZNK4pcpp17Asn1IntegerRecord11getIntValueIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS4_EE5valueEiE4typeELi0EEES4_v:
  425|  5.45k|		{
  426|  5.45k|			decodeValueIfNeeded();
  427|  5.45k|			return m_Value.getInt<T>();
  428|  5.45k|		}
_ZNK4pcpp17Asn1IntegerRecord6BigInt6getIntIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS5_EE5valueEiE4typeELi0EEES5_v:
  476|  5.45k|			{
  477|  5.45k|				if (!canFit<T>())
  ------------------
  |  Branch (477:9): [True: 0, False: 5.45k]
  ------------------
  478|      0|				{
  479|      0|					throw std::overflow_error("Value cannot fit into requested int type");
  480|      0|				}
  481|       |
  482|  5.45k|				std::stringstream sstream;
  483|  5.45k|				sstream << std::hex << m_Value;
  484|       |
  485|  5.45k|				uint64_t result;
  486|  5.45k|				sstream >> result;
  487|  5.45k|				return static_cast<T>(result);
  488|  5.45k|			}
_ZNK4pcpp17Asn1IntegerRecord6BigInt6canFitIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS5_EE5valueEiE4typeELi0EEEbv:
  491|  5.45k|			{
  492|  5.45k|				return sizeof(T) >= (m_Value.size() + 1) / 2;
  493|  5.45k|			}
_ZN4pcpp10Asn1Record6castAsINS_21Asn1OctetStringRecordEEEPT_v:
  188|  1.03k|		{
  189|  1.03k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  1.03k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 0, False: 1.03k]
  ------------------
  191|      0|			{
  192|      0|				throw std::bad_cast();
  193|      0|			}
  194|  1.03k|			return result;
  195|  1.03k|		}
_ZN4pcpp10Asn1Record6castAsINS_21Asn1ConstructedRecordEEEPT_v:
  188|  24.3k|		{
  189|  24.3k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  24.3k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 440, False: 23.9k]
  ------------------
  191|    440|			{
  192|    440|				throw std::bad_cast();
  193|    440|			}
  194|  23.9k|			return result;
  195|  24.3k|		}
_ZN4pcpp18Asn1SequenceRecordC2Ev:
  368|  89.4k|		Asn1SequenceRecord() = default;
_ZN4pcpp21Asn1ConstructedRecordC2Ev:
  319|   178k|		Asn1ConstructedRecord() = default;
_ZN4pcpp13Asn1SetRecordC2Ev:
  387|  15.0k|		Asn1SetRecord() = default;
_ZN4pcpp17Asn1IntegerRecordC2Ev:
  447|  91.9k|		Asn1IntegerRecord() = default;
_ZN4pcpp19Asn1PrimitiveRecordC2Ev:
  398|   103k|		Asn1PrimitiveRecord() = default;
_ZN4pcpp20Asn1EnumeratedRecordC2Ev:
  526|  21.7k|		Asn1EnumeratedRecord() = default;
_ZN4pcpp21Asn1OctetStringRecordC2Ev:
  593|   133k|		Asn1OctetStringRecord() = default;
_ZN4pcpp20Asn1UTF8StringRecordC2Ev:
  611|     69|		Asn1UTF8StringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE12EEC2Ev:
  543|     69|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  544|     69|		{}
_ZN4pcpp25Asn1PrintableStringRecordC2Ev:
  627|     31|		Asn1PrintableStringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE19EEC2Ev:
  543|     31|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  544|     31|		{}
_ZN4pcpp19Asn1IA5StringRecordC2Ev:
  643|     87|		Asn1IA5StringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE22EEC2Ev:
  543|     87|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  544|     87|		{}
_ZN4pcpp17Asn1BooleanRecordC2Ev:
  671|  9.66k|		Asn1BooleanRecord() = default;
_ZN4pcpp19Asn1BitStringRecordC2Ev:
  924|    189|		Asn1BitStringRecord() = default;
_ZN4pcpp26Asn1ObjectIdentifierRecordC2Ev:
  779|  1.20k|		Asn1ObjectIdentifierRecord() = default;
_ZN4pcpp17Asn1UtcTimeRecordC2Ev:
  839|    105|		Asn1UtcTimeRecord() = default;
_ZN4pcpp14Asn1TimeRecordC2Ev:
  808|    775|		Asn1TimeRecord() = default;
_ZN4pcpp25Asn1GeneralizedTimeRecordC2Ev:
  863|    670|		Asn1GeneralizedTimeRecord() = default;
_ZN4pcpp17Asn1GenericRecordC2Ev:
  278|  36.3k|		Asn1GenericRecord() = default;
_ZN4pcpp10Asn1RecordC2Ev:
  207|   452k|		Asn1Record() = default;
_ZN4pcpp10Asn1RecordD2Ev:
  197|   452k|		virtual ~Asn1Record() = default;
_ZN4pcpp17Asn1IntegerRecord6BigIntC2Ev:
  458|  91.9k|			BigInt() = default;
_ZN4pcpp20Asn1ObjectIdentifierC2Ev:
  746|  1.20k|		Asn1ObjectIdentifier() = default;
_ZN4pcpp19Asn1BitStringRecord6BitSetC2Ev:
  903|    189|			BitSet() = default;
_ZN4pcpp17Asn1GenericRecordD2Ev:
  268|  36.3k|		~Asn1GenericRecord() override = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EEC2Ev:
  543|   133k|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  544|   133k|		{}
_ZN4pcpp10Asn1Record6castAsINS_20Asn1EnumeratedRecordEEEPT_v:
  188|  5.45k|		{
  189|  5.45k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  5.45k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 0, False: 5.45k]
  ------------------
  191|      0|			{
  192|      0|				throw std::bad_cast();
  193|      0|			}
  194|  5.45k|			return result;
  195|  5.45k|		}

_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2EhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  265|  54.8k|			prefix_and_ip(uint8_t prefixVal, const std::string& ipAddrVal) : prefix(prefixVal), ipAddr(ipAddrVal)
  266|  54.8k|			{}
_ZN4pcpp8BgpLayer9isBgpPortEtt:
   66|   275k|		{
   67|   275k|			return portSrc == 179 || portDst == 179;
  ------------------
  |  Branch (67:11): [True: 15.9k, False: 259k]
  |  Branch (67:29): [True: 29.0k, False: 230k]
  ------------------
   68|   275k|		}
_ZNK4pcpp8BgpLayer16getOsiModelLayerEv:
   92|  16.0k|		{
   93|  16.0k|			return OsiModelApplicationLayer;
   94|  16.0k|		}
_ZN4pcpp8BgpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  107|   140k|		    : Layer(data, dataLen, prevLayer, packet, BGP)
  108|   140k|		{}
_ZNK4pcpp8BgpLayer14getBasicHeaderEv:
  111|  1.25M|		{
  112|  1.25M|			return reinterpret_cast<bgp_common_header*>(m_Data);
  113|  1.25M|		}
_ZN4pcpp19BgpOpenMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  172|  21.8k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  173|  21.8k|		{}
_ZNK4pcpp19BgpOpenMessageLayer16getOpenMsgHeaderEv:
  194|  30.6k|		{
  195|  30.6k|			return reinterpret_cast<bgp_open_message*>(m_Data);
  196|  30.6k|		}
_ZNK4pcpp19BgpOpenMessageLayer17getBgpMessageTypeEv:
  234|  13.0k|		{
  235|  13.0k|			return BgpLayer::Open;
  236|  13.0k|		}
_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2Ev:
  259|  12.1k|			prefix_and_ip() : prefix(0), ipAddr(IPv4Address::Zero)
  260|  12.1k|			{}
_ZN4pcpp21BgpUpdateMessageLayer14path_attributeC2Ev:
  285|  29.7k|			{}
_ZN4pcpp21BgpUpdateMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  302|   109k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  303|   109k|		{}
_ZNK4pcpp21BgpUpdateMessageLayer17getBgpMessageTypeEv:
  397|  43.8k|		{
  398|  43.8k|			return BgpLayer::Update;
  399|  43.8k|		}
_ZN4pcpp27BgpNotificationMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  434|  3.97k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  435|  3.97k|		{}
_ZNK4pcpp27BgpNotificationMessageLayer17getBgpMessageTypeEv:
  499|  2.68k|		{
  500|  2.68k|			return BgpLayer::Notification;
  501|  2.68k|		}
_ZN4pcpp24BgpKeepaliveMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  523|  3.19k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  524|  3.19k|		{}
_ZNK4pcpp24BgpKeepaliveMessageLayer17getBgpMessageTypeEv:
  540|  2.54k|		{
  541|  2.54k|			return BgpLayer::Keepalive;
  542|  2.54k|		}
_ZN4pcpp27BgpRouteRefreshMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  570|  2.65k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  571|  2.65k|		{}
_ZNK4pcpp27BgpRouteRefreshMessageLayer17getBgpMessageTypeEv:
  589|  2.11k|		{
  590|  2.11k|			return BgpLayer::RouteRefresh;
  591|  2.11k|		}
_ZN4pcpp19BgpOpenMessageLayer18optional_parameterC2Ev:
  157|  18.4k|			optional_parameter() = default;

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

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

_ZNK4pcpp9DhcpLayer9getOpCodeEv:
  609|  2.62k|		{
  610|  2.62k|			return static_cast<BootpOpCodes>(getDhcpHeader()->opCode);
  611|  2.62k|		}
_ZNK4pcpp9DhcpLayer13getDhcpHeaderEv:
  603|  20.9k|		{
  604|  20.9k|			return reinterpret_cast<dhcp_header*>(m_Data);
  605|  20.9k|		}
_ZNK4pcpp9DhcpLayer18getClientIpAddressEv:
  616|  2.62k|		{
  617|  2.62k|			return getDhcpHeader()->clientIpAddress;
  618|  2.62k|		}
_ZNK4pcpp9DhcpLayer16getYourIpAddressEv:
  643|  2.62k|		{
  644|  2.62k|			return getDhcpHeader()->yourIpAddress;
  645|  2.62k|		}
_ZNK4pcpp9DhcpLayer18getServerIpAddressEv:
  630|  2.62k|		{
  631|  2.62k|			return getDhcpHeader()->serverIpAddress;
  632|  2.62k|		}
_ZNK4pcpp9DhcpLayer19getGatewayIpAddressEv:
  657|  2.62k|		{
  658|  2.62k|			return getDhcpHeader()->gatewayIpAddress;
  659|  2.62k|		}
_ZNK4pcpp10DhcpOption16getValueAsIpAddrEv:
  400|  2.58k|		{
  401|  2.58k|			return getValueAs<uint32_t>();
  402|  2.58k|		}
_ZNK4pcpp10DhcpOption16getValueAsStringEi:
  420|  2.58k|		{
  421|       |			// TODO: This will burn if valueOffset is negative.
  422|       |			// Should negative offsets even be allowed? Potentially change it to size_t?
  423|  2.58k|			if (m_Data == nullptr || getDataSize() < static_cast<size_t>(valueOffset) + 1)
  ------------------
  |  Branch (423:8): [True: 0, False: 2.58k]
  |  Branch (423:29): [True: 244, False: 2.33k]
  ------------------
  424|    244|				return "";
  425|       |
  426|  2.33k|			return std::string(reinterpret_cast<const char*>(m_Data->recordValue) + valueOffset,
  427|  2.33k|			                   static_cast<int>(m_Data->recordLen) - valueOffset);
  428|  2.58k|		}
_ZNK4pcpp10DhcpOption12getTotalSizeEv:
  471|  1.07M|		{
  472|  1.07M|			if (m_Data == nullptr)
  ------------------
  |  Branch (472:8): [True: 0, False: 1.07M]
  ------------------
  473|      0|				return 0;
  474|       |
  475|  1.07M|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (475:8): [True: 20.5k, False: 1.04M]
  ------------------
  476|  1.04M|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (476:8): [True: 792k, False: 257k]
  ------------------
  477|   813k|				return sizeof(uint8_t);
  478|       |
  479|   257k|			return sizeof(uint8_t) * 2 + static_cast<size_t>(m_Data->recordLen);
  480|  1.07M|		}
_ZNK4pcpp10DhcpOption11getDataSizeEv:
  483|  9.67k|		{
  484|  9.67k|			if (m_Data == nullptr)
  ------------------
  |  Branch (484:8): [True: 0, False: 9.67k]
  ------------------
  485|      0|				return 0;
  486|       |
  487|  9.67k|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (487:8): [True: 0, False: 9.67k]
  ------------------
  488|  9.67k|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (488:8): [True: 434, False: 9.24k]
  ------------------
  489|    434|				return 0;
  490|       |
  491|  9.24k|			return m_Data->recordLen;
  492|  9.67k|		}
_ZN4pcpp10DhcpOptionC2EPh:
  391|   228k|		explicit DhcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  392|   228k|		{}
_ZN4pcpp10DhcpOption9canAssignEPKhm:
  453|   228k|		{
  454|   228k|			auto data = reinterpret_cast<TLVRawData const*>(recordRawData);
  455|   228k|			if (data == nullptr)
  ------------------
  |  Branch (455:8): [True: 0, False: 228k]
  ------------------
  456|      0|				return false;
  457|       |
  458|   228k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (458:8): [True: 7.83k, False: 221k]
  ------------------
  459|  7.83k|				return false;
  460|       |
  461|   221k|			if (data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (461:8): [True: 4.11k, False: 217k]
  ------------------
  462|   217k|			    data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (462:8): [True: 160k, False: 56.8k]
  ------------------
  463|   164k|				return true;
  464|       |
  465|  56.8k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  466|   221k|		}
_ZN4pcpp9DhcpLayer11isDataValidEPKhm:
  595|  13.5k|		{
  596|  13.5k|			return canReinterpretAs<dhcp_header>(data, dataLen);
  597|  13.5k|		}
_ZN4pcpp9DhcpLayer14parseNextLayerEv:
  744|  13.3k|		{}
_ZNK4pcpp9DhcpLayer12getHeaderLenEv:
  748|   120k|		{
  749|   120k|			return m_DataLen;
  750|   120k|		}
_ZNK4pcpp9DhcpLayer16getOsiModelLayerEv:
  765|  2.62k|		{
  766|  2.62k|			return OsiModelApplicationLayer;
  767|  2.62k|		}
_ZNK4pcpp9DhcpLayer17getOptionsBasePtrEv:
  771|   118k|		{
  772|   118k|			return m_Data + sizeof(dhcp_header);
  773|   118k|		}
_ZN4pcpp9DhcpLayer11isDhcpPortsEtt:
  785|   348k|	{
  786|   348k|		return ((portSrc == 68 && portDst == 67) || (portSrc == 67 && portDst == 68) ||
  ------------------
  |  Branch (786:12): [True: 3.31k, False: 345k]
  |  Branch (786:29): [True: 1.63k, False: 1.67k]
  |  Branch (786:48): [True: 11.9k, False: 335k]
  |  Branch (786:65): [True: 11.8k, False: 55]
  ------------------
  787|   335k|		        (portSrc == 67 && portDst == 67));
  ------------------
  |  Branch (787:12): [True: 55, False: 335k]
  |  Branch (787:29): [True: 0, False: 55]
  ------------------
  788|   348k|	}
_ZN4pcpp9DhcpLayerD2Ev:
  592|  13.3k|		~DhcpLayer() override = default;

_ZN4pcpp12DhcpV6OptionC2EPh:
  192|  30.1k|		explicit DhcpV6Option(uint8_t* optionRawData) : TLVRecord(optionRawData)
  193|  30.1k|		{}
_ZN4pcpp11DhcpV6Layer14parseNextLayerEv:
  353|  17.2k|		{}
_ZNK4pcpp11DhcpV6Layer12getHeaderLenEv:
  357|  31.3k|		{
  358|  31.3k|			return m_DataLen;
  359|  31.3k|		}
_ZN4pcpp11DhcpV6Layer22computeCalculateFieldsEv:
  363|  3.32k|		{}
_ZNK4pcpp11DhcpV6Layer16getOsiModelLayerEv:
  368|  3.32k|		{
  369|  3.32k|			return OsiModelApplicationLayer;
  370|  3.32k|		}
_ZNK4pcpp11DhcpV6Layer17getOptionsBasePtrEv:
  374|  28.0k|		{
  375|  28.0k|			return m_Data + sizeof(dhcpv6_header);
  376|  28.0k|		}
_ZNK4pcpp11DhcpV6Layer13getDhcpHeaderEv:
  378|  9.98k|		{
  379|  9.98k|			return reinterpret_cast<dhcpv6_header*>(m_Data);
  380|  9.98k|		}
_ZN4pcpp11DhcpV6Layer12isDhcpV6PortEt:
  389|   290k|	{
  390|   290k|		return (port == 546) || (port == 547);
  ------------------
  |  Branch (390:10): [True: 13.0k, False: 277k]
  |  Branch (390:27): [True: 4.32k, False: 273k]
  ------------------
  391|   290k|	}
_ZN4pcpp11DhcpV6Layer11isDataValidEPKhm:
  394|  17.4k|	{
  395|  17.4k|		return data && dataLen >= sizeof(dhcpv6_header);
  ------------------
  |  Branch (395:10): [True: 17.4k, False: 0]
  |  Branch (395:18): [True: 17.2k, False: 130]
  ------------------
  396|  17.4k|	}

_ZN4pcpp8DnsLayer14parseNextLayerEv:
  354|  61.2k|		{}
_ZNK4pcpp8DnsLayer12getHeaderLenEv:
  359|   127k|		{
  360|   127k|			return m_DataLen;
  361|   127k|		}  // No layer above DNS
_ZN4pcpp8DnsLayer22computeCalculateFieldsEv:
  365|  9.04k|		{}
_ZNK4pcpp8DnsLayer16getOsiModelLayerEv:
  370|  11.3k|		{
  371|  11.3k|			return OsiModelApplicationLayer;
  372|  11.3k|		}
_ZN4pcpp15DnsOverTcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  440|  11.9k|		    : DnsLayer(data, dataLen, prevLayer, packet, sizeof(uint16_t))
  441|  11.9k|		{}
_ZN4pcpp8DnsLayer9isDnsPortEt:
  469|   918k|	{
  470|   918k|		switch (port)
  471|   918k|		{
  472|  29.8k|		case 53:
  ------------------
  |  Branch (472:3): [True: 29.8k, False: 888k]
  ------------------
  473|  35.3k|		case 5353:
  ------------------
  |  Branch (473:3): [True: 5.50k, False: 912k]
  ------------------
  474|  61.2k|		case 5355:
  ------------------
  |  Branch (474:3): [True: 25.9k, False: 892k]
  ------------------
  475|  61.2k|			return true;
  476|   856k|		default:
  ------------------
  |  Branch (476:3): [True: 856k, False: 61.2k]
  ------------------
  477|   856k|			return false;
  478|   918k|		}
  479|   918k|	}
_ZN4pcpp8DnsLayer11isDataValidEPKhmb:
  482|   550k|	{
  483|   550k|		size_t minSize = sizeof(dnshdr) + (dnsOverTcp ? sizeof(uint16_t) : 0);
  ------------------
  |  Branch (483:38): [True: 215k, False: 334k]
  ------------------
  484|   550k|		return data && dataLen >= minSize;
  ------------------
  |  Branch (484:10): [True: 550k, False: 0]
  |  Branch (484:18): [True: 482k, False: 67.7k]
  ------------------
  485|   550k|	}

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

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

_ZN4pcpp9DoIpLayer10isDoIpPortEt:
  667|   500k|	{
  668|   500k|		auto portAsEnum = static_cast<DoIpPorts>(port);
  669|   500k|		return (portAsEnum == DoIpPorts::TCP_UDP_PORT || portAsEnum == DoIpPorts::TLS_PORT);
  ------------------
  |  Branch (669:11): [True: 70.2k, False: 430k]
  |  Branch (669:52): [True: 6, False: 430k]
  ------------------
  670|   500k|	}
_ZNK4pcpp9DoIpLayer12getHeaderLenEv:
  628|  9.51k|		{
  629|  9.51k|			return m_DataLen;
  630|  9.51k|		}
_ZN4pcpp9DoIpLayer22computeCalculateFieldsEv:
  635|  10.8k|		{}
_ZNK4pcpp9DoIpLayer16getOsiModelLayerEv:
  638|  10.8k|		{
  639|  10.8k|			return OsiModelApplicationLayer;
  640|  10.8k|		}
_ZNK4pcpp21DoIpGenericHeaderNack14getPayloadTypeEv:
  792|  12.7k|		{
  793|  12.7k|			return DoIpPayloadTypes::GENERIC_HEADER_NACK;
  794|  12.7k|		}
_ZN4pcpp21DoIpGenericHeaderNack14isDataLenValidEm:
  800|  7.66k|		{
  801|  7.66k|			return (dataLen == FIXED_LEN);
  802|  7.66k|		}
_ZN4pcpp32DoIpVehicleIdentificationRequestC2EPhmPNS_5LayerEPNS_6PacketE:
  836|  4.83k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
  837|  4.83k|		{}
_ZNK4pcpp32DoIpVehicleIdentificationRequest14getPayloadTypeEv:
  844|  8.49k|		{
  845|  8.49k|			return DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST;
  846|  8.49k|		}
_ZN4pcpp32DoIpVehicleIdentificationRequest14isDataLenValidEm:
  852|  4.83k|		{
  853|  4.83k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
  854|  4.83k|		}
_ZNK4pcpp39DoIpVehicleIdentificationRequestWithEID14getPayloadTypeEv:
  892|  3.39k|		{
  893|  3.39k|			return DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID;
  894|  3.39k|		}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithEID14isDataLenValidEm:
  900|  1.90k|		{
  901|  1.90k|			return (dataLen == FIXED_LEN);
  902|  1.90k|		}
_ZNK4pcpp39DoIpVehicleIdentificationRequestWithVIN14getPayloadTypeEv:
  953|  5.41k|		{
  954|  5.41k|			return DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN;
  955|  5.41k|		}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithVIN14isDataLenValidEm:
  961|  3.04k|		{
  962|  3.04k|			return (dataLen == FIXED_LEN);
  963|  3.04k|		}
_ZNK4pcpp30DoIpVehicleAnnouncementMessage14getPayloadTypeEv:
 1070|  3.79k|		{
 1071|  3.79k|			return DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE;
 1072|  3.79k|		}
_ZN4pcpp30DoIpVehicleAnnouncementMessage14isDataLenValidEm:
 1078|  2.11k|		{
 1079|  2.11k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1079:12): [True: 2.11k, False: 0]
  |  Branch (1079:36): [True: 0, False: 0]
  ------------------
 1080|  2.11k|		}
_ZNK4pcpp28DoIpRoutingActivationRequest14getPayloadTypeEv:
 1178|  4.28k|		{
 1179|  4.28k|			return DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST;
 1180|  4.28k|		}
_ZN4pcpp28DoIpRoutingActivationRequest14isDataLenValidEm:
 1186|  2.38k|		{
 1187|  2.38k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1187:12): [True: 0, False: 2.38k]
  |  Branch (1187:36): [True: 2.38k, False: 0]
  ------------------
 1188|  2.38k|		}
_ZNK4pcpp29DoIpRoutingActivationResponse14getPayloadTypeEv:
 1291|  3.52k|		{
 1292|  3.52k|			return DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE;
 1293|  3.52k|		}
_ZN4pcpp29DoIpRoutingActivationResponse14isDataLenValidEm:
 1299|  2.02k|		{
 1300|  2.02k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1300:12): [True: 1.95k, False: 66]
  |  Branch (1300:36): [True: 0, False: 66]
  ------------------
 1301|  2.02k|		}
_ZN4pcpp21DoIpAliveCheckRequestC2EPhmPNS_5LayerEPNS_6PacketE:
 1343|  6.43k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
 1344|  6.43k|		{}
_ZNK4pcpp21DoIpAliveCheckRequest14getPayloadTypeEv:
 1351|  11.2k|		{
 1352|  11.2k|			return DoIpPayloadTypes::ALIVE_CHECK_REQUEST;
 1353|  11.2k|		}
_ZN4pcpp21DoIpAliveCheckRequest14isDataLenValidEm:
 1359|  6.43k|		{
 1360|  6.43k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
 1361|  6.43k|		}
_ZNK4pcpp22DoIpAliveCheckResponse14getPayloadTypeEv:
 1401|  5.53k|		{
 1402|  5.53k|			return DoIpPayloadTypes::ALIVE_CHECK_RESPONSE;
 1403|  5.53k|		}
_ZN4pcpp22DoIpAliveCheckResponse14isDataLenValidEm:
 1408|  3.07k|		{
 1409|  3.07k|			return (dataLen == FIXED_LEN);
 1410|  3.07k|		}
_ZN4pcpp23DoIpEntityStatusRequestC2EPhmPNS_5LayerEPNS_6PacketE:
 1445|  6.13k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
 1446|  6.13k|		{}
_ZNK4pcpp23DoIpEntityStatusRequest14getPayloadTypeEv:
 1453|  11.0k|		{
 1454|  11.0k|			return DoIpPayloadTypes::ENTITY_STATUS_REQUEST;
 1455|  11.0k|		}
_ZN4pcpp23DoIpEntityStatusRequest14isDataLenValidEm:
 1461|  6.26k|		{
 1462|  6.26k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
 1463|  6.26k|		}
_ZNK4pcpp24DoIpEntityStatusResponse14getPayloadTypeEv:
 1495|  9.96k|		{
 1496|  9.96k|			return DoIpPayloadTypes::ENTITY_STATUS_RESPONSE;
 1497|  9.96k|		}
_ZN4pcpp24DoIpEntityStatusResponse14isDataLenValidEm:
 1548|  5.97k|		{
 1549|  5.97k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1549:12): [True: 0, False: 5.97k]
  |  Branch (1549:36): [True: 5.97k, False: 0]
  ------------------
 1550|  5.97k|		}
_ZN4pcpp30DoIpDiagnosticPowerModeRequestC2EPhmPNS_5LayerEPNS_6PacketE:
 1592|  2.76k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
 1593|  2.76k|		{}
_ZNK4pcpp30DoIpDiagnosticPowerModeRequest14getPayloadTypeEv:
 1600|  4.70k|		{
 1601|  4.70k|			return DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST;
 1602|  4.70k|		}
_ZN4pcpp30DoIpDiagnosticPowerModeRequest14isDataLenValidEm:
 1608|  2.79k|		{
 1609|  2.79k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
 1610|  2.79k|		}
_ZNK4pcpp31DoIpDiagnosticPowerModeResponse14getPayloadTypeEv:
 1650|  2.73k|		{
 1651|  2.73k|			return DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE;
 1652|  2.73k|		}
_ZN4pcpp31DoIpDiagnosticPowerModeResponse14isDataLenValidEm:
 1658|  1.63k|		{
 1659|  1.63k|			return (dataLen == FIXED_LEN);
 1660|  1.63k|		}
_ZNK4pcpp21DoIpDiagnosticMessage14getPayloadTypeEv:
 1766|  12.9k|		{
 1767|  12.9k|			return DoIpPayloadTypes::DIAGNOSTIC_MESSAGE;
 1768|  12.9k|		}
_ZNK4pcpp21DoIpDiagnosticMessage12getHeaderLenEv:
 1772|  9.07k|		{
 1773|  9.07k|			return sizeof(doiphdr) + 2 * sizeof(uint16_t);
 1774|  9.07k|		}
_ZN4pcpp21DoIpDiagnosticMessage14isDataLenValidEm:
 1779|  7.77k|		{
 1780|  7.77k|			return (dataLen >= MIN_LEN);
 1781|  7.77k|		}
_ZN4pcpp33DoIpDiagnosticResponseMessageBase14isDataLenValidEm:
 1823|  1.45k|		{
 1824|  1.45k|			return (dataLen >= FIXED_LEN);
 1825|  1.45k|		}
_ZNK4pcpp24DoIpDiagnosticMessageAck14getPayloadTypeEv:
 1884|    972|		{
 1885|    972|			return DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK;
 1886|    972|		}
_ZNK4pcpp25DoIpDiagnosticMessageNack14getPayloadTypeEv:
 1928|  1.52k|		{
 1929|  1.52k|			return DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK;
 1930|  1.52k|		}
_ZN4pcpp9DoIpLayer22isProtocolVersionValidEhhNS_16DoIpPayloadTypesE:
  673|  66.2k|	{
  674|  66.2k|		const DoIpProtocolVersion parsedVersion = static_cast<DoIpProtocolVersion>(version);
  675|       |
  676|  66.2k|		switch (parsedVersion)
  677|  66.2k|		{
  678|     48|		case DoIpProtocolVersion::RESERVED_VER:
  ------------------
  |  Branch (678:3): [True: 48, False: 66.1k]
  ------------------
  679|     48|		{
  680|     48|			PCPP_LOG_DEBUG("[Malformed doip packet]: Reserved ISO DoIP protocol version detected: 0x"
  ------------------
  |  |  425|     48|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|     48|	do                                                                                                                 \
  |  |  |  |  413|     48|	{                                                                                                                  \
  |  |  |  |  414|     48|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     48|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     48|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 48]
  |  |  |  |  ------------------
  |  |  |  |  416|     48|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|     48|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 48]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  681|     48|			               << std::hex << static_cast<int>(version));
  682|     48|			return false;
  683|      0|		}
  684|  3.75k|		case DoIpProtocolVersion::DEFAULT_VALUE:
  ------------------
  |  Branch (684:3): [True: 3.75k, False: 62.4k]
  ------------------
  685|  3.75k|			if (type != DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN &&
  ------------------
  |  Branch (685:8): [True: 3.71k, False: 36]
  ------------------
  686|  3.71k|			    type != DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID &&
  ------------------
  |  Branch (686:8): [True: 3.71k, False: 0]
  ------------------
  687|  3.71k|			    type != DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST)
  ------------------
  |  Branch (687:8): [True: 142, False: 3.57k]
  ------------------
  688|    142|			{
  689|    142|				PCPP_LOG_DEBUG("[Malformed doip packet]: Invalid/unsupported DoIP version!");
  ------------------
  |  |  425|    142|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    142|	do                                                                                                                 \
  |  |  |  |  413|    142|	{                                                                                                                  \
  |  |  |  |  414|    142|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    142|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    142|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 142]
  |  |  |  |  ------------------
  |  |  |  |  416|    142|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|    142|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 142]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  690|    142|				return false;
  691|    142|			}
  692|  3.64k|		case DoIpProtocolVersion::ISO13400_2010:
  ------------------
  |  Branch (692:3): [True: 36, False: 66.1k]
  ------------------
  693|  64.3k|		case DoIpProtocolVersion::ISO13400_2012:
  ------------------
  |  Branch (693:3): [True: 60.6k, False: 5.54k]
  ------------------
  694|  65.5k|		case DoIpProtocolVersion::ISO13400_2019:
  ------------------
  |  Branch (694:3): [True: 1.23k, False: 64.9k]
  ------------------
  695|  65.5k|		case DoIpProtocolVersion::ISO13400_2019_AMD1:
  ------------------
  |  Branch (695:3): [True: 0, False: 66.2k]
  ------------------
  696|  65.5k|		{
  697|  65.5k|			if (version != static_cast<uint8_t>(~inVersion))
  ------------------
  |  Branch (697:8): [True: 1.41k, False: 64.1k]
  ------------------
  698|  1.41k|			{
  699|  1.41k|				PCPP_LOG_DEBUG("[Malformed doip packet]: Protocol version and inverse version mismatch! Version: 0x"
  ------------------
  |  |  425|  1.41k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  1.41k|	do                                                                                                                 \
  |  |  |  |  413|  1.41k|	{                                                                                                                  \
  |  |  |  |  414|  1.41k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.41k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.41k|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 1.41k]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.41k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  1.41k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.41k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  700|  1.41k|				               << std::hex << static_cast<int>(version) << ", Inverted: 0x"
  701|  1.41k|				               << static_cast<int>(inVersion));
  702|  1.41k|				return false;
  703|  1.41k|			}
  704|  64.1k|			return true;
  705|  65.5k|		}
  706|    476|		default:
  ------------------
  |  Branch (706:3): [True: 476, False: 65.7k]
  ------------------
  707|    476|			PCPP_LOG_DEBUG("[Malformed doip packet]: Unknown DoIP protocol version: 0x" << std::hex
  ------------------
  |  |  425|    476|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    476|	do                                                                                                                 \
  |  |  |  |  413|    476|	{                                                                                                                  \
  |  |  |  |  414|    476|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    476|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    476|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 476]
  |  |  |  |  ------------------
  |  |  |  |  416|    476|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|    476|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 476]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  708|    476|			                                                                            << static_cast<int>(version));
  709|    476|			return false;
  710|  66.2k|		}
  711|  66.2k|	}
_ZN4pcpp9DoIpLayer18isPayloadTypeValidEt:
  714|  69.4k|	{
  715|  69.4k|		const DoIpPayloadTypes payloadType = static_cast<DoIpPayloadTypes>(type);
  716|       |
  717|  69.4k|		switch (payloadType)
  718|  69.4k|		{
  719|  7.77k|		case DoIpPayloadTypes::GENERIC_HEADER_NACK:
  ------------------
  |  Branch (719:3): [True: 7.77k, False: 61.6k]
  ------------------
  720|  12.6k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST:
  ------------------
  |  Branch (720:3): [True: 4.88k, False: 64.5k]
  ------------------
  721|  14.7k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID:
  ------------------
  |  Branch (721:3): [True: 2.06k, False: 67.4k]
  ------------------
  722|  17.8k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN:
  ------------------
  |  Branch (722:3): [True: 3.09k, False: 66.3k]
  ------------------
  723|  19.9k|		case DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE:
  ------------------
  |  Branch (723:3): [True: 2.12k, False: 67.3k]
  ------------------
  724|  22.6k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST:
  ------------------
  |  Branch (724:3): [True: 2.72k, False: 66.7k]
  ------------------
  725|  24.9k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE:
  ------------------
  |  Branch (725:3): [True: 2.25k, False: 67.2k]
  ------------------
  726|  31.4k|		case DoIpPayloadTypes::ALIVE_CHECK_REQUEST:
  ------------------
  |  Branch (726:3): [True: 6.50k, False: 62.9k]
  ------------------
  727|  37.9k|		case DoIpPayloadTypes::ALIVE_CHECK_RESPONSE:
  ------------------
  |  Branch (727:3): [True: 6.52k, False: 62.9k]
  ------------------
  728|  44.2k|		case DoIpPayloadTypes::ENTITY_STATUS_REQUEST:
  ------------------
  |  Branch (728:3): [True: 6.28k, False: 63.1k]
  ------------------
  729|  50.2k|		case DoIpPayloadTypes::ENTITY_STATUS_RESPONSE:
  ------------------
  |  Branch (729:3): [True: 6.02k, False: 63.4k]
  ------------------
  730|  53.1k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST:
  ------------------
  |  Branch (730:3): [True: 2.90k, False: 66.5k]
  ------------------
  731|  54.7k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE:
  ------------------
  |  Branch (731:3): [True: 1.65k, False: 67.8k]
  ------------------
  732|  62.7k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE:
  ------------------
  |  Branch (732:3): [True: 7.92k, False: 61.5k]
  ------------------
  733|  63.9k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK:
  ------------------
  |  Branch (733:3): [True: 1.19k, False: 68.2k]
  ------------------
  734|  66.2k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK:
  ------------------
  |  Branch (734:3): [True: 2.29k, False: 67.1k]
  ------------------
  735|  66.2k|			return true;
  736|       |
  737|  3.25k|		default:
  ------------------
  |  Branch (737:3): [True: 3.25k, False: 66.2k]
  ------------------
  738|  3.25k|			PCPP_LOG_DEBUG("[Malformed doip packet]: Invalid DoIP payload type: 0x" << std::hex << type);
  ------------------
  |  |  425|  3.25k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  3.25k|	do                                                                                                                 \
  |  |  |  |  413|  3.25k|	{                                                                                                                  \
  |  |  |  |  414|  3.25k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.25k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.25k|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 3.25k]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.25k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  3.25k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  739|  3.25k|			return false;
  740|  69.4k|		}
  741|  69.4k|	}
_ZN4pcpp9DoIpLayer20isPayloadLengthValidEjm:
  744|  64.1k|	{
  745|  64.1k|		const size_t actualPayloadLen = dataLen - DOIP_HEADER_LEN;
  746|       |
  747|  64.1k|		if (payloadLength != actualPayloadLen)
  ------------------
  |  Branch (747:7): [True: 4.76k, False: 59.3k]
  ------------------
  748|  4.76k|		{
  749|  4.76k|			PCPP_LOG_DEBUG("[Malformed doip packet]: Payload length mismatch: expected "
  ------------------
  |  |  425|  4.76k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  4.76k|	do                                                                                                                 \
  |  |  |  |  413|  4.76k|	{                                                                                                                  \
  |  |  |  |  414|  4.76k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  4.76k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.76k|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 4.76k]
  |  |  |  |  ------------------
  |  |  |  |  416|  4.76k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  4.76k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 4.76k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  750|  4.76k|			               << payloadLength << " bytes, but got " << actualPayloadLen << " bytes.");
  751|  4.76k|			return false;
  752|  4.76k|		}
  753|       |
  754|  59.3k|		return true;
  755|  64.1k|	}

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

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

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

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

_ZN4pcpp10GtpV1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  291|  37.1k|		    : Layer(data, dataLen, prevLayer, packet, GTPv1)
  292|  37.1k|		{}
_ZNK4pcpp10GtpV1Layer9getHeaderEv:
  322|   147k|		{
  323|   147k|			return reinterpret_cast<gtpv1_header*>(m_Data);
  324|   147k|		}
_ZN4pcpp10GtpV1Layer11isGTPv1PortEt:
  387|   349k|		{
  388|   349k|			return port == 2152 /* GTP-U */ || port == 2123 /* GTP-C */;
  ------------------
  |  Branch (388:11): [True: 37.2k, False: 311k]
  |  Branch (388:39): [True: 108, False: 311k]
  ------------------
  389|   349k|		}
_ZNK4pcpp10GtpV1Layer16getOsiModelLayerEv:
  409|  5.03k|		{
  410|  5.03k|			return OsiModelTransportLayer;
  411|  5.03k|		}
_ZN4pcpp16GtpV2MessageTypeC2ENS0_5ValueE:
  595|    176|		constexpr GtpV2MessageType(Value value) : m_Value(value)
  596|    176|		{}
_ZNK4pcpp16GtpV2MessageTypecvNS0_5ValueEEv:
  609|    170|		{
  610|    170|			return m_Value;
  611|    170|		}
_ZN4pcpp10GtpV2LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  980|     24|		    : Layer(data, dataLen, prevLayer, packet, GTPv2)
  981|     24|		{}
_ZN4pcpp10GtpV2Layer11isGTPv2PortEt:
  997|   432k|		{
  998|   432k|			return port == 2123;
  999|   432k|		}
_ZNK4pcpp10GtpV2Layer16getOsiModelLayerEv:
 1113|      3|		{
 1114|      3|			return OsiModelTransportLayer;
 1115|      3|		}
_ZNK4pcpp10GtpV2Layer9getHeaderEv:
 1134|     44|		{
 1135|     44|			return reinterpret_cast<gtpv2_basic_header*>(m_Data);
 1136|     44|		}
_ZN4pcpp10GtpV2LayerD2Ev:
  972|     24|		~GtpV2Layer() override = default;

_ZN4pcpp11HttpMessage10isHttpPortEt:
   75|   806k|		{
   76|   806k|			return port == 80 || port == 8080;
  ------------------
  |  Branch (76:11): [True: 51.6k, False: 754k]
  |  Branch (76:25): [True: 1.54k, False: 752k]
  ------------------
   77|   806k|		}
_ZNK4pcpp22HttpResponseStatusCode17isUnsupportedCodeEv:
  454|  10.8k|		{
  455|  10.8k|			return m_Value > 599;
  456|  10.8k|		}
_ZNK4pcpp11HttpMessage16getOsiModelLayerEv:
   88|  3.09k|		{
   89|  3.09k|			return OsiModelApplicationLayer;
   90|  3.09k|		}
_ZN4pcpp11HttpMessageC2EPhmPNS_5LayerEPNS_6PacketEh:
   94|  15.8k|		    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, protocol)
   95|  15.8k|		{}
_ZNK4pcpp11HttpMessage32getHeaderFieldNameValueSeparatorEv:
  108|  15.8k|		{
  109|  15.8k|			return ':';
  110|  15.8k|		}
_ZNK4pcpp11HttpMessage43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  112|  15.8k|		{
  113|  15.8k|			return true;
  114|  15.8k|		}
_ZN4pcpp22HttpResponseStatusCodeC2ENS0_5ValueE:
  416|    649|		HttpResponseStatusCode(Value statusCode) : m_Value(statusCode)
  417|    649|		{}
_ZNK4pcpp22HttpResponseStatusCodecvNS0_5ValueEEv:
  431|  20.5k|		{
  432|  20.5k|			return m_Value;
  433|  20.5k|		}
_ZNK4pcpp20HttpRequestFirstLine7getSizeEv:
  613|  7.93k|		{
  614|  7.93k|			return m_FirstLineEndOffset;
  615|  7.93k|		}
_ZN4pcpp20HttpRequestFirstLine29HttpRequestFirstLineExceptionD2Ev:
  634|  5.68k|			{}
_ZNK4pcpp21HttpResponseFirstLine7getSizeEv:
  733|  14.1k|		{
  734|  14.1k|			return m_FirstLineEndOffset;
  735|  14.1k|		}
_ZN4pcpp21HttpResponseFirstLine30HttpResponseFirstLineExceptionD2Ev:
  755|  10.1k|			{}
_ZN4pcpp22HttpResponseStatusCodeC2Ev:
  411|  10.1k|		HttpResponseStatusCode() = default;

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

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

_ZNK4pcpp9IPv4Layer13getIPv4HeaderEv:
  448|  6.54M|		{
  449|  6.54M|			return reinterpret_cast<iphdr*>(m_Data);
  450|  6.54M|		}
_ZNK4pcpp9IPv4Layer15getSrcIPAddressEv:
  456|  1.21k|		{
  457|  1.21k|			return getSrcIPv4Address();
  458|  1.21k|		}
_ZNK4pcpp9IPv4Layer17getSrcIPv4AddressEv:
  463|   416k|		{
  464|   416k|			return getIPv4Header()->ipSrc;
  465|   416k|		}
_ZNK4pcpp9IPv4Layer15getDstIPAddressEv:
  478|  1.21k|		{
  479|  1.21k|			return getDstIPv4Address();
  480|  1.21k|		}
_ZNK4pcpp9IPv4Layer17getDstIPv4AddressEv:
  485|   416k|		{
  486|   416k|			return getIPv4Header()->ipDst;
  487|   416k|		}
_ZNK4pcpp9IPv4Layer12getHeaderLenEv:
  582|  1.36M|		{
  583|  1.36M|			return static_cast<size_t>(static_cast<uint16_t>(getIPv4Header()->internetHeaderLength) * 4) +
  584|  1.36M|			       m_TempHeaderExtension;
  585|  1.36M|		}
_ZNK4pcpp9IPv4Layer16getOsiModelLayerEv:
  598|   147k|		{
  599|   147k|			return OsiModelNetworkLayer;
  600|   147k|		}
_ZN4pcpp9IPv4Layer11isDataValidEPKhm:
  627|   911k|	{
  628|   911k|		const iphdr* hdr = reinterpret_cast<const iphdr*>(data);
  629|   911k|		return canReinterpretAs<iphdr>(data, dataLen) && hdr->ipVersion == 4 && hdr->internetHeaderLength >= 5;
  ------------------
  |  Branch (629:10): [True: 900k, False: 11.2k]
  |  Branch (629:52): [True: 895k, False: 4.67k]
  |  Branch (629:75): [True: 895k, False: 339]
  ------------------
  630|   911k|	}

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

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

_ZNK4pcpp9IcmpLayer15isMessageOfTypeENS_15IcmpMessageTypeE:
  369|  55.2k|		{
  370|  55.2k|			return getMessageType() == type;
  371|  55.2k|		}
_ZN4pcpp9IcmpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  346|  40.0k|		    : Layer(data, dataLen, prevLayer, packet, ICMP)
  347|  40.0k|		{}
_ZNK4pcpp9IcmpLayer13getIcmpHeaderEv:
  359|   220k|		{
  360|   220k|			return reinterpret_cast<icmphdr*>(m_Data);
  361|   220k|		}
_ZNK4pcpp9IcmpLayer16getOsiModelLayerEv:
  612|  7.39k|		{
  613|  7.39k|			return OsiModelNetworkLayer;
  614|  7.39k|		}
_ZN4pcpp9IcmpLayer11isDataValidEPKhm:
  620|  40.8k|	{
  621|  40.8k|		if (dataLen < sizeof(icmphdr))
  ------------------
  |  Branch (621:7): [True: 248, False: 40.5k]
  ------------------
  622|    248|			return false;
  623|       |
  624|  40.5k|		uint8_t type = data[0];
  625|       |
  626|       |		// ICMP_ECHO_REQUEST, ICMP_ECHO_REPLY, ICMP_ROUTER_SOL
  627|  40.5k|		if (type == 8 || type == 0 || type == 10)
  ------------------
  |  Branch (627:7): [True: 192, False: 40.3k]
  |  Branch (627:20): [True: 2.01k, False: 38.3k]
  |  Branch (627:33): [True: 1.60k, False: 36.7k]
  ------------------
  628|  3.80k|			return true;
  629|       |
  630|       |		// ICMP_INFO_REQUEST, ICMP_INFO_REPLY
  631|  36.7k|		if (type == 15 || type == 16)
  ------------------
  |  Branch (631:7): [True: 2.70k, False: 34.0k]
  |  Branch (631:21): [True: 2.58k, False: 31.4k]
  ------------------
  632|  5.29k|			return dataLen >= sizeof(icmp_info_request);
  633|       |
  634|       |		// ICMP_TIMESTAMP_REQUEST, ICMP_TIMESTAMP_REPLY
  635|  31.4k|		if (type == 13 || type == 14)
  ------------------
  |  Branch (635:7): [True: 130, False: 31.3k]
  |  Branch (635:21): [True: 5.32k, False: 26.0k]
  ------------------
  636|  5.45k|			return dataLen >= sizeof(icmp_timestamp_request);
  637|       |
  638|       |		// ICMP_ADDRESS_MASK_REPLY, ICMP_ADDRESS_MASK_REQUEST
  639|  26.0k|		if (type == 17 || type == 18)
  ------------------
  |  Branch (639:7): [True: 3.87k, False: 22.1k]
  |  Branch (639:21): [True: 5.80k, False: 16.3k]
  ------------------
  640|  9.68k|			return dataLen >= sizeof(icmp_address_mask_request);
  641|       |
  642|       |		// ICMP_DEST_UNREACHABLE
  643|  16.3k|		if (type == 3)
  ------------------
  |  Branch (643:7): [True: 3.21k, False: 13.1k]
  ------------------
  644|  3.21k|			return dataLen >= sizeof(icmp_destination_unreachable);
  645|       |
  646|       |		// ICMP_REDIRECT
  647|  13.1k|		if (type == 5)
  ------------------
  |  Branch (647:7): [True: 1.61k, False: 11.5k]
  ------------------
  648|  1.61k|			return dataLen >= sizeof(icmp_redirect);
  649|       |
  650|       |		// ICMP_TIME_EXCEEDED, ICMP_SOURCE_QUENCH
  651|  11.5k|		if (type == 4 || type == 11)
  ------------------
  |  Branch (651:7): [True: 2.16k, False: 9.34k]
  |  Branch (651:20): [True: 2.99k, False: 6.35k]
  ------------------
  652|  5.15k|			return dataLen >= sizeof(icmp_time_exceeded);
  653|       |
  654|       |		// ICMP_PARAM_PROBLEM
  655|  6.35k|		if (type == 12)
  ------------------
  |  Branch (655:7): [True: 3.27k, False: 3.08k]
  ------------------
  656|  3.27k|			return dataLen >= sizeof(icmp_param_problem);
  657|       |
  658|       |		// ICMP_ROUTER_ADV
  659|  3.08k|		if (type == 9)
  ------------------
  |  Branch (659:7): [True: 2.88k, False: 197]
  ------------------
  660|  2.88k|			return dataLen >= sizeof(icmp_router_advertisement_hdr);
  661|       |
  662|    197|		return false;
  663|  3.08k|	}

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

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

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

_ZNK4pcpp5Layer12getNextLayerEv:
  127|  91.2M|		{
  128|  91.2M|			return m_NextLayer;
  129|  91.2M|		}
_ZNK4pcpp5Layer12getPrevLayerEv:
  133|  1.79M|		{
  134|  1.79M|			return m_PrevLayer;
  135|  1.79M|		}
_ZNK4pcpp5Layer11getProtocolEv:
  139|  65.6M|		{
  140|  65.6M|			return m_Protocol;
  141|  65.6M|		}
_ZNK4pcpp5Layer7getDataEv:
  150|   279k|		{
  151|   279k|			return m_Data;
  152|   279k|		}
_ZNK4pcpp5Layer10getDataLenEv:
  156|  3.91M|		{
  157|  3.91M|			return m_DataLen;
  158|  3.91M|		}
_ZNK4pcpp5Layer19getLayerPayloadSizeEv:
  168|  81.2k|		{
  169|  81.2k|			return m_DataLen - getHeaderLen();
  170|  81.2k|		}
_ZNK4pcpp5Layer19isAllocatedToPacketEv:
  182|  4.80M|		{
  183|  4.80M|			return m_AllocationInfo.attachedPacket != nullptr;
  184|  4.80M|		}
_ZNK4pcpp5Layer10getDataPtrEm:
  239|  98.2k|		{
  240|  98.2k|			return static_cast<uint8_t*>(m_Data + offset);
  241|  98.2k|		}
_ZN4pcpp5LayerC2EPhmPS0_PNS_6PacketEh:
  276|  4.69M|		    : m_Data(data), m_DataLen(dataLen), m_Protocol(protocol), m_NextLayer(nullptr), m_PrevLayer(prevLayer),
  277|  4.69M|		      m_AllocationInfo{ packet, false }
  278|  4.69M|		{}
_ZN4pcpp5Layer17getAttachedPacketEv:
  287|  4.51M|		{
  288|  4.51M|			return m_AllocationInfo.attachedPacket;
  289|  4.51M|		}
_ZNK4pcpp5Layer17getAttachedPacketEv:
  294|  2.58k|		{
  295|  2.58k|			return m_AllocationInfo.attachedPacket;
  296|  2.58k|		}
_ZN4pcpp5Layer12setNextLayerEPS0_:
  299|  3.80M|		{
  300|  3.80M|			m_NextLayer = nextLayer;
  301|  3.80M|		}
_ZNK4pcpp5Layer12hasNextLayerEv:
  327|  6.61M|		{
  328|  6.61M|			return m_NextLayer != nullptr;
  329|  6.61M|		}
_ZN4pcpp5Layer16canReinterpretAsINS_6arphdrEEEbPKhm:
  587|  3.17k|		{
  588|  3.17k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 3.17k, False: 0]
  |  Branch (588:30): [True: 3.14k, False: 27]
  ------------------
  589|  3.17k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_5iphdrEEEbPKhm:
  587|   911k|		{
  588|   911k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 911k, False: 0]
  |  Branch (588:30): [True: 900k, False: 11.2k]
  ------------------
  589|   911k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11dhcp_headerEEEbPKhm:
  587|  13.5k|		{
  588|  13.5k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 13.5k, False: 0]
  |  Branch (588:30): [True: 13.3k, False: 198]
  ------------------
  589|  13.5k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vrrp_headerEEEbPKhm:
  587|  5.38k|		{
  588|  5.38k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 5.38k, False: 0]
  |  Branch (588:30): [True: 5.38k, False: 0]
  ------------------
  589|  5.38k|		}
_ZN4pcpp14IDataContainerD2Ev:
   30|  4.80M|		virtual ~IDataContainer() = default;
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  387|   116k|		{
  388|   116k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|   116k|			                                               std::forward<Args>(extraArgs)...);
  390|   116k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|   161k|		{
  412|   161k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 161k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|   161k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|   161k|			setNextLayer(newLayer);
  420|   161k|			return newLayer;
  421|   161k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|   907k|		{
  483|   907k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|   907k|			                                                       std::forward<Args>(extraArgs)...);
  485|   907k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|   909k|		{
  505|   909k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 893k, False: 15.9k]
  ------------------
  506|   893k|			{
  507|   893k|				return m_NextLayer;
  508|   893k|			}
  509|       |
  510|  15.9k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|   909k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|   909k|		{
  457|   909k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 893k, False: 15.9k]
  ------------------
  458|   893k|			{
  459|   893k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|   893k|			}
  461|  15.9k|			return nullptr;
  462|   909k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   893k|		{
  358|   893k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 893k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   893k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   893k|			setNextLayer(newLayer);
  365|   893k|			return newLayer;
  366|   893k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   285k|		{
  358|   285k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 285k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   285k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   285k|			setNextLayer(newLayer);
  365|   285k|			return newLayer;
  366|   285k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|   151k|		{
  483|   151k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|   151k|			                                                       std::forward<Args>(extraArgs)...);
  485|   151k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|   151k|		{
  505|   151k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 146k, False: 4.59k]
  ------------------
  506|   146k|			{
  507|   146k|				return m_NextLayer;
  508|   146k|			}
  509|       |
  510|  4.59k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|   151k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|   151k|		{
  457|   151k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 146k, False: 4.59k]
  ------------------
  458|   146k|			{
  459|   146k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|   146k|			}
  461|  4.59k|			return nullptr;
  462|   151k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7ip6_hdrEEEbPKhm:
  587|   151k|		{
  588|   151k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 151k, False: 0]
  |  Branch (588:30): [True: 149k, False: 2.70k]
  ------------------
  589|   151k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   146k|		{
  358|   146k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 146k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   146k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   146k|			setNextLayer(newLayer);
  365|   146k|			return newLayer;
  366|   146k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9VlanLayerEJEEEPS0_PhmDpOT0_:
  343|  72.6k|		{
  344|  72.6k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  72.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   248k|		{
  358|   248k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 248k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   248k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   248k|			setNextLayer(newLayer);
  365|   248k|			return newLayer;
  366|   248k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9MplsLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  9.44k|		{
  483|  9.44k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  9.44k|			                                                       std::forward<Args>(extraArgs)...);
  485|  9.44k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9MplsLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  9.44k|		{
  505|  9.44k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 9.43k, False: 9]
  ------------------
  506|  9.43k|			{
  507|  9.43k|				return m_NextLayer;
  508|  9.43k|			}
  509|       |
  510|      9|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  9.44k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9MplsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  9.44k|		{
  457|  9.44k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 9.43k, False: 9]
  ------------------
  458|  9.43k|			{
  459|  9.43k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  9.43k|			}
  461|      9|			return nullptr;
  462|  9.44k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_9MplsLayer11mpls_headerEEEbPKhm:
  587|  9.44k|		{
  588|  9.44k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 9.44k, False: 0]
  |  Branch (588:30): [True: 9.43k, False: 9]
  ------------------
  589|  9.44k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9MplsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  9.43k|		{
  358|  9.43k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 9.43k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  9.43k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  9.43k|			setNextLayer(newLayer);
  365|  9.43k|			return newLayer;
  366|  9.43k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_13PPP_PPTPLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  83.8k|		{
  483|  83.8k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  83.8k|			                                                       std::forward<Args>(extraArgs)...);
  485|  83.8k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_13PPP_PPTPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  83.8k|		{
  505|  83.8k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 83.8k, False: 0]
  ------------------
  506|  83.8k|			{
  507|  83.8k|				return m_NextLayer;
  508|  83.8k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  83.8k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  83.8k|		{
  457|  83.8k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 83.8k, False: 0]
  ------------------
  458|  83.8k|			{
  459|  83.8k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  83.8k|			}
  461|      0|			return nullptr;
  462|  83.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  83.8k|		{
  358|  83.8k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 83.8k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  83.8k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  83.8k|			setNextLayer(newLayer);
  365|  83.8k|			return newLayer;
  366|  83.8k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8EthLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|    542|		{
  457|    542|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 426, False: 116]
  ------------------
  458|    426|			{
  459|    426|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|    426|			}
  461|    116|			return nullptr;
  462|    542|		}
_ZN4pcpp5Layer18constructNextLayerINS_8EthLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|    426|		{
  358|    426|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 426]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|    426|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|    426|			setNextLayer(newLayer);
  365|    426|			return newLayer;
  366|    426|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmDpOT0_:
  343|   105k|		{
  344|   105k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|   105k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vlan_headerEEEbPKhm:
  587|   175k|		{
  588|   175k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 175k, False: 0]
  |  Branch (588:30): [True: 175k, False: 129]
  ------------------
  589|   175k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GtpV2LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|      8|		{
  483|      8|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|      8|			                                                       std::forward<Args>(extraArgs)...);
  485|      8|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GtpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|      8|		{
  505|      8|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 0, False: 8]
  ------------------
  506|      0|			{
  507|      0|				return m_NextLayer;
  508|      0|			}
  509|       |
  510|      8|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|      8|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GtpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|      8|		{
  457|      8|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 0, False: 8]
  ------------------
  458|      0|			{
  459|      0|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|      0|			}
  461|      8|			return nullptr;
  462|      8|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|     24|		{
  358|     24|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 24]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|     24|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|     24|			setNextLayer(newLayer);
  365|     24|			return newLayer;
  366|     24|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|   350k|		{
  505|   350k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 348k, False: 1.62k]
  ------------------
  506|   348k|			{
  507|   348k|				return m_NextLayer;
  508|   348k|			}
  509|       |
  510|  1.62k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|   350k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|   350k|		{
  457|   350k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 348k, False: 1.62k]
  ------------------
  458|   348k|			{
  459|   348k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|   348k|			}
  461|  1.62k|			return nullptr;
  462|   350k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   348k|		{
  358|   348k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 348k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   348k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   348k|			setNextLayer(newLayer);
  365|   348k|			return newLayer;
  366|   348k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|   492k|		{
  505|   492k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 482k, False: 10.2k]
  ------------------
  506|   482k|			{
  507|   482k|				return m_NextLayer;
  508|   482k|			}
  509|       |
  510|  10.2k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|   492k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|   492k|		{
  457|   492k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 482k, False: 10.2k]
  ------------------
  458|   482k|			{
  459|   482k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|   482k|			}
  461|  10.2k|			return nullptr;
  462|   492k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   482k|		{
  358|   482k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 482k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   482k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   482k|			setNextLayer(newLayer);
  365|   482k|			return newLayer;
  366|   482k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IcmpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  40.8k|		{
  505|  40.8k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 40.0k, False: 777]
  ------------------
  506|  40.0k|			{
  507|  40.0k|				return m_NextLayer;
  508|  40.0k|			}
  509|       |
  510|    777|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  40.8k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  40.8k|		{
  457|  40.8k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 40.0k, False: 777]
  ------------------
  458|  40.0k|			{
  459|  40.0k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  40.0k|			}
  461|    777|			return nullptr;
  462|  40.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  40.0k|		{
  358|  40.0k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 40.0k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  40.0k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  40.0k|			setNextLayer(newLayer);
  365|  40.0k|			return newLayer;
  366|  40.0k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  9.39k|		{
  505|  9.39k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 9.39k, False: 0]
  ------------------
  506|  9.39k|			{
  507|  9.39k|				return m_NextLayer;
  508|  9.39k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  9.39k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  9.39k|		{
  457|  9.39k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 9.39k, False: 0]
  ------------------
  458|  9.39k|			{
  459|  9.39k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  9.39k|			}
  461|      0|			return nullptr;
  462|  9.39k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  9.39k|		{
  358|  9.39k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 9.39k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  9.39k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  9.39k|			setNextLayer(newLayer);
  365|  9.39k|			return newLayer;
  366|  9.39k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv1LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  92.6k|		{
  505|  92.6k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 92.6k, False: 0]
  ------------------
  506|  92.6k|			{
  507|  92.6k|				return m_NextLayer;
  508|  92.6k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  92.6k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  92.6k|		{
  457|  92.6k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 92.6k, False: 0]
  ------------------
  458|  92.6k|			{
  459|  92.6k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  92.6k|			}
  461|      0|			return nullptr;
  462|  92.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  92.6k|		{
  358|  92.6k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 92.6k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  92.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  92.6k|			setNextLayer(newLayer);
  365|  92.6k|			return newLayer;
  366|  92.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11IgmpV1LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  3.10k|		{
  505|  3.10k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 3.10k, False: 0]
  ------------------
  506|  3.10k|			{
  507|  3.10k|				return m_NextLayer;
  508|  3.10k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  3.10k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11IgmpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  3.10k|		{
  457|  3.10k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 3.10k, False: 0]
  ------------------
  458|  3.10k|			{
  459|  3.10k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  3.10k|			}
  461|      0|			return nullptr;
  462|  3.10k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11igmp_headerEEEbPKhm:
  587|  10.4k|		{
  588|  10.4k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 10.4k, False: 0]
  |  Branch (588:30): [True: 10.4k, False: 0]
  ------------------
  589|  10.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11IgmpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  3.10k|		{
  358|  3.10k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 3.10k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  3.10k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  3.10k|			setNextLayer(newLayer);
  365|  3.10k|			return newLayer;
  366|  3.10k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11IgmpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  7.30k|		{
  505|  7.30k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 7.30k, False: 0]
  ------------------
  506|  7.30k|			{
  507|  7.30k|				return m_NextLayer;
  508|  7.30k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  7.30k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  7.30k|		{
  457|  7.30k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 7.30k, False: 0]
  ------------------
  458|  7.30k|			{
  459|  7.30k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  7.30k|			}
  461|      0|			return nullptr;
  462|  7.30k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  7.30k|		{
  358|  7.30k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 7.30k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  7.30k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  7.30k|			setNextLayer(newLayer);
  365|  7.30k|			return newLayer;
  366|  7.30k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_16IgmpV3QueryLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  1.85k|		{
  505|  1.85k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 1.85k, False: 0]
  ------------------
  506|  1.85k|			{
  507|  1.85k|				return m_NextLayer;
  508|  1.85k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  1.85k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_16IgmpV3QueryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  1.85k|		{
  457|  1.85k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 1.85k, False: 0]
  ------------------
  458|  1.85k|			{
  459|  1.85k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  1.85k|			}
  461|      0|			return nullptr;
  462|  1.85k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_19igmpv3_query_headerEEEbPKhm:
  587|  1.85k|		{
  588|  1.85k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 1.85k, False: 0]
  |  Branch (588:30): [True: 1.85k, False: 0]
  ------------------
  589|  1.85k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16IgmpV3QueryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  1.85k|		{
  358|  1.85k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 1.85k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  1.85k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  1.85k|			setNextLayer(newLayer);
  365|  1.85k|			return newLayer;
  366|  1.85k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17IgmpV3ReportLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  2.02k|		{
  505|  2.02k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 2.02k, False: 0]
  ------------------
  506|  2.02k|			{
  507|  2.02k|				return m_NextLayer;
  508|  2.02k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  2.02k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  2.02k|		{
  457|  2.02k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 2.02k, False: 0]
  ------------------
  458|  2.02k|			{
  459|  2.02k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  2.02k|			}
  461|      0|			return nullptr;
  462|  2.02k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20igmpv3_report_headerEEEbPKhm:
  587|  2.02k|		{
  588|  2.02k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 2.02k, False: 0]
  |  Branch (588:30): [True: 2.02k, False: 0]
  ------------------
  589|  2.02k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  2.02k|		{
  358|  2.02k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 2.02k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  2.02k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  2.02k|			setNextLayer(newLayer);
  365|  2.02k|			return newLayer;
  366|  2.02k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_25AuthenticationHeaderLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  4.35k|		{
  505|  4.35k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 4.21k, False: 138]
  ------------------
  506|  4.21k|			{
  507|  4.21k|				return m_NextLayer;
  508|  4.21k|			}
  509|       |
  510|    138|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  4.35k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  4.35k|		{
  457|  4.35k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 4.21k, False: 138]
  ------------------
  458|  4.21k|			{
  459|  4.21k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  4.21k|			}
  461|    138|			return nullptr;
  462|  4.35k|		}
_ZN4pcpp5Layer18constructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  4.21k|		{
  358|  4.21k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 4.21k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  4.21k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  4.21k|			setNextLayer(newLayer);
  365|  4.21k|			return newLayer;
  366|  4.21k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  5.09k|		{
  505|  5.09k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 5.09k, False: 0]
  ------------------
  506|  5.09k|			{
  507|  5.09k|				return m_NextLayer;
  508|  5.09k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  5.09k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  5.09k|		{
  457|  5.09k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 5.09k, False: 0]
  ------------------
  458|  5.09k|			{
  459|  5.09k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  5.09k|			}
  461|      0|			return nullptr;
  462|  5.09k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  5.09k|		{
  358|  5.09k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 5.09k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  5.09k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  5.09k|			setNextLayer(newLayer);
  365|  5.09k|			return newLayer;
  366|  5.09k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  2.84k|		{
  505|  2.84k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 2.84k, False: 0]
  ------------------
  506|  2.84k|			{
  507|  2.84k|				return m_NextLayer;
  508|  2.84k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  2.84k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  2.84k|		{
  457|  2.84k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 2.84k, False: 0]
  ------------------
  458|  2.84k|			{
  459|  2.84k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  2.84k|			}
  461|      0|			return nullptr;
  462|  2.84k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  2.84k|		{
  358|  2.84k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 2.84k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  2.84k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  2.84k|			setNextLayer(newLayer);
  365|  2.84k|			return newLayer;
  366|  2.84k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV3LayerENS_12PayloadLayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  2.53k|		{
  505|  2.53k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 2.53k, False: 0]
  ------------------
  506|  2.53k|			{
  507|  2.53k|				return m_NextLayer;
  508|  2.53k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  2.53k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  2.53k|		{
  457|  2.53k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 2.53k, False: 0]
  ------------------
  458|  2.53k|			{
  459|  2.53k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  2.53k|			}
  461|      0|			return nullptr;
  462|  2.53k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  6.31k|		{
  358|  6.31k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 6.31k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  6.31k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  6.31k|			setNextLayer(newLayer);
  365|  6.31k|			return newLayer;
  366|  6.31k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  30.4k|		{
  483|  30.4k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  30.4k|			                                                       std::forward<Args>(extraArgs)...);
  485|  30.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  88.2k|		{
  483|  88.2k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  88.2k|			                                                       std::forward<Args>(extraArgs)...);
  485|  88.2k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  5.61k|		{
  483|  5.61k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  5.61k|			                                                       std::forward<Args>(extraArgs)...);
  485|  5.61k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv1LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  5.63k|		{
  483|  5.63k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  5.63k|			                                                       std::forward<Args>(extraArgs)...);
  485|  5.63k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  2.94k|		{
  483|  2.94k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  2.94k|			                                                       std::forward<Args>(extraArgs)...);
  485|  2.94k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mDpOT0_:
  387|  52.4k|		{
  388|  52.4k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|  52.4k|			                                               std::forward<Args>(extraArgs)...);
  390|  52.4k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mS5_DpOT0_:
  411|  52.4k|		{
  412|  52.4k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 52.4k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  52.4k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  52.4k|			setNextLayer(newLayer);
  420|  52.4k|			return newLayer;
  421|  52.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmDpOT0_:
  343|  3.77k|		{
  344|  3.77k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  3.77k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ArpLayerEJEEEPS0_PhmDpOT0_:
  343|  1.63k|		{
  344|  1.63k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  1.63k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  4.77k|		{
  358|  4.77k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 4.77k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  4.77k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  4.77k|			setNextLayer(newLayer);
  365|  4.77k|			return newLayer;
  366|  4.77k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  47.2k|		{
  483|  47.2k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  47.2k|			                                                       std::forward<Args>(extraArgs)...);
  485|  47.2k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  47.2k|		{
  505|  47.2k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 47.1k, False: 5]
  ------------------
  506|  47.1k|			{
  507|  47.1k|				return m_NextLayer;
  508|  47.1k|			}
  509|       |
  510|      5|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  47.2k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  47.2k|		{
  457|  47.2k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 47.1k, False: 5]
  ------------------
  458|  47.1k|			{
  459|  47.1k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  47.1k|			}
  461|      5|			return nullptr;
  462|  47.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  47.1k|		{
  358|  47.1k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 47.1k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  47.1k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  47.1k|			setNextLayer(newLayer);
  365|  47.1k|			return newLayer;
  366|  47.1k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  3.04k|		{
  483|  3.04k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  3.04k|			                                                       std::forward<Args>(extraArgs)...);
  485|  3.04k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  3.04k|		{
  505|  3.04k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 3.04k, False: 0]
  ------------------
  506|  3.04k|			{
  507|  3.04k|				return m_NextLayer;
  508|  3.04k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  3.04k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  3.04k|		{
  457|  3.04k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 3.04k, False: 0]
  ------------------
  458|  3.04k|			{
  459|  3.04k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  3.04k|			}
  461|      0|			return nullptr;
  462|  3.04k|		}
_ZN4pcpp5Layer18constructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  3.04k|		{
  358|  3.04k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 3.04k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  3.04k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  3.04k|			setNextLayer(newLayer);
  365|  3.04k|			return newLayer;
  366|  3.04k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  4.39k|		{
  483|  4.39k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  4.39k|			                                                       std::forward<Args>(extraArgs)...);
  485|  4.39k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  4.39k|		{
  505|  4.39k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 4.13k, False: 257]
  ------------------
  506|  4.13k|			{
  507|  4.13k|				return m_NextLayer;
  508|  4.13k|			}
  509|       |
  510|    257|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  4.39k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  4.39k|		{
  457|  4.39k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 4.13k, False: 257]
  ------------------
  458|  4.13k|			{
  459|  4.13k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  4.13k|			}
  461|    257|			return nullptr;
  462|  4.39k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  4.13k|		{
  358|  4.13k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 4.13k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  4.13k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  4.13k|			setNextLayer(newLayer);
  365|  4.13k|			return newLayer;
  366|  4.13k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20ssl_tls_record_layerEEEbPKhm:
  587|   211k|		{
  588|   211k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 211k, False: 0]
  |  Branch (588:30): [True: 211k, False: 0]
  ------------------
  589|   211k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  387|   211k|		{
  388|   211k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|   211k|			                                               std::forward<Args>(extraArgs)...);
  390|   211k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|   211k|		{
  412|   211k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 211k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|   211k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|   211k|			setNextLayer(newLayer);
  420|   211k|			return newLayer;
  421|   211k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7tpkthdrEEEbPKhm:
  587|   125k|		{
  588|   125k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 125k, False: 0]
  |  Branch (588:30): [True: 121k, False: 4.02k]
  ------------------
  589|   125k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16HttpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  5.68k|		{
  358|  5.68k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 5.68k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  5.68k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  5.68k|			setNextLayer(newLayer);
  365|  5.68k|			return newLayer;
  366|  5.68k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17HttpResponseLayerEJEEEPS0_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_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  44.9k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  44.9k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  44.9k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  44.9k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  44.9k|		{
  567|  44.9k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  44.9k|			                                                         std::forward<Args>(extraArgs)...);
  569|  44.9k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 41.5k, False: 3.40k]
  ------------------
  570|  41.5k|			{
  571|  41.5k|				return nextLayer;
  572|  41.5k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|  3.40k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  44.9k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  387|  17.3k|		{
  388|  17.3k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|  17.3k|			                                               std::forward<Args>(extraArgs)...);
  390|  17.3k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  17.3k|		{
  412|  17.3k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 17.3k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  17.3k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  17.3k|			setNextLayer(newLayer);
  420|  17.3k|			return newLayer;
  421|  17.3k|		}
_ZN4pcpp5Layer18constructNextLayerINS_15DnsOverTcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  11.9k|		{
  358|  11.9k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 11.9k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  11.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  11.9k|			setNextLayer(newLayer);
  365|  11.9k|			return newLayer;
  366|  11.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11TelnetLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  52.9k|		{
  358|  52.9k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 52.9k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  52.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  52.9k|			setNextLayer(newLayer);
  365|  52.9k|			return newLayer;
  366|  52.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16FtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  8.92k|		{
  358|  8.92k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 8.92k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  8.92k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  8.92k|			setNextLayer(newLayer);
  365|  8.92k|			return newLayer;
  366|  8.92k|		}
_ZN4pcpp5Layer18constructNextLayerINS_15FtpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|    160|		{
  358|    160|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 160]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|    160|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|    160|			setNextLayer(newLayer);
  365|    160|			return newLayer;
  366|    160|		}
_ZN4pcpp5Layer18constructNextLayerINS_12FtpDataLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  2.92k|		{
  358|  2.92k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 2.92k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  2.92k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  2.92k|			setNextLayer(newLayer);
  365|  2.92k|			return newLayer;
  366|  2.92k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9DoIpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  59.3k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  59.3k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  59.3k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  59.3k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9DoIpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  59.3k|		{
  567|  59.3k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  59.3k|			                                                         std::forward<Args>(extraArgs)...);
  569|  59.3k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 59.0k, False: 281]
  ------------------
  570|  59.0k|			{
  571|  59.0k|				return nextLayer;
  572|  59.0k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|    281|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  59.3k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9DoIpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  59.3k|		{
  412|  59.3k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 59.3k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  59.3k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  59.3k|			setNextLayer(newLayer);
  420|  59.3k|			return newLayer;
  421|  59.3k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9TpktLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  17.4k|		{
  358|  17.4k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 17.4k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  17.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  17.4k|			setNextLayer(newLayer);
  365|  17.4k|			return newLayer;
  366|  17.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17SmtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|    325|		{
  358|    325|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 325]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|    325|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|    325|			setNextLayer(newLayer);
  365|    325|			return newLayer;
  366|    325|		}
_ZN4pcpp5Layer18constructNextLayerINS_16SmtpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|    288|		{
  358|    288|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 288]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|    288|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|    288|			setNextLayer(newLayer);
  365|    288|			return newLayer;
  366|    288|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  40.5k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  40.5k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  40.5k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  40.5k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  40.5k|		{
  567|  40.5k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  40.5k|			                                                         std::forward<Args>(extraArgs)...);
  569|  40.5k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 30.1k, False: 10.4k]
  ------------------
  570|  30.1k|			{
  571|  30.1k|				return nextLayer;
  572|  30.1k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|  10.4k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  40.5k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  66.3k|		{
  412|  66.3k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 66.3k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  66.3k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  66.3k|			setNextLayer(newLayer);
  420|  66.3k|			return newLayer;
  421|  66.3k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|    587|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|    587|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|    587|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|    587|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|    587|		{
  567|    587|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|    587|			                                                         std::forward<Args>(extraArgs)...);
  569|    587|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 587, False: 0]
  ------------------
  570|    587|			{
  571|    587|				return nextLayer;
  572|    587|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|    587|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|    587|		{
  412|    587|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 587]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|    587|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|    587|			setNextLayer(newLayer);
  420|    587|			return newLayer;
  421|    587|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  1.81k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  1.81k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  1.81k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  1.81k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  1.81k|		{
  567|  1.81k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  1.81k|			                                                         std::forward<Args>(extraArgs)...);
  569|  1.81k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 1.81k, False: 0]
  ------------------
  570|  1.81k|			{
  571|  1.81k|				return nextLayer;
  572|  1.81k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  1.81k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  1.81k|		{
  412|  1.81k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 1.81k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  1.81k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  1.81k|			setNextLayer(newLayer);
  420|  1.81k|			return newLayer;
  421|  1.81k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11ModbusLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|     40|		{
  358|     40|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 40]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|     40|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|     40|			setNextLayer(newLayer);
  365|     40|			return newLayer;
  366|     40|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  17.4k|		{
  483|  17.4k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  17.4k|			                                                       std::forward<Args>(extraArgs)...);
  485|  17.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  17.4k|		{
  505|  17.4k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 16.3k, False: 1.06k]
  ------------------
  506|  16.3k|			{
  507|  16.3k|				return m_NextLayer;
  508|  16.3k|			}
  509|       |
  510|  1.06k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  17.4k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  17.4k|		{
  457|  17.4k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 16.3k, False: 1.06k]
  ------------------
  458|  16.3k|			{
  459|  16.3k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  16.3k|			}
  461|  1.06k|			return nullptr;
  462|  17.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  16.3k|		{
  358|  16.3k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 16.3k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  16.3k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  16.3k|			setNextLayer(newLayer);
  365|  16.3k|			return newLayer;
  366|  16.3k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  13.5k|		{
  483|  13.5k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  13.5k|			                                                       std::forward<Args>(extraArgs)...);
  485|  13.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  13.5k|		{
  505|  13.5k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 13.3k, False: 198]
  ------------------
  506|  13.3k|			{
  507|  13.3k|				return m_NextLayer;
  508|  13.3k|			}
  509|       |
  510|    198|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  13.5k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  13.5k|		{
  457|  13.5k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 13.3k, False: 198]
  ------------------
  458|  13.3k|			{
  459|  13.3k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  13.3k|			}
  461|    198|			return nullptr;
  462|  13.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  13.3k|		{
  358|  13.3k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 13.3k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  13.3k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  13.3k|			setNextLayer(newLayer);
  365|  13.3k|			return newLayer;
  366|  13.3k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10VxlanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|    542|		{
  483|    542|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|    542|			                                                       std::forward<Args>(extraArgs)...);
  485|    542|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10VxlanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|    542|		{
  505|    542|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 542, False: 0]
  ------------------
  506|    542|			{
  507|    542|				return m_NextLayer;
  508|    542|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|    542|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10VxlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|    542|		{
  457|    542|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 542, False: 0]
  ------------------
  458|    542|			{
  459|    542|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|    542|			}
  461|      0|			return nullptr;
  462|    542|		}
_ZN4pcpp5Layer16canReinterpretAsINS_12vxlan_headerEEEbPKhm:
  587|    542|		{
  588|    542|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 542, False: 0]
  |  Branch (588:30): [True: 542, False: 0]
  ------------------
  589|    542|		}
_ZN4pcpp5Layer18constructNextLayerINS_10VxlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|    542|		{
  358|    542|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 542]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|    542|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|    542|			setNextLayer(newLayer);
  365|    542|			return newLayer;
  366|    542|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmDpOT0_:
  343|  49.2k|		{
  344|  49.2k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  49.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  49.2k|		{
  358|  49.2k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 49.2k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  49.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  49.2k|			setNextLayer(newLayer);
  365|  49.2k|			return newLayer;
  366|  49.2k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_11QuicV1LayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  1.20k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  1.20k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  1.20k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  1.20k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_11QuicV1LayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  1.20k|		{
  567|  1.20k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  1.20k|			                                                         std::forward<Args>(extraArgs)...);
  569|  1.20k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 990, False: 217]
  ------------------
  570|    990|			{
  571|    990|				return nextLayer;
  572|    990|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|    217|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  1.20k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_11QuicV1LayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  1.20k|		{
  412|  1.20k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 1.20k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  1.20k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  1.20k|			setNextLayer(newLayer);
  420|  1.20k|			return newLayer;
  421|  1.20k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mDpOT1_:
  537|  84.6k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  84.6k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  84.6k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  84.6k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mS8_DpOT1_:
  566|  84.6k|		{
  567|  84.6k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  84.6k|			                                                         std::forward<Args>(extraArgs)...);
  569|  84.6k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 80.8k, False: 3.86k]
  ------------------
  570|  80.8k|			{
  571|  80.8k|				return nextLayer;
  572|  80.8k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|  3.86k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  84.6k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSA_EEES5_T_S4_mS7_DpOT0_:
  411|  84.6k|		{
  412|  84.6k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 84.6k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  84.6k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  84.6k|			setNextLayer(newLayer);
  420|  84.6k|			return newLayer;
  421|  84.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmDpOT0_:
  343|  10.7k|		{
  344|  10.7k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  10.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  10.7k|		{
  358|  10.7k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 10.7k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  10.7k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  10.7k|			setNextLayer(newLayer);
  365|  10.7k|			return newLayer;
  366|  10.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmDpOT0_:
  343|  37.1k|		{
  344|  37.1k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  37.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  37.1k|		{
  358|  37.1k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 37.1k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  37.1k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  37.1k|			setNextLayer(newLayer);
  365|  37.1k|			return newLayer;
  366|  37.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV2LayerEJEEEPS0_PhmDpOT0_:
  343|     24|		{
  344|     24|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|     24|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmDpOT0_:
  343|  17.2k|		{
  344|  17.2k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  17.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  17.2k|		{
  358|  17.2k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 17.2k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  17.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  17.2k|			setNextLayer(newLayer);
  365|  17.2k|			return newLayer;
  366|  17.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmDpOT0_:
  343|  11.5k|		{
  344|  11.5k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  11.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  11.5k|		{
  358|  11.5k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 11.5k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  11.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  11.5k|			setNextLayer(newLayer);
  365|  11.5k|			return newLayer;
  366|  11.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmDpOT0_:
  343|    665|		{
  344|    665|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|    665|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|    665|		{
  358|    665|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 665]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|    665|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|    665|			setNextLayer(newLayer);
  365|    665|			return newLayer;
  366|    665|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  1.80k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  1.80k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  1.80k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  1.80k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  1.80k|		{
  567|  1.80k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  1.80k|			                                                         std::forward<Args>(extraArgs)...);
  569|  1.80k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 1.80k, False: 0]
  ------------------
  570|  1.80k|			{
  571|  1.80k|				return nextLayer;
  572|  1.80k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  1.80k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  1.80k|		{
  412|  1.80k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 1.80k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  1.80k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  1.80k|			setNextLayer(newLayer);
  420|  1.80k|			return newLayer;
  421|  1.80k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  44.1k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  44.1k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  44.1k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  44.1k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  44.1k|		{
  567|  44.1k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  44.1k|			                                                         std::forward<Args>(extraArgs)...);
  569|  44.1k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 375, False: 43.7k]
  ------------------
  570|    375|			{
  571|    375|				return nextLayer;
  572|    375|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|  43.7k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  44.1k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  44.1k|		{
  412|  44.1k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 44.1k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  44.1k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  44.1k|			setNextLayer(newLayer);
  420|  44.1k|			return newLayer;
  421|  44.1k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8EthLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|    542|		{
  483|    542|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|    542|			                                                       std::forward<Args>(extraArgs)...);
  485|    542|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8EthLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|    542|		{
  505|    542|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 426, False: 116]
  ------------------
  506|    426|			{
  507|    426|				return m_NextLayer;
  508|    426|			}
  509|       |
  510|    116|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|    542|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  9.54k|		{
  483|  9.54k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  9.54k|			                                                       std::forward<Args>(extraArgs)...);
  485|  9.54k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  9.54k|		{
  505|  9.54k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 8.88k, False: 666]
  ------------------
  506|  8.88k|			{
  507|  8.88k|				return m_NextLayer;
  508|  8.88k|			}
  509|       |
  510|    666|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  9.54k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  9.54k|		{
  457|  9.54k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 8.88k, False: 666]
  ------------------
  458|  8.88k|			{
  459|  8.88k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  8.88k|			}
  461|    666|			return nullptr;
  462|  9.54k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  8.88k|		{
  358|  8.88k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 8.88k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  8.88k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  8.88k|			setNextLayer(newLayer);
  365|  8.88k|			return newLayer;
  366|  8.88k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  3.17k|		{
  483|  3.17k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  3.17k|			                                                       std::forward<Args>(extraArgs)...);
  485|  3.17k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  3.17k|		{
  505|  3.17k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 3.14k, False: 27]
  ------------------
  506|  3.14k|			{
  507|  3.14k|				return m_NextLayer;
  508|  3.14k|			}
  509|       |
  510|     27|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  3.17k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  3.17k|		{
  457|  3.17k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 3.14k, False: 27]
  ------------------
  458|  3.14k|			{
  459|  3.14k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  3.14k|			}
  461|     27|			return nullptr;
  462|  3.17k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|   175k|		{
  483|   175k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|   175k|			                                                       std::forward<Args>(extraArgs)...);
  485|   175k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|   175k|		{
  505|   175k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 175k, False: 129]
  ------------------
  506|   175k|			{
  507|   175k|				return m_NextLayer;
  508|   175k|			}
  509|       |
  510|    129|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|   175k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|   175k|		{
  457|   175k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 175k, False: 129]
  ------------------
  458|   175k|			{
  459|   175k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|   175k|			}
  461|    129|			return nullptr;
  462|   175k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  387|  25.7k|		{
  388|  25.7k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|  25.7k|			                                               std::forward<Args>(extraArgs)...);
  390|  25.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmDpOT0_:
  343|  49.5k|		{
  344|  49.5k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  49.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  49.5k|		{
  358|  49.5k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 49.5k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  49.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  49.5k|			setNextLayer(newLayer);
  365|  49.5k|			return newLayer;
  366|  49.5k|		}

_ZN4pcpp9LdapLayer10isLdapPortEt:
  347|   199k|		{
  348|   199k|			return port == 389;
  349|   199k|		}
_ZN4pcpp17LdapOperationTypeC2ENS0_5ValueE:
   74|  3.10k|		constexpr LdapOperationType(Value value) : m_Value(value)
   75|  3.10k|		{}
_ZNK4pcpp17LdapOperationTypecvNS0_5ValueEEv:
   88|  55.0k|		{
   89|  55.0k|			return m_Value;
   90|  55.0k|		}
_ZNK4pcpp9LdapLayer12getHeaderLenEv:
  366|  62.3k|		{
  367|  62.3k|			return m_Asn1Record->getTotalLength();
  368|  62.3k|		}
_ZN4pcpp9LdapLayer22computeCalculateFieldsEv:
  371|  8.43k|		{}
_ZNK4pcpp9LdapLayer16getOsiModelLayerEv:
  374|  8.43k|		{
  375|  8.43k|			return OsiModelApplicationLayer;
  376|  8.43k|		}
_ZNK4pcpp9LdapLayer21getExtendedInfoStringEv:
  389|  10.0k|		{
  390|  10.0k|			return "";
  391|  10.0k|		}
_ZN4pcpp17LdapResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  447|  13.6k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  448|  13.6k|		{}
_ZN4pcpp20LdapBindRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  555|  3.27k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  556|  3.27k|		{}
_ZN4pcpp21LdapBindResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  602|    555|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  603|    555|		{}
_ZNK4pcpp22LdapUnbindRequestLayer20getLdapOperationTypeEv:
  622|  1.60k|		{
  623|  1.60k|			return LdapOperationType::UnbindRequest;
  624|  1.60k|		}
_ZN4pcpp22LdapUnbindRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  636|  4.05k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  637|  4.05k|		{}
_ZN4pcpp22LdapSearchRequestLayer18SearchRequestScopeC2ENS1_5ValueE:
  674|  1.03k|			constexpr SearchRequestScope(Value value) : m_Value(value)
  675|  1.03k|			{}
_ZN4pcpp22LdapSearchRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  820|  2.59k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  821|  2.59k|		{}
_ZN4pcpp26LdapSearchResultEntryLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  862|  1.41k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  863|  1.41k|		{}
_ZN4pcpp25LdapSearchResultDoneLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  895|  7.95k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  896|  7.95k|		{}
_ZN4pcpp23LdapModifyResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  928|  1.26k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  929|  1.26k|		{}
_ZN4pcpp20LdapAddResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  961|     15|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  962|     15|		{}
_ZN4pcpp23LdapDeleteResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  994|    158|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  995|    158|		{}
_ZN4pcpp25LdapModifyDNResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
 1027|  2.41k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
 1028|  2.41k|		{}
_ZN4pcpp24LdapCompareResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
 1060|  1.30k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
 1061|  1.30k|		{}
_ZN4pcpp9LdapLayerD2Ev:
  299|  53.9k|		~LdapLayer() override = default;

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

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

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

_ZN4pcpp28NDPNeighborSolicitationLayer11isDataValidEPKhm:
  185|  1.23k|		{
  186|  1.23k|			return data != nullptr && dataLen >= sizeof(ndpneighborsolicitationhdr);
  ------------------
  |  Branch (186:11): [True: 1.23k, False: 0]
  |  Branch (186:30): [True: 1.23k, False: 4]
  ------------------
  187|  1.23k|		}
_ZN4pcpp28NDPNeighborSolicitationLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  177|  1.23k|		    : NDPLayerBase(data, dataLen, prevLayer, packet)
  178|  1.23k|		{}
_ZN4pcpp12NDPLayerBaseC2EPhmPNS_5LayerEPNS_6PacketE:
  140|  1.24k|		    : IcmpV6Layer(data, dataLen, prevLayer, packet)
  141|  1.24k|		{}
_ZN4pcpp12NDPLayerBaseD2Ev:
  102|  1.24k|		~NDPLayerBase() override = default;
_ZNK4pcpp12NDPLayerBase20getNdpOptionsBasePtrEv:
  148|    620|		{
  149|    620|			return m_Data + getNdpHeaderLen();
  150|    620|		};
_ZN4pcpp29NDPNeighborAdvertisementLayer11isDataValidEPKhm:
  284|     12|		{
  285|     12|			return data != nullptr && dataLen >= sizeof(ndpneighboradvertisementhdr);
  ------------------
  |  Branch (285:11): [True: 12, False: 0]
  |  Branch (285:30): [True: 12, False: 0]
  ------------------
  286|     12|		}
_ZN4pcpp29NDPNeighborAdvertisementLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  276|     12|		    : NDPLayerBase(data, dataLen, prevLayer, packet)
  277|     12|		{}
_ZN4pcpp9NdpOptionC2EPh:
   37|    620|		explicit NdpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
   38|    620|		{}
_ZNK4pcpp28NDPNeighborSolicitationLayer11getTargetIPEv:
  204|    614|		{
  205|    614|			return IPv6Address(getNdpHeader()->targetIP);
  206|    614|		};
_ZNK4pcpp28NDPNeighborSolicitationLayer12getNdpHeaderEv:
  221|    614|		{
  222|    614|			return reinterpret_cast<ndpneighborsolicitationhdr*>(m_Data);
  223|    614|		}
_ZNK4pcpp28NDPNeighborSolicitationLayer15getNdpHeaderLenEv:
  225|  1.22k|		{
  226|  1.22k|			return sizeof(ndpneighborsolicitationhdr);
  227|  1.22k|		};
_ZNK4pcpp29NDPNeighborAdvertisementLayer11getTargetIPEv:
  316|      6|		{
  317|      6|			return IPv6Address(getNdpHeader()->targetIP);
  318|      6|		}
_ZNK4pcpp29NDPNeighborAdvertisementLayer12getNdpHeaderEv:
  346|      6|		{
  347|      6|			return reinterpret_cast<ndpneighboradvertisementhdr*>(m_Data);
  348|      6|		}
_ZNK4pcpp29NDPNeighborAdvertisementLayer15getNdpHeaderLenEv:
  350|     12|		{
  351|     12|			return sizeof(ndpneighboradvertisementhdr);
  352|     12|		};

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

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

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

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

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

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

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

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

_ZN4pcpp8internal27protoFamilyContainsProtocolEjh:
  444|  15.8M|		{
  445|  15.8M|			auto const protocolToFamily = static_cast<ProtocolTypeFamily>(protocol);
  446|  15.8M|			return (protocolToFamily == (family & 0xff) || protocolToFamily << 8 == (family & 0xff00) ||
  ------------------
  |  Branch (446:12): [True: 95.4k, False: 15.7M]
  |  Branch (446:51): [True: 44.2k, False: 15.7M]
  ------------------
  447|  15.7M|			        protocolToFamily << 16 == (family & 0xff0000) || protocolToFamily << 24 == (family & 0xff000000));
  ------------------
  |  Branch (447:12): [True: 0, False: 15.7M]
  |  Branch (447:61): [True: 0, False: 15.7M]
  ------------------
  448|  15.8M|		}

_ZN4pcpp11QuicV1Layer10isQuicPortEt:
   87|   570k|		{
   88|   570k|			return port == 443;
   89|   570k|		}
_ZN4pcpp11QuicV1Layer22computeCalculateFieldsEv:
  101|    168|		{}
_ZNK4pcpp11QuicV1Layer16getOsiModelLayerEv:
  108|    168|		{
  109|    168|			return OsiModelTransportLayer;
  110|    168|		}
_ZN4pcpp11QuicV1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  114|    990|		    : Layer(data, dataLen, prevLayer, packet, QUICv1)
  115|    990|		{}
_ZN4pcpp21QuicV1LongHeaderLayer15OffsetAndLengthC2Emm:
  221|  1.25k|			OffsetAndLength(size_t length, size_t offset) : length(length), offset(offset)
  222|  1.25k|			{}
_ZNK4pcpp21QuicV1LongHeaderLayer13getLongHeaderEv:
  235|    835|		{
  236|    835|			return reinterpret_cast<quic_long_header*>(m_Data);
  237|    835|		}
_ZN4pcpp24QuicV1EstablishmentLayer18VarintValueAndSizeC2Emm:
  283|    920|			VarintValueAndSize(uint64_t value, size_t size) : value(value), size(size)
  284|    920|			{}
_ZNK4pcpp16QuicV1RetryLayer12getHeaderLenEv:
  371|     48|		{
  372|     48|			return m_DataLen;
  373|     48|		}
_ZNK4pcpp29QuicV1VersionNegotiationLayer13getPacketTypeEv:
  395|     18|		{
  396|     18|			return QuicPacketType::VersionNegotiation;
  397|     18|		}
_ZNK4pcpp29QuicV1VersionNegotiationLayer12getHeaderLenEv:
  408|     54|		{
  409|     54|			return m_DataLen;
  410|     54|		}
_ZNK4pcpp17QuicV1OneRttLayer13getPacketTypeEv:
  427|    120|		{
  428|    120|			return QuicPacketType::OneRtt;
  429|    120|		}
_ZNK4pcpp17QuicV1OneRttLayer12getHeaderLenEv:
  455|    419|		{
  456|    419|			return m_DataLen;
  457|    419|		}

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

_ZNK4pcpp9RawPacket10getRawDataEv:
  694|  2.54M|		{
  695|  2.54M|			return m_RawData;
  696|  2.54M|		}
_ZNK4pcpp9RawPacket16getLinkLayerTypeEv:
  701|   970k|		{
  702|   970k|			return m_LinkLayerType;
  703|   970k|		}
_ZNK4pcpp9RawPacket13getRawDataLenEv:
  713|  2.68M|		{
  714|  2.68M|			return m_RawDataLen;
  715|  2.68M|		}
_ZNK4pcpp9RawPacket18getPacketTimeStampEv:
  726|   176k|		{
  727|   176k|			return m_TimeStamp;
  728|   176k|		}
_ZN4pcpp9RawPacketC2Ev:
  544|  3.72k|		RawPacket() = default;

_ZN4pcpp11S7CommLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   95|  8.88k|		    : Layer(data, dataLen, prevLayer, packet, S7COMM)
   96|  8.88k|		{}
_ZNK4pcpp11S7CommLayer12getHeaderLenEv:
  141|  1.22k|		{
  142|  1.22k|			return m_DataLen;
  143|  1.22k|		}
_ZN4pcpp11S7CommLayer22computeCalculateFieldsEv:
  147|  1.22k|		{}
_ZN4pcpp11S7CommLayer14parseNextLayerEv:
  151|  8.88k|		{}
_ZNK4pcpp11S7CommLayer16getOsiModelLayerEv:
  162|  1.22k|		{
  163|  1.22k|			return OsiModelApplicationLayer;
  164|  1.22k|		}
_ZNK4pcpp11S7CommLayer15getS7commHeaderEv:
  168|  2.44k|		{
  169|  2.44k|			return reinterpret_cast<s7commhdr*>(m_Data);
  170|  2.44k|		}
_ZN4pcpp11S7CommLayerD2Ev:
   98|  8.88k|		~S7CommLayer() override = default;

_ZN4pcpp8SSHLayer9isSSHPortEtt:
   93|   230k|		{
   94|   230k|			return portSrc == 22 || portDst == 22;
  ------------------
  |  Branch (94:11): [True: 6.43k, False: 223k]
  |  Branch (94:28): [True: 8.15k, False: 215k]
  ------------------
   95|   230k|		}
_ZN4pcpp8SSHLayer22computeCalculateFieldsEv:
  105|  3.19k|		{}
_ZNK4pcpp8SSHLayer16getOsiModelLayerEv:
  108|  3.19k|		{
  109|  3.19k|			return OsiModelApplicationLayer;
  110|  3.19k|		}
_ZN4pcpp8SSHLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  115|  17.3k|		    : Layer(data, dataLen, prevLayer, packet, SSH)
  116|  17.3k|		{}
_ZNK4pcpp24SSHIdentificationMessage12getHeaderLenEv:
  149|  3.17k|		{
  150|  3.17k|			return m_DataLen;
  151|  3.17k|		}
_ZN4pcpp24SSHIdentificationMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  161|  2.64k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  162|  2.64k|		{}
_ZN4pcpp19SSHHandshakeMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  261|  10.1k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  262|  10.1k|		{}
_ZNK4pcpp19SSHHandshakeMessage16getMsgBaseHeaderEv:
  265|  15.6k|		{
  266|  15.6k|			return reinterpret_cast<ssh_message_base*>(m_Data);
  267|  15.6k|		}
_ZN4pcpp19SSHEncryptedMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  395|  4.55k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  396|  4.55k|		{}
_ZNK4pcpp19SSHEncryptedMessage12getHeaderLenEv:
  402|  5.37k|		{
  403|  5.37k|			return m_DataLen;
  404|  5.37k|		}

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

_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  946|  7.08k|	{
  947|  7.08k|		size_t vecSize = m_ExtensionList.size();
  948|  12.4k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 8.94k, False: 3.46k]
  ------------------
  949|  8.94k|		{
  950|  8.94k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  8.94k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 3.61k, False: 5.33k]
  ------------------
  952|  3.61k|				return static_cast<TExtension*>(curElem);
  953|  8.94k|		}
  954|       |
  955|  3.46k|		return nullptr;
  956|  7.08k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  946|  7.08k|	{
  947|  7.08k|		size_t vecSize = m_ExtensionList.size();
  948|  47.7k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 41.5k, False: 6.18k]
  ------------------
  949|  41.5k|		{
  950|  41.5k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  41.5k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 899, False: 40.6k]
  ------------------
  952|    899|				return static_cast<TExtension*>(curElem);
  953|  41.5k|		}
  954|       |
  955|  6.18k|		return nullptr;
  956|  7.08k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  959|  4.44k|	{
  960|  4.44k|		size_t vecSize = m_ExtensionList.size();
  961|  7.60k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 3.78k, False: 3.81k]
  ------------------
  962|  3.78k|		{
  963|  3.78k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  3.78k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 625, False: 3.15k]
  ------------------
  965|    625|				return static_cast<TExtension*>(curElem);
  966|  3.78k|		}
  967|       |
  968|  3.81k|		return nullptr;
  969|  4.44k|	}
_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|   678k|		{
  188|   678k|			return reinterpret_cast<SSLExtensionStruct*>(m_RawData);
  189|   678k|		}
_ZN4pcpp18SSLx509CertificateC2EPhmb:
  255|  25.2k|		    : m_Data(data), m_DataLen(dataLen), m_AllDataExists(allDataExists)
  256|  25.2k|		{}
_ZNK4pcpp21SSLClientHelloMessage20getClientHelloHeaderEv:
  402|  14.1k|		{
  403|  14.1k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  404|  14.1k|		}
_ZNK4pcpp21SSLServerHelloMessage20getServerHelloHeaderEv:
  538|  8.44k|		{
  539|  8.44k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  540|  8.44k|		}
_ZN4pcpp22SSLHelloRequestMessageC2EPhmPNS_17SSLHandshakeLayerE:
  676|  26.2k|		    : SSLHandshakeMessage(data, dataLen, container)
  677|  26.2k|		{}
_ZN4pcpp27SSLServerKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  699|  3.90k|		    : SSLHandshakeMessage(data, dataLen, container)
  700|  3.90k|		{}
_ZN4pcpp27SSLClientKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  733|  2.50k|		    : SSLHandshakeMessage(data, dataLen, container)
  734|  2.50k|		{}
_ZN4pcpp25SSLServerHelloDoneMessageC2EPhmPNS_17SSLHandshakeLayerE:
  803|  1.48k|		    : SSLHandshakeMessage(data, dataLen, container)
  804|  1.48k|		{}
_ZN4pcpp27SSLCertificateVerifyMessageC2EPhmPNS_17SSLHandshakeLayerE:
  826|  1.11k|		    : SSLHandshakeMessage(data, dataLen, container)
  827|  1.11k|		{}
_ZN4pcpp18SSLFinishedMessageC2EPhmPNS_17SSLHandshakeLayerE:
  860|  2.36k|		    : SSLHandshakeMessage(data, dataLen, container)
  861|  2.36k|		{}
_ZN4pcpp26SSLNewSessionTicketMessageC2EPhmPNS_17SSLHandshakeLayerE:
  893|  2.04k|		    : SSLHandshakeMessage(data, dataLen, container)
  894|  2.04k|		{}
_ZN4pcpp17SSLUnknownMessageC2EPhmPNS_17SSLHandshakeLayerE:
  927|  45.9k|		    : SSLHandshakeMessage(data, dataLen, container)
  928|  45.9k|		{}
_ZN4pcpp19SSLHandshakeMessageD2Ev:
  306|   176k|		virtual ~SSLHandshakeMessage() = default;
_ZN4pcpp21SSLClientHelloMessageD2Ev:
  397|  39.1k|		~SSLClientHelloMessage() override = default;
_ZN4pcpp21SSLServerHelloMessageD2Ev:
  533|  28.4k|		~SSLServerHelloMessage() override = default;
_ZN4pcpp21SSLCertificateMessageD2Ev:
  641|  9.42k|		~SSLCertificateMessage() override = default;
_ZN4pcpp28SSLCertificateRequestMessageD2Ev:
  767|  13.8k|		~SSLCertificateRequestMessage() override = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_32SSLServerNameIndicationExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  83.8k|		{
  153|  83.8k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 83.8k]
  |  Branch (153:27): [True: 0, False: 83.8k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  83.8k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  83.8k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 2.50k, False: 81.3k]
  ------------------
  160|  2.50k|			{
  161|  2.50k|				return nullptr;
  162|  2.50k|			}
  163|       |
  164|  81.3k|			return std::make_unique<T>(data, dataLen);
  165|  83.8k|		}
_ZN4pcpp12SSLExtensionD2Ev:
  123|   278k|		virtual ~SSLExtension() = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_29SSLSupportedVersionsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  7.39k|		{
  153|  7.39k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 7.39k]
  |  Branch (153:27): [True: 0, False: 7.39k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  7.39k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  7.39k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 1.04k, False: 6.34k]
  ------------------
  160|  1.04k|			{
  161|  1.04k|				return nullptr;
  162|  1.04k|			}
  163|       |
  164|  6.34k|			return std::make_unique<T>(data, dataLen);
  165|  7.39k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_27TLSSupportedGroupsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  13.6k|		{
  153|  13.6k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 13.6k]
  |  Branch (153:27): [True: 0, False: 13.6k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  13.6k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  13.6k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 76, False: 13.5k]
  ------------------
  160|     76|			{
  161|     76|				return nullptr;
  162|     76|			}
  163|       |
  164|  13.5k|			return std::make_unique<T>(data, dataLen);
  165|  13.6k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_25TLSECPointFormatExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  21.4k|		{
  153|  21.4k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 21.4k]
  |  Branch (153:27): [True: 0, False: 21.4k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  21.4k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  21.4k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 1.18k, False: 20.2k]
  ------------------
  160|  1.18k|			{
  161|  1.18k|				return nullptr;
  162|  1.18k|			}
  163|       |
  164|  20.2k|			return std::make_unique<T>(data, dataLen);
  165|  21.4k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionIS0_TnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS2_10unique_ptrIS4_NS2_14default_deleteIS4_EEEEPhm:
  152|   171k|		{
  153|   171k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 171k]
  |  Branch (153:27): [True: 0, False: 171k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|   171k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|   171k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 14.4k, False: 157k]
  ------------------
  160|  14.4k|			{
  161|  14.4k|				return nullptr;
  162|  14.4k|			}
  163|       |
  164|   157k|			return std::make_unique<T>(data, dataLen);
  165|   171k|		}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_27TLSSupportedGroupsExtensionEEEPT_v:
  946|  7.08k|	{
  947|  7.08k|		size_t vecSize = m_ExtensionList.size();
  948|  32.0k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 27.4k, False: 4.57k]
  ------------------
  949|  27.4k|		{
  950|  27.4k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  27.4k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 2.50k, False: 24.9k]
  ------------------
  952|  2.50k|				return static_cast<TExtension*>(curElem);
  953|  27.4k|		}
  954|       |
  955|  4.57k|		return nullptr;
  956|  7.08k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_25TLSECPointFormatExtensionEEEPT_v:
  946|  7.08k|	{
  947|  7.08k|		size_t vecSize = m_ExtensionList.size();
  948|  30.4k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 26.9k, False: 3.45k]
  ------------------
  949|  26.9k|		{
  950|  26.9k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  26.9k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 3.62k, False: 23.3k]
  ------------------
  952|  3.62k|				return static_cast<TExtension*>(curElem);
  953|  26.9k|		}
  954|       |
  955|  3.45k|		return nullptr;
  956|  7.08k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  959|  8.88k|	{
  960|  8.88k|		size_t vecSize = m_ExtensionList.size();
  961|  18.1k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 9.76k, False: 8.40k]
  ------------------
  962|  9.76k|		{
  963|  9.76k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  9.76k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 482, False: 9.28k]
  ------------------
  965|    482|				return static_cast<TExtension*>(curElem);
  966|  9.76k|		}
  967|       |
  968|  8.40k|		return nullptr;
  969|  8.88k|	}

_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLClientHelloMessageEEEPT_v:
  444|  19.1k|	{
  445|  19.1k|		size_t vecSize = m_MessageList.size();
  446|  36.9k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 24.9k, False: 12.0k]
  ------------------
  447|  24.9k|		{
  448|  24.9k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  24.9k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 7.08k, False: 17.8k]
  ------------------
  450|  7.08k|				return (THandshakeMessage*)curElem;
  451|  24.9k|		}
  452|       |
  453|       |		// element not found
  454|  12.0k|		return nullptr;
  455|  19.1k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLServerHelloMessageEEEPT_v:
  444|  19.1k|	{
  445|  19.1k|		size_t vecSize = m_MessageList.size();
  446|  40.8k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 26.1k, False: 14.6k]
  ------------------
  447|  26.1k|		{
  448|  26.1k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  26.1k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 4.44k, False: 21.7k]
  ------------------
  450|  4.44k|				return (THandshakeMessage*)curElem;
  451|  26.1k|		}
  452|       |
  453|       |		// element not found
  454|  14.6k|		return nullptr;
  455|  19.1k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_19SSLHandshakeMessageEEEPT_v:
  444|  19.1k|	{
  445|  19.1k|		size_t vecSize = m_MessageList.size();
  446|  19.1k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 17.9k, False: 1.19k]
  ------------------
  447|  17.9k|		{
  448|  17.9k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  17.9k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 17.9k, False: 0]
  ------------------
  450|  17.9k|				return (THandshakeMessage*)curElem;
  451|  17.9k|		}
  452|       |
  453|       |		// element not found
  454|  1.19k|		return nullptr;
  455|  19.1k|	}  // getHandshakeMessageOfType
_ZNK4pcpp8SSLLayer14getRecordLayerEv:
  227|   430k|		{
  228|   430k|			return reinterpret_cast<ssl_tls_record_layer*>(m_Data);
  229|   430k|		}
_ZNK4pcpp8SSLLayer16getOsiModelLayerEv:
  247|  34.2k|		{
  248|  34.2k|			return OsiModelPresentationLayer;
  249|  34.2k|		}
_ZN4pcpp8SSLLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  253|   211k|		    : Layer(data, dataLen, prevLayer, packet, SSL)
  254|   211k|		{}
_ZN4pcpp17SSLHandshakeLayer22computeCalculateFieldsEv:
  346|  19.1k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  364|  71.0k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  365|  71.0k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayer22computeCalculateFieldsEv:
  375|  11.2k|		{}
_ZN4pcpp13SSLAlertLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  390|  5.44k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  391|  5.44k|		{}
_ZN4pcpp13SSLAlertLayer22computeCalculateFieldsEv:
  407|    910|		{}
_ZN4pcpp23SSLApplicationDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  422|  17.5k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  423|  17.5k|		{}
_ZN4pcpp23SSLApplicationDataLayer22computeCalculateFieldsEv:
  440|  3.00k|		{}
_ZN4pcpp8SSLLayer9isSSLPortEt:
  489|   744k|	{
  490|   744k|		if (port == 443)  // HTTPS, this is likely case
  ------------------
  |  Branch (490:7): [True: 124k, False: 619k]
  ------------------
  491|   124k|			return true;
  492|       |
  493|   619k|		switch (port)
  494|   619k|		{
  495|    136|		case 261:  // NSIIOPS
  ------------------
  |  Branch (495:3): [True: 136, False: 619k]
  ------------------
  496|  3.06k|		case 448:  // DDM-SSL
  ------------------
  |  Branch (496:3): [True: 2.92k, False: 616k]
  ------------------
  497|  3.13k|		case 465:  // SMTPS
  ------------------
  |  Branch (497:3): [True: 71, False: 619k]
  ------------------
  498|  3.34k|		case 563:  // NNTPS
  ------------------
  |  Branch (498:3): [True: 215, False: 619k]
  ------------------
  499|  3.87k|		case 614:  // SSHELL
  ------------------
  |  Branch (499:3): [True: 531, False: 619k]
  ------------------
  500|  3.87k|		case 636:  // LDAPS
  ------------------
  |  Branch (500:3): [True: 0, False: 619k]
  ------------------
  501|  4.49k|		case 989:  // FTPS - data
  ------------------
  |  Branch (501:3): [True: 616, False: 619k]
  ------------------
  502|  4.49k|		case 990:  // FTPS - control
  ------------------
  |  Branch (502:3): [True: 0, False: 619k]
  ------------------
  503|  4.49k|		case 992:  // Telnet over TLS/SSL
  ------------------
  |  Branch (503:3): [True: 0, False: 619k]
  ------------------
  504|  5.13k|		case 993:  // IMAPS
  ------------------
  |  Branch (504:3): [True: 636, False: 619k]
  ------------------
  505|  5.13k|		case 994:  // IRCS
  ------------------
  |  Branch (505:3): [True: 0, False: 619k]
  ------------------
  506|  5.85k|		case 995:  // POP3S
  ------------------
  |  Branch (506:3): [True: 727, False: 619k]
  ------------------
  507|  5.85k|			return true;
  508|   613k|		default:
  ------------------
  |  Branch (508:3): [True: 613k, False: 5.85k]
  ------------------
  509|   613k|			return false;
  510|   619k|		}
  511|   619k|	}  // isSSLPort

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

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

_ZN4pcpp8SipLayer9isSipPortEt:
  113|  1.15M|		{
  114|  1.15M|			return port == 5060 || port == 5061;
  ------------------
  |  Branch (114:11): [True: 169k, False: 987k]
  |  Branch (114:27): [True: 0, False: 987k]
  ------------------
  115|  1.15M|		}
_ZNK4pcpp8SipLayer16getOsiModelLayerEv:
   97|  7.75k|		{
   98|  7.75k|			return OsiModelSessionLayer;
   99|  7.75k|		}
_ZN4pcpp8SipLayerC2EPhmPNS_5LayerEPNS_6PacketEh:
  141|  81.2k|		    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, protocol)
  142|  81.2k|		{}
_ZNK4pcpp8SipLayer32getHeaderFieldNameValueSeparatorEv:
  155|  81.2k|		{
  156|  81.2k|			return ':';
  157|  81.2k|		}
_ZNK4pcpp8SipLayer43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  159|  81.2k|		{
  160|  81.2k|			return true;
  161|  81.2k|		}
_ZNK4pcpp19SipRequestFirstLine7getSizeEv:
  584|  78.0k|		{
  585|  78.0k|			return m_FirstLineEndOffset;
  586|  78.0k|		}
_ZN4pcpp19SipRequestFirstLine28SipRequestFirstLineExceptionD2Ev:
  605|  66.2k|			{}
_ZNK4pcpp20SipResponseFirstLine7getSizeEv:
  709|  18.7k|		{
  710|  18.7k|			return m_FirstLineEndOffset;
  711|  18.7k|		}
_ZN4pcpp20SipResponseFirstLine29SipResponseFirstLineExceptionD2Ev:
  730|  14.9k|			{}

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

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

_ZN4pcpp9SmtpLayer10isSmtpPortEt:
   28|   215k|		{
   29|   215k|			return port == 25 || port == 587;
  ------------------
  |  Branch (29:11): [True: 2.84k, False: 212k]
  |  Branch (29:25): [True: 0, False: 212k]
  ------------------
   30|   215k|		}
_ZN4pcpp17SmtpResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  251|    325|		    : SmtpLayer(data, dataLen, prevLayer, packet) {};
_ZN4pcpp9SmtpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   18|    613|		    : SingleCommandTextProtocol(data, dataLen, prevLayer, packet, SMTP) {};
_ZN4pcpp9SmtpLayer14parseNextLayerEv:
   36|    613|		{}
_ZNK4pcpp9SmtpLayer12getHeaderLenEv:
   40|    122|		{
   41|    122|			return m_DataLen;
   42|    122|		}
_ZN4pcpp9SmtpLayer22computeCalculateFieldsEv:
   46|    122|		{}
_ZNK4pcpp9SmtpLayer16getOsiModelLayerEv:
   50|    122|		{
   51|    122|			return OsiModelApplicationLayer;
   52|    122|		}
_ZN4pcpp16SmtpRequestLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  121|    288|		    : SmtpLayer(data, dataLen, prevLayer, packet) {};

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

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

_ZN4pcpp9TLVRecordIhhED2Ev:
   54|   552k|		virtual ~TLVRecord() = default;
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEED2Ev:
  237|   570k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp9TLVRecordIttEC2ERKS1_:
   49|  7.55k|		{
   50|  7.55k|			m_Data = other.m_Data;
   51|  7.55k|		}
_ZN4pcpp9TLVRecordIttED2Ev:
   54|  31.1k|		virtual ~TLVRecord() = default;
_ZN4pcpp9TLVRecordIttEaSERKS1_:
   78|  20.4k|		{
   79|  20.4k|			m_Data = other.m_Data;
   80|  20.4k|			return *this;
   81|  20.4k|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIjEET_m:
  164|  2.58k|		{
  165|  2.58k|			static_assert(std::is_trivially_copyable<T>::value && std::is_default_constructible<T>::value &&
  166|  2.58k|			                  !std::is_pointer<T>::value,
  167|  2.58k|			              "TLVRecord::getValueAs<T>() requires T to be a non-pointer, "
  168|  2.58k|			              "default-constructible, trivially copyable type");
  169|       |
  170|  2.58k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (170:8): [True: 2.34k, False: 234]
  ------------------
  171|  2.34k|			{
  172|  2.34k|				return T{};
  173|  2.34k|			}
  174|       |
  175|    234|			T result;
  176|    234|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  177|    234|			return result;
  178|  2.58k|		}
_ZN4pcpp9TLVRecordIhhEC2ERKS1_:
   49|   224k|		{
   50|   224k|			m_Data = other.m_Data;
   51|   224k|		}
_ZNK4pcpp9TLVRecordIhhE14getValueOffsetEv:
  210|  4.72k|		{
  211|  4.72k|			return 0;
  212|  4.72k|		}
_ZN4pcpp9TLVRecordIhhEaSERKS1_:
   78|   411k|		{
   79|   411k|			m_Data = other.m_Data;
   80|   411k|			return *this;
   81|   411k|		}
_ZN4pcpp9TLVRecordIhhE6assignEPh:
   59|  1.26M|		{
   60|  1.26M|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   61|  1.26M|		}
_ZN4pcpp9TLVRecordIhhE9canAssignEPKhm:
   68|   157k|		{
   69|   157k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (69:11): [True: 157k, False: 0]
  ------------------
   70|   157k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (70:11): [True: 155k, False: 2.30k]
  ------------------
   71|   157k|		}
_ZN4pcpp9TLVRecordIttE6assignEPh:
   59|  59.7k|		{
   60|  59.7k|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   61|  59.7k|		}
_ZN4pcpp9TLVRecordIhhEC2EPh:
   41|   713k|		{
   42|   713k|			assign(recordRawData);
   43|   713k|		}
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEED2Ev:
  237|  13.3k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEEC2Ev:
  226|  13.3k|		{
  227|  13.3k|			m_RecordCount = static_cast<size_t>(-1);
  228|  13.3k|		}
_ZNK4pcpp9TLVRecordIhhE6isNullEv:
  129|  1.62M|		{
  130|  1.62M|			return (m_Data == nullptr);
  131|  1.62M|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIhEET_m:
  164|  4.51k|		{
  165|  4.51k|			static_assert(std::is_trivially_copyable<T>::value && std::is_default_constructible<T>::value &&
  166|  4.51k|			                  !std::is_pointer<T>::value,
  167|  4.51k|			              "TLVRecord::getValueAs<T>() requires T to be a non-pointer, "
  168|  4.51k|			              "default-constructible, trivially copyable type");
  169|       |
  170|  4.51k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (170:8): [True: 24, False: 4.48k]
  ------------------
  171|     24|			{
  172|     24|				return T{};
  173|     24|			}
  174|       |
  175|  4.48k|			T result;
  176|  4.48k|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  177|  4.48k|			return result;
  178|  4.51k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE12getTLVRecordEjPhm:
  315|  10.4k|		{
  316|  10.4k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  317|   123k|			while (!curRec.isNull())
  ------------------
  |  Branch (317:11): [True: 118k, False: 5.45k]
  ------------------
  318|   118k|			{
  319|   118k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (319:9): [True: 5.03k, False: 113k]
  ------------------
  320|  5.03k|				{
  321|  5.03k|					return curRec;
  322|  5.03k|				}
  323|       |
  324|   113k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  325|   113k|			}
  326|       |
  327|  5.45k|			curRec.assign(nullptr);
  328|  5.45k|			return curRec;  // for NRVO optimization
  329|  10.4k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getFirstTLVRecordEPhm:
  255|  15.6k|		{
  256|  15.6k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  257|  15.6k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (257:8): [True: 5, False: 15.6k]
  ------------------
  258|      5|				return resRec;
  259|       |
  260|  15.6k|			resRec.assign(tlvDataBasePtr);
  261|       |			// resRec pointer is out-bounds of the TLV records memory
  262|  15.6k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (262:8): [True: 190, False: 15.4k]
  ------------------
  263|    190|				resRec.assign(nullptr);
  264|       |
  265|       |			// check if there are records at all and the total size is not zero
  266|  15.6k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (266:8): [True: 15.4k, False: 190]
  |  Branch (266:29): [True: 0, False: 15.4k]
  |  Branch (266:48): [True: 0, False: 15.4k]
  ------------------
  267|      0|				resRec.assign(nullptr);
  268|       |
  269|  15.6k|			return resRec;
  270|  15.6k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE16getNextTLVRecordERS1_PKhm:
  281|   213k|		{
  282|   213k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  283|       |
  284|   213k|			if (record.isNull())
  ------------------
  |  Branch (284:8): [True: 0, False: 213k]
  ------------------
  285|      0|				return resRec;
  286|       |
  287|   213k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (287:8): [True: 9.04k, False: 204k]
  ------------------
  288|   213k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  289|   213k|			                                  record.getTotalSize()))
  290|  9.04k|				return resRec;
  291|       |
  292|   204k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  293|       |
  294|   204k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (294:8): [True: 0, False: 204k]
  ------------------
  295|      0|				resRec.assign(nullptr);
  296|       |
  297|       |			// resRec pointer is out-bounds of the TLV records memory
  298|   204k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (298:8): [True: 0, False: 204k]
  ------------------
  299|      0|				resRec.assign(nullptr);
  300|       |
  301|       |			// resRec pointer is out-bounds of the TLV records memory
  302|   204k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (302:8): [True: 204k, False: 0]
  |  Branch (302:28): [True: 1.41k, False: 202k]
  ------------------
  303|  1.41k|				resRec.assign(nullptr);
  304|       |
  305|   204k|			return resRec;
  306|   213k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getTLVRecordCountEPhm:
  339|  55.1k|		{
  340|  55.1k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (340:8): [True: 52.5k, False: 2.62k]
  ------------------
  341|  52.5k|				return m_RecordCount;
  342|       |
  343|  2.62k|			m_RecordCount = 0;
  344|  2.62k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  345|  52.5k|			while (!curRec.isNull())
  ------------------
  |  Branch (345:11): [True: 49.9k, False: 2.62k]
  ------------------
  346|  49.9k|			{
  347|  49.9k|				m_RecordCount++;
  348|  49.9k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  349|  49.9k|			}
  350|       |
  351|  2.62k|			return m_RecordCount;
  352|  55.1k|		}
_ZNK4pcpp9TLVRecordIhhE7getTypeEv:
  111|   316k|		{
  112|   316k|			if (m_Data == nullptr)
  ------------------
  |  Branch (112:8): [True: 0, False: 316k]
  ------------------
  113|      0|				return 0;
  114|       |
  115|   316k|			return m_Data->recordType;
  116|   316k|		}
_ZN4pcpp9TLVRecordIhhE15purgeRecordDataEv:
  147|  54.4k|		{
  148|  54.4k|			if (!isNull())
  ------------------
  |  Branch (148:8): [True: 54.4k, False: 0]
  ------------------
  149|  54.4k|			{
  150|  54.4k|				delete[] m_Data;
  151|  54.4k|				m_Data = nullptr;
  152|  54.4k|			}
  153|  54.4k|		}
_ZNK4pcpp9TLVRecordIhhE16getRecordBasePtrEv:
  141|  2.13M|		{
  142|  2.13M|			return reinterpret_cast<uint8_t*>(m_Data);
  143|  2.13M|		}
_ZN4pcpp9TLVRecordIttEC2EPh:
   41|  30.1k|		{
   42|  30.1k|			assign(recordRawData);
   43|  30.1k|		}
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEED2Ev:
  237|  17.2k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEEC2Ev:
  226|  17.2k|		{
  227|  17.2k|			m_RecordCount = static_cast<size_t>(-1);
  228|  17.2k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getFirstTLVRecordEPhm:
  255|  9.70k|		{
  256|  9.70k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  257|  9.70k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (257:8): [True: 1, False: 9.70k]
  ------------------
  258|      1|				return resRec;
  259|       |
  260|  9.70k|			resRec.assign(tlvDataBasePtr);
  261|       |			// resRec pointer is out-bounds of the TLV records memory
  262|  9.70k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (262:8): [True: 138, False: 9.56k]
  ------------------
  263|    138|				resRec.assign(nullptr);
  264|       |
  265|       |			// check if there are records at all and the total size is not zero
  266|  9.70k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (266:8): [True: 9.56k, False: 138]
  |  Branch (266:29): [True: 0, False: 9.56k]
  |  Branch (266:48): [True: 0, False: 9.56k]
  ------------------
  267|      0|				resRec.assign(nullptr);
  268|       |
  269|  9.70k|			return resRec;
  270|  9.70k|		}
_ZN4pcpp9TLVRecordIttE9canAssignEPKhm:
   68|  30.1k|		{
   69|  30.1k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (69:11): [True: 30.1k, False: 0]
  ------------------
   70|  30.1k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (70:11): [True: 24.6k, False: 5.51k]
  ------------------
   71|  30.1k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE16getNextTLVRecordERS1_PKhm:
  281|  20.4k|		{
  282|  20.4k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  283|       |
  284|  20.4k|			if (record.isNull())
  ------------------
  |  Branch (284:8): [True: 0, False: 20.4k]
  ------------------
  285|      0|				return resRec;
  286|       |
  287|  20.4k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (287:8): [True: 5.51k, False: 14.9k]
  ------------------
  288|  20.4k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  289|  20.4k|			                                  record.getTotalSize()))
  290|  5.51k|				return resRec;
  291|       |
  292|  14.9k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  293|       |
  294|  14.9k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (294:8): [True: 0, False: 14.9k]
  ------------------
  295|      0|				resRec.assign(nullptr);
  296|       |
  297|       |			// resRec pointer is out-bounds of the TLV records memory
  298|  14.9k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (298:8): [True: 0, False: 14.9k]
  ------------------
  299|      0|				resRec.assign(nullptr);
  300|       |
  301|       |			// resRec pointer is out-bounds of the TLV records memory
  302|  14.9k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (302:8): [True: 14.9k, False: 0]
  |  Branch (302:28): [True: 2.86k, False: 12.0k]
  ------------------
  303|  2.86k|				resRec.assign(nullptr);
  304|       |
  305|  14.9k|			return resRec;
  306|  20.4k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE12getTLVRecordEjPhm:
  315|  3.18k|		{
  316|  3.18k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  317|  8.49k|			while (!curRec.isNull())
  ------------------
  |  Branch (317:11): [True: 6.49k, False: 2.00k]
  ------------------
  318|  6.49k|			{
  319|  6.49k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (319:9): [True: 1.18k, False: 5.30k]
  ------------------
  320|  1.18k|				{
  321|  1.18k|					return curRec;
  322|  1.18k|				}
  323|       |
  324|  5.30k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  325|  5.30k|			}
  326|       |
  327|  2.00k|			curRec.assign(nullptr);
  328|  2.00k|			return curRec;  // for NRVO optimization
  329|  3.18k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getTLVRecordCountEPhm:
  339|  14.0k|		{
  340|  14.0k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (340:8): [True: 10.7k, False: 3.32k]
  ------------------
  341|  10.7k|				return m_RecordCount;
  342|       |
  343|  3.32k|			m_RecordCount = 0;
  344|  3.32k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  345|  10.8k|			while (!curRec.isNull())
  ------------------
  |  Branch (345:11): [True: 7.55k, False: 3.32k]
  ------------------
  346|  7.55k|			{
  347|  7.55k|				m_RecordCount++;
  348|  7.55k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  349|  7.55k|			}
  350|       |
  351|  3.32k|			return m_RecordCount;
  352|  14.0k|		}
_ZNK4pcpp9TLVRecordIttE6isNullEv:
  129|  64.4k|		{
  130|  64.4k|			return (m_Data == nullptr);
  131|  64.4k|		}
_ZNK4pcpp9TLVRecordIttE16getRecordBasePtrEv:
  141|  95.2k|		{
  142|  95.2k|			return reinterpret_cast<uint8_t*>(m_Data);
  143|  95.2k|		}
_ZN4pcpp15TLVRecordReaderINS_23GtpV2InformationElementEED2Ev:
  237|     24|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_23GtpV2InformationElementEEC2Ev:
  226|     24|		{
  227|     24|			m_RecordCount = static_cast<size_t>(-1);
  228|     24|		}
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEED2Ev:
  237|   895k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEEC2Ev:
  226|   895k|		{
  227|   895k|			m_RecordCount = static_cast<size_t>(-1);
  228|   895k|		}
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEED2Ev:
  237|  16.4k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEEC2Ev:
  226|  1.67k|		{
  227|  1.67k|			m_RecordCount = static_cast<size_t>(-1);
  228|  1.67k|		}
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEED2Ev:
  237|  1.67k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEEC2Ev:
  226|  3.04k|		{
  227|  3.04k|			m_RecordCount = static_cast<size_t>(-1);
  228|  3.04k|		}
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEED2Ev:
  237|  3.04k|		virtual ~TLVRecordReader() = default;
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE12getTLVRecordEjPhm:
  315|  88.3k|		{
  316|  88.3k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  317|   111k|			while (!curRec.isNull())
  ------------------
  |  Branch (317:11): [True: 77.9k, False: 33.8k]
  ------------------
  318|  77.9k|			{
  319|  77.9k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (319:9): [True: 54.4k, False: 23.4k]
  ------------------
  320|  54.4k|				{
  321|  54.4k|					return curRec;
  322|  54.4k|				}
  323|       |
  324|  23.4k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  325|  23.4k|			}
  326|       |
  327|  33.8k|			curRec.assign(nullptr);
  328|  33.8k|			return curRec;  // for NRVO optimization
  329|  88.3k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE17getFirstTLVRecordEPhm:
  255|   142k|		{
  256|   142k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  257|   142k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (257:8): [True: 28.4k, False: 114k]
  ------------------
  258|  28.4k|				return resRec;
  259|       |
  260|   114k|			resRec.assign(tlvDataBasePtr);
  261|       |			// resRec pointer is out-bounds of the TLV records memory
  262|   114k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (262:8): [True: 3.05k, False: 111k]
  ------------------
  263|  3.05k|				resRec.assign(nullptr);
  264|       |
  265|       |			// check if there are records at all and the total size is not zero
  266|   114k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (266:8): [True: 111k, False: 3.05k]
  |  Branch (266:29): [True: 0, False: 111k]
  |  Branch (266:48): [True: 323, False: 111k]
  ------------------
  267|    323|				resRec.assign(nullptr);
  268|       |
  269|   114k|			return resRec;
  270|   142k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE16getNextTLVRecordERS1_PKhm:
  281|   198k|		{
  282|   198k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  283|       |
  284|   198k|			if (record.isNull())
  ------------------
  |  Branch (284:8): [True: 0, False: 198k]
  ------------------
  285|      0|				return resRec;
  286|       |
  287|   198k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (287:8): [True: 43.6k, False: 154k]
  ------------------
  288|   198k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  289|   198k|			                                  record.getTotalSize()))
  290|  43.6k|				return resRec;
  291|       |
  292|   154k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  293|       |
  294|   154k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (294:8): [True: 2.27k, False: 152k]
  ------------------
  295|  2.27k|				resRec.assign(nullptr);
  296|       |
  297|       |			// resRec pointer is out-bounds of the TLV records memory
  298|   154k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (298:8): [True: 2.27k, False: 152k]
  ------------------
  299|  2.27k|				resRec.assign(nullptr);
  300|       |
  301|       |			// resRec pointer is out-bounds of the TLV records memory
  302|   154k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (302:8): [True: 152k, False: 2.27k]
  |  Branch (302:28): [True: 10.5k, False: 141k]
  ------------------
  303|  10.5k|				resRec.assign(nullptr);
  304|       |
  305|   154k|			return resRec;
  306|   198k|		}
_ZNK4pcpp9TLVRecordIhhE9isNotNullEv:
  135|   174k|		{
  136|   174k|			return (m_Data != nullptr);
  137|   174k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEE20changeTLVRecordCountEi:
  360|  54.4k|		{
  361|  54.4k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (361:8): [True: 0, False: 54.4k]
  ------------------
  362|      0|				m_RecordCount += changedBy;
  363|  54.4k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEC2Ev:
  226|   570k|		{
  227|   570k|			m_RecordCount = static_cast<size_t>(-1);
  228|   570k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEaSERKS2_:
  242|  88.3k|		{
  243|  88.3k|			m_RecordCount = other.m_RecordCount;
  244|  88.3k|			return *this;
  245|  88.3k|		}
_ZN4pcpp15TLVRecordReaderINS_15RadiusAttributeEEC2Ev:
  226|  10.7k|		{
  227|  10.7k|			m_RecordCount = static_cast<size_t>(-1);
  228|  10.7k|		}
_ZN4pcpp15TLVRecordReaderINS_15RadiusAttributeEED2Ev:
  237|  10.7k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_9NdpOptionEEC2Ev:
  226|  1.24k|		{
  227|  1.24k|			m_RecordCount = static_cast<size_t>(-1);
  228|  1.24k|		}
_ZN4pcpp15TLVRecordReaderINS_9NdpOptionEED2Ev:
  237|  1.24k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEEC2Ev:
  226|  16.4k|		{
  227|  16.4k|			m_RecordCount = static_cast<size_t>(-1);
  228|  16.4k|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE17getFirstTLVRecordEPhm:
  255|    620|		{
  256|    620|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  257|    620|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (257:8): [True: 620, False: 0]
  ------------------
  258|    620|				return resRec;
  259|       |
  260|      0|			resRec.assign(tlvDataBasePtr);
  261|       |			// resRec pointer is out-bounds of the TLV records memory
  262|      0|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (262:8): [True: 0, False: 0]
  ------------------
  263|      0|				resRec.assign(nullptr);
  264|       |
  265|       |			// check if there are records at all and the total size is not zero
  266|      0|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (266:8): [True: 0, False: 0]
  |  Branch (266:29): [True: 0, False: 0]
  |  Branch (266:48): [True: 0, False: 0]
  ------------------
  267|      0|				resRec.assign(nullptr);
  268|       |
  269|      0|			return resRec;
  270|    620|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE12getTLVRecordEjPhm:
  315|    620|		{
  316|    620|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  317|    620|			while (!curRec.isNull())
  ------------------
  |  Branch (317:11): [True: 0, False: 620]
  ------------------
  318|      0|			{
  319|      0|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (319:9): [True: 0, False: 0]
  ------------------
  320|      0|				{
  321|      0|					return curRec;
  322|      0|				}
  323|       |
  324|      0|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  325|      0|			}
  326|       |
  327|    620|			curRec.assign(nullptr);
  328|    620|			return curRec;  // for NRVO optimization
  329|    620|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE12getTLVRecordEjPhm:
  315|  1.64k|		{
  316|  1.64k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  317|  2.85k|			while (!curRec.isNull())
  ------------------
  |  Branch (317:11): [True: 1.21k, False: 1.64k]
  ------------------
  318|  1.21k|			{
  319|  1.21k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (319:9): [True: 0, False: 1.21k]
  ------------------
  320|      0|				{
  321|      0|					return curRec;
  322|      0|				}
  323|       |
  324|  1.21k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  325|  1.21k|			}
  326|       |
  327|  1.64k|			curRec.assign(nullptr);
  328|  1.64k|			return curRec;  // for NRVO optimization
  329|  1.64k|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE17getFirstTLVRecordEPhm:
  255|  2.47k|		{
  256|  2.47k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  257|  2.47k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (257:8): [True: 16, False: 2.46k]
  ------------------
  258|     16|				return resRec;
  259|       |
  260|  2.46k|			resRec.assign(tlvDataBasePtr);
  261|       |			// resRec pointer is out-bounds of the TLV records memory
  262|  2.46k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (262:8): [True: 681, False: 1.77k]
  ------------------
  263|    681|				resRec.assign(nullptr);
  264|       |
  265|       |			// check if there are records at all and the total size is not zero
  266|  2.46k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (266:8): [True: 1.77k, False: 681]
  |  Branch (266:29): [True: 0, False: 1.77k]
  |  Branch (266:48): [True: 675, False: 1.10k]
  ------------------
  267|    675|				resRec.assign(nullptr);
  268|       |
  269|  2.46k|			return resRec;
  270|  2.47k|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE16getNextTLVRecordERS1_PKhm:
  281|  1.82k|		{
  282|  1.82k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  283|       |
  284|  1.82k|			if (record.isNull())
  ------------------
  |  Branch (284:8): [True: 0, False: 1.82k]
  ------------------
  285|      0|				return resRec;
  286|       |
  287|  1.82k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (287:8): [True: 0, False: 1.82k]
  ------------------
  288|  1.82k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  289|  1.82k|			                                  record.getTotalSize()))
  290|      0|				return resRec;
  291|       |
  292|  1.82k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  293|       |
  294|  1.82k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (294:8): [True: 48, False: 1.77k]
  ------------------
  295|     48|				resRec.assign(nullptr);
  296|       |
  297|       |			// resRec pointer is out-bounds of the TLV records memory
  298|  1.82k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (298:8): [True: 48, False: 1.77k]
  ------------------
  299|     48|				resRec.assign(nullptr);
  300|       |
  301|       |			// resRec pointer is out-bounds of the TLV records memory
  302|  1.82k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (302:8): [True: 1.77k, False: 48]
  |  Branch (302:28): [True: 1.05k, False: 720]
  ------------------
  303|  1.05k|				resRec.assign(nullptr);
  304|       |
  305|  1.82k|			return resRec;
  306|  1.82k|		}

_ZN4pcpp8TcpLayerD2Ev:
  459|   570k|		~TcpLayer() override = default;
_ZN4pcpp9TcpOptionC2EPh:
  257|   484k|		explicit TcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  258|   484k|		{}
_ZN4pcpp9TcpOption9canAssignEPKhm:
  282|   341k|		{
  283|   341k|			const auto* data = reinterpret_cast<const TLVRawData*>(recordRawData);
  284|   341k|			if (data == nullptr)
  ------------------
  |  Branch (284:8): [True: 0, False: 341k]
  ------------------
  285|      0|				return false;
  286|       |
  287|   341k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (287:8): [True: 71.6k, False: 269k]
  ------------------
  288|  71.6k|				return false;
  289|       |
  290|   269k|			const auto recordType = getTcpOptionEnumType(data);
  291|   269k|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (291:8): [True: 155k, False: 114k]
  |  Branch (291:48): [True: 14.1k, False: 100k]
  ------------------
  292|   169k|				return true;
  293|       |
  294|   100k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  295|   269k|		}
_ZNK4pcpp9TcpOption12getTotalSizeEv:
  300|  1.47M|		{
  301|  1.47M|			if (m_Data == nullptr)
  ------------------
  |  Branch (301:8): [True: 0, False: 1.47M]
  ------------------
  302|      0|				return 0;
  303|       |
  304|  1.47M|			const auto recordType = getTcpOptionEnumType(m_Data);
  305|  1.47M|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (305:8): [True: 931k, False: 545k]
  |  Branch (305:48): [True: 80.6k, False: 464k]
  ------------------
  306|  1.01M|				return sizeof(uint8_t);
  307|       |
  308|   464k|			return static_cast<size_t>(m_Data->recordLen);
  309|  1.47M|		}
_ZN4pcpp9TcpOption20getTcpOptionEnumTypeEPKNS_9TLVRecordIhhE10TLVRawDataE:
  333|  1.74M|		{
  334|  1.74M|			if (optionRawData == nullptr)
  ------------------
  |  Branch (334:8): [True: 0, False: 1.74M]
  ------------------
  335|      0|				return TcpOptionEnumType::Unknown;
  336|       |
  337|  1.74M|			return static_cast<TcpOptionEnumType>(optionRawData->recordType);
  338|  1.74M|		}
_ZNK4pcpp8TcpLayer12getTcpHeaderEv:
  472|  2.72M|		{
  473|  2.72M|			return reinterpret_cast<tcphdr*>(m_Data);
  474|  2.72M|		}
_ZNK4pcpp8TcpLayer12getHeaderLenEv:
  566|  1.15M|		{
  567|  1.15M|			return getTcpHeader()->dataOffset * 4;
  568|  1.15M|		}
_ZNK4pcpp8TcpLayer16getOsiModelLayerEv:
  576|  88.3k|		{
  577|  88.3k|			return OsiModelTransportLayer;
  578|  88.3k|		}
_ZNK4pcpp8TcpLayer17getOptionsBasePtrEv:
  586|   317k|		{
  587|   317k|			return m_Data + sizeof(tcphdr);
  588|   317k|		}
_ZN4pcpp8TcpLayer11isDataValidEPKhm:
  597|   492k|	{
  598|   492k|		const tcphdr* hdr = reinterpret_cast<const tcphdr*>(data);
  599|   492k|		return dataLen >= sizeof(tcphdr) && hdr->dataOffset >= 5 /* the minimum TCP header size */
  ------------------
  |  Branch (599:10): [True: 492k, False: 291]
  |  Branch (599:39): [True: 490k, False: 1.72k]
  ------------------
  600|   490k|		       && dataLen >= hdr->dataOffset * sizeof(uint32_t);
  ------------------
  |  Branch (600:13): [True: 482k, False: 8.22k]
  ------------------
  601|   492k|	}

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

_ZNK4pcpp11HeaderField12getFieldSizeEv:
   49|  3.47M|		{
   50|  3.47M|			return m_FieldSize;
   51|  3.47M|		}
_ZNK4pcpp11HeaderField13isEndOfHeaderEv:
   70|  1.31M|		{
   71|  1.31M|			return m_IsEndOfHeaderField;
   72|  1.31M|		}
_ZNK4pcpp24TextBasedProtocolMessage13getFirstFieldEv:
  123|  4.37k|		{
  124|  4.37k|			return m_FieldList;
  125|  4.37k|		}

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

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

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

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

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

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

_ZN4pcpp14WireGuardLayer16isWireGuardPortsEtt:
   68|  45.9k|		{
   69|  45.9k|			return (portSrc == 51820 || portDst == 51820);
  ------------------
  |  Branch (69:12): [True: 837, False: 45.1k]
  |  Branch (69:32): [True: 965, False: 44.1k]
  ------------------
   70|  45.9k|		}
_ZNK4pcpp14WireGuardLayer14getBasicHeaderEv:
   32|    720|		{
   33|    720|			return reinterpret_cast<wg_common_header*>(m_Data);
   34|    720|		}
_ZN4pcpp14WireGuardLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   60|  1.80k|		    : Layer(data, dataLen, prevLayer, packet, WireGuard)
   61|  1.80k|		{}
_ZN4pcpp14WireGuardLayer14parseNextLayerEv:
  100|  1.80k|		{}
_ZN4pcpp14WireGuardLayer22computeCalculateFieldsEv:
  107|    360|		{}
_ZNK4pcpp14WireGuardLayer16getOsiModelLayerEv:
  115|    360|		{
  116|    360|			return OsiModelNetworkLayer;
  117|    360|		}
_ZN4pcpp33WireGuardHandshakeInitiationLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  162|    341|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  163|    341|		{}
_ZN4pcpp31WireGuardHandshakeResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  259|    325|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  260|    325|		{}
_ZN4pcpp25WireGuardCookieReplyLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  349|     10|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  350|     10|		{}
_ZN4pcpp27WireGuardTransportDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  416|  1.12k|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  417|  1.12k|		{}

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

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

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

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

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

_ZN4pcpp9DhcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   45|  13.3k|	    : Layer(data, dataLen, prevLayer, packet, DHCP)
   46|  13.3k|	{}
_ZNK4pcpp9DhcpLayer24getClientHardwareAddressEv:
   74|  2.62k|	{
   75|  2.62k|		dhcp_header* hdr = getDhcpHeader();
   76|  2.62k|		if (hdr != nullptr && hdr->hardwareType == 1 && hdr->hardwareAddressLength == 6)
  ------------------
  |  Branch (76:7): [True: 2.62k, False: 0]
  |  Branch (76:25): [True: 2.41k, False: 211]
  |  Branch (76:51): [True: 2.38k, False: 27]
  ------------------
   77|  2.38k|			return MacAddress(hdr->clientHardwareAddress);
   78|       |
   79|    238|		PCPP_LOG_DEBUG("Hardware type isn't Ethernet or hardware addr len != 6, returning MacAddress:Zero");
  ------------------
  |  |  425|    238|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    238|	do                                                                                                                 \
  |  |  |  |  413|    238|	{                                                                                                                  \
  |  |  |  |  414|    238|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    238|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    238|#define LOG_MODULE PacketLogModuleDhcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 238]
  |  |  |  |  ------------------
  |  |  |  |  416|    238|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDhcpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|    238|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 238]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   80|       |
   81|    238|		return MacAddress::Zero;
   82|  2.62k|	}
_ZN4pcpp9DhcpLayer22computeCalculateFieldsEv:
   93|  2.62k|	{
   94|  2.62k|		dhcp_header* hdr = getDhcpHeader();
   95|       |
   96|  2.62k|		hdr->magicNumber = DhcpMagicNumber;
   97|       |
   98|  2.62k|		DhcpMessageType msgType = getMessageType();
   99|  2.62k|		switch (msgType)
  100|  2.62k|		{
  101|     23|		case DHCP_DISCOVER:
  ------------------
  |  Branch (101:3): [True: 23, False: 2.59k]
  ------------------
  102|    760|		case DHCP_REQUEST:
  ------------------
  |  Branch (102:3): [True: 737, False: 1.88k]
  ------------------
  103|  1.00k|		case DHCP_DECLINE:
  ------------------
  |  Branch (103:3): [True: 240, False: 2.38k]
  ------------------
  104|  1.00k|		case DHCP_RELEASE:
  ------------------
  |  Branch (104:3): [True: 6, False: 2.61k]
  ------------------
  105|  1.01k|		case DHCP_INFORM:
  ------------------
  |  Branch (105:3): [True: 12, False: 2.61k]
  ------------------
  106|  2.14k|		case DHCP_UNKNOWN_MSG_TYPE:
  ------------------
  |  Branch (106:3): [True: 1.12k, False: 1.49k]
  ------------------
  107|  2.14k|			hdr->opCode = DHCP_BOOTREQUEST;
  108|  2.14k|			break;
  109|      1|		case DHCP_OFFER:
  ------------------
  |  Branch (109:3): [True: 1, False: 2.62k]
  ------------------
  110|    445|		case DHCP_ACK:
  ------------------
  |  Branch (110:3): [True: 444, False: 2.17k]
  ------------------
  111|    446|		case DHCP_NAK:
  ------------------
  |  Branch (111:3): [True: 1, False: 2.62k]
  ------------------
  112|    446|			hdr->opCode = DHCP_BOOTREPLY;
  113|    446|			break;
  114|     32|		default:
  ------------------
  |  Branch (114:3): [True: 32, False: 2.59k]
  ------------------
  115|     32|			break;
  116|  2.62k|		}
  117|       |
  118|  2.62k|		hdr->hardwareType = 1;           // Ethernet
  119|  2.62k|		hdr->hardwareAddressLength = 6;  // MAC address length
  120|  2.62k|	}
_ZNK4pcpp9DhcpLayer8toStringEv:
  123|  5.24k|	{
  124|  5.24k|		std::string msgType = "Unknown";
  125|  5.24k|		switch (getMessageType())
  126|  5.24k|		{
  127|     46|		case DHCP_DISCOVER:
  ------------------
  |  Branch (127:3): [True: 46, False: 5.19k]
  ------------------
  128|     46|		{
  129|     46|			msgType = "Discover";
  130|     46|			break;
  131|      0|		}
  132|      2|		case DHCP_OFFER:
  ------------------
  |  Branch (132:3): [True: 2, False: 5.24k]
  ------------------
  133|      2|		{
  134|      2|			msgType = "Offer";
  135|      2|			break;
  136|      0|		}
  137|  1.47k|		case DHCP_REQUEST:
  ------------------
  |  Branch (137:3): [True: 1.47k, False: 3.77k]
  ------------------
  138|  1.47k|		{
  139|  1.47k|			msgType = "Request";
  140|  1.47k|			break;
  141|      0|		}
  142|    480|		case DHCP_DECLINE:
  ------------------
  |  Branch (142:3): [True: 480, False: 4.76k]
  ------------------
  143|    480|		{
  144|    480|			msgType = "Decline";
  145|    480|			break;
  146|      0|		}
  147|    888|		case DHCP_ACK:
  ------------------
  |  Branch (147:3): [True: 888, False: 4.35k]
  ------------------
  148|    888|		{
  149|    888|			msgType = "Acknowledge";
  150|    888|			break;
  151|      0|		}
  152|      2|		case DHCP_NAK:
  ------------------
  |  Branch (152:3): [True: 2, False: 5.24k]
  ------------------
  153|      2|		{
  154|      2|			msgType = "Negative Acknowledge";
  155|      2|			break;
  156|      0|		}
  157|     12|		case DHCP_RELEASE:
  ------------------
  |  Branch (157:3): [True: 12, False: 5.23k]
  ------------------
  158|     12|		{
  159|     12|			msgType = "Release";
  160|     12|			break;
  161|      0|		}
  162|     24|		case DHCP_INFORM:
  ------------------
  |  Branch (162:3): [True: 24, False: 5.22k]
  ------------------
  163|     24|		{
  164|     24|			msgType = "Inform";
  165|     24|			break;
  166|      0|		}
  167|  2.31k|		default:
  ------------------
  |  Branch (167:3): [True: 2.31k, False: 2.92k]
  ------------------
  168|  2.31k|			break;
  169|  5.24k|		}
  170|       |
  171|  5.24k|		return "DHCP layer (" + msgType + ")";
  172|  5.24k|	}
_ZNK4pcpp9DhcpLayer14getMessageTypeEv:
  175|  7.86k|	{
  176|  7.86k|		DhcpOption opt = getOptionData(DHCPOPT_DHCP_MESSAGE_TYPE);
  177|  7.86k|		if (opt.isNull())
  ------------------
  |  Branch (177:7): [True: 3.35k, False: 4.51k]
  ------------------
  178|  3.35k|			return DHCP_UNKNOWN_MSG_TYPE;
  179|       |
  180|  4.51k|		return (DhcpMessageType)opt.getValueAs<uint8_t>();
  181|  7.86k|	}
_ZNK4pcpp9DhcpLayer13getOptionDataENS_15DhcpOptionTypesE:
  201|  10.4k|	{
  202|  10.4k|		return m_OptionReader.getTLVRecord((uint8_t)option, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  203|  10.4k|	}
_ZNK4pcpp9DhcpLayer18getFirstOptionDataEv:
  206|  2.58k|	{
  207|  2.58k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  208|  2.58k|	}
_ZNK4pcpp9DhcpLayer17getNextOptionDataENS_10DhcpOptionE:
  211|  49.9k|	{
  212|  49.9k|		return m_OptionReader.getNextTLVRecord(dhcpOption, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  213|  49.9k|	}
_ZNK4pcpp9DhcpLayer15getOptionsCountEv:
  216|  55.1k|	{
  217|  55.1k|		return m_OptionReader.getTLVRecordCount(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  218|  55.1k|	}

_ZNK4pcpp12DhcpV6Option7getTypeEv:
   12|  9.68k|	{
   13|  9.68k|		if (m_Data == nullptr)
  ------------------
  |  Branch (13:7): [True: 0, False: 9.68k]
  ------------------
   14|      0|			return DhcpV6OptionType::DHCPV6_OPT_UNKNOWN;
   15|       |
   16|  9.68k|		uint16_t optionType = be16toh(m_Data->recordType);
   17|  9.68k|		if (optionType <= 62 && optionType != 10 && optionType != 35 && optionType != 57 && optionType != 58)
  ------------------
  |  Branch (17:7): [True: 7.11k, False: 2.57k]
  |  Branch (17:27): [True: 6.53k, False: 580]
  |  Branch (17:47): [True: 6.47k, False: 58]
  |  Branch (17:67): [True: 6.33k, False: 138]
  |  Branch (17:87): [True: 6.05k, False: 284]
  ------------------
   18|  6.05k|		{
   19|  6.05k|			return static_cast<DhcpV6OptionType>(optionType);
   20|  6.05k|		}
   21|  3.63k|		if (optionType == 65 || optionType == 66 || optionType == 68 || optionType == 79 || optionType == 112)
  ------------------
  |  Branch (21:7): [True: 1.25k, False: 2.37k]
  |  Branch (21:27): [True: 0, False: 2.37k]
  |  Branch (21:47): [True: 50, False: 2.32k]
  |  Branch (21:67): [True: 0, False: 2.32k]
  |  Branch (21:87): [True: 0, False: 2.32k]
  ------------------
   22|  1.30k|		{
   23|  1.30k|			return static_cast<DhcpV6OptionType>(optionType);
   24|  1.30k|		}
   25|       |
   26|  2.32k|		return DHCPV6_OPT_UNKNOWN;
   27|  3.63k|	}
_ZNK4pcpp12DhcpV6Option19getValueAsHexStringEv:
   30|  3.18k|	{
   31|  3.18k|		if (m_Data == nullptr)
  ------------------
  |  Branch (31:7): [True: 0, False: 3.18k]
  ------------------
   32|      0|			return "";
   33|       |
   34|  3.18k|		return byteArrayToHexString(m_Data->recordValue, getDataSize());
   35|  3.18k|	}
_ZNK4pcpp12DhcpV6Option12getTotalSizeEv:
   38|   108k|	{
   39|   108k|		if (m_Data == nullptr)
  ------------------
  |  Branch (39:7): [True: 0, False: 108k]
  ------------------
   40|      0|			return 0;
   41|       |
   42|   108k|		return 2 * sizeof(uint16_t) + be16toh(m_Data->recordLen);
   43|   108k|	}
_ZNK4pcpp12DhcpV6Option11getDataSizeEv:
   46|  3.18k|	{
   47|  3.18k|		if (m_Data == nullptr)
  ------------------
  |  Branch (47:7): [True: 0, False: 3.18k]
  ------------------
   48|      0|			return 0;
   49|       |
   50|  3.18k|		return static_cast<size_t>(be16toh(m_Data->recordLen));
   51|  3.18k|	}
_ZN4pcpp11DhcpV6LayerC2EPhmPNS_5LayerEPNS_6PacketE:
   71|  17.2k|	    : Layer(data, dataLen, prevLayer, packet, DHCPv6)
   72|  17.2k|	{}
_ZNK4pcpp11DhcpV6Layer14getMessageTypeEv:
   84|  6.65k|	{
   85|  6.65k|		uint8_t messageType = getDhcpHeader()->messageType;
   86|  6.65k|		if (messageType > 13)
  ------------------
  |  Branch (86:7): [True: 884, False: 5.77k]
  ------------------
   87|    884|		{
   88|    884|			return DHCPV6_UNKNOWN_MSG_TYPE;
   89|    884|		}
   90|       |
   91|  5.77k|		return static_cast<DhcpV6MessageType>(messageType);
   92|  6.65k|	}
_ZNK4pcpp11DhcpV6Layer22getMessageTypeAsStringEv:
   95|  6.65k|	{
   96|  6.65k|		DhcpV6MessageType messageType = getMessageType();
   97|  6.65k|		switch (messageType)
   98|  6.65k|		{
   99|     32|		case DHCPV6_SOLICIT:
  ------------------
  |  Branch (99:3): [True: 32, False: 6.62k]
  ------------------
  100|     32|			return "Solicit";
  101|      0|		case DHCPV6_ADVERTISE:
  ------------------
  |  Branch (101:3): [True: 0, False: 6.65k]
  ------------------
  102|      0|			return "Advertise";
  103|     74|		case DHCPV6_REQUEST:
  ------------------
  |  Branch (103:3): [True: 74, False: 6.58k]
  ------------------
  104|     74|			return "Request";
  105|      0|		case DHCPV6_CONFIRM:
  ------------------
  |  Branch (105:3): [True: 0, False: 6.65k]
  ------------------
  106|      0|			return "Confirm";
  107|    222|		case DHCPV6_RENEW:
  ------------------
  |  Branch (107:3): [True: 222, False: 6.43k]
  ------------------
  108|    222|			return "Renew";
  109|     32|		case DHCPV6_REBIND:
  ------------------
  |  Branch (109:3): [True: 32, False: 6.62k]
  ------------------
  110|     32|			return "Rebind";
  111|    800|		case DHCPV6_REPLY:
  ------------------
  |  Branch (111:3): [True: 800, False: 5.85k]
  ------------------
  112|    800|			return "Reply";
  113|     32|		case DHCPV6_RELEASE:
  ------------------
  |  Branch (113:3): [True: 32, False: 6.62k]
  ------------------
  114|     32|			return "Release";
  115|      0|		case DHCPV6_DECLINE:
  ------------------
  |  Branch (115:3): [True: 0, False: 6.65k]
  ------------------
  116|      0|			return "Decline";
  117|    782|		case DHCPV6_RECONFIGURE:
  ------------------
  |  Branch (117:3): [True: 782, False: 5.87k]
  ------------------
  118|    782|			return "Reconfigure";
  119|  2.84k|		case DHCPV6_INFORMATION_REQUEST:
  ------------------
  |  Branch (119:3): [True: 2.84k, False: 3.81k]
  ------------------
  120|  2.84k|			return "Information-Request";
  121|     70|		case DHCPV6_RELAY_FORWARD:
  ------------------
  |  Branch (121:3): [True: 70, False: 6.58k]
  ------------------
  122|     70|			return "Relay-Forward";
  123|    102|		case DHCPV6_RELAY_REPLY:
  ------------------
  |  Branch (123:3): [True: 102, False: 6.55k]
  ------------------
  124|    102|			return "Relay-Reply";
  125|  1.66k|		default:
  ------------------
  |  Branch (125:3): [True: 1.66k, False: 4.98k]
  ------------------
  126|  1.66k|			return "Unknown";
  127|  6.65k|		}
  128|  6.65k|	}
_ZNK4pcpp11DhcpV6Layer16getTransactionIDEv:
  136|  3.32k|	{
  137|  3.32k|		dhcpv6_header* hdr = getDhcpHeader();
  138|  3.32k|		uint32_t result = hdr->transactionId1 << 16 | hdr->transactionId2 << 8 | hdr->transactionId3;
  139|  3.32k|		return result;
  140|  3.32k|	}
_ZNK4pcpp11DhcpV6Layer18getFirstOptionDataEv:
  151|  3.18k|	{
  152|  3.18k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcpv6_header));
  153|  3.18k|	}
_ZNK4pcpp11DhcpV6Layer17getNextOptionDataENS_12DhcpV6OptionE:
  156|  7.55k|	{
  157|  7.55k|		return m_OptionReader.getNextTLVRecord(dhcpv6Option, getOptionsBasePtr(),
  158|  7.55k|		                                       getHeaderLen() - sizeof(dhcpv6_header));
  159|  7.55k|	}
_ZNK4pcpp11DhcpV6Layer13getOptionDataENS_16DhcpV6OptionTypeE:
  162|  3.18k|	{
  163|  3.18k|		return m_OptionReader.getTLVRecord(static_cast<uint32_t>(option), getOptionsBasePtr(),
  164|  3.18k|		                                   getHeaderLen() - sizeof(dhcpv6_header));
  165|  3.18k|	}
_ZNK4pcpp11DhcpV6Layer14getOptionCountEv:
  168|  14.0k|	{
  169|  14.0k|		return m_OptionReader.getTLVRecordCount(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcpv6_header));
  170|  14.0k|	}
_ZNK4pcpp11DhcpV6Layer8toStringEv:
  268|  6.65k|	{
  269|  6.65k|		return "DHCPv6 Layer, " + getMessageTypeAsString() + " message";
  270|  6.65k|	}

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

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

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

_ZN4pcpp9DoIpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  199|  59.0k|	    : Layer(data, dataLen, prevLayer, packet, DOIP)
  200|  59.0k|	{}
_ZN4pcpp9DoIpLayer11isDataValidEPhm:
  203|  70.2k|	{
  204|  70.2k|		if (data == nullptr || dataLen < DOIP_HEADER_LEN)
  ------------------
  |  Branch (204:7): [True: 0, False: 70.2k]
  |  Branch (204:26): [True: 786, False: 69.4k]
  ------------------
  205|    786|			return false;
  206|       |
  207|  69.4k|		auto* doipHeader = reinterpret_cast<doiphdr*>(data);
  208|  69.4k|		const uint8_t version = doipHeader->protocolVersion;
  209|  69.4k|		const uint8_t inVersion = doipHeader->invertProtocolVersion;
  210|  69.4k|		const uint16_t payloadTypeRaw = doipHeader->payloadType;
  211|  69.4k|		const uint32_t lengthRaw = doipHeader->payloadLength;
  212|       |
  213|  69.4k|		if (!isPayloadTypeValid(be16toh(payloadTypeRaw)))
  ------------------
  |  Branch (213:7): [True: 3.25k, False: 66.2k]
  ------------------
  214|  3.25k|			return false;
  215|       |		// if payload type is validated, we ensure passing a valid type to isProtocolVersionValid()
  216|  66.2k|		const DoIpPayloadTypes payloadType = static_cast<DoIpPayloadTypes>(be16toh(payloadTypeRaw));
  217|  66.2k|		if (!isProtocolVersionValid(version, inVersion, payloadType))
  ------------------
  |  Branch (217:7): [True: 2.08k, False: 64.1k]
  ------------------
  218|  2.08k|			return false;
  219|       |
  220|  64.1k|		if (!isPayloadLengthValid(be32toh(lengthRaw), dataLen))
  ------------------
  |  Branch (220:7): [True: 4.76k, False: 59.3k]
  ------------------
  221|  4.76k|			return false;
  222|       |
  223|  59.3k|		return true;
  224|  64.1k|	}
_ZN4pcpp9DoIpLayer14parseDoIpLayerEPhmPNS_5LayerEPNS_6PacketE:
  227|  59.3k|	{
  228|  59.3k|		doiphdr* doipHeader = reinterpret_cast<doiphdr*>(data);
  229|  59.3k|		uint16_t payloadType = doipHeader->payloadType;
  230|  59.3k|		DoIpPayloadTypes detectedPayloadType = static_cast<DoIpPayloadTypes>(be16toh(payloadType));
  231|       |
  232|  59.3k|		switch (detectedPayloadType)
  233|  59.3k|		{
  234|  7.66k|		case DoIpPayloadTypes::GENERIC_HEADER_NACK:
  ------------------
  |  Branch (234:3): [True: 7.66k, False: 51.7k]
  ------------------
  235|  7.66k|			return (DoIpGenericHeaderNack::isDataLenValid(dataLen))
  ------------------
  |  Branch (235:11): [True: 7.66k, False: 0]
  ------------------
  236|  7.66k|			           ? new DoIpGenericHeaderNack(data, dataLen, prevLayer, packet)
  237|  7.66k|			           : nullptr;
  238|  4.83k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST:
  ------------------
  |  Branch (238:3): [True: 4.83k, False: 54.5k]
  ------------------
  239|  4.83k|			return (DoIpVehicleIdentificationRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (239:11): [True: 4.83k, False: 0]
  ------------------
  240|  4.83k|			           ? new DoIpVehicleIdentificationRequest(data, dataLen, prevLayer, packet)
  241|  4.83k|			           : nullptr;
  242|  1.90k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID:
  ------------------
  |  Branch (242:3): [True: 1.90k, False: 57.4k]
  ------------------
  243|  1.90k|			return (DoIpVehicleIdentificationRequestWithEID::isDataLenValid(dataLen))
  ------------------
  |  Branch (243:11): [True: 1.88k, False: 18]
  ------------------
  244|  1.90k|			           ? new DoIpVehicleIdentificationRequestWithEID(data, dataLen, prevLayer, packet)
  245|  1.90k|			           : nullptr;
  246|  3.04k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN:
  ------------------
  |  Branch (246:3): [True: 3.04k, False: 56.3k]
  ------------------
  247|  3.04k|			return (DoIpVehicleIdentificationRequestWithVIN::isDataLenValid(dataLen))
  ------------------
  |  Branch (247:11): [True: 3.01k, False: 35]
  ------------------
  248|  3.04k|			           ? new DoIpVehicleIdentificationRequestWithVIN(data, dataLen, prevLayer, packet)
  249|  3.04k|			           : nullptr;
  250|  2.11k|		case DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE:
  ------------------
  |  Branch (250:3): [True: 2.11k, False: 57.2k]
  ------------------
  251|  2.11k|			return (DoIpVehicleAnnouncementMessage::isDataLenValid(dataLen))
  ------------------
  |  Branch (251:11): [True: 2.11k, False: 0]
  ------------------
  252|  2.11k|			           ? new DoIpVehicleAnnouncementMessage(data, dataLen, prevLayer, packet)
  253|  2.11k|			           : nullptr;
  254|  2.38k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST:
  ------------------
  |  Branch (254:3): [True: 2.38k, False: 56.9k]
  ------------------
  255|  2.38k|			return (DoIpRoutingActivationRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (255:11): [True: 2.38k, False: 0]
  ------------------
  256|  2.38k|			           ? new DoIpRoutingActivationRequest(data, dataLen, prevLayer, packet)
  257|  2.38k|			           : nullptr;
  258|  2.02k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE:
  ------------------
  |  Branch (258:3): [True: 2.02k, False: 57.3k]
  ------------------
  259|  2.02k|			return (DoIpRoutingActivationResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (259:11): [True: 1.95k, False: 66]
  ------------------
  260|  2.02k|			           ? new DoIpRoutingActivationResponse(data, dataLen, prevLayer, packet)
  261|  2.02k|			           : nullptr;
  262|  6.43k|		case DoIpPayloadTypes::ALIVE_CHECK_REQUEST:
  ------------------
  |  Branch (262:3): [True: 6.43k, False: 52.9k]
  ------------------
  263|  6.43k|			return (DoIpAliveCheckRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (263:11): [True: 6.43k, False: 0]
  ------------------
  264|  6.43k|			           ? new DoIpAliveCheckRequest(data, dataLen, prevLayer, packet)
  265|  6.43k|			           : nullptr;
  266|  3.07k|		case DoIpPayloadTypes::ALIVE_CHECK_RESPONSE:
  ------------------
  |  Branch (266:3): [True: 3.07k, False: 56.2k]
  ------------------
  267|  3.07k|			return (DoIpAliveCheckResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (267:11): [True: 3.07k, False: 0]
  ------------------
  268|  3.07k|			           ? new DoIpAliveCheckResponse(data, dataLen, prevLayer, packet)
  269|  3.07k|			           : nullptr;
  270|  6.26k|		case DoIpPayloadTypes::ENTITY_STATUS_REQUEST:
  ------------------
  |  Branch (270:3): [True: 6.26k, False: 53.1k]
  ------------------
  271|  6.26k|			return (DoIpEntityStatusRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (271:11): [True: 6.13k, False: 132]
  ------------------
  272|  6.26k|			           ? new DoIpEntityStatusRequest(data, dataLen, prevLayer, packet)
  273|  6.26k|			           : nullptr;
  274|  5.97k|		case DoIpPayloadTypes::ENTITY_STATUS_RESPONSE:
  ------------------
  |  Branch (274:3): [True: 5.97k, False: 53.3k]
  ------------------
  275|  5.97k|			return (DoIpEntityStatusResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (275:11): [True: 5.97k, False: 0]
  ------------------
  276|  5.97k|			           ? new DoIpEntityStatusResponse(data, dataLen, prevLayer, packet)
  277|  5.97k|			           : nullptr;
  278|  2.79k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST:
  ------------------
  |  Branch (278:3): [True: 2.79k, False: 56.5k]
  ------------------
  279|  2.79k|			return (DoIpDiagnosticPowerModeRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (279:11): [True: 2.76k, False: 30]
  ------------------
  280|  2.79k|			           ? new DoIpDiagnosticPowerModeRequest(data, dataLen, prevLayer, packet)
  281|  2.79k|			           : nullptr;
  282|  1.63k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE:
  ------------------
  |  Branch (282:3): [True: 1.63k, False: 57.7k]
  ------------------
  283|  1.63k|			return (DoIpDiagnosticPowerModeResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (283:11): [True: 1.63k, False: 0]
  ------------------
  284|  1.63k|			           ? new DoIpDiagnosticPowerModeResponse(data, dataLen, prevLayer, packet)
  285|  1.63k|			           : nullptr;
  286|  7.77k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE:
  ------------------
  |  Branch (286:3): [True: 7.77k, False: 51.5k]
  ------------------
  287|  7.77k|			return (DoIpDiagnosticMessage::isDataLenValid(dataLen))
  ------------------
  |  Branch (287:11): [True: 7.77k, False: 0]
  ------------------
  288|  7.77k|			           ? new DoIpDiagnosticMessage(data, dataLen, prevLayer, packet)
  289|  7.77k|			           : nullptr;
  290|    540|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK:
  ------------------
  |  Branch (290:3): [True: 540, False: 58.8k]
  ------------------
  291|    540|			return (DoIpDiagnosticMessageAck::isDataLenValid(dataLen))
  ------------------
  |  Branch (291:11): [True: 540, False: 0]
  ------------------
  292|    540|			           ? new DoIpDiagnosticMessageAck(data, dataLen, prevLayer, packet)
  293|    540|			           : nullptr;
  294|    912|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK:
  ------------------
  |  Branch (294:3): [True: 912, False: 58.4k]
  ------------------
  295|    912|			return (DoIpDiagnosticMessageNack::isDataLenValid(dataLen))
  ------------------
  |  Branch (295:11): [True: 912, False: 0]
  ------------------
  296|    912|			           ? new DoIpDiagnosticMessageNack(data, dataLen, prevLayer, packet)
  297|    912|			           : nullptr;
  298|      0|		default:
  ------------------
  |  Branch (298:3): [True: 0, False: 59.3k]
  ------------------
  299|      0|			return nullptr;
  300|  59.3k|		}
  301|  59.3k|	}
_ZNK4pcpp9DoIpLayer19getPayloadTypeAsStrEv:
  353|  21.6k|	{
  354|  21.6k|		auto it = DoIpEnumToStringPayloadType.find(getPayloadType());
  355|  21.6k|		return (it != DoIpEnumToStringPayloadType.end()) ? it->second : "Unknown Payload Type";
  ------------------
  |  Branch (355:10): [True: 21.6k, False: 0]
  ------------------
  356|  21.6k|	}
_ZNK4pcpp9DoIpLayer8toStringEv:
  369|  21.6k|	{
  370|  21.6k|		std::ostringstream oss;
  371|  21.6k|		oss << "DoIP Layer, " << getPayloadTypeAsStr() << " (0x" << std::hex << std::setw(4) << std::setfill('0')
  372|  21.6k|		    << static_cast<uint16_t>(getPayloadType()) << ")";
  373|  21.6k|		return oss.str();
  374|  21.6k|	}
_ZN4pcpp9DoIpLayer14parseNextLayerEv:
  385|  59.0k|	{
  386|  59.0k|		if (getPayloadType() == DoIpPayloadTypes::DIAGNOSTIC_MESSAGE)
  ------------------
  |  Branch (386:7): [True: 7.77k, False: 51.3k]
  ------------------
  387|  7.77k|		{
  388|  7.77k|			size_t headerLen = getHeaderLen();
  389|       |
  390|  7.77k|			if (m_DataLen <= headerLen)
  ------------------
  |  Branch (390:8): [True: 0, False: 7.77k]
  ------------------
  391|      0|			{
  392|      0|				return;
  393|      0|			}
  394|       |
  395|  7.77k|			uint8_t* payload = m_Data + headerLen;
  396|  7.77k|			size_t payloadLen = m_DataLen - headerLen;
  397|       |
  398|  7.77k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  399|  7.77k|		}
  400|  59.0k|	}
_ZN4pcpp21DoIpGenericHeaderNackC2EPhmPNS_5LayerEPNS_6PacketE:
  406|  7.66k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  407|  7.66k|	{}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithEIDC2EPhmPNS_5LayerEPNS_6PacketE:
  453|  1.88k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  454|  1.88k|	{}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithVINC2EPhmPNS_5LayerEPNS_6PacketE:
  486|  3.01k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  487|  3.01k|	{}
_ZN4pcpp30DoIpVehicleAnnouncementMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  519|  2.11k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  520|  2.11k|	{}
_ZN4pcpp28DoIpRoutingActivationRequestC2EPhmPNS_5LayerEPNS_6PacketE:
  659|  2.38k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  660|  2.38k|	{}
_ZN4pcpp29DoIpRoutingActivationResponseC2EPhmPNS_5LayerEPNS_6PacketE:
  774|  1.95k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  775|  1.95k|	{}
_ZN4pcpp22DoIpAliveCheckResponseC2EPhmPNS_5LayerEPNS_6PacketE:
  904|  3.07k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  905|  3.07k|	{}
_ZN4pcpp24DoIpEntityStatusResponseC2EPhmPNS_5LayerEPNS_6PacketE:
  942|  5.97k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  943|  5.97k|	{}
_ZN4pcpp31DoIpDiagnosticPowerModeResponseC2EPhmPNS_5LayerEPNS_6PacketE:
 1058|  1.63k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
 1059|  1.63k|	{}
_ZN4pcpp18DoIpDiagnosticBaseC2EPhmPNS_5LayerEPNS_6PacketE:
 1097|  9.22k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
 1098|  9.22k|	{}
_ZN4pcpp21DoIpDiagnosticMessageC2EPhmPNS_5LayerEPNS_6PacketE:
 1124|  7.77k|	    : DoIpDiagnosticBase(data, dataLen, prevLayer, packet)
 1125|  7.77k|	{}
_ZN4pcpp33DoIpDiagnosticResponseMessageBaseC2EPhmPNS_5LayerEPNS_6PacketE:
 1176|  1.45k|	    : DoIpDiagnosticBase(data, dataLen, prevLayer, packet)
 1177|  1.45k|	{}
_ZN4pcpp24DoIpDiagnosticMessageAckC2EPhmPNS_5LayerEPNS_6PacketE:
 1246|    540|	    : DoIpDiagnosticResponseMessageBase(data, dataLen, prevLayer, packet)
 1247|    540|	{}
_ZN4pcpp25DoIpDiagnosticMessageNackC2EPhmPNS_5LayerEPNS_6PacketE:
 1289|    912|	    : DoIpDiagnosticResponseMessageBase(data, dataLen, prevLayer, packet)
 1290|    912|	{}

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

_ZN4pcpp8EthLayer14parseNextLayerEv:
   29|   817k|	{
   30|   817k|		if (m_DataLen <= sizeof(ether_header))
  ------------------
  |  Branch (30:7): [True: 458, False: 816k]
  ------------------
   31|    458|			return;
   32|       |
   33|   816k|		ether_header* hdr = getEthHeader();
   34|   816k|		uint8_t* payload = m_Data + sizeof(ether_header);
   35|   816k|		size_t payloadLen = m_DataLen - sizeof(ether_header);
   36|       |
   37|   816k|		switch (be16toh(hdr->etherType))
  ------------------
  |  Branch (37:11): [True: 812k, False: 3.96k]
  ------------------
   38|   816k|		{
   39|   584k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|   584k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (39:3): [True: 584k, False: 231k]
  ------------------
   40|   584k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   41|   584k|			break;
   42|  49.2k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|  49.2k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (42:3): [True: 49.2k, False: 767k]
  ------------------
   43|  49.2k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   44|  49.2k|			break;
   45|  3.17k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   33|  3.17k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (45:3): [True: 3.17k, False: 813k]
  ------------------
   46|  3.17k|			tryConstructNextLayerWithFallback<ArpLayer, PayloadLayer>(payload, payloadLen);
   47|  3.17k|			break;
   48|   175k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|   175k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (48:3): [True: 175k, False: 641k]
  ------------------
   49|   175k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   61|   175k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (49:3): [True: 0, False: 816k]
  ------------------
   50|   175k|			tryConstructNextLayerWithFallback<VlanLayer, PayloadLayer>(payload, payloadLen);
   51|   175k|			break;
   52|      0|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   53|      0|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (52:3): [True: 0, False: 816k]
  ------------------
   53|      0|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   54|      0|			break;
   55|      0|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   51|      0|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (55:3): [True: 0, False: 816k]
  ------------------
   56|      0|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   57|      0|			break;
   58|      0|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|      0|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (58:3): [True: 0, False: 816k]
  ------------------
   59|      0|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
   60|      0|			break;
   61|      0|		case PCPP_ETHERTYPE_WAKE_ON_LAN:
  ------------------
  |  |   63|      0|#define PCPP_ETHERTYPE_WAKE_ON_LAN 0x0842
  ------------------
  |  Branch (61:3): [True: 0, False: 816k]
  ------------------
   62|      0|			tryConstructNextLayerWithFallback<WakeOnLanLayer, PayloadLayer>(payload, payloadLen);
   63|      0|			break;
   64|   816k|		}
   65|       |
   66|       |		// If no next layer was constructed, assume it's a payload layer
   67|   816k|		if (!hasNextLayer())
  ------------------
  |  Branch (67:7): [True: 3.96k, False: 812k]
  ------------------
   68|  3.96k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   69|   816k|	}
_ZN4pcpp8EthLayer22computeCalculateFieldsEv:
   72|   145k|	{
   73|   145k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (73:7): [True: 229, False: 145k]
  ------------------
   74|    229|			return;
   75|       |
   76|   145k|		switch (m_NextLayer->getProtocol())
   77|   145k|		{
   78|   111k|		case IPv4:
  ------------------
  |  Branch (78:3): [True: 111k, False: 33.9k]
  ------------------
   79|   111k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_IP);
   80|   111k|			break;
   81|  10.1k|		case IPv6:
  ------------------
  |  Branch (81:3): [True: 10.1k, False: 135k]
  ------------------
   82|  10.1k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_IPV6);
   83|  10.1k|			break;
   84|  1.03k|		case ARP:
  ------------------
  |  Branch (84:3): [True: 1.03k, False: 144k]
  ------------------
   85|  1.03k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_ARP);
   86|  1.03k|			break;
   87|  20.8k|		case VLAN:
  ------------------
  |  Branch (87:3): [True: 20.8k, False: 124k]
  ------------------
   88|  20.8k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_VLAN);
   89|  20.8k|			break;
   90|  1.97k|		default:
  ------------------
  |  Branch (90:3): [True: 1.97k, False: 143k]
  ------------------
   91|  1.97k|			return;
   92|   145k|		}
   93|   145k|	}
_ZNK4pcpp8EthLayer8toStringEv:
   96|   291k|	{
   97|   291k|		return "Ethernet II Layer, Src: " + getSourceMac().toString() + ", Dst: " + getDestMac().toString();
   98|   291k|	}
_ZN4pcpp8EthLayer11isDataValidEPKhm:
  101|   821k|	{
  102|   821k|		if (dataLen >= sizeof(ether_header))
  ------------------
  |  Branch (102:7): [True: 821k, False: 28]
  ------------------
  103|   821k|		{
  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|   821k|			return be16toh(*reinterpret_cast<const uint16_t*>(data + 12)) >= static_cast<uint16_t>(0x0600);
  112|   821k|		}
  113|     28|		else
  114|     28|		{
  115|     28|			return false;
  116|     28|		}
  117|   821k|	}

_ZNK4pcpp15FtpRequestLayer16getCommandStringEv:
   28|     64|	{
   29|     64|		return getCommandInternal();
   30|     64|	}
_ZNK4pcpp15FtpRequestLayer16getCommandOptionEb:
   38|     64|	{
   39|     64|		if (removeEscapeCharacters)
  ------------------
  |  Branch (39:7): [True: 32, False: 32]
  ------------------
   40|     32|		{
   41|     32|			std::stringstream ss;
   42|     32|			std::string field = getCommandOptionInternal();
   43|    723|			for (size_t idx = 0; idx < field.size(); ++idx)
  ------------------
  |  Branch (43:25): [True: 691, False: 32]
  ------------------
   44|    691|			{
   45|    691|				if (int(field.c_str()[idx]) < 127 && int(field.c_str()[idx]) > 31)  // From SPACE to ~
  ------------------
  |  Branch (45:9): [True: 668, False: 23]
  |  Branch (45:42): [True: 651, False: 17]
  ------------------
   46|    651|					ss << field.c_str()[idx];
   47|    691|			}
   48|     32|			return ss.str();
   49|     32|		}
   50|     32|		return getCommandOptionInternal();
   51|     64|	}
_ZNK4pcpp15FtpRequestLayer8toStringEv:
  217|     64|	{
  218|     64|		return "FTP Request: " + getCommandString();
  219|     64|	}
_ZNK4pcpp16FtpResponseLayer13getStatusCodeEv:
  230|  1.77k|	{
  231|  1.77k|		return static_cast<FtpStatusCode>(atoi(getCommandInternal().c_str()));
  232|  1.77k|	}
_ZNK4pcpp16FtpResponseLayer19getStatusCodeStringEv:
  235|  3.55k|	{
  236|  3.55k|		return getCommandInternal();
  237|  3.55k|	}
_ZNK4pcpp16FtpResponseLayer15getStatusOptionEb:
  245|  3.55k|	{
  246|  3.55k|		if (removeEscapeCharacters)
  ------------------
  |  Branch (246:7): [True: 1.77k, False: 1.77k]
  ------------------
  247|  1.77k|		{
  248|  1.77k|			std::stringstream ss;
  249|  1.77k|			std::string field = getCommandOptionInternal();
  250|  36.7k|			for (size_t idx = 0; idx < field.size(); ++idx)
  ------------------
  |  Branch (250:25): [True: 35.0k, False: 1.77k]
  ------------------
  251|  35.0k|			{
  252|  35.0k|				if (int(field.c_str()[idx]) < 127 && int(field.c_str()[idx]) > 31)  // From SPACE to ~
  ------------------
  |  Branch (252:9): [True: 34.8k, False: 112]
  |  Branch (252:42): [True: 28.9k, False: 5.90k]
  ------------------
  253|  28.9k|					ss << field.c_str()[idx];
  254|  35.0k|			}
  255|  1.77k|			return ss.str();
  256|  1.77k|		}
  257|  1.77k|		return getCommandOptionInternal();
  258|  3.55k|	}
_ZNK4pcpp16FtpResponseLayer8toStringEv:
  382|  3.55k|	{
  383|  3.55k|		return "FTP Response: " + getStatusCodeString();
  384|  3.55k|	}
_ZNK4pcpp12FtpDataLayer8toStringEv:
  387|    838|	{
  388|    838|		return "FTP Data";
  389|    838|	}

_ZN4pcpp8GreLayer13getGREVersionEPhm:
   24|   102k|	{
   25|   102k|		if (greDataLen < sizeof(gre_basic_header))
  ------------------
  |  Branch (25:7): [True: 0, False: 102k]
  ------------------
   26|      0|			return UnknownProtocol;
   27|       |
   28|   102k|		uint8_t version = *(greData + 1);
   29|   102k|		version &= 0x07;
   30|   102k|		if (version == 0)
  ------------------
  |  Branch (30:7): [True: 9.39k, False: 92.8k]
  ------------------
   31|  9.39k|			return GREv0;
   32|  92.8k|		else if (version == 1)
  ------------------
  |  Branch (32:12): [True: 92.6k, False: 202]
  ------------------
   33|  92.6k|			return GREv1;
   34|    202|		else
   35|    202|			return UnknownProtocol;
   36|   102k|	}
_ZNK4pcpp8GreLayer13getFieldValueENS0_8GreFieldEb:
   39|  21.0k|	{
   40|  21.0k|		uint8_t* ptr = m_Data + sizeof(gre_basic_header);
   41|       |
   42|  21.0k|		auto* header = reinterpret_cast<gre_basic_header*>(m_Data);
   43|       |
   44|  21.0k|		constexpr int numGreField = 4;
   45|  57.9k|		for (int curFieldAsInt = static_cast<int>(GreChecksumOrRouting); curFieldAsInt < numGreField; ++curFieldAsInt)
  ------------------
  |  Branch (45:68): [True: 57.9k, False: 0]
  ------------------
   46|  57.9k|		{
   47|  57.9k|			const GreField curField = static_cast<GreField>(curFieldAsInt);
   48|  57.9k|			bool curFieldExists = false;
   49|       |
   50|  57.9k|			uint8_t* origPtr = ptr;
   51|       |
   52|  57.9k|			switch (curField)
   53|  57.9k|			{
   54|  21.0k|			case GreChecksumOrRouting:
  ------------------
  |  Branch (54:4): [True: 21.0k, False: 36.8k]
  ------------------
   55|  21.0k|				if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (55:9): [True: 7.45k, False: 13.5k]
  |  Branch (55:37): [True: 599, False: 12.9k]
  ------------------
   56|  8.05k|				{
   57|  8.05k|					curFieldExists = true;
   58|  8.05k|					ptr += sizeof(uint32_t);
   59|  8.05k|				}
   60|  21.0k|				break;
   61|  15.8k|			case GreKey:
  ------------------
  |  Branch (61:4): [True: 15.8k, False: 42.1k]
  ------------------
   62|  15.8k|				if (header->keyBit == 1)
  ------------------
  |  Branch (62:9): [True: 14.4k, False: 1.40k]
  ------------------
   63|  14.4k|				{
   64|  14.4k|					curFieldExists = true;
   65|  14.4k|					ptr += sizeof(uint32_t);
   66|  14.4k|				}
   67|  15.8k|				break;
   68|  15.1k|			case GreSeq:
  ------------------
  |  Branch (68:4): [True: 15.1k, False: 42.7k]
  ------------------
   69|  15.1k|				if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (69:9): [True: 14.2k, False: 921]
  ------------------
   70|  14.2k|				{
   71|  14.2k|					curFieldExists = true;
   72|  14.2k|					ptr += sizeof(uint32_t);
   73|  14.2k|				}
   74|  15.1k|				break;
   75|  5.88k|			case GreAck:
  ------------------
  |  Branch (75:4): [True: 5.88k, False: 52.0k]
  ------------------
   76|  5.88k|				if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (76:9): [True: 5.88k, False: 0]
  ------------------
   77|  5.88k|				{
   78|  5.88k|					curFieldExists = true;
   79|  5.88k|					ptr += sizeof(uint32_t);
   80|  5.88k|				}
   81|  5.88k|				break;
   82|      0|			default:  // shouldn't get there
  ------------------
  |  Branch (82:4): [True: 0, False: 57.9k]
  ------------------
   83|      0|				return nullptr;
   84|  57.9k|			}
   85|       |
   86|  57.9k|			if (field == curField)
  ------------------
  |  Branch (86:8): [True: 21.0k, False: 36.8k]
  ------------------
   87|  21.0k|			{
   88|       |				// If the packet is truncated/malformed it might be overflow packet length
   89|  21.0k|				if ((curFieldExists && static_cast<size_t>(std::abs(ptr - m_Data)) <= m_DataLen) ||
  ------------------
  |  Branch (89:10): [True: 21.0k, False: 0]
  |  Branch (89:28): [True: 21.0k, False: 4]
  ------------------
   90|      4|				    returnOffsetEvenIfFieldMissing)
  ------------------
  |  Branch (90:9): [True: 0, False: 4]
  ------------------
   91|  21.0k|					return origPtr;
   92|       |
   93|      4|				return nullptr;
   94|  21.0k|			}
   95|  57.9k|		}  // for
   96|       |
   97|      0|		return nullptr;
   98|  21.0k|	}
_ZN4pcpp8GreLayer27computeCalculateFieldsInnerEv:
  101|  11.3k|	{
  102|  11.3k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  103|  11.3k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (103:7): [True: 11.2k, False: 48]
  ------------------
  104|  11.2k|		{
  105|  11.2k|			switch (m_NextLayer->getProtocol())
  106|  11.2k|			{
  107|     16|			case IPv4:
  ------------------
  |  Branch (107:4): [True: 16, False: 11.2k]
  ------------------
  108|     16|				header->protocol = htobe16(PCPP_ETHERTYPE_IP);
  109|     16|				break;
  110|      0|			case IPv6:
  ------------------
  |  Branch (110:4): [True: 0, False: 11.2k]
  ------------------
  111|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_IPV6);
  112|      0|				break;
  113|      1|			case VLAN:
  ------------------
  |  Branch (113:4): [True: 1, False: 11.2k]
  ------------------
  114|      1|				header->protocol = htobe16(PCPP_ETHERTYPE_VLAN);
  115|      1|				break;
  116|     15|			case MPLS:
  ------------------
  |  Branch (116:4): [True: 15, False: 11.2k]
  ------------------
  117|     15|				header->protocol = htobe16(PCPP_ETHERTYPE_MPLS);
  118|     15|				break;
  119|  7.79k|			case PPP_PPTP:
  ------------------
  |  Branch (119:4): [True: 7.79k, False: 3.49k]
  ------------------
  120|  7.79k|				header->protocol = htobe16(PCPP_ETHERTYPE_PPP);
  121|  7.79k|				break;
  122|      0|			case Ethernet:
  ------------------
  |  Branch (122:4): [True: 0, False: 11.2k]
  ------------------
  123|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_ETHBRIDGE);
  124|      0|				break;
  125|  3.45k|			default:
  ------------------
  |  Branch (125:4): [True: 3.45k, False: 7.82k]
  ------------------
  126|  3.45k|				break;
  127|  11.2k|			}
  128|  11.2k|		}
  129|  11.3k|	}
_ZNK4pcpp8GreLayer17getSequenceNumberERj:
  132|  11.3k|	{
  133|  11.3k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  134|       |
  135|  11.3k|		if (header->sequenceNumBit == 0)
  ------------------
  |  Branch (135:7): [True: 2.02k, False: 9.31k]
  ------------------
  136|  2.02k|			return false;
  137|       |
  138|  9.31k|		uint32_t* val = (uint32_t*)getFieldValue(GreSeq, false);
  139|  9.31k|		if (val == nullptr)
  ------------------
  |  Branch (139:7): [True: 0, False: 9.31k]
  ------------------
  140|      0|			return false;
  141|       |
  142|  9.31k|		seqNumber = be32toh(*val);
  143|  9.31k|		return true;
  144|  9.31k|	}
_ZN4pcpp8GreLayer14parseNextLayerEv:
  198|   102k|	{
  199|   102k|		size_t headerLen = getHeaderLen();
  200|   102k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (200:7): [True: 2.54k, False: 99.4k]
  ------------------
  201|  2.54k|			return;
  202|       |
  203|  99.4k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  204|  99.4k|		uint8_t* payload = m_Data + headerLen;
  205|  99.4k|		size_t payloadLen = m_DataLen - headerLen;
  206|       |
  207|  99.4k|		switch (be16toh(header->protocol))
  208|  99.4k|		{
  209|  1.61k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|  1.61k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (209:3): [True: 1.61k, False: 97.8k]
  ------------------
  210|  1.61k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  211|  1.61k|			break;
  212|      0|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|      0|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (212:3): [True: 0, False: 99.4k]
  ------------------
  213|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  214|      0|			break;
  215|      7|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|      7|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (215:3): [True: 7, False: 99.4k]
  ------------------
  216|      7|			constructNextLayer<VlanLayer>(payload, payloadLen);
  217|      7|			break;
  218|    120|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|    120|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (218:3): [True: 120, False: 99.3k]
  ------------------
  219|    120|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
  220|    120|			break;
  221|  83.8k|		case PCPP_ETHERTYPE_PPP:
  ------------------
  |  |   57|  83.8k|#define PCPP_ETHERTYPE_PPP 0x880B
  ------------------
  |  Branch (221:3): [True: 83.8k, False: 15.6k]
  ------------------
  222|  83.8k|			tryConstructNextLayerWithFallback<PPP_PPTPLayer, PayloadLayer>(payload, payloadLen);
  223|  83.8k|			break;
  224|      0|		case PCPP_ETHERTYPE_ETHBRIDGE:
  ------------------
  |  |   35|      0|#define PCPP_ETHERTYPE_ETHBRIDGE 0x6558
  ------------------
  |  Branch (224:3): [True: 0, False: 99.4k]
  ------------------
  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|  13.8k|		default:
  ------------------
  |  Branch (234:3): [True: 13.8k, False: 85.5k]
  ------------------
  235|  13.8k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  236|  99.4k|		}
  237|  99.4k|	}
_ZNK4pcpp8GreLayer12getHeaderLenEv:
  240|   123k|	{
  241|   123k|		size_t result = sizeof(gre_basic_header);
  242|       |
  243|   123k|		gre_basic_header const* header = reinterpret_cast<gre_basic_header const*>(m_Data);
  244|       |
  245|   123k|		if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (245:7): [True: 14.3k, False: 109k]
  |  Branch (245:35): [True: 2.54k, False: 107k]
  ------------------
  246|  16.8k|			result += 4;
  247|   123k|		if (header->keyBit == 1)
  ------------------
  |  Branch (247:7): [True: 111k, False: 12.6k]
  ------------------
  248|   111k|			result += 4;
  249|   123k|		if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (249:7): [True: 110k, False: 13.8k]
  ------------------
  250|   110k|			result += 4;
  251|   123k|		if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (251:7): [True: 64.8k, False: 59.1k]
  ------------------
  252|  64.8k|			result += 4;
  253|       |
  254|   123k|		return result;
  255|   123k|	}
_ZN4pcpp10GREv0Layer11getChecksumERt:
  268|  1.84k|	{
  269|  1.84k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (269:7): [True: 448, False: 1.39k]
  ------------------
  270|    448|			return false;
  271|       |
  272|  1.39k|		uint16_t* val = (uint16_t*)getFieldValue(GreChecksumOrRouting, false);
  273|  1.39k|		if (val == nullptr)
  ------------------
  |  Branch (273:7): [True: 0, False: 1.39k]
  ------------------
  274|      0|			return false;
  275|       |
  276|  1.39k|		checksum = be16toh(*val);
  277|  1.39k|		return true;
  278|  1.39k|	}
_ZN4pcpp10GREv0Layer11setChecksumEt:
  281|  2.78k|	{
  282|  2.78k|		gre_basic_header* header = getGreHeader();
  283|       |
  284|  2.78k|		bool needToExtendLayer = false;
  285|       |
  286|  2.78k|		if (header->routingBit == 0 && header->checksumBit == 0)
  ------------------
  |  Branch (286:7): [True: 956, False: 1.82k]
  |  Branch (286:34): [True: 0, False: 956]
  ------------------
  287|      0|			needToExtendLayer = true;
  288|       |
  289|  2.78k|		uint8_t* offsetPtr = getFieldValue(GreChecksumOrRouting, true);
  290|  2.78k|		int offset = offsetPtr - m_Data;
  291|       |		// extend layer in 4 bytes to keep 4-byte alignment
  292|  2.78k|		if (needToExtendLayer && !extendLayer(offset, sizeof(uint32_t)))
  ------------------
  |  Branch (292:7): [True: 0, False: 2.78k]
  |  Branch (292:28): [True: 0, False: 0]
  ------------------
  293|      0|		{
  294|      0|			PCPP_LOG_ERROR("Couldn't extend layer to set checksum");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleGreLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleGreLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  295|      0|			return false;
  296|      0|		}
  297|       |
  298|  2.78k|		uint16_t* checksumPtr = (uint16_t*)(m_Data + offset);
  299|  2.78k|		*checksumPtr = htobe16(checksum);
  300|       |
  301|       |		// if layer was extended in 4 bytes, make sure the offset field stays 0
  302|  2.78k|		if (needToExtendLayer)
  ------------------
  |  Branch (302:7): [True: 0, False: 2.78k]
  ------------------
  303|      0|		{
  304|      0|			checksumPtr++;
  305|      0|			*checksumPtr = 0;
  306|      0|		}
  307|       |
  308|  2.78k|		header = getGreHeader();
  309|  2.78k|		header->checksumBit = 1;
  310|       |
  311|  2.78k|		return true;
  312|  2.78k|	}
_ZNK4pcpp10GREv0Layer9getOffsetERt:
  348|  1.84k|	{
  349|  1.84k|		if (getGreHeader()->routingBit == 0)
  ------------------
  |  Branch (349:7): [True: 805, False: 1.03k]
  ------------------
  350|    805|			return false;
  351|       |
  352|  1.03k|		uint8_t* val = (uint8_t*)getFieldValue(GreChecksumOrRouting, false);
  353|  1.03k|		if (val == nullptr)
  ------------------
  |  Branch (353:7): [True: 0, False: 1.03k]
  ------------------
  354|      0|			return false;
  355|       |
  356|  1.03k|		offset = be16toh(*(val + 2));
  357|  1.03k|		return true;
  358|  1.03k|	}
_ZNK4pcpp10GREv0Layer6getKeyERj:
  361|  1.84k|	{
  362|  1.84k|		if (getGreHeader()->keyBit == 0)
  ------------------
  |  Branch (362:7): [True: 1.21k, False: 622]
  ------------------
  363|  1.21k|			return false;
  364|       |
  365|    622|		uint32_t* val = (uint32_t*)getFieldValue(GreKey, false);
  366|    622|		if (val == nullptr)
  ------------------
  |  Branch (366:7): [True: 4, False: 618]
  ------------------
  367|      4|			return false;
  368|       |
  369|    618|		key = be32toh(*val);
  370|    618|		return true;
  371|    622|	}
_ZN4pcpp10GREv0Layer22computeCalculateFieldsEv:
  425|  1.84k|	{
  426|  1.84k|		computeCalculateFieldsInner();
  427|       |
  428|  1.84k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (428:7): [True: 448, False: 1.39k]
  ------------------
  429|    448|			return;
  430|       |
  431|       |		// calculate checksum
  432|  1.39k|		setChecksum(0);
  433|       |
  434|  1.39k|		ScalarBuffer<uint16_t> buffer;
  435|  1.39k|		buffer.buffer = (uint16_t*)m_Data;
  436|  1.39k|		buffer.len = m_DataLen;
  437|  1.39k|		size_t checksum = computeChecksum(&buffer, 1);
  438|       |
  439|  1.39k|		setChecksum(checksum);
  440|  1.39k|	}
_ZNK4pcpp10GREv0Layer8toStringEv:
  443|  3.68k|	{
  444|  3.68k|		return "GRE Layer, version 0";
  445|  3.68k|	}
_ZNK4pcpp10GREv1Layer20getAcknowledgmentNumERj:
  463|  9.49k|	{
  464|  9.49k|		if (getGreHeader()->ackSequenceNumBit == 0)
  ------------------
  |  Branch (464:7): [True: 3.61k, False: 5.88k]
  ------------------
  465|  3.61k|			return false;
  466|       |
  467|  5.88k|		uint32_t* val = (uint32_t*)getFieldValue(GreAck, false);
  468|  5.88k|		if (val == nullptr)
  ------------------
  |  Branch (468:7): [True: 0, False: 5.88k]
  ------------------
  469|      0|			return false;
  470|       |
  471|  5.88k|		ackNum = be32toh(*val);
  472|  5.88k|		return true;
  473|  5.88k|	}
_ZN4pcpp10GREv1Layer22computeCalculateFieldsEv:
  524|  9.49k|	{
  525|  9.49k|		computeCalculateFieldsInner();
  526|       |
  527|       |		getGreHeader()->payloadLength = htobe16(m_DataLen - getHeaderLen());
  528|  9.49k|	}
_ZNK4pcpp10GREv1Layer8toStringEv:
  531|  18.9k|	{
  532|  18.9k|		return "GRE Layer, version 1";
  533|  18.9k|	}
_ZN4pcpp13PPP_PPTPLayer14parseNextLayerEv:
  550|  83.8k|	{
  551|  83.8k|		size_t headerLen = getHeaderLen();
  552|  83.8k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (552:7): [True: 18, False: 83.8k]
  ------------------
  553|     18|			return;
  554|       |
  555|  83.8k|		uint8_t* payload = m_Data + headerLen;
  556|  83.8k|		size_t payloadLen = m_DataLen - headerLen;
  557|       |
  558|  83.8k|		switch (be16toh(getPPP_PPTPHeader()->protocol))
  559|  83.8k|		{
  560|  83.0k|		case PCPP_PPP_IP:
  ------------------
  |  |  398|  83.0k|#define PCPP_PPP_IP 0x21
  ------------------
  |  Branch (560:3): [True: 83.0k, False: 730]
  ------------------
  561|  83.0k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  562|  83.0k|			break;
  563|     61|		case PCPP_PPP_IPV6:
  ------------------
  |  |  450|     61|#define PCPP_PPP_IPV6 0x57
  ------------------
  |  Branch (563:3): [True: 61, False: 83.7k]
  ------------------
  564|     61|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  565|     61|			break;
  566|    669|		default:
  ------------------
  |  Branch (566:3): [True: 669, False: 83.1k]
  ------------------
  567|    669|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  568|    669|			break;
  569|  83.8k|		}
  570|  83.8k|	}
_ZN4pcpp13PPP_PPTPLayer22computeCalculateFieldsEv:
  573|  7.79k|	{
  574|  7.79k|		ppp_pptp_header* header = getPPP_PPTPHeader();
  575|  7.79k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (575:7): [True: 7.79k, False: 0]
  ------------------
  576|  7.79k|		{
  577|  7.79k|			switch (m_NextLayer->getProtocol())
  578|  7.79k|			{
  579|  7.66k|			case IPv4:
  ------------------
  |  Branch (579:4): [True: 7.66k, False: 135]
  ------------------
  580|  7.66k|				header->protocol = htobe16(PCPP_PPP_IP);
  581|  7.66k|				break;
  582|      0|			case IPv6:
  ------------------
  |  Branch (582:4): [True: 0, False: 7.79k]
  ------------------
  583|      0|				header->protocol = htobe16(PCPP_PPP_IPV6);
  584|      0|				break;
  585|    135|			default:
  ------------------
  |  Branch (585:4): [True: 135, False: 7.66k]
  ------------------
  586|    135|				break;
  587|  7.79k|			}
  588|  7.79k|		}
  589|      0|		else
  590|      0|			header->protocol = 0;
  591|  7.79k|	}

_ZN4pcpp10GtpV1Layer12GtpExtensionC2Ev:
   22|  23.9k|	{
   23|  23.9k|		m_Data = nullptr;
   24|  23.9k|		m_DataLen = 0;
   25|  23.9k|		m_ExtType = 0;
   26|  23.9k|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionC2EPhmh:
   29|  2.00k|	{
   30|  2.00k|		m_Data = data;
   31|  2.00k|		m_DataLen = dataLen;
   32|  2.00k|		m_ExtType = type;
   33|  2.00k|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionaSERKS1_:
   43|  1.14k|	{
   44|  1.14k|		m_Data = other.m_Data;
   45|  1.14k|		m_DataLen = other.m_DataLen;
   46|  1.14k|		m_ExtType = other.m_ExtType;
   47|  1.14k|		return *this;
   48|  1.14k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension6isNullEv:
   51|  15.8k|	{
   52|  15.8k|		return m_Data == nullptr;
   53|  15.8k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getExtensionTypeEv:
   56|  5.03k|	{
   57|  5.03k|		return m_ExtType;
   58|  5.03k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension14getTotalLengthEv:
   61|  16.9k|	{
   62|  16.9k|		if (m_Data == nullptr)
  ------------------
  |  Branch (62:7): [True: 8.37k, False: 8.60k]
  ------------------
   63|  8.37k|		{
   64|  8.37k|			return 0;
   65|  8.37k|		}
   66|       |
   67|  8.60k|		size_t len = (size_t)(m_Data[0] * 4);
   68|  8.60k|		if (len <= m_DataLen)
  ------------------
  |  Branch (68:7): [True: 1.12k, False: 7.48k]
  ------------------
   69|  1.12k|		{
   70|  1.12k|			return len;
   71|  1.12k|		}
   72|       |
   73|  7.48k|		return m_DataLen;
   74|  8.60k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getContentLengthEv:
   77|  7.66k|	{
   78|  7.66k|		size_t res = getTotalLength();
   79|       |
   80|  7.66k|		if (res >= 2 * sizeof(uint8_t))
  ------------------
  |  Branch (80:7): [True: 3.11k, False: 4.54k]
  ------------------
   81|  3.11k|		{
   82|  3.11k|			return (size_t)(res - 2 * sizeof(uint8_t));
   83|  3.11k|		}
   84|       |
   85|  4.54k|		return 0;
   86|  7.66k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension10getContentEv:
   89|  5.03k|	{
   90|  5.03k|		if (m_Data == nullptr || getContentLength() == 0)
  ------------------
  |  Branch (90:7): [True: 4.18k, False: 845]
  |  Branch (90:28): [True: 179, False: 666]
  ------------------
   91|  4.36k|		{
   92|  4.36k|			return nullptr;
   93|  4.36k|		}
   94|       |
   95|    666|		return m_Data + sizeof(uint8_t);
   96|  5.03k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension26getNextExtensionHeaderTypeEv:
   99|  6.17k|	{
  100|  6.17k|		if (m_Data == nullptr || getTotalLength() < 4)
  ------------------
  |  Branch (100:7): [True: 4.18k, False: 1.99k]
  |  Branch (100:28): [True: 206, False: 1.78k]
  ------------------
  101|  4.39k|		{
  102|  4.39k|			return 0;
  103|  4.39k|		}
  104|       |
  105|  1.78k|		uint8_t res = *(uint8_t*)(m_Data + sizeof(uint8_t) + getContentLength());
  106|       |
  107|  1.78k|		return res;
  108|  6.17k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getNextExtensionEv:
  111|  6.17k|	{
  112|  6.17k|		size_t totalLength = getTotalLength();
  113|  6.17k|		uint8_t nextExtType = getNextExtensionHeaderType();
  114|  6.17k|		if (nextExtType > 0 && m_DataLen > totalLength + sizeof(uint8_t))
  ------------------
  |  Branch (114:7): [True: 1.71k, False: 4.46k]
  |  Branch (114:26): [True: 72, False: 1.63k]
  ------------------
  115|     72|		{
  116|     72|			return { m_Data + totalLength, m_DataLen - totalLength, nextExtType };
  117|     72|		}
  118|  6.10k|		else
  119|  6.10k|		{
  120|  6.10k|			return {};
  121|  6.10k|		}
  122|  6.17k|	}
_ZN4pcpp10GtpV1Layer7isGTPv1EPKhm:
  200|  37.3k|	{
  201|  37.3k|		if (data != nullptr && dataSize >= sizeof(gtpv1_header) && (data[0] & 0xE0) == 0x20)
  ------------------
  |  Branch (201:7): [True: 37.3k, False: 0]
  |  Branch (201:26): [True: 37.3k, False: 16]
  |  Branch (201:62): [True: 37.1k, False: 222]
  ------------------
  202|  37.1k|		{
  203|  37.1k|			return true;
  204|  37.1k|		}
  205|       |
  206|    238|		return false;
  207|  37.3k|	}
_ZNK4pcpp10GtpV1Layer14getHeaderExtraEv:
  210|  61.2k|	{
  211|  61.2k|		if (m_Data != nullptr && m_DataLen >= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (211:7): [True: 61.2k, False: 0]
  |  Branch (211:28): [True: 60.8k, False: 391]
  ------------------
  212|  60.8k|		{
  213|  60.8k|			return (gtpv1_header_extra*)(m_Data + sizeof(gtpv1_header));
  214|  60.8k|		}
  215|       |
  216|    391|		return nullptr;
  217|  61.2k|	}
_ZNK4pcpp10GtpV1Layer17getSequenceNumberERt:
  220|  5.03k|	{
  221|  5.03k|		gtpv1_header* header = getHeader();
  222|  5.03k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  223|  5.03k|		if (header != nullptr && headerExtra != nullptr && header->sequenceNumberFlag == 1)
  ------------------
  |  Branch (223:7): [True: 5.03k, False: 0]
  |  Branch (223:28): [True: 4.94k, False: 86]
  |  Branch (223:54): [True: 1.70k, False: 3.23k]
  ------------------
  224|  1.70k|		{
  225|  1.70k|			seqNumber = be16toh(headerExtra->sequenceNumber);
  226|  1.70k|			return true;
  227|  1.70k|		}
  228|       |
  229|  3.32k|		return false;
  230|  5.03k|	}
_ZNK4pcpp10GtpV1Layer13getNpduNumberERh:
  272|  5.03k|	{
  273|  5.03k|		gtpv1_header* header = getHeader();
  274|  5.03k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  275|  5.03k|		if (header != nullptr && headerExtra != nullptr && header->npduNumberFlag == 1)
  ------------------
  |  Branch (275:7): [True: 5.03k, False: 0]
  |  Branch (275:28): [True: 4.94k, False: 86]
  |  Branch (275:54): [True: 1.39k, False: 3.54k]
  ------------------
  276|  1.39k|		{
  277|  1.39k|			npduNum = headerExtra->npduNumber;
  278|  1.39k|			return true;
  279|  1.39k|		}
  280|       |
  281|  3.63k|		return false;
  282|  5.03k|	}
_ZNK4pcpp10GtpV1Layer26getNextExtensionHeaderTypeERh:
  324|  19.7k|	{
  325|  19.7k|		gtpv1_header* header = getHeader();
  326|  19.7k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  327|  19.7k|		if (header != nullptr && headerExtra != nullptr && header->extensionHeaderFlag == 1)
  ------------------
  |  Branch (327:7): [True: 19.7k, False: 0]
  |  Branch (327:28): [True: 19.6k, False: 86]
  |  Branch (327:54): [True: 4.72k, False: 14.9k]
  ------------------
  328|  4.72k|		{
  329|  4.72k|			nextExtType = headerExtra->nextExtensionHeader;
  330|  4.72k|			return true;
  331|  4.72k|		}
  332|       |
  333|  15.0k|		return false;
  334|  19.7k|	}
_ZNK4pcpp10GtpV1Layer16getNextExtensionEv:
  337|  19.7k|	{
  338|  19.7k|		uint8_t nextExtType = 0;
  339|  19.7k|		bool nextExtExists = getNextExtensionHeaderType(nextExtType);
  340|  19.7k|		if (!nextExtExists || nextExtType == 0 || m_DataLen <= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (340:7): [True: 15.0k, False: 4.72k]
  |  Branch (340:25): [True: 2.79k, False: 1.92k]
  |  Branch (340:45): [True: 0, False: 1.92k]
  ------------------
  341|  17.8k|		{
  342|  17.8k|			return {};
  343|  17.8k|		}
  344|       |
  345|  1.92k|		return { m_Data + sizeof(gtpv1_header) + sizeof(gtpv1_header_extra),
  346|  1.92k|			     m_DataLen - sizeof(gtpv1_header) - sizeof(gtpv1_header_extra), nextExtType };
  347|  19.7k|	}
_ZNK4pcpp10GtpV1Layer14getMessageTypeEv:
  428|  5.03k|	{
  429|  5.03k|		gtpv1_header* header = getHeader();
  430|       |
  431|  5.03k|		if (header == nullptr)
  ------------------
  |  Branch (431:7): [True: 0, False: 5.03k]
  ------------------
  432|      0|		{
  433|      0|			return GtpV1_MessageTypeUnknown;
  434|      0|		}
  435|       |
  436|  5.03k|		return (GtpV1MessageType)header->messageType;
  437|  5.03k|	}
_ZN4pcpp33createGtpV1MessageTypeToStringMapEv:
  440|      2|	{
  441|      2|		std::unordered_map<uint8_t, std::string> tempMap;
  442|       |
  443|      2|		tempMap[0] = "GTPv1 Message Type Unknown";
  444|      2|		tempMap[1] = "Echo Request";
  445|      2|		tempMap[2] = "Echo Response";
  446|      2|		tempMap[3] = "Version Not Supported";
  447|      2|		tempMap[4] = "Node Alive Request";
  448|      2|		tempMap[5] = "Node Alive Response";
  449|      2|		tempMap[6] = "Redirection Request";
  450|      2|		tempMap[7] = "Create PDP Context Request";
  451|      2|		tempMap[16] = "Create PDP Context Response";
  452|      2|		tempMap[17] = "Update PDP Context Request";
  453|      2|		tempMap[18] = "Update PDP Context Response";
  454|      2|		tempMap[19] = "Delete PDP Context Request";
  455|      2|		tempMap[20] = "Delete PDP Context Response";
  456|      2|		tempMap[22] = "Initiate PDP Context Activation Request";
  457|      2|		tempMap[23] = "Initiate PDP Context Activation Response";
  458|      2|		tempMap[26] = "Error Indication";
  459|      2|		tempMap[27] = "PDU Notification Request";
  460|      2|		tempMap[28] = "PDU Notification Response";
  461|      2|		tempMap[29] = "PDU Notification Reject Request";
  462|      2|		tempMap[30] = "PDU Notification Reject Response";
  463|      2|		tempMap[31] = "Supported Extensions Header Notification";
  464|      2|		tempMap[32] = "Send Routing for GPRS Request";
  465|      2|		tempMap[33] = "Send Routing for GPRS Response";
  466|      2|		tempMap[34] = "Failure Report Request";
  467|      2|		tempMap[35] = "Failure Report Response";
  468|      2|		tempMap[36] = "Note MS Present Request";
  469|      2|		tempMap[37] = "Note MS Present Response";
  470|      2|		tempMap[38] = "Identification Request";
  471|      2|		tempMap[39] = "Identification Response";
  472|      2|		tempMap[50] = "SGSN Context Request";
  473|      2|		tempMap[51] = "SGSN Context Response";
  474|      2|		tempMap[52] = "SGSN Context Acknowledge";
  475|      2|		tempMap[53] = "Forward Relocation Request";
  476|      2|		tempMap[54] = "Forward Relocation Response";
  477|      2|		tempMap[55] = "Forward Relocation Complete";
  478|      2|		tempMap[56] = "Relocation Cancel Request";
  479|      2|		tempMap[57] = "Relocation Cancel Response";
  480|      2|		tempMap[58] = "Forward SRNS Context";
  481|      2|		tempMap[59] = "Forward Relocation Complete Acknowledge";
  482|      2|		tempMap[60] = "Forward SRNS Context Acknowledge";
  483|      2|		tempMap[61] = "UE Registration Request";
  484|      2|		tempMap[62] = "UE Registration Response";
  485|      2|		tempMap[70] = "RAN Information Relay";
  486|      2|		tempMap[96] = "MBMS Notification Request";
  487|      2|		tempMap[97] = "MBMS Notification Response";
  488|      2|		tempMap[98] = "MBMS Notification Reject Request";
  489|      2|		tempMap[99] = "MBMS Notification Reject Response";
  490|      2|		tempMap[100] = "Create MBMS Notification Request";
  491|      2|		tempMap[101] = "Create MBMS Notification Response";
  492|      2|		tempMap[102] = "Update MBMS Notification Request";
  493|      2|		tempMap[103] = "Update MBMS Notification Response";
  494|      2|		tempMap[104] = "Delete MBMS Notification Request";
  495|      2|		tempMap[105] = "Delete MBMS Notification Response";
  496|      2|		tempMap[112] = "MBMS Registration Request";
  497|      2|		tempMap[113] = "MBMS Registration Response";
  498|      2|		tempMap[114] = "MBMS De-Registration Request";
  499|      2|		tempMap[115] = "MBMS De-Registration Response";
  500|      2|		tempMap[116] = "MBMS Session Start Request";
  501|      2|		tempMap[117] = "MBMS Session Start Response";
  502|      2|		tempMap[118] = "MBMS Session Stop Request";
  503|      2|		tempMap[119] = "MBMS Session Stop Response";
  504|      2|		tempMap[120] = "MBMS Session Update Request";
  505|      2|		tempMap[121] = "MBMS Session Update Response";
  506|      2|		tempMap[128] = "MS Info Change Request";
  507|      2|		tempMap[129] = "MS Info Change Response";
  508|      2|		tempMap[240] = "Data Record Transfer Request";
  509|      2|		tempMap[241] = "Data Record Transfer Response";
  510|      2|		tempMap[254] = "End Marker";
  511|      2|		tempMap[255] = "G-PDU";
  512|       |
  513|      2|		return tempMap;
  514|      2|	}
_ZNK4pcpp10GtpV1Layer22getMessageTypeAsStringEv:
  519|  8.37k|	{
  520|  8.37k|		gtpv1_header* header = getHeader();
  521|       |
  522|  8.37k|		if (header == nullptr)
  ------------------
  |  Branch (522:7): [True: 0, False: 8.37k]
  ------------------
  523|      0|		{
  524|      0|			return GTPv1MsgTypeToStringMap.find(0)->second;
  525|      0|		}
  526|       |
  527|  8.37k|		auto iter = GTPv1MsgTypeToStringMap.find(header->messageType);
  528|  8.37k|		if (iter != GTPv1MsgTypeToStringMap.end())
  ------------------
  |  Branch (528:7): [True: 4.96k, False: 3.41k]
  ------------------
  529|  4.96k|		{
  530|  4.96k|			return iter->second;
  531|  4.96k|		}
  532|  3.41k|		else
  533|  3.41k|		{
  534|  3.41k|			return GTPv1MsgTypeToStringMap.find(0)->second;
  535|  3.41k|		}
  536|  8.37k|	}
_ZNK4pcpp10GtpV1Layer13isGTPUMessageEv:
  539|  5.03k|	{
  540|  5.03k|		gtpv1_header* header = getHeader();
  541|  5.03k|		if (header == nullptr)
  ------------------
  |  Branch (541:7): [True: 0, False: 5.03k]
  ------------------
  542|      0|		{
  543|      0|			return false;
  544|      0|		}
  545|       |
  546|  5.03k|		return header->messageType == GtpV1GpduMessageType;
  547|  5.03k|	}
_ZNK4pcpp10GtpV1Layer13isGTPCMessageEv:
  550|  5.03k|	{
  551|  5.03k|		gtpv1_header* header = getHeader();
  552|  5.03k|		if (header == nullptr)
  ------------------
  |  Branch (552:7): [True: 0, False: 5.03k]
  ------------------
  553|      0|		{
  554|      0|			return false;
  555|      0|		}
  556|       |
  557|  5.03k|		return header->messageType != GtpV1GpduMessageType;
  558|  5.03k|	}
_ZN4pcpp10GtpV1Layer14parseNextLayerEv:
  561|  37.1k|	{
  562|  37.1k|		size_t headerLen = getHeaderLen();
  563|  37.1k|		if (headerLen < sizeof(gtpv1_header))
  ------------------
  |  Branch (563:7): [True: 0, False: 37.1k]
  ------------------
  564|      0|		{
  565|       |			// do nothing
  566|      0|			return;
  567|      0|		}
  568|       |
  569|  37.1k|		gtpv1_header* header = getHeader();
  570|  37.1k|		if (header->messageType != GtpV1GpduMessageType)
  ------------------
  |  Branch (570:7): [True: 8.99k, False: 28.1k]
  ------------------
  571|  8.99k|		{
  572|       |			// this is a GTP-C message, hence it is the last layer
  573|  8.99k|			return;
  574|  8.99k|		}
  575|       |
  576|  28.1k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (576:7): [True: 1.00k, False: 27.1k]
  ------------------
  577|  1.00k|		{
  578|       |			// no data beyond headerLen, nothing to parse further
  579|  1.00k|			return;
  580|  1.00k|		}
  581|       |
  582|       |		// GTP-U message, try to parse the next layer
  583|       |
  584|  27.1k|		auto* payload = static_cast<uint8_t*>(m_Data + headerLen);
  585|  27.1k|		size_t payloadLen = m_DataLen - headerLen;
  586|       |
  587|  27.1k|		uint8_t subProto = *payload;
  588|  27.1k|		if (subProto >= 0x45 && subProto <= 0x4e)
  ------------------
  |  Branch (588:7): [True: 26.7k, False: 404]
  |  Branch (588:27): [True: 23.8k, False: 2.88k]
  ------------------
  589|  23.8k|		{
  590|  23.8k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  591|  23.8k|		}
  592|  3.28k|		else if ((subProto & 0xf0) == 0x60)
  ------------------
  |  Branch (592:12): [True: 1.92k, False: 1.36k]
  ------------------
  593|  1.92k|		{
  594|  1.92k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  595|  1.92k|		}
  596|  1.36k|		else
  597|  1.36k|		{
  598|  1.36k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  599|  1.36k|		}
  600|  27.1k|	}
_ZNK4pcpp10GtpV1Layer12getHeaderLenEv:
  603|  42.1k|	{
  604|  42.1k|		gtpv1_header* header = getHeader();
  605|  42.1k|		if (header == nullptr)
  ------------------
  |  Branch (605:7): [True: 0, False: 42.1k]
  ------------------
  606|      0|		{
  607|      0|			return 0;
  608|      0|		}
  609|       |
  610|  42.1k|		size_t res = sizeof(gtpv1_header);
  611|       |
  612|  42.1k|		if (header->messageType != GtpV1GpduMessageType)
  ------------------
  |  Branch (612:7): [True: 10.6k, False: 31.4k]
  ------------------
  613|  10.6k|		{
  614|  10.6k|			size_t msgLen = be16toh(header->messageLength);
  615|  10.6k|			res += (msgLen > m_DataLen - sizeof(gtpv1_header) ? m_DataLen - sizeof(gtpv1_header) : msgLen);
  ------------------
  |  Branch (615:12): [True: 8.72k, False: 1.94k]
  ------------------
  616|  10.6k|		}
  617|  31.4k|		else
  618|  31.4k|		{
  619|  31.4k|			gtpv1_header_extra* headerExtra = getHeaderExtra();
  620|  31.4k|			if (headerExtra != nullptr &&
  ------------------
  |  Branch (620:8): [True: 31.3k, False: 133]
  ------------------
  621|  31.3k|			    (header->extensionHeaderFlag == 1 || header->sequenceNumberFlag == 1 || header->npduNumberFlag == 1))
  ------------------
  |  Branch (621:9): [True: 3.46k, False: 27.8k]
  |  Branch (621:45): [True: 8.45k, False: 19.4k]
  |  Branch (621:80): [True: 2.80k, False: 16.6k]
  ------------------
  622|  14.7k|			{
  623|  14.7k|				res += sizeof(gtpv1_header_extra);
  624|  14.7k|				GtpExtension nextExt = getNextExtension();
  625|  15.8k|				while (!nextExt.isNull())
  ------------------
  |  Branch (625:12): [True: 1.14k, False: 14.7k]
  ------------------
  626|  1.14k|				{
  627|  1.14k|					res += nextExt.getTotalLength();
  628|  1.14k|					nextExt = nextExt.getNextExtension();
  629|  1.14k|				}
  630|  14.7k|			}
  631|  31.4k|		}
  632|       |
  633|  42.1k|		return res;
  634|  42.1k|	}
_ZNK4pcpp10GtpV1Layer8toStringEv:
  637|  10.0k|	{
  638|  10.0k|		std::string res = "GTP v1 Layer";
  639|       |
  640|  10.0k|		gtpv1_header* header = getHeader();
  641|  10.0k|		if (header != nullptr)
  ------------------
  |  Branch (641:7): [True: 10.0k, False: 0]
  ------------------
  642|  10.0k|		{
  643|  10.0k|			std::stringstream teidStream;
  644|  10.0k|			teidStream << be32toh(header->teid);
  645|       |
  646|  10.0k|			std::string gtpu_gtpc;
  647|  10.0k|			if (header->messageType == GtpV1GpduMessageType)
  ------------------
  |  Branch (647:8): [True: 6.71k, False: 3.34k]
  ------------------
  648|  6.71k|			{
  649|  6.71k|				gtpu_gtpc = "GTP-U message";
  650|  6.71k|			}
  651|  3.34k|			else
  652|  3.34k|			{
  653|  3.34k|				gtpu_gtpc = "GTP-C message: " + getMessageTypeAsString();
  654|  3.34k|			}
  655|       |
  656|  10.0k|			res += ", " + gtpu_gtpc + ", TEID: " + teidStream.str();
  657|  10.0k|		}
  658|       |
  659|  10.0k|		return res;
  660|  10.0k|	}
_ZN4pcpp10GtpV1Layer22computeCalculateFieldsEv:
  663|  5.03k|	{
  664|  5.03k|		gtpv1_header* hdr = getHeader();
  665|  5.03k|		if (hdr == nullptr)
  ------------------
  |  Branch (665:7): [True: 0, False: 5.03k]
  ------------------
  666|      0|		{
  667|      0|			return;
  668|      0|		}
  669|       |
  670|  5.03k|		hdr->messageLength = htobe16(m_DataLen - sizeof(gtpv1_header));
  671|  5.03k|	}
_ZNK4pcpp16GtpV2MessageType8toStringEv:
  771|      6|	{
  772|      6|		auto iter = messageTypeMap.find(m_Value);
  773|      6|		if (iter != messageTypeMap.end())
  ------------------
  |  Branch (773:7): [True: 0, False: 6]
  ------------------
  774|      0|		{
  775|      0|			return iter->second;
  776|      0|		}
  777|       |
  778|      6|		return "Unknown GTPv2 Message Type";
  779|      6|	}
_ZN4pcpp16GtpV2MessageType13fromUintValueEh:
  869|      6|	{
  870|      6|		auto iter = uintToValueMap.find(value);
  871|      6|		if (iter != uintToValueMap.end())
  ------------------
  |  Branch (871:7): [True: 0, False: 6]
  ------------------
  872|      0|		{
  873|      0|			return iter->second;
  874|      0|		}
  875|       |
  876|      6|		return Unknown;
  877|      6|	}
_ZN4pcpp10GtpV2Layer11isDataValidEPKhm:
 1017|     48|	{
 1018|     48|		if (!data || dataSize < sizeof(gtpv2_basic_header) + sizeof(uint32_t))
  ------------------
  |  Branch (1018:7): [True: 0, False: 48]
  |  Branch (1018:16): [True: 24, False: 24]
  ------------------
 1019|     24|		{
 1020|     24|			return false;
 1021|     24|		}
 1022|       |
 1023|     24|		auto* header = reinterpret_cast<const gtpv2_basic_header*>(data);
 1024|       |
 1025|     24|		if (header->version != 2)
  ------------------
  |  Branch (1025:7): [True: 0, False: 24]
  ------------------
 1026|      0|		{
 1027|      0|			return false;
 1028|      0|		}
 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|     24|		if (header->teidPresent && dataSize < sizeof(gtpv2_basic_header) + 2 * sizeof(uint32_t))
  ------------------
  |  Branch (1033:7): [True: 0, False: 24]
  |  Branch (1033:30): [True: 0, False: 0]
  ------------------
 1034|      0|		{
 1035|      0|			return false;
 1036|      0|		}
 1037|       |
 1038|     24|		return true;
 1039|     24|	}
_ZNK4pcpp10GtpV2Layer14getMessageTypeEv:
 1042|      6|	{
 1043|      6|		return GtpV2MessageType::fromUintValue(getHeader()->messageType);
 1044|      6|	}
_ZN4pcpp10GtpV2Layer14parseNextLayerEv:
 1306|     24|	{
 1307|     24|		auto headerLen = getHeaderLen();
 1308|     24|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (1308:7): [True: 16, False: 8]
  ------------------
 1309|     16|		{
 1310|     16|			return;
 1311|     16|		}
 1312|       |
 1313|      8|		auto* nextLayerData = m_Data + headerLen;
 1314|      8|		auto nextLayerDataLen = m_DataLen - headerLen;
 1315|       |
 1316|      8|		if (getHeader()->piggybacking)
  ------------------
  |  Branch (1316:7): [True: 8, False: 0]
  ------------------
 1317|      8|		{
 1318|      8|			tryConstructNextLayerWithFallback<GtpV2Layer, PayloadLayer>(nextLayerData, nextLayerDataLen);
 1319|      8|		}
 1320|      0|		else
 1321|      0|		{
 1322|      0|			constructNextLayer<PayloadLayer>(nextLayerData, nextLayerDataLen);
 1323|      0|		}
 1324|      8|	}
_ZNK4pcpp10GtpV2Layer12getHeaderLenEv:
 1327|     27|	{
 1328|     27|		auto messageLength = be16toh(getHeader()->messageLength) + sizeof(gtpv2_basic_header);
 1329|     27|		if (messageLength > m_DataLen)
  ------------------
  |  Branch (1329:7): [True: 18, False: 9]
  ------------------
 1330|     18|		{
 1331|     18|			return m_DataLen;
 1332|     18|		}
 1333|       |
 1334|      9|		return messageLength;
 1335|     27|	}
_ZN4pcpp10GtpV2Layer22computeCalculateFieldsEv:
 1338|      3|	{
 1339|      3|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (1339:7): [True: 0, False: 3]
  ------------------
 1340|      0|		{
 1341|      0|			return;
 1342|      0|		}
 1343|       |
 1344|      3|		if (m_NextLayer->getProtocol() == GTPv2)
  ------------------
  |  Branch (1344:7): [True: 0, False: 3]
  ------------------
 1345|      0|		{
 1346|      0|			getHeader()->piggybacking = 1;
 1347|      0|		}
 1348|      3|		else
 1349|      3|		{
 1350|      3|			getHeader()->piggybacking = 0;
 1351|      3|		}
 1352|      3|	}
_ZNK4pcpp10GtpV2Layer8toStringEv:
 1355|      6|	{
 1356|      6|		return "GTPv2 Layer, " + getMessageType().toString() + " message";
 1357|      6|	}
_ZNK4pcpp20GtpV2MessageTypeHashclERKNS_16GtpV2MessageTypeE:
  680|    170|		{
  681|    170|			return static_cast<uint8_t>(messageType);
  682|    170|		}

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

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

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

_ZN4pcpp9IPv4Layer17initLayerInPacketEb:
  181|   895k|	{
  182|   895k|		m_Protocol = IPv4;
  183|   895k|		m_NumOfTrailingBytes = 0;
  184|   895k|		m_TempHeaderExtension = 0;
  185|   895k|		if (setTotalLenAsDataLen)
  ------------------
  |  Branch (185:7): [True: 895k, False: 0]
  ------------------
  186|   895k|		{
  187|   895k|			size_t totalLen = be16toh(getIPv4Header()->totalLength);
  188|       |			// if totalLen == 0 this usually means TCP Segmentation Offload (TSO). In this case we should ignore the
  189|       |			// value of totalLen and look at the data captured on the wire
  190|   895k|			if ((totalLen < m_DataLen) && (totalLen != 0))
  ------------------
  |  Branch (190:8): [True: 183k, False: 712k]
  |  Branch (190:34): [True: 175k, False: 8.40k]
  ------------------
  191|   175k|			{
  192|   175k|				auto headerLen = (std::min)(getHeaderLen(), m_DataLen);
  193|       |				// Make sure totalLen is larger than header len, otherwise it's a malformed packet
  194|   175k|				m_DataLen = (std::max)(totalLen, headerLen);
  195|   175k|			}
  196|   895k|		}
  197|   895k|	}
_ZN4pcpp9IPv4LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  218|   895k|	    : Layer(data, dataLen, prevLayer, packet)
  219|   895k|	{
  220|   895k|		initLayerInPacket(true);
  221|   895k|	}
_ZN4pcpp9IPv4Layer14parseNextLayerEv:
  246|   895k|	{
  247|   895k|		size_t hdrLen = getHeaderLen();
  248|   895k|		if (m_DataLen <= hdrLen || hdrLen == 0)
  ------------------
  |  Branch (248:7): [True: 972, False: 894k]
  |  Branch (248:30): [True: 0, False: 894k]
  ------------------
  249|    972|			return;
  250|       |
  251|   894k|		iphdr* ipHdr = getIPv4Header();
  252|       |
  253|   894k|		uint8_t* payload = m_Data + hdrLen;
  254|   894k|		size_t payloadLen = m_DataLen - hdrLen;
  255|       |
  256|       |		// If it's a fragment don't parse upper layers, unless if it's the first fragment
  257|       |		// TODO: assuming first fragment contains at least L4 header, what if it's not true?
  258|   894k|		if (isFragment())
  ------------------
  |  Branch (258:7): [True: 8.59k, False: 886k]
  ------------------
  259|  8.59k|		{
  260|  8.59k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  261|  8.59k|			return;
  262|  8.59k|		}
  263|       |
  264|   886k|		switch (ipHdr->protocol)
  ------------------
  |  Branch (264:11): [True: 884k, False: 1.21k]
  ------------------
  265|   886k|		{
  266|   319k|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (266:3): [True: 319k, False: 566k]
  ------------------
  267|   319k|			tryConstructNextLayerWithFallback<UdpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  268|   319k|			break;
  269|   404k|		case PACKETPP_IPPROTO_TCP:
  ------------------
  |  Branch (269:3): [True: 404k, False: 481k]
  ------------------
  270|   404k|			tryConstructNextLayerWithFallback<TcpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  271|   404k|			break;
  272|  40.8k|		case PACKETPP_IPPROTO_ICMP:
  ------------------
  |  Branch (272:3): [True: 40.8k, False: 845k]
  ------------------
  273|  40.8k|			tryConstructNextLayerWithFallback<IcmpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  274|  40.8k|			break;
  275|  1.96k|		case PACKETPP_IPPROTO_IPIP:
  ------------------
  |  Branch (275:3): [True: 1.96k, False: 884k]
  ------------------
  276|  1.96k|		{
  277|       |			// todo: no tests for this case
  278|  1.96k|			switch (IPLayer::getIPVersion(payload, payloadLen))
  279|  1.96k|			{
  280|  1.82k|			case IPv4:
  ------------------
  |  Branch (280:4): [True: 1.82k, False: 146]
  ------------------
  281|  1.82k|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  282|  1.82k|				break;
  283|      0|			case IPv6:
  ------------------
  |  Branch (283:4): [True: 0, False: 1.96k]
  ------------------
  284|      0|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  285|      0|				break;
  286|    146|			default:
  ------------------
  |  Branch (286:4): [True: 146, False: 1.82k]
  ------------------
  287|    146|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  288|    146|				break;
  289|  1.96k|			}
  290|  1.96k|			break;
  291|  1.96k|		}
  292|  90.9k|		case PACKETPP_IPPROTO_GRE:
  ------------------
  |  Branch (292:3): [True: 90.9k, False: 795k]
  ------------------
  293|  90.9k|		{
  294|  90.9k|			switch (GreLayer::getGREVersion(payload, payloadLen))
  295|  90.9k|			{
  296|  3.78k|			case GREv0:
  ------------------
  |  Branch (296:4): [True: 3.78k, False: 87.1k]
  ------------------
  297|  3.78k|				tryConstructNextLayerWithFallback<GREv0Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  298|  3.78k|				break;
  299|  86.9k|			case GREv1:
  ------------------
  |  Branch (299:4): [True: 86.9k, False: 3.98k]
  ------------------
  300|  86.9k|				tryConstructNextLayerWithFallback<GREv1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  301|  86.9k|				break;
  302|    198|			default:
  ------------------
  |  Branch (302:4): [True: 198, False: 90.7k]
  ------------------
  303|    198|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  304|    198|				break;
  305|  90.9k|			};
  306|  90.9k|			break;
  307|  90.9k|		}
  308|  14.8k|		case PACKETPP_IPPROTO_IGMP:
  ------------------
  |  Branch (308:3): [True: 14.8k, False: 871k]
  ------------------
  309|  14.8k|		{
  310|  14.8k|			bool igmpQuery = false;
  311|  14.8k|			ProtocolType igmpVer = IgmpLayer::getIGMPVerFromData(
  312|  14.8k|			    payload, std::min<size_t>(payloadLen, be16toh(getIPv4Header()->totalLength) - hdrLen), igmpQuery);
  313|       |
  314|  14.8k|			switch (igmpVer)
  315|  14.8k|			{
  316|  3.10k|			case IGMPv1:
  ------------------
  |  Branch (316:4): [True: 3.10k, False: 11.6k]
  ------------------
  317|  3.10k|				tryConstructNextLayerWithFallback<IgmpV1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  318|  3.10k|				break;
  319|  7.30k|			case IGMPv2:
  ------------------
  |  Branch (319:4): [True: 7.30k, False: 7.49k]
  ------------------
  320|  7.30k|				tryConstructNextLayerWithFallback<IgmpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  321|  7.30k|				break;
  322|  3.87k|			case IGMPv3:
  ------------------
  |  Branch (322:4): [True: 3.87k, False: 10.9k]
  ------------------
  323|  3.87k|			{
  324|  3.87k|				if (igmpQuery)
  ------------------
  |  Branch (324:9): [True: 1.85k, False: 2.02k]
  ------------------
  325|  1.85k|					tryConstructNextLayerWithFallback<IgmpV3QueryLayer, PayloadLayer>(payload, payloadLen,
  326|  1.85k|					                                                                  getAttachedPacket());
  327|  2.02k|				else
  328|  2.02k|					tryConstructNextLayerWithFallback<IgmpV3ReportLayer, PayloadLayer>(payload, payloadLen,
  329|  2.02k|					                                                                   getAttachedPacket());
  330|  3.87k|				break;
  331|      0|			}
  332|    514|			default:
  ------------------
  |  Branch (332:4): [True: 514, False: 14.2k]
  ------------------
  333|    514|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  334|    514|				break;
  335|  14.8k|			}
  336|  14.8k|			break;
  337|  14.8k|		}
  338|  14.8k|		case PACKETPP_IPPROTO_AH:
  ------------------
  |  Branch (338:3): [True: 4.35k, False: 881k]
  ------------------
  339|  4.35k|			tryConstructNextLayerWithFallback<AuthenticationHeaderLayer, PayloadLayer>(payload, payloadLen,
  340|  4.35k|			                                                                           getAttachedPacket());
  341|  4.35k|			break;
  342|  2.14k|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (342:3): [True: 2.14k, False: 883k]
  ------------------
  343|  2.14k|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  344|  2.14k|			break;
  345|    130|		case PACKETPP_IPPROTO_IPV6:
  ------------------
  |  Branch (345:3): [True: 130, False: 885k]
  ------------------
  346|    130|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  347|    130|			break;
  348|  5.53k|		case PACKETPP_IPPROTO_VRRP:
  ------------------
  |  Branch (348:3): [True: 5.53k, False: 880k]
  ------------------
  349|  5.53k|		{
  350|  5.53k|			switch (VrrpLayer::getVersionFromData(payload, payloadLen))
  351|  5.53k|			{
  352|  2.84k|			case VRRPv2:
  ------------------
  |  Branch (352:4): [True: 2.84k, False: 2.68k]
  ------------------
  353|  2.84k|				tryConstructNextLayerWithFallback<VrrpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  354|  2.84k|				break;
  355|  2.53k|			case VRRPv3:
  ------------------
  |  Branch (355:4): [True: 2.53k, False: 2.99k]
  ------------------
  356|  2.53k|				tryConstructNextLayerWithFallback<VrrpV3Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket(),
  357|  2.53k|				                                                             IPAddress::IPv4AddressType);
  358|  2.53k|				break;
  359|    147|			default:
  ------------------
  |  Branch (359:4): [True: 147, False: 5.38k]
  ------------------
  360|    147|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  361|    147|				break;
  362|  5.53k|			}
  363|  5.53k|			break;
  364|  5.53k|		}
  365|   886k|		}
  366|       |
  367|       |		// If no next layer was constructed, assume it's a payload layer
  368|   886k|		if (!hasNextLayer())
  ------------------
  |  Branch (368:7): [True: 1.21k, False: 884k]
  ------------------
  369|  1.21k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  370|   886k|	}
_ZN4pcpp9IPv4Layer22computeCalculateFieldsEv:
  373|   147k|	{
  374|   147k|		auto* ipHdr = getIPv4Header();
  375|   147k|		ipHdr->ipVersion = (4 & 0x0f);
  376|   147k|		ipHdr->totalLength = htobe16(m_DataLen);
  377|   147k|		ipHdr->headerChecksum = 0;
  378|       |
  379|   147k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (379:7): [True: 147k, False: 162]
  ------------------
  380|   147k|		{
  381|   147k|			switch (m_NextLayer->getProtocol())
  382|   147k|			{
  383|  73.2k|			case TCP:
  ------------------
  |  Branch (383:4): [True: 73.2k, False: 73.8k]
  ------------------
  384|  73.2k|				ipHdr->protocol = PACKETPP_IPPROTO_TCP;
  385|  73.2k|				break;
  386|  47.8k|			case UDP:
  ------------------
  |  Branch (386:4): [True: 47.8k, False: 99.2k]
  ------------------
  387|  47.8k|				ipHdr->protocol = PACKETPP_IPPROTO_UDP;
  388|  47.8k|				break;
  389|  7.39k|			case ICMP:
  ------------------
  |  Branch (389:4): [True: 7.39k, False: 139k]
  ------------------
  390|  7.39k|				ipHdr->protocol = PACKETPP_IPPROTO_ICMP;
  391|  7.39k|				break;
  392|    718|			case GREv0:
  ------------------
  |  Branch (392:4): [True: 718, False: 146k]
  ------------------
  393|  9.08k|			case GREv1:
  ------------------
  |  Branch (393:4): [True: 8.37k, False: 138k]
  ------------------
  394|  9.08k|				ipHdr->protocol = PACKETPP_IPPROTO_GRE;
  395|  9.08k|				break;
  396|    630|			case IGMPv1:
  ------------------
  |  Branch (396:4): [True: 630, False: 146k]
  ------------------
  397|  2.09k|			case IGMPv2:
  ------------------
  |  Branch (397:4): [True: 1.46k, False: 145k]
  ------------------
  398|  2.96k|			case IGMPv3:
  ------------------
  |  Branch (398:4): [True: 869, False: 146k]
  ------------------
  399|  2.96k|				ipHdr->protocol = PACKETPP_IPPROTO_IGMP;
  400|  2.96k|				break;
  401|    694|			case VRRPv2:
  ------------------
  |  Branch (401:4): [True: 694, False: 146k]
  ------------------
  402|  1.30k|			case VRRPv3:
  ------------------
  |  Branch (402:4): [True: 608, False: 146k]
  ------------------
  403|  1.30k|				ipHdr->protocol = PACKETPP_IPPROTO_VRRP;
  404|  1.30k|				break;
  405|  5.23k|			default:
  ------------------
  |  Branch (405:4): [True: 5.23k, False: 141k]
  ------------------
  406|  5.23k|				break;
  407|   147k|			}
  408|   147k|		}
  409|       |
  410|   147k|		auto headerLen = (std::min)(static_cast<size_t>(ipHdr->internetHeaderLength * 4), m_DataLen);
  411|   147k|		ScalarBuffer<uint16_t> scalar = { reinterpret_cast<uint16_t*>(ipHdr), headerLen };
  412|       |		ipHdr->headerChecksum = htobe16(computeChecksum(&scalar, 1));
  413|   147k|	}
_ZNK4pcpp9IPv4Layer10isFragmentEv:
  416|  1.19M|	{
  417|  1.19M|		return ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) != 0 || getFragmentOffset() != 0);
  ------------------
  |  |  154|  1.19M|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (417:11): [True: 4.87k, False: 1.19M]
  |  Branch (417:65): [True: 13.0k, False: 1.17M]
  ------------------
  418|  1.19M|	}
_ZNK4pcpp9IPv4Layer15isFirstFragmentEv:
  421|  3.17k|	{
  422|  3.17k|		return isFragment() && (getFragmentOffset() == 0);
  ------------------
  |  Branch (422:10): [True: 3.17k, False: 0]
  |  Branch (422:26): [True: 186, False: 2.99k]
  ------------------
  423|  3.17k|	}
_ZNK4pcpp9IPv4Layer14isLastFragmentEv:
  426|  2.99k|	{
  427|  2.99k|		return isFragment() && ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) == 0);
  ------------------
  |  |  154|  2.99k|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (427:10): [True: 2.99k, False: 0]
  |  Branch (427:26): [True: 2.20k, False: 784]
  ------------------
  428|  2.99k|	}
_ZNK4pcpp9IPv4Layer16getFragmentFlagsEv:
  431|  1.19M|	{
  432|  1.19M|		return getIPv4Header()->fragmentOffset & 0xE0;
  433|  1.19M|	}
_ZNK4pcpp9IPv4Layer17getFragmentOffsetEv:
  436|  1.19M|	{
  437|       |		return be16toh(getIPv4Header()->fragmentOffset & (uint16_t)0xFF1F) * 8;
  438|  1.19M|	}
_ZNK4pcpp9IPv4Layer8toStringEv:
  441|   294k|	{
  442|   294k|		std::string fragment = "";
  443|   294k|		if (isFragment())
  ------------------
  |  Branch (443:7): [True: 3.17k, False: 291k]
  ------------------
  444|  3.17k|		{
  445|  3.17k|			if (isFirstFragment())
  ------------------
  |  Branch (445:8): [True: 186, False: 2.99k]
  ------------------
  446|    186|				fragment = "First fragment";
  447|  2.99k|			else if (isLastFragment())
  ------------------
  |  Branch (447:13): [True: 2.20k, False: 784]
  ------------------
  448|  2.20k|				fragment = "Last fragment";
  449|    784|			else
  450|    784|				fragment = "Fragment";
  451|       |
  452|  3.17k|			std::stringstream sstm;
  453|  3.17k|			sstm << fragment << " [offset= " << getFragmentOffset() << "], ";
  454|  3.17k|			fragment = sstm.str();
  455|  3.17k|		}
  456|       |
  457|   294k|		return "IPv4 Layer, " + fragment + "Src: " + getSrcIPv4Address().toString() +
  458|   294k|		       ", Dst: " + getDstIPv4Address().toString();
  459|   294k|	}

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

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

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

_ZN4pcpp11IcmpV6Layer16parseIcmpV6LayerEPhmPNS_5LayerEPNS_6PacketE:
   18|  3.64k|	{
   19|  3.64k|		if (dataLen < sizeof(icmpv6hdr))
  ------------------
  |  Branch (19:7): [True: 0, False: 3.64k]
  ------------------
   20|      0|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   21|       |
   22|  3.64k|		icmpv6hdr* hdr = (icmpv6hdr*)data;
   23|  3.64k|		ICMPv6MessageType messageType = static_cast<ICMPv6MessageType>(hdr->type);
   24|       |
   25|  3.64k|		switch (messageType)
   26|  3.64k|		{
   27|      0|		case ICMPv6MessageType::ICMPv6_ECHO_REQUEST:
  ------------------
  |  Branch (27:3): [True: 0, False: 3.64k]
  ------------------
   28|    902|		case ICMPv6MessageType::ICMPv6_ECHO_REPLY:
  ------------------
  |  Branch (28:3): [True: 902, False: 2.74k]
  ------------------
   29|    902|			return new ICMPv6EchoLayer(data, dataLen, prevLayer, packet);
   30|  1.23k|		case ICMPv6MessageType::ICMPv6_NEIGHBOR_SOLICITATION:
  ------------------
  |  Branch (30:3): [True: 1.23k, False: 2.40k]
  ------------------
   31|  1.23k|			if (!NDPNeighborSolicitationLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (31:8): [True: 4, False: 1.23k]
  ------------------
   32|      4|				return new IcmpV6Layer(data, dataLen, prevLayer, packet);
   33|  1.23k|			return new NDPNeighborSolicitationLayer(data, dataLen, prevLayer, packet);
   34|     12|		case ICMPv6MessageType::ICMPv6_NEIGHBOR_ADVERTISEMENT:
  ------------------
  |  Branch (34:3): [True: 12, False: 3.63k]
  ------------------
   35|     12|			if (!NDPNeighborAdvertisementLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (35:8): [True: 0, False: 12]
  ------------------
   36|      0|				return new IcmpV6Layer(data, dataLen, prevLayer, packet);
   37|     12|			return new NDPNeighborAdvertisementLayer(data, dataLen, prevLayer, packet);
   38|    128|		case ICMPv6MessageType::ICMPv6_UNKNOWN_MESSAGE:
  ------------------
  |  Branch (38:3): [True: 128, False: 3.51k]
  ------------------
   39|    128|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   40|  1.36k|		default:
  ------------------
  |  Branch (40:3): [True: 1.36k, False: 2.28k]
  ------------------
   41|  1.36k|			return new IcmpV6Layer(data, dataLen, prevLayer, packet);
   42|  3.64k|		}
   43|  3.64k|	}
_ZNK4pcpp11IcmpV6Layer14getMessageTypeEv:
   59|  1.11k|	{
   60|  1.11k|		return static_cast<ICMPv6MessageType>(getIcmpv6Header()->type);
   61|  1.11k|	}
_ZN4pcpp11IcmpV6Layer22computeCalculateFieldsEv:
   74|    869|	{
   75|    869|		calculateChecksum();
   76|    869|	}
_ZN4pcpp11IcmpV6Layer17calculateChecksumEv:
   79|    869|	{
   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|    869|		getIcmpv6Header()->checksum = 0;
   87|       |
   88|    869|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (88:7): [True: 869, False: 0]
  ------------------
   89|    869|		{
   90|    869|			auto prevLayerAsIPv6 = static_cast<IPv6Layer*>(m_PrevLayer);
   91|       |
   92|    869|			ScalarBuffer<uint16_t> vec[2];
   93|       |
   94|    869|			vec[0].buffer = (uint16_t*)m_Data;
   95|    869|			vec[0].len = m_DataLen;
   96|       |
   97|    869|			const unsigned int pseudoHeaderLen = 40;
   98|    869|			const unsigned int bigEndianLen = htobe32(m_DataLen);
   99|    869|			const unsigned int bigEndianNextHeader = htobe32(PACKETPP_IPPROTO_ICMPV6);
  100|       |
  101|    869|			uint16_t pseudoHeader[pseudoHeaderLen / 2];
  102|    869|			prevLayerAsIPv6->getSrcIPv6Address().copyTo(reinterpret_cast<uint8_t*>(pseudoHeader));
  103|    869|			prevLayerAsIPv6->getDstIPv6Address().copyTo(reinterpret_cast<uint8_t*>(pseudoHeader + 8));
  104|    869|			memcpy(&pseudoHeader[16], &bigEndianLen, sizeof(uint32_t));
  105|    869|			memcpy(&pseudoHeader[18], &bigEndianNextHeader, sizeof(uint32_t));
  106|    869|			vec[1].buffer = pseudoHeader;
  107|    869|			vec[1].len = pseudoHeaderLen;
  108|       |
  109|       |			// Calculate and write checksum
  110|       |			getIcmpv6Header()->checksum = htobe16(computeChecksum(vec, 2));
  111|    869|		}
  112|    869|	}
_ZNK4pcpp11IcmpV6Layer8toStringEv:
  115|    670|	{
  116|    670|		std::ostringstream typeStream;
  117|    670|		typeStream << (int)getMessageType();
  118|    670|		return "ICMPv6 Layer, Message type: " + typeStream.str();
  119|    670|	}
_ZNK4pcpp15ICMPv6EchoLayer8toStringEv:
  164|    448|	{
  165|    448|		std::ostringstream typeStream;
  166|    448|		typeStream << (int)getMessageType();
  167|    448|		return "ICMPv6 Layer, Echo Request/Reply Message (type: " + typeStream.str() + ")";
  168|    448|	}

_ZNK4pcpp9IgmpLayer7getTypeEv:
   30|  5.92k|	{
   31|  5.92k|		uint8_t type = getIgmpHeader()->type;
   32|  5.92k|		if (type < (uint8_t)IgmpType_MembershipQuery ||
  ------------------
  |  Branch (32:7): [True: 0, False: 5.92k]
  ------------------
   33|  5.92k|		    (type > (uint8_t)IgmpType_LeaveGroup && type < (uint8_t)IgmpType_MulticastTracerouteResponse) ||
  ------------------
  |  Branch (33:8): [True: 812, False: 5.11k]
  |  Branch (33:47): [True: 0, False: 812]
  ------------------
   34|  5.92k|		    (type > (uint8_t)IgmpType_MulticastTraceroute && type < (uint8_t)IgmpType_MembershipReportV3) ||
  ------------------
  |  Branch (34:8): [True: 812, False: 5.11k]
  |  Branch (34:56): [True: 0, False: 812]
  ------------------
   35|  5.92k|		    (type > (uint8_t)IgmpType_MembershipReportV3 && type < (uint8_t)IgmpType_MulticastRouterAdvertisement) ||
  ------------------
  |  Branch (35:8): [True: 0, False: 5.92k]
  |  Branch (35:55): [True: 0, False: 0]
  ------------------
   36|  5.92k|		    type > IgmpType_MulticastRouterTermination)
  ------------------
  |  Branch (36:7): [True: 0, False: 5.92k]
  ------------------
   37|      0|		{
   38|      0|			return IgmpType_Unknown;
   39|      0|		}
   40|       |
   41|  5.92k|		return (IgmpType)type;
   42|  5.92k|	}
_ZN4pcpp9IgmpLayer18getIGMPVerFromDataEPhmRb:
   54|  14.8k|	{
   55|  14.8k|		isQuery = false;
   56|       |
   57|  14.8k|		if (dataLen < 8 || data == nullptr)
  ------------------
  |  Branch (57:7): [True: 135, False: 14.6k]
  |  Branch (57:22): [True: 0, False: 14.6k]
  ------------------
   58|    135|			return UnknownProtocol;
   59|       |
   60|  14.6k|		switch ((int)data[0])
   61|  14.6k|		{
   62|  1.46k|		case IgmpType_MembershipReportV2:
  ------------------
  |  Branch (62:3): [True: 1.46k, False: 13.1k]
  ------------------
   63|  4.08k|		case IgmpType_LeaveGroup:
  ------------------
  |  Branch (63:3): [True: 2.62k, False: 12.0k]
  ------------------
   64|  4.08k|			return IGMPv2;
   65|  1.35k|		case IgmpType_MembershipReportV1:
  ------------------
  |  Branch (65:3): [True: 1.35k, False: 13.3k]
  ------------------
   66|  1.35k|			return IGMPv1;
   67|  2.02k|		case IgmpType_MembershipReportV3:
  ------------------
  |  Branch (67:3): [True: 2.02k, False: 12.6k]
  ------------------
   68|  2.02k|			return IGMPv3;
   69|  6.82k|		case IgmpType_MembershipQuery:
  ------------------
  |  Branch (69:3): [True: 6.82k, False: 7.84k]
  ------------------
   70|  6.82k|		{
   71|  6.82k|			isQuery = true;
   72|       |
   73|  6.82k|			if (dataLen >= sizeof(igmpv3_query_header))
  ------------------
  |  Branch (73:8): [True: 1.85k, False: 4.96k]
  ------------------
   74|  1.85k|				return IGMPv3;
   75|       |
   76|  4.96k|			if (data[1] == 0)
  ------------------
  |  Branch (76:8): [True: 1.75k, False: 3.21k]
  ------------------
   77|  1.75k|				return IGMPv1;
   78|  3.21k|			else
   79|  3.21k|				return IGMPv2;
   80|  4.96k|		}
   81|    379|		default:
  ------------------
  |  Branch (81:3): [True: 379, False: 14.2k]
  ------------------
   82|    379|			return UnknownProtocol;
   83|  14.6k|		}
   84|  14.6k|	}
_ZN4pcpp9IgmpLayer17calculateChecksumEv:
   87|  2.96k|	{
   88|  2.96k|		ScalarBuffer<uint16_t> buffer;
   89|  2.96k|		buffer.buffer = reinterpret_cast<uint16_t*>(getIgmpHeader());
   90|  2.96k|		buffer.len = getHeaderLen();
   91|  2.96k|		return computeChecksum(&buffer, 1);
   92|  2.96k|	}
_ZNK4pcpp9IgmpLayer8toStringEv:
  111|  5.92k|	{
  112|  5.92k|		std::string igmpVer = "";
  113|  5.92k|		switch (getProtocol())
  114|  5.92k|		{
  115|  1.26k|		case IGMPv1:
  ------------------
  |  Branch (115:3): [True: 1.26k, False: 4.66k]
  ------------------
  116|  1.26k|			igmpVer = "1";
  117|  1.26k|			break;
  118|  2.93k|		case IGMPv2:
  ------------------
  |  Branch (118:3): [True: 2.93k, False: 2.99k]
  ------------------
  119|  2.93k|			igmpVer = "2";
  120|  2.93k|			break;
  121|  1.73k|		default:
  ------------------
  |  Branch (121:3): [True: 1.73k, False: 4.19k]
  ------------------
  122|  1.73k|			igmpVer = "3";
  123|  5.92k|		}
  124|       |
  125|  5.92k|		std::string msgType;
  126|       |
  127|  5.92k|		switch (getType())
  128|  5.92k|		{
  129|  2.91k|		case IgmpType_MembershipQuery:
  ------------------
  |  Branch (129:3): [True: 2.91k, False: 3.01k]
  ------------------
  130|  2.91k|			msgType = "Membership Query";
  131|  2.91k|			break;
  132|    560|		case IgmpType_MembershipReportV1:
  ------------------
  |  Branch (132:3): [True: 560, False: 5.36k]
  ------------------
  133|    560|			msgType = "Membership Report";
  134|    560|			break;
  135|      0|		case IgmpType_DVMRP:
  ------------------
  |  Branch (135:3): [True: 0, False: 5.92k]
  ------------------
  136|      0|			msgType = "DVMRP";
  137|      0|			break;
  138|      0|		case IgmpType_P1Mv1:
  ------------------
  |  Branch (138:3): [True: 0, False: 5.92k]
  ------------------
  139|      0|			msgType = "PIMv1";
  140|      0|			break;
  141|      0|		case IgmpType_CiscoTrace:
  ------------------
  |  Branch (141:3): [True: 0, False: 5.92k]
  ------------------
  142|      0|			msgType = "Cisco Trace";
  143|      0|			break;
  144|    592|		case IgmpType_MembershipReportV2:
  ------------------
  |  Branch (144:3): [True: 592, False: 5.33k]
  ------------------
  145|    592|			msgType = "Membership Report";
  146|    592|			break;
  147|  1.05k|		case IgmpType_LeaveGroup:
  ------------------
  |  Branch (147:3): [True: 1.05k, False: 4.87k]
  ------------------
  148|  1.05k|			msgType = "Leave Group";
  149|  1.05k|			break;
  150|      0|		case IgmpType_MulticastTracerouteResponse:
  ------------------
  |  Branch (150:3): [True: 0, False: 5.92k]
  ------------------
  151|      0|			msgType = "Multicast Traceroute Response";
  152|      0|			break;
  153|      0|		case IgmpType_MulticastTraceroute:
  ------------------
  |  Branch (153:3): [True: 0, False: 5.92k]
  ------------------
  154|      0|			msgType = "Multicast Traceroute";
  155|      0|			break;
  156|    812|		case IgmpType_MembershipReportV3:
  ------------------
  |  Branch (156:3): [True: 812, False: 5.11k]
  ------------------
  157|    812|			msgType = "Membership Report";
  158|    812|			break;
  159|      0|		case IgmpType_MulticastRouterAdvertisement:
  ------------------
  |  Branch (159:3): [True: 0, False: 5.92k]
  ------------------
  160|      0|			msgType = "Multicast Router Advertisement";
  161|      0|			break;
  162|      0|		case IgmpType_MulticastRouterSolicitation:
  ------------------
  |  Branch (162:3): [True: 0, False: 5.92k]
  ------------------
  163|      0|			msgType = "Multicast Router Solicitation";
  164|      0|			break;
  165|      0|		case IgmpType_MulticastRouterTermination:
  ------------------
  |  Branch (165:3): [True: 0, False: 5.92k]
  ------------------
  166|      0|			msgType = "Multicast Router Termination";
  167|      0|			break;
  168|      0|		default:
  ------------------
  |  Branch (168:3): [True: 0, False: 5.92k]
  ------------------
  169|      0|			msgType = "Unknown";
  170|      0|			break;
  171|  5.92k|		}
  172|       |
  173|  5.92k|		std::string result = "IGMPv" + igmpVer + " Layer, " + msgType + " message";
  174|  5.92k|		return result;
  175|  5.92k|	}
_ZN4pcpp11IgmpV1Layer22computeCalculateFieldsEv:
  180|    630|	{
  181|    630|		igmp_header* hdr = getIgmpHeader();
  182|    630|		hdr->checksum = 0;
  183|       |		hdr->checksum = htobe16(calculateChecksum());
  184|    630|		hdr->maxResponseTime = 0;
  185|    630|	}
_ZN4pcpp11IgmpV2Layer22computeCalculateFieldsEv:
  190|  1.46k|	{
  191|  1.46k|		igmp_header* hdr = getIgmpHeader();
  192|  1.46k|		hdr->checksum = 0;
  193|       |		hdr->checksum = htobe16(calculateChecksum());
  194|  1.46k|	}
_ZN4pcpp16IgmpV3QueryLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  199|  1.85k|	    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv3)
  200|  1.85k|	{}
_ZNK4pcpp16IgmpV3QueryLayer21getSourceAddressCountEv:
  209|    926|	{
  210|       |		return be16toh(getIgmpV3QueryHeader()->numOfSources);
  211|    926|	}
_ZNK4pcpp16IgmpV3QueryLayer12getHeaderLenEv:
  229|    926|	{
  230|    926|		uint16_t numOfSources = getSourceAddressCount();
  231|       |
  232|    926|		int headerLen = numOfSources * sizeof(uint32_t) + sizeof(igmpv3_query_header);
  233|       |
  234|       |		// verify numOfRecords is a reasonable number that points to data within the packet
  235|    926|		if ((size_t)headerLen > getDataLen())
  ------------------
  |  Branch (235:7): [True: 150, False: 776]
  ------------------
  236|    150|			return getDataLen();
  237|       |
  238|    776|		return (size_t)headerLen;
  239|    926|	}
_ZN4pcpp16IgmpV3QueryLayer22computeCalculateFieldsEv:
  242|    463|	{
  243|    463|		igmpv3_query_header* hdr = getIgmpV3QueryHeader();
  244|    463|		hdr->checksum = 0;
  245|       |		hdr->checksum = htobe16(calculateChecksum());
  246|    463|	}
_ZN4pcpp17IgmpV3ReportLayer22computeCalculateFieldsEv:
  364|    406|	{
  365|    406|		igmpv3_report_header* hdr = getReportHeader();
  366|    406|		hdr->checksum = 0;
  367|       |		hdr->checksum = htobe16(calculateChecksum());
  368|    406|	}

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

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

_ZNK4pcpp17LdapOperationType8toStringEv:
   64|  16.8k|	{
   65|  16.8k|		return LdapOperationTypeToString.at(m_Value);
   66|  16.8k|	}
_ZN4pcpp17LdapOperationType13fromUintValueEh:
   69|  70.2k|	{
   70|  70.2k|		auto result = UintToLdapOperationType.find(value);
   71|  70.2k|		if (result != UintToLdapOperationType.end())
  ------------------
  |  Branch (71:7): [True: 68.7k, False: 1.50k]
  ------------------
   72|  68.7k|		{
   73|  68.7k|			return result->second;
   74|  68.7k|		}
   75|       |
   76|  1.50k|		return LdapOperationType::Unknown;
   77|  70.2k|	}
_ZNK4pcpp14LdapResultCode8toStringEv:
  172|  4.42k|	{
  173|  4.42k|		return LdapResultCodeToString.at(m_Value);
  174|  4.42k|	}
_ZN4pcpp14LdapResultCode13fromUintValueEh:
  177|  4.42k|	{
  178|  4.42k|		auto result = UintToLdapResultCode.find(value);
  179|  4.42k|		if (result != UintToLdapResultCode.end())
  ------------------
  |  Branch (179:7): [True: 4.42k, False: 0]
  ------------------
  180|  4.42k|		{
  181|  4.42k|			return result->second;
  182|  4.42k|		}
  183|       |
  184|      0|		return LdapResultCode::Unknown;
  185|  4.42k|	}
_ZN4pcpp9LdapLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  199|  53.9k|	    : Layer(data, dataLen, prevLayer, packet, LDAP)
  200|  53.9k|	{
  201|  53.9k|		m_Asn1Record = std::move(asn1Record);
  202|  53.9k|	}
_ZNK4pcpp9LdapLayer8toStringEv:
  258|  16.8k|	{
  259|  16.8k|		auto extendedInfo = getExtendedInfoString();
  260|  16.8k|		return "LDAP Layer, " + getLdapOperationType().toString() + (extendedInfo.empty() ? "" : ", " + extendedInfo);
  ------------------
  |  Branch (260:64): [True: 10.0k, False: 6.76k]
  ------------------
  261|  16.8k|	}
_ZN4pcpp9LdapLayer16parseLdapMessageEPhmPNS_5LayerEPNS_6PacketE:
  264|  66.3k|	{
  265|  66.3k|		try
  266|  66.3k|		{
  267|  66.3k|			auto asn1Record = Asn1Record::decode(data, dataLen, true);
  268|  66.3k|			auto operationType = LdapOperationType::fromUintValue(
  269|  66.3k|			    asn1Record->castAs<Asn1SequenceRecord>()->getSubRecords().at(operationTypeIndex)->getTagType());
  270|  66.3k|			switch (operationType)
  271|  66.3k|			{
  272|  3.27k|			case LdapOperationType::BindRequest:
  ------------------
  |  Branch (272:4): [True: 3.27k, False: 63.0k]
  ------------------
  273|  3.27k|				return new LdapBindRequestLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  274|    555|			case LdapOperationType::BindResponse:
  ------------------
  |  Branch (274:4): [True: 555, False: 65.8k]
  ------------------
  275|    555|				return new LdapBindResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  276|  4.05k|			case LdapOperationType::UnbindRequest:
  ------------------
  |  Branch (276:4): [True: 4.05k, False: 62.3k]
  ------------------
  277|  4.05k|				return new LdapUnbindRequestLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  278|  2.59k|			case LdapOperationType::SearchRequest:
  ------------------
  |  Branch (278:4): [True: 2.59k, False: 63.7k]
  ------------------
  279|  2.59k|				return new LdapSearchRequestLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  280|  1.41k|			case LdapOperationType::SearchResultEntry:
  ------------------
  |  Branch (280:4): [True: 1.41k, False: 64.9k]
  ------------------
  281|  1.41k|				return new LdapSearchResultEntryLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  282|  7.95k|			case LdapOperationType::SearchResultDone:
  ------------------
  |  Branch (282:4): [True: 7.95k, False: 58.4k]
  ------------------
  283|  7.95k|				return new LdapSearchResultDoneLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  284|  1.26k|			case LdapOperationType::ModifyResponse:
  ------------------
  |  Branch (284:4): [True: 1.26k, False: 65.1k]
  ------------------
  285|  1.26k|				return new LdapModifyResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  286|     15|			case LdapOperationType::AddResponse:
  ------------------
  |  Branch (286:4): [True: 15, False: 66.3k]
  ------------------
  287|     15|				return new LdapAddResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  288|    158|			case LdapOperationType::DeleteResponse:
  ------------------
  |  Branch (288:4): [True: 158, False: 66.2k]
  ------------------
  289|    158|				return new LdapDeleteResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  290|  2.41k|			case LdapOperationType::ModifyDNResponse:
  ------------------
  |  Branch (290:4): [True: 2.41k, False: 63.9k]
  ------------------
  291|  2.41k|				return new LdapModifyDNResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  292|  1.30k|			case LdapOperationType::CompareResponse:
  ------------------
  |  Branch (292:4): [True: 1.30k, False: 65.0k]
  ------------------
  293|  1.30k|				return new LdapCompareResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  294|  1.06k|			case LdapOperationType::Unknown:
  ------------------
  |  Branch (294:4): [True: 1.06k, False: 65.3k]
  ------------------
  295|  1.06k|				return nullptr;
  296|  28.9k|			default:
  ------------------
  |  Branch (296:4): [True: 28.9k, False: 37.3k]
  ------------------
  297|  28.9k|				return new LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  298|  66.3k|			}
  299|  66.3k|		}
  300|  66.3k|		catch (...)
  301|  66.3k|		{
  302|  11.3k|			return nullptr;
  303|  11.3k|		}
  304|  66.3k|	}
_ZNK4pcpp9LdapLayer17getRootAsn1RecordEv:
  307|  24.3k|	{
  308|  24.3k|		return m_Asn1Record->castAs<Asn1SequenceRecord>();
  309|  24.3k|	}
_ZNK4pcpp9LdapLayer26getLdapOperationAsn1RecordEv:
  312|  24.3k|	{
  313|  24.3k|		return getRootAsn1Record()->getSubRecords().at(operationTypeIndex)->castAs<Asn1ConstructedRecord>();
  314|  24.3k|	}
_ZNK4pcpp9LdapLayer20getLdapOperationTypeEv:
  352|  15.2k|	{
  353|  15.2k|		uint8_t tagType;
  354|  15.2k|		try
  355|  15.2k|		{
  356|  15.2k|			tagType = getLdapOperationAsn1Record()->getTagType();
  357|  15.2k|		}
  358|  15.2k|		catch (...)
  359|  15.2k|		{
  360|    440|			tagType = LdapOperationType::Unknown;
  361|    440|		}
  362|       |
  363|  15.2k|		return LdapOperationType::fromUintValue(tagType);
  364|  15.2k|	}
_ZN4pcpp9LdapLayer14parseNextLayerEv:
  367|  53.9k|	{
  368|  53.9k|		size_t headerLen = getHeaderLen();
  369|  53.9k|		if (m_DataLen <= headerLen || headerLen == 0)
  ------------------
  |  Branch (369:7): [True: 28.1k, False: 25.7k]
  |  Branch (369:33): [True: 0, False: 25.7k]
  ------------------
  370|  28.1k|			return;
  371|       |
  372|  25.7k|		uint8_t* payload = m_Data + headerLen;
  373|  25.7k|		size_t payloadLen = m_DataLen - headerLen;
  374|       |
  375|  25.7k|		constructNextLayerFromFactory(LdapLayer::parseLdapMessage, payload, payloadLen);
  376|  25.7k|	}
_ZNK4pcpp17LdapResponseLayer13getResultCodeEv:
  427|  4.42k|	{
  428|  4.42k|		return LdapResultCode::fromUintValue(getLdapOperationAsn1Record()
  429|  4.42k|		                                         ->getSubRecords()
  430|  4.42k|		                                         .at(resultCodeIndex)
  431|  4.42k|		                                         ->castAs<Asn1EnumeratedRecord>()
  432|  4.42k|		                                         ->getIntValue<uint8_t>());
  433|  4.42k|	}
_ZNK4pcpp17LdapResponseLayer21getExtendedInfoStringEv:
  477|  4.42k|	{
  478|  4.42k|		return getResultCode().toString();
  479|  4.42k|	}
_ZNK4pcpp20LdapBindRequestLayer21getAuthenticationTypeEv:
  548|  1.30k|	{
  549|  1.30k|		if (getLdapOperationAsn1Record()->getSubRecords().size() <= credentialIndex)
  ------------------
  |  Branch (549:7): [True: 0, False: 1.30k]
  ------------------
  550|      0|		{
  551|      0|			return LdapBindRequestLayer::AuthenticationType::NotApplicable;
  552|      0|		}
  553|       |
  554|  1.30k|		auto authType = getLdapOperationAsn1Record()->getSubRecords().at(credentialIndex)->getTagType();
  555|  1.30k|		switch (authType)
  556|  1.30k|		{
  557|  1.23k|		case 0:
  ------------------
  |  Branch (557:3): [True: 1.23k, False: 76]
  ------------------
  558|  1.23k|			return LdapBindRequestLayer::AuthenticationType::Simple;
  559|     68|		case 3:
  ------------------
  |  Branch (559:3): [True: 68, False: 1.24k]
  ------------------
  560|     68|			return LdapBindRequestLayer::AuthenticationType::Sasl;
  561|      8|		default:
  ------------------
  |  Branch (561:3): [True: 8, False: 1.30k]
  ------------------
  562|      8|			return LdapBindRequestLayer::AuthenticationType::NotApplicable;
  563|  1.30k|		}
  564|  1.30k|	}
_ZNK4pcpp20LdapBindRequestLayer21getExtendedInfoStringEv:
  605|  1.30k|	{
  606|  1.30k|		switch (getAuthenticationType())
  607|  1.30k|		{
  608|  1.23k|		case AuthenticationType::Simple:
  ------------------
  |  Branch (608:3): [True: 1.23k, False: 76]
  ------------------
  609|  1.23k|			return "simple";
  610|     68|		case AuthenticationType::Sasl:
  ------------------
  |  Branch (610:3): [True: 68, False: 1.24k]
  ------------------
  611|     68|			return "sasl";
  612|      8|		default:
  ------------------
  |  Branch (612:3): [True: 8, False: 1.30k]
  ------------------
  613|      8|			return "Unknown";
  614|  1.30k|		}
  615|  1.30k|	}
_ZNK4pcpp22LdapSearchRequestLayer18SearchRequestScope8toStringEv:
  689|  1.03k|	{
  690|  1.03k|		return SearchRequestScopeToString.at(m_Value);
  691|  1.03k|	}
_ZN4pcpp22LdapSearchRequestLayer18SearchRequestScope13fromUintValueEh:
  694|  1.03k|	{
  695|  1.03k|		if (value <= 2)
  ------------------
  |  Branch (695:7): [True: 962, False: 76]
  ------------------
  696|    962|		{
  697|    962|			return static_cast<LdapSearchRequestLayer::SearchRequestScope::Value>(value);
  698|    962|		}
  699|       |
  700|     76|		return LdapSearchRequestLayer::SearchRequestScope::Unknown;
  701|  1.03k|	}
_ZNK4pcpp22LdapSearchRequestLayer13getBaseObjectEv:
  745|  1.03k|	{
  746|  1.03k|		return getLdapOperationAsn1Record()
  747|  1.03k|		    ->getSubRecords()
  748|  1.03k|		    .at(baseObjectIndex)
  749|  1.03k|		    ->castAs<Asn1OctetStringRecord>()
  750|  1.03k|		    ->getValue();
  751|  1.03k|	}
_ZNK4pcpp22LdapSearchRequestLayer8getScopeEv:
  754|  1.03k|	{
  755|  1.03k|		return LdapSearchRequestLayer::SearchRequestScope::fromUintValue(getLdapOperationAsn1Record()
  756|  1.03k|		                                                                     ->getSubRecords()
  757|  1.03k|		                                                                     .at(scopeIndex)
  758|  1.03k|		                                                                     ->castAs<Asn1EnumeratedRecord>()
  759|  1.03k|		                                                                     ->getIntValue<uint8_t>());
  760|  1.03k|	}
_ZNK4pcpp22LdapSearchRequestLayer21getExtendedInfoStringEv:
  822|  1.03k|	{
  823|  1.03k|		auto baseObject = getBaseObject();
  824|  1.03k|		if (baseObject.empty())
  ------------------
  |  Branch (824:7): [True: 0, False: 1.03k]
  ------------------
  825|      0|		{
  826|      0|			baseObject = "ROOT";
  827|      0|		}
  828|       |
  829|  1.03k|		return "\"" + baseObject + "\", " + getScope().toString();
  830|  1.03k|	}

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

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

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

_ZNK4pcpp12NDPLayerBase12getNdpOptionENS_22NDPNeighborOptionTypesE:
   45|    620|	{
   46|    620|		return m_OptionReader.getTLVRecord((uint8_t)option, getNdpOptionsBasePtr(), getHeaderLen() - getNdpHeaderLen());
   47|    620|	}
_ZNK4pcpp28NDPNeighborSolicitationLayer19hasLinkLayerAddressEv:
  121|    614|	{
  122|    614|		NdpOption option = this->getNdpOption(NDPNeighborOptionTypes::NDP_OPTION_SOURCE_LINK_LAYER);
  123|    614|		return option.isNull() ? false : true;
  ------------------
  |  Branch (123:10): [True: 614, False: 0]
  ------------------
  124|    614|	}
_ZNK4pcpp28NDPNeighborSolicitationLayer8toStringEv:
  139|    614|	{
  140|    614|		std::ostringstream typeStream;
  141|    614|		typeStream << "ICMPv6 Layer, Neighbor Solicitation Message, TargetIP: " + getTargetIP().toString();
  142|    614|		hasLinkLayerAddress() ? typeStream << ", SourceMAC: " + getLinkLayerAddress().toString()
  ------------------
  |  Branch (142:3): [True: 0, False: 614]
  ------------------
  143|    614|		                      : typeStream << ", no Option";
  144|       |
  145|    614|		return typeStream.str();
  146|    614|	}
_ZNK4pcpp29NDPNeighborAdvertisementLayer16hasTargetMacInfoEv:
  182|      6|	{
  183|      6|		NdpOption option = this->getNdpOption(NDPNeighborOptionTypes::NDP_OPTION_TARGET_LINK_LAYER);
  184|      6|		return option.isNull() ? false : true;
  ------------------
  |  Branch (184:10): [True: 6, False: 0]
  ------------------
  185|      6|	}
_ZNK4pcpp29NDPNeighborAdvertisementLayer8toStringEv:
  200|      6|	{
  201|      6|		std::ostringstream typeStream;
  202|      6|		typeStream << "ICMPv6 Layer, Neighbor Advertisement Message, TargetIP: " << getTargetIP().toString();
  203|      6|		hasTargetMacInfo() ? typeStream << ", TargetMAC: " + getTargetMac().toString() : typeStream << ", no Option";
  ------------------
  |  Branch (203:3): [True: 0, False: 6]
  ------------------
  204|       |
  205|      6|		return typeStream.str();
  206|      6|	}

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

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

_ZNK4pcpp17NullLoopbackLayer9getFamilyEv:
   24|  6.14k|	{
   25|  6.14k|		uint32_t family = *(reinterpret_cast<uint32_t*>(m_Data));
   26|  6.14k|		if ((family & 0xFFFF'0000) != 0)
  ------------------
  |  Branch (26:7): [True: 5.45k, False: 690]
  ------------------
   27|  5.45k|		{
   28|  5.45k|			if ((family & 0xFF00'0000) == 0 && (family & 0x00FF'0000) < 0x0006'0000)
  ------------------
  |  Branch (28:8): [True: 1.42k, False: 4.03k]
  |  Branch (28:39): [True: 200, False: 1.22k]
  ------------------
   29|    200|			{
   30|    200|				family >>= 16;
   31|    200|			}
   32|  5.25k|			else
   33|  5.25k|			{
   34|  5.25k|				family = BSWAP32(family);
  ------------------
  |  |   11|  5.25k|#define BSWAP32(x) (((x) >> 24) | (((x) & 0x00FF'0000) >> 8) | (((x) & 0x0000'FF00) << 8) | ((x) << 24))
  ------------------
   35|  5.25k|			}
   36|  5.45k|		}
   37|    690|		else if ((family & 0x0000'00FF) == 0 && (family & 0x0000'FF00) < 0x0000'0600)
  ------------------
  |  Branch (37:12): [True: 363, False: 327]
  |  Branch (37:43): [True: 234, False: 129]
  ------------------
   38|    234|		{
   39|    234|			family = BSWAP16(family & 0xFFFF);
  ------------------
  |  |   10|    234|#define BSWAP16(x) (((x) >> 8) | ((x) << 8))
  ------------------
   40|    234|		}
   41|       |
   42|  6.14k|		return family;
   43|  6.14k|	}
_ZN4pcpp17NullLoopbackLayer14parseNextLayerEv:
   51|  6.14k|	{
   52|  6.14k|		uint8_t* payload = m_Data + sizeof(uint32_t);
   53|  6.14k|		size_t payloadLen = m_DataLen - sizeof(uint32_t);
   54|       |
   55|  6.14k|		uint32_t family = getFamily();
   56|  6.14k|		if (family > Ieee8023MaxLength)
  ------------------
  |  Branch (56:7): [True: 3.55k, False: 2.59k]
  ------------------
   57|  3.55k|		{
   58|  3.55k|			uint16_t ethType = static_cast<uint16_t>(family);
   59|  3.55k|			switch (ethType)
   60|  3.55k|			{
   61|    447|			case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|    447|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (61:4): [True: 447, False: 3.10k]
  ------------------
   62|    447|			{
   63|    447|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   64|    447|				return;
   65|      0|			}
   66|      0|			case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|      0|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (66:4): [True: 0, False: 3.55k]
  ------------------
   67|      0|			{
   68|      0|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   69|      0|				return;
   70|      0|			}
   71|  3.10k|			default:
  ------------------
  |  Branch (71:4): [True: 3.10k, False: 447]
  ------------------
   72|  3.10k|			{
   73|  3.10k|				constructNextLayer<PayloadLayer>(payload, payloadLen);
   74|  3.10k|				return;
   75|      0|			}
   76|  3.55k|			}
   77|  3.55k|		}
   78|       |
   79|  2.59k|		switch (family)
   80|  2.59k|		{
   81|    150|		case PCPP_BSD_AF_INET:
  ------------------
  |  |   13|    150|#define PCPP_BSD_AF_INET 2
  ------------------
  |  Branch (81:3): [True: 150, False: 2.44k]
  ------------------
   82|    150|		{
   83|    150|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   84|    150|			break;
   85|      0|		}
   86|    257|		case PCPP_BSD_AF_INET6_BSD:
  ------------------
  |  |   23|    257|#define PCPP_BSD_AF_INET6_BSD 24
  ------------------
  |  Branch (86:3): [True: 257, False: 2.33k]
  ------------------
   87|    257|		case PCPP_BSD_AF_INET6_FREEBSD:
  ------------------
  |  |   25|    257|#define PCPP_BSD_AF_INET6_FREEBSD 28
  ------------------
  |  Branch (87:3): [True: 0, False: 2.59k]
  ------------------
   88|  1.97k|		case PCPP_BSD_AF_INET6_DARWIN:
  ------------------
  |  |   27|  1.97k|#define PCPP_BSD_AF_INET6_DARWIN 30
  ------------------
  |  Branch (88:3): [True: 1.72k, False: 872]
  ------------------
   89|  1.97k|		{
   90|  1.97k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   91|  1.97k|			break;
   92|    257|		}
   93|    465|		default:
  ------------------
  |  Branch (93:3): [True: 465, False: 2.12k]
  ------------------
   94|    465|		{
   95|    465|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   96|    465|			break;
   97|    257|		}
   98|  2.59k|		}
   99|  2.59k|	}
_ZNK4pcpp17NullLoopbackLayer8toStringEv:
  102|  4.03k|	{
  103|  4.03k|		return "Null/Loopback";
  104|  4.03k|	}

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

_ZN4pcpp6Packet12setRawPacketEPNS_9RawPacketEbjNS_13OsiModelLayerE:
   50|   176k|	{
   51|   176k|		destructPacketData();
   52|       |
   53|   176k|		m_FirstLayer = nullptr;
   54|   176k|		m_LastLayer = nullptr;
   55|   176k|		m_MaxPacketLen = rawPacket->getRawDataLen();
   56|   176k|		m_FreeRawPacket = freeRawPacket;
   57|   176k|		m_RawPacket = rawPacket;
   58|   176k|		m_CanReallocateData = true;
   59|       |
   60|   176k|		if (m_RawPacket == nullptr)
  ------------------
  |  Branch (60:7): [True: 0, False: 176k]
  ------------------
   61|      0|			return;
   62|       |
   63|   176k|		parsePacket(PacketParseOptions{ parseUntil, parseUntilLayer });
   64|   176k|	}
_ZN4pcpp6Packet11parsePacketENS_18PacketParseOptionsEb:
   67|   176k|	{
   68|   176k|		if (m_RawPacket == nullptr)
  ------------------
  |  Branch (68:7): [True: 0, False: 176k]
  ------------------
   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|   176k|		if (!incrementalParsing)
  ------------------
  |  Branch (74:7): [True: 0, False: 176k]
  ------------------
   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|   176k|		bool parsingNewLayers = false;
   81|       |
   82|       |		// If there is no first layer, create it based on the link layer type
   83|   176k|		if (m_FirstLayer == nullptr)
  ------------------
  |  Branch (83:7): [True: 176k, False: 0]
  ------------------
   84|   176k|		{
   85|   176k|			parsingNewLayers = true;
   86|       |
   87|   176k|			LinkLayerType linkType = m_RawPacket->getLinkLayerType();
   88|   176k|			m_FirstLayer = createFirstLayer(linkType);
   89|       |
   90|   176k|			if (m_FirstLayer == nullptr)
  ------------------
  |  Branch (90:8): [True: 176, False: 176k]
  ------------------
   91|    176|			{
   92|    176|				PCPP_LOG_ERROR("Failed to create first layer! Possibly attempting to parse a RawPacket with no data.");
  ------------------
  |  |  443|    176|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    176|	do                                                                                                                 \
  |  |  |  |  413|    176|	{                                                                                                                  \
  |  |  |  |  414|    176|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    176|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    176|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 176, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    176|		{                                                                                                              \
  |  |  |  |  417|    176|			auto ctx =                                                                                                 \
  |  |  |  |  418|    176|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    176|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    176|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    176|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    176|		}                                                                                                              \
  |  |  |  |  422|    176|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 176]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   93|    176|				return;
   94|    176|			}
   95|       |
   96|       |			// Mark the first layer as allocated in the packet
   97|   176k|			m_FirstLayer->m_AllocationInfo.ownedByPacket = true;
   98|   176k|		}
   99|       |
  100|   176k|		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|   176k|		if (m_LastLayer != nullptr && options.parseUntilProtocol == UnknownProtocol)
  ------------------
  |  Branch (105:7): [True: 0, False: 176k]
  |  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|   176k|		bool rollbackLastLayer = false;
  122|   176k|		bool foundTargetProtocol = false;
  123|   928k|		for (auto* curLayer = parseStartLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (123:42): [True: 752k, False: 176k]
  ------------------
  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|   176k|		if (rollbackLastLayer && m_LastLayer != m_FirstLayer)
  ------------------
  |  Branch (170:7): [True: 0, False: 176k]
  |  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|   176k|		if (m_LastLayer != nullptr && options.parseUntilProtocol == UnknownProtocol &&
  ------------------
  |  Branch (178:7): [True: 176k, False: 0]
  |  Branch (178:33): [True: 176k, False: 0]
  ------------------
  179|   176k|		    options.parseUntilLayer == OsiModelLayerUnknown)
  ------------------
  |  Branch (179:7): [True: 176k, False: 0]
  ------------------
  180|   176k|		{
  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|   176k|			int trailerLen = (int)((m_RawPacket->getRawData() + m_RawPacket->getRawDataLen()) -
  184|   176k|			                       (m_LastLayer->getData() + m_LastLayer->getDataLen()));
  185|   176k|			if (trailerLen > 0)
  ------------------
  |  Branch (185:8): [True: 41.7k, False: 134k]
  ------------------
  186|  41.7k|			{
  187|  41.7k|				PacketTrailerLayer* trailerLayer =
  188|  41.7k|				    new PacketTrailerLayer(static_cast<uint8_t*>(m_LastLayer->getData() + m_LastLayer->getDataLen()),
  189|  41.7k|				                           trailerLen, m_LastLayer, this);
  190|       |
  191|  41.7k|				trailerLayer->m_AllocationInfo.ownedByPacket = true;
  192|  41.7k|				m_LastLayer->setNextLayer(trailerLayer);
  193|  41.7k|				m_LastLayer = trailerLayer;
  194|  41.7k|			}
  195|   176k|		}
  196|   176k|	}
_ZN4pcpp6PacketC2EPNS_9RawPacketEbhNS_13OsiModelLayerE:
  199|   176k|	    : Packet(rawPacket, freeRawPacket, static_cast<ProtocolTypeFamily>(parseUntil), parseUntilLayer)
  200|   176k|	{}
_ZN4pcpp6PacketC2EPNS_9RawPacketEbjNS_13OsiModelLayerE:
  204|   176k|	{
  205|   176k|		m_FreeRawPacket = false;
  206|   176k|		m_RawPacket = nullptr;
  207|   176k|		m_FirstLayer = nullptr;
  208|   176k|		setRawPacket(rawPacket, freeRawPacket, parseUntil, parseUntilLayer);
  209|   176k|	}
_ZN4pcpp6Packet18destructPacketDataEv:
  237|  1.14M|	{
  238|  1.14M|		destroyAllLayers();
  239|       |
  240|  1.14M|		if (m_RawPacket != nullptr && m_FreeRawPacket)
  ------------------
  |  Branch (240:7): [True: 970k, False: 176k]
  |  Branch (240:33): [True: 793k, False: 176k]
  ------------------
  241|   793k|		{
  242|   793k|			delete m_RawPacket;
  243|   793k|		}
  244|  1.14M|	}
_ZN4pcpp6Packet16destroyAllLayersEv:
  247|  1.14M|	{
  248|  1.14M|		Layer* curLayer = m_FirstLayer;
  249|  5.83M|		while (curLayer != nullptr)
  ------------------
  |  Branch (249:10): [True: 4.69M, False: 1.14M]
  ------------------
  250|  4.69M|		{
  251|  4.69M|			Layer* nextLayer = curLayer->getNextLayer();
  252|  4.69M|			if (curLayer->m_AllocationInfo.ownedByPacket)
  ------------------
  |  Branch (252:8): [True: 4.69M, False: 0]
  ------------------
  253|  4.69M|			{
  254|  4.69M|				delete curLayer;
  255|  4.69M|			}
  256|       |
  257|  4.69M|			curLayer = nextLayer;
  258|  4.69M|		}
  259|       |
  260|  1.14M|		m_FirstLayer = nullptr;
  261|  1.14M|		m_LastLayer = nullptr;
  262|  1.14M|	}
_ZN4pcpp6Packet12copyDataFromERKS0_:
  274|   793k|	{
  275|   793k|		m_RawPacket = new RawPacket(*(other.m_RawPacket));
  276|   793k|		m_FreeRawPacket = true;
  277|   793k|		m_MaxPacketLen = other.m_MaxPacketLen;
  278|   793k|		m_FirstLayer = createFirstLayer(m_RawPacket->getLinkLayerType());
  279|   793k|		m_LastLayer = m_FirstLayer;
  280|   793k|		m_CanReallocateData = true;
  281|   793k|		Layer* curLayer = m_FirstLayer;
  282|  4.69M|		while (curLayer != nullptr)
  ------------------
  |  Branch (282:10): [True: 3.89M, False: 793k]
  ------------------
  283|  3.89M|		{
  284|  3.89M|			curLayer->parseNextLayer();
  285|  3.89M|			curLayer->m_AllocationInfo.ownedByPacket = true;
  286|  3.89M|			curLayer = curLayer->getNextLayer();
  287|  3.89M|			if (curLayer != nullptr)
  ------------------
  |  Branch (287:8): [True: 3.10M, False: 793k]
  ------------------
  288|  3.10M|				m_LastLayer = curLayer;
  289|  3.89M|		}
  290|   793k|	}
_ZN4pcpp6Packet17reallocateRawDataEm:
  293|  17.0k|	{
  294|  17.0k|		PCPP_LOG_DEBUG("Allocating packet to new size: " << newSize);
  ------------------
  |  |  425|  17.0k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  17.0k|	do                                                                                                                 \
  |  |  |  |  413|  17.0k|	{                                                                                                                  \
  |  |  |  |  414|  17.0k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  17.0k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  17.0k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 17.0k]
  |  |  |  |  ------------------
  |  |  |  |  416|  17.0k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  17.0k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 17.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  295|       |
  296|       |		// allocate a new array with size newSize
  297|  17.0k|		m_MaxPacketLen = newSize;
  298|       |
  299|       |		// set the new array to RawPacket
  300|  17.0k|		if (!m_RawPacket->reallocateData(m_MaxPacketLen))
  ------------------
  |  Branch (300:7): [True: 0, False: 17.0k]
  ------------------
  301|      0|		{
  302|      0|			PCPP_LOG_ERROR("Couldn't reallocate data of raw packet to " << m_MaxPacketLen << " bytes");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  303|      0|			return;
  304|      0|		}
  305|       |
  306|       |		// set all data pointers in layers to the new array address
  307|  17.0k|		const uint8_t* dataPtr = m_RawPacket->getRawData();
  308|       |
  309|   105k|		for (Layer* curLayer = m_FirstLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (309:40): [True: 88.8k, False: 17.0k]
  ------------------
  310|  88.8k|		{
  311|  88.8k|			PCPP_LOG_DEBUG("Setting new data pointer to layer '" << typeid(curLayer).name() << "'");
  ------------------
  |  |  425|  88.8k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  88.8k|	do                                                                                                                 \
  |  |  |  |  413|  88.8k|	{                                                                                                                  \
  |  |  |  |  414|  88.8k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  88.8k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  88.8k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 88.8k]
  |  |  |  |  ------------------
  |  |  |  |  416|  88.8k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  88.8k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 88.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  312|  88.8k|			curLayer->m_Data = const_cast<uint8_t*>(dataPtr);
  313|  88.8k|			dataPtr += curLayer->getHeaderLen();
  314|  88.8k|		}
  315|  17.0k|	}
_ZNK4pcpp6Packet14isPacketOfTypeEh:
  615|  13.4M|	{
  616|  77.7M|		for (Layer* curLayer = getFirstLayer(); curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (616:43): [True: 65.0M, False: 12.6M]
  ------------------
  617|  65.0M|		{
  618|  65.0M|			if (curLayer->getProtocol() == protocolType)
  ------------------
  |  Branch (618:8): [True: 857k, False: 64.2M]
  ------------------
  619|   857k|			{
  620|   857k|				return true;
  621|   857k|			}
  622|  65.0M|		}
  623|       |
  624|  12.6M|		return false;
  625|  13.4M|	}
_ZNK4pcpp6Packet14isPacketOfTypeEj:
  628|  3.17M|	{
  629|  3.17M|		Layer* curLayer = getFirstLayer();
  630|  18.1M|		while (curLayer != nullptr)
  ------------------
  |  Branch (630:10): [True: 15.1M, False: 3.03M]
  ------------------
  631|  15.1M|		{
  632|  15.1M|			if (curLayer->isMemberOfProtocolFamily(protocolTypeFamily))
  ------------------
  |  Branch (632:8): [True: 139k, False: 15.0M]
  ------------------
  633|   139k|			{
  634|   139k|				return true;
  635|   139k|			}
  636|  15.0M|			curLayer = curLayer->getNextLayer();
  637|  15.0M|		}
  638|       |
  639|  3.03M|		return false;
  640|  3.17M|	}
_ZN4pcpp6Packet11extendLayerEPNS_5LayerEim:
  643|  77.9k|	{
  644|  77.9k|		if (layer == nullptr)
  ------------------
  |  Branch (644:7): [True: 0, False: 77.9k]
  ------------------
  645|      0|		{
  646|      0|			PCPP_LOG_ERROR("Layer is nullptr");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  647|      0|			return false;
  648|      0|		}
  649|       |
  650|       |		// verify layer is allocated to this packet
  651|  77.9k|		if (!(layer->getAttachedPacket() == this))
  ------------------
  |  Branch (651:7): [True: 0, False: 77.9k]
  ------------------
  652|      0|		{
  653|      0|			PCPP_LOG_ERROR("Layer isn't allocated to this packet");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  654|      0|			return false;
  655|      0|		}
  656|       |
  657|  77.9k|		if (m_RawPacket->getRawDataLen() + numOfBytesToExtend > m_MaxPacketLen)
  ------------------
  |  Branch (657:7): [True: 17.0k, False: 60.8k]
  ------------------
  658|  17.0k|		{
  659|  17.0k|			if (!m_CanReallocateData)
  ------------------
  |  Branch (659:8): [True: 0, False: 17.0k]
  ------------------
  660|      0|			{
  661|      0|				PCPP_LOG_ERROR(
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  662|      0|				    "With the layer extended size the packet will exceed the size of the pre-allocated buffer: "
  663|      0|				    << m_MaxPacketLen << " bytes");
  664|      0|				return false;
  665|      0|			}
  666|       |			// reallocate to maximum value of: twice the max size of the packet or max size + new required length
  667|  17.0k|			if (m_RawPacket->getRawDataLen() + numOfBytesToExtend > m_MaxPacketLen * 2)
  ------------------
  |  Branch (667:8): [True: 0, False: 17.0k]
  ------------------
  668|      0|				reallocateRawData(m_RawPacket->getRawDataLen() + numOfBytesToExtend + m_MaxPacketLen);
  669|  17.0k|			else
  670|  17.0k|				reallocateRawData(m_MaxPacketLen * 2);
  671|  17.0k|		}
  672|       |
  673|       |		// insert layer data to raw packet
  674|  77.9k|		int indexToInsertData = layer->m_Data + offsetInLayer - m_RawPacket->getRawData();
  675|       |		// passing nullptr to insertData will move the data by numOfBytesToExtend
  676|       |		// no new data has to be created for this insertion which saves at least little time
  677|       |		// this move operation occurs on already allocated memory, which is backed by the reallocation if's provided
  678|       |		// above if offsetInLayer == layer->getHeaderLen() insertData will not move any data but only increase the
  679|       |		// packet size by numOfBytesToExtend
  680|  77.9k|		m_RawPacket->insertData(indexToInsertData, nullptr, numOfBytesToExtend);
  681|       |
  682|       |		// re-calculate all layers data ptr and data length
  683|  77.9k|		const uint8_t* dataPtr = m_RawPacket->getRawData();
  684|       |
  685|       |		// go over all layers from the first layer to the last layer and set the data ptr and data length for each layer
  686|  77.9k|		bool passedExtendedLayer = false;
  687|   589k|		for (Layer* curLayer = m_FirstLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (687:40): [True: 523k, False: 65.9k]
  ------------------
  688|   523k|		{
  689|   523k|			if (dataPtr > m_RawPacket->getRawData() + m_RawPacket->getRawDataLen())
  ------------------
  |  Branch (689:8): [True: 11.9k, False: 511k]
  ------------------
  690|  11.9k|			{
  691|  11.9k|				PCPP_LOG_ERROR("Layer data pointer exceeds packet's boundary");
  ------------------
  |  |  443|  11.9k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  11.9k|	do                                                                                                                 \
  |  |  |  |  413|  11.9k|	{                                                                                                                  \
  |  |  |  |  414|  11.9k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  11.9k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  11.9k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 11.9k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  11.9k|		{                                                                                                              \
  |  |  |  |  417|  11.9k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  11.9k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  11.9k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  11.9k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  11.9k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  11.9k|		}                                                                                                              \
  |  |  |  |  422|  11.9k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 11.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  692|  11.9k|				return false;
  693|  11.9k|			}
  694|       |
  695|       |			// set the data ptr
  696|   511k|			curLayer->m_Data = const_cast<uint8_t*>(dataPtr);
  697|       |
  698|       |			// set a flag if arrived to the layer being extended
  699|   511k|			if (curLayer->getPrevLayer() == layer)
  ------------------
  |  Branch (699:8): [True: 26.2k, False: 485k]
  ------------------
  700|  26.2k|				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|   511k|			if (!passedExtendedLayer)
  ------------------
  |  Branch (704:8): [True: 395k, False: 115k]
  ------------------
  705|   395k|				curLayer->m_DataLen += numOfBytesToExtend;
  706|       |
  707|       |			// assuming header length of the layer that requested to be extended hasn't been enlarged yet
  708|   511k|			size_t headerLen = curLayer->getHeaderLen() + (curLayer == layer ? numOfBytesToExtend : 0);
  ------------------
  |  Branch (708:51): [True: 76.8k, False: 434k]
  ------------------
  709|   511k|			dataPtr += headerLen;
  710|   511k|		}
  711|       |
  712|  65.9k|		return true;
  713|  77.9k|	}
_ZN4pcpp6Packet12shortenLayerEPNS_5LayerEim:
  716|  69.4k|	{
  717|  69.4k|		if (layer == nullptr)
  ------------------
  |  Branch (717:7): [True: 0, False: 69.4k]
  ------------------
  718|      0|		{
  719|      0|			PCPP_LOG_ERROR("Layer is nullptr");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  720|      0|			return false;
  721|      0|		}
  722|       |
  723|       |		// verify layer is allocated to this packet
  724|  69.4k|		if (!(layer->getAttachedPacket() == this))
  ------------------
  |  Branch (724:7): [True: 0, False: 69.4k]
  ------------------
  725|      0|		{
  726|      0|			PCPP_LOG_ERROR("Layer isn't allocated to this packet");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  727|      0|			return false;
  728|      0|		}
  729|       |
  730|       |		// remove data from raw packet
  731|  69.4k|		int indexOfDataToRemove = layer->m_Data + offsetInLayer - m_RawPacket->getRawData();
  732|  69.4k|		if (!m_RawPacket->removeData(indexOfDataToRemove, numOfBytesToShorten))
  ------------------
  |  Branch (732:7): [True: 0, False: 69.4k]
  ------------------
  733|      0|		{
  734|      0|			PCPP_LOG_ERROR("Couldn't remove data from packet");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  735|      0|			return false;
  736|      0|		}
  737|       |
  738|       |		// re-calculate all layers data ptr and data length
  739|  69.4k|		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|  69.4k|		bool passedExtendedLayer = false;
  743|   554k|		for (Layer* curLayer = m_FirstLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (743:40): [True: 486k, False: 68.4k]
  ------------------
  744|   486k|		{
  745|   486k|			if (dataPtr > m_RawPacket->getRawData() + m_RawPacket->getRawDataLen())
  ------------------
  |  Branch (745:8): [True: 965, False: 485k]
  ------------------
  746|    965|			{
  747|    965|				PCPP_LOG_ERROR("Layer data pointer exceeds packet's boundary");
  ------------------
  |  |  443|    965|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    965|	do                                                                                                                 \
  |  |  |  |  413|    965|	{                                                                                                                  \
  |  |  |  |  414|    965|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    965|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    965|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 965, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    965|		{                                                                                                              \
  |  |  |  |  417|    965|			auto ctx =                                                                                                 \
  |  |  |  |  418|    965|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    965|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    965|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    965|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    965|		}                                                                                                              \
  |  |  |  |  422|    965|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 965]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  748|    965|				return false;
  749|    965|			}
  750|       |
  751|       |			// set the data ptr
  752|   485k|			curLayer->m_Data = const_cast<uint8_t*>(dataPtr);
  753|       |
  754|       |			// set a flag if arrived to the layer being shortened
  755|   485k|			if (curLayer->getPrevLayer() == layer)
  ------------------
  |  Branch (755:8): [True: 27.6k, False: 457k]
  ------------------
  756|  27.6k|				passedExtendedLayer = true;
  757|       |
  758|   485k|			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|   485k|			if (!passedExtendedLayer)
  ------------------
  |  Branch (762:8): [True: 368k, False: 117k]
  ------------------
  763|   368k|				curLayer->m_DataLen -= numOfBytesToShorten;
  764|       |
  765|       |			// assuming header length of the layer that requested to be extended hasn't been enlarged yet
  766|   485k|			headerLen -= (curLayer == layer ? numOfBytesToShorten : 0);
  ------------------
  |  Branch (766:18): [True: 69.1k, False: 416k]
  ------------------
  767|   485k|			dataPtr += headerLen;
  768|   485k|		}
  769|       |
  770|  68.4k|		return true;
  771|  69.4k|	}
_ZN4pcpp6Packet22computeCalculateFieldsEv:
  774|   176k|	{
  775|       |		// calculated fields should be calculated from top layer to bottom layer
  776|   970k|		for (Layer* curLayer = m_LastLayer; curLayer != nullptr; curLayer = curLayer->getPrevLayer())
  ------------------
  |  Branch (776:39): [True: 793k, False: 176k]
  ------------------
  777|   793k|		{
  778|   793k|			curLayer->computeCalculateFields();
  779|   793k|		}
  780|   176k|	}
_ZNK4pcpp6Packet15printPacketInfoEb:
  783|   176k|	{
  784|   176k|		std::ostringstream dataLenStream;
  785|   176k|		dataLenStream << m_RawPacket->getRawDataLen();
  786|       |
  787|       |		// convert raw packet timestamp to printable format
  788|   176k|		timespec timestamp = m_RawPacket->getPacketTimeStamp();
  789|   176k|		time_t nowtime = timestamp.tv_sec;
  790|   176k|		struct tm* nowtm = nullptr;
  791|   176k|#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|   176k|		struct tm nowtm_r;
  797|   176k|		if (timeAsLocalTime)
  ------------------
  |  Branch (797:7): [True: 176k, False: 0]
  ------------------
  798|   176k|			nowtm = localtime_r(&nowtime, &nowtm_r);
  799|      0|		else
  800|      0|			nowtm = gmtime_r(&nowtime, &nowtm_r);
  801|       |
  802|   176k|		if (nowtm != nullptr)
  ------------------
  |  Branch (802:7): [True: 176k, False: 0]
  ------------------
  803|   176k|			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|   176k|		char buf[128];
  815|   176k|		if (nowtm != nullptr)
  ------------------
  |  Branch (815:7): [True: 176k, False: 0]
  ------------------
  816|   176k|		{
  817|   176k|			char tmbuf[64];
  818|   176k|			strftime(tmbuf, sizeof(tmbuf), "%Y-%m-%d %H:%M:%S", nowtm);
  819|   176k|			snprintf(buf, sizeof(buf), "%s.%09lu", tmbuf, (unsigned long)timestamp.tv_nsec);
  820|   176k|		}
  821|      0|		else
  822|      0|			snprintf(buf, sizeof(buf), "0000-00-00 00:00:00.000000000");
  823|       |
  824|   176k|		return "Packet length: " + dataLenStream.str() + " [Bytes], Arrival time: " + std::string(buf);
  825|   176k|	}
_ZN4pcpp6Packet16createFirstLayerENS_13LinkLayerTypeE:
  828|   970k|	{
  829|   970k|		size_t rawDataLen = (size_t)m_RawPacket->getRawDataLen();
  830|   970k|		if (rawDataLen == 0)
  ------------------
  |  Branch (830:7): [True: 176, False: 970k]
  ------------------
  831|    176|			return nullptr;
  832|       |
  833|   970k|		const uint8_t* rawData = m_RawPacket->getRawData();
  834|       |
  835|   970k|		switch (linkType)
  836|   970k|		{
  837|   820k|		case LinkLayerType::LINKTYPE_ETHERNET:
  ------------------
  |  Branch (837:3): [True: 820k, False: 149k]
  ------------------
  838|   820k|		{
  839|   820k|			if (EthLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (839:8): [True: 816k, False: 3.80k]
  ------------------
  840|   816k|			{
  841|   816k|				return new EthLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  842|   816k|			}
  843|  3.80k|			if (EthDot3Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (843:8): [True: 3.77k, False: 28]
  ------------------
  844|  3.77k|			{
  845|  3.77k|				return new EthDot3Layer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  846|  3.77k|			}
  847|     28|			break;
  848|  3.80k|		}
  849|   132k|		case LinkLayerType::LINKTYPE_LINUX_SLL:
  ------------------
  |  Branch (849:3): [True: 132k, False: 838k]
  ------------------
  850|   132k|		{
  851|   132k|			return new SllLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  852|  3.80k|		}
  853|     36|		case LinkLayerType::LINKTYPE_LINUX_SLL2:
  ------------------
  |  Branch (853:3): [True: 36, False: 970k]
  ------------------
  854|     36|		{
  855|     36|			if (Sll2Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (855:8): [True: 36, False: 0]
  ------------------
  856|     36|			{
  857|     36|				return new Sll2Layer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  858|     36|			}
  859|      0|			break;
  860|     36|		}
  861|  8.90k|		case LinkLayerType::LINKTYPE_NULL:
  ------------------
  |  Branch (861:3): [True: 8.90k, False: 961k]
  ------------------
  862|  8.90k|		{
  863|  8.90k|			if (NullLoopbackLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (863:8): [True: 6.14k, False: 2.76k]
  ------------------
  864|  6.14k|			{
  865|  6.14k|				return new NullLoopbackLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  866|  6.14k|			}
  867|  2.76k|			break;
  868|  8.90k|		}
  869|  2.76k|		case LinkLayerType::LINKTYPE_RAW:
  ------------------
  |  Branch (869:3): [True: 1.62k, False: 968k]
  ------------------
  870|  1.65k|		case LinkLayerType::LINKTYPE_DLT_RAW1:
  ------------------
  |  Branch (870:3): [True: 32, False: 970k]
  ------------------
  871|  1.78k|		case LinkLayerType::LINKTYPE_DLT_RAW2:
  ------------------
  |  Branch (871:3): [True: 134, False: 970k]
  ------------------
  872|  1.78k|		{
  873|  1.78k|			uint8_t ipVer = rawData[0] & 0xf0;
  874|  1.78k|			if (ipVer == 0x40 && IPv4Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (874:8): [True: 1.63k, False: 152]
  |  Branch (874:25): [True: 1.59k, False: 40]
  ------------------
  875|  1.59k|			{
  876|  1.59k|				return new IPv4Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  877|  1.59k|			}
  878|    192|			if (ipVer == 0x60 && IPv6Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (878:8): [True: 0, False: 192]
  |  Branch (878:25): [True: 0, False: 0]
  ------------------
  879|      0|			{
  880|      0|				return new IPv6Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  881|      0|			}
  882|    192|			break;
  883|    192|		}
  884|    412|		case LinkLayerType::LINKTYPE_IPV4:
  ------------------
  |  Branch (884:3): [True: 412, False: 969k]
  ------------------
  885|    412|		{
  886|    412|			if (IPv4Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (886:8): [True: 150, False: 262]
  ------------------
  887|    150|			{
  888|    150|				return new IPv4Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  889|    150|			}
  890|    262|			break;
  891|    412|		}
  892|    262|		case LinkLayerType::LINKTYPE_IPV6:
  ------------------
  |  Branch (892:3): [True: 190, False: 969k]
  ------------------
  893|    190|		{
  894|    190|			if (IPv6Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (894:8): [True: 30, False: 160]
  ------------------
  895|     30|			{
  896|     30|				return new IPv6Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  897|     30|			}
  898|    160|			break;
  899|    190|		}
  900|  1.80k|		case LinkLayerType::LINKTYPE_NFLOG:
  ------------------
  |  Branch (900:3): [True: 1.80k, False: 968k]
  ------------------
  901|  1.80k|		{
  902|  1.80k|			if (NflogLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (902:8): [True: 1.67k, False: 128]
  ------------------
  903|  1.67k|			{
  904|  1.67k|				return new NflogLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  905|  1.67k|			}
  906|    128|			break;
  907|  1.80k|		}
  908|    507|		case LinkLayerType::LINKTYPE_C_HDLC:
  ------------------
  |  Branch (908:3): [True: 507, False: 969k]
  ------------------
  909|    507|		{
  910|    507|			if (CiscoHdlcLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (910:8): [True: 507, False: 0]
  ------------------
  911|    507|			{
  912|    507|				return new CiscoHdlcLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  913|    507|			}
  914|      0|			break;
  915|    507|		}
  916|  3.91k|		default:
  ------------------
  |  Branch (916:3): [True: 3.91k, False: 966k]
  ------------------
  917|       |			// For all other link types, we don't have a specific layer. Just break and create a PayloadLayer
  918|  3.91k|			break;
  919|   970k|		}
  920|       |
  921|       |		// unknown link type
  922|  7.44k|		return new PayloadLayer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  923|   970k|	}
_ZNK4pcpp6Packet8toStringEb:
  926|   176k|	{
  927|   176k|		std::vector<std::string> stringList;
  928|   176k|		toStringList(stringList, timeAsLocalTime);
  929|   176k|		return std::accumulate(stringList.begin(), stringList.end(), std::string(),
  930|   176k|		                       [](std::string a, const std::string& b) { return std::move(a) + b + '\n'; });
  931|   176k|	}
_ZNK4pcpp6Packet12toStringListERNSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEEb:
  934|   176k|	{
  935|   176k|		result.clear();
  936|   176k|		result.push_back(printPacketInfo(timeAsLocalTime));
  937|       |
  938|   970k|		for (Layer* curLayer = m_FirstLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (938:40): [True: 793k, False: 176k]
  ------------------
  939|   793k|		{
  940|   793k|			result.push_back(curLayer->toString());
  941|   793k|		}
  942|   176k|	}
Packet.cpp:_ZZNK4pcpp6Packet8toStringEbENK3$_0clENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKS8_:
  930|   970k|		                       [](std::string a, const std::string& b) { return std::move(a) + b + '\n'; });

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

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

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

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

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

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

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

_ZNK4pcpp11S7CommLayer8toStringEv:
   46|  2.44k|	{
   47|  2.44k|		std::ostringstream str;
   48|  2.44k|		str << "S7Comm Layer, ";
   49|       |
   50|  2.44k|		switch (getS7commHeader()->msgType)
   51|  2.44k|		{
   52|    948|		case 0x01:
  ------------------
  |  Branch (52:3): [True: 948, False: 1.49k]
  ------------------
   53|    948|			str << "Job Request";
   54|    948|			break;
   55|      6|		case 0x02:
  ------------------
  |  Branch (55:3): [True: 6, False: 2.43k]
  ------------------
   56|      6|			str << "Ack";
   57|      6|			break;
   58|    708|		case 0x03:
  ------------------
  |  Branch (58:3): [True: 708, False: 1.73k]
  ------------------
   59|    708|			str << "Ack-Data";
   60|    708|			break;
   61|    620|		case 0x07:
  ------------------
  |  Branch (61:3): [True: 620, False: 1.82k]
  ------------------
   62|    620|			str << "Userdata";
   63|    620|			break;
   64|    160|		default:
  ------------------
  |  Branch (64:3): [True: 160, False: 2.28k]
  ------------------
   65|    160|			str << "Unknown message";
   66|  2.44k|		}
   67|       |
   68|  2.44k|		return str.str();
   69|  2.44k|	}
_ZN4pcpp11S7CommLayer11isDataValidEPKhm:
   72|  9.54k|	{
   73|  9.54k|		if (!data || dataSize < sizeof(s7commhdr))
  ------------------
  |  Branch (73:7): [True: 0, False: 9.54k]
  |  Branch (73:16): [True: 174, False: 9.37k]
  ------------------
   74|    174|			return false;
   75|       |
   76|  9.37k|		return data[0] == 0x32;
   77|  9.54k|	}

_ZN4pcpp8SSHLayer16createSSHMessageEPhmPNS_5LayerEPNS_6PacketE:
   19|  17.3k|	{
   20|  17.3k|		SSHIdentificationMessage* sshIdnetMsg = SSHIdentificationMessage::tryParse(data, dataLen, prevLayer, packet);
   21|  17.3k|		if (sshIdnetMsg != nullptr)
  ------------------
  |  Branch (21:7): [True: 2.64k, False: 14.6k]
  ------------------
   22|  2.64k|			return sshIdnetMsg;
   23|       |
   24|  14.6k|		SSHHandshakeMessage* sshHandshakeMessage = SSHHandshakeMessage::tryParse(data, dataLen, prevLayer, packet);
   25|  14.6k|		if (sshHandshakeMessage != nullptr)
  ------------------
  |  Branch (25:7): [True: 10.1k, False: 4.55k]
  ------------------
   26|  10.1k|			return sshHandshakeMessage;
   27|       |
   28|  4.55k|		return new SSHEncryptedMessage(data, dataLen, prevLayer, packet);
   29|  14.6k|	}
_ZN4pcpp8SSHLayer14parseNextLayerEv:
   32|  17.3k|	{
   33|  17.3k|		size_t headerLen = getHeaderLen();
   34|  17.3k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (34:7): [True: 14.5k, False: 2.75k]
  ------------------
   35|  14.5k|			return;
   36|       |
   37|  2.75k|		constructNextLayerFromFactory(SSHLayer::createSSHMessage, m_Data + headerLen, m_DataLen - headerLen);
   38|  2.75k|	}
_ZN4pcpp24SSHIdentificationMessage8tryParseEPhmPNS_5LayerEPNS_6PacketE:
   46|  17.3k|	{
   47|       |		// Payload must be at least as long as the string "SSH-"
   48|  17.3k|		if (dataLen < 5)
  ------------------
  |  Branch (48:7): [True: 1.72k, False: 15.6k]
  ------------------
   49|  1.72k|			return nullptr;
   50|       |
   51|       |		// Payload must begin with "SSH-" and end with "\n"
   52|  15.6k|		if (data[0] == 0x53 && data[1] == 0x53 && data[2] == 0x48 && data[3] == 0x2d && data[dataLen - 1] == 0x0a)
  ------------------
  |  Branch (52:7): [True: 3.12k, False: 12.4k]
  |  Branch (52:26): [True: 3.12k, False: 0]
  |  Branch (52:45): [True: 3.11k, False: 10]
  |  Branch (52:64): [True: 3.11k, False: 0]
  |  Branch (52:83): [True: 2.64k, False: 470]
  ------------------
   53|  2.64k|			return new SSHIdentificationMessage(data, dataLen, prevLayer, packet);
   54|       |
   55|  12.9k|		return nullptr;
   56|  15.6k|	}
_ZNK4pcpp24SSHIdentificationMessage8toStringEv:
   66|  1.05k|	{
   67|  1.05k|		return std::string(SshLayerBaseString) + ", " + "Identification message";
   68|  1.05k|	}
_ZNK4pcpp19SSHHandshakeMessage14getMessageTypeEv:
   75|  3.69k|	{
   76|  3.69k|		uint8_t messageCode = getMsgBaseHeader()->messageCode;
   77|  3.69k|		if (messageCode == 20 || messageCode == 21 || (messageCode >= 30 && messageCode <= 34))
  ------------------
  |  Branch (77:7): [True: 72, False: 3.61k]
  |  Branch (77:28): [True: 1.65k, False: 1.96k]
  |  Branch (77:50): [True: 1.96k, False: 0]
  |  Branch (77:71): [True: 1.92k, False: 38]
  ------------------
   78|  3.65k|			return static_cast<SSHHandshakeMessage::SSHHandshakeMessageType>(messageCode);
   79|     38|		return SSHHandshakeMessage::SSH_MSG_UNKNOWN;
   80|  3.69k|	}
_ZNK4pcpp19SSHHandshakeMessage17getMessageTypeStrEv:
   83|  3.69k|	{
   84|  3.69k|		switch (getMessageType())
   85|  3.69k|		{
   86|     72|		case SSHHandshakeMessage::SSH_MSG_KEX_INIT:
  ------------------
  |  Branch (86:3): [True: 72, False: 3.61k]
  ------------------
   87|     72|			return "Key Exchange Init";
   88|  1.65k|		case SSHHandshakeMessage::SSH_MSG_NEW_KEYS:
  ------------------
  |  Branch (88:3): [True: 1.65k, False: 2.03k]
  ------------------
   89|  1.65k|			return "New Keys";
   90|      0|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_INIT:
  ------------------
  |  Branch (90:3): [True: 0, False: 3.69k]
  ------------------
   91|      0|			return "Diffie-Hellman Key Exchange Init";
   92|     36|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_REPLY:
  ------------------
  |  Branch (92:3): [True: 36, False: 3.65k]
  ------------------
   93|     36|			return "Diffie-Hellman Key Exchange Reply";
   94|    908|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_INIT:
  ------------------
  |  Branch (94:3): [True: 908, False: 2.78k]
  ------------------
   95|    908|			return "Diffie-Hellman Group Exchange Init";
   96|    840|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_REPLY:
  ------------------
  |  Branch (96:3): [True: 840, False: 2.85k]
  ------------------
   97|    840|			return "Diffie-Hellman Group Exchange Reply";
   98|    140|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_REQUEST:
  ------------------
  |  Branch (98:3): [True: 140, False: 3.55k]
  ------------------
   99|    140|			return "Diffie-Hellman Group Exchange Request";
  100|     38|		default:
  ------------------
  |  Branch (100:3): [True: 38, False: 3.65k]
  ------------------
  101|     38|			return "Unknown";
  102|  3.69k|		}
  103|  3.69k|	}
_ZNK4pcpp19SSHHandshakeMessage12getHeaderLenEv:
  130|  11.9k|	{
  131|       |		return (size_t)be32toh(getMsgBaseHeader()->packetLength) + sizeof(uint32_t);
  132|  11.9k|	}
_ZNK4pcpp19SSHHandshakeMessage8toStringEv:
  135|  3.69k|	{
  136|  3.69k|		return std::string(SshLayerBaseString) + ", " + "Handshake Message: " + getMessageTypeStr();
  137|  3.69k|	}
_ZN4pcpp19SSHHandshakeMessage8tryParseEPhmPNS_5LayerEPNS_6PacketE:
  140|  14.6k|	{
  141|  14.6k|		if (dataLen < sizeof(SSHHandshakeMessage::ssh_message_base))
  ------------------
  |  Branch (141:7): [True: 1.72k, False: 12.9k]
  ------------------
  142|  1.72k|		{
  143|  1.72k|			PCPP_LOG_DEBUG(
  ------------------
  |  |  425|  1.72k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  1.72k|	do                                                                                                                 \
  |  |  |  |  413|  1.72k|	{                                                                                                                  \
  |  |  |  |  414|  1.72k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.72k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.72k|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 1.72k]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.72k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  1.72k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.72k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|  1.72k|			    "Data length is smaller than the minimum size of an SSH handshake message. It's probably not an SSH handshake message");
  145|  1.72k|			return nullptr;
  146|  1.72k|		}
  147|       |
  148|  12.9k|		SSHHandshakeMessage::ssh_message_base* msgBase = (SSHHandshakeMessage::ssh_message_base*)data;
  149|       |
  150|  12.9k|		uint32_t msgLength = be32toh(msgBase->packetLength);
  151|  12.9k|		if (msgLength + sizeof(uint32_t) > dataLen)
  ------------------
  |  Branch (151:7): [True: 2.59k, False: 10.3k]
  ------------------
  152|  2.59k|		{
  153|  2.59k|			PCPP_LOG_DEBUG("Message size is larger than layer size. It's probably not an SSH handshake message");
  ------------------
  |  |  425|  2.59k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  2.59k|	do                                                                                                                 \
  |  |  |  |  413|  2.59k|	{                                                                                                                  \
  |  |  |  |  414|  2.59k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.59k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.59k|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 2.59k]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.59k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  2.59k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.59k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  154|  2.59k|			return nullptr;
  155|  2.59k|		}
  156|       |
  157|  10.3k|		if (msgBase->paddingLength > msgLength)
  ------------------
  |  Branch (157:7): [True: 17, False: 10.3k]
  ------------------
  158|     17|		{
  159|     17|			PCPP_LOG_DEBUG("Message padding is larger than message size. It's probably not an SSH handshake message");
  ------------------
  |  |  425|     17|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|     17|	do                                                                                                                 \
  |  |  |  |  413|     17|	{                                                                                                                  \
  |  |  |  |  414|     17|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     17|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     17|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 17]
  |  |  |  |  ------------------
  |  |  |  |  416|     17|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|     17|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 17]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  160|     17|			return nullptr;
  161|     17|		}
  162|       |
  163|  10.3k|		if (msgBase->messageCode != 20 && msgBase->messageCode != 21 &&
  ------------------
  |  Branch (163:7): [True: 10.1k, False: 180]
  |  Branch (163:37): [True: 5.58k, False: 4.58k]
  ------------------
  164|  5.58k|		    (msgBase->messageCode < 30 || msgBase->messageCode > 49))
  ------------------
  |  Branch (164:8): [True: 197, False: 5.39k]
  |  Branch (164:37): [True: 21, False: 5.36k]
  ------------------
  165|    218|		{
  166|    218|			PCPP_LOG_DEBUG("Unknown message type " << (int)msgBase->messageCode
  ------------------
  |  |  425|    218|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    218|	do                                                                                                                 \
  |  |  |  |  413|    218|	{                                                                                                                  \
  |  |  |  |  414|    218|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    218|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    218|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 218]
  |  |  |  |  ------------------
  |  |  |  |  416|    218|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|    218|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 218]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  167|    218|			                                       << ". It's probably not an SSH handshake message");
  168|    218|			return nullptr;
  169|    218|		}
  170|       |
  171|  10.1k|		switch (msgBase->messageCode)
  172|  10.1k|		{
  173|    180|		case SSHHandshakeMessage::SSH_MSG_KEX_INIT:
  ------------------
  |  Branch (173:3): [True: 180, False: 9.94k]
  ------------------
  174|    180|			return new SSHKeyExchangeInitMessage(data, dataLen, prevLayer, packet);
  175|  9.94k|		default:
  ------------------
  |  Branch (175:3): [True: 9.94k, False: 180]
  ------------------
  176|  9.94k|			return new SSHHandshakeMessage(data, dataLen, prevLayer, packet);
  177|  10.1k|		}
  178|  10.1k|	}
_ZN4pcpp25SSHKeyExchangeInitMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  186|    180|	    : SSHHandshakeMessage(data, dataLen, prevLayer, packet), m_OffsetsInitialized(false)
  187|    180|	{
  188|    180|		memset(m_FieldOffsets, 0, 11 * sizeof(size_t));
  189|    180|	}
_ZNK4pcpp19SSHEncryptedMessage8toStringEv:
  264|  1.63k|	{
  265|  1.63k|		return std::string(SshLayerBaseString) + ", " + "Encrypted Message";
  266|  1.63k|	}

_ZN4pcpp10SSLVersion6asEnumEb:
   13|   280k|	{
   14|   280k|		if (m_SSLVersionValue >= 0x0300 && m_SSLVersionValue <= 0x0304)
  ------------------
  |  Branch (14:7): [True: 280k, False: 184]
  |  Branch (14:38): [True: 279k, False: 553]
  ------------------
   15|   279k|			return static_cast<SSLVersion::SSLVersionEnum>(m_SSLVersionValue);
   16|       |
   17|    737|		if ((m_SSLVersionValue >= 0x7f0e && m_SSLVersionValue <= 0x7f1c) || m_SSLVersionValue == 0xfb17 ||
  ------------------
  |  Branch (17:8): [True: 191, False: 546]
  |  Branch (17:39): [True: 0, False: 191]
  |  Branch (17:71): [True: 0, False: 737]
  ------------------
   18|    737|		    m_SSLVersionValue == 0xfb1a)
  ------------------
  |  Branch (18:7): [True: 0, False: 737]
  ------------------
   19|      0|		{
   20|      0|			if (countTlsDraftsAs1_3)
  ------------------
  |  Branch (20:8): [True: 0, False: 0]
  ------------------
   21|      0|				return SSLVersion::TLS1_3;
   22|      0|			else
   23|      0|				return static_cast<SSLVersion::SSLVersionEnum>(m_SSLVersionValue);
   24|      0|		}
   25|       |
   26|    737|		return SSLVersion::Unknown;
   27|    737|	}
_ZN4pcpp10SSLVersion8toStringEb:
   30|  68.4k|	{
   31|  68.4k|		SSLVersionEnum enumValue = asEnum(countTlsDraftsAs1_3);
   32|       |
   33|  68.4k|		switch (enumValue)
   34|  68.4k|		{
   35|  1.02k|		case SSLVersion::TLS1_3:
  ------------------
  |  Branch (35:3): [True: 1.02k, False: 67.4k]
  ------------------
   36|  1.02k|			return "TLS 1.3";
   37|  51.6k|		case SSLVersion::TLS1_2:
  ------------------
  |  Branch (37:3): [True: 51.6k, False: 16.7k]
  ------------------
   38|  51.6k|			return "TLS 1.2";
   39|  1.24k|		case SSLVersion::TLS1_1:
  ------------------
  |  Branch (39:3): [True: 1.24k, False: 67.1k]
  ------------------
   40|  1.24k|			return "TLS 1.1";
   41|  13.4k|		case SSLVersion::TLS1_0:
  ------------------
  |  Branch (41:3): [True: 13.4k, False: 55.0k]
  ------------------
   42|  13.4k|			return "TLS 1.0";
   43|  1.08k|		case SSLVersion::SSL3:
  ------------------
  |  Branch (43:3): [True: 1.08k, False: 67.3k]
  ------------------
   44|  1.08k|			return "SSL 3.0";
   45|      0|		case SSLVersion::TLS1_3_D28:
  ------------------
  |  Branch (45:3): [True: 0, False: 68.4k]
  ------------------
   46|      0|			return "TLS 1.3 (draft 28)";
   47|      0|		case SSLVersion::TLS1_3_D27:
  ------------------
  |  Branch (47:3): [True: 0, False: 68.4k]
  ------------------
   48|      0|			return "TLS 1.3 (draft 27)";
   49|      0|		case SSLVersion::TLS1_3_D26:
  ------------------
  |  Branch (49:3): [True: 0, False: 68.4k]
  ------------------
   50|      0|			return "TLS 1.3 (draft 26)";
   51|      0|		case SSLVersion::TLS1_3_D25:
  ------------------
  |  Branch (51:3): [True: 0, False: 68.4k]
  ------------------
   52|      0|			return "TLS 1.3 (draft 25)";
   53|      0|		case SSLVersion::TLS1_3_D24:
  ------------------
  |  Branch (53:3): [True: 0, False: 68.4k]
  ------------------
   54|      0|			return "TLS 1.3 (draft 24)";
   55|      0|		case SSLVersion::TLS1_3_D23:
  ------------------
  |  Branch (55:3): [True: 0, False: 68.4k]
  ------------------
   56|      0|			return "TLS 1.3 (draft 23)";
   57|      0|		case SSLVersion::TLS1_3_D22:
  ------------------
  |  Branch (57:3): [True: 0, False: 68.4k]
  ------------------
   58|      0|			return "TLS 1.3 (draft 22)";
   59|      0|		case SSLVersion::TLS1_3_D21:
  ------------------
  |  Branch (59:3): [True: 0, False: 68.4k]
  ------------------
   60|      0|			return "TLS 1.3 (draft 21)";
   61|      0|		case SSLVersion::TLS1_3_D20:
  ------------------
  |  Branch (61:3): [True: 0, False: 68.4k]
  ------------------
   62|      0|			return "TLS 1.3 (draft 20)";
   63|      0|		case SSLVersion::TLS1_3_D19:
  ------------------
  |  Branch (63:3): [True: 0, False: 68.4k]
  ------------------
   64|      0|			return "TLS 1.3 (draft 19)";
   65|      0|		case SSLVersion::TLS1_3_D18:
  ------------------
  |  Branch (65:3): [True: 0, False: 68.4k]
  ------------------
   66|      0|			return "TLS 1.3 (draft 18)";
   67|      0|		case SSLVersion::TLS1_3_D17:
  ------------------
  |  Branch (67:3): [True: 0, False: 68.4k]
  ------------------
   68|      0|			return "TLS 1.3 (draft 17)";
   69|      0|		case SSLVersion::TLS1_3_D16:
  ------------------
  |  Branch (69:3): [True: 0, False: 68.4k]
  ------------------
   70|      0|			return "TLS 1.3 (draft 16)";
   71|      0|		case SSLVersion::TLS1_3_D15:
  ------------------
  |  Branch (71:3): [True: 0, False: 68.4k]
  ------------------
   72|      0|			return "TLS 1.3 (draft 15)";
   73|      0|		case SSLVersion::TLS1_3_D14:
  ------------------
  |  Branch (73:3): [True: 0, False: 68.4k]
  ------------------
   74|      0|			return "TLS 1.3 (draft 14)";
   75|      0|		case SSLVersion::TLS1_3_FBD23:
  ------------------
  |  Branch (75:3): [True: 0, False: 68.4k]
  ------------------
   76|      0|			return "TLS 1.3 (Facebook draft 23)";
   77|      0|		case SSLVersion::TLS1_3_FBD26:
  ------------------
  |  Branch (77:3): [True: 0, False: 68.4k]
  ------------------
   78|      0|			return "TLS 1.3 (Facebook draft 26)";
   79|      0|		case SSLVersion::Unknown:
  ------------------
  |  Branch (79:3): [True: 0, False: 68.4k]
  ------------------
   80|      0|			return "Unknown";
   81|      0|		default:
  ------------------
  |  Branch (81:3): [True: 0, False: 68.4k]
  ------------------
   82|      0|			return "Unknown";
   83|  68.4k|		}
   84|  68.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|  91.4k|	{
 1057|  91.4k|		auto pos = CipherSuiteIdToObjectMap.find(id);
 1058|  91.4k|		if (pos == CipherSuiteIdToObjectMap.end())
  ------------------
  |  Branch (1058:7): [True: 29.5k, False: 61.8k]
  ------------------
 1059|  29.5k|			return nullptr;
 1060|  61.8k|		else
 1061|  61.8k|			return pos->second;
 1062|  91.4k|	}
_ZN4pcpp14SSLCipherSuite20getCipherSuiteByNameENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1065|  7.08k|	{
 1066|  7.08k|		uint32_t nameHash = hashString(std::move(name));
 1067|  7.08k|		auto pos = CipherSuiteStringToObjectMap.find(nameHash);
 1068|  7.08k|		if (pos == CipherSuiteStringToObjectMap.end())
  ------------------
  |  Branch (1068:7): [True: 0, False: 7.08k]
  ------------------
 1069|      0|			return nullptr;
 1070|  7.08k|		else
 1071|  7.08k|			return pos->second;
 1072|  7.08k|	}
_ZN4pcpp12SSLExtensionC2EPhm:
 1081|   278k|	SSLExtension::SSLExtension(uint8_t* data, size_t dataLen) : m_RawData(data), m_RawDataLen(dataLen)
 1082|   278k|	{
 1083|   278k|		if (data == nullptr || dataLen < 2 * sizeof(uint16_t))
  ------------------
  |  Branch (1083:7): [True: 0, False: 278k]
  |  Branch (1083:26): [True: 0, False: 278k]
  ------------------
 1084|      0|		{
 1085|      0|			throw std::invalid_argument("Insufficient data buffer for SSL extension header");
 1086|      0|		}
 1087|       |
 1088|   278k|		uint16_t extDataLen = getLength();
 1089|   278k|		if (dataLen < (2 * sizeof(uint16_t) + extDataLen))
  ------------------
  |  Branch (1089:7): [True: 0, False: 278k]
  ------------------
 1090|      0|		{
 1091|      0|			throw std::invalid_argument("Insufficient data buffer for SSL extension data");
 1092|      0|		}
 1093|   278k|	}
_ZNK4pcpp12SSLExtension7getTypeEv:
 1096|  16.5k|	{
 1097|  16.5k|		uint16_t typeAsInt = getTypeAsInt();
 1098|  16.5k|		if (typeAsInt <= 24 || typeAsInt == 35 || typeAsInt == 65281)
  ------------------
  |  Branch (1098:7): [True: 8.94k, False: 7.57k]
  |  Branch (1098:26): [True: 651, False: 6.92k]
  |  Branch (1098:45): [True: 1.86k, False: 5.06k]
  ------------------
 1099|  11.4k|			return (SSLExtensionType)typeAsInt;
 1100|       |
 1101|  5.06k|		return SSL_EXT_Unknown;
 1102|  16.5k|	}
_ZNK4pcpp12SSLExtension12getTypeAsIntEv:
 1105|  77.0k|	{
 1106|       |		return be16toh(getExtensionStruct()->extensionType);
 1107|  77.0k|	}
_ZNK4pcpp12SSLExtension9getLengthEv:
 1110|   584k|	{
 1111|   584k|		return getExtensionStruct()->getDataLength();
 1112|   584k|	}
_ZNK4pcpp12SSLExtension14getTotalLengthEv:
 1115|   278k|	{
 1116|   278k|		return getLength() + 2 * sizeof(uint16_t);
 1117|   278k|	}
_ZNK4pcpp12SSLExtension7getDataEv:
 1120|  16.8k|	{
 1121|  16.8k|		if (getLength() > 0)
  ------------------
  |  Branch (1121:7): [True: 16.6k, False: 228]
  ------------------
 1122|  16.6k|		{
 1123|  16.6k|			return getExtensionStruct()->extensionData;
 1124|  16.6k|		}
 1125|       |
 1126|    228|		return nullptr;
 1127|  16.8k|	}
_ZNK4pcpp12SSLExtension18SSLExtensionStruct13getDataLengthEv:
 1130|   882k|	{
 1131|       |		return be16toh(extensionDataLength);
 1132|   882k|	}
_ZNK4pcpp32SSLServerNameIndicationExtension11getHostNameEv:
 1139|  3.61k|	{
 1140|  3.61k|		auto* extensionDataPtr = getData();
 1141|  3.61k|		if (extensionDataPtr == nullptr)
  ------------------
  |  Branch (1141:7): [True: 228, False: 3.38k]
  ------------------
 1142|    228|		{
 1143|    228|			return "";
 1144|    228|		}
 1145|       |
 1146|  3.38k|		uint8_t const* hostNameLengthPos = extensionDataPtr + sizeof(uint16_t) + sizeof(uint8_t);
 1147|  3.38k|		uint16_t hostNameLength = be16toh(*reinterpret_cast<uint16_t const*>(hostNameLengthPos));
 1148|       |
 1149|  3.38k|		uint8_t const* hostNameDataIt = hostNameLengthPos + sizeof(uint16_t);
 1150|  3.38k|		uint8_t const* hostNameDataEndIt = hostNameDataIt + hostNameLength;
 1151|  3.38k|		uint8_t const* extensionDataEndIt = extensionDataPtr + getLength();
 1152|       |
 1153|  3.38k|		if (hostNameDataEndIt > extensionDataEndIt)
  ------------------
  |  Branch (1153:7): [True: 252, False: 3.13k]
  ------------------
 1154|    252|		{
 1155|    252|			PCPP_LOG_WARN("Host name length exceeds extension data length. Possible data corruption. Truncating.");
  ------------------
  |  |  431|    252|#	define PCPP_LOG_WARN(message) PCPP_LOG(pcpp::LogLevel::Warn, message)
  |  |  ------------------
  |  |  |  |  412|    252|	do                                                                                                                 \
  |  |  |  |  413|    252|	{                                                                                                                  \
  |  |  |  |  414|    252|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    252|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    252|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 252, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    252|		{                                                                                                              \
  |  |  |  |  417|    252|			auto ctx =                                                                                                 \
  |  |  |  |  418|    252|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    252|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    252|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    252|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    252|		}                                                                                                              \
  |  |  |  |  422|    252|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 252]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1156|    252|			hostNameDataEndIt = extensionDataEndIt;
 1157|    252|		}
 1158|       |
 1159|  3.38k|		return std::string(hostNameDataIt, hostNameDataEndIt);
 1160|  3.61k|	}
_ZNK4pcpp29SSLSupportedVersionsExtension20getSupportedVersionsEv:
 1167|  1.38k|	{
 1168|  1.38k|		std::vector<SSLVersion> result;
 1169|  1.38k|		uint16_t extensionLength = getLength();
 1170|  1.38k|		if (extensionLength == 2)  // server hello message
  ------------------
  |  Branch (1170:7): [True: 453, False: 928]
  ------------------
 1171|    453|		{
 1172|    453|			result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(getData()))));
 1173|    453|		}
 1174|    928|		else  // client-hello message
 1175|    928|		{
 1176|    928|			uint8_t listLength = *getData();
 1177|    928|			if (listLength != static_cast<uint8_t>(extensionLength - 1) || listLength % 2 != 0)
  ------------------
  |  Branch (1177:8): [True: 48, False: 880]
  |  Branch (1177:67): [True: 4, False: 876]
  ------------------
 1178|     52|				return result;  // bad extension data
 1179|       |
 1180|    876|			uint8_t* dataPtr = getData() + sizeof(uint8_t);
 1181|  3.85k|			for (int i = 0; i < listLength / 2; i++)
  ------------------
  |  Branch (1181:20): [True: 2.97k, False: 876]
  ------------------
 1182|  2.97k|			{
 1183|  2.97k|				result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(dataPtr))));
 1184|  2.97k|				dataPtr += sizeof(uint16_t);
 1185|  2.97k|			}
 1186|    876|		}
 1187|       |
 1188|  1.32k|		return result;
 1189|  1.38k|	}
_ZNK4pcpp27TLSSupportedGroupsExtension18getSupportedGroupsEv:
 1196|  2.50k|	{
 1197|  2.50k|		std::vector<uint16_t> result;
 1198|       |
 1199|  2.50k|		uint16_t extensionLength = getLength();
 1200|  2.50k|		if (extensionLength < sizeof(uint16_t))
  ------------------
  |  Branch (1200:7): [True: 15, False: 2.49k]
  ------------------
 1201|     15|			return result;  // bad extension data
 1202|       |
 1203|  2.49k|		uint16_t listLength = be16toh(*(uint16_t*)getData());
 1204|  2.49k|		if (listLength != (extensionLength - sizeof(uint16_t)) || listLength % 2 != 0)
  ------------------
  |  Branch (1204:7): [True: 32, False: 2.46k]
  |  Branch (1204:61): [True: 37, False: 2.42k]
  ------------------
 1205|     69|			return result;  // bad extension data
 1206|       |
 1207|  2.42k|		uint8_t* dataPtr = getData() + sizeof(uint16_t);
 1208|  15.7k|		for (int i = 0; i < listLength / 2; i++)
  ------------------
  |  Branch (1208:19): [True: 13.3k, False: 2.42k]
  ------------------
 1209|  13.3k|		{
 1210|  13.3k|			result.push_back(be16toh(*reinterpret_cast<uint16_t*>(dataPtr)));
 1211|  13.3k|			dataPtr += sizeof(uint16_t);
 1212|  13.3k|		}
 1213|       |
 1214|  2.42k|		return result;
 1215|  2.49k|	}
_ZNK4pcpp25TLSECPointFormatExtension20getECPointFormatListEv:
 1222|  3.62k|	{
 1223|  3.62k|		std::vector<uint8_t> result;
 1224|       |
 1225|  3.62k|		uint16_t extensionLength = getLength();
 1226|       |
 1227|  3.62k|		if (extensionLength < 1)
  ------------------
  |  Branch (1227:7): [True: 12, False: 3.61k]
  ------------------
 1228|     12|			return result;
 1229|       |
 1230|  3.61k|		uint8_t listLength = *getData();
 1231|       |
 1232|  3.61k|		if (extensionLength != static_cast<uint16_t>(listLength) + 1)
  ------------------
  |  Branch (1232:7): [True: 1.18k, False: 2.43k]
  ------------------
 1233|  1.18k|			return result;  // bad extension data
 1234|       |
 1235|  2.43k|		uint8_t* dataPtr = getData() + sizeof(uint8_t);
 1236|  5.73k|		for (int i = 0; i < listLength; i++)
  ------------------
  |  Branch (1236:19): [True: 3.30k, False: 2.43k]
  ------------------
 1237|  3.30k|		{
 1238|  3.30k|			result.push_back(*dataPtr);
 1239|  3.30k|			dataPtr += sizeof(uint8_t);
 1240|  3.30k|		}
 1241|       |
 1242|  2.43k|		return result;
 1243|  3.61k|	}
_ZN4pcpp19SSLHandshakeMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1281|   176k|	{
 1282|   176k|		m_Data = data;
 1283|   176k|		m_DataLen = dataLen;
 1284|   176k|		m_Container = container;
 1285|   176k|	}
_ZN4pcpp19SSLHandshakeMessage22createHandshakeMessageEPhmPNS_17SSLHandshakeLayerE:
 1289|   293k|	{
 1290|   293k|		if (dataLen < sizeof(ssl_tls_handshake_layer))
  ------------------
  |  Branch (1290:7): [True: 117k, False: 176k]
  ------------------
 1291|   117k|			return nullptr;
 1292|       |
 1293|   176k|		ssl_tls_handshake_layer* hsMsgHeader = reinterpret_cast<ssl_tls_handshake_layer*>(data);
 1294|       |
 1295|   176k|		if (dataLen >= 16 && (be64toh(*(uint64_t*)data) <= 0xFFFFFF || hsMsgHeader->length1 >= 1))
  ------------------
  |  Branch (1295:7): [True: 148k, False: 27.8k]
  |  Branch (1295:25): [True: 11.7k, False: 136k]
  |  Branch (1295:66): [True: 28.7k, False: 108k]
  ------------------
 1296|  40.4k|		{
 1297|       |			// possibly Encrypted Handshake Message
 1298|       |			// used heuristic:
 1299|       |			// - handshake layer of more than 16 byte
 1300|       |			// - first 5 bytes of the handshake message are zeroes
 1301|       |			// - or wrong message length is over 64K
 1302|       |			// - or message type makes so sense (handled through the switch statement)
 1303|  40.4k|			return new SSLUnknownMessage(data, dataLen, container);
 1304|  40.4k|		}
 1305|       |
 1306|   136k|		switch (hsMsgHeader->handshakeType)
 1307|   136k|		{
 1308|  39.1k|		case SSL_CLIENT_HELLO:
  ------------------
  |  Branch (1308:3): [True: 39.1k, False: 96.8k]
  ------------------
 1309|  39.1k|			return new SSLClientHelloMessage(data, dataLen, container);
 1310|  28.4k|		case SSL_SERVER_HELLO:
  ------------------
  |  Branch (1310:3): [True: 28.4k, False: 107k]
  ------------------
 1311|  28.4k|			return new SSLServerHelloMessage(data, dataLen, container);
 1312|  26.2k|		case SSL_HELLO_REQUEST:
  ------------------
  |  Branch (1312:3): [True: 26.2k, False: 109k]
  ------------------
 1313|  26.2k|			return new SSLHelloRequestMessage(data, dataLen, container);
 1314|  9.42k|		case SSL_CERTIFICATE:
  ------------------
  |  Branch (1314:3): [True: 9.42k, False: 126k]
  ------------------
 1315|  9.42k|			return new SSLCertificateMessage(data, dataLen, container);
 1316|  3.90k|		case SSL_SERVER_KEY_EXCHANGE:
  ------------------
  |  Branch (1316:3): [True: 3.90k, False: 132k]
  ------------------
 1317|  3.90k|			return new SSLServerKeyExchangeMessage(data, dataLen, container);
 1318|  13.8k|		case SSL_CERTIFICATE_REQUEST:
  ------------------
  |  Branch (1318:3): [True: 13.8k, False: 122k]
  ------------------
 1319|  13.8k|			return new SSLCertificateRequestMessage(data, dataLen, container);
 1320|  1.11k|		case SSL_CERTIFICATE_VERIFY:
  ------------------
  |  Branch (1320:3): [True: 1.11k, False: 134k]
  ------------------
 1321|  1.11k|			return new SSLCertificateVerifyMessage(data, dataLen, container);
 1322|  2.50k|		case SSL_CLIENT_KEY_EXCHANGE:
  ------------------
  |  Branch (1322:3): [True: 2.50k, False: 133k]
  ------------------
 1323|  2.50k|			return new SSLClientKeyExchangeMessage(data, dataLen, container);
 1324|  2.36k|		case SSL_FINISHED:
  ------------------
  |  Branch (1324:3): [True: 2.36k, False: 133k]
  ------------------
 1325|  2.36k|			return new SSLFinishedMessage(data, dataLen, container);
 1326|  1.48k|		case SSL_SERVER_DONE:
  ------------------
  |  Branch (1326:3): [True: 1.48k, False: 134k]
  ------------------
 1327|  1.48k|			return new SSLServerHelloDoneMessage(data, dataLen, container);
 1328|  2.04k|		case SSL_NEW_SESSION_TICKET:
  ------------------
  |  Branch (1328:3): [True: 2.04k, False: 133k]
  ------------------
 1329|  2.04k|			return new SSLNewSessionTicketMessage(data, dataLen, container);
 1330|  5.48k|		default:
  ------------------
  |  Branch (1330:3): [True: 5.48k, False: 130k]
  ------------------
 1331|  5.48k|			return new SSLUnknownMessage(data, dataLen, container);
 1332|   136k|		}
 1333|   136k|	}
_ZNK4pcpp19SSLHandshakeMessage16getHandshakeTypeEv:
 1336|  7.08k|	{
 1337|  7.08k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1338|  7.08k|		return (SSLHandshakeType)handshakeLayer->handshakeType;
 1339|  7.08k|	}
_ZNK4pcpp19SSLHandshakeMessage16getMessageLengthEv:
 1342|   322k|	{
 1343|   322k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1344|       |		// TODO: add handshakeLayer->length1 to the calculation
 1345|   322k|		size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2);
 1346|   322k|		if (len > m_DataLen)
  ------------------
  |  Branch (1346:7): [True: 68.7k, False: 253k]
  ------------------
 1347|  68.7k|			return m_DataLen;
 1348|       |
 1349|   253k|		return len;
 1350|   322k|	}
_ZNK4pcpp19SSLHandshakeMessage17isMessageCompleteEv:
 1353|  17.9k|	{
 1354|  17.9k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer))
  ------------------
  |  Branch (1354:7): [True: 0, False: 17.9k]
  ------------------
 1355|      0|			return false;
 1356|       |
 1357|  17.9k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1358|       |		size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2);
 1359|  17.9k|		return len <= m_DataLen;
 1360|  17.9k|	}
_ZN4pcpp21SSLClientHelloMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1367|  39.1k|	    : SSLHandshakeMessage(data, dataLen, container)
 1368|  39.1k|	{
 1369|  39.1k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1370|  39.1k|		                               sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() +
 1371|  39.1k|		                               2 * sizeof(uint8_t);
 1372|  39.1k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1372:7): [True: 16.9k, False: 22.2k]
  ------------------
 1373|  16.9k|			return;
 1374|       |
 1375|  22.2k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1376|  22.2k|		uint16_t extensionLength = getExtensionsLength();
 1377|  22.2k|		uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
 1378|       |
 1379|  22.2k|		size_t messageLen = getMessageLength();
 1380|       |
 1381|       |		// Iterators for the entire extension data buffer containing the extensions blocks.
 1382|  22.2k|		uint8_t* extensionIt = extensionPos;
 1383|  22.2k|		uint8_t* extensionEndIt = extensionPos + extensionLength;
 1384|       |
 1385|       |		// If the message length is smaller that the extension data buffer, we might have malformed data.
 1386|       |		// In this case, the extension data buffer is truncated to the message length, to avoid out-of-bounds access.
 1387|  22.2k|		uint8_t* endOfMessageIt = m_Data + messageLen;
 1388|  22.2k|		if (endOfMessageIt < extensionEndIt)
  ------------------
  |  Branch (1388:7): [True: 3.09k, False: 19.1k]
  ------------------
 1389|  3.09k|		{
 1390|  3.09k|			extensionEndIt = endOfMessageIt;
 1391|  3.09k|		}
 1392|       |
 1393|  22.2k|		constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
 1394|   268k|		while (extensionIt < extensionEndIt &&
  ------------------
  |  Branch (1394:10): [True: 258k, False: 9.88k]
  ------------------
 1395|   258k|		       std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
  ------------------
  |  Branch (1395:10): [True: 255k, False: 2.64k]
  ------------------
 1396|   255k|		{
 1397|   255k|			std::unique_ptr<SSLExtension> newExt;
 1398|       |
 1399|   255k|			uint16_t sslExtType = be16toh(*reinterpret_cast<uint16_t*>(extensionIt));
 1400|   255k|			size_t availableDataLen = std::distance(extensionIt, extensionEndIt);
 1401|       |
 1402|   255k|			switch (sslExtType)
 1403|   255k|			{
 1404|  74.7k|			case SSL_EXT_SERVER_NAME:
  ------------------
  |  Branch (1404:4): [True: 74.7k, False: 181k]
  ------------------
 1405|  74.7k|			{
 1406|  74.7k|				newExt =
 1407|  74.7k|				    SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
 1408|  74.7k|				break;
 1409|      0|			}
 1410|  4.58k|			case SSL_EXT_SUPPORTED_VERSIONS:
  ------------------
  |  Branch (1410:4): [True: 4.58k, False: 251k]
  ------------------
 1411|  4.58k|			{
 1412|  4.58k|				newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
 1413|  4.58k|				break;
 1414|      0|			}
 1415|  13.6k|			case SSL_EXT_SUPPORTED_GROUPS:
  ------------------
  |  Branch (1415:4): [True: 13.6k, False: 242k]
  ------------------
 1416|  13.6k|			{
 1417|  13.6k|				newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
 1418|  13.6k|				break;
 1419|      0|			}
 1420|  20.2k|			case SSL_EXT_EC_POINT_FORMATS:
  ------------------
  |  Branch (1420:4): [True: 20.2k, False: 235k]
  ------------------
 1421|  20.2k|			{
 1422|  20.2k|				newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
 1423|  20.2k|				break;
 1424|      0|			}
 1425|   142k|			default:
  ------------------
  |  Branch (1425:4): [True: 142k, False: 113k]
  ------------------
 1426|   142k|			{
 1427|   142k|				newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
 1428|   142k|			}
 1429|   255k|			}
 1430|       |
 1431|   255k|			if (newExt == nullptr)
  ------------------
  |  Branch (1431:8): [True: 9.71k, False: 246k]
  ------------------
 1432|  9.71k|			{
 1433|  9.71k|				PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
  ------------------
  |  |  425|  9.71k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  9.71k|	do                                                                                                                 \
  |  |  |  |  413|  9.71k|	{                                                                                                                  \
  |  |  |  |  414|  9.71k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  9.71k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  9.71k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 9.71k]
  |  |  |  |  ------------------
  |  |  |  |  416|  9.71k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  9.71k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 9.71k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1434|  9.71k|				                                                        << " skipping remaining extensions.");
 1435|  9.71k|				break;
 1436|  9.71k|			}
 1437|       |
 1438|       |			// Total length can be zero only if getLength() == 0xfffc which is way too large
 1439|       |			// and means that this extension (and packet) are malformed
 1440|   246k|			size_t newExtTotalLen = newExt->getTotalLength();
 1441|   246k|			if (newExtTotalLen == 0)
  ------------------
  |  Branch (1441:8): [True: 0, False: 246k]
  ------------------
 1442|      0|			{
 1443|      0|				break;
 1444|      0|			}
 1445|       |
 1446|   246k|			m_ExtensionList.pushBack(std::move(newExt));
 1447|   246k|			std::advance(extensionIt, newExtTotalLen);
 1448|   246k|		}
 1449|  22.2k|	}
_ZNK4pcpp21SSLClientHelloMessage19getHandshakeVersionEv:
 1452|  14.1k|	{
 1453|  14.1k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint16_t))
  ------------------
  |  Branch (1453:7): [True: 10, False: 14.1k]
  ------------------
 1454|     10|			return SSLVersion(0);
 1455|       |
 1456|  14.1k|		uint16_t handshakeVersion = be16toh(getClientHelloHeader()->handshakeVersion);
 1457|  14.1k|		return SSLVersion(handshakeVersion);
 1458|  14.1k|	}
_ZNK4pcpp21SSLClientHelloMessage18getSessionIDLengthEv:
 1461|  15.3M|	{
 1462|  15.3M|		if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
  ------------------
  |  Branch (1462:7): [True: 11.5k, False: 15.3M]
  ------------------
 1463|  11.5k|			return 0;
 1464|       |
 1465|  15.3M|		uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
 1466|  15.3M|		if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
  ------------------
  |  Branch (1466:7): [True: 4.90k, False: 15.3M]
  ------------------
 1467|  4.90k|			return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
 1468|       |
 1469|  15.3M|		return val;
 1470|  15.3M|	}
_ZNK4pcpp21SSLClientHelloMessage12getSessionIDEv:
 1473|  7.08k|	{
 1474|  7.08k|		if (getSessionIDLength() > 0)
  ------------------
  |  Branch (1474:7): [True: 2.46k, False: 4.61k]
  ------------------
 1475|  2.46k|			return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
 1476|  4.61k|		else
 1477|  4.61k|			return nullptr;
 1478|  7.08k|	}
_ZNK4pcpp21SSLClientHelloMessage19getCipherSuiteCountEv:
 1481|  8.74M|	{
 1482|  8.74M|		size_t cipherSuiteOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
 1483|  8.74M|		if (cipherSuiteOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1483:7): [True: 19.9k, False: 8.72M]
  ------------------
 1484|  19.9k|			return 0;
 1485|       |
 1486|  8.72M|		uint16_t cipherSuiteLen = *(uint16_t*)(m_Data + cipherSuiteOffset);
 1487|       |		return be16toh(cipherSuiteLen) / 2;
 1488|  8.74M|	}
_ZNK4pcpp21SSLClientHelloMessage14getCipherSuiteEi:
 1491|  2.16M|	{
 1492|  2.16M|		bool isValid;
 1493|  2.16M|		uint16_t id = getCipherSuiteID(index, isValid);
 1494|  2.16M|		return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
  ------------------
  |  Branch (1494:11): [True: 88.6k, False: 2.07M]
  ------------------
 1495|  2.16M|	}
_ZNK4pcpp21SSLClientHelloMessage16getCipherSuiteIDEiRb:
 1498|  6.49M|	{
 1499|  6.49M|		if (index < 0 || index >= getCipherSuiteCount())
  ------------------
  |  Branch (1499:7): [True: 0, False: 6.49M]
  |  Branch (1499:20): [True: 0, False: 6.49M]
  ------------------
 1500|      0|		{
 1501|      0|			isValid = false;
 1502|      0|			return 0;
 1503|      0|		}
 1504|       |
 1505|  6.49M|		size_t cipherSuiteStartOffset =
 1506|  6.49M|		    sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
 1507|  6.49M|		if (cipherSuiteStartOffset + sizeof(uint16_t) * (index + 1) > m_DataLen)
  ------------------
  |  Branch (1507:7): [True: 6.23M, False: 265k]
  ------------------
 1508|  6.23M|		{
 1509|  6.23M|			isValid = false;
 1510|  6.23M|			return 0;
 1511|  6.23M|		}
 1512|       |
 1513|   265k|		isValid = true;
 1514|   265k|		uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
 1515|       |		return be16toh(*(cipherSuiteStartPos + index));
 1516|  6.49M|	}
_ZNK4pcpp21SSLClientHelloMessage26getCompressionMethodsValueEv:
 1519|  7.08k|	{
 1520|  7.08k|		size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1521|  7.08k|		                sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() + sizeof(uint8_t);
 1522|  7.08k|		if (offset + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (1522:7): [True: 2.82k, False: 4.25k]
  ------------------
 1523|  2.82k|			return 0xff;
 1524|       |
 1525|  4.25k|		uint8_t* pos = m_Data + offset;
 1526|  4.25k|		return *pos;
 1527|  7.08k|	}
_ZNK4pcpp21SSLClientHelloMessage17getExtensionCountEv:
 1530|  7.08k|	{
 1531|  7.08k|		return m_ExtensionList.size();
 1532|  7.08k|	}
_ZNK4pcpp21SSLClientHelloMessage19getExtensionsLengthEv:
 1535|  22.2k|	{
 1536|  22.2k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1537|  22.2k|		                               sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() +
 1538|  22.2k|		                               2 * sizeof(uint8_t);
 1539|  22.2k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1539:7): [True: 0, False: 22.2k]
  ------------------
 1540|      0|			return 0;
 1541|       |
 1542|  22.2k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1543|       |		return be16toh(*reinterpret_cast<uint16_t*>(extensionLengthPos));
 1544|  22.2k|	}
_ZNK4pcpp21SSLClientHelloMessage12getExtensionEi:
 1547|  46.5k|	{
 1548|  46.5k|		return const_cast<SSLExtension*>(m_ExtensionList.at(index));
 1549|  46.5k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeEt:
 1552|  7.08k|	{
 1553|  7.08k|		size_t vecSize = m_ExtensionList.size();
 1554|  12.4k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1554:22): [True: 8.94k, False: 3.46k]
  ------------------
 1555|  8.94k|		{
 1556|  8.94k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1557|  8.94k|			if (curElem->getTypeAsInt() == type)
  ------------------
  |  Branch (1557:8): [True: 3.61k, False: 5.33k]
  ------------------
 1558|  3.61k|				return curElem;
 1559|  8.94k|		}
 1560|       |
 1561|  3.46k|		return nullptr;
 1562|  7.08k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeENS_16SSLExtensionTypeE:
 1565|  7.08k|	{
 1566|  7.08k|		size_t vecSize = m_ExtensionList.size();
 1567|  12.4k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1567:22): [True: 8.94k, False: 3.46k]
  ------------------
 1568|  8.94k|		{
 1569|  8.94k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1570|  8.94k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1570:8): [True: 3.61k, False: 5.33k]
  ------------------
 1571|  3.61k|				return curElem;
 1572|  8.94k|		}
 1573|       |
 1574|  3.46k|		return nullptr;
 1575|  7.08k|	}
_ZNK4pcpp21SSLClientHelloMessage22generateTLSFingerprintEv:
 1578|  7.08k|	{
 1579|  7.08k|		SSLClientHelloMessage::ClientHelloTLSFingerprint result;
 1580|       |
 1581|       |		// extract version
 1582|  7.08k|		result.tlsVersion = getHandshakeVersion().asUInt();
 1583|       |
 1584|       |		// extract cipher suites
 1585|  7.08k|		int cipherSuiteCount = getCipherSuiteCount();
 1586|  2.17M|		for (int i = 0; i < cipherSuiteCount; i++)
  ------------------
  |  Branch (1586:19): [True: 2.16M, False: 7.08k]
  ------------------
 1587|  2.16M|		{
 1588|  2.16M|			bool isValid = false;
 1589|  2.16M|			uint16_t cipherSuiteID = getCipherSuiteID(i, isValid);
 1590|  2.16M|			if (isValid && GreaseSet.find(cipherSuiteID) == GreaseSet.end())
  ------------------
  |  Branch (1590:8): [True: 88.6k, False: 2.07M]
  |  Branch (1590:8): [True: 88.2k, False: 2.07M]
  |  Branch (1590:19): [True: 88.2k, False: 405]
  ------------------
 1591|  88.2k|				result.cipherSuites.push_back(cipherSuiteID);
 1592|  2.16M|		}
 1593|       |
 1594|       |		// extract extensions
 1595|  7.08k|		int extensionCount = getExtensionCount();
 1596|  53.6k|		for (int i = 0; i < extensionCount; i++)
  ------------------
  |  Branch (1596:19): [True: 46.5k, False: 7.08k]
  ------------------
 1597|  46.5k|		{
 1598|  46.5k|			uint16_t extensionType = getExtension(i)->getTypeAsInt();
 1599|  46.5k|			if (GreaseSet.find(extensionType) != GreaseSet.end())
  ------------------
  |  Branch (1599:8): [True: 754, False: 45.7k]
  ------------------
 1600|    754|				continue;
 1601|       |
 1602|  45.7k|			result.extensions.push_back(extensionType);
 1603|  45.7k|		}
 1604|       |
 1605|       |		// extract supported groups
 1606|  7.08k|		TLSSupportedGroupsExtension* supportedGroupsExt = getExtensionOfType<TLSSupportedGroupsExtension>();
 1607|  7.08k|		if (supportedGroupsExt != nullptr)
  ------------------
  |  Branch (1607:7): [True: 2.50k, False: 4.57k]
  ------------------
 1608|  2.50k|		{
 1609|  2.50k|			std::vector<uint16_t> supportedGroups = supportedGroupsExt->getSupportedGroups();
 1610|  2.50k|			for (const auto& iter : supportedGroups)
  ------------------
  |  Branch (1610:26): [True: 13.3k, False: 2.50k]
  ------------------
 1611|  13.3k|				if (GreaseSet.find(iter) == GreaseSet.end())
  ------------------
  |  Branch (1611:9): [True: 12.9k, False: 394]
  ------------------
 1612|  12.9k|					result.supportedGroups.push_back(iter);
 1613|  2.50k|		}
 1614|       |
 1615|       |		// extract EC point formats
 1616|  7.08k|		TLSECPointFormatExtension* ecPointFormatExt = getExtensionOfType<TLSECPointFormatExtension>();
 1617|  7.08k|		if (ecPointFormatExt != nullptr)
  ------------------
  |  Branch (1617:7): [True: 3.62k, False: 3.45k]
  ------------------
 1618|  3.62k|		{
 1619|  3.62k|			result.ecPointFormats = ecPointFormatExt->getECPointFormatList();
 1620|  3.62k|		}
 1621|       |
 1622|  7.08k|		return result;
 1623|  7.08k|	}
_ZNK4pcpp21SSLClientHelloMessage8toStringEv:
 1626|  14.1k|	{
 1627|  14.1k|		return "Client Hello message";
 1628|  14.1k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint8toStringEv:
 1635|  7.08k|	{
 1636|  7.08k|		std::stringstream tlsFingerprint;
 1637|       |
 1638|       |		// add version
 1639|  7.08k|		tlsFingerprint << tlsVersion << ",";
 1640|       |
 1641|       |		// add cipher suites
 1642|  7.08k|		bool firstCipher = true;
 1643|  7.08k|		for (const auto& iter : cipherSuites)
  ------------------
  |  Branch (1643:25): [True: 88.2k, False: 7.08k]
  ------------------
 1644|  88.2k|		{
 1645|  88.2k|			tlsFingerprint << (firstCipher ? "" : "-") << iter;
  ------------------
  |  Branch (1645:23): [True: 4.30k, False: 83.9k]
  ------------------
 1646|  88.2k|			firstCipher = false;
 1647|  88.2k|		}
 1648|  7.08k|		tlsFingerprint << ",";
 1649|       |
 1650|       |		// add extensions
 1651|  7.08k|		bool firstExtension = true;
 1652|  7.08k|		for (const auto& iter : extensions)
  ------------------
  |  Branch (1652:25): [True: 45.7k, False: 7.08k]
  ------------------
 1653|  45.7k|		{
 1654|  45.7k|			tlsFingerprint << (firstExtension ? "" : "-") << iter;
  ------------------
  |  Branch (1654:23): [True: 4.05k, False: 41.7k]
  ------------------
 1655|  45.7k|			firstExtension = false;
 1656|  45.7k|		}
 1657|  7.08k|		tlsFingerprint << ",";
 1658|       |
 1659|       |		// add supported groups
 1660|  7.08k|		bool firstGroup = true;
 1661|  7.08k|		for (const auto& iter : supportedGroups)
  ------------------
  |  Branch (1661:25): [True: 12.9k, False: 7.08k]
  ------------------
 1662|  12.9k|		{
 1663|  12.9k|			tlsFingerprint << (firstGroup ? "" : "-") << iter;
  ------------------
  |  Branch (1663:23): [True: 2.42k, False: 10.5k]
  ------------------
 1664|  12.9k|			firstGroup = false;
 1665|  12.9k|		}
 1666|  7.08k|		tlsFingerprint << ",";
 1667|       |
 1668|       |		// add EC point formats
 1669|  7.08k|		bool firstPointFormat = true;
 1670|  7.08k|		for (auto iter : ecPointFormats)
  ------------------
  |  Branch (1670:18): [True: 3.30k, False: 7.08k]
  ------------------
 1671|  3.30k|		{
 1672|  3.30k|			tlsFingerprint << (firstPointFormat ? "" : "-") << (int)iter;
  ------------------
  |  Branch (1672:23): [True: 2.43k, False: 870]
  ------------------
 1673|  3.30k|			firstPointFormat = false;
 1674|  3.30k|		}
 1675|       |
 1676|  7.08k|		return tlsFingerprint.str();
 1677|  7.08k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint5toMD5Ev:
 1680|  7.08k|	{
 1681|  7.08k|		return toStringAndMD5().second;
 1682|  7.08k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint14toStringAndMD5Ev:
 1685|  7.08k|	{
 1686|  7.08k|		std::string str = toString();
 1687|  7.08k|		MD5 md5;
 1688|  7.08k|		return std::pair<std::string, std::string>(str, md5(str));
 1689|  7.08k|	}
_ZN4pcpp21SSLServerHelloMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1696|  28.4k|	    : SSLHandshakeMessage(data, dataLen, container)
 1697|  28.4k|	{
 1698|  28.4k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1699|  28.4k|		                               sizeof(uint16_t) + sizeof(uint8_t);
 1700|  28.4k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1700:7): [True: 10.6k, False: 17.7k]
  ------------------
 1701|  10.6k|			return;
 1702|       |
 1703|  17.7k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1704|  17.7k|		uint16_t extensionLength = getExtensionsLength();
 1705|  17.7k|		uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
 1706|  17.7k|		size_t messageLen = getMessageLength();
 1707|       |
 1708|  17.7k|		uint8_t* extensionIt = extensionPos;
 1709|  17.7k|		uint8_t* extensionEndIt = extensionPos + extensionLength;
 1710|       |
 1711|  17.7k|		uint8_t* endOfMessageIt = m_Data + messageLen;
 1712|  17.7k|		if (endOfMessageIt < extensionEndIt)
  ------------------
  |  Branch (1712:7): [True: 9.67k, False: 8.07k]
  ------------------
 1713|  9.67k|		{
 1714|  9.67k|			extensionEndIt = endOfMessageIt;
 1715|  9.67k|		}
 1716|       |
 1717|  17.7k|		constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
 1718|  50.0k|		while (extensionIt < extensionEndIt &&
  ------------------
  |  Branch (1718:10): [True: 44.7k, False: 5.25k]
  ------------------
 1719|  44.7k|		       std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
  ------------------
  |  Branch (1719:10): [True: 41.8k, False: 2.94k]
  ------------------
 1720|  41.8k|		{
 1721|  41.8k|			std::unique_ptr<SSLExtension> newExt;
 1722|       |
 1723|  41.8k|			uint16_t sslExtType = be16toh(*reinterpret_cast<uint16_t*>(extensionIt));
 1724|  41.8k|			size_t availableDataLen = std::distance(extensionIt, extensionEndIt);
 1725|       |
 1726|  41.8k|			switch (sslExtType)
 1727|  41.8k|			{
 1728|  9.03k|			case SSL_EXT_SERVER_NAME:
  ------------------
  |  Branch (1728:4): [True: 9.03k, False: 32.8k]
  ------------------
 1729|  9.03k|			{
 1730|  9.03k|				newExt =
 1731|  9.03k|				    SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
 1732|  9.03k|				break;
 1733|      0|			}
 1734|  2.80k|			case SSL_EXT_SUPPORTED_VERSIONS:
  ------------------
  |  Branch (1734:4): [True: 2.80k, False: 39.0k]
  ------------------
 1735|  2.80k|			{
 1736|  2.80k|				newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
 1737|  2.80k|				break;
 1738|      0|			}
 1739|      6|			case SSL_EXT_SUPPORTED_GROUPS:
  ------------------
  |  Branch (1739:4): [True: 6, False: 41.8k]
  ------------------
 1740|      6|			{
 1741|      6|				newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
 1742|      6|				break;
 1743|      0|			}
 1744|  1.17k|			case SSL_EXT_EC_POINT_FORMATS:
  ------------------
  |  Branch (1744:4): [True: 1.17k, False: 40.6k]
  ------------------
 1745|  1.17k|			{
 1746|  1.17k|				newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
 1747|  1.17k|				break;
 1748|      0|			}
 1749|  28.8k|			default:
  ------------------
  |  Branch (1749:4): [True: 28.8k, False: 13.0k]
  ------------------
 1750|  28.8k|			{
 1751|  28.8k|				newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
 1752|  28.8k|			}
 1753|  41.8k|			}
 1754|       |
 1755|  41.8k|			if (newExt == nullptr)
  ------------------
  |  Branch (1755:8): [True: 9.55k, False: 32.3k]
  ------------------
 1756|  9.55k|			{
 1757|  9.55k|				PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
  ------------------
  |  |  425|  9.55k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  9.55k|	do                                                                                                                 \
  |  |  |  |  413|  9.55k|	{                                                                                                                  \
  |  |  |  |  414|  9.55k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  9.55k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  9.55k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 9.55k]
  |  |  |  |  ------------------
  |  |  |  |  416|  9.55k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  9.55k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 9.55k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1758|  9.55k|				                                                        << " skipping remaining extensions.");
 1759|  9.55k|				break;
 1760|  9.55k|			}
 1761|       |
 1762|       |			// Total length can be zero only if getLength() == 0xfffc which is way too large
 1763|       |			// and means that this extension (and packet) are malformed
 1764|  32.3k|			size_t newExtTotalLen = newExt->getTotalLength();
 1765|  32.3k|			if (newExtTotalLen == 0)
  ------------------
  |  Branch (1765:8): [True: 0, False: 32.3k]
  ------------------
 1766|      0|			{
 1767|      0|				break;
 1768|      0|			}
 1769|       |
 1770|  32.3k|			m_ExtensionList.pushBack(std::move(newExt));
 1771|  32.3k|			std::advance(extensionIt, newExtTotalLen);
 1772|  32.3k|		}
 1773|  17.7k|	}
_ZNK4pcpp21SSLServerHelloMessage19getHandshakeVersionEv:
 1776|  8.88k|	{
 1777|  8.88k|		SSLSupportedVersionsExtension* supportedVersionsExt = getExtensionOfType<SSLSupportedVersionsExtension>();
 1778|  8.88k|		if (supportedVersionsExt != nullptr)
  ------------------
  |  Branch (1778:7): [True: 482, False: 8.40k]
  ------------------
 1779|    482|		{
 1780|    482|			std::vector<SSLVersion> supportedVersions = supportedVersionsExt->getSupportedVersions();
 1781|    482|			if (supportedVersions.size() == 1)
  ------------------
  |  Branch (1781:8): [True: 438, False: 44]
  ------------------
 1782|    438|				return supportedVersions[0];
 1783|    482|		}
 1784|       |
 1785|  8.44k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint16_t))
  ------------------
  |  Branch (1785:7): [True: 2, False: 8.44k]
  ------------------
 1786|      2|			return SSLVersion(0);
 1787|       |
 1788|  8.44k|		uint16_t handshakeVersion = be16toh(getServerHelloHeader()->handshakeVersion);
 1789|  8.44k|		return SSLVersion(handshakeVersion);
 1790|  8.44k|	}
_ZNK4pcpp21SSLServerHelloMessage18getSessionIDLengthEv:
 1792|  63.9k|	{
 1793|  63.9k|		if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
  ------------------
  |  Branch (1793:7): [True: 13.5k, False: 50.3k]
  ------------------
 1794|  13.5k|			return 0;
 1795|       |
 1796|  50.3k|		uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
 1797|  50.3k|		if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
  ------------------
  |  Branch (1797:7): [True: 2.84k, False: 47.5k]
  ------------------
 1798|  2.84k|			return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
 1799|       |
 1800|  47.5k|		return val;
 1801|  50.3k|	}
_ZNK4pcpp21SSLServerHelloMessage12getSessionIDEv:
 1804|  4.44k|	{
 1805|  4.44k|		if (getSessionIDLength() > 0)
  ------------------
  |  Branch (1805:7): [True: 2.33k, False: 2.10k]
  ------------------
 1806|  2.33k|			return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
 1807|  2.10k|		else
 1808|  2.10k|			return nullptr;
 1809|  4.44k|	}
_ZNK4pcpp21SSLServerHelloMessage14getCipherSuiteEv:
 1812|  4.44k|	{
 1813|  4.44k|		bool isValid;
 1814|  4.44k|		uint16_t id = getCipherSuiteID(isValid);
 1815|  4.44k|		return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
  ------------------
  |  Branch (1815:11): [True: 2.81k, False: 1.63k]
  ------------------
 1816|  4.44k|	}
_ZNK4pcpp21SSLServerHelloMessage16getCipherSuiteIDERb:
 1819|  8.88k|	{
 1820|  8.88k|		size_t cipherSuiteStartOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
 1821|  8.88k|		if (cipherSuiteStartOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1821:7): [True: 3.26k, False: 5.62k]
  ------------------
 1822|  3.26k|		{
 1823|  3.26k|			isValid = false;
 1824|  3.26k|			return 0;
 1825|  3.26k|		}
 1826|       |
 1827|  5.62k|		isValid = true;
 1828|  5.62k|		uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
 1829|       |		return be16toh(*(cipherSuiteStartPos));
 1830|  8.88k|	}
_ZNK4pcpp21SSLServerHelloMessage26getCompressionMethodsValueEv:
 1833|  4.44k|	{
 1834|  4.44k|		size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
 1835|  4.44k|		if (offset + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (1835:7): [True: 1.63k, False: 2.81k]
  ------------------
 1836|  1.63k|			return 0xff;
 1837|       |
 1838|  2.81k|		uint8_t* pos = m_Data + offset;
 1839|  2.81k|		return *pos;
 1840|  4.44k|	}
_ZNK4pcpp21SSLServerHelloMessage17getExtensionCountEv:
 1843|  4.44k|	{
 1844|  4.44k|		return m_ExtensionList.size();
 1845|  4.44k|	}
_ZNK4pcpp21SSLServerHelloMessage19getExtensionsLengthEv:
 1848|  17.7k|	{
 1849|  17.7k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1850|  17.7k|		                               sizeof(uint16_t) + sizeof(uint8_t);
 1851|  17.7k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1851:7): [True: 0, False: 17.7k]
  ------------------
 1852|      0|			return 0;
 1853|       |
 1854|  17.7k|		uint16_t* extensionLengthPos = (uint16_t*)(m_Data + extensionLengthOffset);
 1855|       |		return be16toh(*extensionLengthPos);
 1856|  17.7k|	}
_ZNK4pcpp21SSLServerHelloMessage12getExtensionEi:
 1859|  5.06k|	{
 1860|  5.06k|		if (index < 0 || index >= (int)m_ExtensionList.size())
  ------------------
  |  Branch (1860:7): [True: 0, False: 5.06k]
  |  Branch (1860:20): [True: 0, False: 5.06k]
  ------------------
 1861|      0|			return nullptr;
 1862|       |
 1863|  5.06k|		return const_cast<SSLExtension*>(m_ExtensionList.at(index));
 1864|  5.06k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeEt:
 1867|  4.44k|	{
 1868|  4.44k|		size_t vecSize = m_ExtensionList.size();
 1869|  7.60k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1869:22): [True: 3.78k, False: 3.81k]
  ------------------
 1870|  3.78k|		{
 1871|  3.78k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1872|  3.78k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1872:8): [True: 625, False: 3.15k]
  ------------------
 1873|    625|				return curElem;
 1874|  3.78k|		}
 1875|       |
 1876|  3.81k|		return nullptr;
 1877|  4.44k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeENS_16SSLExtensionTypeE:
 1880|  4.44k|	{
 1881|  4.44k|		size_t vecSize = m_ExtensionList.size();
 1882|  7.60k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1882:22): [True: 3.78k, False: 3.81k]
  ------------------
 1883|  3.78k|		{
 1884|  3.78k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1885|  3.78k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1885:8): [True: 625, False: 3.15k]
  ------------------
 1886|    625|				return curElem;
 1887|  3.78k|		}
 1888|       |
 1889|  3.81k|		return nullptr;
 1890|  4.44k|	}
_ZNK4pcpp21SSLServerHelloMessage22generateTLSFingerprintEv:
 1893|  4.44k|	{
 1894|  4.44k|		SSLServerHelloMessage::ServerHelloTLSFingerprint result;
 1895|       |
 1896|       |		// extract version
 1897|  4.44k|		result.tlsVersion = getHandshakeVersion().asUInt();
 1898|       |
 1899|       |		// extract cipher suite
 1900|  4.44k|		bool isValid;
 1901|  4.44k|		uint16_t cipherSuite = getCipherSuiteID(isValid);
 1902|  4.44k|		result.cipherSuite = (isValid ? cipherSuite : 0);
  ------------------
  |  Branch (1902:25): [True: 2.81k, False: 1.63k]
  ------------------
 1903|       |
 1904|       |		// extract extensions
 1905|  4.44k|		int extensionCount = getExtensionCount();
 1906|  9.50k|		for (int i = 0; i < extensionCount; i++)
  ------------------
  |  Branch (1906:19): [True: 5.06k, False: 4.44k]
  ------------------
 1907|  5.06k|		{
 1908|  5.06k|			uint16_t extensionType = getExtension(i)->getTypeAsInt();
 1909|  5.06k|			result.extensions.push_back(extensionType);
 1910|  5.06k|		}
 1911|       |
 1912|  4.44k|		return result;
 1913|  4.44k|	}
_ZNK4pcpp21SSLServerHelloMessage8toStringEv:
 1916|  8.88k|	{
 1917|  8.88k|		return "Server Hello message";
 1918|  8.88k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint8toStringEv:
 1925|  4.44k|	{
 1926|  4.44k|		std::stringstream tlsFingerprint;
 1927|       |
 1928|       |		// add version and cipher suite
 1929|  4.44k|		tlsFingerprint << tlsVersion << "," << cipherSuite << ",";
 1930|       |
 1931|       |		// add extensions
 1932|  4.44k|		bool firstExtension = true;
 1933|  4.44k|		for (const auto& iter : extensions)
  ------------------
  |  Branch (1933:25): [True: 5.06k, False: 4.44k]
  ------------------
 1934|  5.06k|		{
 1935|  5.06k|			tlsFingerprint << (firstExtension ? "" : "-") << iter;
  ------------------
  |  Branch (1935:23): [True: 2.53k, False: 2.52k]
  ------------------
 1936|  5.06k|			firstExtension = false;
 1937|  5.06k|		}
 1938|       |
 1939|  4.44k|		return tlsFingerprint.str();
 1940|  4.44k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint5toMD5Ev:
 1943|  4.44k|	{
 1944|  4.44k|		return toStringAndMD5().second;
 1945|  4.44k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint14toStringAndMD5Ev:
 1948|  4.44k|	{
 1949|  4.44k|		std::string str = toString();
 1950|  4.44k|		MD5 md5;
 1951|  4.44k|		return std::pair<std::string, std::string>(str, md5(str));
 1952|  4.44k|	}
_ZN4pcpp21SSLCertificateMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1959|  9.42k|	    : SSLHandshakeMessage(data, dataLen, container)
 1960|  9.42k|	{
 1961|  9.42k|		if (dataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t) * 3)  // certificates length (3B)
  ------------------
  |  Branch (1961:7): [True: 30, False: 9.39k]
  ------------------
 1962|     30|			return;
 1963|       |
 1964|  9.39k|		size_t messageLen = getMessageLength();
 1965|       |		// read certificates length
 1966|       |		// TODO: certificates length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs
 1967|  9.39k|		uint8_t* curPos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);
 1968|  9.39k|		uint16_t certificatesLength = be16toh(*reinterpret_cast<uint16_t*>(curPos));
 1969|  9.39k|		if (certificatesLength == 0)
  ------------------
  |  Branch (1969:7): [True: 144, False: 9.25k]
  ------------------
 1970|    144|			return;
 1971|       |
 1972|       |		// advance to position of first certificate
 1973|  9.25k|		curPos += sizeof(uint16_t);
 1974|       |
 1975|  34.4k|		while (true)
  ------------------
  |  Branch (1975:10): [True: 34.4k, Folded]
  ------------------
 1976|  34.4k|		{
 1977|       |			// try to read certificate length (3B)
 1978|       |			// TODO: certificate length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs
 1979|  34.4k|			if (curPos + 3 * sizeof(uint8_t) - data > (int)messageLen)
  ------------------
  |  Branch (1979:8): [True: 9.25k, False: 25.2k]
  ------------------
 1980|  9.25k|				break;
 1981|       |
 1982|       |			// read certificate length
 1983|  25.2k|			curPos += sizeof(uint8_t);
 1984|  25.2k|			uint16_t certificateLength = be16toh(*reinterpret_cast<uint16_t*>(curPos));
 1985|       |
 1986|       |			// advance to start position of certificate
 1987|  25.2k|			curPos += sizeof(uint16_t);
 1988|       |
 1989|       |			// if packet doesn't contain the full certificate, read only what you got from current position till the
 1990|       |			// end of the packet
 1991|  25.2k|			bool certificateFull = true;
 1992|  25.2k|			if (curPos - data + certificateLength > (int)messageLen)
  ------------------
  |  Branch (1992:8): [True: 8.77k, False: 16.4k]
  ------------------
 1993|  8.77k|			{
 1994|  8.77k|				certificateLength = messageLen - (curPos - data);
 1995|  8.77k|				certificateFull = false;
 1996|  8.77k|			}
 1997|       |
 1998|  25.2k|			PCPP_LOG_DEBUG("Parsing certificate: pos=" << (int)(curPos - data) << "; len=" << certificateLength);
  ------------------
  |  |  425|  25.2k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  25.2k|	do                                                                                                                 \
  |  |  |  |  413|  25.2k|	{                                                                                                                  \
  |  |  |  |  414|  25.2k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  25.2k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  25.2k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 25.2k]
  |  |  |  |  ------------------
  |  |  |  |  416|  25.2k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  25.2k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 25.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1999|  25.2k|			SSLx509Certificate* newCert = new SSLx509Certificate(curPos, certificateLength, certificateFull);
 2000|  25.2k|			m_CertificateList.pushBack(newCert);
 2001|       |
 2002|  25.2k|			curPos += certificateLength;
 2003|  25.2k|		}
 2004|  9.25k|	}
_ZNK4pcpp21SSLCertificateMessage8toStringEv:
 2007|  2.93k|	{
 2008|  2.93k|		return "Certificate message";
 2009|  2.93k|	}
_ZNK4pcpp22SSLHelloRequestMessage8toStringEv:
 2033|  8.48k|	{
 2034|  8.48k|		return "Hello Request message";
 2035|  8.48k|	}
_ZNK4pcpp25SSLServerHelloDoneMessage8toStringEv:
 2042|    462|	{
 2043|    462|		return "Server Hello Done message";
 2044|    462|	}
_ZNK4pcpp27SSLServerKeyExchangeMessage8toStringEv:
 2068|  1.24k|	{
 2069|  1.24k|		return "Server Key Exchange message";
 2070|  1.24k|	}
_ZNK4pcpp27SSLClientKeyExchangeMessage8toStringEv:
 2094|    776|	{
 2095|    776|		return "Client Key Exchange message";
 2096|    776|	}
_ZN4pcpp28SSLCertificateRequestMessageC2EPhmPNS_17SSLHandshakeLayerE:
 2104|  13.8k|	    : SSLHandshakeMessage(data, dataLen, container)
 2105|  13.8k|	{
 2106|  13.8k|		size_t minMessageSize = sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);  // certificate types count (1B)
 2107|  13.8k|		if (dataLen < minMessageSize)
  ------------------
  |  Branch (2107:7): [True: 1.71k, False: 12.1k]
  ------------------
 2108|  1.71k|			return;
 2109|       |
 2110|  12.1k|		size_t messageLen = getMessageLength();
 2111|  12.1k|		if (messageLen < minMessageSize)
  ------------------
  |  Branch (2111:7): [True: 650, False: 11.5k]
  ------------------
 2112|    650|			return;
 2113|       |
 2114|  11.5k|		uint8_t certificateTypesCount = *(uint8_t*)(data + sizeof(ssl_tls_handshake_layer));
 2115|       |
 2116|  11.5k|		if (certificateTypesCount > messageLen - minMessageSize)
  ------------------
  |  Branch (2116:7): [True: 4.79k, False: 6.71k]
  ------------------
 2117|  4.79k|			certificateTypesCount = messageLen - minMessageSize;
 2118|       |
 2119|  11.5k|		uint8_t* pos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);
 2120|   270k|		for (uint8_t i = 0; i < certificateTypesCount; i++)
  ------------------
  |  Branch (2120:23): [True: 259k, False: 11.5k]
  ------------------
 2121|   259k|		{
 2122|   259k|			uint8_t certType = *(uint8_t*)(pos + i);
 2123|   259k|			if (certType == 0 || (certType > 6 && certType < 20) || (certType > 20 && certType < 64) || certType > 64)
  ------------------
  |  Branch (2123:8): [True: 19.2k, False: 239k]
  |  Branch (2123:26): [True: 196k, False: 43.2k]
  |  Branch (2123:42): [True: 18.2k, False: 178k]
  |  Branch (2123:61): [True: 149k, False: 72.1k]
  |  Branch (2123:78): [True: 17.7k, False: 131k]
  |  Branch (2123:96): [True: 125k, False: 78.3k]
  ------------------
 2124|   180k|				m_ClientCertificateTypes.push_back(SSL_CCT_UNKNOWN);
 2125|  78.3k|			else
 2126|  78.3k|				m_ClientCertificateTypes.push_back(static_cast<SSLClientCertificateType>(certType));
 2127|   259k|		}
 2128|  11.5k|	}
_ZNK4pcpp28SSLCertificateRequestMessage8toStringEv:
 2164|  4.35k|	{
 2165|  4.35k|		return "Certificate Request message";
 2166|  4.35k|	}
_ZNK4pcpp27SSLCertificateVerifyMessage8toStringEv:
 2190|    372|	{
 2191|    372|		return "Certificate Verify message";
 2192|    372|	}
_ZNK4pcpp18SSLFinishedMessage8toStringEv:
 2216|    746|	{
 2217|    746|		return "Finished message";
 2218|    746|	}
_ZNK4pcpp26SSLNewSessionTicketMessage8toStringEv:
 2242|    640|	{
 2243|    640|		return "New Session Ticket message";
 2244|    640|	}
_ZNK4pcpp17SSLUnknownMessage16getMessageLengthEv:
 2258|  91.9k|	{
 2259|       |		// if message type is unknown, it may be some encrypted message so message length isn't necessarily written
 2260|       |		// in clear. So in this case assume message is in length of all remaining data
 2261|  91.9k|		return m_DataLen;
 2262|  91.9k|	}
_ZNK4pcpp17SSLUnknownMessage8toStringEv:
 2265|  14.7k|	{
 2266|  14.7k|		return "Unknown message";
 2267|  14.7k|	}
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.08k|	{
  695|  7.08k|		unsigned h = SslHashInitialValue;
  696|   155k|		for (auto i = 0u; i < str.size(); ++i)
  ------------------
  |  Branch (696:21): [True: 148k, False: 7.08k]
  ------------------
  697|   148k|		{
  698|   148k|			h = (h * SslHashMultiplierA) ^ (str[i] * SslHashMultiplierB);
  699|   148k|		}
  700|  7.08k|		return h;
  701|  7.08k|	}

_ZN4pcpp8SSLLayer12IsSSLMessageEttPhmb:
   15|   522k|	{
   16|       |		// check the port map first
   17|   522k|		if (!ignorePorts && !isSSLPort(srcPort) && !isSSLPort(dstPort))
  ------------------
  |  Branch (17:7): [True: 390k, False: 132k]
  |  Branch (17:23): [True: 354k, False: 35.6k]
  |  Branch (17:46): [True: 259k, False: 94.8k]
  ------------------
   18|   259k|			return false;
   19|       |
   20|   263k|		if (dataLen < sizeof(ssl_tls_record_layer))
  ------------------
  |  Branch (20:7): [True: 33.7k, False: 229k]
  ------------------
   21|  33.7k|			return false;
   22|       |
   23|   229k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   24|       |
   25|       |		// there is no SSL message with length 0
   26|   229k|		if (recordLayer->length == 0)
  ------------------
  |  Branch (26:7): [True: 4.41k, False: 224k]
  ------------------
   27|  4.41k|			return false;
   28|       |
   29|   224k|		if (recordLayer->recordType < 20 || recordLayer->recordType > 23)
  ------------------
  |  Branch (29:7): [True: 1.15k, False: 223k]
  |  Branch (29:39): [True: 11.8k, False: 211k]
  ------------------
   30|  13.0k|			return false;
   31|       |
   32|   211k|		SSLVersion::SSLVersionEnum recordVersion = SSLVersion(be16toh(recordLayer->recordVersion)).asEnum(true);
   33|       |
   34|   211k|		if (recordVersion == SSLVersion::TLS1_3 || recordVersion == SSLVersion::TLS1_2 ||
  ------------------
  |  Branch (34:7): [True: 3.13k, False: 208k]
  |  Branch (34:46): [True: 164k, False: 44.5k]
  ------------------
   35|  44.5k|		    recordVersion == SSLVersion::TLS1_1 || recordVersion == SSLVersion::TLS1_0 ||
  ------------------
  |  Branch (35:7): [True: 3.88k, False: 40.6k]
  |  Branch (35:46): [True: 36.6k, False: 3.99k]
  ------------------
   36|  3.99k|		    recordVersion == SSLVersion::SSL3)
  ------------------
  |  Branch (36:7): [True: 3.25k, False: 737]
  ------------------
   37|   211k|			return true;
   38|    737|		else
   39|    737|			return false;
   40|   211k|	}
_ZN4pcpp8SSLLayer16createSSLMessageEPhmPNS_5LayerEPNS_6PacketE:
   43|   211k|	{
   44|   211k|		if (!canReinterpretAs<ssl_tls_record_layer>(data, dataLen))
  ------------------
  |  Branch (44:7): [True: 0, False: 211k]
  ------------------
   45|      0|		{
   46|      0|			return nullptr;
   47|      0|		}
   48|       |
   49|   211k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   50|   211k|		switch (recordLayer->recordType)
   51|   211k|		{
   52|   117k|		case SSL_HANDSHAKE:
  ------------------
  |  Branch (52:3): [True: 117k, False: 94.0k]
  ------------------
   53|   117k|		{
   54|   117k|			return new SSLHandshakeLayer(data, dataLen, prevLayer, packet);
   55|      0|		}
   56|       |
   57|  5.44k|		case SSL_ALERT:
  ------------------
  |  Branch (57:3): [True: 5.44k, False: 205k]
  ------------------
   58|  5.44k|		{
   59|  5.44k|			return new SSLAlertLayer(data, dataLen, prevLayer, packet);
   60|      0|		}
   61|       |
   62|  71.0k|		case SSL_CHANGE_CIPHER_SPEC:
  ------------------
  |  Branch (62:3): [True: 71.0k, False: 140k]
  ------------------
   63|  71.0k|		{
   64|  71.0k|			return new SSLChangeCipherSpecLayer(data, dataLen, prevLayer, packet);
   65|      0|		}
   66|       |
   67|  17.5k|		case SSL_APPLICATION_DATA:
  ------------------
  |  Branch (67:3): [True: 17.5k, False: 193k]
  ------------------
   68|  17.5k|		{
   69|  17.5k|			return new SSLApplicationDataLayer(data, dataLen, prevLayer, packet);
   70|      0|		}
   71|       |
   72|      0|		default:
  ------------------
  |  Branch (72:3): [True: 0, False: 211k]
  ------------------
   73|      0|			return nullptr;
   74|   211k|		}
   75|   211k|	}
_ZNK4pcpp8SSLLayer16getRecordVersionEv:
   78|  68.4k|	{
   79|       |		uint16_t recordVersion = be16toh(getRecordLayer()->recordVersion);
   80|  68.4k|		return SSLVersion(recordVersion);
   81|  68.4k|	}
_ZNK4pcpp8SSLLayer12getHeaderLenEv:
   89|   245k|	{
   90|   245k|		size_t len = sizeof(ssl_tls_record_layer) + be16toh(getRecordLayer()->length);
   91|   245k|		if (len > m_DataLen)
  ------------------
  |  Branch (91:7): [True: 37.8k, False: 207k]
  ------------------
   92|  37.8k|			return m_DataLen;
   93|   207k|		return len;
   94|   245k|	}
_ZN4pcpp8SSLLayer14parseNextLayerEv:
   97|   211k|	{
   98|   211k|		size_t headerLen = getHeaderLen();
   99|   211k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (99:7): [True: 78.5k, False: 132k]
  ------------------
  100|  78.5k|			return;
  101|       |
  102|   132k|		if (SSLLayer::IsSSLMessage(0, 0, m_Data + headerLen, m_DataLen - headerLen, true))
  ------------------
  |  Branch (102:7): [True: 96.4k, False: 36.2k]
  ------------------
  103|  96.4k|		{
  104|  96.4k|			constructNextLayerFromFactory(SSLLayer::createSSLMessage, m_Data + headerLen, m_DataLen - headerLen);
  105|  96.4k|		}
  106|   132k|	}
_ZNK4pcpp17SSLHandshakeLayer8toStringEv:
  113|  38.2k|	{
  114|  38.2k|		std::stringstream result;
  115|  38.2k|		result << getRecordVersion().toString(true) << " Layer, Handshake:";
  116|  96.0k|		for (size_t i = 0; i < m_MessageList.size(); i++)
  ------------------
  |  Branch (116:22): [True: 57.8k, False: 38.2k]
  ------------------
  117|  57.8k|		{
  118|  57.8k|			if (i == 0)
  ------------------
  |  Branch (118:8): [True: 35.8k, False: 22.0k]
  ------------------
  119|  35.8k|				result << " " << m_MessageList.at(i)->toString();
  120|  22.0k|			else
  121|  22.0k|				result << ", " << m_MessageList.at(i)->toString();
  122|  57.8k|		}
  123|  38.2k|		return result.str();
  124|  38.2k|	}
_ZN4pcpp17SSLHandshakeLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  127|   117k|	    : SSLLayer(data, dataLen, prevLayer, packet)
  128|   117k|	{
  129|   117k|		constexpr size_t baseTLSRecordSize = sizeof(ssl_tls_record_layer);
  130|   117k|		uint8_t* curPos = m_Data + baseTLSRecordSize;
  131|   117k|		size_t recordDataLen = be16toh(getRecordLayer()->length);
  132|       |
  133|   117k|		if (m_DataLen < recordDataLen + baseTLSRecordSize)
  ------------------
  |  Branch (133:7): [True: 25.1k, False: 92.0k]
  ------------------
  134|  25.1k|		{
  135|  25.1k|			recordDataLen = m_DataLen >= baseTLSRecordSize ? m_DataLen - baseTLSRecordSize : 0;
  ------------------
  |  Branch (135:20): [True: 25.1k, False: 0]
  ------------------
  136|  25.1k|		}
  137|       |
  138|   117k|		size_t curPosIndex = 0;
  139|   293k|		while (true)
  ------------------
  |  Branch (139:10): [True: 293k, Folded]
  ------------------
  140|   293k|		{
  141|   293k|			SSLHandshakeMessage* message =
  142|   293k|			    SSLHandshakeMessage::createHandshakeMessage(curPos, recordDataLen - curPosIndex, this);
  143|   293k|			if (message == nullptr)
  ------------------
  |  Branch (143:8): [True: 117k, False: 176k]
  ------------------
  144|   117k|				break;
  145|       |
  146|   176k|			m_MessageList.pushBack(message);
  147|   176k|			curPos += message->getMessageLength();
  148|   176k|			curPosIndex += message->getMessageLength();
  149|   176k|		}
  150|   117k|	}
_ZNK4pcpp24SSLChangeCipherSpecLayer8toStringEv:
  165|  22.4k|	{
  166|  22.4k|		std::stringstream result;
  167|  22.4k|		result << getRecordVersion().toString(true) << " Layer, Change Cipher Spec";
  168|  22.4k|		return result.str();
  169|  22.4k|	}
_ZNK4pcpp13SSLAlertLayer13getAlertLevelEv:
  176|  1.82k|	{
  177|  1.82k|		uint8_t* pos = m_Data + sizeof(ssl_tls_record_layer);
  178|  1.82k|		uint8_t alertLevel = *pos;
  179|  1.82k|		if (alertLevel == SSL_ALERT_LEVEL_WARNING || alertLevel == SSL_ALERT_LEVEL_FATAL)
  ------------------
  |  Branch (179:7): [True: 936, False: 884]
  |  Branch (179:48): [True: 0, False: 884]
  ------------------
  180|    936|			return (SSLAlertLevel)alertLevel;
  181|    884|		else
  182|    884|			return SSL_ALERT_LEVEL_ENCRYPTED;
  183|  1.82k|	}
_ZNK4pcpp13SSLAlertLayer8toStringEv:
  227|  1.82k|	{
  228|  1.82k|		std::stringstream result;
  229|  1.82k|		result << getRecordVersion().toString(true) << " Layer, ";
  230|  1.82k|		if (getAlertLevel() == SSL_ALERT_LEVEL_ENCRYPTED)
  ------------------
  |  Branch (230:7): [True: 884, False: 936]
  ------------------
  231|    884|			result << "Encrypted Alert";
  232|    936|		else
  233|       |			// TODO: add alert level and description here
  234|    936|			result << "Alert";
  235|  1.82k|		return result.str();
  236|  1.82k|	}
_ZNK4pcpp23SSLApplicationDataLayer8toStringEv:
  260|  6.00k|	{
  261|  6.00k|		return getRecordVersion().toString(true) + " Layer, Application Data";
  262|  6.00k|	}

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

_ZNK4pcpp25SingleCommandTextProtocol22getArgumentFieldOffsetEv:
   14|  12.5k|	{
   15|  12.5k|		size_t maxLen;
   16|  12.5k|		if (m_DataLen < MaxCommandLength)
  ------------------
  |  Branch (16:7): [True: 14, False: 12.5k]
  ------------------
   17|     14|			maxLen = m_DataLen;
   18|  12.5k|		else
   19|  12.5k|			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|  12.5k|		std::string field(reinterpret_cast<char*>(m_Data), maxLen);
   26|       |
   27|  12.5k|		size_t posHyphen = field.find_first_of(AsciiHyphen);
   28|  12.5k|		size_t posSpace = field.find_first_of(AsciiSpace);
   29|  12.5k|		size_t posCRLF = field.rfind("\r\n");
   30|       |
   31|       |		// No delimiter or packet end
   32|  12.5k|		if (posHyphen == std::string::npos && posSpace == std::string::npos && posCRLF == std::string::npos)
  ------------------
  |  Branch (32:7): [True: 10.8k, False: 1.76k]
  |  Branch (32:41): [True: 7.64k, False: 3.18k]
  |  Branch (32:74): [True: 6.94k, False: 704]
  ------------------
   33|  6.94k|			return 0;
   34|       |		// Both hyphen and space found
   35|  5.64k|		else if (posHyphen != std::string::npos || posSpace != std::string::npos)
  ------------------
  |  Branch (35:12): [True: 1.76k, False: 3.88k]
  |  Branch (35:46): [True: 3.18k, False: 704]
  ------------------
   36|  4.94k|			return std::min(posSpace, posHyphen);
   37|       |		// If nothing found but there is a CRLF it is a only command packet
   38|    704|		else if (posCRLF != std::string::npos)
  ------------------
  |  Branch (38:12): [True: 704, False: 0]
  ------------------
   39|    704|			return posCRLF;
   40|       |
   41|      0|		return 0;
   42|  12.5k|	}
_ZNK4pcpp25SingleCommandTextProtocol18getCommandInternalEv:
  122|  8.97k|	{
  123|  8.97k|		size_t offset = getArgumentFieldOffset();
  124|       |
  125|       |		// If there is no option remove trailing newline characters
  126|  8.97k|		if (offset == (m_DataLen - 1) && offset > 1)
  ------------------
  |  Branch (126:7): [True: 0, False: 8.97k]
  |  Branch (126:36): [True: 0, False: 0]
  ------------------
  127|      0|			return std::string(reinterpret_cast<char*>(m_Data), offset - 1);
  128|  8.97k|		return std::string(reinterpret_cast<char*>(m_Data), offset);
  129|  8.97k|	}
_ZNK4pcpp25SingleCommandTextProtocol24getCommandOptionInternalEv:
  132|  3.61k|	{
  133|  3.61k|		size_t offset = getArgumentFieldOffset();
  134|       |
  135|       |		// We don't want to get delimiter so add 1 for start unless there is no command,
  136|  3.61k|		int addition = offset ? 1 : 0;
  ------------------
  |  Branch (136:18): [True: 1.61k, False: 2.00k]
  ------------------
  137|       |
  138|       |		// Check if command-only packet (-2 to account for len/position comparison and size of CRLF)
  139|  3.61k|		if (offset != (m_DataLen - 2))
  ------------------
  |  Branch (139:7): [True: 3.34k, False: 276]
  ------------------
  140|  3.34k|		{
  141|       |			// We don't want to trailing newline characters so remove 2 and remove addition from start point
  142|  3.34k|			auto option =
  143|  3.34k|			    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|  3.34k|			auto code = getCommandInternal();
  148|  3.34k|			auto vDelim = std::vector<std::string>{ code + " ", code + "-" };
  149|       |
  150|  3.34k|			for (const auto& delim : vDelim)
  ------------------
  |  Branch (150:27): [True: 6.68k, False: 3.34k]
  ------------------
  151|  6.68k|			{
  152|  6.68k|				size_t pos = 0;
  153|  8.09k|				while ((pos = option.find(delim, pos)) != std::string::npos)
  ------------------
  |  Branch (153:12): [True: 1.41k, False: 6.68k]
  ------------------
  154|  1.41k|				{
  155|  1.41k|					option.replace(pos, delim.length(), "");
  156|  1.41k|				}
  157|  6.68k|			}
  158|  3.34k|			return option;
  159|  3.34k|		}
  160|    276|		return "";
  161|  3.61k|	}
_ZN4pcpp25SingleCommandTextProtocol11isDataValidEPKhm:
  169|  11.9k|	{
  170|  11.9k|		if (data == nullptr || dataSize < MinPacketLength)
  ------------------
  |  Branch (170:7): [True: 0, False: 11.9k]
  |  Branch (170:26): [True: 0, False: 11.9k]
  ------------------
  171|      0|			return false;
  172|       |
  173|  11.9k|		std::string payload = std::string(reinterpret_cast<const char*>(data), dataSize);
  174|  11.9k|		return payload.rfind("\r\n") == dataSize - 2;
  175|  11.9k|	}

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

_ZN4pcpp9Sll2Layer24getLinkLayerAsMacAddressEv:
   46|     12|	{
   47|     12|		const uint8_t* data = getLinkLayerAddr();
   48|     12|		uint8_t dataLen = getLinkLayerAddrLen();
   49|     12|		if (data == nullptr || dataLen == 0 || dataLen > 8)
  ------------------
  |  Branch (49:7): [True: 0, False: 12]
  |  Branch (49:26): [True: 1, False: 11]
  |  Branch (49:42): [True: 11, False: 0]
  ------------------
   50|     12|		{
   51|     12|			return MacAddress::Zero;
   52|     12|		}
   53|      0|		return MacAddress(data);
   54|     12|	}
_ZN4pcpp9Sll2Layer14parseNextLayerEv:
   64|     36|	{
   65|     36|		if (m_DataLen <= sizeof(sll2_header))
  ------------------
  |  Branch (65:7): [True: 0, False: 36]
  ------------------
   66|      0|			return;
   67|       |
   68|     36|		uint8_t* payload = m_Data + sizeof(sll2_header);
   69|     36|		size_t payloadLen = m_DataLen - sizeof(sll2_header);
   70|       |
   71|     36|		sll2_header* hdr = getSll2Header();
   72|     36|		switch (be16toh(hdr->protocol_type))
   73|     36|		{
   74|      0|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|      0|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (74:3): [True: 0, False: 36]
  ------------------
   75|      0|		{
   76|      0|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   77|      0|			break;
   78|      0|		}
   79|      0|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|      0|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (79:3): [True: 0, False: 36]
  ------------------
   80|      0|		{
   81|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   82|      0|			break;
   83|      0|		}
   84|      0|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   33|      0|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (84:3): [True: 0, False: 36]
  ------------------
   85|      0|		{
   86|      0|			constructNextLayer<ArpLayer>(payload, payloadLen);
   87|      0|			break;
   88|      0|		}
   89|      0|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|      0|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (89:3): [True: 0, False: 36]
  ------------------
   90|      0|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   61|      0|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (90:3): [True: 0, False: 36]
  ------------------
   91|      0|		{
   92|      0|			constructNextLayer<VlanLayer>(payload, payloadLen);
   93|      0|			break;
   94|      0|		}
   95|      0|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   53|      0|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (95:3): [True: 0, False: 36]
  ------------------
   96|      0|		{
   97|      0|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   98|      0|			break;
   99|      0|		}
  100|      0|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   51|      0|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (100:3): [True: 0, False: 36]
  ------------------
  101|      0|		{
  102|      0|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
  103|      0|			break;
  104|      0|		}
  105|      0|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|      0|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (105:3): [True: 0, False: 36]
  ------------------
  106|      0|		{
  107|      0|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
  108|      0|			break;
  109|      0|		}
  110|      0|		case Sll2ProtoTypeLLC:
  ------------------
  |  Branch (110:3): [True: 0, False: 36]
  ------------------
  111|      0|		{
  112|      0|			tryConstructNextLayerWithFallback<LLCLayer, PayloadLayer>(payload, payloadLen);
  113|      0|			break;
  114|      0|		}
  115|     36|		default:
  ------------------
  |  Branch (115:3): [True: 36, False: 0]
  ------------------
  116|     36|		{
  117|     36|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  118|     36|			break;
  119|      0|		}
  120|     36|		}
  121|     36|	}
_ZN4pcpp9Sll2Layer22computeCalculateFieldsEv:
  124|     12|	{
  125|     12|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (125:7): [True: 0, False: 12]
  ------------------
  126|      0|			return;
  127|       |
  128|     12|		sll2_header* hdr = getSll2Header();
  129|     12|		switch (m_NextLayer->getProtocol())
  130|     12|		{
  131|      0|		case IPv4:
  ------------------
  |  Branch (131:3): [True: 0, False: 12]
  ------------------
  132|      0|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IP);
  133|      0|			break;
  134|      0|		case IPv6:
  ------------------
  |  Branch (134:3): [True: 0, False: 12]
  ------------------
  135|      0|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IPV6);
  136|      0|			break;
  137|      0|		case ARP:
  ------------------
  |  Branch (137:3): [True: 0, False: 12]
  ------------------
  138|      0|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_ARP);
  139|      0|			break;
  140|      0|		case VLAN:
  ------------------
  |  Branch (140:3): [True: 0, False: 12]
  ------------------
  141|      0|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_VLAN);
  142|      0|			break;
  143|      0|		case LLC:
  ------------------
  |  Branch (143:3): [True: 0, False: 12]
  ------------------
  144|      0|			hdr->protocol_type = htobe16(Sll2ProtoTypeLLC);
  145|      0|			break;
  146|     12|		default:
  ------------------
  |  Branch (146:3): [True: 12, False: 0]
  ------------------
  147|     12|			return;
  148|     12|		}
  149|     12|	}
_ZN4pcpp9Sll2Layer11isDataValidEPKhm:
  152|     36|	{
  153|     36|		return data && dataLen >= sizeof(sll2_header);
  ------------------
  |  Branch (153:10): [True: 36, False: 0]
  |  Branch (153:18): [True: 36, False: 0]
  ------------------
  154|     36|	}
_ZNK4pcpp9Sll2Layer8toStringEv:
  157|     24|	{
  158|     24|		return "Linux cooked header v2";
  159|     24|	}
_ZNK4pcpp9Sll2Layer15getProtocolTypeEv:
  162|     12|	{
  163|       |		return be16toh(getSll2Header()->protocol_type);
  164|     12|	}
_ZNK4pcpp9Sll2Layer17getInterfaceIndexEv:
  172|     12|	{
  173|       |		return be32toh(getSll2Header()->interface_index);
  174|     12|	}
_ZNK4pcpp9Sll2Layer13getArphrdTypeEv:
  182|     12|	{
  183|       |		return be16toh(getSll2Header()->ARPHRD_type);
  184|     12|	}
_ZNK4pcpp9Sll2Layer13getPacketTypeEv:
  192|     12|	{
  193|     12|		return getSll2Header()->packet_type;
  194|     12|	}
_ZNK4pcpp9Sll2Layer19getLinkLayerAddrLenEv:
  202|     12|	{
  203|     12|		return getSll2Header()->link_layer_addr_len;
  204|     12|	}
_ZNK4pcpp9Sll2Layer16getLinkLayerAddrEv:
  207|     12|	{
  208|     12|		return getSll2Header()->link_layer_addr;
  209|     12|	}

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

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

_ZN4pcpp11SomeIpLayer16parseSomeIpLayerEPhmPNS_5LayerEPNS_6PacketE:
   46|  48.8k|	{
   47|       |		// Ideas taken from wireshark some ip dissector
   48|  48.8k|		const size_t headerLen = sizeof(someiphdr);
   49|  48.8k|		if (dataLen < headerLen)
  ------------------
  |  Branch (49:7): [True: 16.6k, False: 32.2k]
  ------------------
   50|  16.6k|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   51|       |
   52|  32.2k|		uint32_t lengthBE = 0;
   53|  32.2k|		memcpy(&lengthBE, data + sizeof(uint32_t), sizeof(uint32_t));  // length field in SOME/IP header
   54|  32.2k|		uint32_t length = be32toh(lengthBE);
   55|  32.2k|		if ((length < 8) || (length > dataLen - 8))
  ------------------
  |  Branch (55:7): [True: 20, False: 32.2k]
  |  Branch (55:23): [True: 1.71k, False: 30.4k]
  ------------------
   56|  1.73k|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   57|       |
   58|  30.4k|		if (data[12] != SOMEIP_PROTOCOL_VERSION)
  ------------------
  |  Branch (58:7): [True: 31, False: 30.4k]
  ------------------
   59|     31|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   60|       |
   61|  30.4k|		someiphdr* hdr = (someiphdr*)data;
   62|       |
   63|  30.4k|		switch (static_cast<MsgType>(hdr->msgType & ~(uint8_t)MsgType::TP_REQUEST))
   64|  30.4k|		{
   65|    175|		case MsgType::REQUEST:
  ------------------
  |  Branch (65:3): [True: 175, False: 30.2k]
  ------------------
   66|    311|		case MsgType::REQUEST_ACK:
  ------------------
  |  Branch (66:3): [True: 136, False: 30.3k]
  ------------------
   67|  4.55k|		case MsgType::REQUEST_NO_RETURN:
  ------------------
  |  Branch (67:3): [True: 4.24k, False: 26.2k]
  ------------------
   68|  4.55k|		case MsgType::REQUEST_NO_RETURN_ACK:
  ------------------
  |  Branch (68:3): [True: 0, False: 30.4k]
  ------------------
   69|  27.5k|		case MsgType::NOTIFICATION:
  ------------------
  |  Branch (69:3): [True: 23.0k, False: 7.44k]
  ------------------
   70|  27.6k|		case MsgType::NOTIFICATION_ACK:
  ------------------
  |  Branch (70:3): [True: 128, False: 30.3k]
  ------------------
   71|  27.6k|		case MsgType::RESPONSE:
  ------------------
  |  Branch (71:3): [True: 0, False: 30.4k]
  ------------------
   72|  27.7k|		case MsgType::RESPONSE_ACK:
  ------------------
  |  Branch (72:3): [True: 18, False: 30.4k]
  ------------------
   73|  27.7k|		case MsgType::ERRORS:
  ------------------
  |  Branch (73:3): [True: 0, False: 30.4k]
  ------------------
   74|  30.4k|		case MsgType::ERROR_ACK:
  ------------------
  |  Branch (74:3): [True: 2.73k, False: 27.7k]
  ------------------
   75|  30.4k|			break;
   76|      7|		default:
  ------------------
  |  Branch (76:3): [True: 7, False: 30.4k]
  ------------------
   77|      7|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   78|  30.4k|		}
   79|       |
   80|  30.4k|		if (be16toh(hdr->serviceID) == 0xFFFF && be16toh(hdr->methodID) == 0x8100 &&
  ------------------
  |  Branch (80:7): [True: 29.0k, False: 1.44k]
  |  Branch (80:44): [True: 25.8k, False: 3.17k]
  ------------------
   81|  25.8k|		    SomeIpSdLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (81:7): [True: 20.0k, False: 5.79k]
  ------------------
   82|  20.0k|		{
   83|  20.0k|			return new SomeIpSdLayer(data, dataLen, prevLayer, packet);
   84|  20.0k|		}
   85|  10.4k|		else if ((hdr->msgType & (uint8_t)SomeIpLayer::MsgType::TP_REQUEST) != 0)
  ------------------
  |  Branch (85:12): [True: 2.48k, False: 7.92k]
  ------------------
   86|  2.48k|		{
   87|  2.48k|			return new SomeIpTpLayer(data, dataLen, prevLayer, packet);
   88|  2.48k|		}
   89|  7.92k|		else
   90|  7.92k|		{
   91|  7.92k|			return new SomeIpLayer(data, dataLen, prevLayer, packet);
   92|  7.92k|		}
   93|  30.4k|	}
_ZN4pcpp11SomeIpLayer12isSomeIpPortEt:
   96|   377k|	{
   97|   377k|		return SomeIpSdLayer::isSomeIpSdPort(port) ||
  ------------------
  |  Branch (97:10): [True: 30.5k, False: 346k]
  ------------------
   98|   346k|		       std::any_of(m_SomeIpPorts.begin(), m_SomeIpPorts.end(),
  ------------------
  |  Branch (98:10): [True: 0, False: 346k]
  ------------------
   99|   346k|		                   [&](const uint16_t& someIpPort) { return someIpPort == port; });
  100|   377k|	}
_ZNK4pcpp11SomeIpLayer12getServiceIDEv:
  137|  2.76k|	{
  138|       |		return be16toh(getSomeIpHeader()->serviceID);
  139|  2.76k|	}
_ZNK4pcpp11SomeIpLayer11getMethodIDEv:
  147|  2.76k|	{
  148|       |		return be16toh(getSomeIpHeader()->methodID);
  149|  2.76k|	}
_ZNK4pcpp11SomeIpLayer14getLengthFieldEv:
  157|  37.5k|	{
  158|       |		return be32toh(getSomeIpHeader()->length);
  159|  37.5k|	}
_ZNK4pcpp11SomeIpLayer19getMessageTypeAsIntEv:
  226|    316|	{
  227|    316|		return getSomeIpHeader()->msgType;
  228|    316|	}
_ZN4pcpp11SomeIpLayer14setMessageTypeEh:
  236|    316|	{
  237|    316|		getSomeIpHeader()->msgType = type;
  238|    316|	}
_ZN4pcpp11SomeIpLayer14parseNextLayerEv:
  258|  30.4k|	{
  259|  30.4k|		size_t headerLen = getHeaderLen();
  260|  30.4k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (260:7): [True: 12.1k, False: 18.2k]
  ------------------
  261|  12.1k|			return;
  262|       |
  263|  18.2k|		uint8_t* payload = m_Data + headerLen;
  264|  18.2k|		size_t payloadLen = m_DataLen - headerLen;
  265|       |
  266|  18.2k|		constructNextLayerFromFactory(parseSomeIpLayer, payload, payloadLen);
  267|  18.2k|	}
_ZNK4pcpp11SomeIpLayer8toStringEv:
  270|  2.12k|	{
  271|  2.12k|		std::stringstream dataStream;
  272|       |
  273|  2.12k|		dataStream << "SOME/IP Layer" << std::hex << ", Service ID: 0x" << getServiceID() << ", Method ID: 0x"
  274|  2.12k|		           << getMethodID() << std::dec << ", Length: " << getLengthField();
  275|       |
  276|  2.12k|		return dataStream.str();
  277|  2.12k|	}
_ZN4pcpp13SomeIpTpLayer22computeCalculateFieldsEv:
  344|    316|	{
  345|    316|		setMessageType(setTpFlag(getMessageTypeAsInt()));
  346|    316|	}
_ZNK4pcpp13SomeIpTpLayer8toStringEv:
  349|    632|	{
  350|    632|		std::stringstream dataStream;
  351|       |
  352|    632|		dataStream << "SOME/IP-TP Layer" << std::hex << ", Service ID: 0x" << getServiceID() << ", Method ID: 0x"
  353|    632|		           << getMethodID() << std::dec << ", Length: " << getLengthField();
  354|       |
  355|    632|		return dataStream.str();
  356|    632|	}
_ZN4pcpp13SomeIpTpLayer9setTpFlagEh:
  359|    316|	{
  360|    316|		return messageType | (uint8_t)SomeIpLayer::MsgType::TP_REQUEST;
  361|    316|	}

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

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

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

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

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

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

_ZNK4pcpp8UdpLayer10getSrcPortEv:
   40|   455k|	{
   41|       |		return be16toh(getUdpHeader()->portSrc);
   42|   455k|	}
_ZNK4pcpp8UdpLayer10getDstPortEv:
   45|   455k|	{
   46|       |		return be16toh(getUdpHeader()->portDst);
   47|   455k|	}
_ZN4pcpp8UdpLayer17calculateChecksumEb:
   50|  53.3k|	{
   51|  53.3k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
   52|  53.3k|		uint16_t checksumRes = 0;
   53|  53.3k|		uint16_t currChecksumValue = udpHdr->headerChecksum;
   54|       |
   55|  53.3k|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (55:7): [True: 53.3k, False: 0]
  ------------------
   56|  53.3k|		{
   57|  53.3k|			udpHdr->headerChecksum = 0;
   58|  53.3k|			PCPP_LOG_DEBUG("UDP data len = " << m_DataLen);
  ------------------
  |  |  425|  53.3k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  53.3k|	do                                                                                                                 \
  |  |  |  |  413|  53.3k|	{                                                                                                                  \
  |  |  |  |  414|  53.3k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  53.3k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  53.3k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 53.3k]
  |  |  |  |  ------------------
  |  |  |  |  416|  53.3k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  53.3k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 53.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   59|       |
   60|  53.3k|			if (m_PrevLayer->getProtocol() == IPv4)
  ------------------
  |  Branch (60:8): [True: 47.8k, False: 5.45k]
  ------------------
   61|  47.8k|			{
   62|  47.8k|				IPv4Address srcIP = static_cast<IPv4Layer*>(m_PrevLayer)->getSrcIPv4Address();
   63|  47.8k|				IPv4Address dstIP = static_cast<IPv4Layer*>(m_PrevLayer)->getDstIPv4Address();
   64|       |
   65|  47.8k|				checksumRes =
   66|  47.8k|				    pcpp::computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(udpHdr), getDataLen(),
   67|  47.8k|				                                   IPAddress::IPv4AddressType, PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   68|       |
   69|  47.8k|				PCPP_LOG_DEBUG("calculated IPv4 UDP checksum = 0x" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  47.8k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  47.8k|	do                                                                                                                 \
  |  |  |  |  413|  47.8k|	{                                                                                                                  \
  |  |  |  |  414|  47.8k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  47.8k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  47.8k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 47.8k]
  |  |  |  |  ------------------
  |  |  |  |  416|  47.8k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  47.8k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 47.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   70|  47.8k|			}
   71|  5.45k|			else if (m_PrevLayer->getProtocol() == IPv6)
  ------------------
  |  Branch (71:13): [True: 5.45k, False: 0]
  ------------------
   72|  5.45k|			{
   73|  5.45k|				IPv6Address srcIP = static_cast<IPv6Layer*>(m_PrevLayer)->getSrcIPv6Address();
   74|  5.45k|				IPv6Address dstIP = static_cast<IPv6Layer*>(m_PrevLayer)->getDstIPv6Address();
   75|       |
   76|  5.45k|				checksumRes = computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(udpHdr), getDataLen(),
   77|  5.45k|				                                       IPAddress::IPv6AddressType, PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   78|       |
   79|  5.45k|				PCPP_LOG_DEBUG("calculated IPv6 UDP checksum = 0xX" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  5.45k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  5.45k|	do                                                                                                                 \
  |  |  |  |  413|  5.45k|	{                                                                                                                  \
  |  |  |  |  414|  5.45k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  5.45k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.45k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 5.45k]
  |  |  |  |  ------------------
  |  |  |  |  416|  5.45k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  5.45k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 5.45k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   80|  5.45k|			}
   81|  53.3k|		}
   82|       |
   83|  53.3k|		if (checksumRes == 0)
  ------------------
  |  Branch (83:7): [True: 24, False: 53.2k]
  ------------------
   84|     24|			checksumRes = 0xffff;
   85|       |
   86|  53.3k|		if (writeResultToPacket)
  ------------------
  |  Branch (86:7): [True: 53.3k, False: 0]
  ------------------
   87|  53.3k|			udpHdr->headerChecksum = htobe16(checksumRes);
   88|      0|		else
   89|      0|			udpHdr->headerChecksum = currChecksumValue;
   90|       |
   91|  53.3k|		return checksumRes;
   92|  53.3k|	}
_ZN4pcpp8UdpLayer14parseNextLayerEv:
   95|   348k|	{
   96|   348k|		if (m_DataLen <= sizeof(udphdr))
  ------------------
  |  Branch (96:7): [True: 0, False: 348k]
  ------------------
   97|      0|			return;
   98|       |
   99|   348k|		uint16_t portDst = getDstPort();
  100|   348k|		uint16_t portSrc = getSrcPort();
  101|       |
  102|   348k|		uint8_t* udpData = m_Data + sizeof(udphdr);
  103|   348k|		size_t udpDataLen = m_DataLen - sizeof(udphdr);
  104|       |
  105|   348k|		if (DhcpLayer::isDhcpPorts(portSrc, portDst))
  ------------------
  |  Branch (105:7): [True: 13.5k, False: 335k]
  ------------------
  106|  13.5k|		{
  107|  13.5k|			tryConstructNextLayerWithFallback<DhcpLayer, PayloadLayer>(udpData, udpDataLen);
  108|  13.5k|		}
  109|   335k|		else if (VxlanLayer::isVxlanPort(portDst))
  ------------------
  |  Branch (109:12): [True: 542, False: 334k]
  ------------------
  110|    542|		{
  111|    542|			tryConstructNextLayerWithFallback<VxlanLayer, PayloadLayer>(udpData, udpDataLen);
  112|    542|		}
  113|   334k|		else if (DnsLayer::isDataValid(udpData, udpDataLen) &&
  ------------------
  |  Branch (113:12): [True: 292k, False: 42.0k]
  ------------------
  114|   292k|		         (DnsLayer::isDnsPort(portDst) || DnsLayer::isDnsPort(portSrc)))
  ------------------
  |  Branch (114:13): [True: 39.4k, False: 253k]
  |  Branch (114:45): [True: 9.81k, False: 243k]
  ------------------
  115|  49.2k|		{
  116|  49.2k|			constructNextLayer<DnsLayer>(udpData, udpDataLen);
  117|  49.2k|		}
  118|   285k|		else if (QuicV1Layer::isQuicPort(portDst) || QuicV1Layer::isQuicPort(portSrc))
  ------------------
  |  Branch (118:12): [True: 429, False: 284k]
  |  Branch (118:48): [True: 393, False: 284k]
  ------------------
  119|    822|		{
  120|    822|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(QuicV1Layer::parseQuicLayer, udpData,
  121|    822|			                                                           udpDataLen);
  122|    822|		}
  123|   284k|		else if (SipLayer::isSipPort(portDst) || SipLayer::isSipPort(portSrc))
  ------------------
  |  Branch (123:12): [True: 83.0k, False: 201k]
  |  Branch (123:44): [True: 1.61k, False: 199k]
  ------------------
  124|  84.6k|		{
  125|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  126|  84.6k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*, uint16_t, uint16_t) = SipLayer::parseSipLayer;
  127|  84.6k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen, portSrc, portDst);
  128|  84.6k|		}
  129|   199k|		else if ((RadiusLayer::isRadiusPort(portDst) || RadiusLayer::isRadiusPort(portSrc)) &&
  ------------------
  |  Branch (129:13): [True: 3.35k, False: 196k]
  |  Branch (129:51): [True: 8.20k, False: 188k]
  ------------------
  130|  11.5k|		         RadiusLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (130:12): [True: 10.7k, False: 762]
  ------------------
  131|  10.7k|		{
  132|  10.7k|			constructNextLayer<RadiusLayer>(udpData, udpDataLen);
  133|  10.7k|		}
  134|   189k|		else if ((GtpV1Layer::isGTPv1Port(portDst) || GtpV1Layer::isGTPv1Port(portSrc)) &&
  ------------------
  |  Branch (134:13): [True: 28.8k, False: 160k]
  |  Branch (134:49): [True: 8.50k, False: 151k]
  ------------------
  135|  37.3k|		         GtpV1Layer::isGTPv1(udpData, udpDataLen))
  ------------------
  |  Branch (135:12): [True: 37.1k, False: 238]
  ------------------
  136|  37.1k|		{
  137|  37.1k|			constructNextLayer<GtpV1Layer>(udpData, udpDataLen);
  138|  37.1k|		}
  139|   151k|		else if ((GtpV2Layer::isGTPv2Port(portDst) || GtpV2Layer::isGTPv2Port(portSrc)) &&
  ------------------
  |  Branch (139:13): [True: 40, False: 151k]
  |  Branch (139:49): [True: 0, False: 151k]
  ------------------
  140|     40|		         GtpV2Layer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (140:12): [True: 24, False: 16]
  ------------------
  141|     24|		{
  142|     24|			constructNextLayer<GtpV2Layer>(udpData, udpDataLen);
  143|     24|		}
  144|   151k|		else if ((DhcpV6Layer::isDhcpV6Port(portSrc) || DhcpV6Layer::isDhcpV6Port(portDst)) &&
  ------------------
  |  Branch (144:13): [True: 13.2k, False: 138k]
  |  Branch (144:51): [True: 4.13k, False: 134k]
  ------------------
  145|  17.4k|		         (DhcpV6Layer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (145:12): [True: 17.2k, False: 130]
  ------------------
  146|  17.2k|		{
  147|  17.2k|			constructNextLayer<DhcpV6Layer>(udpData, udpDataLen);
  148|  17.2k|		}
  149|   134k|		else if ((NtpLayer::isNTPPort(portSrc) || NtpLayer::isNTPPort(portDst)) &&
  ------------------
  |  Branch (149:13): [True: 10.7k, False: 123k]
  |  Branch (149:45): [True: 807, False: 123k]
  ------------------
  150|  11.5k|		         NtpLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (150:12): [True: 11.5k, False: 5]
  ------------------
  151|  11.5k|		{
  152|  11.5k|			constructNextLayer<NtpLayer>(udpData, udpDataLen);
  153|  11.5k|		}
  154|   123k|		else if ((DoIpLayer::isDoIpPort(portSrc) || DoIpLayer::isDoIpPort(portDst)) &&
  ------------------
  |  Branch (154:13): [True: 17.5k, False: 105k]
  |  Branch (154:47): [True: 35.9k, False: 69.5k]
  ------------------
  155|  53.4k|		         (DoIpLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (155:12): [True: 45.8k, False: 7.63k]
  ------------------
  156|  45.8k|		{
  157|  45.8k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(DoIpLayer::parseDoIpLayer, udpData, udpDataLen);
  158|  45.8k|		}
  159|  77.2k|		else if (SomeIpLayer::isSomeIpPort(portSrc) || SomeIpLayer::isSomeIpPort(portDst))
  ------------------
  |  Branch (159:12): [True: 27.7k, False: 49.4k]
  |  Branch (159:50): [True: 2.84k, False: 46.6k]
  ------------------
  160|  30.5k|		{
  161|  30.5k|			constructNextLayerFromFactory(SomeIpLayer::parseSomeIpLayer, udpData, udpDataLen);
  162|  30.5k|		}
  163|  46.6k|		else if ((WakeOnLanLayer::isWakeOnLanPort(portDst) && WakeOnLanLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (163:13): [True: 2.18k, False: 44.4k]
  |  Branch (163:57): [True: 665, False: 1.51k]
  ------------------
  164|    665|		{
  165|    665|			constructNextLayer<WakeOnLanLayer>(udpData, udpDataLen);
  166|    665|		}
  167|  45.9k|		else if ((WireGuardLayer::isWireGuardPorts(portDst, portSrc) &&
  ------------------
  |  Branch (167:13): [True: 1.80k, False: 44.1k]
  ------------------
  168|  1.80k|		          WireGuardLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (168:13): [True: 1.80k, False: 0]
  ------------------
  169|  1.80k|		{
  170|  1.80k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(WireGuardLayer::parseWireGuardLayer, udpData,
  171|  1.80k|			                                                           udpDataLen);
  172|  1.80k|		}
  173|       |
  174|       |		// If a valid layer was found, return immediately
  175|   348k|		if (hasNextLayer())
  ------------------
  |  Branch (175:7): [True: 304k, False: 44.1k]
  ------------------
  176|   304k|		{
  177|   304k|			return;
  178|   304k|		}
  179|       |
  180|       |		// Here, heuristics for all protocols should be invoked to determine the correct layer
  181|  44.1k|		{
  182|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  183|  44.1k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*) = SipLayer::parseSipLayer;
  184|  44.1k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen);
  185|  44.1k|		}
  186|       |
  187|       |		// cppcheck-suppress knownConditionTrueFalse
  188|  44.1k|		if (!hasNextLayer())
  ------------------
  |  Branch (188:7): [True: 0, False: 44.1k]
  ------------------
  189|      0|		{
  190|      0|			constructNextLayer<PayloadLayer>(udpData, udpDataLen);
  191|      0|		}
  192|  44.1k|	}
_ZN4pcpp8UdpLayer22computeCalculateFieldsEv:
  195|  53.3k|	{
  196|  53.3k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
  197|       |		udpHdr->length = htobe16(m_DataLen);
  198|  53.3k|		calculateChecksum(true);
  199|  53.3k|	}
_ZNK4pcpp8UdpLayer8toStringEv:
  202|   106k|	{
  203|   106k|		std::ostringstream srcPortStream;
  204|   106k|		srcPortStream << getSrcPort();
  205|   106k|		std::ostringstream dstPortStream;
  206|   106k|		dstPortStream << getDstPort();
  207|       |
  208|   106k|		return "UDP Layer, Src port: " + srcPortStream.str() + ", Dst port: " + dstPortStream.str();
  209|   106k|	}

_ZNK4pcpp9VlanLayer9getVlanIDEv:
   30|  56.9k|	{
   31|       |		return be16toh(getVlanHeader()->vlan) & 0xFFF;
   32|  56.9k|	}
_ZNK4pcpp9VlanLayer6getCFIEv:
   35|  56.9k|	{
   36|       |		return ((be16toh(getVlanHeader()->vlan) >> 12) & 1);
   37|  56.9k|	}
_ZNK4pcpp9VlanLayer11getPriorityEv:
   40|  56.9k|	{
   41|       |		return (be16toh(getVlanHeader()->vlan) >> 13) & 7;
   42|  56.9k|	}
_ZN4pcpp9VlanLayer14parseNextLayerEv:
   60|   248k|	{
   61|   248k|		if (m_DataLen <= sizeof(vlan_header))
  ------------------
  |  Branch (61:7): [True: 225, False: 247k]
  ------------------
   62|    225|			return;
   63|       |
   64|   247k|		uint8_t* payload = m_Data + sizeof(vlan_header);
   65|   247k|		size_t payloadLen = m_DataLen - sizeof(vlan_header);
   66|       |
   67|   247k|		vlan_header* hdr = getVlanHeader();
   68|   247k|		switch (be16toh(hdr->etherType))
   69|   247k|		{
   70|   107k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|   107k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (70:3): [True: 107k, False: 140k]
  ------------------
   71|   107k|		{
   72|   107k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   73|   107k|			break;
   74|      0|		}
   75|  15.7k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|  15.7k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (75:3): [True: 15.7k, False: 232k]
  ------------------
   76|  15.7k|		{
   77|  15.7k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   78|  15.7k|			break;
   79|      0|		}
   80|  1.63k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   33|  1.63k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (80:3): [True: 1.63k, False: 246k]
  ------------------
   81|  1.63k|		{
   82|  1.63k|			constructNextLayer<ArpLayer>(payload, payloadLen);
   83|  1.63k|			break;
   84|      0|		}
   85|  69.3k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|  69.3k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (85:3): [True: 69.3k, False: 178k]
  ------------------
   86|  69.3k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   61|  69.3k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (86:3): [True: 35, False: 247k]
  ------------------
   87|  69.3k|		{
   88|  69.3k|			constructNextLayer<VlanLayer>(payload, payloadLen);
   89|  69.3k|			break;
   90|  69.3k|		}
   91|  47.2k|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   53|  47.2k|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (91:3): [True: 47.2k, False: 200k]
  ------------------
   92|  47.2k|		{
   93|  47.2k|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   94|  47.2k|			break;
   95|  69.3k|		}
   96|  3.04k|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   51|  3.04k|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (96:3): [True: 3.04k, False: 244k]
  ------------------
   97|  3.04k|		{
   98|  3.04k|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   99|  3.04k|			break;
  100|  69.3k|		}
  101|  2.36k|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|  2.36k|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (101:3): [True: 2.36k, False: 245k]
  ------------------
  102|  2.36k|		{
  103|  2.36k|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
  104|  2.36k|			break;
  105|  69.3k|		}
  106|  1.37k|		default:
  ------------------
  |  Branch (106:3): [True: 1.37k, False: 246k]
  ------------------
  107|  1.37k|		{
  108|  1.37k|			if ((be16toh(hdr->etherType) < 1500))
  ------------------
  |  Branch (108:8): [True: 989, False: 382]
  ------------------
  109|    989|			{
  110|    989|				tryConstructNextLayerWithFallback<LLCLayer, PayloadLayer>(payload, payloadLen);
  111|    989|			}
  112|    382|			else
  113|    382|			{
  114|    382|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  115|    382|			}
  116|  1.37k|			break;
  117|  69.3k|		}
  118|   247k|		}
  119|   247k|	}
_ZN4pcpp9VlanLayer22computeCalculateFieldsEv:
  122|  28.4k|	{
  123|  28.4k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (123:7): [True: 75, False: 28.4k]
  ------------------
  124|     75|			return;
  125|       |
  126|  28.4k|		switch (m_NextLayer->getProtocol())
  127|  28.4k|		{
  128|  12.8k|		case IPv4:
  ------------------
  |  Branch (128:3): [True: 12.8k, False: 15.5k]
  ------------------
  129|  12.8k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_IP);
  130|  12.8k|			break;
  131|  2.51k|		case IPv6:
  ------------------
  |  Branch (131:3): [True: 2.51k, False: 25.9k]
  ------------------
  132|  2.51k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_IPV6);
  133|  2.51k|			break;
  134|    327|		case ARP:
  ------------------
  |  Branch (134:3): [True: 327, False: 28.0k]
  ------------------
  135|    327|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_ARP);
  136|    327|			break;
  137|  7.06k|		case VLAN:
  ------------------
  |  Branch (137:3): [True: 7.06k, False: 21.3k]
  ------------------
  138|  7.06k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_VLAN);
  139|  7.06k|			break;
  140|  5.65k|		default:
  ------------------
  |  Branch (140:3): [True: 5.65k, False: 22.7k]
  ------------------
  141|  5.65k|			return;
  142|  28.4k|		}
  143|  28.4k|	}
_ZNK4pcpp9VlanLayer8toStringEv:
  146|  56.9k|	{
  147|  56.9k|		std::ostringstream cfiStream;
  148|  56.9k|		cfiStream << (int)getCFI();
  149|  56.9k|		std::ostringstream priStream;
  150|  56.9k|		priStream << (int)getPriority();
  151|  56.9k|		std::ostringstream idStream;
  152|  56.9k|		idStream << getVlanID();
  153|       |
  154|  56.9k|		return "VLAN Layer, Priority: " + priStream.str() + ", Vlan ID: " + idStream.str() +
  155|  56.9k|		       ", CFI: " + cfiStream.str();
  156|  56.9k|	}

_ZN4pcpp9VrrpLayer18getVersionFromDataEPhm:
   46|  9.46k|	{
   47|  9.46k|		if (!data || dataLen <= VrrpPacketFixedLength)
  ------------------
  |  Branch (47:7): [True: 0, False: 9.46k]
  |  Branch (47:16): [True: 9, False: 9.45k]
  ------------------
   48|      9|		{
   49|      9|			return UnknownProtocol;
   50|      9|		}
   51|       |
   52|  9.45k|		auto* vrrpPacketCommon = (vrrp_header*)data;
   53|  9.45k|		uint8_t version = vrrpPacketCommon->version;
   54|  9.45k|		switch (version)
   55|  9.45k|		{
   56|  2.84k|		case VrrpVersion2:
  ------------------
  |  Branch (56:3): [True: 2.84k, False: 6.60k]
  ------------------
   57|  2.84k|			return VRRPv2;
   58|  6.31k|		case VrrpVersion3:
  ------------------
  |  Branch (58:3): [True: 6.31k, False: 3.14k]
  ------------------
   59|  6.31k|			return VRRPv3;
   60|    292|		default:
  ------------------
  |  Branch (60:3): [True: 292, False: 9.16k]
  ------------------
   61|    292|			return UnknownProtocol;
   62|  9.45k|		}
   63|  9.45k|	}
_ZN4pcpp9VrrpLayer22computeCalculateFieldsEv:
   66|  1.98k|	{
   67|       |		// calculate and fill the checksum to packet
   68|  1.98k|		calculateAndSetChecksum();
   69|  1.98k|	}
_ZNK4pcpp9VrrpLayer15getIPAddressLenEv:
   72|  27.0k|	{
   73|  27.0k|		if (getAddressType() == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (73:7): [True: 26.3k, False: 692]
  ------------------
   74|  26.3k|		{
   75|  26.3k|			return 4;
   76|  26.3k|		}
   77|       |
   78|    692|		return 16;
   79|  27.0k|	}
_ZNK4pcpp9VrrpLayer17isChecksumCorrectEv:
   82|  1.98k|	{
   83|  1.98k|		auto vrrpHeader = getVrrpHeader();
   84|  1.98k|		if (vrrpHeader == nullptr)
  ------------------
  |  Branch (84:7): [True: 0, False: 1.98k]
  ------------------
   85|      0|		{
   86|      0|			return false;
   87|      0|		}
   88|       |
   89|  1.98k|		return (calculateChecksum() == be16toh(vrrpHeader->checksum));
   90|  1.98k|	}
_ZNK4pcpp9VrrpLayer17getPriorityAsEnumEv:
   93|  1.98k|	{
   94|  1.98k|		switch (getVrrpHeader()->priority)
   95|  1.98k|		{
   96|     97|		case VrrpPriorityDefault:
  ------------------
  |  Branch (96:3): [True: 97, False: 1.88k]
  ------------------
   97|     97|			return VrrpLayer::VrrpPriority::Default;
   98|       |
   99|    620|		case VrrpPriorityStop:
  ------------------
  |  Branch (99:3): [True: 620, False: 1.36k]
  ------------------
  100|    620|			return VrrpLayer::VrrpPriority::Stop;
  101|       |
  102|     48|		case VrrpPriorityOwner:
  ------------------
  |  Branch (102:3): [True: 48, False: 1.93k]
  ------------------
  103|     48|			return VrrpLayer::VrrpPriority::Owner;
  104|       |
  105|  1.21k|		default:
  ------------------
  |  Branch (105:3): [True: 1.21k, False: 765]
  ------------------
  106|  1.21k|			return VrrpLayer::VrrpPriority::Other;
  107|  1.98k|		}
  108|  1.98k|	}
_ZNK4pcpp9VrrpLayer8toStringEv:
  111|  3.96k|	{
  112|  3.96k|		return "VRRP v" + std::to_string(getVersion()) +
  113|  3.96k|		       " Layer, virtual router ID: " + std::to_string(getVirtualRouterID()) +
  114|  3.96k|		       ", IP address count: " + std::to_string(getIPAddressesCount());
  115|  3.96k|	}
_ZNK4pcpp9VrrpLayer10getVersionEv:
  118|  3.96k|	{
  119|  3.96k|		return getVrrpHeader()->version;
  120|  3.96k|	}
_ZNK4pcpp9VrrpLayer7getTypeEv:
  123|  1.98k|	{
  124|  1.98k|		if (getVrrpHeader()->type == VrrpType_Advertisement)
  ------------------
  |  Branch (124:7): [True: 644, False: 1.34k]
  ------------------
  125|    644|		{
  126|    644|			return VrrpType_Advertisement;
  127|    644|		}
  128|       |
  129|  1.34k|		return VrrpType_Unknown;
  130|  1.98k|	}
_ZNK4pcpp9VrrpLayer18getVirtualRouterIDEv:
  133|  3.96k|	{
  134|  3.96k|		return getVrrpHeader()->vrId;
  135|  3.96k|	}
_ZNK4pcpp9VrrpLayer11getPriorityEv:
  143|  1.98k|	{
  144|  1.98k|		return getVrrpHeader()->priority;
  145|  1.98k|	}
_ZNK4pcpp9VrrpLayer11getChecksumEv:
  153|  1.98k|	{
  154|       |		return be16toh(getVrrpHeader()->checksum);
  155|  1.98k|	}
_ZN4pcpp9VrrpLayer23calculateAndSetChecksumEv:
  158|  1.98k|	{
  159|       |		getVrrpHeader()->checksum = htobe16(calculateChecksum());
  160|  1.98k|	}
_ZNK4pcpp9VrrpLayer19getIPAddressesCountEv:
  163|  3.96k|	{
  164|  3.96k|		return getVrrpHeader()->ipAddrCount;
  165|  3.96k|	}
_ZNK4pcpp9VrrpLayer14getIPAddressesEv:
  168|  1.98k|	{
  169|  1.98k|		std::vector<IPAddress> ipAddressesVec;
  170|  1.98k|		auto ipAddressesPtr = getFirstIPAddressPtr();
  171|  27.0k|		while (ipAddressesPtr != nullptr)
  ------------------
  |  Branch (171:10): [True: 25.0k, False: 1.98k]
  ------------------
  172|  25.0k|		{
  173|  25.0k|			IPAddress ipAddress = getIPAddressFromData(ipAddressesPtr);
  174|  25.0k|			ipAddressesVec.push_back(ipAddress);
  175|  25.0k|			ipAddressesPtr = getNextIPAddressPtr(ipAddressesPtr);
  176|  25.0k|		}
  177|       |
  178|  1.98k|		return ipAddressesVec;
  179|  1.98k|	}
_ZNK4pcpp9VrrpLayer20getFirstIPAddressPtrEv:
  182|  1.98k|	{
  183|  1.98k|		size_t ipAddressLen = getIPAddressLen();
  184|       |
  185|       |		// check if there are virtual IP address at all
  186|  1.98k|		if (getHeaderLen() <= VrrpPacketFixedLength + ipAddressLen)
  ------------------
  |  Branch (186:7): [True: 676, False: 1.30k]
  ------------------
  187|    676|		{
  188|    676|			return nullptr;
  189|    676|		}
  190|       |
  191|  1.30k|		return (m_Data + VrrpPacketFixedLength);
  192|  1.98k|	}
_ZNK4pcpp9VrrpLayer19getNextIPAddressPtrEPh:
  195|  25.0k|	{
  196|  25.0k|		if (ipAddressPtr == nullptr)
  ------------------
  |  Branch (196:7): [True: 0, False: 25.0k]
  ------------------
  197|      0|		{
  198|      0|			return nullptr;
  199|      0|		}
  200|       |
  201|  25.0k|		size_t ipAddressLen = getIPAddressLen();
  202|  25.0k|		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|  25.0k|		if (nextOffset + ipAddressLen > getHeaderLen())
  ------------------
  |  Branch (207:7): [True: 1.30k, False: 23.7k]
  ------------------
  208|  1.30k|		{
  209|  1.30k|			return nullptr;
  210|  1.30k|		}
  211|       |
  212|  23.7k|		return (m_Data + nextOffset);
  213|  25.0k|	}
_ZNK4pcpp9VrrpLayer20getIPAddressFromDataEPh:
  350|  25.0k|	{
  351|  25.0k|		if (getAddressType() == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (351:7): [True: 25.0k, False: 10]
  ------------------
  352|  25.0k|		{
  353|  25.0k|			return IPv4Address(*reinterpret_cast<const uint32_t*>(data));
  354|  25.0k|		}
  355|       |
  356|     10|		return IPv6Address(data);
  357|  25.0k|	}
_ZNK4pcpp9VrrpLayer14getAddressTypeEv:
  376|  54.7k|	{
  377|  54.7k|		return m_AddressType;
  378|  54.7k|	}
_ZNK4pcpp11VrrpV2Layer17getAuthTypeAsEnumEv:
  395|    694|	{
  396|    694|		auto authType = getAuthType();
  397|    694|		if (authType > 3)
  ------------------
  |  Branch (397:7): [True: 640, False: 54]
  ------------------
  398|    640|		{
  399|    640|			return VrrpAuthType::Other;
  400|    640|		}
  401|       |
  402|     54|		return static_cast<VrrpAuthType>(authType);
  403|    694|	}
_ZNK4pcpp11VrrpV2Layer9getAdvIntEv:
  406|    694|	{
  407|    694|		uint16_t authAdvInt = getVrrpHeader()->authTypeAdvInt;
  408|    694|		auto authAdvIntPtr = reinterpret_cast<vrrpv2_auth_adv*>(&authAdvInt);
  409|    694|		return authAdvIntPtr->advInt;
  410|    694|	}
_ZNK4pcpp11VrrpV2Layer11getAuthTypeEv:
  419|    694|	{
  420|    694|		uint16_t authAdvInt = getVrrpHeader()->authTypeAdvInt;
  421|    694|		auto* authAdvIntPtr = reinterpret_cast<vrrpv2_auth_adv*>(&authAdvInt);
  422|    694|		return authAdvIntPtr->authType;
  423|    694|	}
_ZNK4pcpp11VrrpV2Layer17calculateChecksumEv:
  432|  1.38k|	{
  433|  1.38k|		if ((getData() == nullptr) || (getDataLen() == 0))
  ------------------
  |  Branch (433:7): [True: 0, False: 1.38k]
  |  Branch (433:33): [True: 0, False: 1.38k]
  ------------------
  434|      0|		{
  435|      0|			return 0;
  436|      0|		}
  437|       |
  438|  1.38k|		auto vrrpHeader = getVrrpHeader();
  439|  1.38k|		ScalarBuffer<uint16_t> buffer = {};
  440|  1.38k|		buffer.buffer = reinterpret_cast<uint16_t*>(vrrpHeader);
  441|  1.38k|		buffer.len = getHeaderLen();
  442|       |
  443|  1.38k|		uint16_t currChecksumValue = vrrpHeader->checksum;
  444|  1.38k|		vrrpHeader->checksum = 0;
  445|  1.38k|		uint16_t checksum = computeChecksum(&buffer, 1);
  446|  1.38k|		vrrpHeader->checksum = currChecksumValue;
  447|       |
  448|  1.38k|		return checksum;
  449|  1.38k|	}
_ZNK4pcpp11VrrpV3Layer12getMaxAdvIntEv:
  462|  1.29k|	{
  463|  1.29k|		uint16_t authAdvInt = getVrrpHeader()->authTypeAdvInt;
  464|  1.29k|		auto rsvdAdv = reinterpret_cast<vrrpv3_rsvd_adv*>(&authAdvInt);
  465|       |		return be16toh(rsvdAdv->maxAdvInt);
  466|  1.29k|	}
_ZNK4pcpp11VrrpV3Layer17calculateChecksumEv:
  479|  2.58k|	{
  480|  2.58k|		auto* ipLayer = getAttachedPacket()->getLayerOfType<pcpp::IPLayer>();
  481|  2.58k|		if (ipLayer == nullptr)
  ------------------
  |  Branch (481:7): [True: 0, False: 2.58k]
  ------------------
  482|      0|		{
  483|      0|			PCPP_LOG_ERROR("Calculate checksum failed, for can not get IPLayer" << "");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleVrrpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleVrrpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  484|      0|			return 0;
  485|      0|		}
  486|       |
  487|  2.58k|		auto vrrpHeader = getVrrpHeader();
  488|  2.58k|		uint16_t currChecksumValue = vrrpHeader->checksum;
  489|  2.58k|		vrrpHeader->checksum = 0;
  490|       |
  491|  2.58k|		pcpp::IPAddress srcIPAddr = ipLayer->getSrcIPAddress();
  492|  2.58k|		pcpp::IPAddress dstIPAddr = ipLayer->getDstIPAddress();
  493|  2.58k|		uint16_t checksum;
  494|  2.58k|		if (getAddressType() == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (494:7): [True: 1.21k, False: 1.36k]
  ------------------
  495|  1.21k|		{
  496|  1.21k|			checksum = computePseudoHdrChecksum((uint8_t*)vrrpHeader, getDataLen(), IPAddress::IPv4AddressType,
  497|  1.21k|			                                    PACKETPP_IPPROTO_VRRP, srcIPAddr, dstIPAddr);
  498|  1.21k|		}
  499|  1.36k|		else
  500|  1.36k|		{
  501|  1.36k|			checksum = computePseudoHdrChecksum((uint8_t*)vrrpHeader, getDataLen(), IPAddress::IPv6AddressType,
  502|  1.36k|			                                    PACKETPP_IPPROTO_VRRP, srcIPAddr, dstIPAddr);
  503|  1.36k|		}
  504|       |
  505|  2.58k|		vrrpHeader->checksum = currChecksumValue;
  506|       |
  507|  2.58k|		return checksum;
  508|  2.58k|	}

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

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

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

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

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

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

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

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

_ZNK4pcpp16BpfFilterWrapper7matchesEPKhj8timespect:
  103|   176k|	{
  104|   176k|		if (m_FilterStr.empty())
  ------------------
  |  Branch (104:7): [True: 176k, False: 0]
  ------------------
  105|   176k|			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);
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleLiveDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleLiveDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  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|  3.72k|{
    9|  3.72k|	FILE* fd;
   10|  3.72k|	int written = 0;
   11|       |
   12|  3.72k|	fd = fopen(path, "wb");
   13|  3.72k|	if (fd == nullptr)
  ------------------
  |  Branch (13:6): [True: 0, False: 3.72k]
  ------------------
   14|      0|	{
   15|      0|		std::cerr << "Error opening pcap file for writing\n";
   16|      0|		return -1;
   17|      0|	}
   18|       |
   19|  3.72k|	written = fwrite(data, 1, size, fd);
   20|  3.72k|	if (static_cast<size_t>(written) != size)
  ------------------
  |  Branch (20:6): [True: 0, False: 3.72k]
  ------------------
   21|      0|	{
   22|      0|		std::cerr << "Error writing pcap file\n";
   23|      0|		fclose(fd);
   24|      0|		return -1;
   25|      0|	}
   26|       |
   27|  3.72k|	fclose(fd);
   28|  3.72k|	return 0;
   29|  3.72k|}

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

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

