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

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

_ZN4pcpp6Logger11getInstanceEv:
  367|  20.0M|		{
  368|  20.0M|			static Logger instance;
  369|  20.0M|			return instance;
  370|  20.0M|		}
_ZN4pcpp6Logger12suppressLogsEv:
  319|  3.41k|		{
  320|  3.41k|			m_LogsEnabled = false;
  321|  3.41k|		}
_ZN4pcpp9LogSourceC2ENS_9LogModuleEPKcS3_i:
  137|   163k|		    : file(file), function(function), line(line), logModule(logModule)
  138|   163k|		{}
_ZN4pcpp8internal10LogContext4initENS_8LogLevelERKNS_9LogSourceE:
  187|   163k|			{
  188|   163k|				m_Source = source;
  189|   163k|				m_Level = level;
  190|   163k|				m_Stream.clear();
  191|   163k|				m_Stream.str({});
  192|   163k|			}
_ZNK4pcpp6Logger14isDebugEnabledENS_9LogModuleE:
  278|  74.6k|		{
  279|  74.6k|			return m_LogModulesArray[module] == LogLevel::Debug;
  280|  74.6k|		}
_ZNK4pcpp6Logger9shouldLogENS_8LogLevelENS_9LogModuleE:
  287|  19.9M|		{
  288|  19.9M|			return level != LogLevel::Off && m_LogModulesArray[module] >= level;
  ------------------
  |  Branch (288:11): [True: 19.9M, False: 0]
  |  Branch (288:37): [True: 163k, False: 19.8M]
  ------------------
  289|  19.9M|		}
_ZN4pcpp8internal10LogContextlsIA52_cEERS1_RKT_:
  198|  3.36k|			{
  199|  3.36k|				m_Stream << value;
  200|  3.36k|				return *this;
  201|  3.36k|			}
_ZN4pcpp8internal10LogContextlsINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEERS1_RKT_:
  198|    192|			{
  199|    192|				m_Stream << value;
  200|    192|				return *this;
  201|    192|			}
_ZN4pcpp8internal10LogContextlsIA2_cEERS1_RKT_:
  198|    192|			{
  199|    192|				m_Stream << value;
  200|    192|				return *this;
  201|    192|			}
_ZN4pcpp8internal10LogContextlsIA20_cEERS1_RKT_:
  198|    192|			{
  199|    192|				m_Stream << value;
  200|    192|				return *this;
  201|    192|			}
_ZN4pcpp8internal10LogContextlsIA46_cEERS1_RKT_:
  198|  7.24k|			{
  199|  7.24k|				m_Stream << value;
  200|  7.24k|				return *this;
  201|  7.24k|			}
_ZN4pcpp8internal10LogContextlsIA25_cEERS1_RKT_:
  198|  32.2k|			{
  199|  32.2k|				m_Stream << value;
  200|  32.2k|				return *this;
  201|  32.2k|			}
_ZN4pcpp8internal10LogContextlsIA26_cEERS1_RKT_:
  198|    432|			{
  199|    432|				m_Stream << value;
  200|    432|				return *this;
  201|    432|			}
_ZN4pcpp8internal10LogContextlsIA31_cEERS1_RKT_:
  198|  32.4k|			{
  199|  32.4k|				m_Stream << value;
  200|  32.4k|				return *this;
  201|  32.4k|			}
_ZN4pcpp8internal10LogContextlsIA27_cEERS1_RKT_:
  198|  1.14k|			{
  199|  1.14k|				m_Stream << value;
  200|  1.14k|				return *this;
  201|  1.14k|			}
_ZN4pcpp8internal10LogContextlsIA50_cEERS1_RKT_:
  198|  3.65k|			{
  199|  3.65k|				m_Stream << value;
  200|  3.65k|				return *this;
  201|  3.65k|			}
_ZN4pcpp8internal10LogContextlsIA77_cEERS1_RKT_:
  198|     27|			{
  199|     27|				m_Stream << value;
  200|     27|				return *this;
  201|     27|			}
_ZN4pcpp8internal10LogContextlsIA70_cEERS1_RKT_:
  198|  1.28k|			{
  199|  1.28k|				m_Stream << value;
  200|  1.28k|				return *this;
  201|  1.28k|			}
_ZN4pcpp8internal10LogContextlsIA39_cEERS1_RKT_:
  198|  2.97k|			{
  199|  2.97k|				m_Stream << value;
  200|  2.97k|				return *this;
  201|  2.97k|			}
_ZN4pcpp8internal10LogContextlsIA21_cEERS1_RKT_:
  198|    214|			{
  199|    214|				m_Stream << value;
  200|    214|				return *this;
  201|    214|			}
_ZN4pcpp8internal10LogContextlsIA54_cEERS1_RKT_:
  198|  1.12k|			{
  199|  1.12k|				m_Stream << value;
  200|  1.12k|				return *this;
  201|  1.12k|			}
_ZN4pcpp8internal10LogContextlsIA44_cEERS1_RKT_:
  198|  1.60k|			{
  199|  1.60k|				m_Stream << value;
  200|  1.60k|				return *this;
  201|  1.60k|			}
_ZN4pcpp8internal10LogContextlsIA33_cEERS1_RKT_:
  198|    674|			{
  199|    674|				m_Stream << value;
  200|    674|				return *this;
  201|    674|			}
_ZN4pcpp8internal10LogContextlsIA45_cEERS1_RKT_:
  198|  13.8k|			{
  199|  13.8k|				m_Stream << value;
  200|  13.8k|				return *this;
  201|  13.8k|			}
_ZN4pcpp8internal10LogContextlsIA14_cEERS1_RKT_:
  198|    674|			{
  199|    674|				m_Stream << value;
  200|    674|				return *this;
  201|    674|			}
_ZN4pcpp8internal10LogContextlsIA72_cEERS1_RKT_:
  198|  4.08k|			{
  199|  4.08k|				m_Stream << value;
  200|  4.08k|				return *this;
  201|  4.08k|			}
_ZN4pcpp8internal10LogContextlsIA35_cEERS1_RKT_:
  198|  1.14k|			{
  199|  1.14k|				m_Stream << value;
  200|  1.14k|				return *this;
  201|  1.14k|			}
_ZN4pcpp8internal10LogContextlsIiEERS1_RKT_:
  198|  53.0k|			{
  199|  53.0k|				m_Stream << value;
  200|  53.0k|				return *this;
  201|  53.0k|			}
_ZN4pcpp8internal10LogContextlsIA142_cEERS1_RKT_:
  198|  1.03k|			{
  199|  1.03k|				m_Stream << value;
  200|  1.03k|				return *this;
  201|  1.03k|			}
_ZN4pcpp8internal10LogContextlsIA86_cEERS1_RKT_:
  198|    767|			{
  199|    767|				m_Stream << value;
  200|    767|				return *this;
  201|    767|			}
_ZN4pcpp8internal10LogContextlsIA76_cEERS1_RKT_:
  198|  2.15k|			{
  199|  2.15k|				m_Stream << value;
  200|  2.15k|				return *this;
  201|  2.15k|			}
_ZN4pcpp8internal10LogContextlsIA85_cEERS1_RKT_:
  198|  4.31k|			{
  199|  4.31k|				m_Stream << value;
  200|  4.31k|				return *this;
  201|  4.31k|			}
_ZN4pcpp8internal10LogContextlsIA75_cEERS1_RKT_:
  198|  3.04k|			{
  199|  3.04k|				m_Stream << value;
  200|  3.04k|				return *this;
  201|  3.04k|			}
_ZN4pcpp8internal10LogContextlsIA84_cEERS1_RKT_:
  198|    866|			{
  199|    866|				m_Stream << value;
  200|    866|				return *this;
  201|    866|			}
_ZN4pcpp8internal10LogContextlsIA69_cEERS1_RKT_:
  198|  3.26k|			{
  199|  3.26k|				m_Stream << value;
  200|  3.26k|				return *this;
  201|  3.26k|			}
_ZN4pcpp8internal10LogContextlsIA73_cEERS1_RKT_:
  198|    204|			{
  199|    204|				m_Stream << value;
  200|    204|				return *this;
  201|    204|			}
_ZN4pcpp8internal10LogContextlsIA98_cEERS1_RKT_:
  198|  16.2k|			{
  199|  16.2k|				m_Stream << value;
  200|  16.2k|				return *this;
  201|  16.2k|			}
_ZN4pcpp8internal10LogContextlsIA43_cEERS1_RKT_:
  198|  15.9k|			{
  199|  15.9k|				m_Stream << value;
  200|  15.9k|				return *this;
  201|  15.9k|			}
_ZN4pcpp8internal10LogContextlsIA38_cEERS1_RKT_:
  198|  2.28k|			{
  199|  2.28k|				m_Stream << value;
  200|  2.28k|				return *this;
  201|  2.28k|			}
_ZN4pcpp8internal10LogContextlsIA40_cEERS1_RKT_:
  198|  32.2k|			{
  199|  32.2k|				m_Stream << value;
  200|  32.2k|				return *this;
  201|  32.2k|			}
_ZN4pcpp8internal10LogContextlsIA41_cEERS1_RKT_:
  198|  1.60k|			{
  199|  1.60k|				m_Stream << value;
  200|  1.60k|				return *this;
  201|  1.60k|			}
_ZN4pcpp8internal10LogContextlsIA141_cEERS1_RKT_:
  198|  1.13k|			{
  199|  1.13k|				m_Stream << value;
  200|  1.13k|				return *this;
  201|  1.13k|			}
_ZN4pcpp8internal10LogContextlsIA67_cEERS1_RKT_:
  198|  3.75k|			{
  199|  3.75k|				m_Stream << value;
  200|  3.75k|				return *this;
  201|  3.75k|			}
_ZN4pcpp9LogSourceC2Ev:
  124|      2|		constexpr LogSource() = default;
_ZN4pcpp8internal10LogContextC2Ev:
  175|      2|			LogContext() = default;

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

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

_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEEC2Ev:
   59|  3.41k|		PointerVector() = default;
_ZNK4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|   139k|		{
  217|   139k|			return m_Vector.size();
  218|   139k|		}
_ZNK4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE2atEi:
  319|   115k|		{
  320|   115k|			return m_Vector.at(index);
  321|   115k|		}
_ZNK4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE4sizeEv:
  216|  68.5k|		{
  217|  68.5k|			return m_Vector.size();
  218|  68.5k|		}
_ZNK4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE2atEi:
  319|   199k|		{
  320|   199k|			return m_Vector.at(index);
  321|   199k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEED2Ev:
   78|  3.41k|		{
   79|  3.41k|			freeVectorUnsafe(m_Vector);
   80|  3.41k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  3.41k|		{
  363|  3.41k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 3.39k, False: 3.41k]
  ------------------
  364|  3.39k|			{
  365|  3.39k|				Deleter{}(obj);
  366|  3.39k|			}
  367|  3.41k|		}
_ZNK4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE5frontEv:
  238|  3.39k|		{
  239|  3.39k|			return m_Vector.front();
  240|  3.39k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|  3.39k|		{
  148|  3.39k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 3.39k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|  3.39k|			try
  154|  3.39k|			{
  155|  3.39k|				m_Vector.push_back(element);
  156|  3.39k|			}
  157|  3.39k|			catch (const std::exception&)
  158|  3.39k|			{
  159|      0|				if (freeElementOnError)
  ------------------
  |  Branch (159:9): [True: 0, False: 0]
  ------------------
  160|      0|				{
  161|      0|					Deleter{}(element);
  162|      0|				}
  163|      0|				throw;
  164|      0|			}
  165|  3.39k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEEC2Ev:
   59|  57.1k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEEC2Ev:
   59|  8.22k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEED2Ev:
   78|  57.1k|		{
   79|  57.1k|			freeVectorUnsafe(m_Vector);
   80|  57.1k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  57.1k|		{
  363|  57.1k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 283k, False: 57.1k]
  ------------------
  364|   283k|			{
  365|   283k|				Deleter{}(obj);
  366|   283k|			}
  367|  57.1k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|   283k|		{
  173|   283k|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 283k]
  ------------------
  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|   283k|			m_Vector.push_back(element.get());
  182|   283k|			element.release();
  183|   283k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEED2Ev:
   78|  8.22k|		{
   79|  8.22k|			freeVectorUnsafe(m_Vector);
   80|  8.22k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  8.22k|		{
  363|  8.22k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 21.6k, False: 8.22k]
  ------------------
  364|  21.6k|			{
  365|  21.6k|				Deleter{}(obj);
  366|  21.6k|			}
  367|  8.22k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|  21.6k|		{
  148|  21.6k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 21.6k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|  21.6k|			try
  154|  21.6k|			{
  155|  21.6k|				m_Vector.push_back(element);
  156|  21.6k|			}
  157|  21.6k|			catch (const std::exception&)
  158|  21.6k|			{
  159|      0|				if (freeElementOnError)
  ------------------
  |  Branch (159:9): [True: 0, False: 0]
  ------------------
  160|      0|				{
  161|      0|					Deleter{}(element);
  162|      0|				}
  163|      0|				throw;
  164|      0|			}
  165|  21.6k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|   107k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|   107k|		{
   79|   107k|			freeVectorUnsafe(m_Vector);
   80|   107k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|   107k|		{
  363|   107k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 160k, False: 107k]
  ------------------
  364|   160k|			{
  365|   160k|				Deleter{}(obj);
  366|   160k|			}
  367|   107k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|   160k|		{
  148|   160k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 160k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|   160k|			try
  154|   160k|			{
  155|   160k|				m_Vector.push_back(element);
  156|   160k|			}
  157|   160k|			catch (const std::exception&)
  158|   160k|			{
  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|   160k|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|     20|		{
  363|     20|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 4, False: 20]
  ------------------
  364|      4|			{
  365|      4|				Deleter{}(obj);
  366|      4|			}
  367|     20|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|    755|		{
  363|    755|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 40, False: 755]
  ------------------
  364|     40|			{
  365|     40|				Deleter{}(obj);
  366|     40|			}
  367|    755|		}
_ZNK4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE2atEi:
  319|  88.5k|		{
  320|  88.5k|			return m_Vector.at(index);
  321|  88.5k|		}
_ZNK4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE4sizeEv:
  216|  1.50k|		{
  217|  1.50k|			return m_Vector.size();
  218|  1.50k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEEC2Ev:
   59|   166k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEED2Ev:
   78|   166k|		{
   79|   166k|			freeVectorUnsafe(m_Vector);
   80|   166k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|   166k|		{
  363|   166k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 355k, False: 166k]
  ------------------
  364|   355k|			{
  365|   355k|				Deleter{}(obj);
  366|   355k|			}
  367|   166k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|   355k|		{
  173|   355k|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 355k]
  ------------------
  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|   355k|			m_Vector.push_back(element.get());
  182|   355k|			element.release();
  183|   355k|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|    755|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|    755|		{
   79|    755|			freeVectorUnsafe(m_Vector);
   80|    755|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|     40|		{
  173|     40|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 40]
  ------------------
  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|     40|			m_Vector.push_back(element.get());
  182|     40|			element.release();
  183|     40|		}
_ZNK4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|    300|		{
  217|    300|			return m_Vector.size();
  218|    300|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|     20|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|     20|		{
   79|     20|			freeVectorUnsafe(m_Vector);
   80|     20|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|      4|		{
  173|      4|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 4]
  ------------------
  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|      4|			m_Vector.push_back(element.get());
  182|      4|			element.release();
  183|      4|		}
_ZNK4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|      8|		{
  217|      8|			return m_Vector.size();
  218|      8|		}

_ZN4pcpp20byteArrayToHexStringEPKhmi:
   17|   186k|	{
   18|   186k|		if (stringSizeLimit <= 0)
  ------------------
  |  Branch (18:7): [True: 106k, False: 79.3k]
  ------------------
   19|   106k|		{
   20|   106k|			stringSizeLimit = static_cast<int>(byteArrSize);
   21|   106k|		}
   22|       |
   23|   186k|		std::stringstream dataStream;
   24|   186k|		dataStream << std::hex;
   25|  1.40M|		for (size_t i = 0; i < byteArrSize; ++i)
  ------------------
  |  Branch (25:22): [True: 1.23M, False: 171k]
  ------------------
   26|  1.23M|		{
   27|  1.23M|			if (i >= static_cast<size_t>(stringSizeLimit))
  ------------------
  |  Branch (27:8): [True: 14.7k, False: 1.22M]
  ------------------
   28|  14.7k|			{
   29|  14.7k|				break;
   30|  14.7k|			}
   31|       |
   32|  1.22M|			dataStream << std::setw(2) << std::setfill('0') << static_cast<int>(byteArr[i]);
   33|  1.22M|		}
   34|       |
   35|   186k|		return dataStream.str();
   36|   186k|	}
_ZN4pcpp20hexStringToByteArrayERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPhm:
   56|  66.8k|	{
   57|  66.8k|		if (hexString.size() % 2 != 0)
  ------------------
  |  Branch (57:7): [True: 0, False: 66.8k]
  ------------------
   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|  66.8k|		memset(resultByteArr, 0, resultByteArrSize);
   64|   521k|		for (size_t i = 0; i < hexString.length(); i += 2)
  ------------------
  |  Branch (64:22): [True: 454k, False: 66.8k]
  ------------------
   65|   454k|		{
   66|   454k|			if (i >= resultByteArrSize * 2)
  ------------------
  |  Branch (66:8): [True: 0, False: 454k]
  ------------------
   67|      0|			{
   68|      0|				return resultByteArrSize;
   69|      0|			}
   70|       |
   71|   454k|			const int firstChar = char2int(hexString[i]);
   72|   454k|			const int secondChar = char2int(hexString[i + 1]);
   73|   454k|			if (firstChar < 0 || secondChar < 0)
  ------------------
  |  Branch (73:8): [True: 0, False: 454k]
  |  Branch (73:25): [True: 0, False: 454k]
  ------------------
   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|   454k|			resultByteArr[i / 2] = (firstChar << 4) | secondChar;
   81|   454k|		}
   82|       |
   83|  66.8k|		return hexString.length() / 2;
   84|  66.8k|	}
_ZN4pcpp21cross_platform_memmemEPKcmS1_m:
   87|  57.1k|	{
   88|  57.1k|		char* ptr = const_cast<char*>(haystack);
   89|   370k|		while (needleLen <= (haystackLen - (ptr - haystack)))
  ------------------
  |  Branch (89:10): [True: 370k, False: 613]
  ------------------
   90|   370k|		{
   91|   370k|			if (nullptr !=
  ------------------
  |  Branch (91:8): [True: 350k, False: 20.1k]
  ------------------
   92|   370k|			    (ptr = static_cast<char*>(memchr(ptr, static_cast<int>(*needle), haystackLen - (ptr - haystack)))))
   93|   350k|			{
   94|       |				// check if there is room to do a memcmp
   95|   350k|				if (needleLen > (haystackLen - (ptr - haystack)))
  ------------------
  |  Branch (95:9): [True: 240, False: 349k]
  ------------------
   96|    240|				{
   97|    240|					return nullptr;
   98|    240|				}
   99|       |
  100|   349k|				if (0 == memcmp(ptr, needle, needleLen))
  ------------------
  |  Branch (100:9): [True: 36.1k, False: 313k]
  ------------------
  101|  36.1k|				{
  102|  36.1k|					return ptr;
  103|  36.1k|				}
  104|   313k|				++ptr;
  105|   313k|			}
  106|  20.1k|			else
  107|  20.1k|			{
  108|  20.1k|				break;
  109|  20.1k|			}
  110|   370k|		}
  111|       |
  112|  20.7k|		return nullptr;
  113|  57.1k|	}
GeneralUtils.cpp:_ZN4pcppL8char2intEc:
   39|   909k|	{
   40|   909k|		if (input >= '0' && input <= '9')
  ------------------
  |  Branch (40:7): [True: 909k, False: 0]
  |  Branch (40:23): [True: 764k, False: 145k]
  ------------------
   41|   764k|		{
   42|   764k|			return input - '0';
   43|   764k|		}
   44|   145k|		if (input >= 'A' && input <= 'F')
  ------------------
  |  Branch (44:7): [True: 145k, False: 0]
  |  Branch (44:23): [True: 0, False: 145k]
  ------------------
   45|      0|		{
   46|      0|			return input - 'A' + 10;
   47|      0|		}
   48|   145k|		if (input >= 'a' && input <= 'f')
  ------------------
  |  Branch (48:7): [True: 145k, False: 0]
  |  Branch (48:23): [True: 145k, False: 0]
  ------------------
   49|   145k|		{
   50|   145k|			return input - 'a' + 10;
   51|   145k|		}
   52|      0|		return -1;
   53|   145k|	}

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

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

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

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

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

_ZNK4pcpp10Asn1Record10getTagTypeEv:
  164|  70.5k|		{
  165|  70.5k|			return m_TagType;
  166|  70.5k|		}
_ZNK4pcpp10Asn1Record14getTotalLengthEv:
  176|   773k|		{
  177|   773k|			return m_TotalLength;
  178|   773k|		}
_ZN4pcpp21Asn1ConstructedRecord13getSubRecordsEv:
  313|  93.6k|		{
  314|  93.6k|			decodeValueIfNeeded();
  315|  93.6k|			return m_SubRecords;
  316|  93.6k|		};
_ZNK4pcpp14Asn1NullRecord11decodeValueEPKh:
  689|     59|		{}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EE11decodeValueEPKh:
  554|   119k|		{
  555|   119k|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  556|   119k|		}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EE8getValueEv:
  538|  1.30k|		{
  539|  1.30k|			decodeValueIfNeeded();
  540|  1.30k|			return m_Value;
  541|  1.30k|		};
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE12EE11decodeValueEPKh:
  554|    128|		{
  555|    128|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  556|    128|		}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE22EE11decodeValueEPKh:
  554|    110|		{
  555|    110|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  556|    110|		}
_ZN4pcpp10Asn1Record6castAsINS_18Asn1SequenceRecordEEEPT_v:
  188|  84.9k|		{
  189|  84.9k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  84.9k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 1.63k, False: 83.2k]
  ------------------
  191|  1.63k|			{
  192|  1.63k|				throw std::bad_cast();
  193|  1.63k|			}
  194|  83.2k|			return result;
  195|  84.9k|		}
_ZNK4pcpp17Asn1IntegerRecord11getIntValueIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS4_EE5valueEiE4typeELi0EEES4_v:
  425|  6.03k|		{
  426|  6.03k|			decodeValueIfNeeded();
  427|  6.03k|			return m_Value.getInt<T>();
  428|  6.03k|		}
_ZNK4pcpp17Asn1IntegerRecord6BigInt6getIntIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS5_EE5valueEiE4typeELi0EEES5_v:
  477|  6.03k|			{
  478|  6.03k|				if (!canFit<T>())
  ------------------
  |  Branch (478:9): [True: 0, False: 6.03k]
  ------------------
  479|      0|				{
  480|      0|					throw std::overflow_error("Value cannot fit into requested int type");
  481|      0|				}
  482|       |
  483|  6.03k|				std::stringstream sstream;
  484|  6.03k|				sstream << std::hex << m_Value;
  485|       |
  486|  6.03k|				uint64_t result;
  487|  6.03k|				sstream >> result;
  488|  6.03k|				return static_cast<T>(result);
  489|  6.03k|			}
_ZNK4pcpp17Asn1IntegerRecord6BigInt6canFitIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS5_EE5valueEiE4typeELi0EEEbv:
  492|  6.03k|			{
  493|  6.03k|				return sizeof(T) >= (m_Value.size() + 1) / 2;
  494|  6.03k|			}
_ZN4pcpp10Asn1Record6castAsINS_21Asn1OctetStringRecordEEEPT_v:
  188|  1.30k|		{
  189|  1.30k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  1.30k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 0, False: 1.30k]
  ------------------
  191|      0|			{
  192|      0|				throw std::bad_cast();
  193|      0|			}
  194|  1.30k|			return result;
  195|  1.30k|		}
_ZN4pcpp10Asn1Record6castAsINS_21Asn1ConstructedRecordEEEPT_v:
  188|  25.4k|		{
  189|  25.4k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  25.4k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 276, False: 25.1k]
  ------------------
  191|    276|			{
  192|    276|				throw std::bad_cast();
  193|    276|			}
  194|  25.1k|			return result;
  195|  25.4k|		}
_ZN4pcpp18Asn1SequenceRecordC2Ev:
  368|  86.0k|		Asn1SequenceRecord() = default;
_ZN4pcpp21Asn1ConstructedRecordC2Ev:
  319|   166k|		Asn1ConstructedRecord() = default;
_ZN4pcpp13Asn1SetRecordC2Ev:
  387|  13.2k|		Asn1SetRecord() = default;
_ZN4pcpp17Asn1IntegerRecordC2Ev:
  447|  90.8k|		Asn1IntegerRecord() = default;
_ZN4pcpp19Asn1PrimitiveRecordC2Ev:
  398|  98.4k|		Asn1PrimitiveRecord() = default;
_ZN4pcpp20Asn1EnumeratedRecordC2Ev:
  527|  22.8k|		Asn1EnumeratedRecord() = default;
_ZN4pcpp21Asn1OctetStringRecordC2Ev:
  594|   132k|		Asn1OctetStringRecord() = default;
_ZN4pcpp20Asn1UTF8StringRecordC2Ev:
  612|    128|		Asn1UTF8StringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE12EEC2Ev:
  544|    128|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  545|    128|		{}
_ZN4pcpp25Asn1PrintableStringRecordC2Ev:
  628|     10|		Asn1PrintableStringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE19EEC2Ev:
  544|     10|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  545|     10|		{}
_ZN4pcpp19Asn1IA5StringRecordC2Ev:
  644|    110|		Asn1IA5StringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE22EEC2Ev:
  544|    110|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  545|    110|		{}
_ZN4pcpp17Asn1BooleanRecordC2Ev:
  672|  5.48k|		Asn1BooleanRecord() = default;
_ZN4pcpp19Asn1BitStringRecordC2Ev:
  925|    404|		Asn1BitStringRecord() = default;
_ZN4pcpp26Asn1ObjectIdentifierRecordC2Ev:
  780|    756|		Asn1ObjectIdentifierRecord() = default;
_ZN4pcpp17Asn1UtcTimeRecordC2Ev:
  840|    180|		Asn1UtcTimeRecord() = default;
_ZN4pcpp14Asn1TimeRecordC2Ev:
  809|    950|		Asn1TimeRecord() = default;
_ZN4pcpp25Asn1GeneralizedTimeRecordC2Ev:
  864|    770|		Asn1GeneralizedTimeRecord() = default;
_ZN4pcpp17Asn1GenericRecordC2Ev:
  278|  23.4k|		Asn1GenericRecord() = default;
_ZN4pcpp10Asn1RecordC2Ev:
  207|   421k|		Asn1Record() = default;
_ZN4pcpp10Asn1RecordD2Ev:
  197|   421k|		virtual ~Asn1Record() = default;
_ZN4pcpp17Asn1IntegerRecord6BigIntC2Ev:
  458|  90.8k|			BigInt() = default;
_ZN4pcpp20Asn1ObjectIdentifierC2Ev:
  747|    756|		Asn1ObjectIdentifier() = default;
_ZN4pcpp19Asn1BitStringRecord6BitSetC2Ev:
  904|    404|			BitSet() = default;
_ZN4pcpp17Asn1GenericRecordD2Ev:
  268|  23.4k|		~Asn1GenericRecord() override = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EEC2Ev:
  544|   132k|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  545|   132k|		{}
_ZN4pcpp10Asn1Record6castAsINS_20Asn1EnumeratedRecordEEEPT_v:
  188|  6.03k|		{
  189|  6.03k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  6.03k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 0, False: 6.03k]
  ------------------
  191|      0|			{
  192|      0|				throw std::bad_cast();
  193|      0|			}
  194|  6.03k|			return result;
  195|  6.03k|		}

_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2EhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  261|  61.0k|			prefix_and_ip(uint8_t prefixVal, const std::string& ipAddrVal) : prefix(prefixVal), ipAddr(ipAddrVal)
  262|  61.0k|			{}
_ZN4pcpp8BgpLayer9isBgpPortEtt:
   66|   273k|		{
   67|   273k|			return portSrc == 179 || portDst == 179;
  ------------------
  |  Branch (67:11): [True: 16.2k, False: 257k]
  |  Branch (67:29): [True: 30.1k, False: 227k]
  ------------------
   68|   273k|		}
_ZNK4pcpp8BgpLayer16getOsiModelLayerEv:
   92|  17.3k|		{
   93|  17.3k|			return OsiModelApplicationLayer;
   94|  17.3k|		}
_ZN4pcpp8BgpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  107|   160k|		    : Layer(data, dataLen, prevLayer, packet, BGP)
  108|   160k|		{}
_ZNK4pcpp8BgpLayer14getBasicHeaderEv:
  111|  1.42M|		{
  112|  1.42M|			return reinterpret_cast<bgp_common_header*>(m_Data);
  113|  1.42M|		}
_ZN4pcpp19BgpOpenMessageLayer18optional_parameterC2Ev:
  159|  14.4k|			{}
_ZN4pcpp19BgpOpenMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  174|  22.9k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  175|  22.9k|		{}
_ZNK4pcpp19BgpOpenMessageLayer16getOpenMsgHeaderEv:
  190|  31.8k|		{
  191|  31.8k|			return reinterpret_cast<bgp_open_message*>(m_Data);
  192|  31.8k|		}
_ZNK4pcpp19BgpOpenMessageLayer17getBgpMessageTypeEv:
  230|  13.3k|		{
  231|  13.3k|			return BgpLayer::Open;
  232|  13.3k|		}
_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2Ev:
  255|  13.5k|			prefix_and_ip() : prefix(0), ipAddr(IPv4Address::Zero)
  256|  13.5k|			{}
_ZN4pcpp21BgpUpdateMessageLayer14path_attributeC2Ev:
  281|  33.4k|			{}
_ZN4pcpp21BgpUpdateMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  298|   127k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  299|   127k|		{}
_ZNK4pcpp21BgpUpdateMessageLayer17getBgpMessageTypeEv:
  393|  48.8k|		{
  394|  48.8k|			return BgpLayer::Update;
  395|  48.8k|		}
_ZN4pcpp27BgpNotificationMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  430|  3.24k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  431|  3.24k|		{}
_ZNK4pcpp27BgpNotificationMessageLayer17getBgpMessageTypeEv:
  495|  2.22k|		{
  496|  2.22k|			return BgpLayer::Notification;
  497|  2.22k|		}
_ZN4pcpp24BgpKeepaliveMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  519|  4.56k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  520|  4.56k|		{}
_ZNK4pcpp24BgpKeepaliveMessageLayer17getBgpMessageTypeEv:
  536|  3.65k|		{
  537|  3.65k|			return BgpLayer::Keepalive;
  538|  3.65k|		}
_ZN4pcpp27BgpRouteRefreshMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  566|  1.89k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  567|  1.89k|		{}
_ZNK4pcpp27BgpRouteRefreshMessageLayer17getBgpMessageTypeEv:
  585|  1.51k|		{
  586|  1.51k|			return BgpLayer::RouteRefresh;
  587|  1.51k|		}

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

_ZNK4pcpp9DhcpLayer9getOpCodeEv:
  609|  2.94k|		{
  610|  2.94k|			return static_cast<BootpOpCodes>(getDhcpHeader()->opCode);
  611|  2.94k|		}
_ZNK4pcpp9DhcpLayer13getDhcpHeaderEv:
  603|  23.5k|		{
  604|  23.5k|			return reinterpret_cast<dhcp_header*>(m_Data);
  605|  23.5k|		}
_ZNK4pcpp9DhcpLayer18getClientIpAddressEv:
  616|  2.94k|		{
  617|  2.94k|			return getDhcpHeader()->clientIpAddress;
  618|  2.94k|		}
_ZNK4pcpp9DhcpLayer16getYourIpAddressEv:
  643|  2.94k|		{
  644|  2.94k|			return getDhcpHeader()->yourIpAddress;
  645|  2.94k|		}
_ZNK4pcpp9DhcpLayer18getServerIpAddressEv:
  630|  2.94k|		{
  631|  2.94k|			return getDhcpHeader()->serverIpAddress;
  632|  2.94k|		}
_ZNK4pcpp9DhcpLayer19getGatewayIpAddressEv:
  657|  2.94k|		{
  658|  2.94k|			return getDhcpHeader()->gatewayIpAddress;
  659|  2.94k|		}
_ZNK4pcpp10DhcpOption16getValueAsIpAddrEv:
  400|  2.90k|		{
  401|  2.90k|			return getValueAs<uint32_t>();
  402|  2.90k|		}
_ZNK4pcpp10DhcpOption16getValueAsStringEi:
  420|  2.90k|		{
  421|       |			// TODO: This will burn if valueOffset is negative.
  422|       |			// Should negative offsets even be allowed? Potentially change it to size_t?
  423|  2.90k|			if (m_Data == nullptr || getDataSize() < static_cast<size_t>(valueOffset) + 1)
  ------------------
  |  Branch (423:8): [True: 0, False: 2.90k]
  |  Branch (423:29): [True: 231, False: 2.67k]
  ------------------
  424|    231|				return "";
  425|       |
  426|  2.67k|			return std::string(reinterpret_cast<const char*>(m_Data->recordValue) + valueOffset,
  427|  2.67k|			                   static_cast<int>(m_Data->recordLen) - valueOffset);
  428|  2.90k|		}
_ZNK4pcpp10DhcpOption12getTotalSizeEv:
  471|  1.29M|		{
  472|  1.29M|			if (m_Data == nullptr)
  ------------------
  |  Branch (472:8): [True: 0, False: 1.29M]
  ------------------
  473|      0|				return 0;
  474|       |
  475|  1.29M|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (475:8): [True: 17.5k, False: 1.27M]
  ------------------
  476|  1.27M|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (476:8): [True: 973k, False: 302k]
  ------------------
  477|   991k|				return sizeof(uint8_t);
  478|       |
  479|   302k|			return sizeof(uint8_t) * 2 + static_cast<size_t>(m_Data->recordLen);
  480|  1.29M|		}
_ZNK4pcpp10DhcpOption11getDataSizeEv:
  483|  10.3k|		{
  484|  10.3k|			if (m_Data == nullptr)
  ------------------
  |  Branch (484:8): [True: 0, False: 10.3k]
  ------------------
  485|      0|				return 0;
  486|       |
  487|  10.3k|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (487:8): [True: 0, False: 10.3k]
  ------------------
  488|  10.3k|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (488:8): [True: 430, False: 9.90k]
  ------------------
  489|    430|				return 0;
  490|       |
  491|  9.90k|			return m_Data->recordLen;
  492|  10.3k|		}
_ZN4pcpp10DhcpOptionC2EPh:
  391|   276k|		explicit DhcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  392|   276k|		{}
_ZN4pcpp10DhcpOption9canAssignEPKhm:
  453|   276k|		{
  454|   276k|			auto data = reinterpret_cast<TLVRawData const*>(recordRawData);
  455|   276k|			if (data == nullptr)
  ------------------
  |  Branch (455:8): [True: 0, False: 276k]
  ------------------
  456|      0|				return false;
  457|       |
  458|   276k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (458:8): [True: 9.65k, False: 266k]
  ------------------
  459|  9.65k|				return false;
  460|       |
  461|   266k|			if (data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (461:8): [True: 3.53k, False: 262k]
  ------------------
  462|   262k|			    data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (462:8): [True: 196k, False: 65.9k]
  ------------------
  463|   200k|				return true;
  464|       |
  465|  65.9k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  466|   266k|		}
_ZN4pcpp9DhcpLayer11isDataValidEPKhm:
  595|  14.9k|		{
  596|  14.9k|			return canReinterpretAs<dhcp_header>(data, dataLen);
  597|  14.9k|		}
_ZN4pcpp9DhcpLayer14parseNextLayerEv:
  744|  14.8k|		{}
_ZNK4pcpp9DhcpLayer12getHeaderLenEv:
  748|   137k|		{
  749|   137k|			return m_DataLen;
  750|   137k|		}
_ZNK4pcpp9DhcpLayer16getOsiModelLayerEv:
  765|  2.94k|		{
  766|  2.94k|			return OsiModelApplicationLayer;
  767|  2.94k|		}
_ZNK4pcpp9DhcpLayer17getOptionsBasePtrEv:
  771|   134k|		{
  772|   134k|			return m_Data + sizeof(dhcp_header);
  773|   134k|		}
_ZN4pcpp9DhcpLayer11isDhcpPortsEtt:
  785|   314k|	{
  786|   314k|		return ((portSrc == 68 && portDst == 67) || (portSrc == 67 && portDst == 68) ||
  ------------------
  |  Branch (786:12): [True: 4.67k, False: 309k]
  |  Branch (786:29): [True: 1.57k, False: 3.09k]
  |  Branch (786:48): [True: 13.4k, False: 299k]
  |  Branch (786:65): [True: 13.4k, False: 55]
  ------------------
  787|   299k|		        (portSrc == 67 && portDst == 67));
  ------------------
  |  Branch (787:12): [True: 55, False: 299k]
  |  Branch (787:29): [True: 0, False: 55]
  ------------------
  788|   314k|	}
_ZN4pcpp9DhcpLayerD2Ev:
  592|  14.8k|		~DhcpLayer() override = default;

_ZN4pcpp12DhcpV6OptionC2EPh:
  192|  30.9k|		explicit DhcpV6Option(uint8_t* optionRawData) : TLVRecord(optionRawData)
  193|  30.9k|		{}
_ZN4pcpp11DhcpV6Layer14parseNextLayerEv:
  353|  18.6k|		{}
_ZNK4pcpp11DhcpV6Layer12getHeaderLenEv:
  357|  33.0k|		{
  358|  33.0k|			return m_DataLen;
  359|  33.0k|		}
_ZN4pcpp11DhcpV6Layer22computeCalculateFieldsEv:
  363|  3.60k|		{}
_ZNK4pcpp11DhcpV6Layer16getOsiModelLayerEv:
  368|  3.60k|		{
  369|  3.60k|			return OsiModelApplicationLayer;
  370|  3.60k|		}
_ZNK4pcpp11DhcpV6Layer17getOptionsBasePtrEv:
  374|  29.4k|		{
  375|  29.4k|			return m_Data + sizeof(dhcpv6_header);
  376|  29.4k|		}
_ZNK4pcpp11DhcpV6Layer13getDhcpHeaderEv:
  378|  10.8k|		{
  379|  10.8k|			return reinterpret_cast<dhcpv6_header*>(m_Data);
  380|  10.8k|		}
_ZN4pcpp11DhcpV6Layer12isDhcpV6PortEt:
  389|   279k|	{
  390|   279k|		return (port == 546) || (port == 547);
  ------------------
  |  Branch (390:10): [True: 12.4k, False: 267k]
  |  Branch (390:27): [True: 6.33k, False: 261k]
  ------------------
  391|   279k|	}
_ZN4pcpp11DhcpV6Layer11isDataValidEPKhm:
  394|  18.8k|	{
  395|  18.8k|		return data && dataLen >= sizeof(dhcpv6_header);
  ------------------
  |  Branch (395:10): [True: 18.8k, False: 0]
  |  Branch (395:18): [True: 18.6k, False: 130]
  ------------------
  396|  18.8k|	}

_ZN4pcpp8DnsLayer14parseNextLayerEv:
  354|  70.7k|		{}
_ZNK4pcpp8DnsLayer12getHeaderLenEv:
  359|   155k|		{
  360|   155k|			return m_DataLen;
  361|   155k|		}  // No layer above DNS
_ZN4pcpp8DnsLayer22computeCalculateFieldsEv:
  365|  10.0k|		{}
_ZNK4pcpp8DnsLayer16getOsiModelLayerEv:
  370|  13.5k|		{
  371|  13.5k|			return OsiModelApplicationLayer;
  372|  13.5k|		}
_ZN4pcpp15DnsOverTcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  440|  18.1k|		    : DnsLayer(data, dataLen, prevLayer, packet, sizeof(uint16_t))
  441|  18.1k|		{}
_ZN4pcpp8DnsLayer9isDnsPortEt:
  469|   854k|	{
  470|   854k|		switch (port)
  471|   854k|		{
  472|  39.0k|		case 53:
  ------------------
  |  Branch (472:3): [True: 39.0k, False: 815k]
  ------------------
  473|  44.3k|		case 5353:
  ------------------
  |  Branch (473:3): [True: 5.30k, False: 848k]
  ------------------
  474|  70.7k|		case 5355:
  ------------------
  |  Branch (474:3): [True: 26.4k, False: 827k]
  ------------------
  475|  70.7k|			return true;
  476|   783k|		default:
  ------------------
  |  Branch (476:3): [True: 783k, False: 70.7k]
  ------------------
  477|   783k|			return false;
  478|   854k|		}
  479|   854k|	}
_ZN4pcpp8DnsLayer11isDataValidEPKhmb:
  482|   512k|	{
  483|   512k|		size_t minSize = sizeof(dnshdr) + (dnsOverTcp ? sizeof(uint16_t) : 0);
  ------------------
  |  Branch (483:38): [True: 213k, False: 299k]
  ------------------
  484|   512k|		return data && dataLen >= minSize;
  ------------------
  |  Branch (484:10): [True: 512k, False: 0]
  |  Branch (484:18): [True: 453k, False: 59.2k]
  ------------------
  485|   512k|	}

_ZNK4pcpp12IDnsResource15getNextResourceEv:
   47|   687k|		{
   48|   687k|			return m_NextResource;
   49|   687k|		}
_ZN4pcpp12IDnsResource15setNextResourceEPS0_:
   51|   204k|		{
   52|   204k|			m_NextResource = next;
   53|   204k|		}
_ZNK4pcpp12IDnsResource7getNameEv:
   78|   128k|		{
   79|   128k|			return m_DecodedName;
   80|   128k|		}
_ZN4pcpp8DnsQueryC2EPNS_8DnsLayerEm:
  117|  98.1k|		DnsQuery(DnsLayer* dnsLayer, size_t offsetInLayer) : IDnsResource(dnsLayer, offsetInLayer)
  118|  98.1k|		{}
_ZN4pcpp8DnsQueryC2EPh:
  120|  13.5k|		explicit DnsQuery(uint8_t* emptyRawData) : IDnsResource(emptyRawData)
  121|  13.5k|		{}
_ZNK4pcpp8DnsQuery7getSizeEv:
  128|   196k|		{
  129|   196k|			return m_NameLength + 2 * sizeof(uint16_t);
  130|   196k|		}
_ZNK4pcpp8DnsQuery7getTypeEv:
  132|   108k|		{
  133|   108k|			return DnsQueryType;
  134|   108k|		}
_ZN4pcpp11DnsResourceC2EPNS_8DnsLayerEmNS_15DnsResourceTypeE:
  147|  76.0k|		    : IDnsResource(dnsLayer, offsetInLayer)
  148|  76.0k|		{
  149|  76.0k|			m_ResourceType = resourceType;
  150|  76.0k|		}
_ZN4pcpp11DnsResourceC2EPhNS_15DnsResourceTypeE:
  153|  40.6k|		    : IDnsResource(emptyRawData), m_ResourceType(resType)
  154|  40.6k|		{}
_ZNK4pcpp11DnsResource7getSizeEv:
  219|   240k|		{
  220|   240k|			return m_NameLength + 3 * sizeof(uint16_t) + sizeof(uint32_t) + getDataLength();
  221|   240k|		}
_ZNK4pcpp11DnsResource7getTypeEv:
  223|   200k|		{
  224|   200k|			return m_ResourceType;
  225|   200k|		}
_ZN4pcpp12IDnsResourceD2Ev:
   60|   228k|		virtual ~IDnsResource() = default;

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

_ZN4pcpp9DoIpLayer10isDoIpPortEt:
  667|   475k|	{
  668|   475k|		auto portAsEnum = static_cast<DoIpPorts>(port);
  669|   475k|		return (portAsEnum == DoIpPorts::TCP_UDP_PORT || portAsEnum == DoIpPorts::TLS_PORT);
  ------------------
  |  Branch (669:11): [True: 65.4k, False: 409k]
  |  Branch (669:52): [True: 0, False: 409k]
  ------------------
  670|   475k|	}
_ZNK4pcpp9DoIpLayer12getHeaderLenEv:
  628|  9.27k|		{
  629|  9.27k|			return m_DataLen;
  630|  9.27k|		}
_ZN4pcpp9DoIpLayer22computeCalculateFieldsEv:
  635|  10.5k|		{}
_ZNK4pcpp9DoIpLayer16getOsiModelLayerEv:
  638|  10.5k|		{
  639|  10.5k|			return OsiModelApplicationLayer;
  640|  10.5k|		}
_ZNK4pcpp21DoIpGenericHeaderNack14getPayloadTypeEv:
  792|  14.8k|		{
  793|  14.8k|			return DoIpPayloadTypes::GENERIC_HEADER_NACK;
  794|  14.8k|		}
_ZN4pcpp21DoIpGenericHeaderNack14isDataLenValidEm:
  800|  8.91k|		{
  801|  8.91k|			return (dataLen == FIXED_LEN);
  802|  8.91k|		}
_ZN4pcpp32DoIpVehicleIdentificationRequestC2EPhmPNS_5LayerEPNS_6PacketE:
  836|  3.89k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
  837|  3.89k|		{}
_ZNK4pcpp32DoIpVehicleIdentificationRequest14getPayloadTypeEv:
  844|  6.85k|		{
  845|  6.85k|			return DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST;
  846|  6.85k|		}
_ZN4pcpp32DoIpVehicleIdentificationRequest14isDataLenValidEm:
  852|  3.89k|		{
  853|  3.89k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
  854|  3.89k|		}
_ZNK4pcpp39DoIpVehicleIdentificationRequestWithEID14getPayloadTypeEv:
  892|  3.72k|		{
  893|  3.72k|			return DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID;
  894|  3.72k|		}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithEID14isDataLenValidEm:
  900|  2.10k|		{
  901|  2.10k|			return (dataLen == FIXED_LEN);
  902|  2.10k|		}
_ZNK4pcpp39DoIpVehicleIdentificationRequestWithVIN14getPayloadTypeEv:
  953|  3.58k|		{
  954|  3.58k|			return DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN;
  955|  3.58k|		}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithVIN14isDataLenValidEm:
  961|  1.99k|		{
  962|  1.99k|			return (dataLen == FIXED_LEN);
  963|  1.99k|		}
_ZNK4pcpp30DoIpVehicleAnnouncementMessage14getPayloadTypeEv:
 1070|  4.05k|		{
 1071|  4.05k|			return DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE;
 1072|  4.05k|		}
_ZN4pcpp30DoIpVehicleAnnouncementMessage14isDataLenValidEm:
 1078|  2.25k|		{
 1079|  2.25k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1079:12): [True: 2.25k, False: 0]
  |  Branch (1079:36): [True: 0, False: 0]
  ------------------
 1080|  2.25k|		}
_ZNK4pcpp28DoIpRoutingActivationRequest14getPayloadTypeEv:
 1178|  4.41k|		{
 1179|  4.41k|			return DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST;
 1180|  4.41k|		}
_ZN4pcpp28DoIpRoutingActivationRequest14isDataLenValidEm:
 1186|  2.45k|		{
 1187|  2.45k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1187:12): [True: 0, False: 2.45k]
  |  Branch (1187:36): [True: 2.45k, False: 0]
  ------------------
 1188|  2.45k|		}
_ZNK4pcpp29DoIpRoutingActivationResponse14getPayloadTypeEv:
 1291|  3.78k|		{
 1292|  3.78k|			return DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE;
 1293|  3.78k|		}
_ZN4pcpp29DoIpRoutingActivationResponse14isDataLenValidEm:
 1299|  2.10k|		{
 1300|  2.10k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1300:12): [True: 2.10k, False: 0]
  |  Branch (1300:36): [True: 0, False: 0]
  ------------------
 1301|  2.10k|		}
_ZN4pcpp21DoIpAliveCheckRequestC2EPhmPNS_5LayerEPNS_6PacketE:
 1343|  4.88k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
 1344|  4.88k|		{}
_ZNK4pcpp21DoIpAliveCheckRequest14getPayloadTypeEv:
 1351|  8.76k|		{
 1352|  8.76k|			return DoIpPayloadTypes::ALIVE_CHECK_REQUEST;
 1353|  8.76k|		}
_ZN4pcpp21DoIpAliveCheckRequest14isDataLenValidEm:
 1359|  4.88k|		{
 1360|  4.88k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
 1361|  4.88k|		}
_ZNK4pcpp22DoIpAliveCheckResponse14getPayloadTypeEv:
 1401|  5.71k|		{
 1402|  5.71k|			return DoIpPayloadTypes::ALIVE_CHECK_RESPONSE;
 1403|  5.71k|		}
_ZN4pcpp22DoIpAliveCheckResponse14isDataLenValidEm:
 1408|  3.17k|		{
 1409|  3.17k|			return (dataLen == FIXED_LEN);
 1410|  3.17k|		}
_ZN4pcpp23DoIpEntityStatusRequestC2EPhmPNS_5LayerEPNS_6PacketE:
 1445|  5.24k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
 1446|  5.24k|		{}
_ZNK4pcpp23DoIpEntityStatusRequest14getPayloadTypeEv:
 1453|  9.43k|		{
 1454|  9.43k|			return DoIpPayloadTypes::ENTITY_STATUS_REQUEST;
 1455|  9.43k|		}
_ZN4pcpp23DoIpEntityStatusRequest14isDataLenValidEm:
 1461|  5.47k|		{
 1462|  5.47k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
 1463|  5.47k|		}
_ZNK4pcpp24DoIpEntityStatusResponse14getPayloadTypeEv:
 1495|  10.6k|		{
 1496|  10.6k|			return DoIpPayloadTypes::ENTITY_STATUS_RESPONSE;
 1497|  10.6k|		}
_ZN4pcpp24DoIpEntityStatusResponse14isDataLenValidEm:
 1548|  6.36k|		{
 1549|  6.36k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1549:12): [True: 0, False: 6.36k]
  |  Branch (1549:36): [True: 6.36k, False: 0]
  ------------------
 1550|  6.36k|		}
_ZN4pcpp30DoIpDiagnosticPowerModeRequestC2EPhmPNS_5LayerEPNS_6PacketE:
 1592|  3.47k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
 1593|  3.47k|		{}
_ZNK4pcpp30DoIpDiagnosticPowerModeRequest14getPayloadTypeEv:
 1600|  5.88k|		{
 1601|  5.88k|			return DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST;
 1602|  5.88k|		}
_ZN4pcpp30DoIpDiagnosticPowerModeRequest14isDataLenValidEm:
 1608|  3.47k|		{
 1609|  3.47k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
 1610|  3.47k|		}
_ZNK4pcpp31DoIpDiagnosticPowerModeResponse14getPayloadTypeEv:
 1650|  2.51k|		{
 1651|  2.51k|			return DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE;
 1652|  2.51k|		}
_ZN4pcpp31DoIpDiagnosticPowerModeResponse14isDataLenValidEm:
 1658|  1.50k|		{
 1659|  1.50k|			return (dataLen == FIXED_LEN);
 1660|  1.50k|		}
_ZNK4pcpp21DoIpDiagnosticMessage14getPayloadTypeEv:
 1766|  12.2k|		{
 1767|  12.2k|			return DoIpPayloadTypes::DIAGNOSTIC_MESSAGE;
 1768|  12.2k|		}
_ZNK4pcpp21DoIpDiagnosticMessage12getHeaderLenEv:
 1772|  8.59k|		{
 1773|  8.59k|			return sizeof(doiphdr) + 2 * sizeof(uint16_t);
 1774|  8.59k|		}
_ZN4pcpp21DoIpDiagnosticMessage14isDataLenValidEm:
 1779|  7.36k|		{
 1780|  7.36k|			return (dataLen >= MIN_LEN);
 1781|  7.36k|		}
_ZN4pcpp33DoIpDiagnosticResponseMessageBase14isDataLenValidEm:
 1823|  1.71k|		{
 1824|  1.71k|			return (dataLen >= FIXED_LEN);
 1825|  1.71k|		}
_ZNK4pcpp24DoIpDiagnosticMessageAck14getPayloadTypeEv:
 1884|  1.53k|		{
 1885|  1.53k|			return DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK;
 1886|  1.53k|		}
_ZNK4pcpp25DoIpDiagnosticMessageNack14getPayloadTypeEv:
 1928|  1.44k|		{
 1929|  1.44k|			return DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK;
 1930|  1.44k|		}
_ZN4pcpp9DoIpLayer22isProtocolVersionValidEhhNS_16DoIpPayloadTypesE:
  673|  62.2k|	{
  674|  62.2k|		const DoIpProtocolVersion parsedVersion = static_cast<DoIpProtocolVersion>(version);
  675|       |
  676|  62.2k|		switch (parsedVersion)
  677|  62.2k|		{
  678|     11|		case DoIpProtocolVersion::RESERVED_VER:
  ------------------
  |  Branch (678:3): [True: 11, False: 62.1k]
  ------------------
  679|     11|		{
  680|     11|			PCPP_LOG_DEBUG("[Malformed doip packet]: Reserved ISO DoIP protocol version detected: 0x"
  ------------------
  |  |  425|     11|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|     11|	do                                                                                                                 \
  |  |  |  |  413|     11|	{                                                                                                                  \
  |  |  |  |  414|     11|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     11|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     11|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 11]
  |  |  |  |  ------------------
  |  |  |  |  416|     11|		{                                                                                                              \
  |  |  |  |  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|     11|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 11]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  681|     11|			               << std::hex << static_cast<int>(version));
  682|     11|			return false;
  683|      0|		}
  684|  2.71k|		case DoIpProtocolVersion::DEFAULT_VALUE:
  ------------------
  |  Branch (684:3): [True: 2.71k, False: 59.4k]
  ------------------
  685|  2.71k|			if (type != DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN &&
  ------------------
  |  Branch (685:8): [True: 2.68k, False: 36]
  ------------------
  686|  2.68k|			    type != DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID &&
  ------------------
  |  Branch (686:8): [True: 2.68k, False: 0]
  ------------------
  687|  2.68k|			    type != DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST)
  ------------------
  |  Branch (687:8): [True: 142, False: 2.53k]
  ------------------
  688|    142|			{
  689|    142|				PCPP_LOG_DEBUG("[Malformed doip packet]: Invalid/unsupported DoIP version!");
  ------------------
  |  |  425|    142|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    142|	do                                                                                                                 \
  |  |  |  |  413|    142|	{                                                                                                                  \
  |  |  |  |  414|    142|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    142|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    142|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 142]
  |  |  |  |  ------------------
  |  |  |  |  416|    142|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|    142|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 142]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  690|    142|				return false;
  691|    142|			}
  692|  2.62k|		case DoIpProtocolVersion::ISO13400_2010:
  ------------------
  |  Branch (692:3): [True: 48, False: 62.1k]
  ------------------
  693|  60.2k|		case DoIpProtocolVersion::ISO13400_2012:
  ------------------
  |  Branch (693:3): [True: 57.6k, False: 4.55k]
  ------------------
  694|  61.9k|		case DoIpProtocolVersion::ISO13400_2019:
  ------------------
  |  Branch (694:3): [True: 1.65k, False: 60.5k]
  ------------------
  695|  61.9k|		case DoIpProtocolVersion::ISO13400_2019_AMD1:
  ------------------
  |  Branch (695:3): [True: 0, False: 62.2k]
  ------------------
  696|  61.9k|		{
  697|  61.9k|			if (version != static_cast<uint8_t>(~inVersion))
  ------------------
  |  Branch (697:8): [True: 1.80k, False: 60.1k]
  ------------------
  698|  1.80k|			{
  699|  1.80k|				PCPP_LOG_DEBUG("[Malformed doip packet]: Protocol version and inverse version mismatch! Version: 0x"
  ------------------
  |  |  425|  1.80k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  1.80k|	do                                                                                                                 \
  |  |  |  |  413|  1.80k|	{                                                                                                                  \
  |  |  |  |  414|  1.80k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.80k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.80k|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.80k|		{                                                                                                              \
  |  |  |  |  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.80k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.80k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  700|  1.80k|				               << std::hex << static_cast<int>(version) << ", Inverted: 0x"
  701|  1.80k|				               << static_cast<int>(inVersion));
  702|  1.80k|				return false;
  703|  1.80k|			}
  704|  60.1k|			return true;
  705|  61.9k|		}
  706|    127|		default:
  ------------------
  |  Branch (706:3): [True: 127, False: 62.0k]
  ------------------
  707|    127|			PCPP_LOG_DEBUG("[Malformed doip packet]: Unknown DoIP protocol version: 0x" << std::hex
  ------------------
  |  |  425|    127|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    127|	do                                                                                                                 \
  |  |  |  |  413|    127|	{                                                                                                                  \
  |  |  |  |  414|    127|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    127|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    127|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 127]
  |  |  |  |  ------------------
  |  |  |  |  416|    127|		{                                                                                                              \
  |  |  |  |  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|    127|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 127]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  708|    127|			                                                                            << static_cast<int>(version));
  709|    127|			return false;
  710|  62.2k|		}
  711|  62.2k|	}
_ZN4pcpp9DoIpLayer18isPayloadTypeValidEt:
  714|  64.3k|	{
  715|  64.3k|		const DoIpPayloadTypes payloadType = static_cast<DoIpPayloadTypes>(type);
  716|       |
  717|  64.3k|		switch (payloadType)
  718|  64.3k|		{
  719|  9.02k|		case DoIpPayloadTypes::GENERIC_HEADER_NACK:
  ------------------
  |  Branch (719:3): [True: 9.02k, False: 55.3k]
  ------------------
  720|  13.0k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST:
  ------------------
  |  Branch (720:3): [True: 3.98k, False: 60.3k]
  ------------------
  721|  15.2k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID:
  ------------------
  |  Branch (721:3): [True: 2.20k, False: 62.1k]
  ------------------
  722|  17.2k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN:
  ------------------
  |  Branch (722:3): [True: 2.03k, False: 62.3k]
  ------------------
  723|  19.5k|		case DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE:
  ------------------
  |  Branch (723:3): [True: 2.26k, False: 62.0k]
  ------------------
  724|  22.3k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST:
  ------------------
  |  Branch (724:3): [True: 2.86k, False: 61.4k]
  ------------------
  725|  24.6k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE:
  ------------------
  |  Branch (725:3): [True: 2.29k, False: 62.0k]
  ------------------
  726|  29.6k|		case DoIpPayloadTypes::ALIVE_CHECK_REQUEST:
  ------------------
  |  Branch (726:3): [True: 4.92k, False: 59.4k]
  ------------------
  727|  33.4k|		case DoIpPayloadTypes::ALIVE_CHECK_RESPONSE:
  ------------------
  |  Branch (727:3): [True: 3.87k, False: 60.4k]
  ------------------
  728|  38.9k|		case DoIpPayloadTypes::ENTITY_STATUS_REQUEST:
  ------------------
  |  Branch (728:3): [True: 5.49k, False: 58.8k]
  ------------------
  729|  45.5k|		case DoIpPayloadTypes::ENTITY_STATUS_RESPONSE:
  ------------------
  |  Branch (729:3): [True: 6.61k, False: 57.7k]
  ------------------
  730|  49.0k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST:
  ------------------
  |  Branch (730:3): [True: 3.49k, False: 60.8k]
  ------------------
  731|  50.5k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE:
  ------------------
  |  Branch (731:3): [True: 1.50k, False: 62.8k]
  ------------------
  732|  57.9k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE:
  ------------------
  |  Branch (732:3): [True: 7.41k, False: 56.9k]
  ------------------
  733|  59.5k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK:
  ------------------
  |  Branch (733:3): [True: 1.55k, False: 62.7k]
  ------------------
  734|  62.2k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK:
  ------------------
  |  Branch (734:3): [True: 2.66k, False: 61.6k]
  ------------------
  735|  62.2k|			return true;
  736|       |
  737|  2.12k|		default:
  ------------------
  |  Branch (737:3): [True: 2.12k, False: 62.2k]
  ------------------
  738|  2.12k|			PCPP_LOG_DEBUG("[Malformed doip packet]: Invalid DoIP payload type: 0x" << std::hex << type);
  ------------------
  |  |  425|  2.12k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, 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 PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 2.12k]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.12k|		{                                                                                                              \
  |  |  |  |  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|  2.12k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  739|  2.12k|			return false;
  740|  64.3k|		}
  741|  64.3k|	}
_ZN4pcpp9DoIpLayer20isPayloadLengthValidEjm:
  744|  60.1k|	{
  745|  60.1k|		const size_t actualPayloadLen = dataLen - DOIP_HEADER_LEN;
  746|       |
  747|  60.1k|		if (payloadLength != actualPayloadLen)
  ------------------
  |  Branch (747:7): [True: 2.45k, False: 57.6k]
  ------------------
  748|  2.45k|		{
  749|  2.45k|			PCPP_LOG_DEBUG("[Malformed doip packet]: Payload length mismatch: expected "
  ------------------
  |  |  425|  2.45k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  2.45k|	do                                                                                                                 \
  |  |  |  |  413|  2.45k|	{                                                                                                                  \
  |  |  |  |  414|  2.45k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.45k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.45k|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 2.45k]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.45k|		{                                                                                                              \
  |  |  |  |  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|  2.45k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.45k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  750|  2.45k|			               << payloadLength << " bytes, but got " << actualPayloadLen << " bytes.");
  751|  2.45k|			return false;
  752|  2.45k|		}
  753|       |
  754|  57.6k|		return true;
  755|  60.1k|	}

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

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

_ZN4pcpp8FtpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   17|  9.02k|		    : SingleCommandTextProtocol(data, dataLen, prevLayer, packet, FTPControl) {};
_ZN4pcpp8FtpLayer9isFtpPortEt:
   25|   287k|		{
   26|   287k|			return port == 21;
   27|   287k|		}
_ZN4pcpp8FtpLayer13isFtpDataPortEt:
   32|   277k|		{
   33|   277k|			return port == 20;
   34|   277k|		}
_ZN4pcpp8FtpLayer14parseNextLayerEv:
   40|  9.02k|		{}
_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|		}
_ZN4pcpp16FtpResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  396|  9.02k|		    : FtpLayer(data, dataLen, prevLayer, packet) {};
_ZN4pcpp12FtpDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  448|  2.62k|		    : PayloadLayer(data, dataLen, prevLayer, packet)
  449|  2.62k|		{
  450|  2.62k|			m_Protocol = FTPData;
  451|  2.62k|		};

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

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

_ZN4pcpp11HttpMessage10isHttpPortEt:
   75|   783k|		{
   76|   783k|			return port == 80 || port == 8080;
  ------------------
  |  Branch (76:11): [True: 46.6k, False: 736k]
  |  Branch (76:25): [True: 1.62k, False: 735k]
  ------------------
   77|   783k|		}
_ZNK4pcpp22HttpResponseStatusCode17isUnsupportedCodeEv:
  454|  12.1k|		{
  455|  12.1k|			return m_Value > 599;
  456|  12.1k|		}
_ZNK4pcpp11HttpMessage16getOsiModelLayerEv:
   88|  3.25k|		{
   89|  3.25k|			return OsiModelApplicationLayer;
   90|  3.25k|		}
_ZN4pcpp11HttpMessageC2EPhmPNS_5LayerEPNS_6PacketEh:
   94|  16.6k|		    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, protocol)
   95|  16.6k|		{}
_ZNK4pcpp11HttpMessage32getHeaderFieldNameValueSeparatorEv:
  108|  16.6k|		{
  109|  16.6k|			return ':';
  110|  16.6k|		}
_ZNK4pcpp11HttpMessage43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  112|  16.6k|		{
  113|  16.6k|			return true;
  114|  16.6k|		}
_ZN4pcpp22HttpResponseStatusCodeC2ENS0_5ValueE:
  416|    544|		HttpResponseStatusCode(Value statusCode) : m_Value(statusCode)
  417|    544|		{}
_ZNK4pcpp22HttpResponseStatusCodecvNS0_5ValueEEv:
  431|  23.3k|		{
  432|  23.3k|			return m_Value;
  433|  23.3k|		}
_ZNK4pcpp20HttpRequestFirstLine7getSizeEv:
  613|  7.05k|		{
  614|  7.05k|			return m_FirstLineEndOffset;
  615|  7.05k|		}
_ZN4pcpp20HttpRequestFirstLine29HttpRequestFirstLineExceptionD2Ev:
  634|  5.06k|			{}
_ZNK4pcpp21HttpResponseFirstLine7getSizeEv:
  733|  16.0k|		{
  734|  16.0k|			return m_FirstLineEndOffset;
  735|  16.0k|		}
_ZN4pcpp21HttpResponseFirstLine30HttpResponseFirstLineExceptionD2Ev:
  755|  11.5k|			{}
_ZN4pcpp22HttpResponseStatusCodeC2Ev:
  411|  11.5k|		HttpResponseStatusCode() = default;

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

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

_ZNK4pcpp9IPv4Layer13getIPv4HeaderEv:
  448|  6.13M|		{
  449|  6.13M|			return reinterpret_cast<iphdr*>(m_Data);
  450|  6.13M|		}
_ZNK4pcpp9IPv4Layer15getSrcIPAddressEv:
  456|  1.63k|		{
  457|  1.63k|			return getSrcIPv4Address();
  458|  1.63k|		}
_ZNK4pcpp9IPv4Layer17getSrcIPv4AddressEv:
  463|   398k|		{
  464|   398k|			return getIPv4Header()->ipSrc;
  465|   398k|		}
_ZNK4pcpp9IPv4Layer15getDstIPAddressEv:
  478|  1.63k|		{
  479|  1.63k|			return getDstIPv4Address();
  480|  1.63k|		}
_ZNK4pcpp9IPv4Layer17getDstIPv4AddressEv:
  485|   398k|		{
  486|   398k|			return getIPv4Header()->ipDst;
  487|   398k|		}
_ZNK4pcpp9IPv4Layer12getHeaderLenEv:
  582|  1.30M|		{
  583|  1.30M|			return static_cast<size_t>(static_cast<uint16_t>(getIPv4Header()->internetHeaderLength) * 4) +
  584|  1.30M|			       m_TempHeaderExtension;
  585|  1.30M|		}
_ZNK4pcpp9IPv4Layer16getOsiModelLayerEv:
  598|   140k|		{
  599|   140k|			return OsiModelNetworkLayer;
  600|   140k|		}
_ZN4pcpp9IPv4Layer11isDataValidEPKhm:
  627|   841k|	{
  628|   841k|		const iphdr* hdr = reinterpret_cast<const iphdr*>(data);
  629|   841k|		return canReinterpretAs<iphdr>(data, dataLen) && hdr->ipVersion == 4 && hdr->internetHeaderLength >= 5;
  ------------------
  |  Branch (629:10): [True: 832k, False: 9.05k]
  |  Branch (629:52): [True: 826k, False: 5.64k]
  |  Branch (629:75): [True: 826k, False: 303]
  ------------------
  630|   841k|	}

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

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

_ZNK4pcpp9IcmpLayer15isMessageOfTypeENS_15IcmpMessageTypeE:
  369|  56.6k|		{
  370|  56.6k|			return getMessageType() == type;
  371|  56.6k|		}
_ZN4pcpp9IcmpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  346|  39.3k|		    : Layer(data, dataLen, prevLayer, packet, ICMP)
  347|  39.3k|		{}
_ZNK4pcpp9IcmpLayer13getIcmpHeaderEv:
  359|   215k|		{
  360|   215k|			return reinterpret_cast<icmphdr*>(m_Data);
  361|   215k|		}
_ZNK4pcpp9IcmpLayer16getOsiModelLayerEv:
  612|  7.03k|		{
  613|  7.03k|			return OsiModelNetworkLayer;
  614|  7.03k|		}
_ZN4pcpp9IcmpLayer11isDataValidEPKhm:
  620|  40.0k|	{
  621|  40.0k|		if (dataLen < sizeof(icmphdr))
  ------------------
  |  Branch (621:7): [True: 220, False: 39.8k]
  ------------------
  622|    220|			return false;
  623|       |
  624|  39.8k|		uint8_t type = data[0];
  625|       |
  626|       |		// ICMP_ECHO_REQUEST, ICMP_ECHO_REPLY, ICMP_ROUTER_SOL, ICMP_INFO_REQUEST, ICMP_INFO_REPLY
  627|  39.8k|		if (type == 8 || type == 0 || type == 10 || type == 15 || type == 16)
  ------------------
  |  Branch (627:7): [True: 190, False: 39.6k]
  |  Branch (627:20): [True: 1.57k, False: 38.0k]
  |  Branch (627:33): [True: 2.17k, False: 35.8k]
  |  Branch (627:47): [True: 3.18k, False: 32.6k]
  |  Branch (627:61): [True: 2.58k, False: 30.0k]
  ------------------
  628|  9.71k|			return true;
  629|       |
  630|       |		// ICMP_TIMESTAMP_REQUEST, ICMP_TIMESTAMP_REPLY
  631|  30.0k|		if (type == 13 || type == 14)
  ------------------
  |  Branch (631:7): [True: 130, False: 29.9k]
  |  Branch (631:21): [True: 5.20k, False: 24.7k]
  ------------------
  632|  5.33k|			return dataLen >= sizeof(icmp_timestamp_request);
  633|       |
  634|       |		// ICMP_ADDRESS_MASK_REPLY, ICMP_ADDRESS_MASK_REQUEST
  635|  24.7k|		if (type == 17 || type == 18)
  ------------------
  |  Branch (635:7): [True: 435, False: 24.3k]
  |  Branch (635:21): [True: 5.54k, False: 18.7k]
  ------------------
  636|  5.98k|			return dataLen >= sizeof(icmp_address_mask_request);
  637|       |
  638|       |		// ICMP_DEST_UNREACHABLE
  639|  18.7k|		if (type == 3)
  ------------------
  |  Branch (639:7): [True: 3.89k, False: 14.8k]
  ------------------
  640|  3.89k|			return dataLen >= sizeof(icmp_destination_unreachable);
  641|       |
  642|       |		// ICMP_REDIRECT
  643|  14.8k|		if (type == 5)
  ------------------
  |  Branch (643:7): [True: 1.52k, False: 13.3k]
  ------------------
  644|  1.52k|			return dataLen >= sizeof(icmp_redirect);
  645|       |
  646|       |		// ICMP_TIME_EXCEEDED, ICMP_SOURCE_QUENCH
  647|  13.3k|		if (type == 4 || type == 11)
  ------------------
  |  Branch (647:7): [True: 2.21k, False: 11.1k]
  |  Branch (647:20): [True: 2.99k, False: 8.16k]
  ------------------
  648|  5.20k|			return dataLen >= sizeof(icmp_time_exceeded);
  649|       |
  650|       |		// ICMP_PARAM_PROBLEM
  651|  8.16k|		if (type == 12)
  ------------------
  |  Branch (651:7): [True: 4.61k, False: 3.55k]
  ------------------
  652|  4.61k|			return dataLen >= sizeof(icmp_param_problem);
  653|       |
  654|       |		// ICMP_ROUTER_ADV
  655|  3.55k|		if (type == 9)
  ------------------
  |  Branch (655:7): [True: 3.39k, False: 157]
  ------------------
  656|  3.39k|			return dataLen >= sizeof(icmp_router_advertisement_hdr);
  657|       |
  658|    157|		return false;
  659|  3.55k|	}

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

_ZN4pcpp11IgmpV1Layer11isDataValidEPKhm:
  244|  2.90k|		{
  245|  2.90k|			return canReinterpretAs<igmp_header>(data, dataLen);
  246|  2.90k|		}
_ZN4pcpp11IgmpV1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  220|  2.90k|		    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv1)
  221|  2.90k|		{}
_ZN4pcpp9IgmpLayerC2EPhmPNS_5LayerEPNS_6PacketEh:
  142|  14.3k|		    : Layer(data, dataLen, prevLayer, packet, igmpVer)
  143|  14.3k|		{}
_ZN4pcpp11IgmpV2Layer11isDataValidEPKhm:
  287|  7.31k|		{
  288|  7.31k|			return canReinterpretAs<igmp_header>(data, dataLen);
  289|  7.31k|		}
_ZN4pcpp11IgmpV2LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  261|  7.31k|		    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv2)
  262|  7.31k|		{}
_ZN4pcpp16IgmpV3QueryLayer11isDataValidEPKhm:
  374|  2.14k|		{
  375|  2.14k|			return canReinterpretAs<igmpv3_query_header>(data, dataLen);
  376|  2.14k|		}
_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|  11.0k|		{
  159|  11.0k|			return reinterpret_cast<igmp_header*>(m_Data);
  160|  11.0k|		}
_ZN4pcpp9IgmpLayer14parseNextLayerEv:
  192|  14.3k|		{}
_ZNK4pcpp9IgmpLayer12getHeaderLenEv:
  196|  4.10k|		{
  197|  4.10k|			return sizeof(igmp_header);
  198|  4.10k|		}
_ZNK4pcpp9IgmpLayer16getOsiModelLayerEv:
  203|  2.99k|		{
  204|  2.99k|			return OsiModelNetworkLayer;
  205|  2.99k|		}
_ZNK4pcpp16IgmpV3QueryLayer20getIgmpV3QueryHeaderEv:
  319|  1.60k|		{
  320|  1.60k|			return reinterpret_cast<igmpv3_query_header*>(m_Data);
  321|  1.60k|		}
_ZNK4pcpp17IgmpV3ReportLayer15getReportHeaderEv:
  405|    407|		{
  406|    407|			return reinterpret_cast<igmpv3_report_header*>(m_Data);
  407|    407|		}
_ZNK4pcpp17IgmpV3ReportLayer12getHeaderLenEv:
  468|    814|		{
  469|    814|			return m_DataLen;
  470|    814|		}

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

_ZNK4pcpp5Layer12getNextLayerEv:
  126|  84.3M|		{
  127|  84.3M|			return m_NextLayer;
  128|  84.3M|		}
_ZNK4pcpp5Layer12getPrevLayerEv:
  132|  1.92M|		{
  133|  1.92M|			return m_PrevLayer;
  134|  1.92M|		}
_ZNK4pcpp5Layer11getProtocolEv:
  138|  60.3M|		{
  139|  60.3M|			return m_Protocol;
  140|  60.3M|		}
_ZNK4pcpp5Layer7getDataEv:
  149|   279k|		{
  150|   279k|			return m_Data;
  151|   279k|		}
_ZNK4pcpp5Layer10getDataLenEv:
  155|  2.95M|		{
  156|  2.95M|			return m_DataLen;
  157|  2.95M|		}
_ZNK4pcpp5Layer19getLayerPayloadSizeEv:
  167|  59.1k|		{
  168|  59.1k|			return m_DataLen - getHeaderLen();
  169|  59.1k|		}
_ZNK4pcpp5Layer19isAllocatedToPacketEv:
  181|  4.45M|		{
  182|  4.45M|			return m_AllocationInfo.attachedPacket != nullptr;
  183|  4.45M|		}
_ZNK4pcpp5Layer10getDataPtrEm:
  192|   104k|		{
  193|   104k|			return static_cast<uint8_t*>(m_Data + offset);
  194|   104k|		}
_ZN4pcpp5LayerC2EPhmPS0_PNS_6PacketEh:
  229|  4.33M|		    : m_Data(data), m_DataLen(dataLen), m_Protocol(protocol), m_NextLayer(nullptr), m_PrevLayer(prevLayer),
  230|  4.33M|		      m_AllocationInfo{ packet, false }
  231|  4.33M|		{}
_ZN4pcpp5Layer17getAttachedPacketEv:
  240|  4.31M|		{
  241|  4.31M|			return m_AllocationInfo.attachedPacket;
  242|  4.31M|		}
_ZNK4pcpp5Layer17getAttachedPacketEv:
  247|  3.07k|		{
  248|  3.07k|			return m_AllocationInfo.attachedPacket;
  249|  3.07k|		}
_ZN4pcpp5Layer12setNextLayerEPS0_:
  252|  3.48M|		{
  253|  3.48M|			m_NextLayer = nextLayer;
  254|  3.48M|		}
_ZNK4pcpp5Layer12hasNextLayerEv:
  264|  6.10M|		{
  265|  6.10M|			return m_NextLayer != nullptr;
  266|  6.10M|		}
_ZN4pcpp5Layer16canReinterpretAsINS_6arphdrEEEbPKhm:
  524|  2.73k|		{
  525|  2.73k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 2.73k, False: 0]
  |  Branch (525:30): [True: 2.71k, False: 15]
  ------------------
  526|  2.73k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_5iphdrEEEbPKhm:
  524|   841k|		{
  525|   841k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 841k, False: 0]
  |  Branch (525:30): [True: 832k, False: 9.05k]
  ------------------
  526|   841k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11dhcp_headerEEEbPKhm:
  524|  14.9k|		{
  525|  14.9k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 14.9k, False: 0]
  |  Branch (525:30): [True: 14.8k, False: 174]
  ------------------
  526|  14.9k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vrrp_headerEEEbPKhm:
  524|  6.87k|		{
  525|  6.87k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 6.87k, False: 0]
  |  Branch (525:30): [True: 6.87k, False: 0]
  ------------------
  526|  6.87k|		}
_ZN4pcpp14IDataContainerD2Ev:
   29|  4.45M|		virtual ~IDataContainer() = default;
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  324|   134k|		{
  325|   134k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|   134k|			                                               std::forward<Args>(extraArgs)...);
  327|   134k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|   180k|		{
  349|   180k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 180k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|   180k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|   180k|			setNextLayer(newLayer);
  357|   180k|			return newLayer;
  358|   180k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|   839k|		{
  420|   839k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|   839k|			                                                       std::forward<Args>(extraArgs)...);
  422|   839k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|   841k|		{
  442|   841k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 826k, False: 14.8k]
  ------------------
  443|   826k|			{
  444|   826k|				return m_NextLayer;
  445|   826k|			}
  446|       |
  447|  14.8k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|   841k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|   841k|		{
  394|   841k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 826k, False: 14.8k]
  ------------------
  395|   826k|			{
  396|   826k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|   826k|			}
  398|  14.8k|			return nullptr;
  399|   841k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   826k|		{
  295|   826k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 826k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   826k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   826k|			setNextLayer(newLayer);
  302|   826k|			return newLayer;
  303|   826k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   249k|		{
  295|   249k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 249k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   249k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   249k|			setNextLayer(newLayer);
  302|   249k|			return newLayer;
  303|   249k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|   149k|		{
  420|   149k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|   149k|			                                                       std::forward<Args>(extraArgs)...);
  422|   149k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|   149k|		{
  442|   149k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 145k, False: 3.95k]
  ------------------
  443|   145k|			{
  444|   145k|				return m_NextLayer;
  445|   145k|			}
  446|       |
  447|  3.95k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|   149k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|   149k|		{
  394|   149k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 145k, False: 3.95k]
  ------------------
  395|   145k|			{
  396|   145k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|   145k|			}
  398|  3.95k|			return nullptr;
  399|   149k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7ip6_hdrEEEbPKhm:
  524|   149k|		{
  525|   149k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 149k, False: 0]
  |  Branch (525:30): [True: 147k, False: 2.00k]
  ------------------
  526|   149k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   145k|		{
  295|   145k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 145k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   145k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   145k|			setNextLayer(newLayer);
  302|   145k|			return newLayer;
  303|   145k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9VlanLayerEJEEEPS0_PhmDpOT0_:
  280|  48.4k|		{
  281|  48.4k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  48.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   180k|		{
  295|   180k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 180k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   180k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   180k|			setNextLayer(newLayer);
  302|   180k|			return newLayer;
  303|   180k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9MplsLayerEJEEEPS0_PhmDpOT0_:
  280|  4.46k|		{
  281|  4.46k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  4.46k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9MplsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  4.46k|		{
  295|  4.46k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 4.46k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  4.46k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  4.46k|			setNextLayer(newLayer);
  302|  4.46k|			return newLayer;
  303|  4.46k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_13PPP_PPTPLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  59.7k|		{
  420|  59.7k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  59.7k|			                                                       std::forward<Args>(extraArgs)...);
  422|  59.7k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_13PPP_PPTPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  59.7k|		{
  442|  59.7k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 59.7k, False: 0]
  ------------------
  443|  59.7k|			{
  444|  59.7k|				return m_NextLayer;
  445|  59.7k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  59.7k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  59.7k|		{
  394|  59.7k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 59.7k, False: 0]
  ------------------
  395|  59.7k|			{
  396|  59.7k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  59.7k|			}
  398|      0|			return nullptr;
  399|  59.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  59.7k|		{
  295|  59.7k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 59.7k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  59.7k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  59.7k|			setNextLayer(newLayer);
  302|  59.7k|			return newLayer;
  303|  59.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmDpOT0_:
  280|  87.2k|		{
  281|  87.2k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  87.2k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vlan_headerEEEbPKhm:
  524|   132k|		{
  525|   132k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 132k, False: 0]
  |  Branch (525:30): [True: 132k, False: 129]
  ------------------
  526|   132k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|   317k|		{
  442|   317k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 314k, False: 2.46k]
  ------------------
  443|   314k|			{
  444|   314k|				return m_NextLayer;
  445|   314k|			}
  446|       |
  447|  2.46k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|   317k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|   317k|		{
  394|   317k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 314k, False: 2.46k]
  ------------------
  395|   314k|			{
  396|   314k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|   314k|			}
  398|  2.46k|			return nullptr;
  399|   317k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   314k|		{
  295|   314k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 314k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   314k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   314k|			setNextLayer(newLayer);
  302|   314k|			return newLayer;
  303|   314k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|   484k|		{
  442|   484k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 472k, False: 11.4k]
  ------------------
  443|   472k|			{
  444|   472k|				return m_NextLayer;
  445|   472k|			}
  446|       |
  447|  11.4k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|   484k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|   484k|		{
  394|   484k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 472k, False: 11.4k]
  ------------------
  395|   472k|			{
  396|   472k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|   472k|			}
  398|  11.4k|			return nullptr;
  399|   484k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   472k|		{
  295|   472k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 472k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   472k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   472k|			setNextLayer(newLayer);
  302|   472k|			return newLayer;
  303|   472k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IcmpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  40.0k|		{
  442|  40.0k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 39.3k, False: 635]
  ------------------
  443|  39.3k|			{
  444|  39.3k|				return m_NextLayer;
  445|  39.3k|			}
  446|       |
  447|    635|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  40.0k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  40.0k|		{
  394|  40.0k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 39.3k, False: 635]
  ------------------
  395|  39.3k|			{
  396|  39.3k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  39.3k|			}
  398|    635|			return nullptr;
  399|  40.0k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  39.3k|		{
  295|  39.3k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 39.3k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  39.3k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  39.3k|			setNextLayer(newLayer);
  302|  39.3k|			return newLayer;
  303|  39.3k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  9.75k|		{
  442|  9.75k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 9.75k, False: 0]
  ------------------
  443|  9.75k|			{
  444|  9.75k|				return m_NextLayer;
  445|  9.75k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  9.75k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  9.75k|		{
  394|  9.75k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 9.75k, False: 0]
  ------------------
  395|  9.75k|			{
  396|  9.75k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  9.75k|			}
  398|      0|			return nullptr;
  399|  9.75k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  9.75k|		{
  295|  9.75k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 9.75k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  9.75k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  9.75k|			setNextLayer(newLayer);
  302|  9.75k|			return newLayer;
  303|  9.75k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv1LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  66.9k|		{
  442|  66.9k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 66.9k, False: 0]
  ------------------
  443|  66.9k|			{
  444|  66.9k|				return m_NextLayer;
  445|  66.9k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  66.9k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  66.9k|		{
  394|  66.9k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 66.9k, False: 0]
  ------------------
  395|  66.9k|			{
  396|  66.9k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  66.9k|			}
  398|      0|			return nullptr;
  399|  66.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  66.9k|		{
  295|  66.9k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 66.9k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  66.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  66.9k|			setNextLayer(newLayer);
  302|  66.9k|			return newLayer;
  303|  66.9k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11IgmpV1LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  2.90k|		{
  442|  2.90k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 2.90k, False: 0]
  ------------------
  443|  2.90k|			{
  444|  2.90k|				return m_NextLayer;
  445|  2.90k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  2.90k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11IgmpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  2.90k|		{
  394|  2.90k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 2.90k, False: 0]
  ------------------
  395|  2.90k|			{
  396|  2.90k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  2.90k|			}
  398|      0|			return nullptr;
  399|  2.90k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11igmp_headerEEEbPKhm:
  524|  10.2k|		{
  525|  10.2k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 10.2k, False: 0]
  |  Branch (525:30): [True: 10.2k, False: 0]
  ------------------
  526|  10.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11IgmpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  2.90k|		{
  295|  2.90k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 2.90k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  2.90k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  2.90k|			setNextLayer(newLayer);
  302|  2.90k|			return newLayer;
  303|  2.90k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11IgmpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  7.31k|		{
  442|  7.31k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 7.31k, False: 0]
  ------------------
  443|  7.31k|			{
  444|  7.31k|				return m_NextLayer;
  445|  7.31k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  7.31k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  7.31k|		{
  394|  7.31k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 7.31k, False: 0]
  ------------------
  395|  7.31k|			{
  396|  7.31k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  7.31k|			}
  398|      0|			return nullptr;
  399|  7.31k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  7.31k|		{
  295|  7.31k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 7.31k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  7.31k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  7.31k|			setNextLayer(newLayer);
  302|  7.31k|			return newLayer;
  303|  7.31k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_16IgmpV3QueryLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  2.14k|		{
  442|  2.14k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 2.14k, False: 0]
  ------------------
  443|  2.14k|			{
  444|  2.14k|				return m_NextLayer;
  445|  2.14k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  2.14k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_16IgmpV3QueryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  2.14k|		{
  394|  2.14k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 2.14k, False: 0]
  ------------------
  395|  2.14k|			{
  396|  2.14k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  2.14k|			}
  398|      0|			return nullptr;
  399|  2.14k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_19igmpv3_query_headerEEEbPKhm:
  524|  2.14k|		{
  525|  2.14k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 2.14k, False: 0]
  |  Branch (525:30): [True: 2.14k, False: 0]
  ------------------
  526|  2.14k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16IgmpV3QueryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  2.14k|		{
  295|  2.14k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 2.14k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  2.14k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  2.14k|			setNextLayer(newLayer);
  302|  2.14k|			return newLayer;
  303|  2.14k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17IgmpV3ReportLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  2.02k|		{
  442|  2.02k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 2.02k, False: 0]
  ------------------
  443|  2.02k|			{
  444|  2.02k|				return m_NextLayer;
  445|  2.02k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  2.02k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  2.02k|		{
  394|  2.02k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 2.02k, False: 0]
  ------------------
  395|  2.02k|			{
  396|  2.02k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  2.02k|			}
  398|      0|			return nullptr;
  399|  2.02k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20igmpv3_report_headerEEEbPKhm:
  524|  2.02k|		{
  525|  2.02k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 2.02k, False: 0]
  |  Branch (525:30): [True: 2.02k, False: 0]
  ------------------
  526|  2.02k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  2.02k|		{
  295|  2.02k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 2.02k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  2.02k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  2.02k|			setNextLayer(newLayer);
  302|  2.02k|			return newLayer;
  303|  2.02k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_25AuthenticationHeaderLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  4.75k|		{
  442|  4.75k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 4.61k, False: 138]
  ------------------
  443|  4.61k|			{
  444|  4.61k|				return m_NextLayer;
  445|  4.61k|			}
  446|       |
  447|    138|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  4.75k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  4.75k|		{
  394|  4.75k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 4.61k, False: 138]
  ------------------
  395|  4.61k|			{
  396|  4.61k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  4.61k|			}
  398|    138|			return nullptr;
  399|  4.75k|		}
_ZN4pcpp5Layer18constructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  4.61k|		{
  295|  4.61k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 4.61k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  4.61k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  4.61k|			setNextLayer(newLayer);
  302|  4.61k|			return newLayer;
  303|  4.61k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  5.60k|		{
  442|  5.60k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 5.60k, False: 0]
  ------------------
  443|  5.60k|			{
  444|  5.60k|				return m_NextLayer;
  445|  5.60k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  5.60k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  5.60k|		{
  394|  5.60k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 5.60k, False: 0]
  ------------------
  395|  5.60k|			{
  396|  5.60k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  5.60k|			}
  398|      0|			return nullptr;
  399|  5.60k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  5.60k|		{
  295|  5.60k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 5.60k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  5.60k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  5.60k|			setNextLayer(newLayer);
  302|  5.60k|			return newLayer;
  303|  5.60k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  3.33k|		{
  442|  3.33k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 3.33k, False: 0]
  ------------------
  443|  3.33k|			{
  444|  3.33k|				return m_NextLayer;
  445|  3.33k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  3.33k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  3.33k|		{
  394|  3.33k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 3.33k, False: 0]
  ------------------
  395|  3.33k|			{
  396|  3.33k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  3.33k|			}
  398|      0|			return nullptr;
  399|  3.33k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  3.33k|		{
  295|  3.33k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 3.33k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  3.33k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  3.33k|			setNextLayer(newLayer);
  302|  3.33k|			return newLayer;
  303|  3.33k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV3LayerENS_12PayloadLayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  3.54k|		{
  442|  3.54k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 3.54k, False: 0]
  ------------------
  443|  3.54k|			{
  444|  3.54k|				return m_NextLayer;
  445|  3.54k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  3.54k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  3.54k|		{
  394|  3.54k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 3.54k, False: 0]
  ------------------
  395|  3.54k|			{
  396|  3.54k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  3.54k|			}
  398|      0|			return nullptr;
  399|  3.54k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  7.31k|		{
  295|  7.31k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 7.31k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  7.31k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  7.31k|			setNextLayer(newLayer);
  302|  7.31k|			return newLayer;
  303|  7.31k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  33.5k|		{
  420|  33.5k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  33.5k|			                                                       std::forward<Args>(extraArgs)...);
  422|  33.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  86.4k|		{
  420|  86.4k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  86.4k|			                                                       std::forward<Args>(extraArgs)...);
  422|  86.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  6.68k|		{
  420|  6.68k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  6.68k|			                                                       std::forward<Args>(extraArgs)...);
  422|  6.68k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv1LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  5.64k|		{
  420|  5.64k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  5.64k|			                                                       std::forward<Args>(extraArgs)...);
  422|  5.64k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  3.38k|		{
  420|  3.38k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  3.38k|			                                                       std::forward<Args>(extraArgs)...);
  422|  3.38k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mDpOT0_:
  324|  50.1k|		{
  325|  50.1k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|  50.1k|			                                               std::forward<Args>(extraArgs)...);
  327|  50.1k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mS5_DpOT0_:
  348|  50.1k|		{
  349|  50.1k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 50.1k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  50.1k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  50.1k|			setNextLayer(newLayer);
  357|  50.1k|			return newLayer;
  358|  50.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmDpOT0_:
  280|  3.77k|		{
  281|  3.77k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  3.77k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ArpLayerEJEEEPS0_PhmDpOT0_:
  280|  1.69k|		{
  281|  1.69k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  1.69k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  4.41k|		{
  295|  4.41k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 4.41k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  4.41k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  4.41k|			setNextLayer(newLayer);
  302|  4.41k|			return newLayer;
  303|  4.41k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  37.4k|		{
  420|  37.4k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  37.4k|			                                                       std::forward<Args>(extraArgs)...);
  422|  37.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  37.4k|		{
  442|  37.4k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 37.4k, False: 0]
  ------------------
  443|  37.4k|			{
  444|  37.4k|				return m_NextLayer;
  445|  37.4k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  37.4k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  37.4k|		{
  394|  37.4k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 37.4k, False: 0]
  ------------------
  395|  37.4k|			{
  396|  37.4k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  37.4k|			}
  398|      0|			return nullptr;
  399|  37.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  37.4k|		{
  295|  37.4k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 37.4k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  37.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  37.4k|			setNextLayer(newLayer);
  302|  37.4k|			return newLayer;
  303|  37.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|    605|		{
  420|    605|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|    605|			                                                       std::forward<Args>(extraArgs)...);
  422|    605|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|    605|		{
  442|    605|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 605, False: 0]
  ------------------
  443|    605|			{
  444|    605|				return m_NextLayer;
  445|    605|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|    605|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|    605|		{
  394|    605|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 605, False: 0]
  ------------------
  395|    605|			{
  396|    605|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|    605|			}
  398|      0|			return nullptr;
  399|    605|		}
_ZN4pcpp5Layer18constructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|    605|		{
  295|    605|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 605]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|    605|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|    605|			setNextLayer(newLayer);
  302|    605|			return newLayer;
  303|    605|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  3.99k|		{
  420|  3.99k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  3.99k|			                                                       std::forward<Args>(extraArgs)...);
  422|  3.99k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  3.99k|		{
  442|  3.99k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 3.73k, False: 257]
  ------------------
  443|  3.73k|			{
  444|  3.73k|				return m_NextLayer;
  445|  3.73k|			}
  446|       |
  447|    257|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  3.99k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  3.99k|		{
  394|  3.99k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 3.73k, False: 257]
  ------------------
  395|  3.73k|			{
  396|  3.73k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  3.73k|			}
  398|    257|			return nullptr;
  399|  3.99k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  3.73k|		{
  295|  3.73k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 3.73k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  3.73k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  3.73k|			setNextLayer(newLayer);
  302|  3.73k|			return newLayer;
  303|  3.73k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20ssl_tls_record_layerEEEbPKhm:
  524|   196k|		{
  525|   196k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 196k, False: 0]
  |  Branch (525:30): [True: 196k, False: 0]
  ------------------
  526|   196k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  324|   196k|		{
  325|   196k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|   196k|			                                               std::forward<Args>(extraArgs)...);
  327|   196k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|   196k|		{
  349|   196k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 196k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|   196k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|   196k|			setNextLayer(newLayer);
  357|   196k|			return newLayer;
  358|   196k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7tpkthdrEEEbPKhm:
  524|   122k|		{
  525|   122k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 122k, False: 0]
  |  Branch (525:30): [True: 119k, False: 3.34k]
  ------------------
  526|   122k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16HttpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  5.06k|		{
  295|  5.06k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 5.06k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  5.06k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  5.06k|			setNextLayer(newLayer);
  302|  5.06k|			return newLayer;
  303|  5.06k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17HttpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  11.5k|		{
  295|  11.5k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 11.5k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  11.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  11.5k|			setNextLayer(newLayer);
  302|  11.5k|			return newLayer;
  303|  11.5k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|  46.3k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  46.3k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  46.3k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  46.3k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|  46.3k|		{
  504|  46.3k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  46.3k|			                                                         std::forward<Args>(extraArgs)...);
  506|  46.3k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 43.8k, False: 2.56k]
  ------------------
  507|  43.8k|			{
  508|  43.8k|				return nextLayer;
  509|  43.8k|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|  2.56k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  46.3k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  324|  16.1k|		{
  325|  16.1k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|  16.1k|			                                               std::forward<Args>(extraArgs)...);
  327|  16.1k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  16.1k|		{
  349|  16.1k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 16.1k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  16.1k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  16.1k|			setNextLayer(newLayer);
  357|  16.1k|			return newLayer;
  358|  16.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_15DnsOverTcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  18.1k|		{
  295|  18.1k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 18.1k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  18.1k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  18.1k|			setNextLayer(newLayer);
  302|  18.1k|			return newLayer;
  303|  18.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11TelnetLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  46.7k|		{
  295|  46.7k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 46.7k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  46.7k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  46.7k|			setNextLayer(newLayer);
  302|  46.7k|			return newLayer;
  303|  46.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16FtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  9.02k|		{
  295|  9.02k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 9.02k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  9.02k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  9.02k|			setNextLayer(newLayer);
  302|  9.02k|			return newLayer;
  303|  9.02k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12FtpDataLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  2.62k|		{
  295|  2.62k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 2.62k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  2.62k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  2.62k|			setNextLayer(newLayer);
  302|  2.62k|			return newLayer;
  303|  2.62k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9DoIpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|  57.6k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  57.6k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  57.6k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  57.6k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9DoIpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|  57.6k|		{
  504|  57.6k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  57.6k|			                                                         std::forward<Args>(extraArgs)...);
  506|  57.6k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 57.4k, False: 264]
  ------------------
  507|  57.4k|			{
  508|  57.4k|				return nextLayer;
  509|  57.4k|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|    264|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  57.6k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9DoIpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  57.6k|		{
  349|  57.6k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 57.6k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  57.6k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  57.6k|			setNextLayer(newLayer);
  357|  57.6k|			return newLayer;
  358|  57.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9TpktLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  23.5k|		{
  295|  23.5k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 23.5k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  23.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  23.5k|			setNextLayer(newLayer);
  302|  23.5k|			return newLayer;
  303|  23.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17SmtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|     85|		{
  295|     85|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 85]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|     85|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|     85|			setNextLayer(newLayer);
  302|     85|			return newLayer;
  303|     85|		}
_ZN4pcpp5Layer18constructNextLayerINS_16SmtpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|     70|		{
  295|     70|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 70]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|     70|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|     70|			setNextLayer(newLayer);
  302|     70|			return newLayer;
  303|     70|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|  36.6k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  36.6k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  36.6k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  36.6k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|  36.6k|		{
  504|  36.6k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  36.6k|			                                                         std::forward<Args>(extraArgs)...);
  506|  36.6k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 32.3k, False: 4.28k]
  ------------------
  507|  32.3k|			{
  508|  32.3k|				return nextLayer;
  509|  32.3k|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|  4.28k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  36.6k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  59.7k|		{
  349|  59.7k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 59.7k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  59.7k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  59.7k|			setNextLayer(newLayer);
  357|  59.7k|			return newLayer;
  358|  59.7k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|     20|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|     20|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|     20|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|     20|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|     20|		{
  504|     20|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|     20|			                                                         std::forward<Args>(extraArgs)...);
  506|     20|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 20, False: 0]
  ------------------
  507|     20|			{
  508|     20|				return nextLayer;
  509|     20|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|     20|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|     20|		{
  349|     20|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 20]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|     20|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|     20|			setNextLayer(newLayer);
  357|     20|			return newLayer;
  358|     20|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|    755|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|    755|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|    755|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|    755|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|    755|		{
  504|    755|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|    755|			                                                         std::forward<Args>(extraArgs)...);
  506|    755|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 755, False: 0]
  ------------------
  507|    755|			{
  508|    755|				return nextLayer;
  509|    755|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|    755|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|    755|		{
  349|    755|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 755]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|    755|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|    755|			setNextLayer(newLayer);
  357|    755|			return newLayer;
  358|    755|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  23.5k|		{
  420|  23.5k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  23.5k|			                                                       std::forward<Args>(extraArgs)...);
  422|  23.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  23.5k|		{
  442|  23.5k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 21.5k, False: 1.99k]
  ------------------
  443|  21.5k|			{
  444|  21.5k|				return m_NextLayer;
  445|  21.5k|			}
  446|       |
  447|  1.99k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  23.5k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  23.5k|		{
  394|  23.5k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 21.5k, False: 1.99k]
  ------------------
  395|  21.5k|			{
  396|  21.5k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  21.5k|			}
  398|  1.99k|			return nullptr;
  399|  23.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  21.5k|		{
  295|  21.5k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 21.5k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  21.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  21.5k|			setNextLayer(newLayer);
  302|  21.5k|			return newLayer;
  303|  21.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  14.9k|		{
  420|  14.9k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  14.9k|			                                                       std::forward<Args>(extraArgs)...);
  422|  14.9k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  14.9k|		{
  442|  14.9k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 14.8k, False: 174]
  ------------------
  443|  14.8k|			{
  444|  14.8k|				return m_NextLayer;
  445|  14.8k|			}
  446|       |
  447|    174|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  14.9k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  14.9k|		{
  394|  14.9k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 14.8k, False: 174]
  ------------------
  395|  14.8k|			{
  396|  14.8k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  14.8k|			}
  398|    174|			return nullptr;
  399|  14.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  14.8k|		{
  295|  14.8k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 14.8k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  14.8k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  14.8k|			setNextLayer(newLayer);
  302|  14.8k|			return newLayer;
  303|  14.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmDpOT0_:
  280|  52.6k|		{
  281|  52.6k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  52.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  52.6k|		{
  295|  52.6k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 52.6k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  52.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  52.6k|			setNextLayer(newLayer);
  302|  52.6k|			return newLayer;
  303|  52.6k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mDpOT1_:
  474|  62.0k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  62.0k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  62.0k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  62.0k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mS8_DpOT1_:
  503|  62.0k|		{
  504|  62.0k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  62.0k|			                                                         std::forward<Args>(extraArgs)...);
  506|  62.0k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 59.0k, False: 3.00k]
  ------------------
  507|  59.0k|			{
  508|  59.0k|				return nextLayer;
  509|  59.0k|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|  3.00k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  62.0k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSA_EEES5_T_S4_mS7_DpOT0_:
  348|  62.0k|		{
  349|  62.0k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 62.0k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  62.0k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  62.0k|			setNextLayer(newLayer);
  357|  62.0k|			return newLayer;
  358|  62.0k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmDpOT0_:
  280|  9.98k|		{
  281|  9.98k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  9.98k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  9.98k|		{
  295|  9.98k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 9.98k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  9.98k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  9.98k|			setNextLayer(newLayer);
  302|  9.98k|			return newLayer;
  303|  9.98k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmDpOT0_:
  280|  28.5k|		{
  281|  28.5k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  28.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  28.5k|		{
  295|  28.5k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 28.5k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  28.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  28.5k|			setNextLayer(newLayer);
  302|  28.5k|			return newLayer;
  303|  28.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmDpOT0_:
  280|  18.6k|		{
  281|  18.6k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  18.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  18.6k|		{
  295|  18.6k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 18.6k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  18.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  18.6k|			setNextLayer(newLayer);
  302|  18.6k|			return newLayer;
  303|  18.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmDpOT0_:
  280|  13.6k|		{
  281|  13.6k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  13.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  13.6k|		{
  295|  13.6k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 13.6k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  13.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  13.6k|			setNextLayer(newLayer);
  302|  13.6k|			return newLayer;
  303|  13.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmDpOT0_:
  280|    445|		{
  281|    445|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|    445|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|    445|		{
  295|    445|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 445]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|    445|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|    445|			setNextLayer(newLayer);
  302|    445|			return newLayer;
  303|    445|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|  1.62k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  1.62k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  1.62k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  1.62k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|  1.62k|		{
  504|  1.62k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  1.62k|			                                                         std::forward<Args>(extraArgs)...);
  506|  1.62k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 1.62k, False: 0]
  ------------------
  507|  1.62k|			{
  508|  1.62k|				return nextLayer;
  509|  1.62k|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  1.62k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  1.62k|		{
  349|  1.62k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 1.62k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  1.62k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  1.62k|			setNextLayer(newLayer);
  357|  1.62k|			return newLayer;
  358|  1.62k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|  36.7k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  36.7k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  36.7k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  36.7k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|  36.7k|		{
  504|  36.7k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  36.7k|			                                                         std::forward<Args>(extraArgs)...);
  506|  36.7k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 167, False: 36.5k]
  ------------------
  507|    167|			{
  508|    167|				return nextLayer;
  509|    167|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|  36.5k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  36.7k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  36.7k|		{
  349|  36.7k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 36.7k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  36.7k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  36.7k|			setNextLayer(newLayer);
  357|  36.7k|			return newLayer;
  358|  36.7k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  16.1k|		{
  420|  16.1k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  16.1k|			                                                       std::forward<Args>(extraArgs)...);
  422|  16.1k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  16.1k|		{
  442|  16.1k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 15.5k, False: 664]
  ------------------
  443|  15.5k|			{
  444|  15.5k|				return m_NextLayer;
  445|  15.5k|			}
  446|       |
  447|    664|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  16.1k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  16.1k|		{
  394|  16.1k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 15.5k, False: 664]
  ------------------
  395|  15.5k|			{
  396|  15.5k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  15.5k|			}
  398|    664|			return nullptr;
  399|  16.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  15.5k|		{
  295|  15.5k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 15.5k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  15.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  15.5k|			setNextLayer(newLayer);
  302|  15.5k|			return newLayer;
  303|  15.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  2.73k|		{
  420|  2.73k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  2.73k|			                                                       std::forward<Args>(extraArgs)...);
  422|  2.73k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  2.73k|		{
  442|  2.73k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 2.71k, False: 15]
  ------------------
  443|  2.71k|			{
  444|  2.71k|				return m_NextLayer;
  445|  2.71k|			}
  446|       |
  447|     15|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  2.73k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  2.73k|		{
  394|  2.73k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 2.71k, False: 15]
  ------------------
  395|  2.71k|			{
  396|  2.71k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  2.71k|			}
  398|     15|			return nullptr;
  399|  2.73k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|   132k|		{
  420|   132k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|   132k|			                                                       std::forward<Args>(extraArgs)...);
  422|   132k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|   132k|		{
  442|   132k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 132k, False: 129]
  ------------------
  443|   132k|			{
  444|   132k|				return m_NextLayer;
  445|   132k|			}
  446|       |
  447|    129|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|   132k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|   132k|		{
  394|   132k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 132k, False: 129]
  ------------------
  395|   132k|			{
  396|   132k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|   132k|			}
  398|    129|			return nullptr;
  399|   132k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  324|  23.1k|		{
  325|  23.1k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|  23.1k|			                                               std::forward<Args>(extraArgs)...);
  327|  23.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmDpOT0_:
  280|  37.6k|		{
  281|  37.6k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  37.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  37.6k|		{
  295|  37.6k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 37.6k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  37.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  37.6k|			setNextLayer(newLayer);
  302|  37.6k|			return newLayer;
  303|  37.6k|		}

_ZN4pcpp9LdapLayer10isLdapPortEt:
  347|   182k|		{
  348|   182k|			return port == 389;
  349|   182k|		}
_ZN4pcpp17LdapOperationTypeC2ENS0_5ValueE:
   74|  3.07k|		constexpr LdapOperationType(Value value) : m_Value(value)
   75|  3.07k|		{}
_ZNK4pcpp17LdapOperationTypecvNS0_5ValueEEv:
   88|  54.2k|		{
   89|  54.2k|			return m_Value;
   90|  54.2k|		}
_ZNK4pcpp9LdapLayer12getHeaderLenEv:
  366|  62.2k|		{
  367|  62.2k|			return m_Asn1Record->getTotalLength();
  368|  62.2k|		}
_ZN4pcpp9LdapLayer22computeCalculateFieldsEv:
  371|  8.62k|		{}
_ZNK4pcpp9LdapLayer16getOsiModelLayerEv:
  374|  8.62k|		{
  375|  8.62k|			return OsiModelApplicationLayer;
  376|  8.62k|		}
_ZNK4pcpp9LdapLayer21getExtendedInfoStringEv:
  389|  9.70k|		{
  390|  9.70k|			return "";
  391|  9.70k|		}
_ZN4pcpp17LdapResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  447|  14.1k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  448|  14.1k|		{}
_ZN4pcpp20LdapBindRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  555|  3.76k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  556|  3.76k|		{}
_ZN4pcpp21LdapBindResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  602|  2.17k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  603|  2.17k|		{}
_ZNK4pcpp22LdapUnbindRequestLayer20getLdapOperationTypeEv:
  622|  2.16k|		{
  623|  2.16k|			return LdapOperationType::UnbindRequest;
  624|  2.16k|		}
_ZN4pcpp22LdapUnbindRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  636|  5.45k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  637|  5.45k|		{}
_ZN4pcpp22LdapSearchRequestLayer18SearchRequestScopeC2ENS1_5ValueE:
  674|  1.30k|			constexpr SearchRequestScope(Value value) : m_Value(value)
  675|  1.30k|			{}
_ZN4pcpp22LdapSearchRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  820|  3.26k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  821|  3.26k|		{}
_ZN4pcpp26LdapSearchResultEntryLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  862|  1.25k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  863|  1.25k|		{}
_ZN4pcpp25LdapSearchResultDoneLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  895|  7.11k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  896|  7.11k|		{}
_ZN4pcpp23LdapModifyResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  928|  1.12k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  929|  1.12k|		{}
_ZN4pcpp20LdapAddResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  961|     20|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  962|     20|		{}
_ZN4pcpp23LdapDeleteResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  994|    110|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  995|    110|		{}
_ZN4pcpp25LdapModifyDNResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
 1027|  2.31k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
 1028|  2.31k|		{}
_ZN4pcpp24LdapCompareResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
 1060|  1.32k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
 1061|  1.32k|		{}
_ZN4pcpp9LdapLayerD2Ev:
  299|  53.6k|		~LdapLayer() override = default;

_ZN4pcpp11ModbusLayer12isModbusPortEt:
  100|  61.8k|		{
  101|  61.8k|			return port == 502;
  102|  61.8k|		}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

_ZN4pcpp8SSHLayer9isSSHPortEtt:
   93|   227k|		{
   94|   227k|			return portSrc == 22 || portDst == 22;
  ------------------
  |  Branch (94:11): [True: 6.22k, False: 220k]
  |  Branch (94:28): [True: 7.85k, False: 213k]
  ------------------
   95|   227k|		}
_ZN4pcpp8SSHLayer22computeCalculateFieldsEv:
  105|  3.01k|		{}
_ZNK4pcpp8SSHLayer16getOsiModelLayerEv:
  108|  3.01k|		{
  109|  3.01k|			return OsiModelApplicationLayer;
  110|  3.01k|		}
_ZN4pcpp8SSHLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  115|  16.1k|		    : Layer(data, dataLen, prevLayer, packet, SSH)
  116|  16.1k|		{}
_ZNK4pcpp24SSHIdentificationMessage12getHeaderLenEv:
  149|  2.38k|		{
  150|  2.38k|			return m_DataLen;
  151|  2.38k|		}
_ZN4pcpp24SSHIdentificationMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  161|  1.98k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  162|  1.98k|		{}
_ZN4pcpp19SSHHandshakeMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  261|  7.74k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  262|  7.74k|		{}
_ZNK4pcpp19SSHHandshakeMessage16getMsgBaseHeaderEv:
  265|  11.9k|		{
  266|  11.9k|			return reinterpret_cast<ssh_message_base*>(m_Data);
  267|  11.9k|		}
_ZN4pcpp19SSHEncryptedMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  395|  6.42k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  396|  6.42k|		{}
_ZNK4pcpp19SSHEncryptedMessage12getHeaderLenEv:
  402|  7.62k|		{
  403|  7.62k|			return m_DataLen;
  404|  7.62k|		}

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

_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  946|  5.57k|	{
  947|  5.57k|		size_t vecSize = m_ExtensionList.size();
  948|  11.8k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 9.01k, False: 2.78k]
  ------------------
  949|  9.01k|		{
  950|  9.01k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  9.01k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 2.78k, False: 6.23k]
  ------------------
  952|  2.78k|				return static_cast<TExtension*>(curElem);
  953|  9.01k|		}
  954|       |
  955|  2.78k|		return nullptr;
  956|  5.57k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  946|  5.57k|	{
  947|  5.57k|		size_t vecSize = m_ExtensionList.size();
  948|  49.1k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 44.3k, False: 4.78k]
  ------------------
  949|  44.3k|		{
  950|  44.3k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  44.3k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 781, False: 43.5k]
  ------------------
  952|    781|				return static_cast<TExtension*>(curElem);
  953|  44.3k|		}
  954|       |
  955|  4.78k|		return nullptr;
  956|  5.57k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  959|  4.11k|	{
  960|  4.11k|		size_t vecSize = m_ExtensionList.size();
  961|  7.57k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 4.00k, False: 3.56k]
  ------------------
  962|  4.00k|		{
  963|  4.00k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  4.00k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 549, False: 3.46k]
  ------------------
  965|    549|				return static_cast<TExtension*>(curElem);
  966|  4.00k|		}
  967|       |
  968|  3.56k|		return nullptr;
  969|  4.11k|	}
_ZN4pcpp14SSLCipherSuiteC2EtNS_23SSLKeyExchangeAlgorithmENS_26SSLAuthenticationAlgorithmENS_30SSLSymetricEncryptionAlgorithmENS_19SSLHashingAlgorithmEPKc:
   36|    658|		    : m_Id(id), m_KeyExAlg(keyExAlg), m_AuthAlg(authAlg), m_SymKeyAlg(symKeyAlg), m_MACAlg(MACAlg), m_Name(name)
   37|    658|		{}
_ZNK4pcpp12SSLExtension18getExtensionStructEv:
  187|   685k|		{
  188|   685k|			return reinterpret_cast<SSLExtensionStruct*>(m_RawData);
  189|   685k|		}
_ZN4pcpp18SSLx509CertificateC2EPhmb:
  255|  21.6k|		    : m_Data(data), m_DataLen(dataLen), m_AllDataExists(allDataExists)
  256|  21.6k|		{}
_ZNK4pcpp21SSLClientHelloMessage20getClientHelloHeaderEv:
  402|  11.1k|		{
  403|  11.1k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  404|  11.1k|		}
_ZNK4pcpp21SSLServerHelloMessage20getServerHelloHeaderEv:
  538|  7.78k|		{
  539|  7.78k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  540|  7.78k|		}
_ZN4pcpp22SSLHelloRequestMessageC2EPhmPNS_17SSLHandshakeLayerE:
  676|  26.3k|		    : SSLHandshakeMessage(data, dataLen, container)
  677|  26.3k|		{}
_ZN4pcpp27SSLServerKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  699|  3.71k|		    : SSLHandshakeMessage(data, dataLen, container)
  700|  3.71k|		{}
_ZN4pcpp27SSLClientKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  733|  2.41k|		    : SSLHandshakeMessage(data, dataLen, container)
  734|  2.41k|		{}
_ZN4pcpp25SSLServerHelloDoneMessageC2EPhmPNS_17SSLHandshakeLayerE:
  803|  1.53k|		    : SSLHandshakeMessage(data, dataLen, container)
  804|  1.53k|		{}
_ZN4pcpp27SSLCertificateVerifyMessageC2EPhmPNS_17SSLHandshakeLayerE:
  826|    884|		    : SSLHandshakeMessage(data, dataLen, container)
  827|    884|		{}
_ZN4pcpp18SSLFinishedMessageC2EPhmPNS_17SSLHandshakeLayerE:
  860|    870|		    : SSLHandshakeMessage(data, dataLen, container)
  861|    870|		{}
_ZN4pcpp26SSLNewSessionTicketMessageC2EPhmPNS_17SSLHandshakeLayerE:
  893|  1.77k|		    : SSLHandshakeMessage(data, dataLen, container)
  894|  1.77k|		{}
_ZN4pcpp17SSLUnknownMessageC2EPhmPNS_17SSLHandshakeLayerE:
  927|  44.6k|		    : SSLHandshakeMessage(data, dataLen, container)
  928|  44.6k|		{}
_ZN4pcpp19SSLHandshakeMessageD2Ev:
  306|   160k|		virtual ~SSLHandshakeMessage() = default;
_ZN4pcpp21SSLClientHelloMessageD2Ev:
  397|  30.5k|		~SSLClientHelloMessage() override = default;
_ZN4pcpp21SSLServerHelloMessageD2Ev:
  533|  26.5k|		~SSLServerHelloMessage() override = default;
_ZN4pcpp21SSLCertificateMessageD2Ev:
  641|  8.22k|		~SSLCertificateMessage() override = default;
_ZN4pcpp28SSLCertificateRequestMessageD2Ev:
  767|  12.9k|		~SSLCertificateRequestMessage() override = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_32SSLServerNameIndicationExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  96.7k|		{
  153|  96.7k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 96.7k]
  |  Branch (153:27): [True: 0, False: 96.7k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  96.7k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  96.7k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 2.89k, False: 93.8k]
  ------------------
  160|  2.89k|			{
  161|  2.89k|				return nullptr;
  162|  2.89k|			}
  163|       |
  164|  93.8k|			return std::make_unique<T>(data, dataLen);
  165|  96.7k|		}
_ZN4pcpp12SSLExtensionD2Ev:
  123|   283k|		virtual ~SSLExtension() = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_29SSLSupportedVersionsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  6.62k|		{
  153|  6.62k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 6.62k]
  |  Branch (153:27): [True: 0, False: 6.62k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  6.62k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  6.62k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 952, False: 5.67k]
  ------------------
  160|    952|			{
  161|    952|				return nullptr;
  162|    952|			}
  163|       |
  164|  5.67k|			return std::make_unique<T>(data, dataLen);
  165|  6.62k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_27TLSSupportedGroupsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  14.4k|		{
  153|  14.4k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 14.4k]
  |  Branch (153:27): [True: 0, False: 14.4k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  14.4k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  14.4k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 121, False: 14.2k]
  ------------------
  160|    121|			{
  161|    121|				return nullptr;
  162|    121|			}
  163|       |
  164|  14.2k|			return std::make_unique<T>(data, dataLen);
  165|  14.4k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_25TLSECPointFormatExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  15.9k|		{
  153|  15.9k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 15.9k]
  |  Branch (153:27): [True: 0, False: 15.9k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  15.9k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  15.9k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 0, False: 15.9k]
  ------------------
  160|      0|			{
  161|      0|				return nullptr;
  162|      0|			}
  163|       |
  164|  15.9k|			return std::make_unique<T>(data, dataLen);
  165|  15.9k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionIS0_TnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS2_10unique_ptrIS4_NS2_14default_deleteIS4_EEEEPhm:
  152|   161k|		{
  153|   161k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 161k]
  |  Branch (153:27): [True: 0, False: 161k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|   161k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|   161k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 8.54k, False: 153k]
  ------------------
  160|  8.54k|			{
  161|  8.54k|				return nullptr;
  162|  8.54k|			}
  163|       |
  164|   153k|			return std::make_unique<T>(data, dataLen);
  165|   161k|		}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_27TLSSupportedGroupsExtensionEEEPT_v:
  946|  5.57k|	{
  947|  5.57k|		size_t vecSize = m_ExtensionList.size();
  948|  29.8k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 27.0k, False: 2.86k]
  ------------------
  949|  27.0k|		{
  950|  27.0k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  27.0k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 2.71k, False: 24.3k]
  ------------------
  952|  2.71k|				return static_cast<TExtension*>(curElem);
  953|  27.0k|		}
  954|       |
  955|  2.86k|		return nullptr;
  956|  5.57k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_25TLSECPointFormatExtensionEEEPT_v:
  946|  5.57k|	{
  947|  5.57k|		size_t vecSize = m_ExtensionList.size();
  948|  29.9k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 27.1k, False: 2.79k]
  ------------------
  949|  27.1k|		{
  950|  27.1k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  27.1k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 2.78k, False: 24.3k]
  ------------------
  952|  2.78k|				return static_cast<TExtension*>(curElem);
  953|  27.1k|		}
  954|       |
  955|  2.79k|		return nullptr;
  956|  5.57k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  959|  8.22k|	{
  960|  8.22k|		size_t vecSize = m_ExtensionList.size();
  961|  17.1k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 9.43k, False: 7.75k]
  ------------------
  962|  9.43k|		{
  963|  9.43k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  9.43k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 464, False: 8.97k]
  ------------------
  965|    464|				return static_cast<TExtension*>(curElem);
  966|  9.43k|		}
  967|       |
  968|  7.75k|		return nullptr;
  969|  8.22k|	}

_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLClientHelloMessageEEEPT_v:
  444|  17.3k|	{
  445|  17.3k|		size_t vecSize = m_MessageList.size();
  446|  34.4k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 22.6k, False: 11.8k]
  ------------------
  447|  22.6k|		{
  448|  22.6k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  22.6k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 5.57k, False: 17.0k]
  ------------------
  450|  5.57k|				return (THandshakeMessage*)curElem;
  451|  22.6k|		}
  452|       |
  453|       |		// element not found
  454|  11.8k|		return nullptr;
  455|  17.3k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLServerHelloMessageEEEPT_v:
  444|  17.3k|	{
  445|  17.3k|		size_t vecSize = m_MessageList.size();
  446|  37.0k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 23.7k, False: 13.2k]
  ------------------
  447|  23.7k|		{
  448|  23.7k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  23.7k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 4.11k, False: 19.6k]
  ------------------
  450|  4.11k|				return (THandshakeMessage*)curElem;
  451|  23.7k|		}
  452|       |
  453|       |		// element not found
  454|  13.2k|		return nullptr;
  455|  17.3k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_19SSLHandshakeMessageEEEPT_v:
  444|  17.3k|	{
  445|  17.3k|		size_t vecSize = m_MessageList.size();
  446|  17.3k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 16.3k, False: 1.02k]
  ------------------
  447|  16.3k|		{
  448|  16.3k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  16.3k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 16.3k, False: 0]
  ------------------
  450|  16.3k|				return (THandshakeMessage*)curElem;
  451|  16.3k|		}
  452|       |
  453|       |		// element not found
  454|  1.02k|		return nullptr;
  455|  17.3k|	}  // getHandshakeMessageOfType
_ZNK4pcpp8SSLLayer14getRecordLayerEv:
  227|   398k|		{
  228|   398k|			return reinterpret_cast<ssl_tls_record_layer*>(m_Data);
  229|   398k|		}
_ZNK4pcpp8SSLLayer16getOsiModelLayerEv:
  247|  31.6k|		{
  248|  31.6k|			return OsiModelPresentationLayer;
  249|  31.6k|		}
_ZN4pcpp8SSLLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  253|   196k|		    : Layer(data, dataLen, prevLayer, packet, SSL)
  254|   196k|		{}
_ZN4pcpp17SSLHandshakeLayer22computeCalculateFieldsEv:
  346|  17.3k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  364|  65.7k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  365|  65.7k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayer22computeCalculateFieldsEv:
  375|  10.2k|		{}
_ZN4pcpp13SSLAlertLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  390|  4.95k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  391|  4.95k|		{}
_ZN4pcpp13SSLAlertLayer22computeCalculateFieldsEv:
  407|    815|		{}
_ZN4pcpp23SSLApplicationDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  422|  18.2k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  423|  18.2k|		{}
_ZN4pcpp23SSLApplicationDataLayer22computeCalculateFieldsEv:
  440|  3.13k|		{}
_ZN4pcpp8SSLLayer9isSSLPortEt:
  489|   720k|	{
  490|   720k|		if (port == 443)  // HTTPS, this is likely case
  ------------------
  |  Branch (490:7): [True: 115k, False: 605k]
  ------------------
  491|   115k|			return true;
  492|       |
  493|   605k|		switch (port)
  494|   605k|		{
  495|    130|		case 261:  // NSIIOPS
  ------------------
  |  Branch (495:3): [True: 130, False: 605k]
  ------------------
  496|  1.15k|		case 448:  // DDM-SSL
  ------------------
  |  Branch (496:3): [True: 1.02k, False: 604k]
  ------------------
  497|  1.22k|		case 465:  // SMTPS
  ------------------
  |  Branch (497:3): [True: 70, False: 605k]
  ------------------
  498|  1.35k|		case 563:  // NNTPS
  ------------------
  |  Branch (498:3): [True: 130, False: 605k]
  ------------------
  499|  1.48k|		case 614:  // SSHELL
  ------------------
  |  Branch (499:3): [True: 132, False: 605k]
  ------------------
  500|  1.48k|		case 636:  // LDAPS
  ------------------
  |  Branch (500:3): [True: 0, False: 605k]
  ------------------
  501|  1.48k|		case 989:  // FTPS - data
  ------------------
  |  Branch (501:3): [True: 0, False: 605k]
  ------------------
  502|  1.48k|		case 990:  // FTPS - control
  ------------------
  |  Branch (502:3): [True: 0, False: 605k]
  ------------------
  503|  1.48k|		case 992:  // Telnet over TLS/SSL
  ------------------
  |  Branch (503:3): [True: 0, False: 605k]
  ------------------
  504|  1.79k|		case 993:  // IMAPS
  ------------------
  |  Branch (504:3): [True: 307, False: 605k]
  ------------------
  505|  1.83k|		case 994:  // IRCS
  ------------------
  |  Branch (505:3): [True: 40, False: 605k]
  ------------------
  506|  2.13k|		case 995:  // POP3S
  ------------------
  |  Branch (506:3): [True: 300, False: 605k]
  ------------------
  507|  2.13k|			return true;
  508|   603k|		default:
  ------------------
  |  Branch (508:3): [True: 603k, False: 2.13k]
  ------------------
  509|   603k|			return false;
  510|   605k|		}
  511|   605k|	}  // isSSLPort

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

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

_ZN4pcpp8SipLayer9isSipPortEt:
  113|  1.07M|		{
  114|  1.07M|			return port == 5060 || port == 5061;
  ------------------
  |  Branch (114:11): [True: 124k, False: 949k]
  |  Branch (114:27): [True: 0, False: 949k]
  ------------------
  115|  1.07M|		}
_ZNK4pcpp8SipLayer16getOsiModelLayerEv:
   97|  5.56k|		{
   98|  5.56k|			return OsiModelSesionLayer;
   99|  5.56k|		}
_ZN4pcpp8SipLayerC2EPhmPNS_5LayerEPNS_6PacketEh:
  141|  59.1k|		    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, protocol)
  142|  59.1k|		{}
_ZNK4pcpp8SipLayer32getHeaderFieldNameValueSeparatorEv:
  155|  59.1k|		{
  156|  59.1k|			return ':';
  157|  59.1k|		}
_ZNK4pcpp8SipLayer43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  159|  59.1k|		{
  160|  59.1k|			return true;
  161|  59.1k|		}
_ZNK4pcpp19SipRequestFirstLine7getSizeEv:
  584|  61.2k|		{
  585|  61.2k|			return m_FirstLineEndOffset;
  586|  61.2k|		}
_ZN4pcpp19SipRequestFirstLine28SipRequestFirstLineExceptionD2Ev:
  605|  52.1k|			{}
_ZNK4pcpp20SipResponseFirstLine7getSizeEv:
  709|  9.03k|		{
  710|  9.03k|			return m_FirstLineEndOffset;
  711|  9.03k|		}
_ZN4pcpp20SipResponseFirstLine29SipResponseFirstLineExceptionD2Ev:
  730|  7.04k|			{}

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

_ZN4pcpp9SmtpLayer10isSmtpPortEt:
   28|   198k|		{
   29|   198k|			return port == 25 || port == 587;
  ------------------
  |  Branch (29:11): [True: 3.56k, False: 195k]
  |  Branch (29:25): [True: 0, False: 195k]
  ------------------
   30|   198k|		}
_ZN4pcpp17SmtpResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  251|     85|		    : SmtpLayer(data, dataLen, prevLayer, packet) {};
_ZN4pcpp9SmtpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   18|    155|		    : SingleCommandTextProtocol(data, dataLen, prevLayer, packet, SMTP) {};
_ZN4pcpp9SmtpLayer14parseNextLayerEv:
   36|    155|		{}
_ZNK4pcpp9SmtpLayer12getHeaderLenEv:
   40|     31|		{
   41|     31|			return m_DataLen;
   42|     31|		}
_ZN4pcpp9SmtpLayer22computeCalculateFieldsEv:
   46|     31|		{}
_ZNK4pcpp9SmtpLayer16getOsiModelLayerEv:
   50|     31|		{
   51|     31|			return OsiModelApplicationLayer;
   52|     31|		}
_ZN4pcpp16SmtpRequestLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  121|     70|		    : SmtpLayer(data, dataLen, prevLayer, packet) {};

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

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

_ZN4pcpp9TLVRecordIhhED2Ev:
   53|   601k|		virtual ~TLVRecord() = default;
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEED2Ev:
  222|   559k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp9TLVRecordIttEC2ERKS1_:
   48|  7.74k|		{
   49|  7.74k|			m_Data = other.m_Data;
   50|  7.74k|		}
_ZN4pcpp9TLVRecordIttED2Ev:
   53|  31.6k|		virtual ~TLVRecord() = default;
_ZN4pcpp9TLVRecordIttEaSERKS1_:
   77|  20.4k|		{
   78|  20.4k|			m_Data = other.m_Data;
   79|  20.4k|			return *this;
   80|  20.4k|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIjEET_m:
  162|  2.90k|		{
  163|  2.90k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (163:8): [True: 2.61k, False: 297]
  ------------------
  164|  2.61k|				return 0;
  165|       |
  166|    297|			T result;
  167|    297|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  168|    297|			return result;
  169|  2.90k|		}
_ZN4pcpp9TLVRecordIhhEC2ERKS1_:
   48|   230k|		{
   49|   230k|			m_Data = other.m_Data;
   50|   230k|		}
_ZNK4pcpp9TLVRecordIhhE14getValueOffsetEv:
  195|  4.79k|		{
  196|  4.79k|			return 0;
  197|  4.79k|		}
_ZN4pcpp9TLVRecordIhhEaSERKS1_:
   77|   454k|		{
   78|   454k|			m_Data = other.m_Data;
   79|   454k|			return *this;
   80|   454k|		}
_ZN4pcpp9TLVRecordIhhE6assignEPh:
   58|  1.34M|		{
   59|  1.34M|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   60|  1.34M|		}
_ZN4pcpp9TLVRecordIhhE9canAssignEPKhm:
   67|   163k|		{
   68|   163k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (68:11): [True: 163k, False: 0]
  ------------------
   69|   163k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (69:11): [True: 161k, False: 2.01k]
  ------------------
   70|   163k|		}
_ZN4pcpp9TLVRecordIttE6assignEPh:
   58|  62.1k|		{
   59|  62.1k|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   60|  62.1k|		}
_ZN4pcpp9TLVRecordIhhEC2EPh:
   40|   754k|		{
   41|   754k|			assign(recordRawData);
   42|   754k|		}
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEED2Ev:
  222|  14.8k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEEC2Ev:
  211|  14.8k|		{
  212|  14.8k|			m_RecordCount = static_cast<size_t>(-1);
  213|  14.8k|		}
_ZNK4pcpp9TLVRecordIhhE6isNullEv:
  128|  1.74M|		{
  129|  1.74M|			return (m_Data == nullptr);
  130|  1.74M|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIhEET_m:
  162|  4.51k|		{
  163|  4.51k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (163:8): [True: 12, False: 4.50k]
  ------------------
  164|     12|				return 0;
  165|       |
  166|  4.50k|			T result;
  167|  4.50k|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  168|  4.50k|			return result;
  169|  4.51k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE12getTLVRecordEjPhm:
  298|  11.7k|		{
  299|  11.7k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|   155k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 149k, False: 6.64k]
  ------------------
  301|   149k|			{
  302|   149k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 5.14k, False: 144k]
  ------------------
  303|  5.14k|				{
  304|  5.14k|					return curRec;
  305|  5.14k|				}
  306|       |
  307|   144k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|   144k|			}
  309|       |
  310|  6.64k|			curRec.assign(nullptr);
  311|  6.64k|			return curRec;  // for NRVO optimization
  312|  11.7k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getFirstTLVRecordEPhm:
  239|  17.6k|		{
  240|  17.6k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  17.6k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 0, False: 17.6k]
  ------------------
  242|      0|				return resRec;
  243|       |
  244|  17.6k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  17.6k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 195, False: 17.4k]
  ------------------
  247|    195|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  17.6k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 17.4k, False: 195]
  |  Branch (250:29): [True: 0, False: 17.4k]
  |  Branch (250:48): [True: 0, False: 17.4k]
  ------------------
  251|      0|				resRec.assign(nullptr);
  252|       |
  253|  17.6k|			return resRec;
  254|  17.6k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE16getNextTLVRecordERS1_PKhm:
  264|   258k|		{
  265|   258k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|   258k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 258k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|   258k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 10.9k, False: 247k]
  ------------------
  271|   258k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|   258k|			                                  record.getTotalSize()))
  273|  10.9k|				return resRec;
  274|       |
  275|   247k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|   247k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 0, False: 247k]
  ------------------
  278|      0|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|   247k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 0, False: 247k]
  ------------------
  282|      0|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|   247k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 247k, False: 0]
  |  Branch (285:28): [True: 1.36k, False: 246k]
  ------------------
  286|  1.36k|				resRec.assign(nullptr);
  287|       |
  288|   247k|			return resRec;
  289|   258k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getTLVRecordCountEPhm:
  322|  63.0k|		{
  323|  63.0k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (323:8): [True: 60.1k, False: 2.94k]
  ------------------
  324|  60.1k|				return m_RecordCount;
  325|       |
  326|  2.94k|			m_RecordCount = 0;
  327|  2.94k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  328|  60.1k|			while (!curRec.isNull())
  ------------------
  |  Branch (328:11): [True: 57.1k, False: 2.94k]
  ------------------
  329|  57.1k|			{
  330|  57.1k|				m_RecordCount++;
  331|  57.1k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  332|  57.1k|			}
  333|       |
  334|  2.94k|			return m_RecordCount;
  335|  63.0k|		}
_ZNK4pcpp9TLVRecordIhhE7getTypeEv:
  110|   345k|		{
  111|   345k|			if (m_Data == nullptr)
  ------------------
  |  Branch (111:8): [True: 0, False: 345k]
  ------------------
  112|      0|				return 0;
  113|       |
  114|   345k|			return m_Data->recordType;
  115|   345k|		}
_ZN4pcpp9TLVRecordIhhE15purgeRecordDataEv:
  146|  54.3k|		{
  147|  54.3k|			if (!isNull())
  ------------------
  |  Branch (147:8): [True: 54.3k, False: 0]
  ------------------
  148|  54.3k|			{
  149|  54.3k|				delete[] m_Data;
  150|  54.3k|				m_Data = nullptr;
  151|  54.3k|			}
  152|  54.3k|		}
_ZNK4pcpp9TLVRecordIhhE16getRecordBasePtrEv:
  140|  2.34M|		{
  141|  2.34M|			return reinterpret_cast<uint8_t*>(m_Data);
  142|  2.34M|		}
_ZN4pcpp9TLVRecordIttEC2EPh:
   40|  30.9k|		{
   41|  30.9k|			assign(recordRawData);
   42|  30.9k|		}
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEED2Ev:
  222|  18.6k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEEC2Ev:
  211|  18.6k|		{
  212|  18.6k|			m_RecordCount = static_cast<size_t>(-1);
  213|  18.6k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getFirstTLVRecordEPhm:
  239|  10.4k|		{
  240|  10.4k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  10.4k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 0, False: 10.4k]
  ------------------
  242|      0|				return resRec;
  243|       |
  244|  10.4k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  10.4k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 158, False: 10.3k]
  ------------------
  247|    158|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  10.4k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 10.3k, False: 158]
  |  Branch (250:29): [True: 0, False: 10.3k]
  |  Branch (250:48): [True: 0, False: 10.3k]
  ------------------
  251|      0|				resRec.assign(nullptr);
  252|       |
  253|  10.4k|			return resRec;
  254|  10.4k|		}
_ZN4pcpp9TLVRecordIttE9canAssignEPKhm:
   67|  30.9k|		{
   68|  30.9k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (68:11): [True: 30.9k, False: 0]
  ------------------
   69|  30.9k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (69:11): [True: 25.6k, False: 5.33k]
  ------------------
   70|  30.9k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE16getNextTLVRecordERS1_PKhm:
  264|  20.4k|		{
  265|  20.4k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|  20.4k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 20.4k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|  20.4k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 5.33k, False: 15.1k]
  ------------------
  271|  20.4k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|  20.4k|			                                  record.getTotalSize()))
  273|  5.33k|				return resRec;
  274|       |
  275|  15.1k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|  15.1k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 0, False: 15.1k]
  ------------------
  278|      0|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|  15.1k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 0, False: 15.1k]
  ------------------
  282|      0|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|  15.1k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 15.1k, False: 0]
  |  Branch (285:28): [True: 3.46k, False: 11.6k]
  ------------------
  286|  3.46k|				resRec.assign(nullptr);
  287|       |
  288|  15.1k|			return resRec;
  289|  20.4k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE12getTLVRecordEjPhm:
  298|  3.44k|		{
  299|  3.44k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|  8.44k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 6.54k, False: 1.90k]
  ------------------
  301|  6.54k|			{
  302|  6.54k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 1.54k, False: 4.99k]
  ------------------
  303|  1.54k|				{
  304|  1.54k|					return curRec;
  305|  1.54k|				}
  306|       |
  307|  4.99k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|  4.99k|			}
  309|       |
  310|  1.90k|			curRec.assign(nullptr);
  311|  1.90k|			return curRec;  // for NRVO optimization
  312|  3.44k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getTLVRecordCountEPhm:
  322|  14.7k|		{
  323|  14.7k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (323:8): [True: 11.1k, False: 3.60k]
  ------------------
  324|  11.1k|				return m_RecordCount;
  325|       |
  326|  3.60k|			m_RecordCount = 0;
  327|  3.60k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  328|  11.3k|			while (!curRec.isNull())
  ------------------
  |  Branch (328:11): [True: 7.74k, False: 3.60k]
  ------------------
  329|  7.74k|			{
  330|  7.74k|				m_RecordCount++;
  331|  7.74k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  332|  7.74k|			}
  333|       |
  334|  3.60k|			return m_RecordCount;
  335|  14.7k|		}
_ZNK4pcpp9TLVRecordIttE6isNullEv:
  128|  65.9k|		{
  129|  65.9k|			return (m_Data == nullptr);
  130|  65.9k|		}
_ZNK4pcpp9TLVRecordIttE16getRecordBasePtrEv:
  140|  96.9k|		{
  141|  96.9k|			return reinterpret_cast<uint8_t*>(m_Data);
  142|  96.9k|		}
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEED2Ev:
  222|   826k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEEC2Ev:
  211|   826k|		{
  212|   826k|			m_RecordCount = static_cast<size_t>(-1);
  213|   826k|		}
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEED2Ev:
  222|  17.8k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEEC2Ev:
  211|  1.81k|		{
  212|  1.81k|			m_RecordCount = static_cast<size_t>(-1);
  213|  1.81k|		}
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEED2Ev:
  222|  1.81k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEEC2Ev:
  211|    605|		{
  212|    605|			m_RecordCount = static_cast<size_t>(-1);
  213|    605|		}
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEED2Ev:
  222|    605|		virtual ~TLVRecordReader() = default;
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE12getTLVRecordEjPhm:
  298|  86.6k|		{
  299|  86.6k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|   109k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 77.0k, False: 32.2k]
  ------------------
  301|  77.0k|			{
  302|  77.0k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 54.3k, False: 22.6k]
  ------------------
  303|  54.3k|				{
  304|  54.3k|					return curRec;
  305|  54.3k|				}
  306|       |
  307|  22.6k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|  22.6k|			}
  309|       |
  310|  32.2k|			curRec.assign(nullptr);
  311|  32.2k|			return curRec;  // for NRVO optimization
  312|  86.6k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE17getFirstTLVRecordEPhm:
  239|   140k|		{
  240|   140k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|   140k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 28.0k, False: 112k]
  ------------------
  242|  28.0k|				return resRec;
  243|       |
  244|   112k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|   112k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 2.26k, False: 110k]
  ------------------
  247|  2.26k|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|   112k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 110k, False: 2.26k]
  |  Branch (250:29): [True: 0, False: 110k]
  |  Branch (250:48): [True: 256, False: 110k]
  ------------------
  251|    256|				resRec.assign(nullptr);
  252|       |
  253|   112k|			return resRec;
  254|   140k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE16getNextTLVRecordERS1_PKhm:
  264|   195k|		{
  265|   195k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|   195k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 195k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|   195k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 43.7k, False: 152k]
  ------------------
  271|   195k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|   195k|			                                  record.getTotalSize()))
  273|  43.7k|				return resRec;
  274|       |
  275|   152k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|   152k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 1.84k, False: 150k]
  ------------------
  278|  1.84k|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|   152k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 1.84k, False: 150k]
  ------------------
  282|  1.84k|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|   152k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 150k, False: 1.84k]
  |  Branch (285:28): [True: 10.3k, False: 139k]
  ------------------
  286|  10.3k|				resRec.assign(nullptr);
  287|       |
  288|   152k|			return resRec;
  289|   195k|		}
_ZNK4pcpp9TLVRecordIhhE9isNotNullEv:
  134|   173k|		{
  135|   173k|			return (m_Data != nullptr);
  136|   173k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEE20changeTLVRecordCountEi:
  343|  54.3k|		{
  344|  54.3k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (344:8): [True: 0, False: 54.3k]
  ------------------
  345|      0|				m_RecordCount += changedBy;
  346|  54.3k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEC2Ev:
  211|   559k|		{
  212|   559k|			m_RecordCount = static_cast<size_t>(-1);
  213|   559k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEaSERKS2_:
  227|  86.6k|		{
  228|  86.6k|			m_RecordCount = other.m_RecordCount;
  229|  86.6k|			return *this;
  230|  86.6k|		}
_ZN4pcpp15TLVRecordReaderINS_15RadiusAttributeEEC2Ev:
  211|  9.98k|		{
  212|  9.98k|			m_RecordCount = static_cast<size_t>(-1);
  213|  9.98k|		}
_ZN4pcpp15TLVRecordReaderINS_15RadiusAttributeEED2Ev:
  222|  9.98k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_9NdpOptionEEC2Ev:
  211|    620|		{
  212|    620|			m_RecordCount = static_cast<size_t>(-1);
  213|    620|		}
_ZN4pcpp15TLVRecordReaderINS_9NdpOptionEED2Ev:
  222|    620|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEEC2Ev:
  211|  17.8k|		{
  212|  17.8k|			m_RecordCount = static_cast<size_t>(-1);
  213|  17.8k|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE17getFirstTLVRecordEPhm:
  239|    310|		{
  240|    310|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|    310|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 310, False: 0]
  ------------------
  242|    310|				return resRec;
  243|       |
  244|      0|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|      0|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 0, False: 0]
  ------------------
  247|      0|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|      0|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 0, False: 0]
  |  Branch (250:29): [True: 0, False: 0]
  |  Branch (250:48): [True: 0, False: 0]
  ------------------
  251|      0|				resRec.assign(nullptr);
  252|       |
  253|      0|			return resRec;
  254|    310|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE12getTLVRecordEjPhm:
  298|    310|		{
  299|    310|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|    310|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 0, False: 310]
  ------------------
  301|      0|			{
  302|      0|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 0, False: 0]
  ------------------
  303|      0|				{
  304|      0|					return curRec;
  305|      0|				}
  306|       |
  307|      0|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|      0|			}
  309|       |
  310|    310|			curRec.assign(nullptr);
  311|    310|			return curRec;  // for NRVO optimization
  312|    310|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE12getTLVRecordEjPhm:
  298|  1.78k|		{
  299|  1.78k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|  3.05k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 1.26k, False: 1.78k]
  ------------------
  301|  1.26k|			{
  302|  1.26k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 0, False: 1.26k]
  ------------------
  303|      0|				{
  304|      0|					return curRec;
  305|      0|				}
  306|       |
  307|  1.26k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|  1.26k|			}
  309|       |
  310|  1.78k|			curRec.assign(nullptr);
  311|  1.78k|			return curRec;  // for NRVO optimization
  312|  1.78k|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE17getFirstTLVRecordEPhm:
  239|  2.69k|		{
  240|  2.69k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  2.69k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 16, False: 2.67k]
  ------------------
  242|     16|				return resRec;
  243|       |
  244|  2.67k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  2.67k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 684, False: 1.99k]
  ------------------
  247|    684|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  2.67k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 1.99k, False: 684]
  |  Branch (250:29): [True: 0, False: 1.99k]
  |  Branch (250:48): [True: 858, False: 1.13k]
  ------------------
  251|    858|				resRec.assign(nullptr);
  252|       |
  253|  2.67k|			return resRec;
  254|  2.69k|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE16getNextTLVRecordERS1_PKhm:
  264|  1.89k|		{
  265|  1.89k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|  1.89k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 1.89k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|  1.89k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 0, False: 1.89k]
  ------------------
  271|  1.89k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|  1.89k|			                                  record.getTotalSize()))
  273|      0|				return resRec;
  274|       |
  275|  1.89k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|  1.89k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 93, False: 1.80k]
  ------------------
  278|     93|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|  1.89k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 93, False: 1.80k]
  ------------------
  282|     93|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|  1.89k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 1.80k, False: 93]
  |  Branch (285:28): [True: 1.04k, False: 765]
  ------------------
  286|  1.04k|				resRec.assign(nullptr);
  287|       |
  288|  1.89k|			return resRec;
  289|  1.89k|		}

_ZN4pcpp8TcpLayerD2Ev:
  459|   559k|		~TcpLayer() override = default;
_ZN4pcpp9TcpOptionC2EPh:
  257|   477k|		explicit TcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  258|   477k|		{}
_ZN4pcpp9TcpOption9canAssignEPKhm:
  282|   336k|		{
  283|   336k|			const auto* data = reinterpret_cast<const TLVRawData*>(recordRawData);
  284|   336k|			if (data == nullptr)
  ------------------
  |  Branch (284:8): [True: 0, False: 336k]
  ------------------
  285|      0|				return false;
  286|       |
  287|   336k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (287:8): [True: 71.4k, False: 265k]
  ------------------
  288|  71.4k|				return false;
  289|       |
  290|   265k|			const auto recordType = getTcpOptionEnumType(data);
  291|   265k|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (291:8): [True: 153k, False: 112k]
  |  Branch (291:48): [True: 14.4k, False: 97.6k]
  ------------------
  292|   167k|				return true;
  293|       |
  294|  97.6k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  295|   265k|		}
_ZNK4pcpp9TcpOption12getTotalSizeEv:
  300|  1.46M|		{
  301|  1.46M|			if (m_Data == nullptr)
  ------------------
  |  Branch (301:8): [True: 0, False: 1.46M]
  ------------------
  302|      0|				return 0;
  303|       |
  304|  1.46M|			const auto recordType = getTcpOptionEnumType(m_Data);
  305|  1.46M|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (305:8): [True: 920k, False: 540k]
  |  Branch (305:48): [True: 82.5k, False: 457k]
  ------------------
  306|  1.00M|				return sizeof(uint8_t);
  307|       |
  308|   457k|			return static_cast<size_t>(m_Data->recordLen);
  309|  1.46M|		}
_ZN4pcpp9TcpOption20getTcpOptionEnumTypeEPKNS_9TLVRecordIhhE10TLVRawDataE:
  333|  1.72M|		{
  334|  1.72M|			if (optionRawData == nullptr)
  ------------------
  |  Branch (334:8): [True: 0, False: 1.72M]
  ------------------
  335|      0|				return TcpOptionEnumType::Unknown;
  336|       |
  337|  1.72M|			return static_cast<TcpOptionEnumType>(optionRawData->recordType);
  338|  1.72M|		}
_ZNK4pcpp8TcpLayer12getTcpHeaderEv:
  472|  2.69M|		{
  473|  2.69M|			return reinterpret_cast<tcphdr*>(m_Data);
  474|  2.69M|		}
_ZNK4pcpp8TcpLayer12getHeaderLenEv:
  566|  1.15M|		{
  567|  1.15M|			return getTcpHeader()->dataOffset * 4;
  568|  1.15M|		}
_ZNK4pcpp8TcpLayer16getOsiModelLayerEv:
  576|  86.6k|		{
  577|  86.6k|			return OsiModelTransportLayer;
  578|  86.6k|		}
_ZNK4pcpp8TcpLayer17getOptionsBasePtrEv:
  586|   314k|		{
  587|   314k|			return m_Data + sizeof(tcphdr);
  588|   314k|		}
_ZN4pcpp8TcpLayer11isDataValidEPKhm:
  597|   484k|	{
  598|   484k|		const tcphdr* hdr = reinterpret_cast<const tcphdr*>(data);
  599|   484k|		return dataLen >= sizeof(tcphdr) && hdr->dataOffset >= 5 /* the minimum TCP header size */
  ------------------
  |  Branch (599:10): [True: 483k, False: 178]
  |  Branch (599:39): [True: 480k, False: 2.92k]
  ------------------
  600|   480k|		       && dataLen >= hdr->dataOffset * sizeof(uint32_t);
  ------------------
  |  Branch (600:13): [True: 472k, False: 8.31k]
  ------------------
  601|   484k|	}

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

_ZNK4pcpp11HeaderField12getFieldSizeEv:
   49|  2.61M|		{
   50|  2.61M|			return m_FieldSize;
   51|  2.61M|		}
_ZNK4pcpp11HeaderField13isEndOfHeaderEv:
   70|   996k|		{
   71|   996k|			return m_IsEndOfHeaderField;
   72|   996k|		}
_ZNK4pcpp24TextBasedProtocolMessage13getFirstFieldEv:
  123|  3.35k|		{
  124|  3.35k|			return m_FieldList;
  125|  3.35k|		}

_ZN4pcpp9TpktLayer11isDataValidEPKhm:
   92|   122k|		{
   93|   122k|			return canReinterpretAs<tpkthdr>(data, dataSize);
   94|   122k|		}
_ZN4pcpp9TpktLayer10isTpktPortEtt:
   83|   119k|		{
   84|   119k|			return portSrc == 102 || portDst == 102;
  ------------------
  |  Branch (84:11): [True: 8.29k, False: 111k]
  |  Branch (84:29): [True: 15.2k, False: 96.0k]
  ------------------
   85|   119k|		}
_ZN4pcpp9TpktLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   38|  23.5k|		    : Layer(data, dataLen, prevLayer, packet, TPKT)
   39|  23.5k|		{}
_ZNK4pcpp9TpktLayer12getHeaderLenEv:
   67|  26.8k|		{
   68|  26.8k|			return sizeof(tpkthdr);
   69|  26.8k|		}
_ZN4pcpp9TpktLayer22computeCalculateFieldsEv:
   73|  3.34k|		{}
_ZNK4pcpp9TpktLayer16getOsiModelLayerEv:
   99|  3.34k|		{
  100|  3.34k|			return OsiModelTransportLayer;
  101|  3.34k|		}
_ZNK4pcpp9TpktLayer13getTpktHeaderEv:
  109|  13.3k|		{
  110|  13.3k|			return reinterpret_cast<tpkthdr*>(m_Data);
  111|  13.3k|		}

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

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

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

_ZN4pcpp10VxlanLayer11isVxlanPortEt:
  120|   299k|		{
  121|   299k|			return port == 4789;
  122|   299k|		}

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

_ZN4pcpp14WireGuardLayer16isWireGuardPortsEtt:
   68|  38.3k|		{
   69|  38.3k|			return (portSrc == 51820 || portDst == 51820);
  ------------------
  |  Branch (69:12): [True: 795, False: 37.5k]
  |  Branch (69:32): [True: 825, False: 36.7k]
  ------------------
   70|  38.3k|		}
_ZNK4pcpp14WireGuardLayer14getBasicHeaderEv:
   32|    648|		{
   33|    648|			return reinterpret_cast<wg_common_header*>(m_Data);
   34|    648|		}
_ZN4pcpp14WireGuardLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   60|  1.62k|		    : Layer(data, dataLen, prevLayer, packet, WireGuard)
   61|  1.62k|		{}
_ZN4pcpp14WireGuardLayer14parseNextLayerEv:
  100|  1.62k|		{}
_ZN4pcpp14WireGuardLayer22computeCalculateFieldsEv:
  107|    324|		{}
_ZNK4pcpp14WireGuardLayer16getOsiModelLayerEv:
  115|    324|		{
  116|    324|			return OsiModelNetworkLayer;
  117|    324|		}
_ZN4pcpp33WireGuardHandshakeInitiationLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  162|    345|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  163|    345|		{}
_ZN4pcpp31WireGuardHandshakeResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  259|    115|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  260|    115|		{}
_ZN4pcpp25WireGuardCookieReplyLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  349|     15|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  350|     15|		{}
_ZN4pcpp27WireGuardTransportDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  416|  1.14k|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  417|  1.14k|		{}

_ZNK4pcpp8ArpLayer9getOpcodeEv:
   53|  6.52k|	{
   54|       |		return static_cast<ArpOpcode>(be16toh(getArpHeader()->opcode));
   55|  6.52k|	}
_ZN4pcpp8ArpLayer22computeCalculateFieldsEv:
   58|  1.22k|	{
   59|  1.22k|		arphdr* arpHeader = getArpHeader();
   60|  1.22k|		arpHeader->hardwareType = htobe16(1);  // Ethernet
   61|  1.22k|		arpHeader->hardwareSize = 6;
   62|       |		arpHeader->protocolType = htobe16(PCPP_ETHERTYPE_IP);  // assume IPv4 over ARP
   63|  1.22k|		arpHeader->protocolSize = 4;                           // assume IPv4 over ARP
   64|  1.22k|	}
_ZNK4pcpp8ArpLayer9isRequestEv:
   92|  1.22k|	{
   93|  1.22k|		return getOpcode() == pcpp::ArpOpcode::ARP_REQUEST;
   94|  1.22k|	}
_ZNK4pcpp8ArpLayer7isReplyEv:
   97|  1.22k|	{
   98|  1.22k|		return getOpcode() == pcpp::ArpOpcode::ARP_REPLY;
   99|  1.22k|	}
_ZNK4pcpp8ArpLayer8toStringEv:
  102|  2.45k|	{
  103|  2.45k|		switch (getOpcode())
  104|  2.45k|		{
  105|    700|		case ArpOpcode::ARP_REQUEST:
  ------------------
  |  Branch (105:3): [True: 700, False: 1.75k]
  ------------------
  106|    700|			return "ARP Layer, ARP request, who has " + getTargetIpAddr().toString() + " ? Tell " +
  107|    700|			       getSenderIpAddr().toString();
  108|    148|		case ArpOpcode::ARP_REPLY:
  ------------------
  |  Branch (108:3): [True: 148, False: 2.30k]
  ------------------
  109|    148|			return "ARP Layer, ARP reply, " + getSenderIpAddr().toString() + " is at " +
  110|    148|			       getSenderMacAddress().toString();
  111|  1.60k|		default:
  ------------------
  |  Branch (111:3): [True: 1.60k, False: 848]
  ------------------
  112|  1.60k|			return "ARP Layer, unknown opcode (" + std::to_string(getOpcode()) + ")";
  113|  2.45k|		}
  114|  2.45k|	}

_ZN4pcpp10Asn1Record6decodeEPKhmb:
   93|   421k|	{
   94|   421k|		uint8_t tagLen;
   95|   421k|		auto decodedRecord = decodeTagAndCreateRecord(data, dataLen, tagLen);
   96|       |
   97|   421k|		uint8_t lengthLen;
   98|   421k|		lengthLen = decodedRecord->decodeLength(data + tagLen, dataLen - tagLen);
   99|       |
  100|   421k|		decodedRecord->m_TotalLength = tagLen + lengthLen + decodedRecord->m_ValueLength;
  101|   421k|		if (decodedRecord->m_TotalLength < decodedRecord->m_ValueLength ||  // check for overflow
  ------------------
  |  Branch (101:7): [True: 709, False: 420k]
  ------------------
  102|   420k|		    decodedRecord->m_TotalLength > dataLen)
  ------------------
  |  Branch (102:7): [True: 2.12k, False: 418k]
  ------------------
  103|  2.12k|		{
  104|  2.12k|			throw std::invalid_argument("Cannot decode ASN.1 record, data doesn't contain the entire record");
  105|  2.12k|		}
  106|       |
  107|   419k|		uint8_t const* startOfData = data + tagLen + lengthLen;
  108|   419k|		internal::Asn1LoadPolicy policy = lazy ? internal::Asn1LoadPolicy::Lazy : internal::Asn1LoadPolicy::Eager;
  ------------------
  |  Branch (108:37): [True: 59.4k, False: 359k]
  ------------------
  109|   419k|		decodedRecord->setEncodedValue(startOfData, policy);
  110|       |
  111|   419k|		return decodedRecord;
  112|   421k|	}
_ZN4pcpp10Asn1Record24decodeTagAndCreateRecordEPKhmRh:
  207|   421k|	{
  208|   421k|		if (dataLen < 1)
  ------------------
  |  Branch (208:7): [True: 0, False: 421k]
  ------------------
  209|      0|		{
  210|      0|			throw std::invalid_argument("Cannot decode ASN.1 record tag");
  211|      0|		}
  212|       |
  213|   421k|		tagLen = 1;
  214|       |
  215|   421k|		Asn1TagClass tagClass = Asn1TagClass::Universal;
  216|       |
  217|       |		// Check first 2 bits
  218|   421k|		auto tagClassBits = data[0] & 0xc0;
  219|   421k|		if (tagClassBits == 0)
  ------------------
  |  Branch (219:7): [True: 335k, False: 85.9k]
  ------------------
  220|   335k|		{
  221|   335k|			tagClass = Asn1TagClass::Universal;
  222|   335k|		}
  223|  85.9k|		else if ((tagClassBits & 0xc0) == 0xc0)
  ------------------
  |  Branch (223:12): [True: 1.23k, False: 84.6k]
  ------------------
  224|  1.23k|		{
  225|  1.23k|			tagClass = Asn1TagClass::Private;
  226|  1.23k|		}
  227|  84.6k|		else if ((tagClassBits & 0x80) == 0x80)
  ------------------
  |  Branch (227:12): [True: 27.8k, False: 56.8k]
  ------------------
  228|  27.8k|		{
  229|  27.8k|			tagClass = Asn1TagClass::ContextSpecific;
  230|  27.8k|		}
  231|  56.8k|		else if ((tagClassBits & 0x40) == 0x40)
  ------------------
  |  Branch (231:12): [True: 56.8k, False: 0]
  ------------------
  232|  56.8k|		{
  233|  56.8k|			tagClass = Asn1TagClass::Application;
  234|  56.8k|		}
  235|       |
  236|       |		// Check bit 6
  237|   421k|		auto tagTypeBits = data[0] & 0x20;
  238|   421k|		bool isConstructed = (tagTypeBits != 0);
  239|       |
  240|       |		// Check last 5 bits
  241|   421k|		auto tagType = data[0] & 0x1f;
  242|   421k|		if (tagType == 0x1f)
  ------------------
  |  Branch (242:7): [True: 914, False: 420k]
  ------------------
  243|    914|		{
  244|    914|			if (dataLen < 2)
  ------------------
  |  Branch (244:8): [True: 0, False: 914]
  ------------------
  245|      0|			{
  246|      0|				throw std::invalid_argument("Cannot decode ASN.1 record tag");
  247|      0|			}
  248|       |
  249|    914|			if ((data[1] & 0x80) != 0)
  ------------------
  |  Branch (249:8): [True: 20, False: 894]
  ------------------
  250|     20|			{
  251|     20|				throw std::invalid_argument("ASN.1 tags with value larger than 127 are not supported");
  252|     20|			}
  253|       |
  254|    894|			tagType = data[1] & 0x7f;
  255|    894|			tagLen = 2;
  256|    894|		}
  257|       |
  258|   421k|		std::unique_ptr<Asn1Record> newRecord;
  259|       |
  260|   421k|		if (isConstructed)
  ------------------
  |  Branch (260:7): [True: 166k, False: 254k]
  ------------------
  261|   166k|		{
  262|   166k|			if (tagClass == Asn1TagClass::Universal)
  ------------------
  |  Branch (262:8): [True: 100k, False: 66.7k]
  ------------------
  263|   100k|			{
  264|   100k|				switch (static_cast<Asn1UniversalTagType>(tagType))
  265|   100k|				{
  266|  86.0k|				case Asn1UniversalTagType::Sequence:
  ------------------
  |  Branch (266:5): [True: 86.0k, False: 14.0k]
  ------------------
  267|  86.0k|				{
  268|  86.0k|					newRecord.reset(new Asn1SequenceRecord());
  269|  86.0k|					break;
  270|      0|				}
  271|  13.2k|				case Asn1UniversalTagType::Set:
  ------------------
  |  Branch (271:5): [True: 13.2k, False: 86.9k]
  ------------------
  272|  13.2k|				{
  273|  13.2k|					newRecord.reset(new Asn1SetRecord());
  274|  13.2k|					break;
  275|      0|				}
  276|    865|				default:
  ------------------
  |  Branch (276:5): [True: 865, False: 99.3k]
  ------------------
  277|    865|				{
  278|    865|					newRecord.reset(new Asn1ConstructedRecord());
  279|    865|				}
  280|   100k|				}
  281|   100k|			}
  282|  66.7k|			else
  283|  66.7k|			{
  284|  66.7k|				newRecord.reset(new Asn1ConstructedRecord());
  285|  66.7k|			}
  286|   166k|		}
  287|   254k|		else
  288|   254k|		{
  289|   254k|			if (tagClass == Asn1TagClass::Universal)
  ------------------
  |  Branch (289:8): [True: 235k, False: 19.1k]
  ------------------
  290|   235k|			{
  291|   235k|				auto asn1UniversalTagType = static_cast<Asn1UniversalTagType>(tagType);
  292|   235k|				switch (asn1UniversalTagType)
  293|   235k|				{
  294|  68.0k|				case Asn1UniversalTagType::Integer:
  ------------------
  |  Branch (294:5): [True: 68.0k, False: 167k]
  ------------------
  295|  68.0k|				{
  296|  68.0k|					newRecord.reset(new Asn1IntegerRecord());
  297|  68.0k|					break;
  298|      0|				}
  299|  22.8k|				case Asn1UniversalTagType::Enumerated:
  ------------------
  |  Branch (299:5): [True: 22.8k, False: 212k]
  ------------------
  300|  22.8k|				{
  301|  22.8k|					newRecord.reset(new Asn1EnumeratedRecord());
  302|  22.8k|					break;
  303|      0|				}
  304|   132k|				case Asn1UniversalTagType::OctetString:
  ------------------
  |  Branch (304:5): [True: 132k, False: 103k]
  ------------------
  305|   132k|				{
  306|   132k|					newRecord.reset(new Asn1OctetStringRecord());
  307|   132k|					break;
  308|      0|				}
  309|    128|				case Asn1UniversalTagType::UTF8String:
  ------------------
  |  Branch (309:5): [True: 128, False: 235k]
  ------------------
  310|    128|				{
  311|    128|					newRecord.reset(new Asn1UTF8StringRecord());
  312|    128|					break;
  313|      0|				}
  314|     10|				case Asn1UniversalTagType::PrintableString:
  ------------------
  |  Branch (314:5): [True: 10, False: 235k]
  ------------------
  315|     10|				{
  316|     10|					newRecord.reset(new Asn1PrintableStringRecord());
  317|     10|					break;
  318|      0|				}
  319|    110|				case Asn1UniversalTagType::IA5String:
  ------------------
  |  Branch (319:5): [True: 110, False: 235k]
  ------------------
  320|    110|				{
  321|    110|					newRecord.reset(new Asn1IA5StringRecord());
  322|    110|					break;
  323|      0|				}
  324|  5.48k|				case Asn1UniversalTagType::Boolean:
  ------------------
  |  Branch (324:5): [True: 5.48k, False: 229k]
  ------------------
  325|  5.48k|				{
  326|  5.48k|					newRecord.reset(new Asn1BooleanRecord());
  327|  5.48k|					break;
  328|      0|				}
  329|    404|				case Asn1UniversalTagType::BitString:
  ------------------
  |  Branch (329:5): [True: 404, False: 235k]
  ------------------
  330|    404|				{
  331|    404|					newRecord.reset(new Asn1BitStringRecord());
  332|    404|					break;
  333|      0|				}
  334|     59|				case Asn1UniversalTagType::Null:
  ------------------
  |  Branch (334:5): [True: 59, False: 235k]
  ------------------
  335|     59|				{
  336|     59|					newRecord.reset(new Asn1NullRecord());
  337|     59|					break;
  338|      0|				}
  339|    756|				case Asn1UniversalTagType::ObjectIdentifier:
  ------------------
  |  Branch (339:5): [True: 756, False: 234k]
  ------------------
  340|    756|				{
  341|    756|					newRecord.reset(new Asn1ObjectIdentifierRecord());
  342|    756|					break;
  343|      0|				}
  344|    180|				case Asn1UniversalTagType::UTCTime:
  ------------------
  |  Branch (344:5): [True: 180, False: 235k]
  ------------------
  345|    180|				{
  346|    180|					newRecord.reset(new Asn1UtcTimeRecord());
  347|    180|					break;
  348|      0|				}
  349|    770|				case Asn1UniversalTagType::GeneralizedTime:
  ------------------
  |  Branch (349:5): [True: 770, False: 234k]
  ------------------
  350|    770|				{
  351|    770|					newRecord.reset(new Asn1GeneralizedTimeRecord());
  352|    770|					break;
  353|      0|				}
  354|  4.27k|				default:
  ------------------
  |  Branch (354:5): [True: 4.27k, False: 231k]
  ------------------
  355|  4.27k|				{
  356|  4.27k|					newRecord.reset(new Asn1GenericRecord());
  357|  4.27k|				}
  358|   235k|				}
  359|   235k|			}
  360|  19.1k|			else
  361|  19.1k|			{
  362|  19.1k|				newRecord.reset(new Asn1GenericRecord());
  363|  19.1k|			}
  364|   254k|		}
  365|       |
  366|   421k|		newRecord->m_TagClass = tagClass;
  367|   421k|		newRecord->m_IsConstructed = isConstructed;
  368|   421k|		newRecord->m_TagType = tagType;
  369|       |
  370|   421k|		return newRecord;
  371|   421k|	}
_ZN4pcpp10Asn1Record12decodeLengthEPKhm:
  374|   421k|	{
  375|   421k|		if (dataLen < 1)
  ------------------
  |  Branch (375:7): [True: 114, False: 421k]
  ------------------
  376|    114|		{
  377|    114|			throw std::invalid_argument("Cannot decode ASN.1 record length");
  378|    114|		}
  379|       |
  380|       |		// Check 8th bit
  381|   421k|		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|   421k|		if (lengthForm == 0)
  ------------------
  |  Branch (386:7): [True: 326k, False: 94.6k]
  ------------------
  387|   326k|		{
  388|   326k|			m_ValueLength = data[0];
  389|   326k|			return 1;
  390|   326k|		}
  391|       |
  392|  94.6k|		uint8_t actualLengthBytes = data[0] & 0x7F;
  393|  94.6k|		const uint8_t* actualLengthData = data + 1;
  394|       |
  395|  94.6k|		if (dataLen < static_cast<size_t>(actualLengthBytes) + 1)
  ------------------
  |  Branch (395:7): [True: 308, False: 94.3k]
  ------------------
  396|    308|		{
  397|    308|			throw std::invalid_argument("Cannot decode ASN.1 record length");
  398|    308|		}
  399|       |
  400|   433k|		for (int i = 0; i < actualLengthBytes; i++)
  ------------------
  |  Branch (400:19): [True: 338k, False: 94.1k]
  ------------------
  401|   338k|		{
  402|   338k|			size_t partialValueLength = m_ValueLength << 8;
  403|   338k|			if (partialValueLength < m_ValueLength)  // check for overflow
  ------------------
  |  Branch (403:8): [True: 267, False: 338k]
  ------------------
  404|    267|			{
  405|    267|				throw std::invalid_argument("Cannot decode ASN.1 record length");
  406|    267|			}
  407|       |
  408|   338k|			m_ValueLength = partialValueLength | actualLengthData[i];
  409|   338k|		}
  410|       |
  411|  94.1k|		return 1 + actualLengthBytes;
  412|  94.3k|	}
_ZNK4pcpp10Asn1Record19decodeValueIfNeededEv:
  415|   460k|	{
  416|       |		// TODO: This is not thread-safe and can cause issues in a multiple reader scenario.
  417|   460k|		if (m_EncodedValue != nullptr)
  ------------------
  |  Branch (417:7): [True: 417k, False: 43.1k]
  ------------------
  418|   417k|		{
  419|   417k|			decodeValue(m_EncodedValue);
  420|   417k|			m_EncodedValue = nullptr;  // Clear the encoded value after decoding
  421|   417k|		}
  422|   460k|	}
_ZN4pcpp10Asn1Record15setEncodedValueEPKhNS_8internal14Asn1LoadPolicyE:
  462|   418k|	{
  463|   418k|		m_EncodedValue = dataSource;
  464|       |
  465|   418k|		if (loadPolicy == internal::Asn1LoadPolicy::Eager)
  ------------------
  |  Branch (465:7): [True: 359k, False: 59.4k]
  ------------------
  466|   359k|		{
  467|   359k|			decodeValueIfNeeded();
  468|   359k|		}
  469|   418k|	}
_ZNK4pcpp17Asn1GenericRecord11decodeValueEPKh:
  484|  22.6k|	{
  485|  22.6k|		m_Value = std::make_unique<uint8_t[]>(m_ValueLength);
  486|  22.6k|		std::memcpy(m_Value.get(), data, m_ValueLength);
  487|  22.6k|	}
_ZNK4pcpp21Asn1ConstructedRecord11decodeValueEPKh:
  519|   164k|	{
  520|   164k|		if (!(data || m_ValueLength))
  ------------------
  |  Branch (520:9): [True: 164k, False: 0]
  |  Branch (520:17): [True: 0, False: 0]
  ------------------
  521|      0|		{
  522|      0|			return;
  523|      0|		}
  524|       |
  525|   164k|		auto value = data;
  526|   164k|		auto valueLen = m_ValueLength;
  527|       |
  528|   526k|		while (valueLen > 0)
  ------------------
  |  Branch (528:10): [True: 361k, False: 164k]
  ------------------
  529|   361k|		{
  530|   361k|			auto subRecord = Asn1Record::decode(value, valueLen, LazySubRecordDecoding);
  531|   361k|			value += subRecord->getTotalLength();
  532|   361k|			valueLen -= subRecord->getTotalLength();
  533|       |
  534|   361k|			m_SubRecords.pushBack(std::move(subRecord));
  535|   361k|		}
  536|   164k|	}
_ZN4pcpp19Asn1PrimitiveRecordC2ENS_20Asn1UniversalTagTypeE:
  583|   132k|	Asn1PrimitiveRecord::Asn1PrimitiveRecord(Asn1UniversalTagType tagType) : Asn1Record()
  584|   132k|	{
  585|   132k|		m_TagType = static_cast<uint8_t>(tagType);
  586|   132k|		m_TagClass = Asn1TagClass::Universal;
  587|   132k|		m_IsConstructed = false;
  588|   132k|	}
_ZN4pcpp17Asn1IntegerRecord6BigInt14initFromStringERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  601|  90.6k|	{
  602|  90.6k|		std::string valueStr = value;
  603|       |
  604|       |		// Optional 0x or 0X prefix
  605|  90.6k|		if (value.size() >= 2 && value[0] == '0' && (value[1] == 'x' || value[1] == 'X'))
  ------------------
  |  Branch (605:7): [True: 90.6k, False: 20]
  |  Branch (605:28): [True: 78.2k, False: 12.3k]
  |  Branch (605:48): [True: 0, False: 78.2k]
  |  Branch (605:67): [True: 0, False: 78.2k]
  ------------------
  606|      0|		{
  607|      0|			valueStr = value.substr(2);
  608|      0|		}
  609|       |
  610|  90.6k|		if (valueStr.empty())
  ------------------
  |  Branch (610:7): [True: 20, False: 90.6k]
  ------------------
  611|     20|		{
  612|     20|			throw std::invalid_argument("Value is not a valid hex stream");
  613|     20|		}
  614|       |
  615|  90.6k|		if (std::any_of(valueStr.begin(), valueStr.end(), [](char c) { return !std::isxdigit(c); }))
  ------------------
  |  Branch (615:7): [True: 0, False: 90.6k]
  ------------------
  616|      0|		{
  617|      0|			throw std::invalid_argument("Value is not a valid hex stream");
  618|      0|		}
  619|       |
  620|  90.6k|		return valueStr;
  621|  90.6k|	}
_ZN4pcpp17Asn1IntegerRecord6BigIntaSERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  624|  90.6k|	{
  625|  90.6k|		m_Value = initFromString(value);
  626|  90.6k|		return *this;
  627|  90.6k|	}
_ZNK4pcpp17Asn1IntegerRecord11decodeValueEPKh:
  692|  90.6k|	{
  693|  90.6k|		m_Value = pcpp::byteArrayToHexString(data, m_ValueLength);
  694|  90.6k|	}
_ZNK4pcpp21Asn1OctetStringRecord11decodeValueEPKh:
  721|   131k|	{
  722|   131k|		auto value = reinterpret_cast<char const*>(data);
  723|       |
  724|   131k|		m_IsPrintable = std::all_of(value, value + m_ValueLength, [](char c) { return isprint(0xff & c); });
  725|       |
  726|   131k|		if (m_IsPrintable)
  ------------------
  |  Branch (726:7): [True: 119k, False: 12.6k]
  ------------------
  727|   119k|		{
  728|   119k|			Asn1StringRecord::decodeValue(data);
  729|   119k|		}
  730|  12.6k|		else
  731|  12.6k|		{
  732|  12.6k|			m_Value = byteArrayToHexString(data, m_ValueLength);
  733|  12.6k|		}
  734|   131k|	}
_ZNK4pcpp17Asn1BooleanRecord11decodeValueEPKh:
  761|  5.46k|	{
  762|  5.46k|		m_Value = data[0] != 0;
  763|  5.46k|	}
_ZN4pcpp14Asn1NullRecordC2Ev:
  776|     59|	Asn1NullRecord::Asn1NullRecord() : Asn1PrimitiveRecord(Asn1UniversalTagType::Null)
  777|     59|	{
  778|     59|		m_ValueLength = 0;
  779|     59|		m_TotalLength = 2;
  780|     59|	}
_ZN4pcpp20Asn1ObjectIdentifierC2EPKhm:
  783|    686|	{
  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|    686|		if (!data || dataLen == 0)
  ------------------
  |  Branch (787:7): [True: 0, False: 686]
  |  Branch (787:16): [True: 5, False: 681]
  ------------------
  788|      5|		{
  789|      5|			throw std::invalid_argument("Malformed OID: Not enough bytes for the first component");
  790|      5|		}
  791|       |
  792|    681|		size_t currentByteIndex = 0;
  793|    681|		std::vector<uint32_t> components;
  794|       |
  795|    681|		uint8_t firstByte = data[currentByteIndex++];
  796|       |		// Decode the first byte: first_component * 40 + second_component
  797|    681|		components.push_back(static_cast<uint32_t>(firstByte / 40));
  798|    681|		components.push_back(static_cast<uint32_t>(firstByte % 40));
  799|       |
  800|    681|		uint32_t currentComponentValue = 0;
  801|    681|		bool componentStarted = false;
  802|       |
  803|       |		// Process remaining bytes using base-128 encoding
  804|  5.50k|		while (currentByteIndex < dataLen)
  ------------------
  |  Branch (804:10): [True: 4.82k, False: 681]
  ------------------
  805|  4.82k|		{
  806|  4.82k|			uint8_t byte = data[currentByteIndex++];
  807|       |
  808|       |			// Shift previous bits left by 7 and append lower 7 bits
  809|  4.82k|			currentComponentValue = (currentComponentValue << 7) | (byte & 0x7f);
  810|  4.82k|			componentStarted = true;
  811|       |
  812|       |			// If the MSB is 0, this is the final byte of the current value
  813|  4.82k|			if ((byte & 0x80) == 0)
  ------------------
  |  Branch (813:8): [True: 3.42k, False: 1.39k]
  ------------------
  814|  3.42k|			{
  815|  3.42k|				components.push_back(currentComponentValue);
  816|  3.42k|				currentComponentValue = 0;
  817|  3.42k|				componentStarted = false;
  818|  3.42k|			}
  819|  4.82k|		}
  820|       |
  821|    681|		if (componentStarted)
  ------------------
  |  Branch (821:7): [True: 195, False: 486]
  ------------------
  822|    195|		{
  823|    195|			throw std::invalid_argument("Malformed OID: Incomplete component at end of data");
  824|    195|		}
  825|       |
  826|    486|		m_Components = components;
  827|    486|	}
_ZNK4pcpp26Asn1ObjectIdentifierRecord11decodeValueEPKh:
  950|    686|	{
  951|    686|		m_Value = Asn1ObjectIdentifier(data, m_ValueLength);
  952|    686|	}
_ZNK4pcpp25Asn1GeneralizedTimeRecord11decodeValueEPKh:
 1128|    770|	{
 1129|    770|		std::string timeString(reinterpret_cast<const char*>(data), m_ValueLength);
 1130|       |
 1131|    770|		std::string timezone = "Z";
 1132|    770|		auto timezonePos = timeString.find_first_of("+-");
 1133|    770|		if (timeString.back() == 'Z')
  ------------------
  |  Branch (1133:7): [True: 0, False: 770]
  ------------------
 1134|      0|		{
 1135|      0|			timeString.pop_back();
 1136|      0|		}
 1137|    770|		else if (timezonePos != std::string::npos)
  ------------------
  |  Branch (1137:12): [True: 330, False: 440]
  ------------------
 1138|    330|		{
 1139|    330|			timezone = timeString.substr(timezonePos);
 1140|    330|			timeString.erase(timezonePos);
 1141|    330|		}
 1142|       |
 1143|    770|		std::tm tm = {};
 1144|    770|		std::istringstream sstream(timeString);
 1145|    770|		sstream >> std::get_time(&tm, "%Y%m%d%H%M%S");
 1146|       |
 1147|    770|		if (sstream.fail())
  ------------------
  |  Branch (1147:7): [True: 770, False: 0]
  ------------------
 1148|    770|		{
 1149|    770|			throw std::runtime_error("Failed to parse ASN.1 generalized time");
 1150|    770|		}
 1151|       |
 1152|      0|		size_t dotPos = timeString.find('.');
 1153|      0|		int milliseconds = 0;
 1154|      0|		if (dotPos != std::string::npos)
  ------------------
  |  Branch (1154:7): [True: 0, False: 0]
  ------------------
 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|      0|		auto timeValue = mkUtcTime(tm);
 1167|       |
 1168|      0|		m_Timezone = timezone;
 1169|      0|		m_Value = adjustTimezones(
 1170|      0|		    std::chrono::system_clock::from_time_t(timeValue) + std::chrono::milliseconds(milliseconds), timezone, "Z");
 1171|      0|	}
_ZN4pcpp19Asn1BitStringRecord6BitSetC2EPKhm:
 1228|    404|	Asn1BitStringRecord::BitSet::BitSet(const uint8_t* data, size_t numBits) : m_NumBits(numBits)
 1229|    404|	{
 1230|    404|		if (!data || !numBits)
  ------------------
  |  Branch (1230:7): [True: 0, False: 404]
  |  Branch (1230:16): [True: 10, False: 394]
  ------------------
 1231|     10|		{
 1232|     10|			throw std::invalid_argument("Provided data is null or num of bits is 0");
 1233|     10|		}
 1234|       |
 1235|    394|		size_t requiredBytes = (m_NumBits + 7) / 8;
 1236|    394|		m_Data.resize(requiredBytes);
 1237|    394|		std::copy_n(data, requiredBytes, m_Data.begin());
 1238|    394|	}
_ZNK4pcpp19Asn1BitStringRecord11decodeValueEPKh:
 1284|    404|	{
 1285|    404|		auto numBits = (m_ValueLength - 1) * 8 - static_cast<size_t>(data[0]);
 1286|    404|		m_Value = BitSet(data + 1, numBits);
 1287|    404|	}
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.83M|		m_IsPrintable = std::all_of(value, value + m_ValueLength, [](char c) { return isprint(0xff & c); });

_ZNK4pcpp8BgpLayer12getHeaderLenEv:
   16|  1.21M|	{
   17|  1.21M|		if (m_DataLen < sizeof(bgp_common_header))
  ------------------
  |  Branch (17:7): [True: 0, False: 1.21M]
  ------------------
   18|      0|		{
   19|      0|			return m_DataLen;
   20|      0|		}
   21|       |
   22|  1.21M|		uint16_t messageLen = be16toh(getBasicHeader()->length);
   23|  1.21M|		if (m_DataLen < messageLen)
  ------------------
  |  Branch (23:7): [True: 83.5k, False: 1.13M]
  ------------------
   24|  83.5k|		{
   25|  83.5k|			return m_DataLen;
   26|  83.5k|		}
   27|       |
   28|  1.13M|		return (size_t)messageLen;
   29|  1.21M|	}
_ZN4pcpp8BgpLayer13parseBgpLayerEPhmPNS_5LayerEPNS_6PacketE:
   32|   180k|	{
   33|   180k|		if (data == nullptr || dataLen < sizeof(bgp_common_header))
  ------------------
  |  Branch (33:7): [True: 0, False: 180k]
  |  Branch (33:26): [True: 9.96k, False: 170k]
  ------------------
   34|  9.96k|			return nullptr;
   35|       |
   36|   170k|		auto* bgpHeader = reinterpret_cast<bgp_common_header*>(data);
   37|       |
   38|       |		// illegal header data - length is too small
   39|   170k|		uint16_t messageLen = be16toh(bgpHeader->length);
   40|   170k|		if (dataLen < messageLen || messageLen < static_cast<uint16_t>(sizeof(bgp_common_header)))
  ------------------
  |  Branch (40:7): [True: 6.68k, False: 163k]
  |  Branch (40:31): [True: 1.97k, False: 161k]
  ------------------
   41|  8.66k|			return nullptr;
   42|       |
   43|   161k|		switch (bgpHeader->messageType)
   44|   161k|		{
   45|  22.9k|		case 1:  // OPEN
  ------------------
  |  Branch (45:3): [True: 22.9k, False: 138k]
  ------------------
   46|  22.9k|			return new BgpOpenMessageLayer(data, dataLen, prevLayer, packet);
   47|   128k|		case 2:  // UPDATE
  ------------------
  |  Branch (47:3): [True: 128k, False: 32.8k]
  ------------------
   48|   128k|			return BgpUpdateMessageLayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (48:11): [True: 127k, False: 1.24k]
  ------------------
   49|   128k|			           ? new BgpUpdateMessageLayer(data, dataLen, prevLayer, packet)
   50|   128k|			           : nullptr;
   51|  3.24k|		case 3:  // NOTIFICATION
  ------------------
  |  Branch (51:3): [True: 3.24k, False: 158k]
  ------------------
   52|  3.24k|			return new BgpNotificationMessageLayer(data, dataLen, prevLayer, packet);
   53|  4.56k|		case 4:  // KEEPALIVE
  ------------------
  |  Branch (53:3): [True: 4.56k, False: 157k]
  ------------------
   54|  4.56k|			return new BgpKeepaliveMessageLayer(data, dataLen, prevLayer, packet);
   55|  1.89k|		case 5:  // ROUTE-REFRESH
  ------------------
  |  Branch (55:3): [True: 1.89k, False: 159k]
  ------------------
   56|  1.89k|			return new BgpRouteRefreshMessageLayer(data, dataLen, prevLayer, packet);
   57|    232|		default:
  ------------------
  |  Branch (57:3): [True: 232, False: 161k]
  ------------------
   58|    232|			return nullptr;
   59|   161k|		}
   60|   161k|	}
_ZNK4pcpp8BgpLayer22getMessageTypeAsStringEv:
   63|  52.1k|	{
   64|  52.1k|		switch (getBgpMessageType())
   65|  52.1k|		{
   66|  10.0k|		case BgpLayer::Open:
  ------------------
  |  Branch (66:3): [True: 10.0k, False: 42.1k]
  ------------------
   67|  10.0k|			return "OPEN";
   68|  36.6k|		case BgpLayer::Update:
  ------------------
  |  Branch (68:3): [True: 36.6k, False: 15.5k]
  ------------------
   69|  36.6k|			return "UPDATE";
   70|  1.66k|		case BgpLayer::Notification:
  ------------------
  |  Branch (70:3): [True: 1.66k, False: 50.5k]
  ------------------
   71|  1.66k|			return "NOTIFICATION";
   72|  2.73k|		case BgpLayer::Keepalive:
  ------------------
  |  Branch (72:3): [True: 2.73k, False: 49.4k]
  ------------------
   73|  2.73k|			return "KEEPALIVE";
   74|  1.13k|		case BgpLayer::RouteRefresh:
  ------------------
  |  Branch (74:3): [True: 1.13k, False: 51.0k]
  ------------------
   75|  1.13k|			return "ROUTE-REFRESH";
   76|      0|		default:
  ------------------
  |  Branch (76:3): [True: 0, False: 52.1k]
  ------------------
   77|      0|			return "Unknown";
   78|  52.1k|		}
   79|  52.1k|	}
_ZN4pcpp8BgpLayer14parseNextLayerEv:
   82|   160k|	{
   83|   160k|		size_t headerLen = getHeaderLen();
   84|   160k|		if (m_DataLen <= headerLen || headerLen == 0)
  ------------------
  |  Branch (84:7): [True: 26.2k, False: 134k]
  |  Branch (84:33): [True: 0, False: 134k]
  ------------------
   85|  26.2k|			return;
   86|       |
   87|   134k|		uint8_t* payload = m_Data + headerLen;
   88|   134k|		size_t payloadLen = m_DataLen - headerLen;
   89|       |
   90|   134k|		constructNextLayerFromFactory(BgpLayer::parseBgpLayer, payload, payloadLen);
   91|   134k|	}
_ZNK4pcpp8BgpLayer8toStringEv:
   94|  34.7k|	{
   95|  34.7k|		return "BGP Layer, " + getMessageTypeAsString() + " message";
   96|  34.7k|	}
_ZN4pcpp8BgpLayer22computeCalculateFieldsEv:
   99|  17.3k|	{
  100|  17.3k|		bgp_common_header* bgpHeader = getBasicHeader();
  101|  17.3k|		memset(bgpHeader->marker, 0xff, 16 * sizeof(uint8_t));
  102|  17.3k|		bgpHeader->messageType = (uint8_t)getBgpMessageType();
  103|       |		bgpHeader->length = htobe16(getHeaderLen());
  104|  17.3k|	}
_ZN4pcpp8BgpLayer11extendLayerEim:
  122|  43.4k|	{
  123|  43.4k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (123:7): [True: 43.4k, False: 0]
  ------------------
  124|  43.4k|		{
  125|  43.4k|			int rawPacketLen = getAttachedPacket()->getRawPacket()->getRawDataLen();
  126|  43.4k|			const uint8_t* rawPacketPtr = getAttachedPacket()->getRawPacket()->getRawData();
  127|       |
  128|  43.4k|			if (m_Data - rawPacketPtr + static_cast<ptrdiff_t>(offsetInLayer) > static_cast<ptrdiff_t>(rawPacketLen))
  ------------------
  |  Branch (128:8): [True: 3.36k, False: 40.0k]
  ------------------
  129|  3.36k|			{
  130|  3.36k|				PCPP_LOG_ERROR("Requested offset is larger than total packet length");
  ------------------
  |  |  443|  3.36k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  3.36k|	do                                                                                                                 \
  |  |  |  |  413|  3.36k|	{                                                                                                                  \
  |  |  |  |  414|  3.36k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.36k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.36k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 3.36k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.36k|		{                                                                                                              \
  |  |  |  |  417|  3.36k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  3.36k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.36k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  3.36k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  3.36k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  3.36k|		}                                                                                                              \
  |  |  |  |  422|  3.36k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.36k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  131|  3.36k|				return false;
  132|  3.36k|			}
  133|       |
  134|  40.0k|			if (m_NextLayer != nullptr && static_cast<ptrdiff_t>(offsetInLayer) > m_NextLayer->getData() - m_Data)
  ------------------
  |  Branch (134:8): [True: 35.2k, False: 4.79k]
  |  Branch (134:34): [True: 3.65k, False: 31.6k]
  ------------------
  135|  3.65k|			{
  136|  3.65k|				PCPP_LOG_ERROR("Requested offset exceeds current layer's boundary");
  ------------------
  |  |  443|  3.65k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  3.65k|	do                                                                                                                 \
  |  |  |  |  413|  3.65k|	{                                                                                                                  \
  |  |  |  |  414|  3.65k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.65k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.65k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 3.65k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.65k|		{                                                                                                              \
  |  |  |  |  417|  3.65k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  3.65k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.65k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  3.65k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  3.65k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  3.65k|		}                                                                                                              \
  |  |  |  |  422|  3.65k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.65k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  137|  3.65k|				return false;
  138|  3.65k|			}
  139|  40.0k|		}
  140|       |
  141|  36.4k|		return Layer::extendLayer(offsetInLayer, numOfBytesToExtend);
  142|  43.4k|	}
_ZN4pcpp8BgpLayer12shortenLayerEim:
  145|  45.0k|	{
  146|  45.0k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (146:7): [True: 45.0k, False: 0]
  ------------------
  147|  45.0k|		{
  148|  45.0k|			int rawPacketLen = getAttachedPacket()->getRawPacket()->getRawDataLen();
  149|  45.0k|			const uint8_t* rawPacketPtr = getAttachedPacket()->getRawPacket()->getRawData();
  150|       |
  151|  45.0k|			if (m_Data - rawPacketPtr + static_cast<ptrdiff_t>(offsetInLayer) +
  ------------------
  |  Branch (151:8): [True: 4.08k, False: 40.9k]
  ------------------
  152|  45.0k|			        static_cast<ptrdiff_t>(numOfBytesToShorten) >
  153|  45.0k|			    static_cast<ptrdiff_t>(rawPacketLen))
  154|  4.08k|			{
  155|  4.08k|				PCPP_LOG_ERROR("Requested number of bytes to shorten is larger than total packet length");
  ------------------
  |  |  443|  4.08k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  4.08k|	do                                                                                                                 \
  |  |  |  |  413|  4.08k|	{                                                                                                                  \
  |  |  |  |  414|  4.08k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  4.08k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.08k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 4.08k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  4.08k|		{                                                                                                              \
  |  |  |  |  417|  4.08k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  4.08k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.08k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  4.08k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  4.08k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  4.08k|		}                                                                                                              \
  |  |  |  |  422|  4.08k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 4.08k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  156|  4.08k|				return false;
  157|  4.08k|			}
  158|       |
  159|  40.9k|			if (m_NextLayer != nullptr &&
  ------------------
  |  Branch (159:8): [True: 33.5k, False: 7.39k]
  ------------------
  160|  33.5k|			    static_cast<ptrdiff_t>(offsetInLayer) + static_cast<ptrdiff_t>(numOfBytesToShorten) >
  ------------------
  |  Branch (160:8): [True: 1.28k, False: 32.2k]
  ------------------
  161|  33.5k|			        m_NextLayer->getData() - m_Data)
  162|  1.28k|			{
  163|  1.28k|				PCPP_LOG_ERROR("Requested number of bytes to shorten exceeds current layer's boundary");
  ------------------
  |  |  443|  1.28k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  1.28k|	do                                                                                                                 \
  |  |  |  |  413|  1.28k|	{                                                                                                                  \
  |  |  |  |  414|  1.28k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.28k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.28k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.28k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.28k|		{                                                                                                              \
  |  |  |  |  417|  1.28k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.28k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.28k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.28k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.28k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.28k|		}                                                                                                              \
  |  |  |  |  422|  1.28k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.28k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  164|  1.28k|				return false;
  165|  1.28k|			}
  166|  40.9k|		}
  167|       |
  168|  39.6k|		return Layer::shortenLayer(offsetInLayer, numOfBytesToShorten);
  169|  45.0k|	}
_ZN4pcpp19BgpOpenMessageLayer18optional_parameterC2EhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  176|  16.6k|	{
  177|  16.6k|		type = typeVal;
  178|  16.6k|		length = hexStringToByteArray(valueAsHexString, value, 32);
  179|  16.6k|	}
_ZN4pcpp19BgpOpenMessageLayer25optionalParamsToByteArrayERKNSt3__16vectorINS0_18optional_parameterENS1_9allocatorIS3_EEEEPhm:
  209|  10.0k|	{
  210|  10.0k|		if (resultByteArr == nullptr || maxByteArrSize == 0)
  ------------------
  |  Branch (210:7): [True: 0, False: 10.0k]
  |  Branch (210:35): [True: 0, False: 10.0k]
  ------------------
  211|      0|		{
  212|      0|			return 0;
  213|      0|		}
  214|       |
  215|  10.0k|		size_t dataLen = 0;
  216|       |
  217|  10.0k|		for (const auto& param : optionalParams)
  ------------------
  |  Branch (217:26): [True: 38.5k, False: 8.87k]
  ------------------
  218|  38.5k|		{
  219|  38.5k|			if (param.length > 32)
  ------------------
  |  Branch (219:8): [True: 1.14k, False: 37.3k]
  ------------------
  220|  1.14k|			{
  221|  1.14k|				PCPP_LOG_ERROR("Illegal optional parameter length " << (int)param.length
  ------------------
  |  |  443|  1.14k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  1.14k|	do                                                                                                                 \
  |  |  |  |  413|  1.14k|	{                                                                                                                  \
  |  |  |  |  414|  1.14k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.14k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.14k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.14k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.14k|		{                                                                                                              \
  |  |  |  |  417|  1.14k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.14k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.14k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.14k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.14k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.14k|		}                                                                                                              \
  |  |  |  |  422|  1.14k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.14k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  222|  1.14k|				                                                    << ", must be 32 bytes or less");
  223|  1.14k|				break;  // illegal value
  224|  1.14k|			}
  225|       |
  226|  37.3k|			size_t curDataSize = 2 * sizeof(uint8_t) + (size_t)param.length;
  227|       |
  228|  37.3k|			if (dataLen + curDataSize > maxByteArrSize)
  ------------------
  |  Branch (228:8): [True: 0, False: 37.3k]
  ------------------
  229|      0|			{
  230|      0|				break;
  231|      0|			}
  232|       |
  233|  37.3k|			resultByteArr[0] = param.type;
  234|  37.3k|			resultByteArr[1] = param.length;
  235|  37.3k|			if (param.length > 0)
  ------------------
  |  Branch (235:8): [True: 32.9k, False: 4.43k]
  ------------------
  236|  32.9k|			{
  237|  32.9k|				memcpy(resultByteArr + 2 * sizeof(uint8_t), param.value, param.length);
  238|  32.9k|			}
  239|       |
  240|  37.3k|			dataLen += curDataSize;
  241|  37.3k|			resultByteArr += curDataSize;
  242|  37.3k|		}
  243|       |
  244|  10.0k|		return dataLen;
  245|  10.0k|	}
_ZN4pcpp19BgpOpenMessageLayer21getOptionalParametersERNSt3__16vectorINS0_18optional_parameterENS1_9allocatorIS3_EEEE:
  259|  3.33k|	{
  260|  3.33k|		bgp_open_message* msgHdr = getOpenMsgHeader();
  261|  3.33k|		if (msgHdr == nullptr || msgHdr->optionalParameterLength == 0)
  ------------------
  |  Branch (261:7): [True: 0, False: 3.33k]
  |  Branch (261:28): [True: 31, False: 3.30k]
  ------------------
  262|     31|		{
  263|     31|			return;
  264|     31|		}
  265|       |
  266|  3.30k|		size_t optionalParamsLen = msgHdr->optionalParameterLength;
  267|  3.30k|		if (optionalParamsLen > getHeaderLen() - sizeof(bgp_open_message))
  ------------------
  |  Branch (267:7): [True: 1.01k, False: 2.29k]
  ------------------
  268|  1.01k|		{
  269|  1.01k|			optionalParamsLen = getHeaderLen() - sizeof(bgp_open_message);
  270|  1.01k|		}
  271|       |
  272|  3.30k|		uint8_t* dataPtr = m_Data + sizeof(bgp_open_message);
  273|  3.30k|		size_t byteCount = 0;
  274|  15.6k|		while (byteCount < optionalParamsLen)
  ------------------
  |  Branch (274:10): [True: 14.4k, False: 1.19k]
  ------------------
  275|  14.4k|		{
  276|  14.4k|			optional_parameter op;
  277|  14.4k|			op.type = dataPtr[0];
  278|  14.4k|			op.length = dataPtr[1];
  279|       |
  280|  14.4k|			if (op.length > optionalParamsLen - byteCount)
  ------------------
  |  Branch (280:8): [True: 2.11k, False: 12.3k]
  ------------------
  281|  2.11k|			{
  282|  2.11k|				PCPP_LOG_ERROR("Optional parameter length is out of bounds: " << (int)op.length);
  ------------------
  |  |  443|  2.11k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  2.11k|	do                                                                                                                 \
  |  |  |  |  413|  2.11k|	{                                                                                                                  \
  |  |  |  |  414|  2.11k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.11k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.11k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 2.11k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.11k|		{                                                                                                              \
  |  |  |  |  417|  2.11k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  2.11k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.11k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  2.11k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  2.11k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  2.11k|		}                                                                                                              \
  |  |  |  |  422|  2.11k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.11k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  283|  2.11k|				break;
  284|  2.11k|			}
  285|       |
  286|  12.3k|			if (op.length > 0)
  ------------------
  |  Branch (286:8): [True: 10.1k, False: 2.21k]
  ------------------
  287|  10.1k|			{
  288|  10.1k|				memcpy(op.value, dataPtr + 2 * sizeof(uint8_t), (op.length > 32 ? 32 : op.length));
  ------------------
  |  Branch (288:54): [True: 571, False: 9.54k]
  ------------------
  289|  10.1k|			}
  290|       |
  291|  12.3k|			optionalParameters.push_back(op);
  292|  12.3k|			size_t totalLen = 2 + (size_t)op.length;
  293|  12.3k|			byteCount += totalLen;
  294|  12.3k|			dataPtr += totalLen;
  295|  12.3k|		}
  296|  3.30k|	}
_ZN4pcpp19BgpOpenMessageLayer27getOptionalParametersLengthEv:
  299|  10.0k|	{
  300|  10.0k|		bgp_open_message* msgHdr = getOpenMsgHeader();
  301|  10.0k|		if (msgHdr != nullptr)
  ------------------
  |  Branch (301:7): [True: 10.0k, False: 0]
  ------------------
  302|  10.0k|		{
  303|  10.0k|			auto optParamLen = static_cast<size_t>(msgHdr->optionalParameterLength);
  304|       |
  305|  10.0k|			constexpr size_t bgpOpenMsgHeaderSize = sizeof(bgp_open_message);
  306|  10.0k|			size_t headerLen = getHeaderLen();
  307|  10.0k|			if (headerLen < optParamLen + bgpOpenMsgHeaderSize)
  ------------------
  |  Branch (307:8): [True: 1.03k, False: 8.98k]
  ------------------
  308|  1.03k|			{
  309|  1.03k|				PCPP_LOG_WARN("BGP Layer optional param length exceeds total BGP message. "
  ------------------
  |  |  431|  1.03k|#	define PCPP_LOG_WARN(message) PCPP_LOG(pcpp::LogLevel::Warn, message)
  |  |  ------------------
  |  |  |  |  412|  1.03k|	do                                                                                                                 \
  |  |  |  |  413|  1.03k|	{                                                                                                                  \
  |  |  |  |  414|  1.03k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.03k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.03k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.03k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.03k|		{                                                                                                              \
  |  |  |  |  417|  1.03k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.03k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.03k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.03k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.03k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.03k|		}                                                                                                              \
  |  |  |  |  422|  1.03k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.03k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  310|  1.03k|				              "This packet might be malformed! Trimming to maximum allowed by BGP message length.");
  311|  1.03k|				optParamLen = headerLen >= bgpOpenMsgHeaderSize ? headerLen - bgpOpenMsgHeaderSize : 0;
  ------------------
  |  Branch (311:19): [True: 1.01k, False: 20]
  ------------------
  312|  1.03k|			}
  313|       |
  314|  10.0k|			return optParamLen;
  315|  10.0k|		}
  316|       |
  317|      0|		return 0;
  318|  10.0k|	}
_ZN4pcpp19BgpOpenMessageLayer21setOptionalParametersERKNSt3__16vectorINS0_18optional_parameterENS1_9allocatorIS3_EEEE:
  321|  10.0k|	{
  322|  10.0k|		uint8_t newOptionalParamsData[1500];
  323|  10.0k|		size_t newOptionalParamsDataLen = optionalParamsToByteArray(optionalParameters, newOptionalParamsData, 1500);
  324|  10.0k|		size_t curOptionalParamsDataLen = getOptionalParametersLength();
  325|  10.0k|		int offsetInLayer = sizeof(bgp_open_message);
  326|       |
  327|  10.0k|		if (newOptionalParamsDataLen > curOptionalParamsDataLen)
  ------------------
  |  Branch (327:7): [True: 2.98k, False: 7.03k]
  ------------------
  328|  2.98k|		{
  329|  2.98k|			size_t numOfBytesToExtend = newOptionalParamsDataLen - curOptionalParamsDataLen;
  330|       |
  331|  2.98k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (331:8): [True: 27, False: 2.95k]
  ------------------
  332|     27|			{
  333|     27|				PCPP_LOG_ERROR("Couldn't extend BGP open layer to include the additional optional parameters");
  ------------------
  |  |  443|     27|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|     27|	do                                                                                                                 \
  |  |  |  |  413|     27|	{                                                                                                                  \
  |  |  |  |  414|     27|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     27|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     27|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 27, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|     27|		{                                                                                                              \
  |  |  |  |  417|     27|			auto ctx =                                                                                                 \
  |  |  |  |  418|     27|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     27|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|     27|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|     27|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|     27|		}                                                                                                              \
  |  |  |  |  422|     27|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 27]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  334|     27|				return false;
  335|     27|			}
  336|  2.98k|		}
  337|  7.03k|		else if (newOptionalParamsDataLen < curOptionalParamsDataLen)
  ------------------
  |  Branch (337:12): [True: 5.52k, False: 1.50k]
  ------------------
  338|  5.52k|		{
  339|  5.52k|			size_t numOfBytesToShorten = curOptionalParamsDataLen - newOptionalParamsDataLen;
  340|       |
  341|  5.52k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (341:8): [True: 740, False: 4.78k]
  ------------------
  342|    740|			{
  343|    740|				PCPP_LOG_ERROR("Couldn't shorten BGP open layer to set the right size of the optional parameters data");
  ------------------
  |  |  443|    740|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    740|	do                                                                                                                 \
  |  |  |  |  413|    740|	{                                                                                                                  \
  |  |  |  |  414|    740|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    740|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    740|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 740, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    740|		{                                                                                                              \
  |  |  |  |  417|    740|			auto ctx =                                                                                                 \
  |  |  |  |  418|    740|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    740|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    740|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    740|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    740|		}                                                                                                              \
  |  |  |  |  422|    740|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 740]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  344|    740|				return false;
  345|    740|			}
  346|  5.52k|		}
  347|       |
  348|  9.25k|		if (newOptionalParamsDataLen > 0)
  ------------------
  |  Branch (348:7): [True: 4.79k, False: 4.45k]
  ------------------
  349|  4.79k|		{
  350|  4.79k|			memcpy(m_Data + offsetInLayer, newOptionalParamsData, newOptionalParamsDataLen);
  351|  4.79k|		}
  352|       |
  353|  9.25k|		getOpenMsgHeader()->optionalParameterLength = (uint8_t)newOptionalParamsDataLen;
  354|  9.25k|		getOpenMsgHeader()->length = htobe16(sizeof(bgp_open_message) + newOptionalParamsDataLen);
  355|       |
  356|  9.25k|		return true;
  357|  10.0k|	}
_ZN4pcpp19BgpOpenMessageLayer23clearOptionalParametersEv:
  360|  3.33k|	{
  361|  3.33k|		return setOptionalParameters(std::vector<optional_parameter>());
  362|  3.33k|	}
_ZN4pcpp21BgpUpdateMessageLayer14path_attributeC2EhhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  370|  36.6k|	{
  371|  36.6k|		flags = flagsVal;
  372|  36.6k|		type = typeVal;
  373|  36.6k|		length = hexStringToByteArray(dataAsHexString, data, 32);
  374|  36.6k|	}
_ZN4pcpp21BgpUpdateMessageLayer20parsePrefixAndIPDataEPhmRNSt3__16vectorINS0_13prefix_and_ipENS2_9allocatorIS4_EEEE:
  427|  9.10k|	{
  428|  9.10k|		size_t byteCount = 0;
  429|  20.0k|		while (byteCount < dataLen)
  ------------------
  |  Branch (429:10): [True: 13.5k, False: 6.53k]
  ------------------
  430|  13.5k|		{
  431|  13.5k|			prefix_and_ip wr;
  432|  13.5k|			wr.prefix = dataPtr[0];
  433|  13.5k|			size_t curByteCount = 1;
  434|  13.5k|			if (wr.prefix == 32)
  ------------------
  |  Branch (434:8): [True: 5.50k, False: 8.02k]
  ------------------
  435|  5.50k|			{
  436|  5.50k|				uint8_t octets[4] = { dataPtr[1], dataPtr[2], dataPtr[3], dataPtr[4] };
  437|  5.50k|				wr.ipAddr = IPv4Address(octets);
  438|  5.50k|				curByteCount += 4;
  439|  5.50k|			}
  440|  8.02k|			else if (wr.prefix == 24)
  ------------------
  |  Branch (440:13): [True: 5.43k, False: 2.59k]
  ------------------
  441|  5.43k|			{
  442|  5.43k|				uint8_t octets[4] = { dataPtr[1], dataPtr[2], dataPtr[3], 0 };
  443|  5.43k|				wr.ipAddr = IPv4Address(octets);
  444|  5.43k|				curByteCount += 3;
  445|  5.43k|			}
  446|  2.59k|			else if (wr.prefix == 16)
  ------------------
  |  Branch (446:13): [True: 20, False: 2.57k]
  ------------------
  447|     20|			{
  448|     20|				uint8_t octets[4] = { dataPtr[1], dataPtr[2], 0, 0 };
  449|     20|				wr.ipAddr = IPv4Address(octets);
  450|     20|				curByteCount += 2;
  451|     20|			}
  452|  2.57k|			else if (wr.prefix == 8)
  ------------------
  |  Branch (452:13): [True: 0, False: 2.57k]
  ------------------
  453|      0|			{
  454|      0|				uint8_t octets[4] = { dataPtr[1], 0, 0, 0 };
  455|      0|				wr.ipAddr = IPv4Address(octets);
  456|      0|				curByteCount += 1;
  457|      0|			}
  458|  2.57k|			else
  459|  2.57k|			{
  460|  2.57k|				PCPP_LOG_DEBUG("Illegal prefix value " << (int)wr.prefix);
  ------------------
  |  |  425|  2.57k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  2.57k|	do                                                                                                                 \
  |  |  |  |  413|  2.57k|	{                                                                                                                  \
  |  |  |  |  414|  2.57k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.57k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.57k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 2.57k]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.57k|		{                                                                                                              \
  |  |  |  |  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.57k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.57k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|  2.57k|				break;  // illegal value
  462|  2.57k|			}
  463|       |
  464|  10.9k|			result.push_back(wr);
  465|  10.9k|			dataPtr += curByteCount;
  466|  10.9k|			byteCount += curByteCount;
  467|  10.9k|		}
  468|  9.10k|	}
_ZN4pcpp21BgpUpdateMessageLayer26prefixAndIPDataToByteArrayERKNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEEPhm:
  472|  73.2k|	{
  473|  73.2k|		if (resultByteArr == nullptr || maxByteArrSize == 0)
  ------------------
  |  Branch (473:7): [True: 0, False: 73.2k]
  |  Branch (473:35): [True: 0, False: 73.2k]
  ------------------
  474|      0|		{
  475|      0|			return 0;
  476|      0|		}
  477|       |
  478|  73.2k|		size_t dataLen = 0;
  479|       |
  480|  73.2k|		for (const auto& prefixAndIp : prefixAndIpData)
  ------------------
  |  Branch (480:32): [True: 82.9k, False: 73.2k]
  ------------------
  481|  82.9k|		{
  482|  82.9k|			uint8_t curData[5];
  483|  82.9k|			curData[0] = prefixAndIp.prefix;
  484|  82.9k|			size_t curDataSize = 1;
  485|  82.9k|			const uint8_t* octets = prefixAndIp.ipAddr.toBytes();
  486|  82.9k|			if (prefixAndIp.prefix == 32)
  ------------------
  |  Branch (486:8): [True: 11.0k, False: 71.9k]
  ------------------
  487|  11.0k|			{
  488|  11.0k|				curDataSize += 4;
  489|  11.0k|				curData[1] = octets[0];
  490|  11.0k|				curData[2] = octets[1];
  491|  11.0k|				curData[3] = octets[2];
  492|  11.0k|				curData[4] = octets[3];
  493|  11.0k|			}
  494|  71.9k|			else if (prefixAndIp.prefix == 24)
  ------------------
  |  Branch (494:13): [True: 59.7k, False: 12.2k]
  ------------------
  495|  59.7k|			{
  496|  59.7k|				curDataSize += 3;
  497|  59.7k|				curData[1] = octets[0];
  498|  59.7k|				curData[2] = octets[1];
  499|  59.7k|				curData[3] = octets[2];
  500|  59.7k|			}
  501|  12.2k|			else if (prefixAndIp.prefix == 16)
  ------------------
  |  Branch (501:13): [True: 12.2k, False: 0]
  ------------------
  502|  12.2k|			{
  503|  12.2k|				curDataSize += 2;
  504|  12.2k|				curData[1] = octets[0];
  505|  12.2k|				curData[2] = octets[1];
  506|  12.2k|			}
  507|      0|			else if (prefixAndIp.prefix == 8)
  ------------------
  |  Branch (507:13): [True: 0, False: 0]
  ------------------
  508|      0|			{
  509|      0|				curDataSize += 1;
  510|      0|				curData[1] = octets[0];
  511|      0|			}
  512|      0|			else
  513|      0|			{
  514|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  515|      0|				break;  // illegal value
  516|      0|			}
  517|       |
  518|  82.9k|			if (dataLen + curDataSize > maxByteArrSize)
  ------------------
  |  Branch (518:8): [True: 0, False: 82.9k]
  ------------------
  519|      0|			{
  520|      0|				break;
  521|      0|			}
  522|       |
  523|  82.9k|			dataLen += curDataSize;
  524|       |
  525|  82.9k|			memcpy(resultByteArr, curData, curDataSize);
  526|  82.9k|			resultByteArr += curDataSize;
  527|  82.9k|		}
  528|       |
  529|  73.2k|		return dataLen;
  530|  73.2k|	}
_ZN4pcpp21BgpUpdateMessageLayer25pathAttributesToByteArrayERKNSt3__16vectorINS0_14path_attributeENS1_9allocatorIS3_EEEEPhm:
  534|  36.6k|	{
  535|  36.6k|		if (resultByteArr == nullptr || maxByteArrSize == 0)
  ------------------
  |  Branch (535:7): [True: 0, False: 36.6k]
  |  Branch (535:35): [True: 0, False: 36.6k]
  ------------------
  536|      0|		{
  537|      0|			return 0;
  538|      0|		}
  539|       |
  540|  36.6k|		size_t dataLen = 0;
  541|       |
  542|  36.6k|		for (const auto& attribute : pathAttributes)
  ------------------
  |  Branch (542:30): [True: 78.1k, False: 19.7k]
  ------------------
  543|  78.1k|		{
  544|  78.1k|			if (attribute.length > 32)
  ------------------
  |  Branch (544:8): [True: 16.8k, False: 61.3k]
  ------------------
  545|  16.8k|			{
  546|  16.8k|				PCPP_LOG_ERROR("Illegal path attribute length " << (int)attribute.length);
  ------------------
  |  |  443|  16.8k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  16.8k|	do                                                                                                                 \
  |  |  |  |  413|  16.8k|	{                                                                                                                  \
  |  |  |  |  414|  16.8k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  16.8k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.8k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 16.8k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  16.8k|		{                                                                                                              \
  |  |  |  |  417|  16.8k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  16.8k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.8k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  16.8k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  16.8k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  16.8k|		}                                                                                                              \
  |  |  |  |  422|  16.8k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 16.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  547|  16.8k|				break;  // illegal value
  548|  16.8k|			}
  549|       |
  550|  61.3k|			size_t curDataSize = 3 * sizeof(uint8_t) + (size_t)attribute.length;
  551|       |
  552|  61.3k|			if (dataLen + curDataSize > maxByteArrSize)
  ------------------
  |  Branch (552:8): [True: 0, False: 61.3k]
  ------------------
  553|      0|			{
  554|      0|				break;
  555|      0|			}
  556|       |
  557|  61.3k|			resultByteArr[0] = attribute.flags;
  558|  61.3k|			resultByteArr[1] = attribute.type;
  559|  61.3k|			resultByteArr[2] = attribute.length;
  560|  61.3k|			if (attribute.length > 0)
  ------------------
  |  Branch (560:8): [True: 43.8k, False: 17.4k]
  ------------------
  561|  43.8k|			{
  562|  43.8k|				memcpy(resultByteArr + 3 * sizeof(uint8_t), attribute.data, attribute.length);
  563|  43.8k|			}
  564|       |
  565|  61.3k|			dataLen += curDataSize;
  566|  61.3k|			resultByteArr += curDataSize;
  567|  61.3k|		}
  568|       |
  569|  36.6k|		return dataLen;
  570|  36.6k|	}
_ZNK4pcpp21BgpUpdateMessageLayer24getWithdrawnRoutesLengthEv:
  573|   306k|	{
  574|   306k|		size_t headerLen = getHeaderLen();
  575|   306k|		size_t minLen = sizeof(bgp_common_header) + sizeof(uint16_t);
  576|   306k|		if (headerLen >= minLen)
  ------------------
  |  Branch (576:7): [True: 291k, False: 14.7k]
  ------------------
  577|   291k|		{
  578|   291k|			uint16_t res = be16toh(*(uint16_t*)(m_Data + sizeof(bgp_common_header)));
  579|   291k|			if ((size_t)res > headerLen - minLen)
  ------------------
  |  Branch (579:8): [True: 38.7k, False: 252k]
  ------------------
  580|  38.7k|			{
  581|  38.7k|				return headerLen - minLen;
  582|  38.7k|			}
  583|       |
  584|   252k|			return (size_t)res;
  585|   291k|		}
  586|       |
  587|  14.7k|		return 0;
  588|   306k|	}
_ZN4pcpp21BgpUpdateMessageLayer18getWithdrawnRoutesERNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  591|  12.2k|	{
  592|  12.2k|		size_t withdrawnRouteLen = getWithdrawnRoutesLength();
  593|  12.2k|		if (withdrawnRouteLen == 0)
  ------------------
  |  Branch (593:7): [True: 10.8k, False: 1.39k]
  ------------------
  594|  10.8k|		{
  595|  10.8k|			return;
  596|  10.8k|		}
  597|       |
  598|  1.39k|		uint8_t* dataPtr = m_Data + sizeof(bgp_common_header) + sizeof(uint16_t);
  599|  1.39k|		parsePrefixAndIPData(dataPtr, withdrawnRouteLen, withdrawnRoutes);
  600|  1.39k|	}
_ZNK4pcpp21BgpUpdateMessageLayer23getPathAttributesLengthEv:
  603|   135k|	{
  604|   135k|		size_t headerLen = getHeaderLen();
  605|   135k|		size_t minLen = sizeof(bgp_common_header) + 2 * sizeof(uint16_t);
  606|   135k|		if (headerLen >= minLen)
  ------------------
  |  Branch (606:7): [True: 125k, False: 10.5k]
  ------------------
  607|   125k|		{
  608|   125k|			size_t withdrawnRouteLen = getWithdrawnRoutesLength();
  609|       |			// Ensure the memory access is within bounds
  610|   125k|			if (sizeof(bgp_common_header) + sizeof(uint16_t) + withdrawnRouteLen + sizeof(uint16_t) > headerLen)
  ------------------
  |  Branch (610:8): [True: 17.4k, False: 107k]
  ------------------
  611|  17.4k|			{
  612|  17.4k|				return 0;  // Invalid access, return 0
  613|  17.4k|			}
  614|   107k|			uint16_t res =
  615|   107k|			    be16toh(*(uint16_t*)(m_Data + sizeof(bgp_common_header) + sizeof(uint16_t) + withdrawnRouteLen));
  616|   107k|			if ((size_t)res > headerLen - minLen - withdrawnRouteLen)
  ------------------
  |  Branch (616:8): [True: 8.70k, False: 98.9k]
  ------------------
  617|  8.70k|			{
  618|  8.70k|				return headerLen - minLen - withdrawnRouteLen;
  619|  8.70k|			}
  620|       |
  621|  98.9k|			return (size_t)res;
  622|   107k|		}
  623|       |
  624|  10.5k|		return 0;
  625|   135k|	}
_ZN4pcpp21BgpUpdateMessageLayer18setWithdrawnRoutesERKNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  628|  36.6k|	{
  629|  36.6k|		uint8_t newWithdrawnRoutesData[1500];
  630|  36.6k|		size_t newWithdrawnRoutesDataLen = prefixAndIPDataToByteArray(withdrawnRoutes, newWithdrawnRoutesData, 1500);
  631|  36.6k|		size_t curWithdrawnRoutesDataLen = getWithdrawnRoutesLength();
  632|  36.6k|		int offsetInLayer = sizeof(bgp_common_header) + sizeof(uint16_t);
  633|       |
  634|  36.6k|		if (newWithdrawnRoutesDataLen > curWithdrawnRoutesDataLen)
  ------------------
  |  Branch (634:7): [True: 11.0k, False: 25.5k]
  ------------------
  635|  11.0k|		{
  636|  11.0k|			size_t numOfBytesToExtend = newWithdrawnRoutesDataLen - curWithdrawnRoutesDataLen;
  637|       |
  638|  11.0k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (638:8): [True: 2.15k, False: 8.88k]
  ------------------
  639|  2.15k|			{
  640|  2.15k|				PCPP_LOG_ERROR("Couldn't extend BGP update layer to include the additional withdrawn routes");
  ------------------
  |  |  443|  2.15k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  2.15k|	do                                                                                                                 \
  |  |  |  |  413|  2.15k|	{                                                                                                                  \
  |  |  |  |  414|  2.15k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.15k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.15k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 2.15k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.15k|		{                                                                                                              \
  |  |  |  |  417|  2.15k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  2.15k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.15k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  2.15k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  2.15k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  2.15k|		}                                                                                                              \
  |  |  |  |  422|  2.15k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.15k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  641|  2.15k|				return false;
  642|  2.15k|			}
  643|  11.0k|		}
  644|  25.5k|		else if (newWithdrawnRoutesDataLen < curWithdrawnRoutesDataLen)
  ------------------
  |  Branch (644:12): [True: 13.0k, False: 12.5k]
  ------------------
  645|  13.0k|		{
  646|  13.0k|			size_t numOfBytesToShorten = curWithdrawnRoutesDataLen - newWithdrawnRoutesDataLen;
  647|       |
  648|  13.0k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (648:8): [True: 4.15k, False: 8.87k]
  ------------------
  649|  4.15k|			{
  650|  4.15k|				PCPP_LOG_ERROR("Couldn't shorten BGP update layer to set the right size of the withdrawn routes data");
  ------------------
  |  |  443|  4.15k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  4.15k|	do                                                                                                                 \
  |  |  |  |  413|  4.15k|	{                                                                                                                  \
  |  |  |  |  414|  4.15k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  4.15k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.15k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 4.15k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  4.15k|		{                                                                                                              \
  |  |  |  |  417|  4.15k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  4.15k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.15k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  4.15k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  4.15k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  4.15k|		}                                                                                                              \
  |  |  |  |  422|  4.15k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 4.15k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  651|  4.15k|				return false;
  652|  4.15k|			}
  653|  13.0k|		}
  654|       |
  655|  30.3k|		if (newWithdrawnRoutesDataLen > 0)
  ------------------
  |  Branch (655:7): [True: 8.95k, False: 21.3k]
  ------------------
  656|  8.95k|		{
  657|  8.95k|			memcpy(m_Data + offsetInLayer, newWithdrawnRoutesData, newWithdrawnRoutesDataLen);
  658|  8.95k|		}
  659|       |
  660|  30.3k|		getBasicHeader()->length =
  661|  30.3k|		    htobe16(be16toh(getBasicHeader()->length) + newWithdrawnRoutesDataLen - curWithdrawnRoutesDataLen);
  662|       |
  663|  30.3k|		uint16_t newWithdrawnRoutesDataLenBE = htobe16(newWithdrawnRoutesDataLen);
  664|  30.3k|		memcpy(m_Data + sizeof(bgp_common_header), &newWithdrawnRoutesDataLenBE, sizeof(uint16_t));
  665|       |
  666|  30.3k|		return true;
  667|  36.6k|	}
_ZN4pcpp21BgpUpdateMessageLayer20clearWithdrawnRoutesEv:
  670|  12.2k|	{
  671|  12.2k|		return setWithdrawnRoutes(std::vector<prefix_and_ip>());
  672|  12.2k|	}
_ZN4pcpp21BgpUpdateMessageLayer17getPathAttributesERNSt3__16vectorINS0_14path_attributeENS1_9allocatorIS3_EEEE:
  675|  12.2k|	{
  676|  12.2k|		size_t pathAttrLen = getPathAttributesLength();
  677|  12.2k|		if (pathAttrLen == 0)
  ------------------
  |  Branch (677:7): [True: 3.64k, False: 8.56k]
  ------------------
  678|  3.64k|		{
  679|  3.64k|			return;
  680|  3.64k|		}
  681|       |
  682|  8.56k|		uint8_t* dataPtr = m_Data + sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + getWithdrawnRoutesLength();
  683|  8.56k|		size_t byteCount = 0;
  684|  41.9k|		while (byteCount < pathAttrLen)
  ------------------
  |  Branch (684:10): [True: 33.4k, False: 8.56k]
  ------------------
  685|  33.4k|		{
  686|  33.4k|			path_attribute pa;
  687|  33.4k|			pa.flags = dataPtr[0];
  688|  33.4k|			pa.type = dataPtr[1];
  689|  33.4k|			pa.length = dataPtr[2];
  690|  33.4k|			size_t curByteCount = 3 + pa.length;
  691|  33.4k|			if (pa.length > 0)
  ------------------
  |  Branch (691:8): [True: 24.7k, False: 8.73k]
  ------------------
  692|  24.7k|			{
  693|  24.7k|				size_t dataLenToCopy = (pa.length <= 32 ? pa.length : 32);
  ------------------
  |  Branch (693:29): [True: 16.2k, False: 8.44k]
  ------------------
  694|  24.7k|				memcpy(pa.data, dataPtr + 3, dataLenToCopy);
  695|  24.7k|			}
  696|       |
  697|  33.4k|			pathAttributes.push_back(pa);
  698|  33.4k|			dataPtr += curByteCount;
  699|  33.4k|			byteCount += curByteCount;
  700|  33.4k|		}
  701|  8.56k|	}
_ZN4pcpp21BgpUpdateMessageLayer17setPathAttributesERKNSt3__16vectorINS0_14path_attributeENS1_9allocatorIS3_EEEE:
  704|  36.6k|	{
  705|  36.6k|		uint8_t newPathAttributesData[1500];
  706|  36.6k|		size_t newPathAttributesDataLen = pathAttributesToByteArray(pathAttributes, newPathAttributesData, 1500);
  707|  36.6k|		size_t curPathAttributesDataLen = getPathAttributesLength();
  708|  36.6k|		size_t curWithdrawnRoutesDataLen = getWithdrawnRoutesLength();
  709|  36.6k|		int offsetInLayer = sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + curWithdrawnRoutesDataLen;
  710|       |
  711|  36.6k|		if (newPathAttributesDataLen > curPathAttributesDataLen)
  ------------------
  |  Branch (711:7): [True: 11.6k, False: 25.0k]
  ------------------
  712|  11.6k|		{
  713|  11.6k|			size_t numOfBytesToExtend = newPathAttributesDataLen - curPathAttributesDataLen;
  714|       |
  715|  11.6k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (715:8): [True: 3.04k, False: 8.57k]
  ------------------
  716|  3.04k|			{
  717|  3.04k|				PCPP_LOG_ERROR("Couldn't extend BGP update layer to include the additional path attributes");
  ------------------
  |  |  443|  3.04k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  3.04k|	do                                                                                                                 \
  |  |  |  |  413|  3.04k|	{                                                                                                                  \
  |  |  |  |  414|  3.04k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.04k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.04k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 3.04k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.04k|		{                                                                                                              \
  |  |  |  |  417|  3.04k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  3.04k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.04k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  3.04k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  3.04k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  3.04k|		}                                                                                                              \
  |  |  |  |  422|  3.04k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.04k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  718|  3.04k|				return false;
  719|  3.04k|			}
  720|  11.6k|		}
  721|  25.0k|		else if (newPathAttributesDataLen < curPathAttributesDataLen)
  ------------------
  |  Branch (721:12): [True: 17.2k, False: 7.73k]
  ------------------
  722|  17.2k|		{
  723|  17.2k|			size_t numOfBytesToShorten = curPathAttributesDataLen - newPathAttributesDataLen;
  724|       |
  725|  17.2k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (725:8): [True: 860, False: 16.4k]
  ------------------
  726|    860|			{
  727|    860|				PCPP_LOG_ERROR("Couldn't shorten BGP update layer to set the right size of the path attributes data");
  ------------------
  |  |  443|    860|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    860|	do                                                                                                                 \
  |  |  |  |  413|    860|	{                                                                                                                  \
  |  |  |  |  414|    860|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    860|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    860|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 860, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    860|		{                                                                                                              \
  |  |  |  |  417|    860|			auto ctx =                                                                                                 \
  |  |  |  |  418|    860|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    860|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    860|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    860|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    860|		}                                                                                                              \
  |  |  |  |  422|    860|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 860]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  728|    860|				return false;
  729|    860|			}
  730|  17.2k|		}
  731|       |
  732|  32.7k|		if (newPathAttributesDataLen > 0)
  ------------------
  |  Branch (732:7): [True: 16.2k, False: 16.4k]
  ------------------
  733|  16.2k|		{
  734|  16.2k|			memcpy(m_Data + offsetInLayer, newPathAttributesData, newPathAttributesDataLen);
  735|  16.2k|		}
  736|       |
  737|  32.7k|		getBasicHeader()->length =
  738|  32.7k|		    htobe16(be16toh(getBasicHeader()->length) + newPathAttributesDataLen - curPathAttributesDataLen);
  739|       |
  740|  32.7k|		uint16_t newWithdrawnRoutesDataLenBE = htobe16(newPathAttributesDataLen);
  741|  32.7k|		memcpy(m_Data + sizeof(bgp_common_header) + sizeof(uint16_t) + curWithdrawnRoutesDataLen,
  742|  32.7k|		       &newWithdrawnRoutesDataLenBE, sizeof(uint16_t));
  743|       |
  744|  32.7k|		return true;
  745|  36.6k|	}
_ZN4pcpp21BgpUpdateMessageLayer19clearPathAttributesEv:
  748|  12.2k|	{
  749|  12.2k|		return setPathAttributes(std::vector<path_attribute>());
  750|  12.2k|	}
_ZNK4pcpp21BgpUpdateMessageLayer37getNetworkLayerReachabilityInfoLengthEv:
  753|  48.8k|	{
  754|  48.8k|		size_t headerLen = getHeaderLen();
  755|  48.8k|		size_t minLen = sizeof(bgp_common_header) + 2 * sizeof(uint16_t);
  756|  48.8k|		if (headerLen >= minLen)
  ------------------
  |  Branch (756:7): [True: 42.5k, False: 6.34k]
  ------------------
  757|  42.5k|		{
  758|  42.5k|			size_t withdrawnRouteLen = getWithdrawnRoutesLength();
  759|  42.5k|			size_t pathAttrLen = getPathAttributesLength();
  760|  42.5k|			int nlriSize = headerLen - minLen - withdrawnRouteLen - pathAttrLen;
  761|  42.5k|			if (nlriSize >= 0)
  ------------------
  |  Branch (761:8): [True: 36.2k, False: 6.20k]
  ------------------
  762|  36.2k|			{
  763|  36.2k|				return (size_t)nlriSize;
  764|  36.2k|			}
  765|       |
  766|  6.20k|			return 0;
  767|  42.5k|		}
  768|       |
  769|  6.34k|		return 0;
  770|  48.8k|	}
_ZN4pcpp21BgpUpdateMessageLayer31getNetworkLayerReachabilityInfoERNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  773|  12.2k|	{
  774|  12.2k|		size_t nlriSize = getNetworkLayerReachabilityInfoLength();
  775|  12.2k|		if (nlriSize == 0)
  ------------------
  |  Branch (775:7): [True: 4.50k, False: 7.70k]
  ------------------
  776|  4.50k|		{
  777|  4.50k|			return;
  778|  4.50k|		}
  779|       |
  780|  7.70k|		uint8_t* dataPtr = m_Data + sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + getWithdrawnRoutesLength() +
  781|  7.70k|		                   getPathAttributesLength();
  782|  7.70k|		parsePrefixAndIPData(dataPtr, nlriSize, nlri);
  783|  7.70k|	}
_ZN4pcpp21BgpUpdateMessageLayer11isDataValidEPKhm:
  786|   128k|	{
  787|   128k|		if (dataSize < sizeof(bgp_common_header) + 2 * sizeof(uint16_t))
  ------------------
  |  Branch (787:7): [True: 5, False: 128k]
  ------------------
  788|      5|			return false;
  789|       |
  790|   128k|		uint16_t withdrLen = be16toh(*(uint16_t*)(data + sizeof(bgp_common_header)));
  791|   128k|		if (dataSize < sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + withdrLen)
  ------------------
  |  Branch (791:7): [True: 928, False: 128k]
  ------------------
  792|    928|			return false;
  793|       |
  794|   128k|		uint16_t attrLen = be16toh(*(uint16_t*)(data + sizeof(bgp_common_header) + sizeof(uint16_t) + withdrLen));
  795|   128k|		if (dataSize < sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + withdrLen + attrLen)
  ------------------
  |  Branch (795:7): [True: 316, False: 127k]
  ------------------
  796|    316|			return false;
  797|       |
  798|   127k|		return true;
  799|   128k|	}
_ZN4pcpp21BgpUpdateMessageLayer31setNetworkLayerReachabilityInfoERKNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  802|  36.6k|	{
  803|  36.6k|		uint8_t newNlriData[1500];
  804|  36.6k|		size_t newNlriDataLen = prefixAndIPDataToByteArray(nlri, newNlriData, 1500);
  805|  36.6k|		size_t curNlriDataLen = getNetworkLayerReachabilityInfoLength();
  806|  36.6k|		size_t curPathAttributesDataLen = getPathAttributesLength();
  807|  36.6k|		size_t curWithdrawnRoutesDataLen = getWithdrawnRoutesLength();
  808|  36.6k|		int offsetInLayer =
  809|  36.6k|		    sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + curWithdrawnRoutesDataLen + curPathAttributesDataLen;
  810|       |
  811|  36.6k|		if (newNlriDataLen > curNlriDataLen)
  ------------------
  |  Branch (811:7): [True: 17.7k, False: 18.8k]
  ------------------
  812|  17.7k|		{
  813|  17.7k|			size_t numOfBytesToExtend = newNlriDataLen - curNlriDataLen;
  814|       |
  815|  17.7k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (815:8): [True: 3.26k, False: 14.5k]
  ------------------
  816|  3.26k|			{
  817|  3.26k|				PCPP_LOG_ERROR("Couldn't extend BGP update layer to include the additional NLRI data");
  ------------------
  |  |  443|  3.26k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  3.26k|	do                                                                                                                 \
  |  |  |  |  413|  3.26k|	{                                                                                                                  \
  |  |  |  |  414|  3.26k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.26k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.26k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 3.26k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.26k|		{                                                                                                              \
  |  |  |  |  417|  3.26k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  3.26k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.26k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  3.26k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  3.26k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  3.26k|		}                                                                                                              \
  |  |  |  |  422|  3.26k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.26k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  818|  3.26k|				return false;
  819|  3.26k|			}
  820|  17.7k|		}
  821|  18.8k|		else if (newNlriDataLen < curNlriDataLen)
  ------------------
  |  Branch (821:12): [True: 9.19k, False: 9.64k]
  ------------------
  822|  9.19k|		{
  823|  9.19k|			size_t numOfBytesToShorten = curNlriDataLen - newNlriDataLen;
  824|       |
  825|  9.19k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (825:8): [True: 204, False: 8.99k]
  ------------------
  826|    204|			{
  827|    204|				PCPP_LOG_ERROR("Couldn't shorten BGP update layer to set the right size of the NLRI data");
  ------------------
  |  |  443|    204|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    204|	do                                                                                                                 \
  |  |  |  |  413|    204|	{                                                                                                                  \
  |  |  |  |  414|    204|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    204|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    204|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 204, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    204|		{                                                                                                              \
  |  |  |  |  417|    204|			auto ctx =                                                                                                 \
  |  |  |  |  418|    204|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    204|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    204|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    204|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    204|		}                                                                                                              \
  |  |  |  |  422|    204|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 204]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  828|    204|				return false;
  829|    204|			}
  830|  9.19k|		}
  831|       |
  832|  33.1k|		if (newNlriDataLen > 0)
  ------------------
  |  Branch (832:7): [True: 15.5k, False: 17.6k]
  ------------------
  833|  15.5k|		{
  834|  15.5k|			memcpy(m_Data + offsetInLayer, newNlriData, newNlriDataLen);
  835|  15.5k|		}
  836|       |
  837|  33.1k|		getBasicHeader()->length = htobe16(be16toh(getBasicHeader()->length) + newNlriDataLen - curNlriDataLen);
  838|       |
  839|  33.1k|		return true;
  840|  36.6k|	}
_ZN4pcpp21BgpUpdateMessageLayer33clearNetworkLayerReachabilityInfoEv:
  843|  12.2k|	{
  844|  12.2k|		return setNetworkLayerReachabilityInfo(std::vector<prefix_and_ip>());
  845|  12.2k|	}
_ZNK4pcpp27BgpNotificationMessageLayer22getNotificationDataLenEv:
  891|    786|	{
  892|    786|		size_t headerLen = getHeaderLen();
  893|    786|		if (headerLen > sizeof(bgp_notification_message))
  ------------------
  |  Branch (893:7): [True: 460, False: 326]
  ------------------
  894|    460|		{
  895|    460|			return headerLen - sizeof(bgp_notification_message);
  896|    460|		}
  897|       |
  898|    326|		return 0;
  899|    786|	}
_ZNK4pcpp27BgpNotificationMessageLayer19getNotificationDataEv:
  902|    556|	{
  903|    556|		if (getNotificationDataLen() > 0)
  ------------------
  |  Branch (903:7): [True: 230, False: 326]
  ------------------
  904|    230|		{
  905|    230|			return m_Data + sizeof(bgp_notification_message);
  906|    230|		}
  907|       |
  908|    326|		return nullptr;
  909|    556|	}
_ZNK4pcpp27BgpNotificationMessageLayer30getNotificationDataAsHexStringEv:
  912|    556|	{
  913|    556|		uint8_t* notificationData = getNotificationData();
  914|    556|		if (notificationData == nullptr)
  ------------------
  |  Branch (914:7): [True: 326, False: 230]
  ------------------
  915|    326|		{
  916|    326|			return "";
  917|    326|		}
  918|       |
  919|    230|		return byteArrayToHexString(notificationData, getNotificationDataLen());
  920|    556|	}

_ZNK4pcpp9CotpLayer8toStringEv:
   24|  6.09k|	{
   25|  6.09k|		return "Cotp Layer";
   26|  6.09k|	}
_ZN4pcpp9CotpLayer11isDataValidEPKhm:
   59|  23.5k|	{
   60|  23.5k|		if (!data || dataSize < sizeof(cotphdr))
  ------------------
  |  Branch (60:7): [True: 0, False: 23.5k]
  |  Branch (60:16): [True: 0, False: 23.5k]
  ------------------
   61|      0|			return false;
   62|       |
   63|  23.5k|		return data[1] == 0xf0 && data[0] == 2;
  ------------------
  |  Branch (63:10): [True: 21.5k, False: 1.99k]
  |  Branch (63:29): [True: 21.5k, False: 0]
  ------------------
   64|  23.5k|	}
_ZN4pcpp9CotpLayer14parseNextLayerEv:
   67|  21.5k|	{
   68|  21.5k|		size_t headerLen = getHeaderLen();
   69|  21.5k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (69:7): [True: 5.34k, False: 16.1k]
  ------------------
   70|  5.34k|			return;
   71|       |
   72|  16.1k|		uint8_t* payload = m_Data + headerLen;
   73|  16.1k|		size_t payloadLen = m_DataLen - headerLen;
   74|       |
   75|  16.1k|		tryConstructNextLayerWithFallback<S7CommLayer, PayloadLayer>(payload, payloadLen);
   76|  16.1k|	}

_ZN4pcpp9DhcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   45|  14.8k|	    : Layer(data, dataLen, prevLayer, packet, DHCP)
   46|  14.8k|	{}
_ZNK4pcpp9DhcpLayer24getClientHardwareAddressEv:
   76|  2.94k|	{
   77|  2.94k|		dhcp_header* hdr = getDhcpHeader();
   78|  2.94k|		if (hdr != nullptr && hdr->hardwareType == 1 && hdr->hardwareAddressLength == 6)
  ------------------
  |  Branch (78:7): [True: 2.94k, False: 0]
  |  Branch (78:25): [True: 2.88k, False: 65]
  |  Branch (78:51): [True: 2.85k, False: 25]
  ------------------
   79|  2.85k|			return MacAddress(hdr->clientHardwareAddress);
   80|       |
   81|     90|		PCPP_LOG_DEBUG("Hardware type isn't Ethernet or hardware addr len != 6, returning MacAddress:Zero");
  ------------------
  |  |  425|     90|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|     90|	do                                                                                                                 \
  |  |  |  |  413|     90|	{                                                                                                                  \
  |  |  |  |  414|     90|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     90|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     90|#define LOG_MODULE PacketLogModuleDhcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 90]
  |  |  |  |  ------------------
  |  |  |  |  416|     90|		{                                                                                                              \
  |  |  |  |  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|     90|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 90]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   82|       |
   83|     90|		return MacAddress::Zero;
   84|  2.94k|	}
_ZN4pcpp9DhcpLayer22computeCalculateFieldsEv:
   95|  2.94k|	{
   96|  2.94k|		dhcp_header* hdr = getDhcpHeader();
   97|       |
   98|  2.94k|		hdr->magicNumber = DHCP_MAGIC_NUMBER;
  ------------------
  |  |    9|  2.94k|#define DHCP_MAGIC_NUMBER 0x63538263
  ------------------
   99|       |
  100|  2.94k|		DhcpMessageType msgType = getMessageType();
  101|  2.94k|		switch (msgType)
  102|  2.94k|		{
  103|     29|		case DHCP_DISCOVER:
  ------------------
  |  Branch (103:3): [True: 29, False: 2.91k]
  ------------------
  104|    698|		case DHCP_REQUEST:
  ------------------
  |  Branch (104:3): [True: 669, False: 2.27k]
  ------------------
  105|    917|		case DHCP_DECLINE:
  ------------------
  |  Branch (105:3): [True: 219, False: 2.72k]
  ------------------
  106|    917|		case DHCP_RELEASE:
  ------------------
  |  Branch (106:3): [True: 0, False: 2.94k]
  ------------------
  107|    926|		case DHCP_INFORM:
  ------------------
  |  Branch (107:3): [True: 9, False: 2.93k]
  ------------------
  108|  2.37k|		case DHCP_UNKNOWN_MSG_TYPE:
  ------------------
  |  Branch (108:3): [True: 1.44k, False: 1.50k]
  ------------------
  109|  2.37k|			hdr->opCode = DHCP_BOOTREQUEST;
  110|  2.37k|			break;
  111|      3|		case DHCP_OFFER:
  ------------------
  |  Branch (111:3): [True: 3, False: 2.94k]
  ------------------
  112|    566|		case DHCP_ACK:
  ------------------
  |  Branch (112:3): [True: 563, False: 2.38k]
  ------------------
  113|    566|		case DHCP_NAK:
  ------------------
  |  Branch (113:3): [True: 0, False: 2.94k]
  ------------------
  114|    566|			hdr->opCode = DHCP_BOOTREPLY;
  115|    566|			break;
  116|      8|		default:
  ------------------
  |  Branch (116:3): [True: 8, False: 2.94k]
  ------------------
  117|      8|			break;
  118|  2.94k|		}
  119|       |
  120|  2.94k|		hdr->hardwareType = 1;           // Ethernet
  121|  2.94k|		hdr->hardwareAddressLength = 6;  // MAC address length
  122|  2.94k|	}
_ZNK4pcpp9DhcpLayer8toStringEv:
  125|  5.89k|	{
  126|  5.89k|		std::string msgType = "Unknown";
  127|  5.89k|		switch (getMessageType())
  128|  5.89k|		{
  129|     58|		case DHCP_DISCOVER:
  ------------------
  |  Branch (129:3): [True: 58, False: 5.83k]
  ------------------
  130|     58|		{
  131|     58|			msgType = "Discover";
  132|     58|			break;
  133|      0|		}
  134|      6|		case DHCP_OFFER:
  ------------------
  |  Branch (134:3): [True: 6, False: 5.89k]
  ------------------
  135|      6|		{
  136|      6|			msgType = "Offer";
  137|      6|			break;
  138|      0|		}
  139|  1.33k|		case DHCP_REQUEST:
  ------------------
  |  Branch (139:3): [True: 1.33k, False: 4.55k]
  ------------------
  140|  1.33k|		{
  141|  1.33k|			msgType = "Request";
  142|  1.33k|			break;
  143|      0|		}
  144|    438|		case DHCP_DECLINE:
  ------------------
  |  Branch (144:3): [True: 438, False: 5.45k]
  ------------------
  145|    438|		{
  146|    438|			msgType = "Decline";
  147|    438|			break;
  148|      0|		}
  149|  1.12k|		case DHCP_ACK:
  ------------------
  |  Branch (149:3): [True: 1.12k, False: 4.77k]
  ------------------
  150|  1.12k|		{
  151|  1.12k|			msgType = "Acknowledge";
  152|  1.12k|			break;
  153|      0|		}
  154|      0|		case DHCP_NAK:
  ------------------
  |  Branch (154:3): [True: 0, False: 5.89k]
  ------------------
  155|      0|		{
  156|      0|			msgType = "Negative Acknowledge";
  157|      0|			break;
  158|      0|		}
  159|      0|		case DHCP_RELEASE:
  ------------------
  |  Branch (159:3): [True: 0, False: 5.89k]
  ------------------
  160|      0|		{
  161|      0|			msgType = "Release";
  162|      0|			break;
  163|      0|		}
  164|     18|		case DHCP_INFORM:
  ------------------
  |  Branch (164:3): [True: 18, False: 5.87k]
  ------------------
  165|     18|		{
  166|     18|			msgType = "Inform";
  167|     18|			break;
  168|      0|		}
  169|  2.91k|		default:
  ------------------
  |  Branch (169:3): [True: 2.91k, False: 2.98k]
  ------------------
  170|  2.91k|			break;
  171|  5.89k|		}
  172|       |
  173|  5.89k|		return "DHCP layer (" + msgType + ")";
  174|  5.89k|	}
_ZNK4pcpp9DhcpLayer14getMessageTypeEv:
  177|  8.84k|	{
  178|  8.84k|		DhcpOption opt = getOptionData(DHCPOPT_DHCP_MESSAGE_TYPE);
  179|  8.84k|		if (opt.isNull())
  ------------------
  |  Branch (179:7): [True: 4.33k, False: 4.51k]
  ------------------
  180|  4.33k|			return DHCP_UNKNOWN_MSG_TYPE;
  181|       |
  182|  4.51k|		return (DhcpMessageType)opt.getValueAs<uint8_t>();
  183|  8.84k|	}
_ZNK4pcpp9DhcpLayer13getOptionDataENS_15DhcpOptionTypesE:
  203|  11.7k|	{
  204|  11.7k|		return m_OptionReader.getTLVRecord((uint8_t)option, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  205|  11.7k|	}
_ZNK4pcpp9DhcpLayer18getFirstOptionDataEv:
  208|  2.90k|	{
  209|  2.90k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  210|  2.90k|	}
_ZNK4pcpp9DhcpLayer17getNextOptionDataENS_10DhcpOptionE:
  213|  57.1k|	{
  214|  57.1k|		return m_OptionReader.getNextTLVRecord(dhcpOption, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  215|  57.1k|	}
_ZNK4pcpp9DhcpLayer15getOptionsCountEv:
  218|  63.0k|	{
  219|  63.0k|		return m_OptionReader.getTLVRecordCount(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  220|  63.0k|	}

_ZNK4pcpp12DhcpV6Option7getTypeEv:
   12|  9.98k|	{
   13|  9.98k|		if (m_Data == nullptr)
  ------------------
  |  Branch (13:7): [True: 0, False: 9.98k]
  ------------------
   14|      0|			return DhcpV6OptionType::DHCPV6_OPT_UNKNOWN;
   15|       |
   16|  9.98k|		uint16_t optionType = be16toh(m_Data->recordType);
   17|  9.98k|		if (optionType <= 62 && optionType != 10 && optionType != 35 && optionType != 57 && optionType != 58)
  ------------------
  |  Branch (17:7): [True: 7.36k, False: 2.62k]
  |  Branch (17:27): [True: 6.74k, False: 624]
  |  Branch (17:47): [True: 6.74k, False: 0]
  |  Branch (17:67): [True: 6.74k, False: 0]
  |  Branch (17:87): [True: 6.54k, False: 194]
  ------------------
   18|  6.54k|		{
   19|  6.54k|			return static_cast<DhcpV6OptionType>(optionType);
   20|  6.54k|		}
   21|  3.44k|		if (optionType == 65 || optionType == 66 || optionType == 68 || optionType == 79 || optionType == 112)
  ------------------
  |  Branch (21:7): [True: 1.27k, False: 2.17k]
  |  Branch (21:27): [True: 0, False: 2.17k]
  |  Branch (21:47): [True: 48, False: 2.12k]
  |  Branch (21:67): [True: 0, False: 2.12k]
  |  Branch (21:87): [True: 0, False: 2.12k]
  ------------------
   22|  1.31k|		{
   23|  1.31k|			return static_cast<DhcpV6OptionType>(optionType);
   24|  1.31k|		}
   25|       |
   26|  2.12k|		return DHCPV6_OPT_UNKNOWN;
   27|  3.44k|	}
_ZNK4pcpp12DhcpV6Option19getValueAsHexStringEv:
   30|  3.44k|	{
   31|  3.44k|		if (m_Data == nullptr)
  ------------------
  |  Branch (31:7): [True: 0, False: 3.44k]
  ------------------
   32|      0|			return "";
   33|       |
   34|  3.44k|		return byteArrayToHexString(m_Data->recordValue, getDataSize());
   35|  3.44k|	}
_ZNK4pcpp12DhcpV6Option12getTotalSizeEv:
   38|   110k|	{
   39|   110k|		if (m_Data == nullptr)
  ------------------
  |  Branch (39:7): [True: 0, False: 110k]
  ------------------
   40|      0|			return 0;
   41|       |
   42|   110k|		return 2 * sizeof(uint16_t) + be16toh(m_Data->recordLen);
   43|   110k|	}
_ZNK4pcpp12DhcpV6Option11getDataSizeEv:
   46|  3.44k|	{
   47|  3.44k|		if (m_Data == nullptr)
  ------------------
  |  Branch (47:7): [True: 0, False: 3.44k]
  ------------------
   48|      0|			return 0;
   49|       |
   50|  3.44k|		return static_cast<size_t>(be16toh(m_Data->recordLen));
   51|  3.44k|	}
_ZN4pcpp11DhcpV6LayerC2EPhmPNS_5LayerEPNS_6PacketE:
   71|  18.6k|	    : Layer(data, dataLen, prevLayer, packet, DHCPv6)
   72|  18.6k|	{}
_ZNK4pcpp11DhcpV6Layer14getMessageTypeEv:
   86|  7.21k|	{
   87|  7.21k|		uint8_t messageType = getDhcpHeader()->messageType;
   88|  7.21k|		if (messageType > 13)
  ------------------
  |  Branch (88:7): [True: 868, False: 6.34k]
  ------------------
   89|    868|		{
   90|    868|			return DHCPV6_UNKNOWN_MSG_TYPE;
   91|    868|		}
   92|       |
   93|  6.34k|		return static_cast<DhcpV6MessageType>(messageType);
   94|  7.21k|	}
_ZNK4pcpp11DhcpV6Layer22getMessageTypeAsStringEv:
   97|  7.21k|	{
   98|  7.21k|		DhcpV6MessageType messageType = getMessageType();
   99|  7.21k|		switch (messageType)
  100|  7.21k|		{
  101|     32|		case DHCPV6_SOLICIT:
  ------------------
  |  Branch (101:3): [True: 32, False: 7.17k]
  ------------------
  102|     32|			return "Solicit";
  103|      0|		case DHCPV6_ADVERTISE:
  ------------------
  |  Branch (103:3): [True: 0, False: 7.21k]
  ------------------
  104|      0|			return "Advertise";
  105|    112|		case DHCPV6_REQUEST:
  ------------------
  |  Branch (105:3): [True: 112, False: 7.09k]
  ------------------
  106|    112|			return "Request";
  107|      0|		case DHCPV6_CONFIRM:
  ------------------
  |  Branch (107:3): [True: 0, False: 7.21k]
  ------------------
  108|      0|			return "Confirm";
  109|    288|		case DHCPV6_RENEW:
  ------------------
  |  Branch (109:3): [True: 288, False: 6.92k]
  ------------------
  110|    288|			return "Renew";
  111|     32|		case DHCPV6_REBIND:
  ------------------
  |  Branch (111:3): [True: 32, False: 7.17k]
  ------------------
  112|     32|			return "Rebind";
  113|  1.00k|		case DHCPV6_REPLY:
  ------------------
  |  Branch (113:3): [True: 1.00k, False: 6.20k]
  ------------------
  114|  1.00k|			return "Reply";
  115|      0|		case DHCPV6_RELEASE:
  ------------------
  |  Branch (115:3): [True: 0, False: 7.21k]
  ------------------
  116|      0|			return "Release";
  117|      0|		case DHCPV6_DECLINE:
  ------------------
  |  Branch (117:3): [True: 0, False: 7.21k]
  ------------------
  118|      0|			return "Decline";
  119|    688|		case DHCPV6_RECONFIGURE:
  ------------------
  |  Branch (119:3): [True: 688, False: 6.52k]
  ------------------
  120|    688|			return "Reconfigure";
  121|  3.29k|		case DHCPV6_INFORMATION_REQUEST:
  ------------------
  |  Branch (121:3): [True: 3.29k, False: 3.91k]
  ------------------
  122|  3.29k|			return "Information-Request";
  123|      0|		case DHCPV6_RELAY_FORWARD:
  ------------------
  |  Branch (123:3): [True: 0, False: 7.21k]
  ------------------
  124|      0|			return "Relay-Forward";
  125|     58|		case DHCPV6_RELAY_REPLY:
  ------------------
  |  Branch (125:3): [True: 58, False: 7.15k]
  ------------------
  126|     58|			return "Relay-Reply";
  127|  1.69k|		default:
  ------------------
  |  Branch (127:3): [True: 1.69k, False: 5.51k]
  ------------------
  128|  1.69k|			return "Unknown";
  129|  7.21k|		}
  130|  7.21k|	}
_ZNK4pcpp11DhcpV6Layer16getTransactionIDEv:
  138|  3.60k|	{
  139|  3.60k|		dhcpv6_header* hdr = getDhcpHeader();
  140|  3.60k|		uint32_t result = hdr->transactionId1 << 16 | hdr->transactionId2 << 8 | hdr->transactionId3;
  141|  3.60k|		return result;
  142|  3.60k|	}
_ZNK4pcpp11DhcpV6Layer18getFirstOptionDataEv:
  153|  3.44k|	{
  154|  3.44k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcpv6_header));
  155|  3.44k|	}
_ZNK4pcpp11DhcpV6Layer17getNextOptionDataENS_12DhcpV6OptionE:
  158|  7.74k|	{
  159|  7.74k|		return m_OptionReader.getNextTLVRecord(dhcpv6Option, getOptionsBasePtr(),
  160|  7.74k|		                                       getHeaderLen() - sizeof(dhcpv6_header));
  161|  7.74k|	}
_ZNK4pcpp11DhcpV6Layer13getOptionDataENS_16DhcpV6OptionTypeE:
  164|  3.44k|	{
  165|  3.44k|		return m_OptionReader.getTLVRecord(static_cast<uint32_t>(option), getOptionsBasePtr(),
  166|  3.44k|		                                   getHeaderLen() - sizeof(dhcpv6_header));
  167|  3.44k|	}
_ZNK4pcpp11DhcpV6Layer14getOptionCountEv:
  170|  14.7k|	{
  171|  14.7k|		return m_OptionReader.getTLVRecordCount(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcpv6_header));
  172|  14.7k|	}
_ZNK4pcpp11DhcpV6Layer8toStringEv:
  270|  7.21k|	{
  271|  7.21k|		return "DHCPv6 Layer, " + getMessageTypeAsString() + " message";
  272|  7.21k|	}

_ZN4pcpp8DnsLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   16|  52.6k|	    : Layer(data, dataLen, prevLayer, packet)
   17|  52.6k|	{
   18|  52.6k|		init(0, true);
   19|  52.6k|	}
_ZN4pcpp8DnsLayerC2ERKS0_:
   26|  13.5k|	DnsLayer::DnsLayer(const DnsLayer& other) : Layer(other)
   27|  13.5k|	{
   28|  13.5k|		init(other.m_OffsetAdjustment, true);
   29|  13.5k|	}
_ZN4pcpp8DnsLayerC2EPhmPNS_5LayerEPNS_6PacketEm:
   32|  18.1k|	    : Layer(data, dataLen, prevLayer, packet)
   33|  18.1k|	{
   34|  18.1k|		init(offsetAdjustment, true);
   35|  18.1k|	}
_ZN4pcpp8DnsLayeraSERKS0_:
   43|  13.5k|	{
   44|  13.5k|		Layer::operator=(other);
   45|       |
   46|  13.5k|		IDnsResource* curResource = m_ResourceList;
   47|  36.8k|		while (curResource != nullptr)
  ------------------
  |  Branch (47:10): [True: 23.3k, False: 13.5k]
  ------------------
   48|  23.3k|		{
   49|  23.3k|			IDnsResource* temp = curResource->getNextResource();
   50|  23.3k|			delete curResource;
   51|  23.3k|			curResource = temp;
   52|  23.3k|		}
   53|       |
   54|  13.5k|		init(other.m_OffsetAdjustment, true);
   55|       |
   56|  13.5k|		return (*this);
   57|  13.5k|	}
_ZN4pcpp8DnsLayerD2Ev:
   60|  84.3k|	{
   61|  84.3k|		IDnsResource* curResource = m_ResourceList;
   62|   209k|		while (curResource != nullptr)
  ------------------
  |  Branch (62:10): [True: 125k, False: 84.3k]
  ------------------
   63|   125k|		{
   64|   125k|			IDnsResource* nextResource = curResource->getNextResource();
   65|   125k|			delete curResource;
   66|   125k|			curResource = nextResource;
   67|   125k|		}
   68|  84.3k|	}
_ZN4pcpp8DnsLayer4initEmb:
   71|  97.8k|	{
   72|  97.8k|		m_OffsetAdjustment = offsetAdjustment;
   73|  97.8k|		m_Protocol = DNS;
   74|  97.8k|		m_ResourceList = nullptr;
   75|       |
   76|  97.8k|		m_FirstQuery = nullptr;
   77|  97.8k|		m_FirstAnswer = nullptr;
   78|  97.8k|		m_FirstAuthority = nullptr;
   79|  97.8k|		m_FirstAdditional = nullptr;
   80|       |
   81|  97.8k|		if (callParseResource)
  ------------------
  |  Branch (81:7): [True: 97.8k, False: 0]
  ------------------
   82|  97.8k|			parseResources();
   83|  97.8k|	}
_ZN4pcpp8DnsLayer18getBasicHeaderSizeEv:
   97|   152k|	{
   98|   152k|		return sizeof(dnshdr) + m_OffsetAdjustment;
   99|   152k|	}
_ZNK4pcpp8DnsLayer12getDnsHeaderEv:
  102|   860k|	{
  103|   860k|		uint8_t* ptr = m_Data + m_OffsetAdjustment;
  104|   860k|		return reinterpret_cast<dnshdr*>(ptr);
  105|   860k|	}
_ZN4pcpp8DnsLayer11extendLayerEimPNS_12IDnsResourceE:
  108|  54.2k|	{
  109|  54.2k|		if (!Layer::extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (109:7): [True: 9.65k, False: 44.5k]
  ------------------
  110|  9.65k|			return false;
  111|       |
  112|  44.5k|		IDnsResource* curResource = resource->getNextResource();
  113|  57.8k|		while (curResource != nullptr)
  ------------------
  |  Branch (113:10): [True: 13.2k, False: 44.5k]
  ------------------
  114|  13.2k|		{
  115|  13.2k|			curResource->m_OffsetInLayer += numOfBytesToExtend;
  116|  13.2k|			curResource = curResource->getNextResource();
  117|  13.2k|		}
  118|  44.5k|		return true;
  119|  54.2k|	}
_ZN4pcpp8DnsLayer12shortenLayerEimPNS_12IDnsResourceE:
  122|  44.3k|	{
  123|  44.3k|		if (!Layer::shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (123:7): [True: 0, False: 44.3k]
  ------------------
  124|      0|			return false;
  125|       |
  126|  44.3k|		IDnsResource* curResource = resource->getNextResource();
  127|  57.5k|		while (curResource != nullptr)
  ------------------
  |  Branch (127:10): [True: 13.2k, False: 44.3k]
  ------------------
  128|  13.2k|		{
  129|  13.2k|			curResource->m_OffsetInLayer -= numOfBytesToShorten;
  130|  13.2k|			curResource = curResource->getNextResource();
  131|  13.2k|		}
  132|  44.3k|		return true;
  133|  44.3k|	}
_ZN4pcpp8DnsLayer14parseResourcesEv:
  136|  97.8k|	{
  137|  97.8k|		size_t offsetInPacket = getBasicHeaderSize();
  138|  97.8k|		IDnsResource* curResource = m_ResourceList;
  139|       |
  140|  97.8k|		uint16_t numOfQuestions = be16toh(getDnsHeader()->numberOfQuestions);
  141|  97.8k|		uint16_t numOfAnswers = be16toh(getDnsHeader()->numberOfAnswers);
  142|  97.8k|		uint16_t numOfAuthority = be16toh(getDnsHeader()->numberOfAuthority);
  143|  97.8k|		uint16_t numOfAdditional = be16toh(getDnsHeader()->numberOfAdditional);
  144|       |
  145|  97.8k|		uint32_t numOfOtherResources = numOfQuestions + numOfAnswers + numOfAuthority + numOfAdditional;
  146|       |
  147|  97.8k|		if (numOfOtherResources > 300)
  ------------------
  |  Branch (147:7): [True: 16.2k, False: 81.5k]
  ------------------
  148|  16.2k|		{
  149|  16.2k|			PCPP_LOG_ERROR(
  ------------------
  |  |  443|  16.2k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  16.2k|	do                                                                                                                 \
  |  |  |  |  413|  16.2k|	{                                                                                                                  \
  |  |  |  |  414|  16.2k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  16.2k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.2k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 16.2k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  16.2k|		{                                                                                                              \
  |  |  |  |  417|  16.2k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  16.2k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.2k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  16.2k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  16.2k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  16.2k|		}                                                                                                              \
  |  |  |  |  422|  16.2k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 16.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  150|  16.2k|			    "DNS layer contains more than 300 resources, probably a bad packet. Skipping parsing DNS resources");
  151|  16.2k|			return;
  152|  16.2k|		}
  153|       |
  154|   229k|		for (uint32_t i = 0; i < numOfOtherResources; i++)
  ------------------
  |  Branch (154:24): [True: 174k, False: 55.7k]
  ------------------
  155|   174k|		{
  156|   174k|			DnsResourceType resType;
  157|   174k|			if (numOfQuestions > 0)
  ------------------
  |  Branch (157:8): [True: 98.1k, False: 76.0k]
  ------------------
  158|  98.1k|			{
  159|  98.1k|				resType = DnsQueryType;
  160|  98.1k|				numOfQuestions--;
  161|  98.1k|			}
  162|  76.0k|			else if (numOfAnswers > 0)
  ------------------
  |  Branch (162:13): [True: 28.7k, False: 47.2k]
  ------------------
  163|  28.7k|			{
  164|  28.7k|				resType = DnsAnswerType;
  165|  28.7k|				numOfAnswers--;
  166|  28.7k|			}
  167|  47.2k|			else if (numOfAuthority > 0)
  ------------------
  |  Branch (167:13): [True: 29.7k, False: 17.5k]
  ------------------
  168|  29.7k|			{
  169|  29.7k|				resType = DnsAuthorityType;
  170|  29.7k|				numOfAuthority--;
  171|  29.7k|			}
  172|  17.5k|			else
  173|  17.5k|			{
  174|  17.5k|				resType = DnsAdditionalType;
  175|  17.5k|				numOfAdditional--;
  176|  17.5k|			}
  177|       |
  178|   174k|			DnsResource* newResource = nullptr;
  179|   174k|			DnsQuery* newQuery = nullptr;
  180|   174k|			IDnsResource* newGenResource = nullptr;
  181|   174k|			if (resType == DnsQueryType)
  ------------------
  |  Branch (181:8): [True: 98.1k, False: 76.0k]
  ------------------
  182|  98.1k|			{
  183|  98.1k|				newQuery = new DnsQuery(this, offsetInPacket);
  184|  98.1k|				newGenResource = newQuery;
  185|  98.1k|				offsetInPacket += newQuery->getSize();
  186|  98.1k|			}
  187|  76.0k|			else
  188|  76.0k|			{
  189|  76.0k|				newResource = new DnsResource(this, offsetInPacket, resType);
  190|  76.0k|				newGenResource = newResource;
  191|  76.0k|				offsetInPacket += newResource->getSize();
  192|  76.0k|			}
  193|       |
  194|   174k|			if (offsetInPacket > m_DataLen)
  ------------------
  |  Branch (194:8): [True: 25.8k, False: 148k]
  ------------------
  195|  25.8k|			{
  196|       |				// Parse packet failed, DNS resource is out of bounds. Probably a bad packet
  197|  25.8k|				delete newGenResource;
  198|  25.8k|				return;
  199|  25.8k|			}
  200|       |
  201|       |			// this resource is the first resource
  202|   148k|			if (m_ResourceList == nullptr)
  ------------------
  |  Branch (202:8): [True: 75.2k, False: 73.1k]
  ------------------
  203|  75.2k|			{
  204|  75.2k|				m_ResourceList = newGenResource;
  205|  75.2k|				curResource = m_ResourceList;
  206|  75.2k|			}
  207|  73.1k|			else
  208|  73.1k|			{
  209|  73.1k|				curResource->setNextResource(newGenResource);
  210|  73.1k|				curResource = curResource->getNextResource();
  211|  73.1k|			}
  212|       |
  213|   148k|			if (resType == DnsQueryType && m_FirstQuery == nullptr)
  ------------------
  |  Branch (213:8): [True: 92.1k, False: 56.1k]
  |  Branch (213:35): [True: 74.8k, False: 17.3k]
  ------------------
  214|  74.8k|				m_FirstQuery = newQuery;
  215|  73.5k|			else if (resType == DnsAnswerType && m_FirstAnswer == nullptr)
  ------------------
  |  Branch (215:13): [True: 22.8k, False: 50.6k]
  |  Branch (215:41): [True: 8.93k, False: 13.9k]
  ------------------
  216|  8.93k|				m_FirstAnswer = newResource;
  217|  64.6k|			else if (resType == DnsAuthorityType && m_FirstAuthority == nullptr)
  ------------------
  |  Branch (217:13): [True: 19.9k, False: 44.6k]
  |  Branch (217:44): [True: 11.2k, False: 8.69k]
  ------------------
  218|  11.2k|				m_FirstAuthority = newResource;
  219|  53.3k|			else if (resType == DnsAdditionalType && m_FirstAdditional == nullptr)
  ------------------
  |  Branch (219:13): [True: 13.3k, False: 39.9k]
  |  Branch (219:45): [True: 8.11k, False: 5.21k]
  ------------------
  220|  8.11k|				m_FirstAdditional = newResource;
  221|   148k|		}
  222|  81.5k|	}
_ZNK4pcpp8DnsLayer17getResourceByNameEPNS_12IDnsResourceEmRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEb:
  226|   108k|	{
  227|   108k|		size_t index = 0;
  228|   192k|		while (index < resourceCount)
  ------------------
  |  Branch (228:10): [True: 145k, False: 46.9k]
  ------------------
  229|   145k|		{
  230|   145k|			if (startFrom == nullptr)
  ------------------
  |  Branch (230:8): [True: 17.2k, False: 128k]
  ------------------
  231|  17.2k|				return nullptr;
  232|       |
  233|   128k|			std::string resourceName = startFrom->getName();
  234|   128k|			if (exactMatch && resourceName == name)
  ------------------
  |  Branch (234:8): [True: 64.2k, False: 64.2k]
  |  Branch (234:22): [True: 0, False: 64.2k]
  ------------------
  235|      0|				return startFrom;
  236|   128k|			else if (!exactMatch && resourceName.find(name) != std::string::npos)
  ------------------
  |  Branch (236:13): [True: 64.2k, False: 64.2k]
  |  Branch (236:28): [True: 44.3k, False: 19.9k]
  ------------------
  237|  44.3k|				return startFrom;
  238|       |
  239|  84.1k|			startFrom = startFrom->getNextResource();
  240|       |
  241|  84.1k|			index++;
  242|  84.1k|		}
  243|       |
  244|  46.9k|		return nullptr;
  245|   108k|	}
_ZNK4pcpp8DnsLayer8getQueryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  248|  27.1k|	{
  249|  27.1k|		uint16_t numOfQueries = be16toh(getDnsHeader()->numberOfQuestions);
  250|  27.1k|		IDnsResource* res = getResourceByName(m_FirstQuery, numOfQueries, name, exactMatch);
  251|  27.1k|		if (res != nullptr)
  ------------------
  |  Branch (251:7): [True: 11.1k, False: 16.0k]
  ------------------
  252|  11.1k|			return dynamic_cast<DnsQuery*>(res);
  253|  16.0k|		return nullptr;
  254|  27.1k|	}
_ZNK4pcpp8DnsLayer13getFirstQueryEv:
  257|  13.5k|	{
  258|  13.5k|		return m_FirstQuery;
  259|  13.5k|	}
_ZNK4pcpp8DnsLayer12getNextQueryEPNS_8DnsQueryE:
  262|  12.3k|	{
  263|  12.3k|		if (query == nullptr || query->getNextResource() == nullptr || query->getType() != DnsQueryType ||
  ------------------
  |  Branch (263:7): [True: 0, False: 12.3k]
  |  Branch (263:27): [True: 6.62k, False: 5.68k]
  |  Branch (263:66): [True: 0, False: 5.68k]
  ------------------
  264|  5.68k|		    query->getNextResource()->getType() != DnsQueryType)
  ------------------
  |  Branch (264:7): [True: 3.71k, False: 1.97k]
  ------------------
  265|  10.3k|			return nullptr;
  266|       |
  267|  1.97k|		return (DnsQuery*)(query->getNextResource());
  268|  12.3k|	}
_ZNK4pcpp8DnsLayer13getQueryCountEv:
  271|  49.3k|	{
  272|       |		return be16toh(getDnsHeader()->numberOfQuestions);
  273|  49.3k|	}
_ZNK4pcpp8DnsLayer9getAnswerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  276|  27.1k|	{
  277|  27.1k|		uint16_t numOfAnswers = be16toh(getDnsHeader()->numberOfAnswers);
  278|  27.1k|		IDnsResource* res = getResourceByName(m_FirstAnswer, numOfAnswers, name, exactMatch);
  279|  27.1k|		if (res != nullptr)
  ------------------
  |  Branch (279:7): [True: 11.0k, False: 16.0k]
  ------------------
  280|  11.0k|			return dynamic_cast<DnsResource*>(res);
  281|  16.0k|		return nullptr;
  282|  27.1k|	}
_ZNK4pcpp8DnsLayer14getFirstAnswerEv:
  285|  13.5k|	{
  286|  13.5k|		return m_FirstAnswer;
  287|  13.5k|	}
_ZNK4pcpp8DnsLayer13getNextAnswerEPNS_11DnsResourceE:
  290|  3.30k|	{
  291|  3.30k|		if (answer == nullptr || answer->getNextResource() == nullptr || answer->getType() != DnsAnswerType ||
  ------------------
  |  Branch (291:7): [True: 0, False: 3.30k]
  |  Branch (291:28): [True: 1.23k, False: 2.06k]
  |  Branch (291:68): [True: 0, False: 2.06k]
  ------------------
  292|  2.06k|		    answer->getNextResource()->getType() != DnsAnswerType)
  ------------------
  |  Branch (292:7): [True: 75, False: 1.99k]
  ------------------
  293|  1.30k|			return nullptr;
  294|       |
  295|  1.99k|		return (DnsResource*)(answer->getNextResource());
  296|  3.30k|	}
_ZNK4pcpp8DnsLayer14getAnswerCountEv:
  299|  49.3k|	{
  300|       |		return be16toh(getDnsHeader()->numberOfAnswers);
  301|  49.3k|	}
_ZNK4pcpp8DnsLayer12getAuthorityERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  304|  27.1k|	{
  305|  27.1k|		uint16_t numOfAuthorities = be16toh(getDnsHeader()->numberOfAuthority);
  306|  27.1k|		IDnsResource* res = getResourceByName(m_FirstAuthority, numOfAuthorities, name, exactMatch);
  307|  27.1k|		if (res != nullptr)
  ------------------
  |  Branch (307:7): [True: 11.0k, False: 16.0k]
  ------------------
  308|  11.0k|			return dynamic_cast<DnsResource*>(res);
  309|  16.0k|		return nullptr;
  310|  27.1k|	}
_ZNK4pcpp8DnsLayer17getFirstAuthorityEv:
  313|  13.5k|	{
  314|  13.5k|		return m_FirstAuthority;
  315|  13.5k|	}
_ZNK4pcpp8DnsLayer16getNextAuthorityEPNS_11DnsResourceE:
  318|  2.59k|	{
  319|  2.59k|		if (authority == nullptr || authority->getNextResource() == nullptr ||
  ------------------
  |  Branch (319:7): [True: 0, False: 2.59k]
  |  Branch (319:31): [True: 1.37k, False: 1.22k]
  ------------------
  320|  1.22k|		    authority->getType() != DnsAuthorityType || authority->getNextResource()->getType() != DnsAuthorityType)
  ------------------
  |  Branch (320:7): [True: 0, False: 1.22k]
  |  Branch (320:51): [True: 255, False: 965]
  ------------------
  321|  1.62k|			return nullptr;
  322|       |
  323|    965|		return (DnsResource*)(authority->getNextResource());
  324|  2.59k|	}
_ZNK4pcpp8DnsLayer17getAuthorityCountEv:
  327|  49.3k|	{
  328|       |		return be16toh(getDnsHeader()->numberOfAuthority);
  329|  49.3k|	}
_ZNK4pcpp8DnsLayer19getAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  332|  27.1k|	{
  333|  27.1k|		uint16_t numOfAdditionalRecords = be16toh(getDnsHeader()->numberOfAdditional);
  334|  27.1k|		IDnsResource* res = getResourceByName(m_FirstAdditional, numOfAdditionalRecords, name, exactMatch);
  335|  27.1k|		if (res != nullptr)
  ------------------
  |  Branch (335:7): [True: 11.0k, False: 16.0k]
  ------------------
  336|  11.0k|			return dynamic_cast<DnsResource*>(res);
  337|  16.0k|		return nullptr;
  338|  27.1k|	}
_ZNK4pcpp8DnsLayer24getFirstAdditionalRecordEv:
  341|  13.5k|	{
  342|  13.5k|		return m_FirstAdditional;
  343|  13.5k|	}
_ZNK4pcpp8DnsLayer23getNextAdditionalRecordEPNS_11DnsResourceE:
  346|  1.98k|	{
  347|  1.98k|		if (additionalRecord == nullptr || additionalRecord->getNextResource() == nullptr ||
  ------------------
  |  Branch (347:7): [True: 0, False: 1.98k]
  |  Branch (347:38): [True: 1.23k, False: 745]
  ------------------
  348|    745|		    additionalRecord->getType() != DnsAdditionalType ||
  ------------------
  |  Branch (348:7): [True: 0, False: 745]
  ------------------
  349|    745|		    additionalRecord->getNextResource()->getType() != DnsAdditionalType)
  ------------------
  |  Branch (349:7): [True: 0, False: 745]
  ------------------
  350|  1.23k|			return nullptr;
  351|       |
  352|    745|		return (DnsResource*)(additionalRecord->getNextResource());
  353|  1.98k|	}
_ZNK4pcpp8DnsLayer24getAdditionalRecordCountEv:
  356|  49.3k|	{
  357|       |		return be16toh(getDnsHeader()->numberOfAdditional);
  358|  49.3k|	}
_ZNK4pcpp8DnsLayer8toStringEv:
  361|  27.1k|	{
  362|  27.1k|		std::ostringstream tidAsString;
  363|  27.1k|		tidAsString << be16toh(getDnsHeader()->transactionID);
  364|       |
  365|  27.1k|		std::ostringstream queryCount;
  366|  27.1k|		queryCount << getQueryCount();
  367|       |
  368|  27.1k|		std::ostringstream answerCount;
  369|  27.1k|		answerCount << getAnswerCount();
  370|       |
  371|  27.1k|		std::ostringstream authorityCount;
  372|  27.1k|		authorityCount << getAuthorityCount();
  373|       |
  374|  27.1k|		std::ostringstream additionalCount;
  375|  27.1k|		additionalCount << getAdditionalRecordCount();
  376|       |
  377|  27.1k|		if (getDnsHeader()->queryOrResponse == 1)
  ------------------
  |  Branch (377:7): [True: 6.88k, False: 20.2k]
  ------------------
  378|  6.88k|		{
  379|  6.88k|			return "DNS query response, ID: " + tidAsString.str() + ";" + " queries: " + queryCount.str() +
  380|  6.88k|			       ", answers: " + answerCount.str() + ", authorities: " + authorityCount.str() +
  381|  6.88k|			       ", additional record: " + additionalCount.str();
  382|  6.88k|		}
  383|  20.2k|		else if (getDnsHeader()->queryOrResponse == 0)
  ------------------
  |  Branch (383:12): [True: 20.2k, False: 0]
  ------------------
  384|  20.2k|		{
  385|  20.2k|			return "DNS query, ID: " + tidAsString.str() + ";" + " queries: " + queryCount.str() +
  386|  20.2k|			       ", answers: " + answerCount.str() + ", authorities: " + authorityCount.str() +
  387|  20.2k|			       ", additional record: " + additionalCount.str();
  388|  20.2k|		}
  389|      0|		else  // not likely - a DNS with no answers and no queries
  390|      0|		{
  391|      0|			return "DNS record without queries and answers, ID: " + tidAsString.str() + ";" +
  392|      0|			       " queries: " + queryCount.str() + ", answers: " + answerCount.str() +
  393|      0|			       ", authorities: " + authorityCount.str() + ", additional record: " + additionalCount.str();
  394|      0|		}
  395|  27.1k|	}
_ZNK4pcpp8DnsLayer16getFirstResourceENS_15DnsResourceTypeE:
  398|  44.3k|	{
  399|  44.3k|		switch (resType)
  400|  44.3k|		{
  401|  11.1k|		case DnsQueryType:
  ------------------
  |  Branch (401:3): [True: 11.1k, False: 33.1k]
  ------------------
  402|  11.1k|		{
  403|  11.1k|			return m_FirstQuery;
  404|      0|		}
  405|  11.0k|		case DnsAnswerType:
  ------------------
  |  Branch (405:3): [True: 11.0k, False: 33.2k]
  ------------------
  406|  11.0k|		{
  407|  11.0k|			return m_FirstAnswer;
  408|      0|		}
  409|  11.0k|		case DnsAuthorityType:
  ------------------
  |  Branch (409:3): [True: 11.0k, False: 33.2k]
  ------------------
  410|  11.0k|		{
  411|  11.0k|			return m_FirstAuthority;
  412|      0|		}
  413|  11.0k|		case DnsAdditionalType:
  ------------------
  |  Branch (413:3): [True: 11.0k, False: 33.2k]
  ------------------
  414|  11.0k|		{
  415|  11.0k|			return m_FirstAdditional;
  416|      0|		}
  417|      0|		default:
  ------------------
  |  Branch (417:3): [True: 0, False: 44.3k]
  ------------------
  418|      0|			return nullptr;
  419|  44.3k|		}
  420|  44.3k|	}
_ZN4pcpp8DnsLayer16setFirstResourceENS_15DnsResourceTypeEPNS_12IDnsResourceE:
  423|  60.9k|	{
  424|  60.9k|		switch (resType)
  425|  60.9k|		{
  426|  1.55k|		case DnsQueryType:
  ------------------
  |  Branch (426:3): [True: 1.55k, False: 59.4k]
  ------------------
  427|  1.55k|		{
  428|  1.55k|			m_FirstQuery = dynamic_cast<DnsQuery*>(resource);
  429|  1.55k|			break;
  430|      0|		}
  431|  19.7k|		case DnsAnswerType:
  ------------------
  |  Branch (431:3): [True: 19.7k, False: 41.2k]
  ------------------
  432|  19.7k|		{
  433|  19.7k|			m_FirstAnswer = dynamic_cast<DnsResource*>(resource);
  434|  19.7k|			break;
  435|      0|		}
  436|  19.7k|		case DnsAuthorityType:
  ------------------
  |  Branch (436:3): [True: 19.7k, False: 41.2k]
  ------------------
  437|  19.7k|		{
  438|  19.7k|			m_FirstAuthority = dynamic_cast<DnsResource*>(resource);
  439|  19.7k|			break;
  440|      0|		}
  441|  19.9k|		case DnsAdditionalType:
  ------------------
  |  Branch (441:3): [True: 19.9k, False: 41.0k]
  ------------------
  442|  19.9k|		{
  443|  19.9k|			m_FirstAdditional = dynamic_cast<DnsResource*>(resource);
  444|  19.9k|			break;
  445|      0|		}
  446|      0|		default:
  ------------------
  |  Branch (446:3): [True: 0, False: 60.9k]
  ------------------
  447|      0|			return;
  448|  60.9k|		}
  449|  60.9k|	}
_ZN4pcpp8DnsLayer11addResourceENS_15DnsResourceTypeERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  453|  40.6k|	{
  454|       |		// create new query on temporary buffer
  455|  40.6k|		uint8_t newResourceRawData[4096];
  456|  40.6k|		memset(newResourceRawData, 0, sizeof(newResourceRawData));
  457|       |
  458|  40.6k|		DnsResource* newResource = new DnsResource(newResourceRawData, resType);
  459|       |
  460|  40.6k|		newResource->setDnsClass(dnsClass);
  461|       |
  462|  40.6k|		newResource->setDnsType(dnsType);
  463|       |
  464|       |		// cannot return false since layer shouldn't be extended or shortened in this stage
  465|  40.6k|		newResource->setName(name);
  466|       |
  467|  40.6k|		newResource->setTTL(ttl);
  468|       |
  469|  40.6k|		if (!newResource->setData(data))
  ------------------
  |  Branch (469:7): [True: 0, False: 40.6k]
  ------------------
  470|      0|		{
  471|      0|			delete newResource;
  472|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  473|      0|			return nullptr;
  474|      0|		}
  475|       |
  476|  40.6k|		size_t newResourceOffsetInLayer = getBasicHeaderSize();
  477|  40.6k|		IDnsResource* curResource = m_ResourceList;
  478|  63.2k|		while (curResource != nullptr && curResource->getType() <= resType)
  ------------------
  |  Branch (478:10): [True: 53.8k, False: 9.45k]
  |  Branch (478:36): [True: 53.8k, False: 0]
  ------------------
  479|  53.8k|		{
  480|  53.8k|			newResourceOffsetInLayer += curResource->getSize();
  481|       |
  482|  53.8k|			if (newResourceOffsetInLayer > m_DataLen)
  ------------------
  |  Branch (482:8): [True: 6, False: 53.8k]
  ------------------
  483|      6|			{
  484|       |				// This possibly means that the DNS layer has been created from a malformed packet.
  485|      6|				PCPP_LOG_ERROR("Couldn't add resource! DNS Layer is malformed and contains out of bounds resources.");
  ------------------
  |  |  443|      6|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      6|	do                                                                                                                 \
  |  |  |  |  413|      6|	{                                                                                                                  \
  |  |  |  |  414|      6|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      6|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      6|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 6, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      6|		{                                                                                                              \
  |  |  |  |  417|      6|			auto ctx =                                                                                                 \
  |  |  |  |  418|      6|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      6|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      6|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      6|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      6|		}                                                                                                              \
  |  |  |  |  422|      6|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 6]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  486|      6|				delete newResource;
  487|      6|				return nullptr;
  488|      6|			}
  489|       |
  490|  53.8k|			IDnsResource* nextResource = curResource->getNextResource();
  491|  53.8k|			if (nextResource == nullptr || nextResource->getType() > resType)
  ------------------
  |  Branch (491:8): [True: 27.5k, False: 26.2k]
  |  Branch (491:35): [True: 3.65k, False: 22.5k]
  ------------------
  492|  31.2k|				break;
  493|  22.5k|			curResource = nextResource;
  494|  22.5k|		}
  495|       |
  496|       |		// set next resource for new resource. This must happen here for extendLayer to succeed
  497|  40.6k|		if (curResource != nullptr)
  ------------------
  |  Branch (497:7): [True: 31.2k, False: 9.45k]
  ------------------
  498|  31.2k|		{
  499|  31.2k|			if (curResource->getType() > newResource->getType())
  ------------------
  |  Branch (499:8): [True: 0, False: 31.2k]
  ------------------
  500|      0|				newResource->setNextResource(m_ResourceList);
  501|  31.2k|			else
  502|  31.2k|				newResource->setNextResource(curResource->getNextResource());
  503|  31.2k|		}
  504|  9.45k|		else
  505|  9.45k|		{
  506|       |			// curResource != nullptr
  507|  9.45k|			newResource->setNextResource(m_ResourceList);
  508|  9.45k|		}
  509|       |
  510|       |		// extend layer to make room for the new resource
  511|  40.6k|		if (!extendLayer(newResourceOffsetInLayer, newResource->getSize(), newResource))
  ------------------
  |  Branch (511:7): [True: 7.24k, False: 33.4k]
  ------------------
  512|  7.24k|		{
  513|  7.24k|			PCPP_LOG_ERROR("Couldn't extend DNS layer, addResource failed");
  ------------------
  |  |  443|  7.24k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  7.24k|	do                                                                                                                 \
  |  |  |  |  413|  7.24k|	{                                                                                                                  \
  |  |  |  |  414|  7.24k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  7.24k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  7.24k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 7.24k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  7.24k|		{                                                                                                              \
  |  |  |  |  417|  7.24k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  7.24k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  7.24k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  7.24k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  7.24k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  7.24k|		}                                                                                                              \
  |  |  |  |  422|  7.24k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 7.24k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  514|  7.24k|			delete newResource;
  515|  7.24k|			return nullptr;
  516|  7.24k|		}
  517|       |
  518|       |		// connect the new resource to layer
  519|  33.4k|		newResource->setDnsLayer(this, newResourceOffsetInLayer);
  520|       |
  521|       |		// connect the new resource to the layer's resource list
  522|  33.4k|		if (curResource != nullptr)
  ------------------
  |  Branch (522:7): [True: 28.9k, False: 4.52k]
  ------------------
  523|  28.9k|		{
  524|  28.9k|			curResource->setNextResource(newResource);
  525|       |			// this means the new resource is the first of it's type
  526|  28.9k|			if (curResource->getType() < newResource->getType())
  ------------------
  |  Branch (526:8): [True: 25.3k, False: 3.59k]
  ------------------
  527|  25.3k|			{
  528|  25.3k|				setFirstResource(resType, newResource);
  529|  25.3k|			}
  530|       |			// this means the new resource should be the first resource in the packet
  531|  3.59k|			else if (curResource->getType() > newResource->getType())
  ------------------
  |  Branch (531:13): [True: 0, False: 3.59k]
  ------------------
  532|      0|			{
  533|      0|				m_ResourceList = newResource;
  534|       |
  535|      0|				setFirstResource(resType, newResource);
  536|      0|			}
  537|  28.9k|		}
  538|  4.52k|		else  // curResource != nullptr, meaning this is the first resource in layer
  539|  4.52k|		{
  540|  4.52k|			m_ResourceList = newResource;
  541|       |
  542|  4.52k|			setFirstResource(resType, newResource);
  543|  4.52k|		}
  544|       |
  545|  33.4k|		return newResource;
  546|  40.6k|	}
_ZN4pcpp8DnsLayer8addQueryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassE:
  549|  13.5k|	{
  550|       |		// create new query on temporary buffer
  551|  13.5k|		uint8_t newQueryRawData[256];
  552|  13.5k|		DnsQuery* newQuery = new DnsQuery(newQueryRawData);
  553|       |
  554|  13.5k|		newQuery->setDnsClass(dnsClass);
  555|  13.5k|		newQuery->setDnsType(dnsType);
  556|       |
  557|       |		// cannot return false since layer shouldn't be extended or shortened in this stage
  558|  13.5k|		newQuery->setName(name);
  559|       |
  560|       |		// find the offset in the layer to insert the new query
  561|  13.5k|		size_t newQueryOffsetInLayer = getBasicHeaderSize();
  562|  13.5k|		DnsQuery* curQuery = getFirstQuery();
  563|  15.5k|		while (curQuery != nullptr)
  ------------------
  |  Branch (563:10): [True: 12.3k, False: 3.22k]
  ------------------
  564|  12.3k|		{
  565|  12.3k|			newQueryOffsetInLayer += curQuery->getSize();
  566|  12.3k|			DnsQuery* nextQuery = getNextQuery(curQuery);
  567|  12.3k|			if (nextQuery == nullptr)
  ------------------
  |  Branch (567:8): [True: 10.3k, False: 1.97k]
  ------------------
  568|  10.3k|				break;
  569|  1.97k|			curQuery = nextQuery;
  570|  1.97k|		}
  571|       |
  572|       |		// set next resource for new query. This must happen here for extendLayer to succeed
  573|  13.5k|		if (curQuery != nullptr)
  ------------------
  |  Branch (573:7): [True: 10.3k, False: 3.22k]
  ------------------
  574|  10.3k|			newQuery->setNextResource(curQuery->getNextResource());
  575|  3.22k|		else
  576|  3.22k|			newQuery->setNextResource(m_ResourceList);
  577|       |
  578|       |		// extend layer to make room for the new query
  579|  13.5k|		if (!extendLayer(newQueryOffsetInLayer, newQuery->getSize(), newQuery))
  ------------------
  |  Branch (579:7): [True: 2.41k, False: 11.1k]
  ------------------
  580|  2.41k|		{
  581|  2.41k|			PCPP_LOG_ERROR("Couldn't extend DNS layer, addQuery failed");
  ------------------
  |  |  443|  2.41k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  2.41k|	do                                                                                                                 \
  |  |  |  |  413|  2.41k|	{                                                                                                                  \
  |  |  |  |  414|  2.41k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.41k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.41k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 2.41k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.41k|		{                                                                                                              \
  |  |  |  |  417|  2.41k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  2.41k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.41k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  2.41k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  2.41k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  2.41k|		}                                                                                                              \
  |  |  |  |  422|  2.41k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.41k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  582|  2.41k|			delete newQuery;
  583|  2.41k|			return nullptr;
  584|  2.41k|		}
  585|       |
  586|       |		// connect the new query to layer
  587|  11.1k|		newQuery->setDnsLayer(this, newQueryOffsetInLayer);
  588|       |
  589|       |		// connect the new query to the layer's resource list
  590|  11.1k|		if (curQuery != nullptr)
  ------------------
  |  Branch (590:7): [True: 9.56k, False: 1.58k]
  ------------------
  591|  9.56k|			curQuery->setNextResource(newQuery);
  592|  1.58k|		else  // curQuery == nullptr, meaning this is the first query
  593|  1.58k|		{
  594|  1.58k|			m_ResourceList = newQuery;
  595|  1.58k|			m_FirstQuery = newQuery;
  596|  1.58k|		}
  597|       |
  598|       |		// increase number of queries
  599|  11.1k|		getDnsHeader()->numberOfQuestions = htobe16(getQueryCount() + 1);
  600|       |
  601|  11.1k|		return newQuery;
  602|  13.5k|	}
_ZN4pcpp8DnsLayer11removeQueryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  613|  27.1k|	{
  614|  27.1k|		DnsQuery* queryToRemove = getQuery(queryNameToRemove, exactMatch);
  615|  27.1k|		if (queryToRemove == nullptr)
  ------------------
  |  Branch (615:7): [True: 16.0k, False: 11.1k]
  ------------------
  616|  16.0k|		{
  617|  16.0k|			PCPP_LOG_DEBUG("Query not found");
  ------------------
  |  |  425|  16.0k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  16.0k|	do                                                                                                                 \
  |  |  |  |  413|  16.0k|	{                                                                                                                  \
  |  |  |  |  414|  16.0k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  16.0k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.0k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 16.0k]
  |  |  |  |  ------------------
  |  |  |  |  416|  16.0k|		{                                                                                                              \
  |  |  |  |  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|  16.0k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 16.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  618|  16.0k|			return false;
  619|  16.0k|		}
  620|       |
  621|  11.1k|		return removeQuery(queryToRemove);
  622|  27.1k|	}
_ZN4pcpp8DnsLayer11removeQueryEPNS_8DnsQueryE:
  625|  11.1k|	{
  626|  11.1k|		bool res = removeResource(queryToRemove);
  627|  11.1k|		if (res)
  ------------------
  |  Branch (627:7): [True: 11.1k, False: 0]
  ------------------
  628|  11.1k|		{
  629|       |			// decrease number of query records
  630|  11.1k|			getDnsHeader()->numberOfQuestions = htobe16(getQueryCount() - 1);
  631|  11.1k|		}
  632|       |
  633|  11.1k|		return res;
  634|  11.1k|	}
_ZN4pcpp8DnsLayer9addAnswerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  638|  13.5k|	{
  639|  13.5k|		DnsResource* res = addResource(DnsAnswerType, name, dnsType, dnsClass, ttl, data);
  640|  13.5k|		if (res != nullptr)
  ------------------
  |  Branch (640:7): [True: 11.1k, False: 2.41k]
  ------------------
  641|  11.1k|		{
  642|       |			// increase number of answer records
  643|  11.1k|			getDnsHeader()->numberOfAnswers = htobe16(getAnswerCount() + 1);
  644|  11.1k|		}
  645|       |
  646|  13.5k|		return res;
  647|  13.5k|	}
_ZN4pcpp8DnsLayer12removeAnswerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  659|  27.1k|	{
  660|  27.1k|		DnsResource* answerToRemove = getAnswer(answerNameToRemove, exactMatch);
  661|  27.1k|		if (answerToRemove == nullptr)
  ------------------
  |  Branch (661:7): [True: 16.0k, False: 11.0k]
  ------------------
  662|  16.0k|		{
  663|  16.0k|			PCPP_LOG_DEBUG("Answer record not found");
  ------------------
  |  |  425|  16.0k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  16.0k|	do                                                                                                                 \
  |  |  |  |  413|  16.0k|	{                                                                                                                  \
  |  |  |  |  414|  16.0k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  16.0k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.0k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 16.0k]
  |  |  |  |  ------------------
  |  |  |  |  416|  16.0k|		{                                                                                                              \
  |  |  |  |  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|  16.0k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 16.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  664|  16.0k|			return false;
  665|  16.0k|		}
  666|       |
  667|  11.0k|		return removeAnswer(answerToRemove);
  668|  27.1k|	}
_ZN4pcpp8DnsLayer12removeAnswerEPNS_11DnsResourceE:
  671|  11.0k|	{
  672|  11.0k|		bool res = removeResource(answerToRemove);
  673|  11.0k|		if (res)
  ------------------
  |  Branch (673:7): [True: 11.0k, False: 0]
  ------------------
  674|  11.0k|		{
  675|       |			// decrease number of answer records
  676|  11.0k|			getDnsHeader()->numberOfAnswers = htobe16(getAnswerCount() - 1);
  677|  11.0k|		}
  678|       |
  679|  11.0k|		return res;
  680|  11.0k|	}
_ZN4pcpp8DnsLayer12addAuthorityERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  684|  13.5k|	{
  685|  13.5k|		DnsResource* res = addResource(DnsAuthorityType, name, dnsType, dnsClass, ttl, data);
  686|  13.5k|		if (res != nullptr)
  ------------------
  |  Branch (686:7): [True: 11.1k, False: 2.41k]
  ------------------
  687|  11.1k|		{
  688|       |			// increase number of authority records
  689|  11.1k|			getDnsHeader()->numberOfAuthority = htobe16(getAuthorityCount() + 1);
  690|  11.1k|		}
  691|       |
  692|  13.5k|		return res;
  693|  13.5k|	}
_ZN4pcpp8DnsLayer15removeAuthorityERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  705|  27.1k|	{
  706|  27.1k|		DnsResource* authorityToRemove = getAuthority(authorityNameToRemove, exactMatch);
  707|  27.1k|		if (authorityToRemove == nullptr)
  ------------------
  |  Branch (707:7): [True: 16.0k, False: 11.0k]
  ------------------
  708|  16.0k|		{
  709|  16.0k|			PCPP_LOG_DEBUG("Authority not found");
  ------------------
  |  |  425|  16.0k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  16.0k|	do                                                                                                                 \
  |  |  |  |  413|  16.0k|	{                                                                                                                  \
  |  |  |  |  414|  16.0k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  16.0k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.0k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 16.0k]
  |  |  |  |  ------------------
  |  |  |  |  416|  16.0k|		{                                                                                                              \
  |  |  |  |  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|  16.0k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 16.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  710|  16.0k|			return false;
  711|  16.0k|		}
  712|       |
  713|  11.0k|		return removeAuthority(authorityToRemove);
  714|  27.1k|	}
_ZN4pcpp8DnsLayer15removeAuthorityEPNS_11DnsResourceE:
  717|  11.0k|	{
  718|  11.0k|		bool res = removeResource(authorityToRemove);
  719|  11.0k|		if (res)
  ------------------
  |  Branch (719:7): [True: 11.0k, False: 0]
  ------------------
  720|  11.0k|		{
  721|       |			// decrease number of authority records
  722|  11.0k|			getDnsHeader()->numberOfAuthority = htobe16(getAuthorityCount() - 1);
  723|  11.0k|		}
  724|       |
  725|  11.0k|		return res;
  726|  11.0k|	}
_ZN4pcpp8DnsLayer19addAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  730|  13.5k|	{
  731|  13.5k|		DnsResource* res = addResource(DnsAdditionalType, name, dnsType, dnsClass, ttl, data);
  732|  13.5k|		if (res != nullptr)
  ------------------
  |  Branch (732:7): [True: 11.1k, False: 2.41k]
  ------------------
  733|  11.1k|		{
  734|       |			// increase number of authority records
  735|  11.1k|			getDnsHeader()->numberOfAdditional = htobe16(getAdditionalRecordCount() + 1);
  736|  11.1k|		}
  737|       |
  738|  13.5k|		return res;
  739|  13.5k|	}
_ZN4pcpp8DnsLayer19addAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeEtjPNS_16IDnsResourceDataE:
  743|  13.5k|	{
  744|  13.5k|		DnsResource* res = addAdditionalRecord(name, dnsType, DNS_CLASS_ANY, customData2, data);
  745|  13.5k|		if (res != nullptr)
  ------------------
  |  Branch (745:7): [True: 11.1k, False: 2.41k]
  ------------------
  746|  11.1k|		{
  747|  11.1k|			res->setCustomDnsClass(customData1);
  748|  11.1k|		}
  749|       |
  750|  13.5k|		return res;
  751|  13.5k|	}
_ZN4pcpp8DnsLayer22removeAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  764|  27.1k|	{
  765|  27.1k|		DnsResource* additionalRecordToRemove = getAdditionalRecord(additionalRecordNameToRemove, exactMatch);
  766|  27.1k|		if (additionalRecordToRemove == nullptr)
  ------------------
  |  Branch (766:7): [True: 16.0k, False: 11.0k]
  ------------------
  767|  16.0k|		{
  768|  16.0k|			PCPP_LOG_DEBUG("Additional record not found");
  ------------------
  |  |  425|  16.0k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  16.0k|	do                                                                                                                 \
  |  |  |  |  413|  16.0k|	{                                                                                                                  \
  |  |  |  |  414|  16.0k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  16.0k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.0k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 16.0k]
  |  |  |  |  ------------------
  |  |  |  |  416|  16.0k|		{                                                                                                              \
  |  |  |  |  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|  16.0k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 16.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  769|  16.0k|			return false;
  770|  16.0k|		}
  771|       |
  772|  11.0k|		return removeAdditionalRecord(additionalRecordToRemove);
  773|  27.1k|	}
_ZN4pcpp8DnsLayer22removeAdditionalRecordEPNS_11DnsResourceE:
  776|  11.0k|	{
  777|  11.0k|		bool res = removeResource(additionalRecordToRemove);
  778|  11.0k|		if (res)
  ------------------
  |  Branch (778:7): [True: 11.0k, False: 0]
  ------------------
  779|  11.0k|		{
  780|       |			// decrease number of additional records
  781|  11.0k|			getDnsHeader()->numberOfAdditional = htobe16(getAdditionalRecordCount() - 1);
  782|  11.0k|		}
  783|       |
  784|  11.0k|		return res;
  785|  11.0k|	}
_ZN4pcpp8DnsLayer14removeResourceEPNS_12IDnsResourceE:
  788|  44.3k|	{
  789|  44.3k|		if (resourceToRemove == nullptr)
  ------------------
  |  Branch (789:7): [True: 0, False: 44.3k]
  ------------------
  790|      0|		{
  791|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  792|      0|			return false;
  793|      0|		}
  794|       |
  795|       |		// find the resource preceding resourceToRemove
  796|  44.3k|		IDnsResource* prevResource = m_ResourceList;
  797|       |
  798|  44.3k|		if (m_ResourceList != resourceToRemove)
  ------------------
  |  Branch (798:7): [True: 38.3k, False: 5.98k]
  ------------------
  799|  38.3k|		{
  800|  59.9k|			while (prevResource != nullptr)
  ------------------
  |  Branch (800:11): [True: 59.9k, False: 0]
  ------------------
  801|  59.9k|			{
  802|  59.9k|				IDnsResource* temp = prevResource->getNextResource();
  803|  59.9k|				if (temp == resourceToRemove)
  ------------------
  |  Branch (803:9): [True: 38.3k, False: 21.6k]
  ------------------
  804|  38.3k|					break;
  805|       |
  806|  21.6k|				prevResource = temp;
  807|  21.6k|			}
  808|  38.3k|		}
  809|       |
  810|  44.3k|		if (prevResource == nullptr)
  ------------------
  |  Branch (810:7): [True: 0, False: 44.3k]
  ------------------
  811|      0|		{
  812|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  813|      0|			return false;
  814|      0|		}
  815|       |
  816|       |		// shorten the layer and fix offset in layer for all next DNS resources in the packet
  817|  44.3k|		if (!shortenLayer(resourceToRemove->m_OffsetInLayer, resourceToRemove->getSize(), resourceToRemove))
  ------------------
  |  Branch (817:7): [True: 0, False: 44.3k]
  ------------------
  818|      0|		{
  819|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  820|      0|			return false;
  821|      0|		}
  822|       |
  823|       |		// remove resourceToRemove from the resources linked list
  824|  44.3k|		if (m_ResourceList != resourceToRemove)
  ------------------
  |  Branch (824:7): [True: 38.3k, False: 5.98k]
  ------------------
  825|  38.3k|		{
  826|  38.3k|			prevResource->setNextResource(resourceToRemove->getNextResource());
  827|  38.3k|		}
  828|  5.98k|		else
  829|  5.98k|		{
  830|  5.98k|			m_ResourceList = resourceToRemove->getNextResource();
  831|  5.98k|		}
  832|       |
  833|       |		// check whether resourceToRemove was the first of its type
  834|  44.3k|		if (getFirstResource(resourceToRemove->getType()) == resourceToRemove)
  ------------------
  |  Branch (834:7): [True: 31.1k, False: 13.1k]
  ------------------
  835|  31.1k|		{
  836|  31.1k|			IDnsResource* nextResource = resourceToRemove->getNextResource();
  837|  31.1k|			if (nextResource != nullptr && nextResource->getType() == resourceToRemove->getType())
  ------------------
  |  Branch (837:8): [True: 3.11k, False: 28.0k]
  |  Branch (837:35): [True: 0, False: 3.11k]
  ------------------
  838|      0|				setFirstResource(resourceToRemove->getType(), nextResource);
  839|  31.1k|			else
  840|  31.1k|				setFirstResource(resourceToRemove->getType(), nullptr);
  841|  31.1k|		}
  842|       |
  843|       |		// free resourceToRemove memory
  844|  44.3k|		delete resourceToRemove;
  845|       |
  846|  44.3k|		return true;
  847|  44.3k|	}
_ZN4pcpp15DnsOverTcpLayer19setTcpMessageLengthEt:
  859|  3.51k|	{
  860|       |		((uint16_t*)m_Data)[0] = htobe16(value);
  861|  3.51k|	}
_ZN4pcpp15DnsOverTcpLayer22computeCalculateFieldsEv:
  864|  3.51k|	{
  865|  3.51k|		setTcpMessageLength(m_DataLen - sizeof(uint16_t));
  866|  3.51k|	}

_ZN4pcpp12IDnsResourceC2EPNS_8DnsLayerEm:
   12|   174k|	    : m_DnsLayer(dnsLayer), m_OffsetInLayer(offsetInLayer), m_NextResource(nullptr), m_ExternalRawData(nullptr)
   13|   174k|	{
   14|   174k|		char decodedName[4096];
   15|   174k|		m_NameLength = decodeName((const char*)getRawData(), decodedName);
   16|   174k|		if (m_NameLength > 0)
  ------------------
  |  Branch (16:7): [True: 152k, False: 22.0k]
  ------------------
   17|   152k|			m_DecodedName = decodedName;
   18|   174k|	}
_ZN4pcpp12IDnsResourceC2EPh:
   21|  54.2k|	    : m_DnsLayer(nullptr), m_OffsetInLayer(0), m_NextResource(nullptr), m_DecodedName(""), m_NameLength(0),
   22|  54.2k|	      m_ExternalRawData(emptyRawData)
   23|  54.2k|	{}
_ZNK4pcpp12IDnsResource10getRawDataEv:
   26|   732k|	{
   27|   732k|		if (m_DnsLayer == nullptr)
  ------------------
  |  Branch (27:7): [True: 440k, False: 292k]
  ------------------
   28|   440k|			return m_ExternalRawData;
   29|       |
   30|   292k|		return m_DnsLayer->m_Data + m_OffsetInLayer;
   31|   732k|	}
_ZN4pcpp12IDnsResource10decodeNameEPKcPci:
   52|   326k|	{
   53|   326k|		size_t encodedNameLength = 0;
   54|   326k|		size_t decodedNameLength = 0;
   55|   326k|		char* resultPtr = result;
   56|   326k|		resultPtr[0] = 0;
   57|       |
   58|   326k|		size_t curOffsetInLayer = (uint8_t*)encodedName - m_DnsLayer->m_Data;
   59|   326k|		if (curOffsetInLayer + 1 > m_DnsLayer->m_DataLen)
  ------------------
  |  Branch (59:7): [True: 8.95k, False: 317k]
  ------------------
   60|  8.95k|			return encodedNameLength;
   61|       |
   62|   317k|		if (iteration > 20)
  ------------------
  |  Branch (62:7): [True: 5.90k, False: 311k]
  ------------------
   63|  5.90k|		{
   64|  5.90k|			return encodedNameLength;
   65|  5.90k|		}
   66|       |
   67|   311k|		uint8_t wordLength = encodedName[0];
   68|       |
   69|       |		// A string to parse
   70|   874k|		while (wordLength != 0)
  ------------------
  |  Branch (70:10): [True: 762k, False: 111k]
  ------------------
   71|   762k|		{
   72|       |			// A pointer to another place in the packet
   73|   762k|			if ((wordLength & 0xc0) == 0xc0)
  ------------------
  |  Branch (73:8): [True: 165k, False: 596k]
  ------------------
   74|   165k|			{
   75|   165k|				if (curOffsetInLayer + 2 > m_DnsLayer->m_DataLen || encodedNameLength > 255)
  ------------------
  |  Branch (75:9): [True: 133, False: 165k]
  |  Branch (75:57): [True: 0, False: 165k]
  ------------------
   76|    133|					return cleanup(resultPtr, result, encodedNameLength);
   77|       |
   78|   165k|				uint16_t offsetInLayer =
   79|   165k|				    (wordLength & 0x3f) * 256 + (0xFF & encodedName[1]) + m_DnsLayer->m_OffsetAdjustment;
   80|   165k|				if (offsetInLayer < sizeof(dnshdr) || offsetInLayer >= m_DnsLayer->m_DataLen)
  ------------------
  |  Branch (80:9): [True: 32, False: 165k]
  |  Branch (80:43): [True: 13.4k, False: 152k]
  ------------------
   81|  13.5k|				{
   82|  13.5k|					PCPP_LOG_ERROR("DNS parsing error: name pointer is illegal");
  ------------------
  |  |  443|  13.5k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  13.5k|	do                                                                                                                 \
  |  |  |  |  413|  13.5k|	{                                                                                                                  \
  |  |  |  |  414|  13.5k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  13.5k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  13.5k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 13.5k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  13.5k|		{                                                                                                              \
  |  |  |  |  417|  13.5k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  13.5k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  13.5k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  13.5k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  13.5k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  13.5k|		}                                                                                                              \
  |  |  |  |  422|  13.5k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 13.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   83|  13.5k|					return 0;
   84|  13.5k|				}
   85|       |
   86|   152k|				char tempResult[4096];
   87|   152k|				memset(tempResult, 0, sizeof(tempResult));
   88|   152k|				int i = 0;
   89|   152k|				decodeName((const char*)(m_DnsLayer->m_Data + offsetInLayer), tempResult, iteration + 1);
   90|  14.3M|				while (tempResult[i] != 0 && decodedNameLength < 255)
  ------------------
  |  Branch (90:12): [True: 14.2M, False: 152k]
  |  Branch (90:34): [True: 14.2M, False: 21]
  ------------------
   91|  14.2M|				{
   92|  14.2M|					resultPtr[0] = tempResult[i++];
   93|  14.2M|					resultPtr++;
   94|  14.2M|					decodedNameLength++;
   95|  14.2M|				}
   96|       |
   97|   152k|				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|   152k|				return encodedNameLength + sizeof(uint16_t);
  101|   165k|			}
  102|   596k|			else
  103|   596k|			{
  104|       |				// return if next word would be outside of the DNS layer or overflow the buffer behind resultPtr
  105|   596k|				if (curOffsetInLayer + wordLength + 1 > m_DnsLayer->m_DataLen || encodedNameLength + wordLength > 255)
  ------------------
  |  Branch (105:9): [True: 31.9k, False: 565k]
  |  Branch (105:70): [True: 7, False: 564k]
  ------------------
  106|  31.9k|				{
  107|       |					// add the last '\0' to the decoded string
  108|  31.9k|					if (encodedNameLength == 256)
  ------------------
  |  Branch (108:10): [True: 0, False: 31.9k]
  ------------------
  109|      0|					{
  110|      0|						resultPtr--;
  111|       |						// cppcheck-suppress unreadVariable
  112|      0|						decodedNameLength--;
  113|      0|					}
  114|  31.9k|					else
  115|  31.9k|					{
  116|  31.9k|						encodedNameLength++;
  117|  31.9k|					}
  118|       |
  119|  31.9k|					resultPtr[0] = 0;
  120|  31.9k|					return encodedNameLength;
  121|  31.9k|				}
  122|       |
  123|   564k|				memcpy(resultPtr, encodedName + 1, wordLength);
  124|   564k|				resultPtr += wordLength;
  125|   564k|				resultPtr[0] = '.';
  126|   564k|				resultPtr++;
  127|   564k|				decodedNameLength += wordLength + 1;
  128|   564k|				encodedName += wordLength + 1;
  129|   564k|				encodedNameLength += wordLength + 1;
  130|       |
  131|   564k|				curOffsetInLayer = (uint8_t*)encodedName - m_DnsLayer->m_Data;
  132|   564k|				if (curOffsetInLayer + 1 > m_DnsLayer->m_DataLen)
  ------------------
  |  Branch (132:9): [True: 2.01k, False: 562k]
  ------------------
  133|  2.01k|				{
  134|       |					// add the last '\0' to the decoded string
  135|  2.01k|					if (encodedNameLength == 256)
  ------------------
  |  Branch (135:10): [True: 0, False: 2.01k]
  ------------------
  136|      0|					{
  137|       |						// cppcheck-suppress unreadVariable
  138|      0|						decodedNameLength--;
  139|      0|						resultPtr--;
  140|      0|					}
  141|  2.01k|					else
  142|  2.01k|					{
  143|  2.01k|						encodedNameLength++;
  144|  2.01k|					}
  145|       |
  146|  2.01k|					resultPtr[0] = 0;
  147|  2.01k|					return encodedNameLength;
  148|  2.01k|				}
  149|       |
  150|   562k|				wordLength = encodedName[0];
  151|   562k|			}
  152|   762k|		}
  153|       |
  154|   111k|		return cleanup(resultPtr, result, encodedNameLength);
  155|   311k|	}
_ZN4pcpp12IDnsResource10encodeNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPcRm:
  158|  54.2k|	{
  159|  54.2k|		resultLen = 0;
  160|  54.2k|		std::stringstream strstream(decodedName);
  161|  54.2k|		std::string word;
  162|   203k|		while (getline(strstream, word, '.'))
  ------------------
  |  Branch (162:10): [True: 149k, False: 54.2k]
  ------------------
  163|   149k|		{
  164|       |			// pointer to a different hostname in the packet
  165|   149k|			if (word[0] == '#')
  ------------------
  |  Branch (165:8): [True: 0, False: 149k]
  ------------------
  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|   149k|			result[0] = word.length();
  187|   149k|			result++;
  188|   149k|			memcpy(result, word.c_str(), word.length());
  189|   149k|			result += word.length();
  190|   149k|			resultLen += word.length() + 1;
  191|   149k|		}
  192|       |
  193|  54.2k|		result[0] = 0;
  194|  54.2k|		resultLen++;
  195|  54.2k|	}
_ZNK4pcpp12IDnsResource10getDnsTypeEv:
  198|  40.6k|	{
  199|  40.6k|		uint16_t dnsType = *reinterpret_cast<uint16_t*>(getRawData() + m_NameLength);
  200|       |		return static_cast<DnsType>(be16toh(dnsType));
  201|  40.6k|	}
_ZN4pcpp12IDnsResource10setDnsTypeENS_7DnsTypeE:
  204|  54.2k|	{
  205|       |		uint16_t newTypeAsInt = htobe16((uint16_t)newType);
  206|  54.2k|		memcpy(getRawData() + m_NameLength, &newTypeAsInt, sizeof(uint16_t));
  207|  54.2k|	}
_ZN4pcpp12IDnsResource11setDnsClassENS_8DnsClassE:
  216|  54.2k|	{
  217|       |		uint16_t newClassAsInt = htobe16((uint16_t)newClass);
  218|  54.2k|		memcpy(getRawData() + m_NameLength + sizeof(uint16_t), &newClassAsInt, sizeof(uint16_t));
  219|  54.2k|	}
_ZN4pcpp12IDnsResource7setNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  222|  54.2k|	{
  223|  54.2k|		char encodedName[4096];
  224|  54.2k|		size_t encodedNameLen = 0;
  225|  54.2k|		encodeName(newName, encodedName, encodedNameLen);
  226|  54.2k|		if (m_DnsLayer != nullptr)
  ------------------
  |  Branch (226:7): [True: 0, False: 54.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|  54.2k|		else
  246|  54.2k|		{
  247|  54.2k|			size_t size = getSize();
  248|  54.2k|			char* tempData = new char[size];
  249|  54.2k|			memcpy(tempData, m_ExternalRawData, size);
  250|  54.2k|			memcpy(m_ExternalRawData + encodedNameLen, tempData, size);
  251|  54.2k|			delete[] tempData;
  252|  54.2k|		}
  253|       |
  254|  54.2k|		memcpy(getRawData(), encodedName, encodedNameLen);
  255|  54.2k|		m_NameLength = encodedNameLen;
  256|  54.2k|		m_DecodedName = newName;
  257|       |
  258|  54.2k|		return true;
  259|  54.2k|	}
_ZN4pcpp12IDnsResource11setDnsLayerEPNS_8DnsLayerEm:
  262|  44.5k|	{
  263|  44.5k|		memcpy(dnsLayer->m_Data + offsetInLayer, m_ExternalRawData, getSize());
  264|  44.5k|		m_DnsLayer = dnsLayer;
  265|  44.5k|		m_OffsetInLayer = offsetInLayer;
  266|  44.5k|		m_ExternalRawData = nullptr;
  267|  44.5k|	}
_ZN4pcpp11DnsResource6setTTLEj:
  276|  40.6k|	{
  277|       |		newTTL = htobe32(newTTL);
  278|  40.6k|		memcpy(getRawData() + m_NameLength + 2 * sizeof(uint16_t), &newTTL, sizeof(uint32_t));
  279|  40.6k|	}
_ZNK4pcpp11DnsResource13getDataLengthEv:
  282|   240k|	{
  283|       |
  284|   240k|		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|   240k|		if (m_DnsLayer && m_OffsetInLayer + sizeToRead >= m_DnsLayer->m_DataLen - 1)
  ------------------
  |  Branch (288:7): [True: 126k, False: 114k]
  |  Branch (288:21): [True: 19.1k, False: 106k]
  ------------------
  289|  19.1k|		{
  290|  19.1k|			return 0;
  291|  19.1k|		}
  292|       |
  293|   221k|		uint16_t dataLength = *reinterpret_cast<uint16_t*>(getRawData() + sizeToRead);
  294|       |		return be16toh(dataLength);
  295|   240k|	}
_ZN4pcpp11DnsResource7setDataEPNS_16IDnsResourceDataE:
  342|  40.6k|	{
  343|       |		// convert data to byte array according to the DNS type
  344|  40.6k|		size_t dataLength = 0;
  345|  40.6k|		uint8_t dataAsByteArr[4096];
  346|       |
  347|  40.6k|		if (data == nullptr)
  ------------------
  |  Branch (347:7): [True: 0, False: 40.6k]
  ------------------
  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|  40.6k|		switch (getDnsType())
  354|  40.6k|		{
  355|  27.1k|		case DNS_TYPE_A:
  ------------------
  |  Branch (355:3): [True: 27.1k, False: 13.5k]
  ------------------
  356|  27.1k|		{
  357|  27.1k|			if (!data->isTypeOf<IPv4DnsResourceData>())
  ------------------
  |  Branch (357:8): [True: 0, False: 27.1k]
  ------------------
  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|  27.1k|			break;
  363|  27.1k|		}
  364|       |
  365|  27.1k|		case DNS_TYPE_AAAA:
  ------------------
  |  Branch (365:3): [True: 0, False: 40.6k]
  ------------------
  366|      0|		{
  367|      0|			if (!data->isTypeOf<IPv6DnsResourceData>())
  ------------------
  |  Branch (367:8): [True: 0, False: 0]
  ------------------
  368|      0|			{
  369|      0|				PCPP_LOG_ERROR("DNS record is of type AAAA but given data isn't of type IPv6DnsResourceData");
  ------------------
  |  |  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: 40.6k]
  ------------------
  376|      0|		case DNS_TYPE_CNAME:
  ------------------
  |  Branch (376:3): [True: 0, False: 40.6k]
  ------------------
  377|      0|		case DNS_TYPE_DNAM:
  ------------------
  |  Branch (377:3): [True: 0, False: 40.6k]
  ------------------
  378|      0|		case DNS_TYPE_PTR:
  ------------------
  |  Branch (378:3): [True: 0, False: 40.6k]
  ------------------
  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: 40.6k]
  ------------------
  390|      0|		{
  391|      0|			if (!data->isTypeOf<MxDnsResourceData>())
  ------------------
  |  Branch (391:8): [True: 0, False: 0]
  ------------------
  392|      0|			{
  393|      0|				PCPP_LOG_ERROR("DNS record is of type MX but given data isn't of type MxDnsResourceData");
  ------------------
  |  |  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|  13.5k|		default:
  ------------------
  |  Branch (399:3): [True: 13.5k, False: 27.1k]
  ------------------
  400|  13.5k|		{
  401|       |			// do nothing
  402|  13.5k|		}
  403|  40.6k|		}
  404|       |
  405|       |		// convert the IDnsResourceData to byte array
  406|  40.6k|		if (!data->toByteArr(dataAsByteArr, dataLength, this))
  ------------------
  |  Branch (406:7): [True: 0, False: 40.6k]
  ------------------
  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|  40.6k|		size_t dataLengthOffset = m_NameLength + (2 * sizeof(uint16_t)) + sizeof(uint32_t);
  413|  40.6k|		size_t dataOffset = dataLengthOffset + sizeof(uint16_t);
  414|       |
  415|  40.6k|		if (m_DnsLayer != nullptr)
  ------------------
  |  Branch (415:7): [True: 0, False: 40.6k]
  ------------------
  416|      0|		{
  417|      0|			size_t curLength = getDataLength();
  418|      0|			if (dataLength > curLength)
  ------------------
  |  Branch (418:8): [True: 0, False: 0]
  ------------------
  419|      0|			{
  420|      0|				if (!m_DnsLayer->extendLayer(m_OffsetInLayer + dataOffset, dataLength - curLength, this))
  ------------------
  |  Branch (420:9): [True: 0, False: 0]
  ------------------
  421|      0|				{
  422|      0|					PCPP_LOG_ERROR("Couldn't set data for DNS query, unable to extend layer");
  ------------------
  |  |  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|  40.6k|		memcpy(getRawData() + dataOffset, dataAsByteArr, dataLength);
  438|       |		// update data length in resource
  439|  40.6k|		dataLength = htobe16((uint16_t)dataLength);
  440|  40.6k|		memcpy(getRawData() + dataLengthOffset, &dataLength, sizeof(uint16_t));
  441|       |
  442|  40.6k|		return true;
  443|  40.6k|	}
_ZN4pcpp11DnsResource17setCustomDnsClassEt:
  452|  11.1k|	{
  453|  11.1k|		memcpy(getRawData() + m_NameLength + sizeof(uint16_t), &customValue, sizeof(uint16_t));
  454|  11.1k|	}
DnsResource.cpp:_ZN4pcppL7cleanupEPcS0_m:
   34|   111k|	{
   35|       |		// remove the last "."
   36|   111k|		if (resultPtr > result)
  ------------------
  |  Branch (36:7): [True: 87.6k, False: 24.1k]
  ------------------
   37|  87.6k|		{
   38|  87.6k|			result[resultPtr - result - 1] = 0;
   39|  87.6k|		}
   40|       |
   41|   111k|		if (resultPtr - result < 256)
  ------------------
  |  Branch (41:7): [True: 111k, False: 0]
  ------------------
   42|   111k|		{
   43|       |			// add the last '\0' to encodedNameLength
   44|   111k|			resultPtr[0] = 0;
   45|   111k|			encodedNameLength++;
   46|   111k|		}
   47|       |
   48|   111k|		return encodedNameLength;
   49|   111k|	}

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

_ZN4pcpp9DoIpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  200|  57.4k|	    : Layer(data, dataLen, prevLayer, packet, DOIP)
  201|  57.4k|	{}
_ZN4pcpp9DoIpLayer11isDataValidEPhm:
  204|  65.4k|	{
  205|  65.4k|		if (data == nullptr || dataLen < DOIP_HEADER_LEN)
  ------------------
  |  Branch (205:7): [True: 0, False: 65.4k]
  |  Branch (205:26): [True: 1.09k, False: 64.3k]
  ------------------
  206|  1.09k|			return false;
  207|       |
  208|  64.3k|		auto* doipHeader = reinterpret_cast<doiphdr*>(data);
  209|  64.3k|		const uint8_t version = doipHeader->protocolVersion;
  210|  64.3k|		const uint8_t inVersion = doipHeader->invertProtocolVersion;
  211|  64.3k|		const uint16_t payloadTypeRaw = doipHeader->payloadType;
  212|  64.3k|		const uint32_t lengthRaw = doipHeader->payloadLength;
  213|       |
  214|  64.3k|		if (!isPayloadTypeValid(be16toh(payloadTypeRaw)))
  ------------------
  |  Branch (214:7): [True: 2.12k, False: 62.2k]
  ------------------
  215|  2.12k|			return false;
  216|       |		// if payload type is validated, we ensure passing a valid type to isProtocolVersionValid()
  217|  62.2k|		const DoIpPayloadTypes payloadType = static_cast<DoIpPayloadTypes>(be16toh(payloadTypeRaw));
  218|  62.2k|		if (!isProtocolVersionValid(version, inVersion, payloadType))
  ------------------
  |  Branch (218:7): [True: 2.08k, False: 60.1k]
  ------------------
  219|  2.08k|			return false;
  220|       |
  221|  60.1k|		if (!isPayloadLengthValid(be32toh(lengthRaw), dataLen))
  ------------------
  |  Branch (221:7): [True: 2.45k, False: 57.6k]
  ------------------
  222|  2.45k|			return false;
  223|       |
  224|  57.6k|		return true;
  225|  60.1k|	}
_ZN4pcpp9DoIpLayer14parseDoIpLayerEPhmPNS_5LayerEPNS_6PacketE:
  228|  57.6k|	{
  229|  57.6k|		doiphdr* doipHeader = reinterpret_cast<doiphdr*>(data);
  230|  57.6k|		uint16_t payloadType = doipHeader->payloadType;
  231|  57.6k|		DoIpPayloadTypes detectedPayloadType = static_cast<DoIpPayloadTypes>(be16toh(payloadType));
  232|       |
  233|  57.6k|		switch (detectedPayloadType)
  234|  57.6k|		{
  235|  8.91k|		case DoIpPayloadTypes::GENERIC_HEADER_NACK:
  ------------------
  |  Branch (235:3): [True: 8.91k, False: 48.7k]
  ------------------
  236|  8.91k|			return (DoIpGenericHeaderNack::isDataLenValid(dataLen))
  ------------------
  |  Branch (236:11): [True: 8.91k, False: 0]
  ------------------
  237|  8.91k|			           ? new DoIpGenericHeaderNack(data, dataLen, prevLayer, packet)
  238|  8.91k|			           : nullptr;
  239|  3.89k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST:
  ------------------
  |  Branch (239:3): [True: 3.89k, False: 53.7k]
  ------------------
  240|  3.89k|			return (DoIpVehicleIdentificationRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (240:11): [True: 3.89k, False: 0]
  ------------------
  241|  3.89k|			           ? new DoIpVehicleIdentificationRequest(data, dataLen, prevLayer, packet)
  242|  3.89k|			           : nullptr;
  243|  2.10k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID:
  ------------------
  |  Branch (243:3): [True: 2.10k, False: 55.5k]
  ------------------
  244|  2.10k|			return (DoIpVehicleIdentificationRequestWithEID::isDataLenValid(dataLen))
  ------------------
  |  Branch (244:11): [True: 2.07k, False: 36]
  ------------------
  245|  2.10k|			           ? new DoIpVehicleIdentificationRequestWithEID(data, dataLen, prevLayer, packet)
  246|  2.10k|			           : nullptr;
  247|  1.99k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN:
  ------------------
  |  Branch (247:3): [True: 1.99k, False: 55.6k]
  ------------------
  248|  1.99k|			return (DoIpVehicleIdentificationRequestWithVIN::isDataLenValid(dataLen))
  ------------------
  |  Branch (248:11): [True: 1.99k, False: 0]
  ------------------
  249|  1.99k|			           ? new DoIpVehicleIdentificationRequestWithVIN(data, dataLen, prevLayer, packet)
  250|  1.99k|			           : nullptr;
  251|  2.25k|		case DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE:
  ------------------
  |  Branch (251:3): [True: 2.25k, False: 55.4k]
  ------------------
  252|  2.25k|			return (DoIpVehicleAnnouncementMessage::isDataLenValid(dataLen))
  ------------------
  |  Branch (252:11): [True: 2.25k, False: 0]
  ------------------
  253|  2.25k|			           ? new DoIpVehicleAnnouncementMessage(data, dataLen, prevLayer, packet)
  254|  2.25k|			           : nullptr;
  255|  2.45k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST:
  ------------------
  |  Branch (255:3): [True: 2.45k, False: 55.2k]
  ------------------
  256|  2.45k|			return (DoIpRoutingActivationRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (256:11): [True: 2.45k, False: 0]
  ------------------
  257|  2.45k|			           ? new DoIpRoutingActivationRequest(data, dataLen, prevLayer, packet)
  258|  2.45k|			           : nullptr;
  259|  2.10k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE:
  ------------------
  |  Branch (259:3): [True: 2.10k, False: 55.5k]
  ------------------
  260|  2.10k|			return (DoIpRoutingActivationResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (260:11): [True: 2.10k, False: 0]
  ------------------
  261|  2.10k|			           ? new DoIpRoutingActivationResponse(data, dataLen, prevLayer, packet)
  262|  2.10k|			           : nullptr;
  263|  4.88k|		case DoIpPayloadTypes::ALIVE_CHECK_REQUEST:
  ------------------
  |  Branch (263:3): [True: 4.88k, False: 52.7k]
  ------------------
  264|  4.88k|			return (DoIpAliveCheckRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (264:11): [True: 4.88k, False: 0]
  ------------------
  265|  4.88k|			           ? new DoIpAliveCheckRequest(data, dataLen, prevLayer, packet)
  266|  4.88k|			           : nullptr;
  267|  3.17k|		case DoIpPayloadTypes::ALIVE_CHECK_RESPONSE:
  ------------------
  |  Branch (267:3): [True: 3.17k, False: 54.4k]
  ------------------
  268|  3.17k|			return (DoIpAliveCheckResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (268:11): [True: 3.17k, False: 0]
  ------------------
  269|  3.17k|			           ? new DoIpAliveCheckResponse(data, dataLen, prevLayer, packet)
  270|  3.17k|			           : nullptr;
  271|  5.47k|		case DoIpPayloadTypes::ENTITY_STATUS_REQUEST:
  ------------------
  |  Branch (271:3): [True: 5.47k, False: 52.1k]
  ------------------
  272|  5.47k|			return (DoIpEntityStatusRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (272:11): [True: 5.24k, False: 228]
  ------------------
  273|  5.47k|			           ? new DoIpEntityStatusRequest(data, dataLen, prevLayer, packet)
  274|  5.47k|			           : nullptr;
  275|  6.36k|		case DoIpPayloadTypes::ENTITY_STATUS_RESPONSE:
  ------------------
  |  Branch (275:3): [True: 6.36k, False: 51.3k]
  ------------------
  276|  6.36k|			return (DoIpEntityStatusResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (276:11): [True: 6.36k, False: 0]
  ------------------
  277|  6.36k|			           ? new DoIpEntityStatusResponse(data, dataLen, prevLayer, packet)
  278|  6.36k|			           : nullptr;
  279|  3.47k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST:
  ------------------
  |  Branch (279:3): [True: 3.47k, False: 54.1k]
  ------------------
  280|  3.47k|			return (DoIpDiagnosticPowerModeRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (280:11): [True: 3.47k, False: 0]
  ------------------
  281|  3.47k|			           ? new DoIpDiagnosticPowerModeRequest(data, dataLen, prevLayer, packet)
  282|  3.47k|			           : nullptr;
  283|  1.50k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE:
  ------------------
  |  Branch (283:3): [True: 1.50k, False: 56.1k]
  ------------------
  284|  1.50k|			return (DoIpDiagnosticPowerModeResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (284:11): [True: 1.50k, False: 0]
  ------------------
  285|  1.50k|			           ? new DoIpDiagnosticPowerModeResponse(data, dataLen, prevLayer, packet)
  286|  1.50k|			           : nullptr;
  287|  7.36k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE:
  ------------------
  |  Branch (287:3): [True: 7.36k, False: 50.3k]
  ------------------
  288|  7.36k|			return (DoIpDiagnosticMessage::isDataLenValid(dataLen))
  ------------------
  |  Branch (288:11): [True: 7.36k, False: 0]
  ------------------
  289|  7.36k|			           ? new DoIpDiagnosticMessage(data, dataLen, prevLayer, packet)
  290|  7.36k|			           : nullptr;
  291|    850|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK:
  ------------------
  |  Branch (291:3): [True: 850, False: 56.8k]
  ------------------
  292|    850|			return (DoIpDiagnosticMessageAck::isDataLenValid(dataLen))
  ------------------
  |  Branch (292:11): [True: 850, False: 0]
  ------------------
  293|    850|			           ? new DoIpDiagnosticMessageAck(data, dataLen, prevLayer, packet)
  294|    850|			           : nullptr;
  295|    864|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK:
  ------------------
  |  Branch (295:3): [True: 864, False: 56.8k]
  ------------------
  296|    864|			return (DoIpDiagnosticMessageNack::isDataLenValid(dataLen))
  ------------------
  |  Branch (296:11): [True: 864, False: 0]
  ------------------
  297|    864|			           ? new DoIpDiagnosticMessageNack(data, dataLen, prevLayer, packet)
  298|    864|			           : nullptr;
  299|      0|		default:
  ------------------
  |  Branch (299:3): [True: 0, False: 57.6k]
  ------------------
  300|      0|			return nullptr;
  301|  57.6k|		}
  302|  57.6k|	}
_ZNK4pcpp9DoIpLayer19getPayloadTypeAsStrEv:
  354|  21.0k|	{
  355|  21.0k|		auto it = DoIpEnumToStringPayloadType.find(getPayloadType());
  356|  21.0k|		return (it != DoIpEnumToStringPayloadType.end()) ? it->second : "Unknown Payload Type";
  ------------------
  |  Branch (356:10): [True: 21.0k, False: 0]
  ------------------
  357|  21.0k|	}
_ZNK4pcpp9DoIpLayer8toStringEv:
  370|  21.0k|	{
  371|  21.0k|		std::ostringstream oss;
  372|  21.0k|		oss << "DoIP Layer, " << getPayloadTypeAsStr() << " (0x" << std::hex << std::setw(4) << std::setfill('0')
  373|  21.0k|		    << static_cast<uint16_t>(getPayloadType()) << ")";
  374|  21.0k|		return oss.str();
  375|  21.0k|	}
_ZN4pcpp9DoIpLayer14parseNextLayerEv:
  386|  57.4k|	{
  387|  57.4k|		if (getPayloadType() == DoIpPayloadTypes::DIAGNOSTIC_MESSAGE)
  ------------------
  |  Branch (387:7): [True: 7.36k, False: 50.0k]
  ------------------
  388|  7.36k|		{
  389|  7.36k|			size_t headerLen = getHeaderLen();
  390|       |
  391|  7.36k|			if (m_DataLen <= headerLen)
  ------------------
  |  Branch (391:8): [True: 0, False: 7.36k]
  ------------------
  392|      0|			{
  393|      0|				return;
  394|      0|			}
  395|       |
  396|  7.36k|			uint8_t* payload = m_Data + headerLen;
  397|  7.36k|			size_t payloadLen = m_DataLen - headerLen;
  398|       |
  399|  7.36k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  400|  7.36k|		}
  401|  57.4k|	}
_ZN4pcpp21DoIpGenericHeaderNackC2EPhmPNS_5LayerEPNS_6PacketE:
  407|  8.91k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  408|  8.91k|	{}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithEIDC2EPhmPNS_5LayerEPNS_6PacketE:
  454|  2.07k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  455|  2.07k|	{}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithVINC2EPhmPNS_5LayerEPNS_6PacketE:
  487|  1.99k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  488|  1.99k|	{}
_ZN4pcpp30DoIpVehicleAnnouncementMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  520|  2.25k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  521|  2.25k|	{}
_ZN4pcpp28DoIpRoutingActivationRequestC2EPhmPNS_5LayerEPNS_6PacketE:
  660|  2.45k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  661|  2.45k|	{}
_ZN4pcpp29DoIpRoutingActivationResponseC2EPhmPNS_5LayerEPNS_6PacketE:
  775|  2.10k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  776|  2.10k|	{}
_ZN4pcpp22DoIpAliveCheckResponseC2EPhmPNS_5LayerEPNS_6PacketE:
  905|  3.17k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  906|  3.17k|	{}
_ZN4pcpp24DoIpEntityStatusResponseC2EPhmPNS_5LayerEPNS_6PacketE:
  943|  6.36k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  944|  6.36k|	{}
_ZN4pcpp31DoIpDiagnosticPowerModeResponseC2EPhmPNS_5LayerEPNS_6PacketE:
 1059|  1.50k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
 1060|  1.50k|	{}
_ZN4pcpp18DoIpDiagnosticBaseC2EPhmPNS_5LayerEPNS_6PacketE:
 1098|  9.08k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
 1099|  9.08k|	{}
_ZN4pcpp21DoIpDiagnosticMessageC2EPhmPNS_5LayerEPNS_6PacketE:
 1125|  7.36k|	    : DoIpDiagnosticBase(data, dataLen, prevLayer, packet)
 1126|  7.36k|	{}
_ZN4pcpp33DoIpDiagnosticResponseMessageBaseC2EPhmPNS_5LayerEPNS_6PacketE:
 1177|  1.71k|	    : DoIpDiagnosticBase(data, dataLen, prevLayer, packet)
 1178|  1.71k|	{}
_ZN4pcpp24DoIpDiagnosticMessageAckC2EPhmPNS_5LayerEPNS_6PacketE:
 1247|    850|	    : DoIpDiagnosticResponseMessageBase(data, dataLen, prevLayer, packet)
 1248|    850|	{}
_ZN4pcpp25DoIpDiagnosticMessageNackC2EPhmPNS_5LayerEPNS_6PacketE:
 1290|    864|	    : DoIpDiagnosticResponseMessageBase(data, dataLen, prevLayer, packet)
 1291|    864|	{}

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

_ZN4pcpp8EthLayer14parseNextLayerEv:
   31|   777k|	{
   32|   777k|		if (m_DataLen <= sizeof(ether_header))
  ------------------
  |  Branch (32:7): [True: 456, False: 777k]
  ------------------
   33|    456|			return;
   34|       |
   35|   777k|		ether_header* hdr = getEthHeader();
   36|   777k|		uint8_t* payload = m_Data + sizeof(ether_header);
   37|   777k|		size_t payloadLen = m_DataLen - sizeof(ether_header);
   38|       |
   39|   777k|		switch (be16toh(hdr->etherType))
  ------------------
  |  Branch (39:11): [True: 774k, False: 2.85k]
  ------------------
   40|   777k|		{
   41|   586k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|   586k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (41:3): [True: 586k, False: 191k]
  ------------------
   42|   586k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   43|   586k|			break;
   44|  53.3k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|  53.3k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (44:3): [True: 53.3k, False: 723k]
  ------------------
   45|  53.3k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   46|  53.3k|			break;
   47|  2.73k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   33|  2.73k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (47:3): [True: 2.73k, False: 774k]
  ------------------
   48|  2.73k|			tryConstructNextLayerWithFallback<ArpLayer, PayloadLayer>(payload, payloadLen);
   49|  2.73k|			break;
   50|   132k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|   132k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (50:3): [True: 132k, False: 645k]
  ------------------
   51|   132k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   61|   132k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (51:3): [True: 0, False: 777k]
  ------------------
   52|   132k|			tryConstructNextLayerWithFallback<VlanLayer, PayloadLayer>(payload, payloadLen);
   53|   132k|			break;
   54|      4|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   53|      4|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (54:3): [True: 4, False: 777k]
  ------------------
   55|      4|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   56|      4|			break;
   57|      0|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   51|      0|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (57:3): [True: 0, False: 777k]
  ------------------
   58|      0|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   59|      0|			break;
   60|      0|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|      0|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (60:3): [True: 0, False: 777k]
  ------------------
   61|      0|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
   62|      0|			break;
   63|      0|		case PCPP_ETHERTYPE_WAKE_ON_LAN:
  ------------------
  |  |   63|      0|#define PCPP_ETHERTYPE_WAKE_ON_LAN 0x0842
  ------------------
  |  Branch (63:3): [True: 0, False: 777k]
  ------------------
   64|      0|			tryConstructNextLayerWithFallback<WakeOnLanLayer, PayloadLayer>(payload, payloadLen);
   65|      0|			break;
   66|   777k|		}
   67|       |
   68|       |		// If no next layer was constructed, assume it's a payload layer
   69|   777k|		if (!hasNextLayer())
  ------------------
  |  Branch (69:7): [True: 2.85k, False: 774k]
  ------------------
   70|  2.85k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   71|   777k|	}
_ZN4pcpp8EthLayer22computeCalculateFieldsEv:
   74|   141k|	{
   75|   141k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (75:7): [True: 228, False: 141k]
  ------------------
   76|    228|			return;
   77|       |
   78|   141k|		switch (m_NextLayer->getProtocol())
   79|   141k|		{
   80|   112k|		case IPv4:
  ------------------
  |  Branch (80:3): [True: 112k, False: 29.4k]
  ------------------
   81|   112k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_IP);
   82|   112k|			break;
   83|  10.7k|		case IPv6:
  ------------------
  |  Branch (83:3): [True: 10.7k, False: 130k]
  ------------------
   84|  10.7k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_IPV6);
   85|  10.7k|			break;
   86|    888|		case ARP:
  ------------------
  |  Branch (86:3): [True: 888, False: 140k]
  ------------------
   87|    888|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_ARP);
   88|    888|			break;
   89|  16.1k|		case VLAN:
  ------------------
  |  Branch (89:3): [True: 16.1k, False: 125k]
  ------------------
   90|  16.1k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_VLAN);
   91|  16.1k|			break;
   92|  1.63k|		default:
  ------------------
  |  Branch (92:3): [True: 1.63k, False: 139k]
  ------------------
   93|  1.63k|			return;
   94|   141k|		}
   95|   141k|	}
_ZNK4pcpp8EthLayer8toStringEv:
   98|   283k|	{
   99|   283k|		return "Ethernet II Layer, Src: " + getSourceMac().toString() + ", Dst: " + getDestMac().toString();
  100|   283k|	}
_ZN4pcpp8EthLayer11isDataValidEPKhm:
  103|   780k|	{
  104|   780k|		if (dataLen >= sizeof(ether_header))
  ------------------
  |  Branch (104:7): [True: 780k, False: 12]
  ------------------
  105|   780k|		{
  106|       |			// Ethertypes: These are 16-bit identifiers appearing as the initial
  107|       |			// two octets after the MAC destination and source (or after a
  108|       |			// tag) which, when considered as an unsigned integer, are equal
  109|       |			// to or larger than 0x0600.
  110|       |			//
  111|       |			// From: https://tools.ietf.org/html/rfc5342#section-2.3.2.1
  112|       |			// More: IEEE Std 802.3 Clause 3.2.6
  113|   780k|			return be16toh(*reinterpret_cast<const uint16_t*>(data + 12)) >= static_cast<uint16_t>(0x0600);
  114|   780k|		}
  115|     12|		else
  116|     12|		{
  117|     12|			return false;
  118|     12|		}
  119|   780k|	}

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

_ZN4pcpp8GreLayer13getGREVersionEPhm:
   24|  76.8k|	{
   25|  76.8k|		if (greDataLen < sizeof(gre_basic_header))
  ------------------
  |  Branch (25:7): [True: 0, False: 76.8k]
  ------------------
   26|      0|			return UnknownProtocol;
   27|       |
   28|  76.8k|		uint8_t version = *(greData + 1);
   29|  76.8k|		version &= 0x07;
   30|  76.8k|		if (version == 0)
  ------------------
  |  Branch (30:7): [True: 9.75k, False: 67.0k]
  ------------------
   31|  9.75k|			return GREv0;
   32|  67.0k|		else if (version == 1)
  ------------------
  |  Branch (32:12): [True: 66.9k, False: 164]
  ------------------
   33|  66.9k|			return GREv1;
   34|    164|		else
   35|    164|			return UnknownProtocol;
   36|  76.8k|	}
_ZNK4pcpp8GreLayer13getFieldValueENS0_8GreFieldEb:
   39|  17.7k|	{
   40|  17.7k|		uint8_t* ptr = m_Data + sizeof(gre_basic_header);
   41|       |
   42|  17.7k|		auto* header = reinterpret_cast<gre_basic_header*>(m_Data);
   43|       |
   44|  17.7k|		constexpr int numGreField = 4;
   45|  43.8k|		for (int curFieldAsInt = static_cast<int>(GreChecksumOrRouting); curFieldAsInt < numGreField; ++curFieldAsInt)
  ------------------
  |  Branch (45:68): [True: 43.8k, False: 0]
  ------------------
   46|  43.8k|		{
   47|  43.8k|			const GreField curField = static_cast<GreField>(curFieldAsInt);
   48|  43.8k|			bool curFieldExists = false;
   49|       |
   50|  43.8k|			uint8_t* origPtr = ptr;
   51|       |
   52|  43.8k|			switch (curField)
   53|  43.8k|			{
   54|  17.7k|			case GreChecksumOrRouting:
  ------------------
  |  Branch (54:4): [True: 17.7k, False: 26.1k]
  ------------------
   55|  17.7k|				if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (55:9): [True: 8.92k, False: 8.77k]
  |  Branch (55:37): [True: 510, False: 8.26k]
  ------------------
   56|  9.43k|				{
   57|  9.43k|					curFieldExists = true;
   58|  9.43k|					ptr += sizeof(uint32_t);
   59|  9.43k|				}
   60|  17.7k|				break;
   61|  11.4k|			case GreKey:
  ------------------
  |  Branch (61:4): [True: 11.4k, False: 32.4k]
  ------------------
   62|  11.4k|				if (header->keyBit == 1)
  ------------------
  |  Branch (62:9): [True: 9.73k, False: 1.68k]
  ------------------
   63|  9.73k|				{
   64|  9.73k|					curFieldExists = true;
   65|  9.73k|					ptr += sizeof(uint32_t);
   66|  9.73k|				}
   67|  11.4k|				break;
   68|  10.9k|			case GreSeq:
  ------------------
  |  Branch (68:4): [True: 10.9k, False: 32.9k]
  ------------------
   69|  10.9k|				if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (69:9): [True: 10.0k, False: 849]
  ------------------
   70|  10.0k|				{
   71|  10.0k|					curFieldExists = true;
   72|  10.0k|					ptr += sizeof(uint32_t);
   73|  10.0k|				}
   74|  10.9k|				break;
   75|  3.82k|			case GreAck:
  ------------------
  |  Branch (75:4): [True: 3.82k, False: 40.0k]
  ------------------
   76|  3.82k|				if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (76:9): [True: 3.82k, False: 0]
  ------------------
   77|  3.82k|				{
   78|  3.82k|					curFieldExists = true;
   79|  3.82k|					ptr += sizeof(uint32_t);
   80|  3.82k|				}
   81|  3.82k|				break;
   82|      0|			default:  // shouldn't get there
  ------------------
  |  Branch (82:4): [True: 0, False: 43.8k]
  ------------------
   83|      0|				return nullptr;
   84|  43.8k|			}
   85|       |
   86|  43.8k|			if (field == curField)
  ------------------
  |  Branch (86:8): [True: 17.7k, False: 26.1k]
  ------------------
   87|  17.7k|			{
   88|  17.7k|				if (curFieldExists || returnOffsetEvenIfFieldMissing)
  ------------------
  |  Branch (88:9): [True: 17.7k, False: 0]
  |  Branch (88:27): [True: 0, False: 0]
  ------------------
   89|  17.7k|					return origPtr;
   90|       |
   91|      0|				return nullptr;
   92|  17.7k|			}
   93|  43.8k|		}  // for
   94|       |
   95|      0|		return nullptr;
   96|  17.7k|	}
_ZN4pcpp8GreLayer27computeCalculateFieldsInnerEv:
   99|  8.70k|	{
  100|  8.70k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  101|  8.70k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (101:7): [True: 8.66k, False: 48]
  ------------------
  102|  8.66k|		{
  103|  8.66k|			switch (m_NextLayer->getProtocol())
  104|  8.66k|			{
  105|     18|			case IPv4:
  ------------------
  |  Branch (105:4): [True: 18, False: 8.64k]
  ------------------
  106|     18|				header->protocol = htobe16(PCPP_ETHERTYPE_IP);
  107|     18|				break;
  108|      0|			case IPv6:
  ------------------
  |  Branch (108:4): [True: 0, False: 8.66k]
  ------------------
  109|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_IPV6);
  110|      0|				break;
  111|      0|			case VLAN:
  ------------------
  |  Branch (111:4): [True: 0, False: 8.66k]
  ------------------
  112|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_VLAN);
  113|      0|				break;
  114|     15|			case MPLS:
  ------------------
  |  Branch (114:4): [True: 15, False: 8.64k]
  ------------------
  115|     15|				header->protocol = htobe16(PCPP_ETHERTYPE_MPLS);
  116|     15|				break;
  117|  5.36k|			case PPP_PPTP:
  ------------------
  |  Branch (117:4): [True: 5.36k, False: 3.29k]
  ------------------
  118|  5.36k|				header->protocol = htobe16(PCPP_ETHERTYPE_PPP);
  119|  5.36k|				break;
  120|      0|			case Ethernet:
  ------------------
  |  Branch (120:4): [True: 0, False: 8.66k]
  ------------------
  121|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_ETHBRIDGE);
  122|      0|				break;
  123|  3.25k|			default:
  ------------------
  |  Branch (123:4): [True: 3.25k, False: 5.40k]
  ------------------
  124|  3.25k|				break;
  125|  8.66k|			}
  126|  8.66k|		}
  127|  8.70k|	}
_ZNK4pcpp8GreLayer17getSequenceNumberERj:
  130|  8.70k|	{
  131|  8.70k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  132|       |
  133|  8.70k|		if (header->sequenceNumBit == 0)
  ------------------
  |  Branch (133:7): [True: 1.59k, False: 7.11k]
  ------------------
  134|  1.59k|			return false;
  135|       |
  136|  7.11k|		uint32_t* val = (uint32_t*)getFieldValue(GreSeq, false);
  137|  7.11k|		if (val == nullptr)
  ------------------
  |  Branch (137:7): [True: 0, False: 7.11k]
  ------------------
  138|      0|			return false;
  139|       |
  140|  7.11k|		seqNumber = be32toh(*val);
  141|  7.11k|		return true;
  142|  7.11k|	}
_ZN4pcpp8GreLayer14parseNextLayerEv:
  196|  76.6k|	{
  197|  76.6k|		size_t headerLen = getHeaderLen();
  198|  76.6k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (198:7): [True: 2.02k, False: 74.6k]
  ------------------
  199|  2.02k|			return;
  200|       |
  201|  74.6k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  202|  74.6k|		uint8_t* payload = m_Data + headerLen;
  203|  74.6k|		size_t payloadLen = m_DataLen - headerLen;
  204|       |
  205|  74.6k|		switch (be16toh(header->protocol))
  206|  74.6k|		{
  207|  1.03k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|  1.03k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (207:3): [True: 1.03k, False: 73.6k]
  ------------------
  208|  1.03k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  209|  1.03k|			break;
  210|      0|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|      0|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (210:3): [True: 0, False: 74.6k]
  ------------------
  211|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  212|      0|			break;
  213|      0|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|      0|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (213:3): [True: 0, False: 74.6k]
  ------------------
  214|      0|			constructNextLayer<VlanLayer>(payload, payloadLen);
  215|      0|			break;
  216|    120|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|    120|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (216:3): [True: 120, False: 74.5k]
  ------------------
  217|    120|			constructNextLayer<MplsLayer>(payload, payloadLen);
  218|    120|			break;
  219|  59.7k|		case PCPP_ETHERTYPE_PPP:
  ------------------
  |  |   57|  59.7k|#define PCPP_ETHERTYPE_PPP 0x880B
  ------------------
  |  Branch (219:3): [True: 59.7k, False: 14.9k]
  ------------------
  220|  59.7k|			tryConstructNextLayerWithFallback<PPP_PPTPLayer, PayloadLayer>(payload, payloadLen);
  221|  59.7k|			break;
  222|      0|		case PCPP_ETHERTYPE_ETHBRIDGE:
  ------------------
  |  |   35|      0|#define PCPP_ETHERTYPE_ETHBRIDGE 0x6558
  ------------------
  |  Branch (222:3): [True: 0, False: 74.6k]
  ------------------
  223|      0|		{
  224|      0|			if (tryConstructNextLayer<EthLayer>(payload, payloadLen) != nullptr)
  ------------------
  |  Branch (224:8): [True: 0, False: 0]
  ------------------
  225|      0|			{
  226|      0|				break;
  227|      0|			}
  228|       |
  229|      0|			tryConstructNextLayerWithFallback<EthDot3Layer, PayloadLayer>(payload, payloadLen);
  230|      0|			break;
  231|      0|		}
  232|  13.7k|		default:
  ------------------
  |  Branch (232:3): [True: 13.7k, False: 60.8k]
  ------------------
  233|  13.7k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  234|  74.6k|		}
  235|  74.6k|	}
_ZNK4pcpp8GreLayer12getHeaderLenEv:
  238|  93.4k|	{
  239|  93.4k|		size_t result = sizeof(gre_basic_header);
  240|       |
  241|  93.4k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  242|       |
  243|  93.4k|		if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (243:7): [True: 15.9k, False: 77.5k]
  |  Branch (243:35): [True: 1.94k, False: 75.5k]
  ------------------
  244|  17.9k|			result += 4;
  245|  93.4k|		if (header->keyBit == 1)
  ------------------
  |  Branch (245:7): [True: 80.9k, False: 12.4k]
  ------------------
  246|  80.9k|			result += 4;
  247|  93.4k|		if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (247:7): [True: 82.5k, False: 10.8k]
  ------------------
  248|  82.5k|			result += 4;
  249|  93.4k|		if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (249:7): [True: 40.7k, False: 52.6k]
  ------------------
  250|  40.7k|			result += 4;
  251|       |
  252|  93.4k|		return result;
  253|  93.4k|	}
_ZN4pcpp10GREv0Layer11getChecksumERt:
  269|  1.91k|	{
  270|  1.91k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (270:7): [True: 279, False: 1.63k]
  ------------------
  271|    279|			return false;
  272|       |
  273|  1.63k|		uint16_t* val = (uint16_t*)getFieldValue(GreChecksumOrRouting, false);
  274|  1.63k|		if (val == nullptr)
  ------------------
  |  Branch (274:7): [True: 0, False: 1.63k]
  ------------------
  275|      0|			return false;
  276|       |
  277|  1.63k|		checksum = be16toh(*val);
  278|  1.63k|		return true;
  279|  1.63k|	}
_ZN4pcpp10GREv0Layer11setChecksumEt:
  282|  3.27k|	{
  283|  3.27k|		gre_basic_header* header = getGreHeader();
  284|       |
  285|  3.27k|		bool needToExtendLayer = false;
  286|       |
  287|  3.27k|		if (header->routingBit == 0 && header->checksumBit == 0)
  ------------------
  |  Branch (287:7): [True: 742, False: 2.53k]
  |  Branch (287:34): [True: 0, False: 742]
  ------------------
  288|      0|			needToExtendLayer = true;
  289|       |
  290|  3.27k|		uint8_t* offsetPtr = getFieldValue(GreChecksumOrRouting, true);
  291|  3.27k|		int offset = offsetPtr - m_Data;
  292|       |		// extend layer in 4 bytes to keep 4-byte alignment
  293|  3.27k|		if (needToExtendLayer && !extendLayer(offset, sizeof(uint32_t)))
  ------------------
  |  Branch (293:7): [True: 0, False: 3.27k]
  |  Branch (293:28): [True: 0, False: 0]
  ------------------
  294|      0|		{
  295|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  296|      0|			return false;
  297|      0|		}
  298|       |
  299|  3.27k|		uint16_t* checksumPtr = (uint16_t*)(m_Data + offset);
  300|  3.27k|		*checksumPtr = htobe16(checksum);
  301|       |
  302|       |		// if layer was extended in 4 bytes, make sure the offset field stays 0
  303|  3.27k|		if (needToExtendLayer)
  ------------------
  |  Branch (303:7): [True: 0, False: 3.27k]
  ------------------
  304|      0|		{
  305|      0|			checksumPtr++;
  306|      0|			*checksumPtr = 0;
  307|      0|		}
  308|       |
  309|  3.27k|		header = getGreHeader();
  310|  3.27k|		header->checksumBit = 1;
  311|       |
  312|  3.27k|		return true;
  313|  3.27k|	}
_ZNK4pcpp10GREv0Layer9getOffsetERt:
  349|  1.91k|	{
  350|  1.91k|		if (getGreHeader()->routingBit == 0)
  ------------------
  |  Branch (350:7): [True: 533, False: 1.38k]
  ------------------
  351|    533|			return false;
  352|       |
  353|  1.38k|		uint8_t* val = (uint8_t*)getFieldValue(GreChecksumOrRouting, false);
  354|  1.38k|		if (val == nullptr)
  ------------------
  |  Branch (354:7): [True: 0, False: 1.38k]
  ------------------
  355|      0|			return false;
  356|       |
  357|  1.38k|		offset = be16toh(*(val + 2));
  358|  1.38k|		return true;
  359|  1.38k|	}
_ZNK4pcpp10GREv0Layer6getKeyERj:
  362|  1.91k|	{
  363|  1.91k|		if (getGreHeader()->keyBit == 0)
  ------------------
  |  Branch (363:7): [True: 1.43k, False: 479]
  ------------------
  364|  1.43k|			return false;
  365|       |
  366|    479|		uint32_t* val = (uint32_t*)getFieldValue(GreKey, false);
  367|    479|		if (val == nullptr)
  ------------------
  |  Branch (367:7): [True: 0, False: 479]
  ------------------
  368|      0|			return false;
  369|       |
  370|    479|		key = be32toh(*val);
  371|    479|		return true;
  372|    479|	}
_ZN4pcpp10GREv0Layer22computeCalculateFieldsEv:
  426|  1.91k|	{
  427|  1.91k|		computeCalculateFieldsInner();
  428|       |
  429|  1.91k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (429:7): [True: 279, False: 1.63k]
  ------------------
  430|    279|			return;
  431|       |
  432|       |		// calculate checksum
  433|  1.63k|		setChecksum(0);
  434|       |
  435|  1.63k|		ScalarBuffer<uint16_t> buffer;
  436|  1.63k|		buffer.buffer = (uint16_t*)m_Data;
  437|  1.63k|		buffer.len = m_DataLen;
  438|  1.63k|		size_t checksum = computeChecksum(&buffer, 1);
  439|       |
  440|  1.63k|		setChecksum(checksum);
  441|  1.63k|	}
_ZNK4pcpp10GREv0Layer8toStringEv:
  444|  3.83k|	{
  445|  3.83k|		return "GRE Layer, version 0";
  446|  3.83k|	}
_ZNK4pcpp10GREv1Layer20getAcknowledgmentNumERj:
  467|  6.79k|	{
  468|  6.79k|		if (getGreHeader()->ackSequenceNumBit == 0)
  ------------------
  |  Branch (468:7): [True: 2.97k, False: 3.82k]
  ------------------
  469|  2.97k|			return false;
  470|       |
  471|  3.82k|		uint32_t* val = (uint32_t*)getFieldValue(GreAck, false);
  472|  3.82k|		if (val == nullptr)
  ------------------
  |  Branch (472:7): [True: 0, False: 3.82k]
  ------------------
  473|      0|			return false;
  474|       |
  475|  3.82k|		ackNum = be32toh(*val);
  476|  3.82k|		return true;
  477|  3.82k|	}
_ZN4pcpp10GREv1Layer22computeCalculateFieldsEv:
  528|  6.79k|	{
  529|  6.79k|		computeCalculateFieldsInner();
  530|       |
  531|       |		getGreHeader()->payloadLength = htobe16(m_DataLen - getHeaderLen());
  532|  6.79k|	}
_ZNK4pcpp10GREv1Layer8toStringEv:
  535|  13.5k|	{
  536|  13.5k|		return "GRE Layer, version 1";
  537|  13.5k|	}
_ZN4pcpp13PPP_PPTPLayer14parseNextLayerEv:
  557|  59.7k|	{
  558|  59.7k|		size_t headerLen = getHeaderLen();
  559|  59.7k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (559:7): [True: 0, False: 59.7k]
  ------------------
  560|      0|			return;
  561|       |
  562|  59.7k|		uint8_t* payload = m_Data + headerLen;
  563|  59.7k|		size_t payloadLen = m_DataLen - headerLen;
  564|       |
  565|  59.7k|		switch (be16toh(getPPP_PPTPHeader()->protocol))
  566|  59.7k|		{
  567|  59.4k|		case PCPP_PPP_IP:
  ------------------
  |  |  398|  59.4k|#define PCPP_PPP_IP 0x21
  ------------------
  |  Branch (567:3): [True: 59.4k, False: 289]
  ------------------
  568|  59.4k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  569|  59.4k|			break;
  570|      0|		case PCPP_PPP_IPV6:
  ------------------
  |  |  450|      0|#define PCPP_PPP_IPV6 0x57
  ------------------
  |  Branch (570:3): [True: 0, False: 59.7k]
  ------------------
  571|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  572|      0|			break;
  573|    289|		default:
  ------------------
  |  Branch (573:3): [True: 289, False: 59.4k]
  ------------------
  574|    289|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  575|    289|			break;
  576|  59.7k|		}
  577|  59.7k|	}
_ZN4pcpp13PPP_PPTPLayer22computeCalculateFieldsEv:
  580|  5.36k|	{
  581|  5.36k|		ppp_pptp_header* header = getPPP_PPTPHeader();
  582|  5.36k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (582:7): [True: 5.36k, False: 0]
  ------------------
  583|  5.36k|		{
  584|  5.36k|			switch (m_NextLayer->getProtocol())
  585|  5.36k|			{
  586|  5.30k|			case IPv4:
  ------------------
  |  Branch (586:4): [True: 5.30k, False: 69]
  ------------------
  587|  5.30k|				header->protocol = htobe16(PCPP_PPP_IP);
  588|  5.30k|				break;
  589|      0|			case IPv6:
  ------------------
  |  Branch (589:4): [True: 0, False: 5.36k]
  ------------------
  590|      0|				header->protocol = htobe16(PCPP_PPP_IPV6);
  591|      0|				break;
  592|     69|			default:
  ------------------
  |  Branch (592:4): [True: 69, False: 5.30k]
  ------------------
  593|     69|				break;
  594|  5.36k|			}
  595|  5.36k|		}
  596|      0|		else
  597|      0|			header->protocol = 0;
  598|  5.36k|	}

_ZN4pcpp10GtpV1Layer12GtpExtensionC2Ev:
   22|  22.2k|	{
   23|  22.2k|		m_Data = nullptr;
   24|  22.2k|		m_DataLen = 0;
   25|  22.2k|		m_ExtType = 0;
   26|  22.2k|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionC2EPhmh:
   29|  1.53k|	{
   30|  1.53k|		m_Data = data;
   31|  1.53k|		m_DataLen = dataLen;
   32|  1.53k|		m_ExtType = type;
   33|  1.53k|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionaSERKS1_:
   43|    752|	{
   44|    752|		m_Data = other.m_Data;
   45|    752|		m_DataLen = other.m_DataLen;
   46|    752|		m_ExtType = other.m_ExtType;
   47|    752|		return *this;
   48|    752|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension6isNullEv:
   51|  15.3k|	{
   52|  15.3k|		return m_Data == nullptr;
   53|  15.3k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getExtensionTypeEv:
   56|  4.20k|	{
   57|  4.20k|		return m_ExtType;
   58|  4.20k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension14getTotalLengthEv:
   61|  13.6k|	{
   62|  13.6k|		if (m_Data == nullptr)
  ------------------
  |  Branch (62:7): [True: 6.84k, False: 6.83k]
  ------------------
   63|  6.84k|		{
   64|  6.84k|			return 0;
   65|  6.84k|		}
   66|       |
   67|  6.83k|		size_t len = (size_t)(m_Data[0] * 4);
   68|  6.83k|		if (len <= m_DataLen)
  ------------------
  |  Branch (68:7): [True: 316, False: 6.51k]
  ------------------
   69|    316|		{
   70|    316|			return len;
   71|    316|		}
   72|       |
   73|  6.51k|		return m_DataLen;
   74|  6.83k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getContentLengthEv:
   77|  6.43k|	{
   78|  6.43k|		size_t res = getTotalLength();
   79|       |
   80|  6.43k|		if (res >= 2 * sizeof(uint8_t))
  ------------------
  |  Branch (80:7): [True: 2.90k, False: 3.52k]
  ------------------
   81|  2.90k|		{
   82|  2.90k|			return (size_t)(res - 2 * sizeof(uint8_t));
   83|  2.90k|		}
   84|       |
   85|  3.52k|		return 0;
   86|  6.43k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension10getContentEv:
   89|  4.20k|	{
   90|  4.20k|		if (m_Data == nullptr || getContentLength() == 0)
  ------------------
  |  Branch (90:7): [True: 3.42k, False: 782]
  |  Branch (90:28): [True: 52, False: 730]
  ------------------
   91|  3.47k|		{
   92|  3.47k|			return nullptr;
   93|  3.47k|		}
   94|       |
   95|    730|		return m_Data + sizeof(uint8_t);
   96|  4.20k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension26getNextExtensionHeaderTypeEv:
   99|  4.95k|	{
  100|  4.95k|		if (m_Data == nullptr || getTotalLength() < 4)
  ------------------
  |  Branch (100:7): [True: 3.42k, False: 1.53k]
  |  Branch (100:28): [True: 88, False: 1.44k]
  ------------------
  101|  3.50k|		{
  102|  3.50k|			return 0;
  103|  3.50k|		}
  104|       |
  105|  1.44k|		uint8_t res = *(uint8_t*)(m_Data + sizeof(uint8_t) + getContentLength());
  106|       |
  107|  1.44k|		return res;
  108|  4.95k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getNextExtensionEv:
  111|  4.95k|	{
  112|  4.95k|		size_t totalLength = getTotalLength();
  113|  4.95k|		uint8_t nextExtType = getNextExtensionHeaderType();
  114|  4.95k|		if (nextExtType > 0 && m_DataLen > totalLength + sizeof(uint8_t))
  ------------------
  |  Branch (114:7): [True: 1.41k, False: 3.54k]
  |  Branch (114:26): [True: 0, False: 1.41k]
  ------------------
  115|      0|		{
  116|      0|			return { m_Data + totalLength, m_DataLen - totalLength, nextExtType };
  117|      0|		}
  118|  4.95k|		else
  119|  4.95k|		{
  120|  4.95k|			return {};
  121|  4.95k|		}
  122|  4.95k|	}
_ZN4pcpp10GtpV1Layer7isGTPv1EPKhm:
  202|  28.7k|	{
  203|  28.7k|		if (data != nullptr && dataSize >= sizeof(gtpv1_header) && (data[0] & 0xE0) == 0x20)
  ------------------
  |  Branch (203:7): [True: 28.7k, False: 0]
  |  Branch (203:26): [True: 28.7k, False: 0]
  |  Branch (203:62): [True: 28.5k, False: 166]
  ------------------
  204|  28.5k|		{
  205|  28.5k|			return true;
  206|  28.5k|		}
  207|       |
  208|    166|		return false;
  209|  28.7k|	}
_ZNK4pcpp10GtpV1Layer14getHeaderExtraEv:
  212|  48.6k|	{
  213|  48.6k|		if (m_Data != nullptr && m_DataLen >= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (213:7): [True: 48.6k, False: 0]
  |  Branch (213:28): [True: 48.1k, False: 520]
  ------------------
  214|  48.1k|		{
  215|  48.1k|			return (gtpv1_header_extra*)(m_Data + sizeof(gtpv1_header));
  216|  48.1k|		}
  217|       |
  218|    520|		return nullptr;
  219|  48.6k|	}
_ZNK4pcpp10GtpV1Layer17getSequenceNumberERt:
  222|  4.20k|	{
  223|  4.20k|		gtpv1_header* header = getHeader();
  224|  4.20k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  225|  4.20k|		if (header != nullptr && headerExtra != nullptr && header->sequenceNumberFlag == 1)
  ------------------
  |  Branch (225:7): [True: 4.20k, False: 0]
  |  Branch (225:28): [True: 4.07k, False: 129]
  |  Branch (225:54): [True: 2.11k, False: 1.96k]
  ------------------
  226|  2.11k|		{
  227|  2.11k|			seqNumber = be16toh(headerExtra->sequenceNumber);
  228|  2.11k|			return true;
  229|  2.11k|		}
  230|       |
  231|  2.09k|		return false;
  232|  4.20k|	}
_ZNK4pcpp10GtpV1Layer13getNpduNumberERh:
  274|  4.20k|	{
  275|  4.20k|		gtpv1_header* header = getHeader();
  276|  4.20k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  277|  4.20k|		if (header != nullptr && headerExtra != nullptr && header->npduNumberFlag == 1)
  ------------------
  |  Branch (277:7): [True: 4.20k, False: 0]
  |  Branch (277:28): [True: 4.07k, False: 129]
  |  Branch (277:54): [True: 1.34k, False: 2.72k]
  ------------------
  278|  1.34k|		{
  279|  1.34k|			npduNum = headerExtra->npduNumber;
  280|  1.34k|			return true;
  281|  1.34k|		}
  282|       |
  283|  2.85k|		return false;
  284|  4.20k|	}
_ZNK4pcpp10GtpV1Layer26getNextExtensionHeaderTypeERh:
  326|  18.7k|	{
  327|  18.7k|		gtpv1_header* header = getHeader();
  328|  18.7k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  329|  18.7k|		if (header != nullptr && headerExtra != nullptr && header->extensionHeaderFlag == 1)
  ------------------
  |  Branch (329:7): [True: 18.7k, False: 0]
  |  Branch (329:28): [True: 18.6k, False: 129]
  |  Branch (329:54): [True: 3.80k, False: 14.8k]
  ------------------
  330|  3.80k|		{
  331|  3.80k|			nextExtType = headerExtra->nextExtensionHeader;
  332|  3.80k|			return true;
  333|  3.80k|		}
  334|       |
  335|  14.9k|		return false;
  336|  18.7k|	}
_ZNK4pcpp10GtpV1Layer16getNextExtensionEv:
  339|  18.7k|	{
  340|  18.7k|		uint8_t nextExtType = 0;
  341|  18.7k|		bool nextExtExists = getNextExtensionHeaderType(nextExtType);
  342|  18.7k|		if (!nextExtExists || nextExtType == 0 || m_DataLen <= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (342:7): [True: 14.9k, False: 3.80k]
  |  Branch (342:25): [True: 2.26k, False: 1.53k]
  |  Branch (342:45): [True: 0, False: 1.53k]
  ------------------
  343|  17.2k|		{
  344|  17.2k|			return {};
  345|  17.2k|		}
  346|       |
  347|  1.53k|		return { m_Data + sizeof(gtpv1_header) + sizeof(gtpv1_header_extra),
  348|  1.53k|			     m_DataLen - sizeof(gtpv1_header) - sizeof(gtpv1_header_extra), nextExtType };
  349|  18.7k|	}
_ZNK4pcpp10GtpV1Layer14getMessageTypeEv:
  430|  4.20k|	{
  431|  4.20k|		gtpv1_header* header = getHeader();
  432|       |
  433|  4.20k|		if (header == nullptr)
  ------------------
  |  Branch (433:7): [True: 0, False: 4.20k]
  ------------------
  434|      0|		{
  435|      0|			return GtpV1_MessageTypeUnknown;
  436|      0|		}
  437|       |
  438|  4.20k|		return (GtpV1MessageType)header->messageType;
  439|  4.20k|	}
_ZN4pcpp33createGtpV1MessageTypeToStringMapEv:
  442|      2|	{
  443|      2|		std::unordered_map<uint8_t, std::string> tempMap;
  444|       |
  445|      2|		tempMap[0] = "GTPv1 Message Type Unknown";
  446|      2|		tempMap[1] = "Echo Request";
  447|      2|		tempMap[2] = "Echo Response";
  448|      2|		tempMap[3] = "Version Not Supported";
  449|      2|		tempMap[4] = "Node Alive Request";
  450|      2|		tempMap[5] = "Node Alive Response";
  451|      2|		tempMap[6] = "Redirection Request";
  452|      2|		tempMap[7] = "Create PDP Context Request";
  453|      2|		tempMap[16] = "Create PDP Context Response";
  454|      2|		tempMap[17] = "Update PDP Context Request";
  455|      2|		tempMap[18] = "Update PDP Context Response";
  456|      2|		tempMap[19] = "Delete PDP Context Request";
  457|      2|		tempMap[20] = "Delete PDP Context Response";
  458|      2|		tempMap[22] = "Initiate PDP Context Activation Request";
  459|      2|		tempMap[23] = "Initiate PDP Context Activation Response";
  460|      2|		tempMap[26] = "Error Indication";
  461|      2|		tempMap[27] = "PDU Notification Request";
  462|      2|		tempMap[28] = "PDU Notification Response";
  463|      2|		tempMap[29] = "PDU Notification Reject Request";
  464|      2|		tempMap[30] = "PDU Notification Reject Response";
  465|      2|		tempMap[31] = "Supported Extensions Header Notification";
  466|      2|		tempMap[32] = "Send Routing for GPRS Request";
  467|      2|		tempMap[33] = "Send Routing for GPRS Response";
  468|      2|		tempMap[34] = "Failure Report Request";
  469|      2|		tempMap[35] = "Failure Report Response";
  470|      2|		tempMap[36] = "Note MS Present Request";
  471|      2|		tempMap[37] = "Note MS Present Response";
  472|      2|		tempMap[38] = "Identification Request";
  473|      2|		tempMap[39] = "Identification Response";
  474|      2|		tempMap[50] = "SGSN Context Request";
  475|      2|		tempMap[51] = "SGSN Context Response";
  476|      2|		tempMap[52] = "SGSN Context Acknowledge";
  477|      2|		tempMap[53] = "Forward Relocation Request";
  478|      2|		tempMap[54] = "Forward Relocation Response";
  479|      2|		tempMap[55] = "Forward Relocation Complete";
  480|      2|		tempMap[56] = "Relocation Cancel Request";
  481|      2|		tempMap[57] = "Relocation Cancel Response";
  482|      2|		tempMap[58] = "Forward SRNS Context";
  483|      2|		tempMap[59] = "Forward Relocation Complete Acknowledge";
  484|      2|		tempMap[60] = "Forward SRNS Context Acknowledge";
  485|      2|		tempMap[61] = "UE Registration Request";
  486|      2|		tempMap[62] = "UE Registration Response";
  487|      2|		tempMap[70] = "RAN Information Relay";
  488|      2|		tempMap[96] = "MBMS Notification Request";
  489|      2|		tempMap[97] = "MBMS Notification Response";
  490|      2|		tempMap[98] = "MBMS Notification Reject Request";
  491|      2|		tempMap[99] = "MBMS Notification Reject Response";
  492|      2|		tempMap[100] = "Create MBMS Notification Request";
  493|      2|		tempMap[101] = "Create MBMS Notification Response";
  494|      2|		tempMap[102] = "Update MBMS Notification Request";
  495|      2|		tempMap[103] = "Update MBMS Notification Response";
  496|      2|		tempMap[104] = "Delete MBMS Notification Request";
  497|      2|		tempMap[105] = "Delete MBMS Notification Response";
  498|      2|		tempMap[112] = "MBMS Registration Request";
  499|      2|		tempMap[113] = "MBMS Registration Response";
  500|      2|		tempMap[114] = "MBMS De-Registration Request";
  501|      2|		tempMap[115] = "MBMS De-Registration Response";
  502|      2|		tempMap[116] = "MBMS Session Start Request";
  503|      2|		tempMap[117] = "MBMS Session Start Response";
  504|      2|		tempMap[118] = "MBMS Session Stop Request";
  505|      2|		tempMap[119] = "MBMS Session Stop Response";
  506|      2|		tempMap[120] = "MBMS Session Update Request";
  507|      2|		tempMap[121] = "MBMS Session Update Response";
  508|      2|		tempMap[128] = "MS Info Change Request";
  509|      2|		tempMap[129] = "MS Info Change Response";
  510|      2|		tempMap[240] = "Data Record Transfer Request";
  511|      2|		tempMap[241] = "Data Record Transfer Response";
  512|      2|		tempMap[254] = "End Marker";
  513|      2|		tempMap[255] = "G-PDU";
  514|       |
  515|      2|		return tempMap;
  516|      2|	}
_ZNK4pcpp10GtpV1Layer22getMessageTypeAsStringEv:
  521|  7.80k|	{
  522|  7.80k|		gtpv1_header* header = getHeader();
  523|       |
  524|  7.80k|		if (header == nullptr)
  ------------------
  |  Branch (524:7): [True: 0, False: 7.80k]
  ------------------
  525|      0|		{
  526|      0|			return GTPv1MsgTypeToStringMap.find(0)->second;
  527|      0|		}
  528|       |
  529|  7.80k|		auto iter = GTPv1MsgTypeToStringMap.find(header->messageType);
  530|  7.80k|		if (iter != GTPv1MsgTypeToStringMap.end())
  ------------------
  |  Branch (530:7): [True: 4.20k, False: 3.60k]
  ------------------
  531|  4.20k|		{
  532|  4.20k|			return iter->second;
  533|  4.20k|		}
  534|  3.60k|		else
  535|  3.60k|		{
  536|  3.60k|			return GTPv1MsgTypeToStringMap.find(0)->second;
  537|  3.60k|		}
  538|  7.80k|	}
_ZNK4pcpp10GtpV1Layer13isGTPUMessageEv:
  541|  4.20k|	{
  542|  4.20k|		gtpv1_header* header = getHeader();
  543|  4.20k|		if (header == nullptr)
  ------------------
  |  Branch (543:7): [True: 0, False: 4.20k]
  ------------------
  544|      0|		{
  545|      0|			return false;
  546|      0|		}
  547|       |
  548|  4.20k|		return header->messageType == PCPP_GTP_V1_GPDU_MESSAGE_TYPE;
  ------------------
  |  |   15|  4.20k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  549|  4.20k|	}
_ZNK4pcpp10GtpV1Layer13isGTPCMessageEv:
  552|  4.20k|	{
  553|  4.20k|		gtpv1_header* header = getHeader();
  554|  4.20k|		if (header == nullptr)
  ------------------
  |  Branch (554:7): [True: 0, False: 4.20k]
  ------------------
  555|      0|		{
  556|      0|			return false;
  557|      0|		}
  558|       |
  559|  4.20k|		return header->messageType != PCPP_GTP_V1_GPDU_MESSAGE_TYPE;
  ------------------
  |  |   15|  4.20k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  560|  4.20k|	}
_ZN4pcpp10GtpV1Layer14parseNextLayerEv:
  563|  28.5k|	{
  564|  28.5k|		size_t headerLen = getHeaderLen();
  565|  28.5k|		if (headerLen < sizeof(gtpv1_header))
  ------------------
  |  Branch (565:7): [True: 0, False: 28.5k]
  ------------------
  566|      0|		{
  567|       |			// do nothing
  568|      0|			return;
  569|      0|		}
  570|       |
  571|  28.5k|		gtpv1_header* header = getHeader();
  572|  28.5k|		if (header->messageType != PCPP_GTP_V1_GPDU_MESSAGE_TYPE)
  ------------------
  |  |   15|  28.5k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  |  Branch (572:7): [True: 9.53k, False: 19.0k]
  ------------------
  573|  9.53k|		{
  574|       |			// this is a GTP-C message, hence it is the last layer
  575|  9.53k|			return;
  576|  9.53k|		}
  577|       |
  578|  19.0k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (578:7): [True: 713, False: 18.3k]
  ------------------
  579|    713|		{
  580|       |			// no data beyond headerLen, nothing to parse further
  581|    713|			return;
  582|    713|		}
  583|       |
  584|       |		// GTP-U message, try to parse the next layer
  585|       |
  586|  18.3k|		auto* payload = static_cast<uint8_t*>(m_Data + headerLen);
  587|  18.3k|		size_t payloadLen = m_DataLen - headerLen;
  588|       |
  589|  18.3k|		uint8_t subProto = *payload;
  590|  18.3k|		if (subProto >= 0x45 && subProto <= 0x4e)
  ------------------
  |  Branch (590:7): [True: 18.0k, False: 280]
  |  Branch (590:27): [True: 16.0k, False: 1.98k]
  ------------------
  591|  16.0k|		{
  592|  16.0k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  593|  16.0k|		}
  594|  2.26k|		else if ((subProto & 0xf0) == 0x60)
  ------------------
  |  Branch (594:12): [True: 1.45k, False: 806]
  ------------------
  595|  1.45k|		{
  596|  1.45k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  597|  1.45k|		}
  598|    806|		else
  599|    806|		{
  600|    806|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  601|    806|		}
  602|  18.3k|	}
_ZNK4pcpp10GtpV1Layer12getHeaderLenEv:
  605|  32.7k|	{
  606|  32.7k|		gtpv1_header* header = getHeader();
  607|  32.7k|		if (header == nullptr)
  ------------------
  |  Branch (607:7): [True: 0, False: 32.7k]
  ------------------
  608|      0|		{
  609|      0|			return 0;
  610|      0|		}
  611|       |
  612|  32.7k|		size_t res = sizeof(gtpv1_header);
  613|       |
  614|  32.7k|		if (header->messageType != PCPP_GTP_V1_GPDU_MESSAGE_TYPE)
  ------------------
  |  |   15|  32.7k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  |  Branch (614:7): [True: 11.3k, False: 21.4k]
  ------------------
  615|  11.3k|		{
  616|  11.3k|			size_t msgLen = be16toh(header->messageLength);
  617|  11.3k|			res += (msgLen > m_DataLen - sizeof(gtpv1_header) ? m_DataLen - sizeof(gtpv1_header) : msgLen);
  ------------------
  |  Branch (617:12): [True: 10.8k, False: 510]
  ------------------
  618|  11.3k|		}
  619|  21.4k|		else
  620|  21.4k|		{
  621|  21.4k|			gtpv1_header_extra* headerExtra = getHeaderExtra();
  622|  21.4k|			if (headerExtra != nullptr &&
  ------------------
  |  Branch (622:8): [True: 21.3k, False: 133]
  ------------------
  623|  21.3k|			    (header->extensionHeaderFlag == 1 || header->sequenceNumberFlag == 1 || header->npduNumberFlag == 1))
  ------------------
  |  Branch (623:9): [True: 2.70k, False: 18.5k]
  |  Branch (623:45): [True: 9.78k, False: 8.81k]
  |  Branch (623:80): [True: 2.09k, False: 6.72k]
  ------------------
  624|  14.5k|			{
  625|  14.5k|				res += sizeof(gtpv1_header_extra);
  626|  14.5k|				GtpExtension nextExt = getNextExtension();
  627|  15.3k|				while (!nextExt.isNull())
  ------------------
  |  Branch (627:12): [True: 752, False: 14.5k]
  ------------------
  628|    752|				{
  629|    752|					res += nextExt.getTotalLength();
  630|    752|					nextExt = nextExt.getNextExtension();
  631|    752|				}
  632|  14.5k|			}
  633|  21.4k|		}
  634|       |
  635|  32.7k|		return res;
  636|  32.7k|	}
_ZNK4pcpp10GtpV1Layer8toStringEv:
  639|  8.40k|	{
  640|  8.40k|		std::string res = "GTP v1 Layer";
  641|       |
  642|  8.40k|		gtpv1_header* header = getHeader();
  643|  8.40k|		if (header != nullptr)
  ------------------
  |  Branch (643:7): [True: 8.40k, False: 0]
  ------------------
  644|  8.40k|		{
  645|  8.40k|			std::stringstream teidStream;
  646|  8.40k|			teidStream << be32toh(header->teid);
  647|       |
  648|  8.40k|			std::string gtpu_gtpc;
  649|  8.40k|			if (header->messageType == PCPP_GTP_V1_GPDU_MESSAGE_TYPE)
  ------------------
  |  |   15|  8.40k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  |  Branch (649:8): [True: 4.80k, False: 3.60k]
  ------------------
  650|  4.80k|			{
  651|  4.80k|				gtpu_gtpc = "GTP-U message";
  652|  4.80k|			}
  653|  3.60k|			else
  654|  3.60k|			{
  655|  3.60k|				gtpu_gtpc = "GTP-C message: " + getMessageTypeAsString();
  656|  3.60k|			}
  657|       |
  658|  8.40k|			res += ", " + gtpu_gtpc + ", TEID: " + teidStream.str();
  659|  8.40k|		}
  660|       |
  661|  8.40k|		return res;
  662|  8.40k|	}
_ZN4pcpp10GtpV1Layer22computeCalculateFieldsEv:
  665|  4.20k|	{
  666|  4.20k|		gtpv1_header* hdr = getHeader();
  667|  4.20k|		if (hdr == nullptr)
  ------------------
  |  Branch (667:7): [True: 0, False: 4.20k]
  ------------------
  668|      0|		{
  669|      0|			return;
  670|      0|		}
  671|       |
  672|  4.20k|		hdr->messageLength = htobe16(m_DataLen - sizeof(gtpv1_header));
  673|  4.20k|	}
_ZNK4pcpp20GtpV2MessageTypeHashclERKNS_16GtpV2MessageTypeE:
  682|    164|		{
  683|    164|			return static_cast<uint8_t>(messageType);
  684|    164|		}

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

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

_ZN4pcpp25AuthenticationHeaderLayer14parseNextLayerEv:
   55|  4.61k|	{
   56|  4.61k|		size_t headerLen = getHeaderLen();
   57|  4.61k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (57:7): [True: 0, False: 4.61k]
  ------------------
   58|      0|			return;
   59|       |
   60|  4.61k|		uint8_t* payload = m_Data + headerLen;
   61|  4.61k|		size_t payloadLen = m_DataLen - headerLen;
   62|       |
   63|  4.61k|		switch (getAHHeader()->nextHeader)
   64|  4.61k|		{
   65|      0|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (65:3): [True: 0, False: 4.61k]
  ------------------
   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.61k]
  ------------------
   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.61k]
  ------------------
   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.63k|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (98:3): [True: 2.63k, False: 1.97k]
  ------------------
   99|  2.63k|		{
  100|  2.63k|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen);
  101|  2.63k|			break;
  102|      0|		}
  103|  1.97k|		default:
  ------------------
  |  Branch (103:3): [True: 1.97k, False: 2.63k]
  ------------------
  104|  1.97k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  105|  4.61k|		}
  106|  4.61k|	}
_ZNK4pcpp25AuthenticationHeaderLayer8toStringEv:
  109|  1.50k|	{
  110|  1.50k|		return "Authentication Header Layer";
  111|  1.50k|	}
_ZNK4pcpp8ESPLayer6getSPIEv:
  118|  1.94k|	{
  119|       |		return be32toh(getESPHeader()->spi);
  120|  1.94k|	}
_ZN4pcpp8ESPLayer14parseNextLayerEv:
  128|  5.60k|	{
  129|  5.60k|		size_t headerLen = getHeaderLen();
  130|  5.60k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (130:7): [True: 1.61k, False: 3.99k]
  ------------------
  131|  1.61k|			return;
  132|       |
  133|  3.99k|		constructNextLayer<PayloadLayer>(m_Data + headerLen, m_DataLen - headerLen);
  134|  3.99k|	}
_ZNK4pcpp8ESPLayer8toStringEv:
  137|  1.94k|	{
  138|  1.94k|		std::ostringstream stream;
  139|  1.94k|		stream << "ESP Layer, SPI: 0x" << std::hex << getSPI();
  140|  1.94k|		return stream.str();
  141|  1.94k|	}

_ZN4pcpp9IPv4Layer17initLayerInPacketEb:
  183|   826k|	{
  184|   826k|		m_Protocol = IPv4;
  185|   826k|		m_NumOfTrailingBytes = 0;
  186|   826k|		m_TempHeaderExtension = 0;
  187|   826k|		if (setTotalLenAsDataLen)
  ------------------
  |  Branch (187:7): [True: 826k, False: 0]
  ------------------
  188|   826k|		{
  189|   826k|			size_t totalLen = be16toh(getIPv4Header()->totalLength);
  190|       |			// if totalLen == 0 this usually means TCP Segmentation Offload (TSO). In this case we should ignore the
  191|       |			// value of totalLen and look at the data captured on the wire
  192|   826k|			if ((totalLen < m_DataLen) && (totalLen != 0))
  ------------------
  |  Branch (192:8): [True: 179k, False: 647k]
  |  Branch (192:34): [True: 169k, False: 9.70k]
  ------------------
  193|   169k|			{
  194|   169k|				auto headerLen = getHeaderLen();
  195|       |				// Make sure totalLen is larger than header len, otherwise it's a malformed packet
  196|   169k|				m_DataLen = totalLen > headerLen ? totalLen : headerLen;
  ------------------
  |  Branch (196:17): [True: 169k, False: 249]
  ------------------
  197|   169k|			}
  198|   826k|		}
  199|   826k|	}
_ZN4pcpp9IPv4LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  220|   826k|	    : Layer(data, dataLen, prevLayer, packet)
  221|   826k|	{
  222|   826k|		initLayerInPacket(true);
  223|   826k|	}
_ZN4pcpp9IPv4Layer14parseNextLayerEv:
  248|   826k|	{
  249|   826k|		size_t hdrLen = getHeaderLen();
  250|   826k|		if (m_DataLen <= hdrLen || hdrLen == 0)
  ------------------
  |  Branch (250:7): [True: 1.23k, False: 825k]
  |  Branch (250:30): [True: 0, False: 825k]
  ------------------
  251|  1.23k|			return;
  252|       |
  253|   825k|		iphdr* ipHdr = getIPv4Header();
  254|       |
  255|   825k|		uint8_t* payload = m_Data + hdrLen;
  256|   825k|		size_t payloadLen = m_DataLen - hdrLen;
  257|       |
  258|       |		// If it's a fragment don't parse upper layers, unless if it's the first fragment
  259|       |		// TODO: assuming first fragment contains at least L4 header, what if it's not true?
  260|   825k|		if (isFragment())
  ------------------
  |  Branch (260:7): [True: 8.41k, False: 817k]
  ------------------
  261|  8.41k|		{
  262|  8.41k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  263|  8.41k|			return;
  264|  8.41k|		}
  265|       |
  266|   817k|		switch (ipHdr->protocol)
  ------------------
  |  Branch (266:11): [True: 816k, False: 710]
  ------------------
  267|   817k|		{
  268|   283k|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (268:3): [True: 283k, False: 533k]
  ------------------
  269|   283k|			tryConstructNextLayerWithFallback<UdpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  270|   283k|			break;
  271|   397k|		case PACKETPP_IPPROTO_TCP:
  ------------------
  |  Branch (271:3): [True: 397k, False: 419k]
  ------------------
  272|   397k|			tryConstructNextLayerWithFallback<TcpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  273|   397k|			break;
  274|  40.0k|		case PACKETPP_IPPROTO_ICMP:
  ------------------
  |  Branch (274:3): [True: 40.0k, False: 776k]
  ------------------
  275|  40.0k|			tryConstructNextLayerWithFallback<IcmpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  276|  40.0k|			break;
  277|  1.70k|		case PACKETPP_IPPROTO_IPIP:
  ------------------
  |  Branch (277:3): [True: 1.70k, False: 815k]
  ------------------
  278|  1.70k|		{
  279|       |			// todo: no tests for this case
  280|  1.70k|			switch (IPLayer::getIPVersion(payload, payloadLen))
  281|  1.70k|			{
  282|  1.56k|			case IPv4:
  ------------------
  |  Branch (282:4): [True: 1.56k, False: 141]
  ------------------
  283|  1.56k|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  284|  1.56k|				break;
  285|      0|			case IPv6:
  ------------------
  |  Branch (285:4): [True: 0, False: 1.70k]
  ------------------
  286|      0|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  287|      0|				break;
  288|    141|			default:
  ------------------
  |  Branch (288:4): [True: 141, False: 1.56k]
  ------------------
  289|    141|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  290|    141|				break;
  291|  1.70k|			}
  292|  1.70k|			break;
  293|  1.70k|		}
  294|  64.5k|		case PACKETPP_IPPROTO_GRE:
  ------------------
  |  Branch (294:3): [True: 64.5k, False: 752k]
  ------------------
  295|  64.5k|		{
  296|  64.5k|			switch (GreLayer::getGREVersion(payload, payloadLen))
  297|  64.5k|			{
  298|  3.06k|			case GREv0:
  ------------------
  |  Branch (298:4): [True: 3.06k, False: 61.4k]
  ------------------
  299|  3.06k|				tryConstructNextLayerWithFallback<GREv0Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  300|  3.06k|				break;
  301|  61.2k|			case GREv1:
  ------------------
  |  Branch (301:4): [True: 61.2k, False: 3.23k]
  ------------------
  302|  61.2k|				tryConstructNextLayerWithFallback<GREv1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  303|  61.2k|				break;
  304|    164|			default:
  ------------------
  |  Branch (304:4): [True: 164, False: 64.3k]
  ------------------
  305|    164|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  306|    164|				break;
  307|  64.5k|			};
  308|  64.5k|			break;
  309|  64.5k|		}
  310|  14.8k|		case PACKETPP_IPPROTO_IGMP:
  ------------------
  |  Branch (310:3): [True: 14.8k, False: 802k]
  ------------------
  311|  14.8k|		{
  312|  14.8k|			bool igmpQuery = false;
  313|  14.8k|			ProtocolType igmpVer = IgmpLayer::getIGMPVerFromData(
  314|  14.8k|			    payload, std::min<size_t>(payloadLen, be16toh(getIPv4Header()->totalLength) - hdrLen), igmpQuery);
  315|       |
  316|  14.8k|			switch (igmpVer)
  317|  14.8k|			{
  318|  2.90k|			case IGMPv1:
  ------------------
  |  Branch (318:4): [True: 2.90k, False: 11.9k]
  ------------------
  319|  2.90k|				tryConstructNextLayerWithFallback<IgmpV1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  320|  2.90k|				break;
  321|  7.31k|			case IGMPv2:
  ------------------
  |  Branch (321:4): [True: 7.31k, False: 7.54k]
  ------------------
  322|  7.31k|				tryConstructNextLayerWithFallback<IgmpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  323|  7.31k|				break;
  324|  4.16k|			case IGMPv3:
  ------------------
  |  Branch (324:4): [True: 4.16k, False: 10.6k]
  ------------------
  325|  4.16k|			{
  326|  4.16k|				if (igmpQuery)
  ------------------
  |  Branch (326:9): [True: 2.14k, False: 2.02k]
  ------------------
  327|  2.14k|					tryConstructNextLayerWithFallback<IgmpV3QueryLayer, PayloadLayer>(payload, payloadLen,
  328|  2.14k|					                                                                  getAttachedPacket());
  329|  2.02k|				else
  330|  2.02k|					tryConstructNextLayerWithFallback<IgmpV3ReportLayer, PayloadLayer>(payload, payloadLen,
  331|  2.02k|					                                                                   getAttachedPacket());
  332|  4.16k|				break;
  333|      0|			}
  334|    471|			default:
  ------------------
  |  Branch (334:4): [True: 471, False: 14.3k]
  ------------------
  335|    471|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  336|    471|				break;
  337|  14.8k|			}
  338|  14.8k|			break;
  339|  14.8k|		}
  340|  14.8k|		case PACKETPP_IPPROTO_AH:
  ------------------
  |  Branch (340:3): [True: 4.75k, False: 812k]
  ------------------
  341|  4.75k|			tryConstructNextLayerWithFallback<AuthenticationHeaderLayer, PayloadLayer>(payload, payloadLen,
  342|  4.75k|			                                                                           getAttachedPacket());
  343|  4.75k|			break;
  344|  2.22k|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (344:3): [True: 2.22k, False: 814k]
  ------------------
  345|  2.22k|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  346|  2.22k|			break;
  347|    130|		case PACKETPP_IPPROTO_IPV6:
  ------------------
  |  Branch (347:3): [True: 130, False: 816k]
  ------------------
  348|    130|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  349|    130|			break;
  350|  7.03k|		case PACKETPP_IPPROTO_VRRP:
  ------------------
  |  Branch (350:3): [True: 7.03k, False: 809k]
  ------------------
  351|  7.03k|		{
  352|  7.03k|			switch (VrrpLayer::getVersionFromData(payload, payloadLen))
  353|  7.03k|			{
  354|  3.33k|			case VRRPv2:
  ------------------
  |  Branch (354:4): [True: 3.33k, False: 3.69k]
  ------------------
  355|  3.33k|				tryConstructNextLayerWithFallback<VrrpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  356|  3.33k|				break;
  357|  3.54k|			case VRRPv3:
  ------------------
  |  Branch (357:4): [True: 3.54k, False: 3.49k]
  ------------------
  358|  3.54k|				tryConstructNextLayerWithFallback<VrrpV3Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket(),
  359|  3.54k|				                                                             IPAddress::IPv4AddressType);
  360|  3.54k|				break;
  361|    156|			default:
  ------------------
  |  Branch (361:4): [True: 156, False: 6.87k]
  ------------------
  362|    156|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  363|    156|				break;
  364|  7.03k|			}
  365|  7.03k|			break;
  366|  7.03k|		}
  367|   817k|		}
  368|       |
  369|       |		// If no next layer was constructed, assume it's a payload layer
  370|   817k|		if (!hasNextLayer())
  ------------------
  |  Branch (370:7): [True: 710, False: 816k]
  ------------------
  371|    710|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  372|   817k|	}
_ZN4pcpp9IPv4Layer22computeCalculateFieldsEv:
  375|   140k|	{
  376|   140k|		iphdr* ipHdr = getIPv4Header();
  377|   140k|		ipHdr->ipVersion = (4 & 0x0f);
  378|   140k|		ipHdr->totalLength = htobe16(m_DataLen);
  379|   140k|		ipHdr->headerChecksum = 0;
  380|       |
  381|   140k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (381:7): [True: 139k, False: 333]
  ------------------
  382|   139k|		{
  383|   139k|			switch (m_NextLayer->getProtocol())
  384|   139k|			{
  385|  71.7k|			case TCP:
  ------------------
  |  Branch (385:4): [True: 71.7k, False: 68.1k]
  ------------------
  386|  71.7k|				ipHdr->protocol = PACKETPP_IPPROTO_TCP;
  387|  71.7k|				break;
  388|  44.9k|			case UDP:
  ------------------
  |  Branch (388:4): [True: 44.9k, False: 94.9k]
  ------------------
  389|  44.9k|				ipHdr->protocol = PACKETPP_IPPROTO_UDP;
  390|  44.9k|				break;
  391|  7.03k|			case ICMP:
  ------------------
  |  Branch (391:4): [True: 7.03k, False: 132k]
  ------------------
  392|  7.03k|				ipHdr->protocol = PACKETPP_IPPROTO_ICMP;
  393|  7.03k|				break;
  394|    579|			case GREv0:
  ------------------
  |  Branch (394:4): [True: 579, False: 139k]
  ------------------
  395|  6.24k|			case GREv1:
  ------------------
  |  Branch (395:4): [True: 5.66k, False: 134k]
  ------------------
  396|  6.24k|				ipHdr->protocol = PACKETPP_IPPROTO_GRE;
  397|  6.24k|				break;
  398|    584|			case IGMPv1:
  ------------------
  |  Branch (398:4): [True: 584, False: 139k]
  ------------------
  399|  2.05k|			case IGMPv2:
  ------------------
  |  Branch (399:4): [True: 1.46k, False: 138k]
  ------------------
  400|  2.99k|			case IGMPv3:
  ------------------
  |  Branch (400:4): [True: 943, False: 138k]
  ------------------
  401|  2.99k|				ipHdr->protocol = PACKETPP_IPPROTO_IGMP;
  402|  2.99k|				break;
  403|    825|			case VRRPv2:
  ------------------
  |  Branch (403:4): [True: 825, False: 139k]
  ------------------
  404|  1.64k|			case VRRPv3:
  ------------------
  |  Branch (404:4): [True: 819, False: 139k]
  ------------------
  405|  1.64k|				ipHdr->protocol = PACKETPP_IPPROTO_VRRP;
  406|  1.64k|				break;
  407|  5.29k|			default:
  ------------------
  |  Branch (407:4): [True: 5.29k, False: 134k]
  ------------------
  408|  5.29k|				break;
  409|   139k|			}
  410|   139k|		}
  411|       |
  412|   140k|		ScalarBuffer<uint16_t> scalar = { (uint16_t*)ipHdr, (size_t)(ipHdr->internetHeaderLength * 4) };
  413|       |		ipHdr->headerChecksum = htobe16(computeChecksum(&scalar, 1));
  414|   140k|	}
_ZNK4pcpp9IPv4Layer10isFragmentEv:
  417|  1.11M|	{
  418|  1.11M|		return ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) != 0 || getFragmentOffset() != 0);
  ------------------
  |  |  154|  1.11M|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (418:11): [True: 8.20k, False: 1.10M]
  |  Branch (418:65): [True: 10.0k, False: 1.09M]
  ------------------
  419|  1.11M|	}
_ZNK4pcpp9IPv4Layer15isFirstFragmentEv:
  422|  3.34k|	{
  423|  3.34k|		return isFragment() && (getFragmentOffset() == 0);
  ------------------
  |  Branch (423:10): [True: 3.34k, False: 0]
  |  Branch (423:26): [True: 182, False: 3.16k]
  ------------------
  424|  3.34k|	}
_ZNK4pcpp9IPv4Layer14isLastFragmentEv:
  427|  3.16k|	{
  428|  3.16k|		return isFragment() && ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) == 0);
  ------------------
  |  |  154|  3.16k|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (428:10): [True: 3.16k, False: 0]
  |  Branch (428:26): [True: 1.73k, False: 1.42k]
  ------------------
  429|  3.16k|	}
_ZNK4pcpp9IPv4Layer16getFragmentFlagsEv:
  432|  1.11M|	{
  433|  1.11M|		return getIPv4Header()->fragmentOffset & 0xE0;
  434|  1.11M|	}
_ZNK4pcpp9IPv4Layer17getFragmentOffsetEv:
  437|  1.11M|	{
  438|       |		return be16toh(getIPv4Header()->fragmentOffset & (uint16_t)0xFF1F) * 8;
  439|  1.11M|	}
_ZNK4pcpp9IPv4Layer8toStringEv:
  442|   280k|	{
  443|   280k|		std::string fragment = "";
  444|   280k|		if (isFragment())
  ------------------
  |  Branch (444:7): [True: 3.34k, False: 277k]
  ------------------
  445|  3.34k|		{
  446|  3.34k|			if (isFirstFragment())
  ------------------
  |  Branch (446:8): [True: 182, False: 3.16k]
  ------------------
  447|    182|				fragment = "First fragment";
  448|  3.16k|			else if (isLastFragment())
  ------------------
  |  Branch (448:13): [True: 1.73k, False: 1.42k]
  ------------------
  449|  1.73k|				fragment = "Last fragment";
  450|  1.42k|			else
  451|  1.42k|				fragment = "Fragment";
  452|       |
  453|  3.34k|			std::stringstream sstm;
  454|  3.34k|			sstm << fragment << " [offset= " << getFragmentOffset() << "], ";
  455|  3.34k|			fragment = sstm.str();
  456|  3.34k|		}
  457|       |
  458|   280k|		return "IPv4 Layer, " + fragment + "Src: " + getSrcIPv4Address().toString() +
  459|   280k|		       ", Dst: " + getDstIPv4Address().toString();
  460|   280k|	}

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

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

_ZN4pcpp29icmp_router_address_structure16setRouterAddressENS_11IPv4AddressEj:
   25|    673|	{
   26|    673|		routerAddress = addr.toInt();
   27|       |		preferenceLevel = htobe32(preference);
   28|    673|	}
_ZNK4pcpp9IcmpLayer14getMessageTypeEv:
   39|   175k|	{
   40|   175k|		uint8_t type = getIcmpHeader()->type;
   41|   175k|		if (type > 18)
  ------------------
  |  Branch (41:7): [True: 0, False: 175k]
  ------------------
   42|      0|			return ICMP_UNSUPPORTED;
   43|       |
   44|   175k|		return static_cast<IcmpMessageType>(type);
   45|   175k|	}
_ZN4pcpp9IcmpLayer14cleanIcmpLayerEv:
   48|  4.91k|	{
   49|       |		// remove all layers after
   50|       |
   51|  4.91k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (51:7): [True: 0, False: 4.91k]
  ------------------
   52|      0|		{
   53|      0|			bool res = getAttachedPacket()->removeAllLayersAfter(this);
   54|      0|			if (!res)
  ------------------
  |  Branch (54:8): [True: 0, False: 0]
  ------------------
   55|      0|				return false;
   56|      0|		}
   57|       |
   58|       |		// shorten layer to size of icmphdr
   59|       |
   60|  4.91k|		size_t headerLen = this->getHeaderLen();
   61|  4.91k|		if (headerLen > sizeof(icmphdr))
  ------------------
  |  Branch (61:7): [True: 4.01k, False: 905]
  ------------------
   62|  4.01k|		{
   63|  4.01k|			if (!this->shortenLayer(sizeof(icmphdr), headerLen - sizeof(icmphdr)))
  ------------------
  |  Branch (63:8): [True: 0, False: 4.01k]
  ------------------
   64|      0|				return false;
   65|  4.01k|		}
   66|       |
   67|  4.91k|		return true;
   68|  4.91k|	}
_ZN4pcpp9IcmpLayer16setIpAndL4LayersEPNS_9IPv4LayerEPNS_5LayerE:
  101|  1.13k|	{
  102|  1.13k|		if (getAttachedPacket() == nullptr)
  ------------------
  |  Branch (102:7): [True: 1.13k, False: 0]
  ------------------
  103|  1.13k|		{
  104|  1.13k|			PCPP_LOG_ERROR("Cannot set ICMP data that involves IP and L4 layers on a layer not attached to a packet. "
  ------------------
  |  |  443|  1.13k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  1.13k|	do                                                                                                                 \
  |  |  |  |  413|  1.13k|	{                                                                                                                  \
  |  |  |  |  414|  1.13k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.13k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.13k|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.13k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.13k|		{                                                                                                              \
  |  |  |  |  417|  1.13k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.13k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.13k|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.13k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.13k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.13k|		}                                                                                                              \
  |  |  |  |  422|  1.13k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.13k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  105|  1.13k|			               "Please add the ICMP layer to a packet and try again");
  106|  1.13k|			return false;
  107|  1.13k|		}
  108|       |
  109|      0|		if (ipLayer != nullptr && !getAttachedPacket()->addLayer(ipLayer))
  ------------------
  |  Branch (109:7): [True: 0, False: 0]
  |  Branch (109:29): [True: 0, False: 0]
  ------------------
  110|      0|		{
  111|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  112|      0|			return false;
  113|      0|		}
  114|       |
  115|      0|		if (l4Layer != nullptr && !getAttachedPacket()->addLayer(l4Layer))
  ------------------
  |  Branch (115:7): [True: 0, False: 0]
  |  Branch (115:29): [True: 0, False: 0]
  ------------------
  116|      0|		{
  117|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  118|      0|			return false;
  119|      0|		}
  120|       |
  121|      0|		return true;
  122|      0|	}
_ZN4pcpp9IcmpLayer21getTimestampReplyDataEv:
  197|  2.08k|	{
  198|  2.08k|		if (!isMessageOfType(ICMP_TIMESTAMP_REPLY))
  ------------------
  |  Branch (198:7): [True: 0, False: 2.08k]
  ------------------
  199|      0|			return nullptr;
  200|       |
  201|  2.08k|		return reinterpret_cast<icmp_timestamp_reply*>(m_Data);
  202|  2.08k|	}
_ZN4pcpp9IcmpLayer21setTimestampReplyDataEtt7timevalS1_S1_:
  206|  1.04k|	{
  207|  1.04k|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (207:7): [True: 0, False: 1.04k]
  ------------------
  208|      0|			return nullptr;
  209|       |
  210|  1.04k|		if (!this->extendLayer(m_DataLen, sizeof(icmp_timestamp_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (210:7): [True: 0, False: 1.04k]
  ------------------
  211|      0|			return nullptr;
  212|       |
  213|  1.04k|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_TIMESTAMP_REPLY);
  214|       |
  215|  1.04k|		icmp_timestamp_reply* header = getTimestampReplyData();
  216|  1.04k|		header->code = 0;
  217|  1.04k|		header->id = htobe16(id);
  218|  1.04k|		header->sequence = htobe16(sequence);
  219|  1.04k|		header->originateTimestamp = htobe32(originateTimestamp.tv_sec * 1000 + originateTimestamp.tv_usec / 1000);
  220|  1.04k|		header->receiveTimestamp = htobe32(receiveTimestamp.tv_sec * 1000 + receiveTimestamp.tv_usec / 1000);
  221|  1.04k|		header->transmitTimestamp = htobe32(transmitTimestamp.tv_sec * 1000 + transmitTimestamp.tv_usec / 1000);
  222|       |
  223|  1.04k|		return header;
  224|  1.04k|	}
_ZN4pcpp9IcmpLayer22getDestUnreachableDataEv:
  227|  1.09k|	{
  228|  1.09k|		if (!isMessageOfType(ICMP_DEST_UNREACHABLE))
  ------------------
  |  Branch (228:7): [True: 0, False: 1.09k]
  ------------------
  229|      0|			return nullptr;
  230|       |
  231|  1.09k|		return reinterpret_cast<icmp_destination_unreachable*>(m_Data);
  232|  1.09k|	}
_ZN4pcpp9IcmpLayer22setDestUnreachableDataENS_24IcmpDestUnreachableCodesEtPNS_9IPv4LayerEPNS_5LayerE:
  236|    545|	{
  237|    545|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (237:7): [True: 0, False: 545]
  ------------------
  238|      0|			return nullptr;
  239|       |
  240|    545|		if (!this->extendLayer(m_DataLen, sizeof(icmp_destination_unreachable) - sizeof(icmphdr)))
  ------------------
  |  Branch (240:7): [True: 0, False: 545]
  ------------------
  241|      0|			return nullptr;
  242|       |
  243|    545|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_DEST_UNREACHABLE);
  244|       |
  245|    545|		icmp_destination_unreachable* header = getDestUnreachableData();
  246|    545|		header->code = code;
  247|    545|		header->nextHopMTU = htobe16(nextHopMTU);
  248|    545|		header->unused = 0;
  249|       |
  250|    545|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (250:7): [True: 545, False: 0]
  ------------------
  251|    545|			return nullptr;
  252|       |
  253|      0|		return header;
  254|    545|	}
_ZNK4pcpp9IcmpLayer26getRouterAdvertisementDataEv:
  319|  7.43k|	{
  320|  7.43k|		if (!isMessageOfType(ICMP_ROUTER_ADV))
  ------------------
  |  Branch (320:7): [True: 0, False: 7.43k]
  ------------------
  321|      0|			return nullptr;
  322|       |
  323|  7.43k|		m_RouterAdvData.header = reinterpret_cast<icmp_router_advertisement_hdr*>(m_Data);
  324|       |
  325|  7.43k|		return &m_RouterAdvData;
  326|  7.43k|	}
_ZN4pcpp9IcmpLayer26setRouterAdvertisementDataEhtRKNSt3__16vectorINS_29icmp_router_address_structureENS1_9allocatorIS3_EEEE:
  330|    673|	{
  331|    673|		if (code != 0 && code != 16)
  ------------------
  |  Branch (331:7): [True: 673, False: 0]
  |  Branch (331:20): [True: 0, False: 673]
  ------------------
  332|      0|		{
  333|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  334|      0|			                               << " for ICMP router advertisement data (only codes 0 and 16 are legal)");
  335|      0|			return nullptr;
  336|      0|		}
  337|       |
  338|    673|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (338:7): [True: 0, False: 673]
  ------------------
  339|      0|			return nullptr;
  340|       |
  341|    673|		if (!this->extendLayer(m_DataLen, sizeof(icmp_router_advertisement_hdr) +
  ------------------
  |  Branch (341:7): [True: 0, False: 673]
  ------------------
  342|    673|		                                      (routerAddresses.size() * sizeof(icmp_router_address_structure)) -
  343|    673|		                                      sizeof(icmphdr)))
  344|      0|			return nullptr;
  345|       |
  346|    673|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ROUTER_ADV);
  347|       |
  348|    673|		icmp_router_advertisement* header = getRouterAdvertisementData();
  349|    673|		header->header->code = code;
  350|    673|		header->header->lifetime = htobe16(lifetimeInSeconds);
  351|    673|		header->header->advertisementCount = static_cast<uint8_t>(routerAddresses.size());
  352|    673|		header->header->addressEntrySize = 2;
  353|       |
  354|    673|		icmp_router_address_structure* curPos = reinterpret_cast<icmp_router_address_structure*>(
  355|    673|		    reinterpret_cast<uint8_t*>(header->header) + sizeof(icmp_router_advertisement_hdr));
  356|    673|		for (const auto& iter : routerAddresses)
  ------------------
  |  Branch (356:25): [True: 673, False: 673]
  ------------------
  357|    673|		{
  358|    673|			curPos->routerAddress = iter.routerAddress;
  359|    673|			curPos->preferenceLevel = iter.preferenceLevel;
  360|    673|			curPos += 1;
  361|    673|		}
  362|       |
  363|    673|		return header;
  364|    673|	}
_ZN4pcpp9IcmpLayer19getTimeExceededDataEv:
  388|  1.00k|	{
  389|  1.00k|		if (!isMessageOfType(ICMP_TIME_EXCEEDED))
  ------------------
  |  Branch (389:7): [True: 0, False: 1.00k]
  ------------------
  390|      0|			return nullptr;
  391|       |
  392|  1.00k|		return reinterpret_cast<icmp_time_exceeded*>(m_Data);
  393|  1.00k|	}
_ZN4pcpp9IcmpLayer19setTimeExceededDataEhPNS_9IPv4LayerEPNS_5LayerE:
  396|    500|	{
  397|    500|		if (code > 1)
  ------------------
  |  Branch (397:7): [True: 0, False: 500]
  ------------------
  398|      0|		{
  399|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  400|      0|			return nullptr;
  401|      0|		}
  402|       |
  403|    500|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (403:7): [True: 0, False: 500]
  ------------------
  404|      0|			return nullptr;
  405|       |
  406|    500|		if (!this->extendLayer(m_DataLen, sizeof(icmp_time_exceeded) - sizeof(icmphdr)))
  ------------------
  |  Branch (406:7): [True: 0, False: 500]
  ------------------
  407|      0|			return nullptr;
  408|       |
  409|    500|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_TIME_EXCEEDED);
  410|       |
  411|    500|		icmp_time_exceeded* header = getTimeExceededData();
  412|    500|		header->code = code;
  413|    500|		header->unused = 0;
  414|       |
  415|    500|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (415:7): [True: 500, False: 0]
  ------------------
  416|    500|			return nullptr;
  417|       |
  418|      0|		return header;
  419|    500|	}
_ZN4pcpp9IcmpLayer19getParamProblemDataEv:
  422|    846|	{
  423|    846|		if (!isMessageOfType(ICMP_PARAM_PROBLEM))
  ------------------
  |  Branch (423:7): [True: 0, False: 846]
  ------------------
  424|      0|			return nullptr;
  425|       |
  426|    846|		return reinterpret_cast<icmp_param_problem*>(m_Data);
  427|    846|	}
_ZN4pcpp9IcmpLayer19setParamProblemDataEhhPNS_9IPv4LayerEPNS_5LayerE:
  431|    760|	{
  432|    760|		if (code > 2)
  ------------------
  |  Branch (432:7): [True: 674, False: 86]
  ------------------
  433|    674|		{
  434|    674|			PCPP_LOG_ERROR("Unknown code " << (int)code << " for ICMP parameter problem data");
  ------------------
  |  |  443|    674|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    674|	do                                                                                                                 \
  |  |  |  |  413|    674|	{                                                                                                                  \
  |  |  |  |  414|    674|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    674|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    674|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 674, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    674|		{                                                                                                              \
  |  |  |  |  417|    674|			auto ctx =                                                                                                 \
  |  |  |  |  418|    674|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    674|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    674|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    674|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    674|		}                                                                                                              \
  |  |  |  |  422|    674|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 674]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  435|    674|			return nullptr;
  436|    674|		}
  437|       |
  438|     86|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (438:7): [True: 0, False: 86]
  ------------------
  439|      0|			return nullptr;
  440|       |
  441|     86|		if (!this->extendLayer(m_DataLen, sizeof(icmp_param_problem) - sizeof(icmphdr)))
  ------------------
  |  Branch (441:7): [True: 0, False: 86]
  ------------------
  442|      0|			return nullptr;
  443|       |
  444|     86|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_PARAM_PROBLEM);
  445|       |
  446|     86|		icmp_param_problem* header = getParamProblemData();
  447|     86|		header->code = code;
  448|     86|		header->unused1 = 0;
  449|     86|		header->unused2 = 0;
  450|     86|		header->pointer = errorOctetPointer;
  451|       |
  452|     86|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (452:7): [True: 86, False: 0]
  ------------------
  453|     86|			return nullptr;
  454|       |
  455|      0|		return header;
  456|     86|	}
_ZN4pcpp9IcmpLayer25getAddressMaskRequestDataEv:
  459|    174|	{
  460|    174|		if (!isMessageOfType(ICMP_ADDRESS_MASK_REQUEST))
  ------------------
  |  Branch (460:7): [True: 0, False: 174]
  ------------------
  461|      0|			return nullptr;
  462|       |
  463|    174|		return reinterpret_cast<icmp_address_mask_request*>(m_Data);
  464|    174|	}
_ZN4pcpp9IcmpLayer25setAddressMaskRequestDataEttNS_11IPv4AddressE:
  467|     87|	{
  468|     87|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (468:7): [True: 0, False: 87]
  ------------------
  469|      0|			return nullptr;
  470|       |
  471|     87|		if (!this->extendLayer(m_DataLen, sizeof(icmp_address_mask_request) - sizeof(icmphdr)))
  ------------------
  |  Branch (471:7): [True: 0, False: 87]
  ------------------
  472|      0|			return nullptr;
  473|       |
  474|     87|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ADDRESS_MASK_REQUEST);
  475|       |
  476|     87|		icmp_address_mask_request* header = getAddressMaskRequestData();
  477|     87|		header->code = 0;
  478|     87|		header->id = htobe16(id);
  479|     87|		header->sequence = htobe16(sequence);
  480|     87|		header->addressMask = mask.toInt();
  481|       |
  482|     87|		return header;
  483|     87|	}
_ZN4pcpp9IcmpLayer23getAddressMaskReplyDataEv:
  486|  2.16k|	{
  487|  2.16k|		if (!isMessageOfType(ICMP_ADDRESS_MASK_REPLY))
  ------------------
  |  Branch (487:7): [True: 0, False: 2.16k]
  ------------------
  488|      0|			return nullptr;
  489|       |
  490|  2.16k|		return reinterpret_cast<icmp_address_mask_reply*>(m_Data);
  491|  2.16k|	}
_ZN4pcpp9IcmpLayer23setAddressMaskReplyDataEttNS_11IPv4AddressE:
  494|  1.08k|	{
  495|  1.08k|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (495:7): [True: 0, False: 1.08k]
  ------------------
  496|      0|			return nullptr;
  497|       |
  498|  1.08k|		if (!this->extendLayer(m_DataLen, sizeof(icmp_address_mask_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (498:7): [True: 0, False: 1.08k]
  ------------------
  499|      0|			return nullptr;
  500|       |
  501|  1.08k|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ADDRESS_MASK_REPLY);
  502|       |
  503|  1.08k|		icmp_address_mask_reply* header = getAddressMaskReplyData();
  504|  1.08k|		header->code = 0;
  505|  1.08k|		header->id = htobe16(id);
  506|  1.08k|		header->sequence = htobe16(sequence);
  507|  1.08k|		header->addressMask = htobe32(mask.toInt());
  508|       |
  509|  1.08k|		return header;
  510|  1.08k|	}
_ZN4pcpp9IcmpLayer18getInfoRequestDataEv:
  513|  1.07k|	{
  514|  1.07k|		if (!isMessageOfType(ICMP_INFO_REQUEST))
  ------------------
  |  Branch (514:7): [True: 0, False: 1.07k]
  ------------------
  515|      0|			return nullptr;
  516|       |
  517|  1.07k|		return reinterpret_cast<icmp_info_request*>(m_Data);
  518|  1.07k|	}
_ZN4pcpp9IcmpLayer18setInfoRequestDataEtt:
  521|    535|	{
  522|    535|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (522:7): [True: 0, False: 535]
  ------------------
  523|      0|			return nullptr;
  524|       |
  525|    535|		if (!this->extendLayer(m_DataLen, sizeof(icmp_info_request) - sizeof(icmphdr)))
  ------------------
  |  Branch (525:7): [True: 0, False: 535]
  ------------------
  526|      0|			return nullptr;
  527|       |
  528|    535|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_INFO_REQUEST);
  529|       |
  530|    535|		icmp_info_request* header = getInfoRequestData();
  531|    535|		header->code = 0;
  532|    535|		header->id = htobe16(id);
  533|    535|		header->sequence = htobe16(sequence);
  534|       |
  535|    535|		return header;
  536|    535|	}
_ZN4pcpp9IcmpLayer16getInfoReplyDataEv:
  539|    740|	{
  540|    740|		if (!isMessageOfType(ICMP_INFO_REPLY))
  ------------------
  |  Branch (540:7): [True: 0, False: 740]
  ------------------
  541|      0|			return nullptr;
  542|       |
  543|    740|		return reinterpret_cast<icmp_info_reply*>(m_Data);
  544|    740|	}
_ZN4pcpp9IcmpLayer16setInfoReplyDataEtt:
  547|    370|	{
  548|    370|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (548:7): [True: 0, False: 370]
  ------------------
  549|      0|			return nullptr;
  550|       |
  551|    370|		if (!this->extendLayer(m_DataLen, sizeof(icmp_info_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (551:7): [True: 0, False: 370]
  ------------------
  552|      0|			return nullptr;
  553|       |
  554|    370|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_INFO_REPLY);
  555|       |
  556|    370|		icmp_info_reply* header = getInfoReplyData();
  557|    370|		header->code = 0;
  558|    370|		header->id = htobe16(id);
  559|    370|		header->sequence = htobe16(sequence);
  560|       |
  561|    370|		return header;
  562|    370|	}
_ZN4pcpp9IcmpLayer14parseNextLayerEv:
  565|  39.3k|	{
  566|  39.3k|		size_t headerLen = getHeaderLen();
  567|       |
  568|  39.3k|		auto payloadPtr = m_Data + headerLen;
  569|  39.3k|		auto payloadLen = m_DataLen - headerLen;
  570|       |
  571|  39.3k|		switch (getMessageType())
  572|  39.3k|		{
  573|  3.76k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (573:3): [True: 3.76k, False: 35.6k]
  ------------------
  574|  5.97k|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (574:3): [True: 2.21k, False: 37.1k]
  ------------------
  575|  8.96k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (575:3): [True: 2.99k, False: 36.4k]
  ------------------
  576|  10.4k|		case ICMP_REDIRECT:
  ------------------
  |  Branch (576:3): [True: 1.52k, False: 37.8k]
  ------------------
  577|  15.1k|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (577:3): [True: 4.61k, False: 34.7k]
  ------------------
  578|  15.1k|		{
  579|  15.1k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payloadPtr, payloadLen);
  580|  15.1k|			break;
  581|  10.4k|		}
  582|  24.2k|		default:
  ------------------
  |  Branch (582:3): [True: 24.2k, False: 15.1k]
  ------------------
  583|  24.2k|			if (m_DataLen > headerLen)
  ------------------
  |  Branch (583:8): [True: 19.3k, False: 4.95k]
  ------------------
  584|  19.3k|			{
  585|  19.3k|				constructNextLayer<PayloadLayer>(payloadPtr, payloadLen);
  586|  19.3k|			}
  587|  24.2k|			break;
  588|  39.3k|		}
  589|  39.3k|	}
_ZNK4pcpp9IcmpLayer12getHeaderLenEv:
  592|  65.4k|	{
  593|  65.4k|		IcmpMessageType type = getMessageType();
  594|  65.4k|		size_t routerAdvSize = 0;
  595|  65.4k|		switch (type)
  596|  65.4k|		{
  597|    313|		case ICMP_ECHO_REQUEST:
  ------------------
  |  Branch (597:3): [True: 313, False: 65.1k]
  ------------------
  598|  3.05k|		case ICMP_ECHO_REPLY:
  ------------------
  |  Branch (598:3): [True: 2.74k, False: 62.6k]
  ------------------
  599|  3.05k|			return m_DataLen;
  600|    208|		case ICMP_TIMESTAMP_REQUEST:
  ------------------
  |  Branch (600:3): [True: 208, False: 65.2k]
  ------------------
  601|  9.56k|		case ICMP_TIMESTAMP_REPLY:
  ------------------
  |  Branch (601:3): [True: 9.36k, False: 56.0k]
  ------------------
  602|  9.56k|			return sizeof(icmp_timestamp_request);
  603|  3.27k|		case ICMP_ROUTER_SOL:
  ------------------
  |  Branch (603:3): [True: 3.27k, False: 62.1k]
  ------------------
  604|  8.59k|		case ICMP_INFO_REQUEST:
  ------------------
  |  Branch (604:3): [True: 5.32k, False: 60.0k]
  ------------------
  605|  12.6k|		case ICMP_INFO_REPLY:
  ------------------
  |  Branch (605:3): [True: 4.06k, False: 61.3k]
  ------------------
  606|  12.6k|		case ICMP_UNSUPPORTED:
  ------------------
  |  Branch (606:3): [True: 0, False: 65.4k]
  ------------------
  607|  12.6k|			return sizeof(icmphdr);
  608|  9.74k|		case ICMP_ADDRESS_MASK_REPLY:
  ------------------
  |  Branch (608:3): [True: 9.74k, False: 55.6k]
  ------------------
  609|  10.5k|		case ICMP_ADDRESS_MASK_REQUEST:
  ------------------
  |  Branch (609:3): [True: 783, False: 64.6k]
  ------------------
  610|  10.5k|			return sizeof(icmp_address_mask_request);
  611|  5.94k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (611:3): [True: 5.94k, False: 59.4k]
  ------------------
  612|  5.94k|			return sizeof(icmp_destination_unreachable);
  613|  2.28k|		case ICMP_REDIRECT:
  ------------------
  |  Branch (613:3): [True: 2.28k, False: 63.1k]
  ------------------
  614|  2.28k|			return sizeof(icmp_redirect);
  615|  4.99k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (615:3): [True: 4.99k, False: 60.4k]
  ------------------
  616|  8.31k|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (616:3): [True: 3.32k, False: 62.1k]
  ------------------
  617|  8.31k|			return sizeof(icmp_time_exceeded);
  618|  6.97k|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (618:3): [True: 6.97k, False: 58.4k]
  ------------------
  619|  6.97k|			return sizeof(icmp_param_problem);
  620|  6.09k|		case ICMP_ROUTER_ADV:
  ------------------
  |  Branch (620:3): [True: 6.09k, False: 59.3k]
  ------------------
  621|       |			// clang-format off
  622|  6.09k|			routerAdvSize = sizeof(icmp_router_advertisement_hdr) + (getRouterAdvertisementData()->header->advertisementCount * sizeof(icmp_router_address_structure));
  623|       |			// clang-format on
  624|  6.09k|			if (routerAdvSize > m_DataLen)
  ------------------
  |  Branch (624:8): [True: 45, False: 6.04k]
  ------------------
  625|     45|				return m_DataLen;
  626|  6.04k|			return routerAdvSize;
  627|      0|		default:
  ------------------
  |  Branch (627:3): [True: 0, False: 65.4k]
  ------------------
  628|      0|			return sizeof(icmphdr);
  629|  65.4k|		}
  630|  65.4k|	}
_ZN4pcpp9IcmpLayer22computeCalculateFieldsEv:
  633|  7.03k|	{
  634|       |		// calculate checksum
  635|  7.03k|		getIcmpHeader()->checksum = 0;
  636|       |
  637|  7.03k|		size_t icmpLen = 0;
  638|  7.03k|		Layer* curLayer = this;
  639|  24.8k|		while (curLayer != nullptr)
  ------------------
  |  Branch (639:10): [True: 17.8k, False: 7.03k]
  ------------------
  640|  17.8k|		{
  641|  17.8k|			icmpLen += curLayer->getHeaderLen();
  642|  17.8k|			curLayer = curLayer->getNextLayer();
  643|  17.8k|		}
  644|       |
  645|  7.03k|		ScalarBuffer<uint16_t> buffer;
  646|  7.03k|		buffer.buffer = reinterpret_cast<uint16_t*>(getIcmpHeader());
  647|  7.03k|		buffer.len = icmpLen;
  648|  7.03k|		size_t checksum = computeChecksum(&buffer, 1);
  649|       |
  650|       |		getIcmpHeader()->checksum = htobe16(checksum);
  651|  7.03k|	}
_ZNK4pcpp9IcmpLayer8toStringEv:
  654|  14.0k|	{
  655|  14.0k|		std::string messageTypeAsString;
  656|  14.0k|		IcmpMessageType type = getMessageType();
  657|  14.0k|		switch (type)
  658|  14.0k|		{
  659|    782|		case ICMP_ECHO_REPLY:
  ------------------
  |  Branch (659:3): [True: 782, False: 13.2k]
  ------------------
  660|    782|			messageTypeAsString = "Echo (ping) reply";
  661|    782|			break;
  662|  1.09k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (662:3): [True: 1.09k, False: 12.9k]
  ------------------
  663|  1.09k|			messageTypeAsString = "Destination unreachable";
  664|  1.09k|			break;
  665|    738|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (665:3): [True: 738, False: 13.3k]
  ------------------
  666|    738|			messageTypeAsString = "Source quench (flow control)";
  667|    738|			break;
  668|    508|		case ICMP_REDIRECT:
  ------------------
  |  Branch (668:3): [True: 508, False: 13.5k]
  ------------------
  669|    508|			messageTypeAsString = "Redirect";
  670|    508|			break;
  671|     82|		case ICMP_ECHO_REQUEST:
  ------------------
  |  Branch (671:3): [True: 82, False: 13.9k]
  ------------------
  672|     82|			messageTypeAsString = "Echo (ping) request";
  673|     82|			break;
  674|  1.34k|		case ICMP_ROUTER_ADV:
  ------------------
  |  Branch (674:3): [True: 1.34k, False: 12.7k]
  ------------------
  675|  1.34k|			messageTypeAsString = "Router advertisement";
  676|  1.34k|			break;
  677|    728|		case ICMP_ROUTER_SOL:
  ------------------
  |  Branch (677:3): [True: 728, False: 13.3k]
  ------------------
  678|    728|			messageTypeAsString = "Router solicitation";
  679|    728|			break;
  680|  1.00k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (680:3): [True: 1.00k, False: 13.0k]
  ------------------
  681|  1.00k|			messageTypeAsString = "Time-to-live exceeded";
  682|  1.00k|			break;
  683|  1.52k|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (683:3): [True: 1.52k, False: 12.5k]
  ------------------
  684|  1.52k|			messageTypeAsString = "Parameter problem: bad IP header";
  685|  1.52k|			break;
  686|     52|		case ICMP_TIMESTAMP_REQUEST:
  ------------------
  |  Branch (686:3): [True: 52, False: 14.0k]
  ------------------
  687|     52|			messageTypeAsString = "Timestamp request";
  688|     52|			break;
  689|  2.08k|		case ICMP_TIMESTAMP_REPLY:
  ------------------
  |  Branch (689:3): [True: 2.08k, False: 11.9k]
  ------------------
  690|  2.08k|			messageTypeAsString = "Timestamp reply";
  691|  2.08k|			break;
  692|  1.07k|		case ICMP_INFO_REQUEST:
  ------------------
  |  Branch (692:3): [True: 1.07k, False: 13.0k]
  ------------------
  693|  1.07k|			messageTypeAsString = "Information request";
  694|  1.07k|			break;
  695|    740|		case ICMP_INFO_REPLY:
  ------------------
  |  Branch (695:3): [True: 740, False: 13.3k]
  ------------------
  696|    740|			messageTypeAsString = "Information reply";
  697|    740|			break;
  698|    174|		case ICMP_ADDRESS_MASK_REQUEST:
  ------------------
  |  Branch (698:3): [True: 174, False: 13.9k]
  ------------------
  699|    174|			messageTypeAsString = "Address mask request";
  700|    174|			break;
  701|  2.16k|		case ICMP_ADDRESS_MASK_REPLY:
  ------------------
  |  Branch (701:3): [True: 2.16k, False: 11.9k]
  ------------------
  702|  2.16k|			messageTypeAsString = "Address mask reply";
  703|  2.16k|			break;
  704|      0|		default:
  ------------------
  |  Branch (704:3): [True: 0, False: 14.0k]
  ------------------
  705|      0|			messageTypeAsString = "Unknown";
  706|      0|			break;
  707|  14.0k|		}
  708|       |
  709|  14.0k|		std::ostringstream typeStream;
  710|  14.0k|		typeStream << (int)getIcmpHeader()->type;
  711|       |
  712|  14.0k|		return "ICMP Layer, " + messageTypeAsString + " (type: " + typeStream.str() + ")";
  713|  14.0k|	}

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

_ZNK4pcpp9IgmpLayer7getTypeEv:
   32|  5.98k|	{
   33|  5.98k|		uint8_t type = getIgmpHeader()->type;
   34|  5.98k|		if (type < (uint8_t)IgmpType_MembershipQuery ||
  ------------------
  |  Branch (34:7): [True: 0, False: 5.98k]
  ------------------
   35|  5.98k|		    (type > (uint8_t)IgmpType_LeaveGroup && type < (uint8_t)IgmpType_MulticastTracerouteResponse) ||
  ------------------
  |  Branch (35:8): [True: 814, False: 5.17k]
  |  Branch (35:47): [True: 0, False: 814]
  ------------------
   36|  5.98k|		    (type > (uint8_t)IgmpType_MulticastTraceroute && type < (uint8_t)IgmpType_MembershipReportV3) ||
  ------------------
  |  Branch (36:8): [True: 814, False: 5.17k]
  |  Branch (36:56): [True: 0, False: 814]
  ------------------
   37|  5.98k|		    (type > (uint8_t)IgmpType_MembershipReportV3 && type < (uint8_t)IgmpType_MulticastRouterAdvertisement) ||
  ------------------
  |  Branch (37:8): [True: 0, False: 5.98k]
  |  Branch (37:55): [True: 0, False: 0]
  ------------------
   38|  5.98k|		    type > IgmpType_MulticastRouterTermination)
  ------------------
  |  Branch (38:7): [True: 0, False: 5.98k]
  ------------------
   39|      0|		{
   40|      0|			return IgmpType_Unknown;
   41|      0|		}
   42|       |
   43|  5.98k|		return (IgmpType)type;
   44|  5.98k|	}
_ZN4pcpp9IgmpLayer18getIGMPVerFromDataEPhmRb:
   56|  14.8k|	{
   57|  14.8k|		isQuery = false;
   58|       |
   59|  14.8k|		if (dataLen < 8 || data == nullptr)
  ------------------
  |  Branch (59:7): [True: 145, False: 14.7k]
  |  Branch (59:22): [True: 0, False: 14.7k]
  ------------------
   60|    145|			return UnknownProtocol;
   61|       |
   62|  14.7k|		switch ((int)data[0])
   63|  14.7k|		{
   64|  1.47k|		case IgmpType_MembershipReportV2:
  ------------------
  |  Branch (64:3): [True: 1.47k, False: 13.2k]
  ------------------
   65|  4.09k|		case IgmpType_LeaveGroup:
  ------------------
  |  Branch (65:3): [True: 2.61k, False: 12.0k]
  ------------------
   66|  4.09k|			return IGMPv2;
   67|  1.21k|		case IgmpType_MembershipReportV1:
  ------------------
  |  Branch (67:3): [True: 1.21k, False: 13.4k]
  ------------------
   68|  1.21k|			return IGMPv1;
   69|  2.02k|		case IgmpType_MembershipReportV3:
  ------------------
  |  Branch (69:3): [True: 2.02k, False: 12.6k]
  ------------------
   70|  2.02k|			return IGMPv3;
   71|  7.05k|		case IgmpType_MembershipQuery:
  ------------------
  |  Branch (71:3): [True: 7.05k, False: 7.65k]
  ------------------
   72|  7.05k|		{
   73|  7.05k|			isQuery = true;
   74|       |
   75|  7.05k|			if (dataLen >= sizeof(igmpv3_query_header))
  ------------------
  |  Branch (75:8): [True: 2.14k, False: 4.91k]
  ------------------
   76|  2.14k|				return IGMPv3;
   77|       |
   78|  4.91k|			if (data[1] == 0)
  ------------------
  |  Branch (78:8): [True: 1.69k, False: 3.22k]
  ------------------
   79|  1.69k|				return IGMPv1;
   80|  3.22k|			else
   81|  3.22k|				return IGMPv2;
   82|  4.91k|		}
   83|    326|		default:
  ------------------
  |  Branch (83:3): [True: 326, False: 14.3k]
  ------------------
   84|    326|			return UnknownProtocol;
   85|  14.7k|		}
   86|  14.7k|	}
_ZN4pcpp9IgmpLayer17calculateChecksumEv:
   89|  2.99k|	{
   90|  2.99k|		ScalarBuffer<uint16_t> buffer;
   91|  2.99k|		buffer.buffer = reinterpret_cast<uint16_t*>(getIgmpHeader());
   92|  2.99k|		buffer.len = getHeaderLen();
   93|  2.99k|		return computeChecksum(&buffer, 1);
   94|  2.99k|	}
_ZNK4pcpp9IgmpLayer8toStringEv:
  113|  5.98k|	{
  114|  5.98k|		std::string igmpVer = "";
  115|  5.98k|		switch (getProtocol())
  116|  5.98k|		{
  117|  1.16k|		case IGMPv1:
  ------------------
  |  Branch (117:3): [True: 1.16k, False: 4.81k]
  ------------------
  118|  1.16k|			igmpVer = "1";
  119|  1.16k|			break;
  120|  2.93k|		case IGMPv2:
  ------------------
  |  Branch (120:3): [True: 2.93k, False: 3.05k]
  ------------------
  121|  2.93k|			igmpVer = "2";
  122|  2.93k|			break;
  123|  1.88k|		default:
  ------------------
  |  Branch (123:3): [True: 1.88k, False: 4.10k]
  ------------------
  124|  1.88k|			igmpVer = "3";
  125|  5.98k|		}
  126|       |
  127|  5.98k|		std::string msgType;
  128|       |
  129|  5.98k|		switch (getType())
  130|  5.98k|		{
  131|  3.03k|		case IgmpType_MembershipQuery:
  ------------------
  |  Branch (131:3): [True: 3.03k, False: 2.94k]
  ------------------
  132|  3.03k|			msgType = "Membership Query";
  133|  3.03k|			break;
  134|    492|		case IgmpType_MembershipReportV1:
  ------------------
  |  Branch (134:3): [True: 492, False: 5.49k]
  ------------------
  135|    492|			msgType = "Membership Report";
  136|    492|			break;
  137|      0|		case IgmpType_DVMRP:
  ------------------
  |  Branch (137:3): [True: 0, False: 5.98k]
  ------------------
  138|      0|			msgType = "DVMRP";
  139|      0|			break;
  140|      0|		case IgmpType_P1Mv1:
  ------------------
  |  Branch (140:3): [True: 0, False: 5.98k]
  ------------------
  141|      0|			msgType = "PIMv1";
  142|      0|			break;
  143|      0|		case IgmpType_CiscoTrace:
  ------------------
  |  Branch (143:3): [True: 0, False: 5.98k]
  ------------------
  144|      0|			msgType = "Cisco Trace";
  145|      0|			break;
  146|    594|		case IgmpType_MembershipReportV2:
  ------------------
  |  Branch (146:3): [True: 594, False: 5.39k]
  ------------------
  147|    594|			msgType = "Membership Report";
  148|    594|			break;
  149|  1.04k|		case IgmpType_LeaveGroup:
  ------------------
  |  Branch (149:3): [True: 1.04k, False: 4.93k]
  ------------------
  150|  1.04k|			msgType = "Leave Group";
  151|  1.04k|			break;
  152|      0|		case IgmpType_MulticastTracerouteResponse:
  ------------------
  |  Branch (152:3): [True: 0, False: 5.98k]
  ------------------
  153|      0|			msgType = "Multicast Traceroute Response";
  154|      0|			break;
  155|      0|		case IgmpType_MulticastTraceroute:
  ------------------
  |  Branch (155:3): [True: 0, False: 5.98k]
  ------------------
  156|      0|			msgType = "Multicast Traceroute";
  157|      0|			break;
  158|    814|		case IgmpType_MembershipReportV3:
  ------------------
  |  Branch (158:3): [True: 814, False: 5.17k]
  ------------------
  159|    814|			msgType = "Membership Report";
  160|    814|			break;
  161|      0|		case IgmpType_MulticastRouterAdvertisement:
  ------------------
  |  Branch (161:3): [True: 0, False: 5.98k]
  ------------------
  162|      0|			msgType = "Multicast Router Advertisement";
  163|      0|			break;
  164|      0|		case IgmpType_MulticastRouterSolicitation:
  ------------------
  |  Branch (164:3): [True: 0, False: 5.98k]
  ------------------
  165|      0|			msgType = "Multicast Router Solicitation";
  166|      0|			break;
  167|      0|		case IgmpType_MulticastRouterTermination:
  ------------------
  |  Branch (167:3): [True: 0, False: 5.98k]
  ------------------
  168|      0|			msgType = "Multicast Router Termination";
  169|      0|			break;
  170|      0|		default:
  ------------------
  |  Branch (170:3): [True: 0, False: 5.98k]
  ------------------
  171|      0|			msgType = "Unknown";
  172|      0|			break;
  173|  5.98k|		}
  174|       |
  175|  5.98k|		std::string result = "IGMPv" + igmpVer + " Layer, " + msgType + " message";
  176|  5.98k|		return result;
  177|  5.98k|	}
_ZN4pcpp11IgmpV1Layer22computeCalculateFieldsEv:
  182|    584|	{
  183|    584|		igmp_header* hdr = getIgmpHeader();
  184|    584|		hdr->checksum = 0;
  185|       |		hdr->checksum = htobe16(calculateChecksum());
  186|    584|		hdr->maxResponseTime = 0;
  187|    584|	}
_ZN4pcpp11IgmpV2Layer22computeCalculateFieldsEv:
  192|  1.46k|	{
  193|  1.46k|		igmp_header* hdr = getIgmpHeader();
  194|  1.46k|		hdr->checksum = 0;
  195|       |		hdr->checksum = htobe16(calculateChecksum());
  196|  1.46k|	}
_ZN4pcpp16IgmpV3QueryLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  201|  2.14k|	    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv3)
  202|  2.14k|	{}
_ZNK4pcpp16IgmpV3QueryLayer21getSourceAddressCountEv:
  211|  1.07k|	{
  212|       |		return be16toh(getIgmpV3QueryHeader()->numOfSources);
  213|  1.07k|	}
_ZNK4pcpp16IgmpV3QueryLayer12getHeaderLenEv:
  231|  1.07k|	{
  232|  1.07k|		uint16_t numOfSources = getSourceAddressCount();
  233|       |
  234|  1.07k|		int headerLen = numOfSources * sizeof(uint32_t) + sizeof(igmpv3_query_header);
  235|       |
  236|       |		// verify numOfRecords is a reasonable number that points to data within the packet
  237|  1.07k|		if ((size_t)headerLen > getDataLen())
  ------------------
  |  Branch (237:7): [True: 498, False: 574]
  ------------------
  238|    498|			return getDataLen();
  239|       |
  240|    574|		return (size_t)headerLen;
  241|  1.07k|	}
_ZN4pcpp16IgmpV3QueryLayer22computeCalculateFieldsEv:
  244|    536|	{
  245|    536|		igmpv3_query_header* hdr = getIgmpV3QueryHeader();
  246|    536|		hdr->checksum = 0;
  247|       |		hdr->checksum = htobe16(calculateChecksum());
  248|    536|	}
_ZN4pcpp17IgmpV3ReportLayer22computeCalculateFieldsEv:
  363|    407|	{
  364|    407|		igmpv3_report_header* hdr = getReportHeader();
  365|    407|		hdr->checksum = 0;
  366|       |		hdr->checksum = htobe16(calculateChecksum());
  367|    407|	}

_ZN4pcpp8LLCLayer14parseNextLayerEv:
   28|  3.73k|	{
   29|  3.73k|		if (m_DataLen <= sizeof(llc_header))
  ------------------
  |  Branch (29:7): [True: 903, False: 2.83k]
  ------------------
   30|    903|			return;
   31|       |
   32|  2.83k|		llc_header* hdr = getLlcHeader();
   33|  2.83k|		uint8_t* payload = m_Data + sizeof(llc_header);
   34|  2.83k|		size_t payloadLen = m_DataLen - sizeof(llc_header);
   35|       |
   36|  2.83k|		if (hdr->dsap == 0x42 && hdr->ssap == 0x42 && StpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (36:7): [True: 128, False: 2.70k]
  |  Branch (36:28): [True: 0, False: 128]
  |  Branch (36:49): [True: 0, False: 0]
  ------------------
   37|      0|		{
   38|      0|			constructNextLayerFromFactory(StpLayer::parseStpLayer, payload, payloadLen);
   39|      0|		}
   40|       |
   41|  2.83k|		if (!hasNextLayer())
  ------------------
  |  Branch (41:7): [True: 2.83k, False: 0]
  ------------------
   42|  2.83k|		{
   43|  2.83k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   44|  2.83k|		}
   45|  2.83k|	}
_ZNK4pcpp8LLCLayer8toStringEv:
   48|  1.82k|	{
   49|  1.82k|		return "Logical Link Control";
   50|  1.82k|	}
_ZN4pcpp8LLCLayer11isDataValidEPKhm:
   53|  3.99k|	{
   54|  3.99k|		return dataLen >= sizeof(llc_header) && !(data[0] == 0xFF && data[1] == 0xFF);
  ------------------
  |  Branch (54:10): [True: 3.86k, False: 129]
  |  Branch (54:45): [True: 128, False: 3.73k]
  |  Branch (54:64): [True: 128, False: 0]
  ------------------
   55|  3.99k|	}

_ZN4pcpp5LayerD2Ev:
   12|  4.45M|	{
   13|  4.45M|		if (!isAllocatedToPacket())
  ------------------
  |  Branch (13:7): [True: 113k, False: 4.33M]
  ------------------
   14|   113k|			delete[] m_Data;
   15|  4.45M|	}
_ZN4pcpp5LayerC2ERKS0_:
   17|   113k|	Layer::Layer(const Layer& other) : m_Protocol(other.m_Protocol), m_NextLayer(nullptr), m_PrevLayer(nullptr)
   18|   113k|	{
   19|   113k|		m_DataLen = other.getHeaderLen();
   20|   113k|		m_Data = new uint8_t[other.m_DataLen];
   21|   113k|		memcpy(m_Data, other.m_Data, other.m_DataLen);
   22|   113k|	}
_ZN4pcpp5LayeraSERKS0_:
   25|  13.5k|	{
   26|  13.5k|		if (this == &other)
  ------------------
  |  Branch (26:7): [True: 0, False: 13.5k]
  ------------------
   27|      0|			return *this;
   28|       |
   29|       |		// Should this really always delete m_Data? What if the layer is attached to a packet?
   30|  13.5k|		if (m_Data != nullptr)
  ------------------
  |  Branch (30:7): [True: 13.5k, False: 0]
  ------------------
   31|  13.5k|			delete[] m_Data;
   32|       |
   33|       |		// Reset allocation info as the layer is considered copied and not attached to any packet.
   34|  13.5k|		m_AllocationInfo = internal::LayerAllocationInfo{};
   35|       |
   36|  13.5k|		m_DataLen = other.getHeaderLen();
   37|  13.5k|		m_Protocol = other.m_Protocol;
   38|  13.5k|		m_NextLayer = nullptr;
   39|  13.5k|		m_PrevLayer = nullptr;
   40|  13.5k|		m_Data = new uint8_t[other.m_DataLen];
   41|  13.5k|		memcpy(m_Data, other.m_Data, other.m_DataLen);
   42|       |
   43|  13.5k|		return *this;
   44|  13.5k|	}
_ZNK4pcpp5Layer24isMemberOfProtocolFamilyEj:
   47|  14.7M|	{
   48|  14.7M|		return m_Protocol != UnknownProtocol && internal::protoFamilyContainsProtocol(protocolTypeFamily, m_Protocol);
  ------------------
  |  Branch (48:10): [True: 14.7M, False: 0]
  |  Branch (48:43): [True: 110k, False: 14.6M]
  ------------------
   49|  14.7M|	}
_ZN4pcpp5Layer11extendLayerEim:
   57|   201k|	{
   58|   201k|		if (m_Data == nullptr)
  ------------------
  |  Branch (58:7): [True: 0, False: 201k]
  ------------------
   59|      0|		{
   60|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   61|      0|			return false;
   62|      0|		}
   63|       |
   64|   201k|		if (getAttachedPacket() == nullptr)
  ------------------
  |  Branch (64:7): [True: 110k, False: 91.1k]
  ------------------
   65|   110k|		{
   66|   110k|			if (static_cast<size_t>(offsetInLayer) > m_DataLen)
  ------------------
  |  Branch (66:8): [True: 1.60k, False: 108k]
  ------------------
   67|  1.60k|			{
   68|  1.60k|				PCPP_LOG_ERROR("Requested offset is larger than data length");
  ------------------
  |  |  443|  1.60k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  1.60k|	do                                                                                                                 \
  |  |  |  |  413|  1.60k|	{                                                                                                                  \
  |  |  |  |  414|  1.60k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.60k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.60k|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.60k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.60k|		{                                                                                                              \
  |  |  |  |  417|  1.60k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.60k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.60k|#define LOG_MODULE PacketLogModuleLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.60k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.60k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.60k|		}                                                                                                              \
  |  |  |  |  422|  1.60k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.60k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   69|  1.60k|				return false;
   70|  1.60k|			}
   71|   108k|			uint8_t* newData = new uint8_t[m_DataLen + numOfBytesToExtend];
   72|   108k|			memcpy(newData, m_Data, offsetInLayer);
   73|   108k|			memcpy(newData + offsetInLayer + numOfBytesToExtend, m_Data + offsetInLayer, m_DataLen - offsetInLayer);
   74|   108k|			delete[] m_Data;
   75|   108k|			m_Data = newData;
   76|   108k|			m_DataLen += numOfBytesToExtend;
   77|   108k|			return true;
   78|   110k|		}
   79|       |
   80|  91.1k|		return getAttachedPacket()->extendLayer(this, offsetInLayer, numOfBytesToExtend);
   81|   201k|	}
_ZN4pcpp5Layer12shortenLayerEim:
   84|  91.3k|	{
   85|  91.3k|		if (m_Data == nullptr)
  ------------------
  |  Branch (85:7): [True: 0, False: 91.3k]
  ------------------
   86|      0|		{
   87|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   88|      0|			return false;
   89|      0|		}
   90|       |
   91|  91.3k|		if (static_cast<size_t>(offsetInLayer) + numOfBytesToShorten > m_DataLen)
  ------------------
  |  Branch (91:7): [True: 0, False: 91.3k]
  ------------------
   92|      0|		{
   93|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   94|      0|			return false;
   95|      0|		}
   96|       |
   97|  91.3k|		if (getAttachedPacket() == nullptr)
  ------------------
  |  Branch (97:7): [True: 7.17k, False: 84.1k]
  ------------------
   98|  7.17k|		{
   99|  7.17k|			if (static_cast<size_t>(offsetInLayer) >= m_DataLen)
  ------------------
  |  Branch (99:8): [True: 0, False: 7.17k]
  ------------------
  100|      0|			{
  101|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  102|      0|				return false;
  103|      0|			}
  104|  7.17k|			uint8_t* newData = new uint8_t[m_DataLen - numOfBytesToShorten];
  105|  7.17k|			memcpy(newData, m_Data, offsetInLayer);
  106|  7.17k|			memcpy(newData + offsetInLayer, m_Data + offsetInLayer + numOfBytesToShorten,
  107|  7.17k|			       m_DataLen - offsetInLayer - numOfBytesToShorten);
  108|  7.17k|			delete[] m_Data;
  109|  7.17k|			m_Data = newData;
  110|  7.17k|			m_DataLen -= numOfBytesToShorten;
  111|  7.17k|			return true;
  112|  7.17k|		}
  113|       |
  114|  84.1k|		return getAttachedPacket()->shortenLayer(this, offsetInLayer, numOfBytesToShorten);
  115|  91.3k|	}

_ZNK4pcpp17LdapOperationType8toStringEv:
   64|  17.2k|	{
   65|  17.2k|		return LdapOperationTypeToString.at(m_Value);
   66|  17.2k|	}
_ZN4pcpp17LdapOperationType13fromUintValueEh:
   69|  69.3k|	{
   70|  69.3k|		auto result = UintToLdapOperationType.find(value);
   71|  69.3k|		if (result != UintToLdapOperationType.end())
  ------------------
  |  Branch (71:7): [True: 68.4k, False: 911]
  ------------------
   72|  68.4k|		{
   73|  68.4k|			return result->second;
   74|  68.4k|		}
   75|       |
   76|    911|		return LdapOperationType::Unknown;
   77|  69.3k|	}
_ZNK4pcpp14LdapResultCode8toStringEv:
  172|  4.73k|	{
  173|  4.73k|		return LdapResultCodeToString.at(m_Value);
  174|  4.73k|	}
_ZN4pcpp14LdapResultCode13fromUintValueEh:
  177|  4.73k|	{
  178|  4.73k|		auto result = UintToLdapResultCode.find(value);
  179|  4.73k|		if (result != UintToLdapResultCode.end())
  ------------------
  |  Branch (179:7): [True: 4.73k, False: 0]
  ------------------
  180|  4.73k|		{
  181|  4.73k|			return result->second;
  182|  4.73k|		}
  183|       |
  184|      0|		return LdapResultCode::Unknown;
  185|  4.73k|	}
_ZN4pcpp9LdapLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  199|  53.6k|	    : Layer(data, dataLen, prevLayer, packet, LDAP)
  200|  53.6k|	{
  201|  53.6k|		m_Asn1Record = std::move(asn1Record);
  202|  53.6k|	}
_ZNK4pcpp9LdapLayer8toStringEv:
  258|  17.2k|	{
  259|  17.2k|		auto extendedInfo = getExtendedInfoString();
  260|  17.2k|		return "LDAP Layer, " + getLdapOperationType().toString() + (extendedInfo.empty() ? "" : ", " + extendedInfo);
  ------------------
  |  Branch (260:64): [True: 9.70k, False: 7.54k]
  ------------------
  261|  17.2k|	}
_ZN4pcpp9LdapLayer16parseLdapMessageEPhmPNS_5LayerEPNS_6PacketE:
  264|  59.7k|	{
  265|  59.7k|		try
  266|  59.7k|		{
  267|  59.7k|			auto asn1Record = Asn1Record::decode(data, dataLen, true);
  268|  59.7k|			auto operationType = LdapOperationType::fromUintValue(
  269|  59.7k|			    asn1Record->castAs<Asn1SequenceRecord>()->getSubRecords().at(operationTypeIndex)->getTagType());
  270|  59.7k|			switch (operationType)
  271|  59.7k|			{
  272|  3.76k|			case LdapOperationType::BindRequest:
  ------------------
  |  Branch (272:4): [True: 3.76k, False: 56.0k]
  ------------------
  273|  3.76k|				return new LdapBindRequestLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  274|  2.17k|			case LdapOperationType::BindResponse:
  ------------------
  |  Branch (274:4): [True: 2.17k, False: 57.5k]
  ------------------
  275|  2.17k|				return new LdapBindResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  276|  5.45k|			case LdapOperationType::UnbindRequest:
  ------------------
  |  Branch (276:4): [True: 5.45k, False: 54.3k]
  ------------------
  277|  5.45k|				return new LdapUnbindRequestLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  278|  3.26k|			case LdapOperationType::SearchRequest:
  ------------------
  |  Branch (278:4): [True: 3.26k, False: 56.5k]
  ------------------
  279|  3.26k|				return new LdapSearchRequestLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  280|  1.25k|			case LdapOperationType::SearchResultEntry:
  ------------------
  |  Branch (280:4): [True: 1.25k, False: 58.5k]
  ------------------
  281|  1.25k|				return new LdapSearchResultEntryLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  282|  7.11k|			case LdapOperationType::SearchResultDone:
  ------------------
  |  Branch (282:4): [True: 7.11k, False: 52.6k]
  ------------------
  283|  7.11k|				return new LdapSearchResultDoneLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  284|  1.12k|			case LdapOperationType::ModifyResponse:
  ------------------
  |  Branch (284:4): [True: 1.12k, False: 58.6k]
  ------------------
  285|  1.12k|				return new LdapModifyResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  286|     20|			case LdapOperationType::AddResponse:
  ------------------
  |  Branch (286:4): [True: 20, False: 59.7k]
  ------------------
  287|     20|				return new LdapAddResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  288|    110|			case LdapOperationType::DeleteResponse:
  ------------------
  |  Branch (288:4): [True: 110, False: 59.6k]
  ------------------
  289|    110|				return new LdapDeleteResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  290|  2.31k|			case LdapOperationType::ModifyDNResponse:
  ------------------
  |  Branch (290:4): [True: 2.31k, False: 57.4k]
  ------------------
  291|  2.31k|				return new LdapModifyDNResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  292|  1.32k|			case LdapOperationType::CompareResponse:
  ------------------
  |  Branch (292:4): [True: 1.32k, False: 58.4k]
  ------------------
  293|  1.32k|				return new LdapCompareResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  294|    635|			case LdapOperationType::Unknown:
  ------------------
  |  Branch (294:4): [True: 635, False: 59.1k]
  ------------------
  295|    635|				return nullptr;
  296|  25.7k|			default:
  ------------------
  |  Branch (296:4): [True: 25.7k, False: 34.0k]
  ------------------
  297|  25.7k|				return new LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  298|  59.7k|			}
  299|  59.7k|		}
  300|  59.7k|		catch (...)
  301|  59.7k|		{
  302|  5.51k|			return nullptr;
  303|  5.51k|		}
  304|  59.7k|	}
_ZNK4pcpp9LdapLayer17getRootAsn1RecordEv:
  307|  25.4k|	{
  308|  25.4k|		return m_Asn1Record->castAs<Asn1SequenceRecord>();
  309|  25.4k|	}
_ZNK4pcpp9LdapLayer26getLdapOperationAsn1RecordEv:
  312|  25.4k|	{
  313|  25.4k|		return getRootAsn1Record()->getSubRecords().at(operationTypeIndex)->castAs<Asn1ConstructedRecord>();
  314|  25.4k|	}
_ZNK4pcpp9LdapLayer20getLdapOperationTypeEv:
  352|  15.0k|	{
  353|  15.0k|		uint8_t tagType;
  354|  15.0k|		try
  355|  15.0k|		{
  356|  15.0k|			tagType = getLdapOperationAsn1Record()->getTagType();
  357|  15.0k|		}
  358|  15.0k|		catch (...)
  359|  15.0k|		{
  360|    276|			tagType = LdapOperationType::Unknown;
  361|    276|		}
  362|       |
  363|  15.0k|		return LdapOperationType::fromUintValue(tagType);
  364|  15.0k|	}
_ZN4pcpp9LdapLayer14parseNextLayerEv:
  367|  53.6k|	{
  368|  53.6k|		size_t headerLen = getHeaderLen();
  369|  53.6k|		if (m_DataLen <= headerLen || headerLen == 0)
  ------------------
  |  Branch (369:7): [True: 30.4k, False: 23.1k]
  |  Branch (369:33): [True: 0, False: 23.1k]
  ------------------
  370|  30.4k|			return;
  371|       |
  372|  23.1k|		uint8_t* payload = m_Data + headerLen;
  373|  23.1k|		size_t payloadLen = m_DataLen - headerLen;
  374|       |
  375|  23.1k|		constructNextLayerFromFactory(LdapLayer::parseLdapMessage, payload, payloadLen);
  376|  23.1k|	}
_ZNK4pcpp17LdapResponseLayer13getResultCodeEv:
  427|  4.73k|	{
  428|  4.73k|		return LdapResultCode::fromUintValue(getLdapOperationAsn1Record()
  429|  4.73k|		                                         ->getSubRecords()
  430|  4.73k|		                                         .at(resultCodeIndex)
  431|  4.73k|		                                         ->castAs<Asn1EnumeratedRecord>()
  432|  4.73k|		                                         ->getIntValue<uint8_t>());
  433|  4.73k|	}
_ZNK4pcpp17LdapResponseLayer21getExtendedInfoStringEv:
  477|  4.73k|	{
  478|  4.73k|		return getResultCode().toString();
  479|  4.73k|	}
_ZNK4pcpp20LdapBindRequestLayer21getAuthenticationTypeEv:
  548|  1.50k|	{
  549|  1.50k|		if (getLdapOperationAsn1Record()->getSubRecords().size() <= credentialIndex)
  ------------------
  |  Branch (549:7): [True: 6, False: 1.49k]
  ------------------
  550|      6|		{
  551|      6|			return LdapBindRequestLayer::AuthenticationType::NotApplicable;
  552|      6|		}
  553|       |
  554|  1.49k|		auto authType = getLdapOperationAsn1Record()->getSubRecords().at(credentialIndex)->getTagType();
  555|  1.49k|		switch (authType)
  556|  1.49k|		{
  557|  1.39k|		case 0:
  ------------------
  |  Branch (557:3): [True: 1.39k, False: 106]
  ------------------
  558|  1.39k|			return LdapBindRequestLayer::AuthenticationType::Simple;
  559|     94|		case 3:
  ------------------
  |  Branch (559:3): [True: 94, False: 1.40k]
  ------------------
  560|     94|			return LdapBindRequestLayer::AuthenticationType::Sasl;
  561|     12|		default:
  ------------------
  |  Branch (561:3): [True: 12, False: 1.48k]
  ------------------
  562|     12|			return LdapBindRequestLayer::AuthenticationType::NotApplicable;
  563|  1.49k|		}
  564|  1.49k|	}
_ZNK4pcpp20LdapBindRequestLayer21getExtendedInfoStringEv:
  605|  1.50k|	{
  606|  1.50k|		switch (getAuthenticationType())
  607|  1.50k|		{
  608|  1.39k|		case AuthenticationType::Simple:
  ------------------
  |  Branch (608:3): [True: 1.39k, False: 112]
  ------------------
  609|  1.39k|			return "simple";
  610|     94|		case AuthenticationType::Sasl:
  ------------------
  |  Branch (610:3): [True: 94, False: 1.41k]
  ------------------
  611|     94|			return "sasl";
  612|     18|		default:
  ------------------
  |  Branch (612:3): [True: 18, False: 1.48k]
  ------------------
  613|     18|			return "Unknown";
  614|  1.50k|		}
  615|  1.50k|	}
_ZNK4pcpp22LdapSearchRequestLayer18SearchRequestScope8toStringEv:
  689|  1.30k|	{
  690|  1.30k|		return SearchRequestScopeToString.at(m_Value);
  691|  1.30k|	}
_ZN4pcpp22LdapSearchRequestLayer18SearchRequestScope13fromUintValueEh:
  694|  1.30k|	{
  695|  1.30k|		if (value <= 2)
  ------------------
  |  Branch (695:7): [True: 1.24k, False: 60]
  ------------------
  696|  1.24k|		{
  697|  1.24k|			return static_cast<LdapSearchRequestLayer::SearchRequestScope::Value>(value);
  698|  1.24k|		}
  699|       |
  700|     60|		return LdapSearchRequestLayer::SearchRequestScope::Unknown;
  701|  1.30k|	}
_ZNK4pcpp22LdapSearchRequestLayer13getBaseObjectEv:
  745|  1.30k|	{
  746|  1.30k|		return getLdapOperationAsn1Record()
  747|  1.30k|		    ->getSubRecords()
  748|  1.30k|		    .at(baseObjectIndex)
  749|  1.30k|		    ->castAs<Asn1OctetStringRecord>()
  750|  1.30k|		    ->getValue();
  751|  1.30k|	}
_ZNK4pcpp22LdapSearchRequestLayer8getScopeEv:
  754|  1.30k|	{
  755|  1.30k|		return LdapSearchRequestLayer::SearchRequestScope::fromUintValue(getLdapOperationAsn1Record()
  756|  1.30k|		                                                                     ->getSubRecords()
  757|  1.30k|		                                                                     .at(scopeIndex)
  758|  1.30k|		                                                                     ->castAs<Asn1EnumeratedRecord>()
  759|  1.30k|		                                                                     ->getIntValue<uint8_t>());
  760|  1.30k|	}
_ZNK4pcpp22LdapSearchRequestLayer21getExtendedInfoStringEv:
  822|  1.30k|	{
  823|  1.30k|		auto baseObject = getBaseObject();
  824|  1.30k|		if (baseObject.empty())
  ------------------
  |  Branch (824:7): [True: 0, False: 1.30k]
  ------------------
  825|      0|		{
  826|      0|			baseObject = "ROOT";
  827|      0|		}
  828|       |
  829|  1.30k|		return "\"" + baseObject + "\", " + getScope().toString();
  830|  1.30k|	}

_ZNK4pcpp9MplsLayer15isBottomOfStackEv:
   29|  5.48k|	{
   30|  5.48k|		return (getMplsHeader()->misc & 0x01);
   31|  5.48k|	}
_ZN4pcpp9MplsLayer16setBottomOfStackEb:
   34|    507|	{
   35|    507|		if (!val)
  ------------------
  |  Branch (35:7): [True: 364, False: 143]
  ------------------
   36|    364|			getMplsHeader()->misc &= 0xFE;
   37|    143|		else
   38|    143|			getMplsHeader()->misc |= 0x1;
   39|    507|	}
_ZNK4pcpp9MplsLayer23getExperimentalUseValueEv:
   42|  1.01k|	{
   43|  1.01k|		return ((getMplsHeader()->misc & 0x0E) >> 1);
   44|  1.01k|	}
_ZNK4pcpp9MplsLayer12getMplsLabelEv:
   70|  1.01k|	{
   71|       |		return (htobe16(getMplsHeader()->hiLabel) << 4) | ((getMplsHeader()->misc & 0xF0) >> 4);
   72|  1.01k|	}
_ZN4pcpp9MplsLayer14parseNextLayerEv:
  105|  4.46k|	{
  106|  4.46k|		size_t headerLen = getHeaderLen();
  107|  4.46k|		if (m_DataLen < headerLen + 1)
  ------------------
  |  Branch (107:7): [True: 0, False: 4.46k]
  ------------------
  108|      0|			return;
  109|       |
  110|  4.46k|		uint8_t* payload = m_Data + sizeof(mpls_header);
  111|  4.46k|		size_t payloadLen = m_DataLen - sizeof(mpls_header);
  112|       |
  113|  4.46k|		if (!isBottomOfStack())
  ------------------
  |  Branch (113:7): [True: 3.22k, False: 1.23k]
  ------------------
  114|  3.22k|		{
  115|  3.22k|			constructNextLayer<MplsLayer>(payload, payloadLen);
  116|  3.22k|			return;
  117|  3.22k|		}
  118|       |
  119|  1.23k|		uint8_t nextNibble = (*((uint8_t*)(m_Data + headerLen)) & 0xF0) >> 4;
  120|  1.23k|		switch (nextNibble)
  121|  1.23k|		{
  122|      0|		case 4:
  ------------------
  |  Branch (122:3): [True: 0, False: 1.23k]
  ------------------
  123|      0|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  124|      0|			break;
  125|    999|		case 6:
  ------------------
  |  Branch (125:3): [True: 999, False: 238]
  ------------------
  126|    999|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  127|    999|			break;
  128|    238|		default:
  ------------------
  |  Branch (128:3): [True: 238, False: 999]
  ------------------
  129|    238|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  130|  1.23k|		}
  131|  1.23k|	}
_ZN4pcpp9MplsLayer22computeCalculateFieldsEv:
  134|    507|	{
  135|    507|		Layer* nextLayer = getNextLayer();
  136|    507|		if (nextLayer != nullptr)
  ------------------
  |  Branch (136:7): [True: 507, False: 0]
  ------------------
  137|    507|		{
  138|    507|			setBottomOfStack((nextLayer->getProtocol() != MPLS));
  139|    507|		}
  140|    507|	}
_ZNK4pcpp9MplsLayer8toStringEv:
  143|  1.01k|	{
  144|  1.01k|		std::ostringstream labelStream;
  145|  1.01k|		labelStream << getMplsLabel();
  146|  1.01k|		std::ostringstream expStream;
  147|  1.01k|		expStream << (int)getExperimentalUseValue();
  148|  1.01k|		std::ostringstream ttlStream;
  149|  1.01k|		ttlStream << (int)getTTL();
  150|  1.01k|		std::string bottomOfStack = isBottomOfStack() ? "true" : "false";
  ------------------
  |  Branch (150:31): [True: 286, False: 728]
  ------------------
  151|       |
  152|  1.01k|		return "MPLS Layer, Label: " + labelStream.str() + ", Exp: " + expStream.str() + ", TTL: " + ttlStream.str() +
  153|  1.01k|		       ", Bottom of stack: " + bottomOfStack;
  154|  1.01k|	}

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

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

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

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

_ZNK4pcpp17NullLoopbackLayer9getFamilyEv:
   27|  3.39k|	{
   28|  3.39k|		uint32_t family = *(reinterpret_cast<uint32_t*>(m_Data));
   29|  3.39k|		if ((family & 0xFFFF'0000) != 0)
  ------------------
  |  Branch (29:7): [True: 2.98k, False: 408]
  ------------------
   30|  2.98k|		{
   31|  2.98k|			if ((family & 0xFF00'0000) == 0 && (family & 0x00FF'0000) < 0x0006'0000)
  ------------------
  |  Branch (31:8): [True: 975, False: 2.01k]
  |  Branch (31:39): [True: 198, False: 777]
  ------------------
   32|    198|			{
   33|    198|				family >>= 16;
   34|    198|			}
   35|  2.79k|			else
   36|  2.79k|			{
   37|  2.79k|				family = BSWAP32(family);
  ------------------
  |  |   11|  2.79k|#define BSWAP32(x) (((x) >> 24) | (((x) & 0x00FF'0000) >> 8) | (((x) & 0x0000'FF00) << 8) | ((x) << 24))
  ------------------
   38|  2.79k|			}
   39|  2.98k|		}
   40|    408|		else if ((family & 0x0000'00FF) == 0 && (family & 0x0000'FF00) < 0x0000'0600)
  ------------------
  |  Branch (40:12): [True: 246, False: 162]
  |  Branch (40:43): [True: 117, False: 129]
  ------------------
   41|    117|		{
   42|    117|			family = BSWAP16(family & 0xFFFF);
  ------------------
  |  |   10|    117|#define BSWAP16(x) (((x) >> 8) | ((x) << 8))
  ------------------
   43|    117|		}
   44|       |
   45|  3.39k|		return family;
   46|  3.39k|	}
_ZN4pcpp17NullLoopbackLayer14parseNextLayerEv:
   54|  3.39k|	{
   55|  3.39k|		uint8_t* payload = m_Data + sizeof(uint32_t);
   56|  3.39k|		size_t payloadLen = m_DataLen - sizeof(uint32_t);
   57|       |
   58|  3.39k|		uint32_t family = getFamily();
   59|  3.39k|		if (family > IEEE_802_3_MAX_LEN)
  ------------------
  |  |   13|  3.39k|#define IEEE_802_3_MAX_LEN 0x5dc
  ------------------
  |  Branch (59:7): [True: 912, False: 2.48k]
  ------------------
   60|    912|		{
   61|    912|			uint16_t ethType = static_cast<uint16_t>(family);
   62|    912|			switch (ethType)
   63|    912|			{
   64|    387|			case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|    387|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (64:4): [True: 387, False: 525]
  ------------------
   65|    387|			{
   66|    387|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   67|    387|				return;
   68|      0|			}
   69|      0|			case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|      0|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (69:4): [True: 0, False: 912]
  ------------------
   70|      0|			{
   71|      0|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   72|      0|				return;
   73|      0|			}
   74|    525|			default:
  ------------------
  |  Branch (74:4): [True: 525, False: 387]
  ------------------
   75|    525|			{
   76|    525|				constructNextLayer<PayloadLayer>(payload, payloadLen);
   77|    525|				return;
   78|      0|			}
   79|    912|			}
   80|    912|		}
   81|       |
   82|  2.48k|		switch (family)
   83|  2.48k|		{
   84|     30|		case PCPP_BSD_AF_INET:
  ------------------
  |  |   13|     30|#define PCPP_BSD_AF_INET 2
  ------------------
  |  Branch (84:3): [True: 30, False: 2.45k]
  ------------------
   85|     30|		{
   86|     30|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   87|     30|			break;
   88|      0|		}
   89|    258|		case PCPP_BSD_AF_INET6_BSD:
  ------------------
  |  |   23|    258|#define PCPP_BSD_AF_INET6_BSD 24
  ------------------
  |  Branch (89:3): [True: 258, False: 2.22k]
  ------------------
   90|    258|		case PCPP_BSD_AF_INET6_FREEBSD:
  ------------------
  |  |   25|    258|#define PCPP_BSD_AF_INET6_FREEBSD 28
  ------------------
  |  Branch (90:3): [True: 0, False: 2.48k]
  ------------------
   91|  2.10k|		case PCPP_BSD_AF_INET6_DARWIN:
  ------------------
  |  |   27|  2.10k|#define PCPP_BSD_AF_INET6_DARWIN 30
  ------------------
  |  Branch (91:3): [True: 1.84k, False: 639]
  ------------------
   92|  2.10k|		{
   93|  2.10k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   94|  2.10k|			break;
   95|    258|		}
   96|    351|		default:
  ------------------
  |  Branch (96:3): [True: 351, False: 2.13k]
  ------------------
   97|    351|		{
   98|    351|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   99|    351|			break;
  100|    258|		}
  101|  2.48k|		}
  102|  2.48k|	}
_ZNK4pcpp17NullLoopbackLayer8toStringEv:
  105|  2.22k|	{
  106|  2.22k|		return "Null/Loopback";
  107|  2.22k|	}

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

_ZN4pcpp6Packet12setRawPacketEPNS_9RawPacketEbjNS_13OsiModelLayerE:
   50|   169k|	{
   51|   169k|		destructPacketData();
   52|       |
   53|   169k|		m_FirstLayer = nullptr;
   54|   169k|		m_LastLayer = nullptr;
   55|   169k|		m_MaxPacketLen = rawPacket->getRawDataLen();
   56|   169k|		m_FreeRawPacket = freeRawPacket;
   57|   169k|		m_RawPacket = rawPacket;
   58|   169k|		m_CanReallocateData = true;
   59|       |
   60|   169k|		if (m_RawPacket == nullptr)
  ------------------
  |  Branch (60:7): [True: 0, False: 169k]
  ------------------
   61|      0|			return;
   62|       |
   63|   169k|		parsePacket(PacketParseOptions{ parseUntil, parseUntilLayer });
   64|   169k|	}
_ZN4pcpp6Packet11parsePacketENS_18PacketParseOptionsEb:
   67|   169k|	{
   68|   169k|		if (m_RawPacket == nullptr)
  ------------------
  |  Branch (68:7): [True: 0, False: 169k]
  ------------------
   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|   169k|		if (!incrementalParsing)
  ------------------
  |  Branch (74:7): [True: 0, False: 169k]
  ------------------
   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|   169k|		bool parsingNewLayers = false;
   81|       |
   82|       |		// If there is no first layer, create it based on the link layer type
   83|   169k|		if (m_FirstLayer == nullptr)
  ------------------
  |  Branch (83:7): [True: 169k, False: 0]
  ------------------
   84|   169k|		{
   85|   169k|			parsingNewLayers = true;
   86|       |
   87|   169k|			LinkLayerType linkType = m_RawPacket->getLinkLayerType();
   88|   169k|			m_FirstLayer = createFirstLayer(linkType);
   89|       |
   90|   169k|			if (m_FirstLayer == nullptr)
  ------------------
  |  Branch (90:8): [True: 166, False: 169k]
  ------------------
   91|    166|			{
   92|    166|				PCPP_LOG_ERROR("Failed to create first layer! Possibly attempting to parse a RawPacket with no data.");
  ------------------
  |  |  443|    166|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    166|	do                                                                                                                 \
  |  |  |  |  413|    166|	{                                                                                                                  \
  |  |  |  |  414|    166|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    166|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    166|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 166, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    166|		{                                                                                                              \
  |  |  |  |  417|    166|			auto ctx =                                                                                                 \
  |  |  |  |  418|    166|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    166|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    166|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    166|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    166|		}                                                                                                              \
  |  |  |  |  422|    166|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 166]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   93|    166|				return;
   94|    166|			}
   95|       |
   96|       |			// Mark the first layer as allocated in the packet
   97|   169k|			m_FirstLayer->m_AllocationInfo.ownedByPacket = true;
   98|   169k|		}
   99|       |
  100|   169k|		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|   169k|		if (m_LastLayer != nullptr && options.parseUntilProtocol == UnknownProtocol)
  ------------------
  |  Branch (105:7): [True: 0, False: 169k]
  |  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|   169k|		bool rollbackLastLayer = false;
  122|   169k|		bool foundTargetProtocol = false;
  123|   880k|		for (auto* curLayer = parseStartLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (123:42): [True: 711k, False: 169k]
  ------------------
  124|   711k|		{
  125|       |			// If we are parsing new layers, update the last layer pointer
  126|       |			// Otherwise we are just traversing already parsed layers
  127|   711k|			if (parsingNewLayers)
  ------------------
  |  Branch (127:8): [True: 711k, False: 0]
  ------------------
  128|   711k|			{
  129|       |				// Mark the current layer as allocated in the packet, as it was just created
  130|   711k|				curLayer->m_AllocationInfo.ownedByPacket = true;
  131|   711k|				m_LastLayer = curLayer;
  132|   711k|			}
  133|       |
  134|       |			// If the current layer is of a higher OSI layer than the target, stop parsing
  135|   711k|			if (curLayer->getOsiModelLayer() > options.parseUntilLayer)
  ------------------
  |  Branch (135:8): [True: 0, False: 711k]
  ------------------
  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|   711k|			const bool matchesTarget = curLayer->isMemberOfProtocolFamily(options.parseUntilProtocol);
  144|   711k|			if (options.parseUntilProtocol != UnknownProtocol && matchesTarget)
  ------------------
  |  Branch (144:8): [True: 0, False: 711k]
  |  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|   711k|			if (foundTargetProtocol && !matchesTarget)
  ------------------
  |  Branch (150:8): [True: 0, False: 711k]
  |  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|   711k|			if (!curLayer->hasNextLayer())
  ------------------
  |  Branch (159:8): [True: 711k, False: 0]
  ------------------
  160|   711k|			{
  161|   711k|				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|   711k|				curLayer->parseNextLayer();
  165|   711k|			}
  166|   711k|		}
  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|   169k|		if (rollbackLastLayer && m_LastLayer != m_FirstLayer)
  ------------------
  |  Branch (170:7): [True: 0, False: 169k]
  |  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|   169k|		if (m_LastLayer != nullptr && options.parseUntilProtocol == UnknownProtocol &&
  ------------------
  |  Branch (178:7): [True: 169k, False: 0]
  |  Branch (178:33): [True: 169k, False: 0]
  ------------------
  179|   169k|		    options.parseUntilLayer == OsiModelLayerUnknown)
  ------------------
  |  Branch (179:7): [True: 169k, False: 0]
  ------------------
  180|   169k|		{
  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|   169k|			int trailerLen = (int)((m_RawPacket->getRawData() + m_RawPacket->getRawDataLen()) -
  184|   169k|			                       (m_LastLayer->getData() + m_LastLayer->getDataLen()));
  185|   169k|			if (trailerLen > 0)
  ------------------
  |  Branch (185:8): [True: 39.6k, False: 129k]
  ------------------
  186|  39.6k|			{
  187|  39.6k|				PacketTrailerLayer* trailerLayer =
  188|  39.6k|				    new PacketTrailerLayer(static_cast<uint8_t*>(m_LastLayer->getData() + m_LastLayer->getDataLen()),
  189|  39.6k|				                           trailerLen, m_LastLayer, this);
  190|       |
  191|  39.6k|				trailerLayer->m_AllocationInfo.ownedByPacket = true;
  192|  39.6k|				m_LastLayer->setNextLayer(trailerLayer);
  193|  39.6k|				m_LastLayer = trailerLayer;
  194|  39.6k|			}
  195|   169k|		}
  196|   169k|	}
_ZN4pcpp6PacketC2EPNS_9RawPacketEbhNS_13OsiModelLayerE:
  199|   169k|	    : Packet(rawPacket, freeRawPacket, static_cast<ProtocolTypeFamily>(parseUntil), parseUntilLayer)
  200|   169k|	{}
_ZN4pcpp6PacketC2EPNS_9RawPacketEbjNS_13OsiModelLayerE:
  204|   169k|	{
  205|   169k|		m_FreeRawPacket = false;
  206|   169k|		m_RawPacket = nullptr;
  207|   169k|		m_FirstLayer = nullptr;
  208|   169k|		setRawPacket(rawPacket, freeRawPacket, parseUntil, parseUntilLayer);
  209|   169k|	}
_ZN4pcpp6Packet18destructPacketDataEv:
  237|  1.08M|	{
  238|  1.08M|		destroyAllLayers();
  239|       |
  240|  1.08M|		if (m_RawPacket != nullptr && m_FreeRawPacket)
  ------------------
  |  Branch (240:7): [True: 920k, False: 169k]
  |  Branch (240:33): [True: 751k, False: 169k]
  ------------------
  241|   751k|		{
  242|   751k|			delete m_RawPacket;
  243|   751k|		}
  244|  1.08M|	}
_ZN4pcpp6Packet16destroyAllLayersEv:
  247|  1.08M|	{
  248|  1.08M|		Layer* curLayer = m_FirstLayer;
  249|  5.42M|		while (curLayer != nullptr)
  ------------------
  |  Branch (249:10): [True: 4.33M, False: 1.08M]
  ------------------
  250|  4.33M|		{
  251|  4.33M|			Layer* nextLayer = curLayer->getNextLayer();
  252|  4.33M|			if (curLayer->m_AllocationInfo.ownedByPacket)
  ------------------
  |  Branch (252:8): [True: 4.33M, False: 0]
  ------------------
  253|  4.33M|			{
  254|  4.33M|				delete curLayer;
  255|  4.33M|			}
  256|       |
  257|  4.33M|			curLayer = nextLayer;
  258|  4.33M|		}
  259|       |
  260|  1.08M|		m_FirstLayer = nullptr;
  261|  1.08M|		m_LastLayer = nullptr;
  262|  1.08M|	}
_ZN4pcpp6Packet12copyDataFromERKS0_:
  274|   751k|	{
  275|   751k|		m_RawPacket = new RawPacket(*(other.m_RawPacket));
  276|   751k|		m_FreeRawPacket = true;
  277|   751k|		m_MaxPacketLen = other.m_MaxPacketLen;
  278|   751k|		m_FirstLayer = createFirstLayer(m_RawPacket->getLinkLayerType());
  279|   751k|		m_LastLayer = m_FirstLayer;
  280|   751k|		m_CanReallocateData = true;
  281|   751k|		Layer* curLayer = m_FirstLayer;
  282|  4.33M|		while (curLayer != nullptr)
  ------------------
  |  Branch (282:10): [True: 3.58M, False: 751k]
  ------------------
  283|  3.58M|		{
  284|  3.58M|			curLayer->parseNextLayer();
  285|  3.58M|			curLayer->m_AllocationInfo.ownedByPacket = true;
  286|  3.58M|			curLayer = curLayer->getNextLayer();
  287|  3.58M|			if (curLayer != nullptr)
  ------------------
  |  Branch (287:8): [True: 2.83M, False: 751k]
  ------------------
  288|  2.83M|				m_LastLayer = curLayer;
  289|  3.58M|		}
  290|   751k|	}
_ZN4pcpp6Packet17reallocateRawDataEm:
  293|  19.0k|	{
  294|  19.0k|		PCPP_LOG_DEBUG("Allocating packet to new size: " << newSize);
  ------------------
  |  |  425|  19.0k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  19.0k|	do                                                                                                                 \
  |  |  |  |  413|  19.0k|	{                                                                                                                  \
  |  |  |  |  414|  19.0k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  19.0k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  19.0k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 19.0k]
  |  |  |  |  ------------------
  |  |  |  |  416|  19.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|  19.0k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 19.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  295|       |
  296|       |		// allocate a new array with size newSize
  297|  19.0k|		m_MaxPacketLen = newSize;
  298|       |
  299|       |		// set the new array to RawPacket
  300|  19.0k|		if (!m_RawPacket->reallocateData(m_MaxPacketLen))
  ------------------
  |  Branch (300:7): [True: 0, False: 19.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|  19.0k|		const uint8_t* dataPtr = m_RawPacket->getRawData();
  308|       |
  309|   116k|		for (Layer* curLayer = m_FirstLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (309:40): [True: 97.2k, False: 19.0k]
  ------------------
  310|  97.2k|		{
  311|  97.2k|			PCPP_LOG_DEBUG("Setting new data pointer to layer '" << typeid(curLayer).name() << "'");
  ------------------
  |  |  425|  97.2k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  97.2k|	do                                                                                                                 \
  |  |  |  |  413|  97.2k|	{                                                                                                                  \
  |  |  |  |  414|  97.2k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  97.2k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  97.2k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 97.2k]
  |  |  |  |  ------------------
  |  |  |  |  416|  97.2k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  97.2k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 97.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  312|  97.2k|			curLayer->m_Data = const_cast<uint8_t*>(dataPtr);
  313|  97.2k|			dataPtr += curLayer->getHeaderLen();
  314|  97.2k|		}
  315|  19.0k|	}
_ZNK4pcpp6Packet14isPacketOfTypeEh:
  615|  12.7M|	{
  616|  71.8M|		for (Layer* curLayer = getFirstLayer(); curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (616:43): [True: 59.8M, False: 11.9M]
  ------------------
  617|  59.8M|		{
  618|  59.8M|			if (curLayer->getProtocol() == protocolType)
  ------------------
  |  Branch (618:8): [True: 816k, False: 59.0M]
  ------------------
  619|   816k|			{
  620|   816k|				return true;
  621|   816k|			}
  622|  59.8M|		}
  623|       |
  624|  11.9M|		return false;
  625|  12.7M|	}
_ZNK4pcpp6Packet14isPacketOfTypeEj:
  628|  3.00M|	{
  629|  3.00M|		Layer* curLayer = getFirstLayer();
  630|  16.9M|		while (curLayer != nullptr)
  ------------------
  |  Branch (630:10): [True: 14.0M, False: 2.89M]
  ------------------
  631|  14.0M|		{
  632|  14.0M|			if (curLayer->isMemberOfProtocolFamily(protocolTypeFamily))
  ------------------
  |  Branch (632:8): [True: 110k, False: 13.9M]
  ------------------
  633|   110k|			{
  634|   110k|				return true;
  635|   110k|			}
  636|  13.9M|			curLayer = curLayer->getNextLayer();
  637|  13.9M|		}
  638|       |
  639|  2.89M|		return false;
  640|  3.00M|	}
_ZN4pcpp6Packet11extendLayerEPNS_5LayerEim:
  643|  91.1k|	{
  644|  91.1k|		if (layer == nullptr)
  ------------------
  |  Branch (644:7): [True: 0, False: 91.1k]
  ------------------
  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|  91.1k|		if (!(layer->getAttachedPacket() == this))
  ------------------
  |  Branch (651:7): [True: 0, False: 91.1k]
  ------------------
  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|  91.1k|		if (m_RawPacket->getRawDataLen() + numOfBytesToExtend > m_MaxPacketLen)
  ------------------
  |  Branch (657:7): [True: 19.0k, False: 72.0k]
  ------------------
  658|  19.0k|		{
  659|  19.0k|			if (!m_CanReallocateData)
  ------------------
  |  Branch (659:8): [True: 0, False: 19.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|  19.0k|			if (m_RawPacket->getRawDataLen() + numOfBytesToExtend > m_MaxPacketLen * 2)
  ------------------
  |  Branch (667:8): [True: 0, False: 19.0k]
  ------------------
  668|      0|				reallocateRawData(m_RawPacket->getRawDataLen() + numOfBytesToExtend + m_MaxPacketLen);
  669|  19.0k|			else
  670|  19.0k|				reallocateRawData(m_MaxPacketLen * 2);
  671|  19.0k|		}
  672|       |
  673|       |		// insert layer data to raw packet
  674|  91.1k|		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|  91.1k|		m_RawPacket->insertData(indexToInsertData, nullptr, numOfBytesToExtend);
  681|       |
  682|       |		// re-calculate all layers data ptr and data length
  683|  91.1k|		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|  91.1k|		bool passedExtendedLayer = false;
  687|   685k|		for (Layer* curLayer = m_FirstLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (687:40): [True: 605k, False: 79.9k]
  ------------------
  688|   605k|		{
  689|   605k|			if (dataPtr > m_RawPacket->getRawData() + m_RawPacket->getRawDataLen())
  ------------------
  |  Branch (689:8): [True: 11.1k, False: 594k]
  ------------------
  690|  11.1k|			{
  691|  11.1k|				PCPP_LOG_ERROR("Layer data pointer exceeds packet's boundary");
  ------------------
  |  |  443|  11.1k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  11.1k|	do                                                                                                                 \
  |  |  |  |  413|  11.1k|	{                                                                                                                  \
  |  |  |  |  414|  11.1k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  11.1k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  11.1k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 11.1k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  11.1k|		{                                                                                                              \
  |  |  |  |  417|  11.1k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  11.1k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  11.1k|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  11.1k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  11.1k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  11.1k|		}                                                                                                              \
  |  |  |  |  422|  11.1k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 11.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  692|  11.1k|				return false;
  693|  11.1k|			}
  694|       |
  695|       |			// set the data ptr
  696|   594k|			curLayer->m_Data = const_cast<uint8_t*>(dataPtr);
  697|       |
  698|       |			// set a flag if arrived to the layer being extended
  699|   594k|			if (curLayer->getPrevLayer() == layer)
  ------------------
  |  Branch (699:8): [True: 30.6k, False: 563k]
  ------------------
  700|  30.6k|				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|   594k|			if (!passedExtendedLayer)
  ------------------
  |  Branch (704:8): [True: 455k, False: 138k]
  ------------------
  705|   455k|				curLayer->m_DataLen += numOfBytesToExtend;
  706|       |
  707|       |			// assuming header length of the layer that requested to be extended hasn't been enlarged yet
  708|   594k|			size_t headerLen = curLayer->getHeaderLen() + (curLayer == layer ? numOfBytesToExtend : 0);
  ------------------
  |  Branch (708:51): [True: 90.1k, False: 504k]
  ------------------
  709|   594k|			dataPtr += headerLen;
  710|   594k|		}
  711|       |
  712|  79.9k|		return true;
  713|  91.1k|	}
_ZN4pcpp6Packet12shortenLayerEPNS_5LayerEim:
  716|  84.1k|	{
  717|  84.1k|		if (layer == nullptr)
  ------------------
  |  Branch (717:7): [True: 0, False: 84.1k]
  ------------------
  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|  84.1k|		if (!(layer->getAttachedPacket() == this))
  ------------------
  |  Branch (724:7): [True: 0, False: 84.1k]
  ------------------
  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|  84.1k|		int indexOfDataToRemove = layer->m_Data + offsetInLayer - m_RawPacket->getRawData();
  732|  84.1k|		if (!m_RawPacket->removeData(indexOfDataToRemove, numOfBytesToShorten))
  ------------------
  |  Branch (732:7): [True: 0, False: 84.1k]
  ------------------
  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|  84.1k|		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|  84.1k|		Layer* curLayer = m_FirstLayer;
  743|  84.1k|		bool passedExtendedLayer = false;
  744|   659k|		while (curLayer != nullptr)
  ------------------
  |  Branch (744:10): [True: 576k, False: 83.5k]
  ------------------
  745|   576k|		{
  746|   576k|			if (dataPtr > m_RawPacket->getRawData() + m_RawPacket->getRawDataLen())
  ------------------
  |  Branch (746:8): [True: 590, False: 575k]
  ------------------
  747|    590|			{
  748|    590|				PCPP_LOG_ERROR("Layer data pointer exceeds packet's boundary");
  ------------------
  |  |  443|    590|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    590|	do                                                                                                                 \
  |  |  |  |  413|    590|	{                                                                                                                  \
  |  |  |  |  414|    590|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    590|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    590|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 590, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    590|		{                                                                                                              \
  |  |  |  |  417|    590|			auto ctx =                                                                                                 \
  |  |  |  |  418|    590|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    590|#define LOG_MODULE PacketLogModulePacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    590|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    590|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    590|		}                                                                                                              \
  |  |  |  |  422|    590|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 590]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  749|    590|				return false;
  750|    590|			}
  751|       |
  752|       |			// set the data ptr
  753|   575k|			curLayer->m_Data = const_cast<uint8_t*>(dataPtr);
  754|       |
  755|       |			// set a flag if arrived to the layer being shortened
  756|   575k|			if (curLayer->getPrevLayer() == layer)
  ------------------
  |  Branch (756:8): [True: 32.3k, False: 543k]
  ------------------
  757|  32.3k|				passedExtendedLayer = true;
  758|       |
  759|   575k|			size_t headerLen = curLayer->getHeaderLen();
  760|       |
  761|       |			// change the data length only for layers who come before the shortened layer. For layers who come after,
  762|       |			// data length isn't changed
  763|   575k|			if (!passedExtendedLayer)
  ------------------
  |  Branch (763:8): [True: 434k, False: 140k]
  ------------------
  764|   434k|				curLayer->m_DataLen -= numOfBytesToShorten;
  765|       |
  766|       |			// assuming header length of the layer that requested to be extended hasn't been enlarged yet
  767|   575k|			headerLen -= (curLayer == layer ? numOfBytesToShorten : 0);
  ------------------
  |  Branch (767:18): [True: 83.9k, False: 491k]
  ------------------
  768|   575k|			dataPtr += headerLen;
  769|   575k|			curLayer = curLayer->getNextLayer();
  770|   575k|		}
  771|       |
  772|  83.5k|		return true;
  773|  84.1k|	}
_ZN4pcpp6Packet22computeCalculateFieldsEv:
  776|   169k|	{
  777|       |		// calculated fields should be calculated from top layer to bottom layer
  778|   920k|		for (Layer* curLayer = m_LastLayer; curLayer != nullptr; curLayer = curLayer->getPrevLayer())
  ------------------
  |  Branch (778:39): [True: 751k, False: 169k]
  ------------------
  779|   751k|		{
  780|   751k|			curLayer->computeCalculateFields();
  781|   751k|		}
  782|   169k|	}
_ZNK4pcpp6Packet15printPacketInfoEb:
  785|   169k|	{
  786|   169k|		std::ostringstream dataLenStream;
  787|   169k|		dataLenStream << m_RawPacket->getRawDataLen();
  788|       |
  789|       |		// convert raw packet timestamp to printable format
  790|   169k|		timespec timestamp = m_RawPacket->getPacketTimeStamp();
  791|   169k|		time_t nowtime = timestamp.tv_sec;
  792|   169k|		struct tm* nowtm = nullptr;
  793|   169k|#if __cplusplus > 199711L && !defined(_WIN32)
  794|       |		// localtime_r and gmtime_r are thread-safe versions of localtime and gmtime,
  795|       |		// but they're defined only in newer compilers (>= C++0x).
  796|       |		// on Windows localtime and gmtime are already thread-safe so there is not need
  797|       |		// to use localtime_r and gmtime_r
  798|   169k|		struct tm nowtm_r;
  799|   169k|		if (timeAsLocalTime)
  ------------------
  |  Branch (799:7): [True: 169k, False: 0]
  ------------------
  800|   169k|			nowtm = localtime_r(&nowtime, &nowtm_r);
  801|      0|		else
  802|      0|			nowtm = gmtime_r(&nowtime, &nowtm_r);
  803|       |
  804|   169k|		if (nowtm != nullptr)
  ------------------
  |  Branch (804:7): [True: 169k, False: 0]
  ------------------
  805|   169k|			nowtm = &nowtm_r;
  806|       |#else
  807|       |		// on Window compilers localtime and gmtime are already thread safe.
  808|       |		// in old compilers (< C++0x) gmtime_r and localtime_r were not defined so we have to fall back to localtime and
  809|       |		// gmtime
  810|       |		if (timeAsLocalTime)
  811|       |			nowtm = localtime(&nowtime);
  812|       |		else
  813|       |			nowtm = gmtime(&nowtime);
  814|       |#endif
  815|       |
  816|   169k|		char buf[128];
  817|   169k|		if (nowtm != nullptr)
  ------------------
  |  Branch (817:7): [True: 169k, False: 0]
  ------------------
  818|   169k|		{
  819|   169k|			char tmbuf[64];
  820|   169k|			strftime(tmbuf, sizeof(tmbuf), "%Y-%m-%d %H:%M:%S", nowtm);
  821|   169k|			snprintf(buf, sizeof(buf), "%s.%09lu", tmbuf, (unsigned long)timestamp.tv_nsec);
  822|   169k|		}
  823|      0|		else
  824|      0|			snprintf(buf, sizeof(buf), "0000-00-00 00:00:00.000000000");
  825|       |
  826|   169k|		return "Packet length: " + dataLenStream.str() + " [Bytes], Arrival time: " + std::string(buf);
  827|   169k|	}
_ZN4pcpp6Packet16createFirstLayerENS_13LinkLayerTypeE:
  830|   920k|	{
  831|   920k|		size_t rawDataLen = (size_t)m_RawPacket->getRawDataLen();
  832|   920k|		if (rawDataLen == 0)
  ------------------
  |  Branch (832:7): [True: 166, False: 920k]
  ------------------
  833|    166|			return nullptr;
  834|       |
  835|   920k|		const uint8_t* rawData = m_RawPacket->getRawData();
  836|       |
  837|   920k|		switch (linkType)
  838|   920k|		{
  839|   780k|		case LinkLayerType::LINKTYPE_ETHERNET:
  ------------------
  |  Branch (839:3): [True: 780k, False: 139k]
  ------------------
  840|   780k|		{
  841|   780k|			if (EthLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (841:8): [True: 777k, False: 3.07k]
  ------------------
  842|   777k|			{
  843|   777k|				return new EthLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  844|   777k|			}
  845|  3.07k|			if (EthDot3Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (845:8): [True: 3.06k, False: 12]
  ------------------
  846|  3.06k|			{
  847|  3.06k|				return new EthDot3Layer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  848|  3.06k|			}
  849|     12|			break;
  850|  3.07k|		}
  851|   128k|		case LinkLayerType::LINKTYPE_LINUX_SLL:
  ------------------
  |  Branch (851:3): [True: 128k, False: 791k]
  ------------------
  852|   128k|		{
  853|   128k|			return new SllLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  854|  3.07k|		}
  855|      0|		case LinkLayerType::LINKTYPE_LINUX_SLL2:
  ------------------
  |  Branch (855:3): [True: 0, False: 920k]
  ------------------
  856|      0|		{
  857|      0|			if (Sll2Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (857:8): [True: 0, False: 0]
  ------------------
  858|      0|			{
  859|      0|				return new Sll2Layer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  860|      0|			}
  861|      0|			break;
  862|      0|		}
  863|  6.14k|		case LinkLayerType::LINKTYPE_NULL:
  ------------------
  |  Branch (863:3): [True: 6.14k, False: 914k]
  ------------------
  864|  6.14k|		{
  865|  6.14k|			if (NullLoopbackLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (865:8): [True: 3.39k, False: 2.75k]
  ------------------
  866|  3.39k|			{
  867|  3.39k|				return new NullLoopbackLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  868|  3.39k|			}
  869|  2.75k|			break;
  870|  6.14k|		}
  871|  2.75k|		case LinkLayerType::LINKTYPE_RAW:
  ------------------
  |  Branch (871:3): [True: 0, False: 920k]
  ------------------
  872|     32|		case LinkLayerType::LINKTYPE_DLT_RAW1:
  ------------------
  |  Branch (872:3): [True: 32, False: 920k]
  ------------------
  873|     64|		case LinkLayerType::LINKTYPE_DLT_RAW2:
  ------------------
  |  Branch (873:3): [True: 32, False: 920k]
  ------------------
  874|     64|		{
  875|     64|			uint8_t ipVer = rawData[0] & 0xf0;
  876|     64|			if (ipVer == 0x40 && IPv4Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (876:8): [True: 32, False: 32]
  |  Branch (876:25): [True: 0, False: 32]
  ------------------
  877|      0|			{
  878|      0|				return new IPv4Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  879|      0|			}
  880|     64|			if (ipVer == 0x60 && IPv6Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (880:8): [True: 0, False: 64]
  |  Branch (880:25): [True: 0, False: 0]
  ------------------
  881|      0|			{
  882|      0|				return new IPv6Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  883|      0|			}
  884|     64|			break;
  885|     64|		}
  886|    128|		case LinkLayerType::LINKTYPE_IPV4:
  ------------------
  |  Branch (886:3): [True: 128, False: 920k]
  ------------------
  887|    128|		{
  888|    128|			if (IPv4Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (888:8): [True: 0, False: 128]
  ------------------
  889|      0|			{
  890|      0|				return new IPv4Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  891|      0|			}
  892|    128|			break;
  893|    128|		}
  894|    160|		case LinkLayerType::LINKTYPE_IPV6:
  ------------------
  |  Branch (894:3): [True: 160, False: 920k]
  ------------------
  895|    160|		{
  896|    160|			if (IPv6Layer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (896:8): [True: 0, False: 160]
  ------------------
  897|      0|			{
  898|      0|				return new IPv6Layer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  899|      0|			}
  900|    160|			break;
  901|    160|		}
  902|  1.94k|		case LinkLayerType::LINKTYPE_NFLOG:
  ------------------
  |  Branch (902:3): [True: 1.94k, False: 918k]
  ------------------
  903|  1.94k|		{
  904|  1.94k|			if (NflogLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (904:8): [True: 1.81k, False: 128]
  ------------------
  905|  1.81k|			{
  906|  1.81k|				return new NflogLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  907|  1.81k|			}
  908|    128|			break;
  909|  1.94k|		}
  910|    128|		case LinkLayerType::LINKTYPE_C_HDLC:
  ------------------
  |  Branch (910:3): [True: 0, False: 920k]
  ------------------
  911|      0|		{
  912|      0|			if (CiscoHdlcLayer::isDataValid(rawData, rawDataLen))
  ------------------
  |  Branch (912:8): [True: 0, False: 0]
  ------------------
  913|      0|			{
  914|      0|				return new CiscoHdlcLayer(const_cast<uint8_t*>(rawData), rawDataLen, this);
  915|      0|			}
  916|      0|			break;
  917|      0|		}
  918|  2.42k|		default:
  ------------------
  |  Branch (918:3): [True: 2.42k, False: 917k]
  ------------------
  919|       |			// For all other link types, we don't have a specific layer. Just break and create a PayloadLayer
  920|  2.42k|			break;
  921|   920k|		}
  922|       |
  923|       |		// unknown link type
  924|  5.67k|		return new PayloadLayer(const_cast<uint8_t*>(rawData), rawDataLen, nullptr, this);
  925|   920k|	}
_ZNK4pcpp6Packet8toStringEb:
  928|   169k|	{
  929|   169k|		std::vector<std::string> stringList;
  930|   169k|		toStringList(stringList, timeAsLocalTime);
  931|   169k|		return std::accumulate(stringList.begin(), stringList.end(), std::string(),
  932|   169k|		                       [](std::string a, const std::string& b) { return std::move(a) + b + '\n'; });
  933|   169k|	}
_ZNK4pcpp6Packet12toStringListERNSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEEb:
  936|   169k|	{
  937|   169k|		result.clear();
  938|   169k|		result.push_back(printPacketInfo(timeAsLocalTime));
  939|       |
  940|   920k|		for (Layer* curLayer = m_FirstLayer; curLayer != nullptr; curLayer = curLayer->getNextLayer())
  ------------------
  |  Branch (940:40): [True: 751k, False: 169k]
  ------------------
  941|   751k|		{
  942|   751k|			result.push_back(curLayer->toString());
  943|   751k|		}
  944|   169k|	}
Packet.cpp:_ZZNK4pcpp6Packet8toStringEbENK3$_0clENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKS8_:
  932|   920k|		                       [](std::string a, const std::string& b) { return std::move(a) + b + '\n'; });

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

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

_ZNK4pcpp12PayloadLayer8toStringEv:
   51|  98.1k|	{
   52|  98.1k|		std::ostringstream dataLenStream;
   53|  98.1k|		dataLenStream << m_DataLen;
   54|       |
   55|  98.1k|		return "Payload Layer, Data length: " + dataLenStream.str() + " [Bytes]";
   56|  98.1k|	}

_ZN4pcpp15PostgresMessage27parsePostgresBackendMessageEPKhm:
  309|      2|	{
  310|      2|		if (data == nullptr || dataLen < 1)
  ------------------
  |  Branch (310:7): [True: 0, False: 2]
  |  Branch (310:26): [True: 0, False: 2]
  ------------------
  311|      0|		{
  312|      0|			return nullptr;
  313|      0|		}
  314|       |
  315|      2|		if (dataLen < 5)
  ------------------
  |  Branch (315:7): [True: 2, False: 0]
  ------------------
  316|      2|		{
  317|      2|			return std::unique_ptr<PostgresMessage>(
  318|      2|			    new PostgresMessage(data, dataLen, PostgresMessageType::Backend_Unknown));
  319|      2|		}
  320|       |
  321|      0|		auto messageLength = be32toh(*reinterpret_cast<const uint32_t*>(data + 1));
  322|      0|		if (dataLen < messageLength + 1)
  ------------------
  |  Branch (322:7): [True: 0, False: 0]
  ------------------
  323|      0|		{
  324|      0|			return std::unique_ptr<PostgresMessage>(
  325|      0|			    new PostgresMessage(data, dataLen, PostgresMessageType::Backend_Unknown));
  326|      0|		}
  327|       |
  328|      0|		auto messageTypeValue = data[0];
  329|      0|		auto messageType = PostgresMessageType::Backend_Unknown;
  330|       |
  331|      0|		switch (messageTypeValue)
  332|      0|		{
  333|      0|		case PostgresBackendMessage_R:
  ------------------
  |  Branch (333:3): [True: 0, False: 0]
  ------------------
  334|      0|		{
  335|      0|			uint32_t authType = be32toh(*reinterpret_cast<const uint32_t*>(data + 5));
  336|      0|			switch (authType)
  337|      0|			{
  338|      0|			case 0:
  ------------------
  |  Branch (338:4): [True: 0, False: 0]
  ------------------
  339|      0|			{
  340|      0|				messageType = PostgresMessageType::Backend_AuthenticationOk;
  341|      0|				break;
  342|      0|			}
  343|      0|			case 1:
  ------------------
  |  Branch (343:4): [True: 0, False: 0]
  ------------------
  344|      0|			{
  345|      0|				messageType = PostgresMessageType::Backend_AuthenticationKerberosV4;
  346|      0|				break;
  347|      0|			}
  348|      0|			case 2:
  ------------------
  |  Branch (348:4): [True: 0, False: 0]
  ------------------
  349|      0|			{
  350|      0|				messageType = PostgresMessageType::Backend_AuthenticationKerberosV5;
  351|      0|				break;
  352|      0|			}
  353|      0|			case 3:
  ------------------
  |  Branch (353:4): [True: 0, False: 0]
  ------------------
  354|      0|			{
  355|      0|				messageType = PostgresMessageType::Backend_AuthenticationCleartextPassword;
  356|      0|				break;
  357|      0|			}
  358|      0|			case 5:
  ------------------
  |  Branch (358:4): [True: 0, False: 0]
  ------------------
  359|      0|			{
  360|      0|				messageType = PostgresMessageType::Backend_AuthenticationMD5Password;
  361|      0|				break;
  362|      0|			}
  363|      0|			case 7:
  ------------------
  |  Branch (363:4): [True: 0, False: 0]
  ------------------
  364|      0|			{
  365|      0|				messageType = PostgresMessageType::Backend_AuthenticationGSS;
  366|      0|				break;
  367|      0|			}
  368|      0|			case 8:
  ------------------
  |  Branch (368:4): [True: 0, False: 0]
  ------------------
  369|      0|			{
  370|      0|				messageType = PostgresMessageType::Backend_AuthenticationGSSContinue;
  371|      0|				break;
  372|      0|			}
  373|      0|			case 9:
  ------------------
  |  Branch (373:4): [True: 0, False: 0]
  ------------------
  374|      0|			{
  375|      0|				messageType = PostgresMessageType::Backend_AuthenticationSSPI;
  376|      0|				break;
  377|      0|			}
  378|      0|			case 10:
  ------------------
  |  Branch (378:4): [True: 0, False: 0]
  ------------------
  379|      0|			{
  380|      0|				messageType = PostgresMessageType::Backend_AuthenticationSASL;
  381|      0|				break;
  382|      0|			}
  383|      0|			case 11:
  ------------------
  |  Branch (383:4): [True: 0, False: 0]
  ------------------
  384|      0|			{
  385|      0|				messageType = PostgresMessageType::Backend_AuthenticationSASLContinue;
  386|      0|				break;
  387|      0|			}
  388|      0|			case 12:
  ------------------
  |  Branch (388:4): [True: 0, False: 0]
  ------------------
  389|      0|			{
  390|      0|				messageType = PostgresMessageType::Backend_AuthenticationSASLFinal;
  391|      0|				break;
  392|      0|			}
  393|      0|			default:
  ------------------
  |  Branch (393:4): [True: 0, False: 0]
  ------------------
  394|      0|			{
  395|      0|				break;
  396|      0|			}
  397|      0|			}
  398|      0|			break;
  399|      0|		}
  400|      0|		case PostgresBackendMessage_K:
  ------------------
  |  Branch (400:3): [True: 0, False: 0]
  ------------------
  401|      0|		{
  402|      0|			messageType = PostgresMessageType::Backend_BackendKeyData;
  403|      0|			break;
  404|      0|		}
  405|      0|		case PostgresBackendMessage_2:
  ------------------
  |  Branch (405:3): [True: 0, False: 0]
  ------------------
  406|      0|		{
  407|      0|			messageType = PostgresMessageType::Backend_BindComplete;
  408|      0|			break;
  409|      0|		}
  410|      0|		case PostgresBackendMessage_3:
  ------------------
  |  Branch (410:3): [True: 0, False: 0]
  ------------------
  411|      0|		{
  412|      0|			messageType = PostgresMessageType::Backend_CloseComplete;
  413|      0|			break;
  414|      0|		}
  415|      0|		case PostgresBackendMessage_S:
  ------------------
  |  Branch (415:3): [True: 0, False: 0]
  ------------------
  416|      0|		{
  417|      0|			return std::unique_ptr<PostgresMessage>(new PostgresParameterStatus(data, messageLength + 1));
  418|      0|		}
  419|      0|		case PostgresBackendMessage_Z:
  ------------------
  |  Branch (419:3): [True: 0, False: 0]
  ------------------
  420|      0|		{
  421|      0|			messageType = PostgresMessageType::Backend_ReadyForQuery;
  422|      0|			break;
  423|      0|		}
  424|      0|		case PostgresBackendMessage_C:
  ------------------
  |  Branch (424:3): [True: 0, False: 0]
  ------------------
  425|      0|		{
  426|      0|			messageType = PostgresMessageType::Backend_CommandComplete;
  427|      0|			break;
  428|      0|		}
  429|      0|		case PostgresBackendMessage_d:
  ------------------
  |  Branch (429:3): [True: 0, False: 0]
  ------------------
  430|      0|		{
  431|      0|			messageType = PostgresMessageType::Backend_CopyData;
  432|      0|			break;
  433|      0|		}
  434|      0|		case PostgresBackendMessage_c:
  ------------------
  |  Branch (434:3): [True: 0, False: 0]
  ------------------
  435|      0|		{
  436|      0|			messageType = PostgresMessageType::Backend_CopyDone;
  437|      0|			break;
  438|      0|		}
  439|      0|		case PostgresBackendMessage_G:
  ------------------
  |  Branch (439:3): [True: 0, False: 0]
  ------------------
  440|      0|		{
  441|      0|			messageType = PostgresMessageType::Backend_CopyInResponse;
  442|      0|			break;
  443|      0|		}
  444|      0|		case PostgresBackendMessage_H:
  ------------------
  |  Branch (444:3): [True: 0, False: 0]
  ------------------
  445|      0|		{
  446|      0|			messageType = PostgresMessageType::Backend_CopyOutResponse;
  447|      0|			break;
  448|      0|		}
  449|      0|		case PostgresBackendMessage_W:
  ------------------
  |  Branch (449:3): [True: 0, False: 0]
  ------------------
  450|      0|		{
  451|      0|			messageType = PostgresMessageType::Backend_CopyBothResponse;
  452|      0|			break;
  453|      0|		}
  454|      0|		case PostgresBackendMessage_D:
  ------------------
  |  Branch (454:3): [True: 0, False: 0]
  ------------------
  455|      0|		{
  456|      0|			return std::unique_ptr<PostgresMessage>(new PostgresDataRowMessage(data, messageLength + 1));
  457|      0|		}
  458|      0|		case PostgresBackendMessage_I:
  ------------------
  |  Branch (458:3): [True: 0, False: 0]
  ------------------
  459|      0|		{
  460|      0|			messageType = PostgresMessageType::Backend_EmptyQueryResponse;
  461|      0|			break;
  462|      0|		}
  463|      0|		case PostgresBackendMessage_E:
  ------------------
  |  Branch (463:3): [True: 0, False: 0]
  ------------------
  464|      0|		{
  465|      0|			return std::unique_ptr<PostgresMessage>(new PostgresErrorResponseMessage(data, messageLength + 1));
  466|      0|		}
  467|      0|		case PostgresBackendMessage_V:
  ------------------
  |  Branch (467:3): [True: 0, False: 0]
  ------------------
  468|      0|		{
  469|      0|			messageType = PostgresMessageType::Backend_FunctionCallResponse;
  470|      0|			break;
  471|      0|		}
  472|      0|		case PostgresBackendMessage_v:
  ------------------
  |  Branch (472:3): [True: 0, False: 0]
  ------------------
  473|      0|		{
  474|      0|			messageType = PostgresMessageType::Backend_NegotiateProtocolVersion;
  475|      0|			break;
  476|      0|		}
  477|      0|		case PostgresBackendMessage_n:
  ------------------
  |  Branch (477:3): [True: 0, False: 0]
  ------------------
  478|      0|		{
  479|      0|			messageType = PostgresMessageType::Backend_NoData;
  480|      0|			break;
  481|      0|		}
  482|      0|		case PostgresBackendMessage_N:
  ------------------
  |  Branch (482:3): [True: 0, False: 0]
  ------------------
  483|      0|		{
  484|      0|			messageType = PostgresMessageType::Backend_NoticeResponse;
  485|      0|			break;
  486|      0|		}
  487|      0|		case PostgresBackendMessage_A:
  ------------------
  |  Branch (487:3): [True: 0, False: 0]
  ------------------
  488|      0|		{
  489|      0|			messageType = PostgresMessageType::Backend_NotificationResponse;
  490|      0|			break;
  491|      0|		}
  492|      0|		case PostgresBackendMessage_t:
  ------------------
  |  Branch (492:3): [True: 0, False: 0]
  ------------------
  493|      0|		{
  494|      0|			messageType = PostgresMessageType::Backend_ParameterDescription;
  495|      0|			break;
  496|      0|		}
  497|      0|		case PostgresBackendMessage_1:
  ------------------
  |  Branch (497:3): [True: 0, False: 0]
  ------------------
  498|      0|		{
  499|      0|			messageType = PostgresMessageType::Backend_ParseComplete;
  500|      0|			break;
  501|      0|		}
  502|      0|		case PostgresBackendMessage_s:
  ------------------
  |  Branch (502:3): [True: 0, False: 0]
  ------------------
  503|      0|		{
  504|      0|			messageType = PostgresMessageType::Backend_PortalSuspended;
  505|      0|			break;
  506|      0|		}
  507|      0|		case PostgresBackendMessage_T:
  ------------------
  |  Branch (507:3): [True: 0, False: 0]
  ------------------
  508|      0|		{
  509|      0|			return std::unique_ptr<PostgresMessage>(new PostgresRowDescriptionMessage(data, messageLength + 1));
  510|      0|		}
  511|      0|		default:
  ------------------
  |  Branch (511:3): [True: 0, False: 0]
  ------------------
  512|      0|		{
  513|      0|			break;
  514|      0|		}
  515|      0|		}
  516|       |
  517|      0|		return std::unique_ptr<PostgresMessage>(new PostgresMessage(data, messageLength + 1, messageType));
  518|      0|	}
_ZN4pcpp15PostgresMessage28parsePostgresFrontendMessageEPKhm:
  521|      2|	{
  522|      2|		if (data == nullptr || dataLen < 1)
  ------------------
  |  Branch (522:7): [True: 0, False: 2]
  |  Branch (522:26): [True: 0, False: 2]
  ------------------
  523|      0|		{
  524|      0|			return nullptr;
  525|      0|		}
  526|       |
  527|      2|		uint8_t messageTypeValue = data[0];
  528|      2|		if (messageTypeValue == PostgresMessage_0)
  ------------------
  |  Branch (528:7): [True: 2, False: 0]
  ------------------
  529|      2|		{
  530|      2|			if (dataLen < 8)
  ------------------
  |  Branch (530:8): [True: 0, False: 2]
  ------------------
  531|      0|			{
  532|      0|				return std::unique_ptr<PostgresMessage>(
  533|      0|				    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  534|      0|			}
  535|       |
  536|      2|			auto messageLength = be32toh(*reinterpret_cast<const uint32_t*>(data));
  537|      2|			if (messageLength > dataLen)
  ------------------
  |  Branch (537:8): [True: 0, False: 2]
  ------------------
  538|      0|			{
  539|      0|				return std::unique_ptr<PostgresMessage>(
  540|      0|				    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  541|      0|			}
  542|       |
  543|      2|			auto messageTag = be32toh(*reinterpret_cast<const uint32_t*>(data + 4));
  544|      2|			auto messageType = PostgresMessageType::Frontend_Unknown;
  545|       |
  546|      2|			switch (messageTag)
  547|      2|			{
  548|      0|			case PostgresFrontendTag_StartupMessage:
  ------------------
  |  Branch (548:4): [True: 0, False: 2]
  ------------------
  549|      0|			{
  550|      0|				return std::unique_ptr<PostgresMessage>(new PostgresStartupMessage(data, messageLength));
  551|      0|			}
  552|      0|			case PostgresFrontendTag_SSLRequest:
  ------------------
  |  Branch (552:4): [True: 0, False: 2]
  ------------------
  553|      0|			{
  554|      0|				messageType = PostgresMessageType::Frontend_SSLRequest;
  555|      0|				break;
  556|      0|			}
  557|      0|			case PostgresFrontendTag_CancelRequest:
  ------------------
  |  Branch (557:4): [True: 0, False: 2]
  ------------------
  558|      0|			{
  559|      0|				messageType = PostgresMessageType::Frontend_CancelRequest;
  560|      0|				break;
  561|      0|			}
  562|      2|			case PostgresFrontendTag_GSSENCRequest:
  ------------------
  |  Branch (562:4): [True: 2, False: 0]
  ------------------
  563|      2|			{
  564|      2|				messageType = PostgresMessageType::Frontend_GSSENCRequest;
  565|      2|				break;
  566|      0|			}
  567|      0|			default:
  ------------------
  |  Branch (567:4): [True: 0, False: 2]
  ------------------
  568|      0|			{
  569|      0|				break;
  570|      0|			}
  571|      2|			}
  572|       |
  573|      2|			return std::unique_ptr<PostgresMessage>(new PostgresMessage(data, messageLength, messageType));
  574|      2|		}
  575|       |
  576|      0|		if (dataLen < 5)
  ------------------
  |  Branch (576:7): [True: 0, False: 0]
  ------------------
  577|      0|		{
  578|      0|			return std::unique_ptr<PostgresMessage>(
  579|      0|			    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  580|      0|		}
  581|       |
  582|      0|		auto messageLength = be32toh(*reinterpret_cast<const uint32_t*>(data + 1));
  583|      0|		if (dataLen < messageLength + 1)
  ------------------
  |  Branch (583:7): [True: 0, False: 0]
  ------------------
  584|      0|		{
  585|      0|			return std::unique_ptr<PostgresMessage>(
  586|      0|			    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  587|      0|		}
  588|       |
  589|      0|		auto messageType = PostgresMessageType::Frontend_Unknown;
  590|      0|		switch (messageTypeValue)
  591|      0|		{
  592|      0|		case PostgresFrontendMessage_Q:
  ------------------
  |  Branch (592:3): [True: 0, False: 0]
  ------------------
  593|      0|		{
  594|      0|			return std::unique_ptr<PostgresMessage>(
  595|      0|			    new PostgresQueryMessage(data, (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|	}
_ZN4pcpp13PostgresLayer28parsePostgresBackendMessagesEPhmPNS_5LayerEPNS_6PacketE:
 1010|     10|	{
 1011|     10|		return new PostgresLayer(data, dataLen, prevLayer, packet, PostgresMessageOrigin::Backend);
 1012|     10|	}
_ZN4pcpp13PostgresLayer29parsePostgresFrontendMessagesEPhmPNS_5LayerEPNS_6PacketE:
 1016|     10|	{
 1017|     10|		return new PostgresLayer(data, dataLen, prevLayer, packet, PostgresMessageOrigin::Frontend);
 1018|     10|	}
_ZNK4pcpp13PostgresLayer19getPostgresMessagesEv:
 1021|      8|	{
 1022|      8|		if (!m_MessagesInitialized)
  ------------------
  |  Branch (1022:7): [True: 4, False: 4]
  ------------------
 1023|      4|		{
 1024|      4|			auto parseFunc = (m_MessageOrigin == PostgresMessageOrigin::Backend)
  ------------------
  |  Branch (1024:21): [True: 2, False: 2]
  ------------------
 1025|      4|			                     ? &PostgresMessage::parsePostgresBackendMessage
 1026|      4|			                     : &PostgresMessage::parsePostgresFrontendMessage;
 1027|       |
 1028|      4|			auto data = m_Data;
 1029|      4|			auto dataLen = m_DataLen;
 1030|       |
 1031|      8|			while (dataLen > 0)
  ------------------
  |  Branch (1031:11): [True: 4, False: 4]
  ------------------
 1032|      4|			{
 1033|      4|				auto curMessage = parseFunc(data, dataLen);
 1034|      4|				if (curMessage == nullptr)
  ------------------
  |  Branch (1034:9): [True: 0, False: 4]
  ------------------
 1035|      0|				{
 1036|      0|					break;
 1037|      0|				}
 1038|       |
 1039|      4|				dataLen -= curMessage->getTotalMessageLength();
 1040|      4|				data += curMessage->getTotalMessageLength();
 1041|      4|				m_Messages.pushBack(std::move(curMessage));
 1042|      4|			}
 1043|       |
 1044|      4|			m_MessagesInitialized = true;
 1045|      4|		}
 1046|       |
 1047|      8|		return m_Messages;
 1048|      8|	}
_ZNK4pcpp13PostgresLayer8toStringEv:
 1061|      8|	{
 1062|      8|		const auto& messages = getPostgresMessages();
 1063|      8|		return std::string("PostgreSQL ") +
 1064|      8|		       (m_MessageOrigin == PostgresMessageOrigin::Frontend ? "Frontend" : "Backend") + " Layer, " +
  ------------------
  |  Branch (1064:11): [True: 4, False: 4]
  ------------------
 1065|      8|		       std::to_string(messages.size()) + " message(s)";
 1066|      8|	}

_ZN4pcpp11RadiusLayer22getRadiusMessageStringEh:
   97|  3.99k|	{
   98|  3.99k|		switch (radiusMessageCode)
   99|  3.99k|		{
  100|    924|		case 1:
  ------------------
  |  Branch (100:3): [True: 924, False: 3.06k]
  ------------------
  101|    924|			return "Access-Request";
  102|    432|		case 2:
  ------------------
  |  Branch (102:3): [True: 432, False: 3.56k]
  ------------------
  103|    432|			return "Access-Accept";
  104|  1.78k|		case 3:
  ------------------
  |  Branch (104:3): [True: 1.78k, False: 2.21k]
  ------------------
  105|  1.78k|			return "Access-Reject";
  106|    154|		case 4:
  ------------------
  |  Branch (106:3): [True: 154, False: 3.83k]
  ------------------
  107|    154|			return "Accounting-Request";
  108|    102|		case 5:
  ------------------
  |  Branch (108:3): [True: 102, False: 3.89k]
  ------------------
  109|    102|			return "Accounting-Response";
  110|    534|		case 11:
  ------------------
  |  Branch (110:3): [True: 534, False: 3.45k]
  ------------------
  111|    534|			return "Access-Challenge";
  112|      0|		case 12:
  ------------------
  |  Branch (112:3): [True: 0, False: 3.99k]
  ------------------
  113|      0|			return "Status-Server";
  114|      0|		case 13:
  ------------------
  |  Branch (114:3): [True: 0, False: 3.99k]
  ------------------
  115|      0|			return "Status-Client";
  116|      0|		case 40:
  ------------------
  |  Branch (116:3): [True: 0, False: 3.99k]
  ------------------
  117|      0|			return "Disconnect-Request";
  118|      0|		case 41:
  ------------------
  |  Branch (118:3): [True: 0, False: 3.99k]
  ------------------
  119|      0|			return "Disconnect-ACK";
  120|      0|		case 42:
  ------------------
  |  Branch (120:3): [True: 0, False: 3.99k]
  ------------------
  121|      0|			return "Disconnect-NAK";
  122|      0|		case 43:
  ------------------
  |  Branch (122:3): [True: 0, False: 3.99k]
  ------------------
  123|      0|			return "CoA-Request";
  124|      0|		case 44:
  ------------------
  |  Branch (124:3): [True: 0, False: 3.99k]
  ------------------
  125|      0|			return "CoA-ACK";
  126|      0|		case 45:
  ------------------
  |  Branch (126:3): [True: 0, False: 3.99k]
  ------------------
  127|      0|			return "CoA-NAK";
  128|      0|		case 255:
  ------------------
  |  Branch (128:3): [True: 0, False: 3.99k]
  ------------------
  129|      0|			return "Reserved";
  130|     64|		default:
  ------------------
  |  Branch (130:3): [True: 64, False: 3.92k]
  ------------------
  131|     64|			return "Unknown";
  132|  3.99k|		}
  133|  3.99k|	}
_ZNK4pcpp11RadiusLayer12getHeaderLenEv:
  136|  1.99k|	{
  137|  1.99k|		uint16_t len = be16toh(getRadiusHeader()->length);
  138|  1.99k|		if (len > m_DataLen)
  ------------------
  |  Branch (138:7): [True: 0, False: 1.99k]
  ------------------
  139|      0|			return m_DataLen;
  140|       |
  141|  1.99k|		return len;
  142|  1.99k|	}
_ZN4pcpp11RadiusLayer22computeCalculateFieldsEv:
  145|  1.99k|	{
  146|       |		getRadiusHeader()->length = htobe16(m_DataLen);
  147|  1.99k|	}
_ZNK4pcpp11RadiusLayer8toStringEv:
  150|  3.99k|	{
  151|  3.99k|		std::ostringstream str;
  152|  3.99k|		str << "RADIUS Layer, " << RadiusLayer::getRadiusMessageString(getRadiusHeader()->code) << "("
  153|  3.99k|		    << (int)getRadiusHeader()->code
  154|  3.99k|		    << "), "
  155|  3.99k|		       "Id="
  156|  3.99k|		    << (int)getRadiusHeader()->id << ", "
  157|  3.99k|		    << "Length=" << be16toh(getRadiusHeader()->length);
  158|       |
  159|  3.99k|		return str.str();
  160|  3.99k|	}
_ZN4pcpp11RadiusLayer11isDataValidEPKhm:
  243|  10.6k|	{
  244|  10.6k|		if (udpData != nullptr && udpDataLen >= sizeof(radius_header))
  ------------------
  |  Branch (244:7): [True: 10.6k, False: 0]
  |  Branch (244:29): [True: 10.4k, False: 258]
  ------------------
  245|  10.4k|		{
  246|  10.4k|			const radius_header* radHdr = reinterpret_cast<const radius_header*>(udpData);
  247|  10.4k|			size_t radLen = be16toh(radHdr->length);
  248|  10.4k|			return radLen >= sizeof(radius_header) && radLen <= udpDataLen;
  ------------------
  |  Branch (248:11): [True: 10.2k, False: 130]
  |  Branch (248:46): [True: 9.98k, False: 295]
  ------------------
  249|  10.4k|		}
  250|    258|		return false;
  251|  10.6k|	}

_ZN4pcpp9RawPacketD2Ev:
   22|   754k|	{
   23|   754k|		clear();
   24|   754k|	}
_ZN4pcpp9RawPacketC2ERKS0_:
   27|   751k|	{
   28|   751k|		m_RawData = nullptr;
   29|   751k|		copyDataFrom(other, true);
   30|   751k|	}
_ZN4pcpp9RawPacket12copyDataFromERKS0_b:
   50|   751k|	{
   51|   751k|		if (!other.m_RawPacketSet)
  ------------------
  |  Branch (51:7): [True: 0, False: 751k]
  ------------------
   52|      0|			return;
   53|       |
   54|   751k|		m_TimeStamp = other.m_TimeStamp;
   55|       |
   56|   751k|		if (allocateData)
  ------------------
  |  Branch (56:7): [True: 751k, False: 0]
  ------------------
   57|   751k|		{
   58|   751k|			m_OwnsRawData = true;
   59|   751k|			m_RawData = new uint8_t[other.m_RawDataLen];
   60|   751k|			m_RawDataLen = other.m_RawDataLen;
   61|   751k|		}
   62|       |
   63|   751k|		memcpy(m_RawData, other.m_RawData, other.m_RawDataLen);
   64|   751k|		m_LinkLayerType = other.m_LinkLayerType;
   65|   751k|		m_FrameLength = other.m_FrameLength;
   66|   751k|		m_RawPacketSet = true;
   67|   751k|	}
_ZN4pcpp9RawPacket10setRawDataEPKhib8timespecNS_13LinkLayerTypeEi:
   97|   169k|	{
   98|   169k|		return doSetRawData(pRawData, rawDataLen, takeOwnership, timestamp, layerType, frameLength);
   99|   169k|	}
_ZN4pcpp9RawPacket12doSetRawDataEPKhib8timespecNS_13LinkLayerTypeEi:
  103|   169k|	{
  104|   169k|		clear();
  105|       |
  106|   169k|		m_OwnsRawData = takeOwnership;
  107|   169k|		m_FrameLength = (frameLength == -1) ? rawDataLen : frameLength;
  ------------------
  |  Branch (107:19): [True: 525, False: 168k]
  ------------------
  108|   169k|		m_RawData = (uint8_t*)pRawData;
  109|   169k|		m_RawDataLen = rawDataLen;
  110|   169k|		m_TimeStamp = timestamp;
  111|   169k|		m_RawPacketSet = true;
  112|   169k|		m_LinkLayerType = layerType;
  113|   169k|		return true;
  114|   169k|	}
_ZN4pcpp9RawPacket5clearEv:
  123|   923k|	{
  124|   923k|		if (m_RawData != nullptr && m_OwnsRawData)
  ------------------
  |  Branch (124:7): [True: 920k, False: 3.41k]
  |  Branch (124:31): [True: 920k, False: 0]
  ------------------
  125|   920k|			delete[] m_RawData;
  126|       |
  127|   923k|		m_RawData = nullptr;
  128|   923k|		m_RawDataLen = 0;
  129|   923k|		m_FrameLength = 0;
  130|   923k|		m_RawPacketSet = false;
  131|   923k|	}
_ZN4pcpp9RawPacket10insertDataEiPKhm:
  141|  91.1k|	{
  142|  91.1k|		if (atIndex < 0 || atIndex > m_RawDataLen)
  ------------------
  |  Branch (142:7): [True: 0, False: 91.1k]
  |  Branch (142:22): [True: 0, False: 91.1k]
  ------------------
  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|  91.1k|		memmove((uint8_t*)m_RawData + atIndex + dataToInsertLen, (uint8_t*)m_RawData + atIndex, m_RawDataLen - atIndex);
  152|       |
  153|  91.1k|		if (dataToInsert != nullptr)
  ------------------
  |  Branch (153:7): [True: 0, False: 91.1k]
  ------------------
  154|      0|		{
  155|       |			// insert data
  156|      0|			memcpy((uint8_t*)m_RawData + atIndex, dataToInsert, dataToInsertLen);
  157|      0|		}
  158|       |
  159|  91.1k|		m_RawDataLen += dataToInsertLen;
  160|  91.1k|		m_FrameLength = m_RawDataLen;
  161|  91.1k|	}
_ZN4pcpp9RawPacket14reallocateDataEm:
  164|  19.0k|	{
  165|  19.0k|		if ((int)newBufferLength == m_RawDataLen)
  ------------------
  |  Branch (165:7): [True: 0, False: 19.0k]
  ------------------
  166|      0|			return true;
  167|       |
  168|  19.0k|		if ((int)newBufferLength < m_RawDataLen)
  ------------------
  |  Branch (168:7): [True: 0, False: 19.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|  19.0k|		uint8_t* newBuffer = new uint8_t[newBufferLength];
  176|  19.0k|		memset(newBuffer, 0, newBufferLength);
  177|  19.0k|		memcpy(newBuffer, m_RawData, m_RawDataLen);
  178|  19.0k|		if (m_OwnsRawData)
  ------------------
  |  Branch (178:7): [True: 19.0k, False: 0]
  ------------------
  179|  19.0k|			delete[] m_RawData;
  180|       |
  181|  19.0k|		m_OwnsRawData = true;
  182|  19.0k|		m_RawData = newBuffer;
  183|       |
  184|  19.0k|		return true;
  185|  19.0k|	}
_ZN4pcpp9RawPacket10removeDataEim:
  188|  84.1k|	{
  189|  84.1k|		if (atIndex < 0 || atIndex + (int)numOfBytesToRemove > m_RawDataLen)
  ------------------
  |  Branch (189:7): [True: 0, False: 84.1k]
  |  Branch (189:22): [True: 0, False: 84.1k]
  ------------------
  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|  84.1k|		if (numOfBytesToRemove == 0)
  ------------------
  |  Branch (196:7): [True: 0, False: 84.1k]
  ------------------
  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|  84.1k|		if ((atIndex + (int)numOfBytesToRemove) != m_RawDataLen)
  ------------------
  |  Branch (202:7): [True: 52.8k, False: 31.3k]
  ------------------
  203|       |			// memmove copies data as if there was an intermediate buffer in between - so it allows for copying
  204|       |			// processes on overlapping src/dest ptrs
  205|  52.8k|			memmove((uint8_t*)m_RawData + atIndex, (uint8_t*)m_RawData + atIndex + numOfBytesToRemove,
  206|  52.8k|			        m_RawDataLen - (atIndex + numOfBytesToRemove));
  207|       |
  208|  84.1k|		m_RawDataLen -= numOfBytesToRemove;
  209|  84.1k|		m_FrameLength = m_RawDataLen;
  210|  84.1k|		return true;
  211|  84.1k|	}

_ZNK4pcpp11S7CommLayer8toStringEv:
   48|  4.28k|	{
   49|  4.28k|		std::ostringstream str;
   50|  4.28k|		str << "S7Comm Layer, ";
   51|       |
   52|  4.28k|		switch (getS7commHeader()->msgType)
   53|  4.28k|		{
   54|  1.55k|		case 0x01:
  ------------------
  |  Branch (54:3): [True: 1.55k, False: 2.72k]
  ------------------
   55|  1.55k|			str << "Job Request";
   56|  1.55k|			break;
   57|      8|		case 0x02:
  ------------------
  |  Branch (57:3): [True: 8, False: 4.27k]
  ------------------
   58|      8|			str << "Ack";
   59|      8|			break;
   60|  1.28k|		case 0x03:
  ------------------
  |  Branch (60:3): [True: 1.28k, False: 2.99k]
  ------------------
   61|  1.28k|			str << "Ack-Data";
   62|  1.28k|			break;
   63|  1.36k|		case 0x07:
  ------------------
  |  Branch (63:3): [True: 1.36k, False: 2.92k]
  ------------------
   64|  1.36k|			str << "Userdata";
   65|  1.36k|			break;
   66|     66|		default:
  ------------------
  |  Branch (66:3): [True: 66, False: 4.22k]
  ------------------
   67|     66|			str << "Unknown message";
   68|  4.28k|		}
   69|       |
   70|  4.28k|		return str.str();
   71|  4.28k|	}
_ZN4pcpp11S7CommLayer11isDataValidEPKhm:
   74|  16.1k|	{
   75|  16.1k|		if (!data || dataSize < sizeof(s7commhdr))
  ------------------
  |  Branch (75:7): [True: 0, False: 16.1k]
  |  Branch (75:16): [True: 144, False: 16.0k]
  ------------------
   76|    144|			return false;
   77|       |
   78|  16.0k|		return data[0] == 0x32;
   79|  16.1k|	}

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

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

_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|  96.9k|	{
 1057|  96.9k|		std::unordered_map<uint16_t, SSLCipherSuite*>::const_iterator pos = CipherSuiteIdToObjectMap.find(id);
 1058|  96.9k|		if (pos == CipherSuiteIdToObjectMap.end())
  ------------------
  |  Branch (1058:7): [True: 39.0k, False: 57.8k]
  ------------------
 1059|  39.0k|			return nullptr;
 1060|  57.8k|		else
 1061|  57.8k|			return pos->second;
 1062|  96.9k|	}
_ZN4pcpp14SSLCipherSuite20getCipherSuiteByNameENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1065|  5.57k|	{
 1066|  5.57k|		uint32_t nameHash = hashString(std::move(name));
 1067|  5.57k|		std::unordered_map<uint32_t, SSLCipherSuite*>::const_iterator pos = CipherSuiteStringToObjectMap.find(nameHash);
 1068|  5.57k|		if (pos == CipherSuiteStringToObjectMap.end())
  ------------------
  |  Branch (1068:7): [True: 0, False: 5.57k]
  ------------------
 1069|      0|			return nullptr;
 1070|  5.57k|		else
 1071|  5.57k|			return pos->second;
 1072|  5.57k|	}
_ZN4pcpp12SSLExtensionC2EPhm:
 1081|   283k|	SSLExtension::SSLExtension(uint8_t* data, size_t dataLen) : m_RawData(data), m_RawDataLen(dataLen)
 1082|   283k|	{
 1083|   283k|		if (data == nullptr || dataLen < 2 * sizeof(uint16_t))
  ------------------
  |  Branch (1083:7): [True: 0, False: 283k]
  |  Branch (1083:26): [True: 0, False: 283k]
  ------------------
 1084|      0|		{
 1085|      0|			throw std::invalid_argument("Insufficient data buffer for SSL extension header");
 1086|      0|		}
 1087|       |
 1088|   283k|		uint16_t extDataLen = getLength();
 1089|   283k|		if (dataLen < (2 * sizeof(uint16_t) + extDataLen))
  ------------------
  |  Branch (1089:7): [True: 0, False: 283k]
  ------------------
 1090|      0|		{
 1091|      0|			throw std::invalid_argument("Insufficient data buffer for SSL extension data");
 1092|      0|		}
 1093|   283k|	}
_ZNK4pcpp12SSLExtension7getTypeEv:
 1096|  17.0k|	{
 1097|  17.0k|		uint16_t typeAsInt = getTypeAsInt();
 1098|  17.0k|		if (typeAsInt <= 24 || typeAsInt == 35 || typeAsInt == 65281)
  ------------------
  |  Branch (1098:7): [True: 8.41k, False: 8.62k]
  |  Branch (1098:26): [True: 745, False: 7.88k]
  |  Branch (1098:45): [True: 2.50k, False: 5.37k]
  ------------------
 1099|  11.6k|			return (SSLExtensionType)typeAsInt;
 1100|       |
 1101|  5.37k|		return SSL_EXT_Unknown;
 1102|  17.0k|	}
_ZNK4pcpp12SSLExtension12getTypeAsIntEv:
 1105|  79.0k|	{
 1106|       |		return be16toh(getExtensionStruct()->extensionType);
 1107|  79.0k|	}
_ZNK4pcpp12SSLExtension9getLengthEv:
 1110|   591k|	{
 1111|   591k|		return getExtensionStruct()->getDataLength();
 1112|   591k|	}
_ZNK4pcpp12SSLExtension14getTotalLengthEv:
 1115|   283k|	{
 1116|   283k|		return getLength() + 2 * sizeof(uint16_t);
 1117|   283k|	}
_ZNK4pcpp12SSLExtension7getDataEv:
 1120|  15.5k|	{
 1121|  15.5k|		if (getLength() > 0)
  ------------------
  |  Branch (1121:7): [True: 15.2k, False: 280]
  ------------------
 1122|  15.2k|		{
 1123|  15.2k|			return getExtensionStruct()->extensionData;
 1124|  15.2k|		}
 1125|       |
 1126|    280|		return nullptr;
 1127|  15.5k|	}
_ZNK4pcpp12SSLExtension18SSLExtensionStruct13getDataLengthEv:
 1130|   886k|	{
 1131|       |		return be16toh(extensionDataLength);
 1132|   886k|	}
_ZNK4pcpp32SSLServerNameIndicationExtension11getHostNameEv:
 1139|  2.78k|	{
 1140|  2.78k|		auto* extensionDataPtr = getData();
 1141|  2.78k|		if (extensionDataPtr == nullptr)
  ------------------
  |  Branch (1141:7): [True: 280, False: 2.50k]
  ------------------
 1142|    280|		{
 1143|    280|			return "";
 1144|    280|		}
 1145|       |
 1146|  2.50k|		uint8_t const* hostNameLengthPos = extensionDataPtr + sizeof(uint16_t) + sizeof(uint8_t);
 1147|  2.50k|		uint16_t hostNameLength = be16toh(*reinterpret_cast<uint16_t const*>(hostNameLengthPos));
 1148|       |
 1149|  2.50k|		uint8_t const* hostNameDataIt = hostNameLengthPos + sizeof(uint16_t);
 1150|  2.50k|		uint8_t const* hostNameDataEndIt = hostNameDataIt + hostNameLength;
 1151|  2.50k|		uint8_t const* extensionDataEndIt = extensionDataPtr + getLength();
 1152|       |
 1153|  2.50k|		if (hostNameDataEndIt > extensionDataEndIt)
  ------------------
  |  Branch (1153:7): [True: 27, False: 2.48k]
  ------------------
 1154|     27|		{
 1155|     27|			PCPP_LOG_WARN("Host name length exceeds extension data length. Possible data corruption. Truncating.");
  ------------------
  |  |  431|     27|#	define PCPP_LOG_WARN(message) PCPP_LOG(pcpp::LogLevel::Warn, message)
  |  |  ------------------
  |  |  |  |  412|     27|	do                                                                                                                 \
  |  |  |  |  413|     27|	{                                                                                                                  \
  |  |  |  |  414|     27|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     27|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     27|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 27, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|     27|		{                                                                                                              \
  |  |  |  |  417|     27|			auto ctx =                                                                                                 \
  |  |  |  |  418|     27|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     27|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|     27|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|     27|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|     27|		}                                                                                                              \
  |  |  |  |  422|     27|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 27]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1156|     27|			hostNameDataEndIt = extensionDataEndIt;
 1157|     27|		}
 1158|       |
 1159|  2.50k|		return std::string(hostNameDataIt, hostNameDataEndIt);
 1160|  2.78k|	}
_ZNK4pcpp29SSLSupportedVersionsExtension20getSupportedVersionsEv:
 1167|  1.24k|	{
 1168|  1.24k|		std::vector<SSLVersion> result;
 1169|  1.24k|		uint16_t extensionLength = getLength();
 1170|  1.24k|		if (extensionLength == 2)  // server hello message
  ------------------
  |  Branch (1170:7): [True: 457, False: 788]
  ------------------
 1171|    457|		{
 1172|    457|			result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(getData()))));
 1173|    457|		}
 1174|    788|		else  // client-hello message
 1175|    788|		{
 1176|    788|			uint8_t listLength = *getData();
 1177|    788|			if (listLength != static_cast<uint8_t>(extensionLength - 1) || listLength % 2 != 0)
  ------------------
  |  Branch (1177:8): [True: 29, False: 759]
  |  Branch (1177:67): [True: 0, False: 759]
  ------------------
 1178|     29|				return result;  // bad extension data
 1179|       |
 1180|    759|			uint8_t* dataPtr = getData() + sizeof(uint8_t);
 1181|  3.22k|			for (int i = 0; i < listLength / 2; i++)
  ------------------
  |  Branch (1181:20): [True: 2.46k, False: 759]
  ------------------
 1182|  2.46k|			{
 1183|  2.46k|				result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(dataPtr))));
 1184|  2.46k|				dataPtr += sizeof(uint16_t);
 1185|  2.46k|			}
 1186|    759|		}
 1187|       |
 1188|  1.21k|		return result;
 1189|  1.24k|	}
_ZNK4pcpp27TLSSupportedGroupsExtension18getSupportedGroupsEv:
 1196|  2.71k|	{
 1197|  2.71k|		std::vector<uint16_t> result;
 1198|       |
 1199|  2.71k|		uint16_t extensionLength = getLength();
 1200|  2.71k|		if (extensionLength < sizeof(uint16_t))
  ------------------
  |  Branch (1200:7): [True: 8, False: 2.70k]
  ------------------
 1201|      8|			return result;  // bad extension data
 1202|       |
 1203|  2.70k|		uint16_t listLength = be16toh(*(uint16_t*)getData());
 1204|  2.70k|		if (listLength != (extensionLength - sizeof(uint16_t)) || listLength % 2 != 0)
  ------------------
  |  Branch (1204:7): [True: 37, False: 2.66k]
  |  Branch (1204:61): [True: 49, False: 2.61k]
  ------------------
 1205|     86|			return result;  // bad extension data
 1206|       |
 1207|  2.61k|		uint8_t* dataPtr = getData() + sizeof(uint16_t);
 1208|  16.3k|		for (int i = 0; i < listLength / 2; i++)
  ------------------
  |  Branch (1208:19): [True: 13.6k, False: 2.61k]
  ------------------
 1209|  13.6k|		{
 1210|  13.6k|			result.push_back(be16toh(*(uint16_t*)dataPtr));
 1211|  13.6k|			dataPtr += sizeof(uint16_t);
 1212|  13.6k|		}
 1213|       |
 1214|  2.61k|		return result;
 1215|  2.70k|	}
_ZNK4pcpp25TLSECPointFormatExtension20getECPointFormatListEv:
 1222|  2.78k|	{
 1223|  2.78k|		std::vector<uint8_t> result;
 1224|       |
 1225|  2.78k|		uint16_t extensionLength = getLength();
 1226|       |
 1227|  2.78k|		if (extensionLength < 1)
  ------------------
  |  Branch (1227:7): [True: 1, False: 2.77k]
  ------------------
 1228|      1|			return result;
 1229|       |
 1230|  2.77k|		uint8_t listLength = *getData();
 1231|       |
 1232|  2.77k|		if (extensionLength != static_cast<uint16_t>(listLength) + 1)
  ------------------
  |  Branch (1232:7): [True: 128, False: 2.65k]
  ------------------
 1233|    128|			return result;  // bad extension data
 1234|       |
 1235|  2.65k|		uint8_t* dataPtr = getData() + sizeof(uint8_t);
 1236|  6.17k|		for (int i = 0; i < listLength; i++)
  ------------------
  |  Branch (1236:19): [True: 3.52k, False: 2.65k]
  ------------------
 1237|  3.52k|		{
 1238|  3.52k|			result.push_back(*dataPtr);
 1239|  3.52k|			dataPtr += sizeof(uint8_t);
 1240|  3.52k|		}
 1241|       |
 1242|  2.65k|		return result;
 1243|  2.77k|	}
_ZN4pcpp19SSLHandshakeMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1281|   160k|	{
 1282|   160k|		m_Data = data;
 1283|   160k|		m_DataLen = dataLen;
 1284|   160k|		m_Container = container;
 1285|   160k|	}
_ZN4pcpp19SSLHandshakeMessage22createHandshakeMessageEPhmPNS_17SSLHandshakeLayerE:
 1289|   268k|	{
 1290|   268k|		if (dataLen < sizeof(ssl_tls_handshake_layer))
  ------------------
  |  Branch (1290:7): [True: 107k, False: 160k]
  ------------------
 1291|   107k|			return nullptr;
 1292|       |
 1293|   160k|		ssl_tls_handshake_layer* hsMsgHeader = reinterpret_cast<ssl_tls_handshake_layer*>(data);
 1294|       |
 1295|   160k|		if (dataLen >= 16 && (be64toh(*(uint64_t*)data) <= 0xFFFFFF || hsMsgHeader->length1 >= 1))
  ------------------
  |  Branch (1295:7): [True: 138k, False: 22.1k]
  |  Branch (1295:25): [True: 10.0k, False: 128k]
  |  Branch (1295:66): [True: 29.2k, False: 99.0k]
  ------------------
 1296|  39.2k|		{
 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|  39.2k|			return new SSLUnknownMessage(data, dataLen, container);
 1304|  39.2k|		}
 1305|       |
 1306|   121k|		switch (hsMsgHeader->handshakeType)
 1307|   121k|		{
 1308|  30.5k|		case SSL_CLIENT_HELLO:
  ------------------
  |  Branch (1308:3): [True: 30.5k, False: 90.6k]
  ------------------
 1309|  30.5k|			return new SSLClientHelloMessage(data, dataLen, container);
 1310|  26.5k|		case SSL_SERVER_HELLO:
  ------------------
  |  Branch (1310:3): [True: 26.5k, False: 94.7k]
  ------------------
 1311|  26.5k|			return new SSLServerHelloMessage(data, dataLen, container);
 1312|  26.3k|		case SSL_HELLO_REQUEST:
  ------------------
  |  Branch (1312:3): [True: 26.3k, False: 94.8k]
  ------------------
 1313|  26.3k|			return new SSLHelloRequestMessage(data, dataLen, container);
 1314|  8.22k|		case SSL_CERTIFICATE:
  ------------------
  |  Branch (1314:3): [True: 8.22k, False: 113k]
  ------------------
 1315|  8.22k|			return new SSLCertificateMessage(data, dataLen, container);
 1316|  3.71k|		case SSL_SERVER_KEY_EXCHANGE:
  ------------------
  |  Branch (1316:3): [True: 3.71k, False: 117k]
  ------------------
 1317|  3.71k|			return new SSLServerKeyExchangeMessage(data, dataLen, container);
 1318|  12.9k|		case SSL_CERTIFICATE_REQUEST:
  ------------------
  |  Branch (1318:3): [True: 12.9k, False: 108k]
  ------------------
 1319|  12.9k|			return new SSLCertificateRequestMessage(data, dataLen, container);
 1320|    884|		case SSL_CERTIFICATE_VERIFY:
  ------------------
  |  Branch (1320:3): [True: 884, False: 120k]
  ------------------
 1321|    884|			return new SSLCertificateVerifyMessage(data, dataLen, container);
 1322|  2.41k|		case SSL_CLIENT_KEY_EXCHANGE:
  ------------------
  |  Branch (1322:3): [True: 2.41k, False: 118k]
  ------------------
 1323|  2.41k|			return new SSLClientKeyExchangeMessage(data, dataLen, container);
 1324|    870|		case SSL_FINISHED:
  ------------------
  |  Branch (1324:3): [True: 870, False: 120k]
  ------------------
 1325|    870|			return new SSLFinishedMessage(data, dataLen, container);
 1326|  1.53k|		case SSL_SERVER_DONE:
  ------------------
  |  Branch (1326:3): [True: 1.53k, False: 119k]
  ------------------
 1327|  1.53k|			return new SSLServerHelloDoneMessage(data, dataLen, container);
 1328|  1.77k|		case SSL_NEW_SESSION_TICKET:
  ------------------
  |  Branch (1328:3): [True: 1.77k, False: 119k]
  ------------------
 1329|  1.77k|			return new SSLNewSessionTicketMessage(data, dataLen, container);
 1330|  5.40k|		default:
  ------------------
  |  Branch (1330:3): [True: 5.40k, False: 115k]
  ------------------
 1331|  5.40k|			return new SSLUnknownMessage(data, dataLen, container);
 1332|   121k|		}
 1333|   121k|	}
_ZNK4pcpp19SSLHandshakeMessage16getHandshakeTypeEv:
 1336|  5.57k|	{
 1337|  5.57k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1338|  5.57k|		return (SSLHandshakeType)handshakeLayer->handshakeType;
 1339|  5.57k|	}
_ZNK4pcpp19SSLHandshakeMessage16getMessageLengthEv:
 1342|   286k|	{
 1343|   286k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1344|       |		// TODO: add handshakeLayer->length1 to the calculation
 1345|   286k|		size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2);
 1346|   286k|		if (len > m_DataLen)
  ------------------
  |  Branch (1346:7): [True: 65.7k, False: 221k]
  ------------------
 1347|  65.7k|			return m_DataLen;
 1348|       |
 1349|   221k|		return len;
 1350|   286k|	}
_ZNK4pcpp19SSLHandshakeMessage17isMessageCompleteEv:
 1353|  16.3k|	{
 1354|  16.3k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer))
  ------------------
  |  Branch (1354:7): [True: 0, False: 16.3k]
  ------------------
 1355|      0|			return false;
 1356|       |
 1357|  16.3k|		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|  16.3k|		return len <= m_DataLen;
 1360|  16.3k|	}
_ZN4pcpp21SSLClientHelloMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1367|  30.5k|	    : SSLHandshakeMessage(data, dataLen, container)
 1368|  30.5k|	{
 1369|  30.5k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1370|  30.5k|		                               sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() +
 1371|  30.5k|		                               2 * sizeof(uint8_t);
 1372|  30.5k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1372:7): [True: 13.3k, False: 17.2k]
  ------------------
 1373|  13.3k|			return;
 1374|       |
 1375|  17.2k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1376|  17.2k|		uint16_t extensionLength = getExtensionsLength();
 1377|  17.2k|		uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
 1378|       |
 1379|  17.2k|		size_t messageLen = getMessageLength();
 1380|       |
 1381|       |		// Iterators for the entire extension data buffer containing the extensions blocks.
 1382|  17.2k|		uint8_t* extensionIt = extensionPos;
 1383|  17.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|  17.2k|		uint8_t* endOfMessageIt = m_Data + messageLen;
 1388|  17.2k|		if (endOfMessageIt < extensionEndIt)
  ------------------
  |  Branch (1388:7): [True: 3.57k, False: 13.6k]
  ------------------
 1389|  3.57k|		{
 1390|  3.57k|			extensionEndIt = endOfMessageIt;
 1391|  3.57k|		}
 1392|       |
 1393|  17.2k|		constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
 1394|   268k|		while (extensionIt < extensionEndIt &&
  ------------------
  |  Branch (1394:10): [True: 259k, False: 9.58k]
  ------------------
 1395|   259k|		       std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
  ------------------
  |  Branch (1395:10): [True: 255k, False: 3.67k]
  ------------------
 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|  89.5k|			case SSL_EXT_SERVER_NAME:
  ------------------
  |  Branch (1404:4): [True: 89.5k, False: 165k]
  ------------------
 1405|  89.5k|			{
 1406|  89.5k|				newExt =
 1407|  89.5k|				    SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
 1408|  89.5k|				break;
 1409|      0|			}
 1410|  3.94k|			case SSL_EXT_SUPPORTED_VERSIONS:
  ------------------
  |  Branch (1410:4): [True: 3.94k, False: 251k]
  ------------------
 1411|  3.94k|			{
 1412|  3.94k|				newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
 1413|  3.94k|				break;
 1414|      0|			}
 1415|  14.4k|			case SSL_EXT_SUPPORTED_GROUPS:
  ------------------
  |  Branch (1415:4): [True: 14.4k, False: 240k]
  ------------------
 1416|  14.4k|			{
 1417|  14.4k|				newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
 1418|  14.4k|				break;
 1419|      0|			}
 1420|  14.2k|			case SSL_EXT_EC_POINT_FORMATS:
  ------------------
  |  Branch (1420:4): [True: 14.2k, False: 241k]
  ------------------
 1421|  14.2k|			{
 1422|  14.2k|				newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
 1423|  14.2k|				break;
 1424|      0|			}
 1425|   133k|			default:
  ------------------
  |  Branch (1425:4): [True: 133k, False: 122k]
  ------------------
 1426|   133k|			{
 1427|   133k|				newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
 1428|   133k|			}
 1429|   255k|			}
 1430|       |
 1431|   255k|			if (newExt == nullptr)
  ------------------
  |  Branch (1431:8): [True: 3.95k, False: 251k]
  ------------------
 1432|  3.95k|			{
 1433|  3.95k|				PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
  ------------------
  |  |  425|  3.95k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, 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 PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 3.95k]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.95k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  3.95k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1434|  3.95k|				                                                        << " skipping remaining extensions.");
 1435|  3.95k|				break;
 1436|  3.95k|			}
 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|   251k|			size_t newExtTotalLen = newExt->getTotalLength();
 1441|   251k|			if (newExtTotalLen == 0)
  ------------------
  |  Branch (1441:8): [True: 0, False: 251k]
  ------------------
 1442|      0|			{
 1443|      0|				break;
 1444|      0|			}
 1445|       |
 1446|   251k|			m_ExtensionList.pushBack(std::move(newExt));
 1447|   251k|			std::advance(extensionIt, newExtTotalLen);
 1448|   251k|		}
 1449|  17.2k|	}
_ZNK4pcpp21SSLClientHelloMessage19getHandshakeVersionEv:
 1452|  11.1k|	{
 1453|       |		uint16_t handshakeVersion = be16toh(getClientHelloHeader()->handshakeVersion);
 1454|  11.1k|		return SSLVersion(handshakeVersion);
 1455|  11.1k|	}
_ZNK4pcpp21SSLClientHelloMessage18getSessionIDLengthEv:
 1458|  21.7M|	{
 1459|  21.7M|		if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
  ------------------
  |  Branch (1459:7): [True: 5.32k, False: 21.7M]
  ------------------
 1460|  5.32k|			return 0;
 1461|       |
 1462|  21.7M|		uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
 1463|  21.7M|		if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
  ------------------
  |  Branch (1463:7): [True: 7.10k, False: 21.7M]
  ------------------
 1464|  7.10k|			return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
 1465|       |
 1466|  21.7M|		return val;
 1467|  21.7M|	}
_ZNK4pcpp21SSLClientHelloMessage12getSessionIDEv:
 1470|  5.57k|	{
 1471|  5.57k|		if (getSessionIDLength() > 0)
  ------------------
  |  Branch (1471:7): [True: 2.91k, False: 2.65k]
  ------------------
 1472|  2.91k|			return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
 1473|  2.65k|		else
 1474|  2.65k|			return nullptr;
 1475|  5.57k|	}
_ZNK4pcpp21SSLClientHelloMessage19getCipherSuiteCountEv:
 1478|  12.4M|	{
 1479|  12.4M|		size_t cipherSuiteOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
 1480|  12.4M|		if (cipherSuiteOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1480:7): [True: 14.1k, False: 12.3M]
  ------------------
 1481|  14.1k|			return 0;
 1482|       |
 1483|  12.3M|		uint16_t cipherSuiteLen = *(uint16_t*)(m_Data + cipherSuiteOffset);
 1484|       |		return be16toh(cipherSuiteLen) / 2;
 1485|  12.4M|	}
_ZNK4pcpp21SSLClientHelloMessage14getCipherSuiteEi:
 1488|  3.08M|	{
 1489|  3.08M|		bool isValid;
 1490|  3.08M|		uint16_t id = getCipherSuiteID(index, isValid);
 1491|  3.08M|		return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
  ------------------
  |  Branch (1491:11): [True: 93.9k, False: 2.99M]
  ------------------
 1492|  3.08M|	}
_ZNK4pcpp21SSLClientHelloMessage16getCipherSuiteIDEiRb:
 1495|  9.26M|	{
 1496|  9.26M|		if (index < 0 || index >= getCipherSuiteCount())
  ------------------
  |  Branch (1496:7): [True: 0, False: 9.26M]
  |  Branch (1496:20): [True: 0, False: 9.26M]
  ------------------
 1497|      0|		{
 1498|      0|			isValid = false;
 1499|      0|			return 0;
 1500|      0|		}
 1501|       |
 1502|  9.26M|		size_t cipherSuiteStartOffset =
 1503|  9.26M|		    sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
 1504|  9.26M|		if (cipherSuiteStartOffset + sizeof(uint16_t) * (index + 1) > m_DataLen)
  ------------------
  |  Branch (1504:7): [True: 8.97M, False: 281k]
  ------------------
 1505|  8.97M|		{
 1506|  8.97M|			isValid = false;
 1507|  8.97M|			return 0;
 1508|  8.97M|		}
 1509|       |
 1510|   281k|		isValid = true;
 1511|   281k|		uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
 1512|       |		return be16toh(*(cipherSuiteStartPos + index));
 1513|  9.26M|	}
_ZNK4pcpp21SSLClientHelloMessage26getCompressionMethodsValueEv:
 1516|  5.57k|	{
 1517|  5.57k|		size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1518|  5.57k|		                sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() + sizeof(uint8_t);
 1519|  5.57k|		if (offset + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (1519:7): [True: 2.24k, False: 3.32k]
  ------------------
 1520|  2.24k|			return 0xff;
 1521|       |
 1522|  3.32k|		uint8_t* pos = m_Data + offset;
 1523|  3.32k|		return *pos;
 1524|  5.57k|	}
_ZNK4pcpp21SSLClientHelloMessage17getExtensionCountEv:
 1527|  5.57k|	{
 1528|  5.57k|		return m_ExtensionList.size();
 1529|  5.57k|	}
_ZNK4pcpp21SSLClientHelloMessage19getExtensionsLengthEv:
 1532|  17.2k|	{
 1533|  17.2k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1534|  17.2k|		                               sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() +
 1535|  17.2k|		                               2 * sizeof(uint8_t);
 1536|  17.2k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1536:7): [True: 0, False: 17.2k]
  ------------------
 1537|      0|			return 0;
 1538|       |
 1539|  17.2k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1540|       |		return be16toh(*(uint16_t*)extensionLengthPos);
 1541|  17.2k|	}
_ZNK4pcpp21SSLClientHelloMessage12getExtensionEi:
 1544|  48.0k|	{
 1545|  48.0k|		return const_cast<SSLExtension*>(m_ExtensionList.at(index));
 1546|  48.0k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeEt:
 1549|  5.57k|	{
 1550|  5.57k|		size_t vecSize = m_ExtensionList.size();
 1551|  11.8k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1551:22): [True: 9.01k, False: 2.78k]
  ------------------
 1552|  9.01k|		{
 1553|  9.01k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1554|  9.01k|			if (curElem->getTypeAsInt() == type)
  ------------------
  |  Branch (1554:8): [True: 2.78k, False: 6.23k]
  ------------------
 1555|  2.78k|				return curElem;
 1556|  9.01k|		}
 1557|       |
 1558|  2.78k|		return nullptr;
 1559|  5.57k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeENS_16SSLExtensionTypeE:
 1562|  5.57k|	{
 1563|  5.57k|		size_t vecSize = m_ExtensionList.size();
 1564|  11.8k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1564:22): [True: 9.01k, False: 2.78k]
  ------------------
 1565|  9.01k|		{
 1566|  9.01k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1567|  9.01k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1567:8): [True: 2.78k, False: 6.23k]
  ------------------
 1568|  2.78k|				return curElem;
 1569|  9.01k|		}
 1570|       |
 1571|  2.78k|		return nullptr;
 1572|  5.57k|	}
_ZNK4pcpp21SSLClientHelloMessage22generateTLSFingerprintEv:
 1575|  5.57k|	{
 1576|  5.57k|		SSLClientHelloMessage::ClientHelloTLSFingerprint result;
 1577|       |
 1578|       |		// extract version
 1579|  5.57k|		result.tlsVersion = getHandshakeVersion().asUInt();
 1580|       |
 1581|       |		// extract cipher suites
 1582|  5.57k|		int cipherSuiteCount = getCipherSuiteCount();
 1583|  3.09M|		for (int i = 0; i < cipherSuiteCount; i++)
  ------------------
  |  Branch (1583:19): [True: 3.08M, False: 5.57k]
  ------------------
 1584|  3.08M|		{
 1585|  3.08M|			bool isValid = false;
 1586|  3.08M|			uint16_t cipherSuiteID = getCipherSuiteID(i, isValid);
 1587|  3.08M|			if (isValid && GreaseSet.find(cipherSuiteID) == GreaseSet.end())
  ------------------
  |  Branch (1587:8): [True: 93.9k, False: 2.99M]
  |  Branch (1587:8): [True: 93.5k, False: 2.99M]
  |  Branch (1587:19): [True: 93.5k, False: 468]
  ------------------
 1588|  93.5k|				result.cipherSuites.push_back(cipherSuiteID);
 1589|  3.08M|		}
 1590|       |
 1591|       |		// extract extensions
 1592|  5.57k|		int extensionCount = getExtensionCount();
 1593|  53.6k|		for (int i = 0; i < extensionCount; i++)
  ------------------
  |  Branch (1593:19): [True: 48.0k, False: 5.57k]
  ------------------
 1594|  48.0k|		{
 1595|  48.0k|			uint16_t extensionType = getExtension(i)->getTypeAsInt();
 1596|  48.0k|			if (GreaseSet.find(extensionType) != GreaseSet.end())
  ------------------
  |  Branch (1596:8): [True: 870, False: 47.1k]
  ------------------
 1597|    870|				continue;
 1598|       |
 1599|  47.1k|			result.extensions.push_back(extensionType);
 1600|  47.1k|		}
 1601|       |
 1602|       |		// extract supported groups
 1603|  5.57k|		TLSSupportedGroupsExtension* supportedGroupsExt = getExtensionOfType<TLSSupportedGroupsExtension>();
 1604|  5.57k|		if (supportedGroupsExt != nullptr)
  ------------------
  |  Branch (1604:7): [True: 2.71k, False: 2.86k]
  ------------------
 1605|  2.71k|		{
 1606|  2.71k|			std::vector<uint16_t> supportedGroups = supportedGroupsExt->getSupportedGroups();
 1607|  2.71k|			for (const auto& iter : supportedGroups)
  ------------------
  |  Branch (1607:26): [True: 13.6k, False: 2.71k]
  ------------------
 1608|  13.6k|				if (GreaseSet.find(iter) == GreaseSet.end())
  ------------------
  |  Branch (1608:9): [True: 13.2k, False: 463]
  ------------------
 1609|  13.2k|					result.supportedGroups.push_back(iter);
 1610|  2.71k|		}
 1611|       |
 1612|       |		// extract EC point formats
 1613|  5.57k|		TLSECPointFormatExtension* ecPointFormatExt = getExtensionOfType<TLSECPointFormatExtension>();
 1614|  5.57k|		if (ecPointFormatExt != nullptr)
  ------------------
  |  Branch (1614:7): [True: 2.78k, False: 2.79k]
  ------------------
 1615|  2.78k|		{
 1616|  2.78k|			result.ecPointFormats = ecPointFormatExt->getECPointFormatList();
 1617|  2.78k|		}
 1618|       |
 1619|  5.57k|		return result;
 1620|  5.57k|	}
_ZNK4pcpp21SSLClientHelloMessage8toStringEv:
 1623|  11.1k|	{
 1624|  11.1k|		return "Client Hello message";
 1625|  11.1k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint8toStringEv:
 1632|  5.57k|	{
 1633|  5.57k|		std::stringstream tlsFingerprint;
 1634|       |
 1635|       |		// add version
 1636|  5.57k|		tlsFingerprint << tlsVersion << ",";
 1637|       |
 1638|       |		// add cipher suites
 1639|  5.57k|		bool firstCipher = true;
 1640|  5.57k|		for (const auto& iter : cipherSuites)
  ------------------
  |  Branch (1640:25): [True: 93.5k, False: 5.57k]
  ------------------
 1641|  93.5k|		{
 1642|  93.5k|			tlsFingerprint << (firstCipher ? "" : "-") << iter;
  ------------------
  |  Branch (1642:23): [True: 3.36k, False: 90.1k]
  ------------------
 1643|  93.5k|			firstCipher = false;
 1644|  93.5k|		}
 1645|  5.57k|		tlsFingerprint << ",";
 1646|       |
 1647|       |		// add extensions
 1648|  5.57k|		bool firstExtension = true;
 1649|  5.57k|		for (const auto& iter : extensions)
  ------------------
  |  Branch (1649:25): [True: 47.1k, False: 5.57k]
  ------------------
 1650|  47.1k|		{
 1651|  47.1k|			tlsFingerprint << (firstExtension ? "" : "-") << iter;
  ------------------
  |  Branch (1651:23): [True: 3.24k, False: 43.9k]
  ------------------
 1652|  47.1k|			firstExtension = false;
 1653|  47.1k|		}
 1654|  5.57k|		tlsFingerprint << ",";
 1655|       |
 1656|       |		// add supported groups
 1657|  5.57k|		bool firstGroup = true;
 1658|  5.57k|		for (const auto& iter : supportedGroups)
  ------------------
  |  Branch (1658:25): [True: 13.2k, False: 5.57k]
  ------------------
 1659|  13.2k|		{
 1660|  13.2k|			tlsFingerprint << (firstGroup ? "" : "-") << iter;
  ------------------
  |  Branch (1660:23): [True: 2.61k, False: 10.6k]
  ------------------
 1661|  13.2k|			firstGroup = false;
 1662|  13.2k|		}
 1663|  5.57k|		tlsFingerprint << ",";
 1664|       |
 1665|       |		// add EC point formats
 1666|  5.57k|		bool firstPointFormat = true;
 1667|  5.57k|		for (auto iter : ecPointFormats)
  ------------------
  |  Branch (1667:18): [True: 3.52k, False: 5.57k]
  ------------------
 1668|  3.52k|		{
 1669|  3.52k|			tlsFingerprint << (firstPointFormat ? "" : "-") << (int)iter;
  ------------------
  |  Branch (1669:23): [True: 2.65k, False: 874]
  ------------------
 1670|  3.52k|			firstPointFormat = false;
 1671|  3.52k|		}
 1672|       |
 1673|  5.57k|		return tlsFingerprint.str();
 1674|  5.57k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint5toMD5Ev:
 1677|  5.57k|	{
 1678|  5.57k|		return toStringAndMD5().second;
 1679|  5.57k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint14toStringAndMD5Ev:
 1682|  5.57k|	{
 1683|  5.57k|		std::string str = toString();
 1684|  5.57k|		MD5 md5;
 1685|  5.57k|		return std::pair<std::string, std::string>(str, md5(str));
 1686|  5.57k|	}
_ZN4pcpp21SSLServerHelloMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1693|  26.5k|	    : SSLHandshakeMessage(data, dataLen, container)
 1694|  26.5k|	{
 1695|  26.5k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1696|  26.5k|		                               sizeof(uint16_t) + sizeof(uint8_t);
 1697|  26.5k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1697:7): [True: 7.77k, False: 18.7k]
  ------------------
 1698|  7.77k|			return;
 1699|       |
 1700|  18.7k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1701|  18.7k|		uint16_t extensionLength = getExtensionsLength();
 1702|  18.7k|		uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
 1703|  18.7k|		size_t messageLen = getMessageLength();
 1704|       |
 1705|  18.7k|		uint8_t* extensionIt = extensionPos;
 1706|  18.7k|		uint8_t* extensionEndIt = extensionPos + extensionLength;
 1707|       |
 1708|  18.7k|		uint8_t* endOfMessageIt = m_Data + messageLen;
 1709|  18.7k|		if (endOfMessageIt < extensionEndIt)
  ------------------
  |  Branch (1709:7): [True: 8.65k, False: 10.0k]
  ------------------
 1710|  8.65k|		{
 1711|  8.65k|			extensionEndIt = endOfMessageIt;
 1712|  8.65k|		}
 1713|       |
 1714|  18.7k|		constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
 1715|  50.6k|		while (extensionIt < extensionEndIt &&
  ------------------
  |  Branch (1715:10): [True: 45.3k, False: 5.25k]
  ------------------
 1716|  45.3k|		       std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
  ------------------
  |  Branch (1716:10): [True: 40.4k, False: 4.95k]
  ------------------
 1717|  40.4k|		{
 1718|  40.4k|			std::unique_ptr<SSLExtension> newExt;
 1719|       |
 1720|  40.4k|			uint16_t sslExtType = be16toh(*reinterpret_cast<uint16_t*>(extensionIt));
 1721|  40.4k|			size_t availableDataLen = std::distance(extensionIt, extensionEndIt);
 1722|       |
 1723|  40.4k|			switch (sslExtType)
 1724|  40.4k|			{
 1725|  7.24k|			case SSL_EXT_SERVER_NAME:
  ------------------
  |  Branch (1725:4): [True: 7.24k, False: 33.1k]
  ------------------
 1726|  7.24k|			{
 1727|  7.24k|				newExt =
 1728|  7.24k|				    SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
 1729|  7.24k|				break;
 1730|      0|			}
 1731|  2.68k|			case SSL_EXT_SUPPORTED_VERSIONS:
  ------------------
  |  Branch (1731:4): [True: 2.68k, False: 37.7k]
  ------------------
 1732|  2.68k|			{
 1733|  2.68k|				newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
 1734|  2.68k|				break;
 1735|      0|			}
 1736|      6|			case SSL_EXT_SUPPORTED_GROUPS:
  ------------------
  |  Branch (1736:4): [True: 6, False: 40.3k]
  ------------------
 1737|      6|			{
 1738|      6|				newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
 1739|      6|				break;
 1740|      0|			}
 1741|  1.64k|			case SSL_EXT_EC_POINT_FORMATS:
  ------------------
  |  Branch (1741:4): [True: 1.64k, False: 38.7k]
  ------------------
 1742|  1.64k|			{
 1743|  1.64k|				newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
 1744|  1.64k|				break;
 1745|      0|			}
 1746|  28.8k|			default:
  ------------------
  |  Branch (1746:4): [True: 28.8k, False: 11.5k]
  ------------------
 1747|  28.8k|			{
 1748|  28.8k|				newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
 1749|  28.8k|			}
 1750|  40.4k|			}
 1751|       |
 1752|  40.4k|			if (newExt == nullptr)
  ------------------
  |  Branch (1752:8): [True: 8.55k, False: 31.8k]
  ------------------
 1753|  8.55k|			{
 1754|  8.55k|				PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
  ------------------
  |  |  425|  8.55k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  8.55k|	do                                                                                                                 \
  |  |  |  |  413|  8.55k|	{                                                                                                                  \
  |  |  |  |  414|  8.55k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  8.55k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  8.55k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 8.55k]
  |  |  |  |  ------------------
  |  |  |  |  416|  8.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|  8.55k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 8.55k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1755|  8.55k|				                                                        << " skipping remaining extensions.");
 1756|  8.55k|				break;
 1757|  8.55k|			}
 1758|       |
 1759|       |			// Total length can be zero only if getLength() == 0xfffc which is way too large
 1760|       |			// and means that this extension (and packet) are malformed
 1761|  31.8k|			size_t newExtTotalLen = newExt->getTotalLength();
 1762|  31.8k|			if (newExtTotalLen == 0)
  ------------------
  |  Branch (1762:8): [True: 0, False: 31.8k]
  ------------------
 1763|      0|			{
 1764|      0|				break;
 1765|      0|			}
 1766|       |
 1767|  31.8k|			m_ExtensionList.pushBack(std::move(newExt));
 1768|  31.8k|			std::advance(extensionIt, newExtTotalLen);
 1769|  31.8k|		}
 1770|  18.7k|	}
_ZNK4pcpp21SSLServerHelloMessage19getHandshakeVersionEv:
 1773|  8.22k|	{
 1774|  8.22k|		SSLSupportedVersionsExtension* supportedVersionsExt = getExtensionOfType<SSLSupportedVersionsExtension>();
 1775|  8.22k|		if (supportedVersionsExt != nullptr)
  ------------------
  |  Branch (1775:7): [True: 464, False: 7.75k]
  ------------------
 1776|    464|		{
 1777|    464|			std::vector<SSLVersion> supportedVersions = supportedVersionsExt->getSupportedVersions();
 1778|    464|			if (supportedVersions.size() == 1)
  ------------------
  |  Branch (1778:8): [True: 442, False: 22]
  ------------------
 1779|    442|				return supportedVersions[0];
 1780|    464|		}
 1781|       |
 1782|  7.78k|		uint16_t handshakeVersion = be16toh(getServerHelloHeader()->handshakeVersion);
 1783|  7.78k|		return SSLVersion(handshakeVersion);
 1784|  8.22k|	}
_ZNK4pcpp21SSLServerHelloMessage18getSessionIDLengthEv:
 1786|  61.7k|	{
 1787|  61.7k|		if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
  ------------------
  |  Branch (1787:7): [True: 9.16k, False: 52.5k]
  ------------------
 1788|  9.16k|			return 0;
 1789|       |
 1790|  52.5k|		uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
 1791|  52.5k|		if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
  ------------------
  |  Branch (1791:7): [True: 2.42k, False: 50.1k]
  ------------------
 1792|  2.42k|			return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
 1793|       |
 1794|  50.1k|		return val;
 1795|  52.5k|	}
_ZNK4pcpp21SSLServerHelloMessage12getSessionIDEv:
 1798|  4.11k|	{
 1799|  4.11k|		if (getSessionIDLength() > 0)
  ------------------
  |  Branch (1799:7): [True: 2.53k, False: 1.58k]
  ------------------
 1800|  2.53k|			return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
 1801|  1.58k|		else
 1802|  1.58k|			return nullptr;
 1803|  4.11k|	}
_ZNK4pcpp21SSLServerHelloMessage14getCipherSuiteEv:
 1806|  4.11k|	{
 1807|  4.11k|		bool isValid;
 1808|  4.11k|		uint16_t id = getCipherSuiteID(isValid);
 1809|  4.11k|		return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
  ------------------
  |  Branch (1809:11): [True: 2.95k, False: 1.15k]
  ------------------
 1810|  4.11k|	}
_ZNK4pcpp21SSLServerHelloMessage16getCipherSuiteIDERb:
 1813|  8.22k|	{
 1814|  8.22k|		size_t cipherSuiteStartOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
 1815|  8.22k|		if (cipherSuiteStartOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1815:7): [True: 2.31k, False: 5.91k]
  ------------------
 1816|  2.31k|		{
 1817|  2.31k|			isValid = false;
 1818|  2.31k|			return 0;
 1819|  2.31k|		}
 1820|       |
 1821|  5.91k|		isValid = true;
 1822|  5.91k|		uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
 1823|       |		return be16toh(*(cipherSuiteStartPos));
 1824|  8.22k|	}
_ZNK4pcpp21SSLServerHelloMessage26getCompressionMethodsValueEv:
 1827|  4.11k|	{
 1828|  4.11k|		size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
 1829|  4.11k|		if (offset + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (1829:7): [True: 1.15k, False: 2.95k]
  ------------------
 1830|  1.15k|			return 0xff;
 1831|       |
 1832|  2.95k|		uint8_t* pos = m_Data + offset;
 1833|  2.95k|		return *pos;
 1834|  4.11k|	}
_ZNK4pcpp21SSLServerHelloMessage17getExtensionCountEv:
 1837|  4.11k|	{
 1838|  4.11k|		return m_ExtensionList.size();
 1839|  4.11k|	}
_ZNK4pcpp21SSLServerHelloMessage19getExtensionsLengthEv:
 1842|  18.7k|	{
 1843|  18.7k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1844|  18.7k|		                               sizeof(uint16_t) + sizeof(uint8_t);
 1845|  18.7k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1845:7): [True: 0, False: 18.7k]
  ------------------
 1846|      0|			return 0;
 1847|       |
 1848|  18.7k|		uint16_t* extensionLengthPos = (uint16_t*)(m_Data + extensionLengthOffset);
 1849|       |		return be16toh(*extensionLengthPos);
 1850|  18.7k|	}
_ZNK4pcpp21SSLServerHelloMessage12getExtensionEi:
 1853|  4.89k|	{
 1854|  4.89k|		if (index < 0 || index >= (int)m_ExtensionList.size())
  ------------------
  |  Branch (1854:7): [True: 0, False: 4.89k]
  |  Branch (1854:20): [True: 0, False: 4.89k]
  ------------------
 1855|      0|			return nullptr;
 1856|       |
 1857|  4.89k|		return const_cast<SSLExtension*>(m_ExtensionList.at(index));
 1858|  4.89k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeEt:
 1861|  4.11k|	{
 1862|  4.11k|		size_t vecSize = m_ExtensionList.size();
 1863|  7.57k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1863:22): [True: 4.00k, False: 3.56k]
  ------------------
 1864|  4.00k|		{
 1865|  4.00k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1866|  4.00k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1866:8): [True: 549, False: 3.46k]
  ------------------
 1867|    549|				return curElem;
 1868|  4.00k|		}
 1869|       |
 1870|  3.56k|		return nullptr;
 1871|  4.11k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeENS_16SSLExtensionTypeE:
 1874|  4.11k|	{
 1875|  4.11k|		size_t vecSize = m_ExtensionList.size();
 1876|  7.57k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1876:22): [True: 4.00k, False: 3.56k]
  ------------------
 1877|  4.00k|		{
 1878|  4.00k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1879|  4.00k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1879:8): [True: 549, False: 3.46k]
  ------------------
 1880|    549|				return curElem;
 1881|  4.00k|		}
 1882|       |
 1883|  3.56k|		return nullptr;
 1884|  4.11k|	}
_ZNK4pcpp21SSLServerHelloMessage22generateTLSFingerprintEv:
 1887|  4.11k|	{
 1888|  4.11k|		SSLServerHelloMessage::ServerHelloTLSFingerprint result;
 1889|       |
 1890|       |		// extract version
 1891|  4.11k|		result.tlsVersion = getHandshakeVersion().asUInt();
 1892|       |
 1893|       |		// extract cipher suite
 1894|  4.11k|		bool isValid;
 1895|  4.11k|		uint16_t cipherSuite = getCipherSuiteID(isValid);
 1896|  4.11k|		result.cipherSuite = (isValid ? cipherSuite : 0);
  ------------------
  |  Branch (1896:25): [True: 2.95k, False: 1.15k]
  ------------------
 1897|       |
 1898|       |		// extract extensions
 1899|  4.11k|		int extensionCount = getExtensionCount();
 1900|  9.00k|		for (int i = 0; i < extensionCount; i++)
  ------------------
  |  Branch (1900:19): [True: 4.89k, False: 4.11k]
  ------------------
 1901|  4.89k|		{
 1902|  4.89k|			uint16_t extensionType = getExtension(i)->getTypeAsInt();
 1903|  4.89k|			result.extensions.push_back(extensionType);
 1904|  4.89k|		}
 1905|       |
 1906|  4.11k|		return result;
 1907|  4.11k|	}
_ZNK4pcpp21SSLServerHelloMessage8toStringEv:
 1910|  8.22k|	{
 1911|  8.22k|		return "Server Hello message";
 1912|  8.22k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint8toStringEv:
 1919|  4.11k|	{
 1920|  4.11k|		std::stringstream tlsFingerprint;
 1921|       |
 1922|       |		// add version and cipher suite
 1923|  4.11k|		tlsFingerprint << tlsVersion << "," << cipherSuite << ",";
 1924|       |
 1925|       |		// add extensions
 1926|  4.11k|		bool firstExtension = true;
 1927|  4.11k|		for (const auto& iter : extensions)
  ------------------
  |  Branch (1927:25): [True: 4.89k, False: 4.11k]
  ------------------
 1928|  4.89k|		{
 1929|  4.89k|			tlsFingerprint << (firstExtension ? "" : "-") << iter;
  ------------------
  |  Branch (1929:23): [True: 2.69k, False: 2.20k]
  ------------------
 1930|  4.89k|			firstExtension = false;
 1931|  4.89k|		}
 1932|       |
 1933|  4.11k|		return tlsFingerprint.str();
 1934|  4.11k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint5toMD5Ev:
 1937|  4.11k|	{
 1938|  4.11k|		return toStringAndMD5().second;
 1939|  4.11k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint14toStringAndMD5Ev:
 1942|  4.11k|	{
 1943|  4.11k|		std::string str = toString();
 1944|  4.11k|		MD5 md5;
 1945|  4.11k|		return std::pair<std::string, std::string>(str, md5(str));
 1946|  4.11k|	}
_ZN4pcpp21SSLCertificateMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1953|  8.22k|	    : SSLHandshakeMessage(data, dataLen, container)
 1954|  8.22k|	{
 1955|  8.22k|		if (dataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t) * 3)  // certificates length (3B)
  ------------------
  |  Branch (1955:7): [True: 0, False: 8.22k]
  ------------------
 1956|      0|			return;
 1957|       |
 1958|  8.22k|		size_t messageLen = getMessageLength();
 1959|       |		// read certificates length
 1960|       |		// TODO: certificates length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs
 1961|  8.22k|		uint8_t* curPos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);
 1962|  8.22k|		uint16_t certificatesLength = be16toh(*(uint16_t*)(curPos));
 1963|  8.22k|		if (certificatesLength == 0)
  ------------------
  |  Branch (1963:7): [True: 144, False: 8.07k]
  ------------------
 1964|    144|			return;
 1965|       |
 1966|       |		// advance to position of first certificate
 1967|  8.07k|		curPos += sizeof(uint16_t);
 1968|       |
 1969|  29.7k|		while (true)
  ------------------
  |  Branch (1969:10): [True: 29.7k, Folded]
  ------------------
 1970|  29.7k|		{
 1971|       |			// try to read certificate length (3B)
 1972|       |			// TODO: certificate length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs
 1973|  29.7k|			if (curPos + 3 * sizeof(uint8_t) - data > (int)messageLen)
  ------------------
  |  Branch (1973:8): [True: 8.07k, False: 21.6k]
  ------------------
 1974|  8.07k|				break;
 1975|       |
 1976|       |			// read certificate length
 1977|  21.6k|			curPos += sizeof(uint8_t);
 1978|  21.6k|			uint16_t certificateLength = be16toh(*(uint16_t*)(curPos));
 1979|       |
 1980|       |			// advance to start position of certificate
 1981|  21.6k|			curPos += sizeof(uint16_t);
 1982|       |
 1983|       |			// if packet doesn't contain the full certificate, read only what you got from current position till the
 1984|       |			// end of the packet
 1985|  21.6k|			bool certificateFull = true;
 1986|  21.6k|			if (curPos - data + certificateLength > (int)messageLen)
  ------------------
  |  Branch (1986:8): [True: 7.58k, False: 14.0k]
  ------------------
 1987|  7.58k|			{
 1988|  7.58k|				certificateLength = messageLen - (curPos - data);
 1989|  7.58k|				certificateFull = false;
 1990|  7.58k|			}
 1991|       |
 1992|  21.6k|			PCPP_LOG_DEBUG("Parsing certificate: pos=" << (int)(curPos - data) << "; len=" << certificateLength);
  ------------------
  |  |  425|  21.6k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  21.6k|	do                                                                                                                 \
  |  |  |  |  413|  21.6k|	{                                                                                                                  \
  |  |  |  |  414|  21.6k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  21.6k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  21.6k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 21.6k]
  |  |  |  |  ------------------
  |  |  |  |  416|  21.6k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  21.6k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 21.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1993|  21.6k|			SSLx509Certificate* newCert = new SSLx509Certificate(curPos, certificateLength, certificateFull);
 1994|  21.6k|			m_CertificateList.pushBack(newCert);
 1995|       |
 1996|  21.6k|			curPos += certificateLength;
 1997|  21.6k|		}
 1998|  8.07k|	}
_ZNK4pcpp21SSLCertificateMessage8toStringEv:
 2001|  2.58k|	{
 2002|  2.58k|		return "Certificate message";
 2003|  2.58k|	}
_ZNK4pcpp22SSLHelloRequestMessage8toStringEv:
 2027|  8.48k|	{
 2028|  8.48k|		return "Hello Request message";
 2029|  8.48k|	}
_ZNK4pcpp25SSLServerHelloDoneMessage8toStringEv:
 2036|    472|	{
 2037|    472|		return "Server Hello Done message";
 2038|    472|	}
_ZNK4pcpp27SSLServerKeyExchangeMessage8toStringEv:
 2062|  1.19k|	{
 2063|  1.19k|		return "Server Key Exchange message";
 2064|  1.19k|	}
_ZNK4pcpp27SSLClientKeyExchangeMessage8toStringEv:
 2088|    732|	{
 2089|    732|		return "Client Key Exchange message";
 2090|    732|	}
_ZN4pcpp28SSLCertificateRequestMessageC2EPhmPNS_17SSLHandshakeLayerE:
 2098|  12.9k|	    : SSLHandshakeMessage(data, dataLen, container)
 2099|  12.9k|	{
 2100|  12.9k|		size_t minMessageSize = sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);  // certificate types count (1B)
 2101|  12.9k|		if (dataLen < minMessageSize)
  ------------------
  |  Branch (2101:7): [True: 2.00k, False: 10.9k]
  ------------------
 2102|  2.00k|			return;
 2103|       |
 2104|  10.9k|		size_t messageLen = getMessageLength();
 2105|  10.9k|		if (messageLen < minMessageSize)
  ------------------
  |  Branch (2105:7): [True: 1.15k, False: 9.77k]
  ------------------
 2106|  1.15k|			return;
 2107|       |
 2108|  9.77k|		uint8_t certificateTypesCount = *(uint8_t*)(data + sizeof(ssl_tls_handshake_layer));
 2109|       |
 2110|  9.77k|		if (certificateTypesCount > messageLen - minMessageSize)
  ------------------
  |  Branch (2110:7): [True: 6.66k, False: 3.11k]
  ------------------
 2111|  6.66k|			certificateTypesCount = messageLen - minMessageSize;
 2112|       |
 2113|  9.77k|		uint8_t* pos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);
 2114|   273k|		for (uint8_t i = 0; i < certificateTypesCount; i++)
  ------------------
  |  Branch (2114:23): [True: 263k, False: 9.77k]
  ------------------
 2115|   263k|		{
 2116|   263k|			uint8_t certType = *(uint8_t*)(pos + i);
 2117|   263k|			if (certType == 0 || (certType > 6 && certType < 20) || (certType > 20 && certType < 64) || certType > 64)
  ------------------
  |  Branch (2117:8): [True: 17.5k, False: 245k]
  |  Branch (2117:26): [True: 225k, False: 20.0k]
  |  Branch (2117:42): [True: 21.8k, False: 204k]
  |  Branch (2117:61): [True: 192k, False: 31.4k]
  |  Branch (2117:78): [True: 21.2k, False: 171k]
  |  Branch (2117:96): [True: 162k, False: 40.3k]
  ------------------
 2118|   223k|				m_ClientCertificateTypes.push_back(SSL_CCT_UNKNOWN);
 2119|  40.3k|			else
 2120|  40.3k|				m_ClientCertificateTypes.push_back(static_cast<SSLClientCertificateType>(certType));
 2121|   263k|		}
 2122|  9.77k|	}
_ZNK4pcpp28SSLCertificateRequestMessage8toStringEv:
 2158|  4.05k|	{
 2159|  4.05k|		return "Certificate Request message";
 2160|  4.05k|	}
_ZNK4pcpp27SSLCertificateVerifyMessage8toStringEv:
 2184|    294|	{
 2185|    294|		return "Certificate Verify message";
 2186|    294|	}
_ZNK4pcpp18SSLFinishedMessage8toStringEv:
 2210|    290|	{
 2211|    290|		return "Finished message";
 2212|    290|	}
_ZNK4pcpp26SSLNewSessionTicketMessage8toStringEv:
 2236|    544|	{
 2237|    544|		return "New Session Ticket message";
 2238|    544|	}
_ZNK4pcpp17SSLUnknownMessage16getMessageLengthEv:
 2252|  89.3k|	{
 2253|       |		// if message type is unknown, it may be some encrypted message so message length isn't necessarily written
 2254|       |		// in clear. So in this case assume message is in length of all remaining data
 2255|  89.3k|		return m_DataLen;
 2256|  89.3k|	}
_ZNK4pcpp17SSLUnknownMessage8toStringEv:
 2259|  14.2k|	{
 2260|  14.2k|		return "Unknown message";
 2261|  14.2k|	}
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|  5.57k|	{
  695|  5.57k|		unsigned h = FIRST_HASH;
  ------------------
  |  |  691|  5.57k|#define FIRST_HASH 37  ///< also prime
  ------------------
  696|   122k|		for (auto i = 0u; i < str.size(); ++i)
  ------------------
  |  Branch (696:21): [True: 116k, False: 5.57k]
  ------------------
  697|   116k|		{
  698|   116k|			h = (h * A) ^ (str[i] * B);
  ------------------
  |  |  688|   116k|#define A 54059        ///< a prime
  ------------------
              			h = (h * A) ^ (str[i] * B);
  ------------------
  |  |  689|   116k|#define B 76963        ///< another prime
  ------------------
  699|   116k|		}
  700|  5.57k|		return h;
  701|  5.57k|	}

_ZN4pcpp8SSLLayer12IsSSLMessageEttPhmb:
   15|   498k|	{
   16|       |		// check the port map first
   17|   498k|		if (!ignorePorts && !isSSLPort(srcPort) && !isSSLPort(dstPort))
  ------------------
  |  Branch (17:7): [True: 377k, False: 120k]
  |  Branch (17:23): [True: 343k, False: 34.5k]
  |  Branch (17:46): [True: 260k, False: 83.0k]
  ------------------
   18|   260k|			return false;
   19|       |
   20|   238k|		if (dataLen < sizeof(ssl_tls_record_layer))
  ------------------
  |  Branch (20:7): [True: 23.8k, False: 214k]
  ------------------
   21|  23.8k|			return false;
   22|       |
   23|   214k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   24|       |
   25|       |		// there is no SSL message with length 0
   26|   214k|		if (recordLayer->length == 0)
  ------------------
  |  Branch (26:7): [True: 4.19k, False: 210k]
  ------------------
   27|  4.19k|			return false;
   28|       |
   29|   210k|		if (recordLayer->recordType < 20 || recordLayer->recordType > 23)
  ------------------
  |  Branch (29:7): [True: 1.08k, False: 209k]
  |  Branch (29:39): [True: 11.9k, False: 197k]
  ------------------
   30|  13.0k|			return false;
   31|       |
   32|   197k|		SSLVersion::SSLVersionEnum recordVersion = SSLVersion(be16toh(recordLayer->recordVersion)).asEnum(true);
   33|       |
   34|   197k|		if (recordVersion == SSLVersion::TLS1_3 || recordVersion == SSLVersion::TLS1_2 ||
  ------------------
  |  Branch (34:7): [True: 2.54k, False: 194k]
  |  Branch (34:46): [True: 157k, False: 37.1k]
  ------------------
   35|  37.1k|		    recordVersion == SSLVersion::TLS1_1 || recordVersion == SSLVersion::TLS1_0 ||
  ------------------
  |  Branch (35:7): [True: 3.35k, False: 33.7k]
  |  Branch (35:46): [True: 30.7k, False: 3.06k]
  ------------------
   36|  3.06k|		    recordVersion == SSLVersion::SSL3)
  ------------------
  |  Branch (36:7): [True: 2.38k, False: 679]
  ------------------
   37|   196k|			return true;
   38|    679|		else
   39|    679|			return false;
   40|   197k|	}
_ZN4pcpp8SSLLayer16createSSLMessageEPhmPNS_5LayerEPNS_6PacketE:
   43|   196k|	{
   44|   196k|		if (!canReinterpretAs<ssl_tls_record_layer>(data, dataLen))
  ------------------
  |  Branch (44:7): [True: 0, False: 196k]
  ------------------
   45|      0|		{
   46|      0|			return nullptr;
   47|      0|		}
   48|       |
   49|   196k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   50|   196k|		switch (recordLayer->recordType)
   51|   196k|		{
   52|   107k|		case SSL_HANDSHAKE:
  ------------------
  |  Branch (52:3): [True: 107k, False: 88.9k]
  ------------------
   53|   107k|		{
   54|   107k|			return new SSLHandshakeLayer(data, dataLen, prevLayer, packet);
   55|      0|		}
   56|       |
   57|  4.95k|		case SSL_ALERT:
  ------------------
  |  Branch (57:3): [True: 4.95k, False: 191k]
  ------------------
   58|  4.95k|		{
   59|  4.95k|			return new SSLAlertLayer(data, dataLen, prevLayer, packet);
   60|      0|		}
   61|       |
   62|  65.7k|		case SSL_CHANGE_CIPHER_SPEC:
  ------------------
  |  Branch (62:3): [True: 65.7k, False: 130k]
  ------------------
   63|  65.7k|		{
   64|  65.7k|			return new SSLChangeCipherSpecLayer(data, dataLen, prevLayer, packet);
   65|      0|		}
   66|       |
   67|  18.2k|		case SSL_APPLICATION_DATA:
  ------------------
  |  Branch (67:3): [True: 18.2k, False: 178k]
  ------------------
   68|  18.2k|		{
   69|  18.2k|			return new SSLApplicationDataLayer(data, dataLen, prevLayer, packet);
   70|      0|		}
   71|       |
   72|      0|		default:
  ------------------
  |  Branch (72:3): [True: 0, False: 196k]
  ------------------
   73|      0|			return nullptr;
   74|   196k|		}
   75|   196k|	}
_ZNK4pcpp8SSLLayer16getRecordVersionEv:
   78|  63.2k|	{
   79|       |		uint16_t recordVersion = be16toh(getRecordLayer()->recordVersion);
   80|  63.2k|		return SSLVersion(recordVersion);
   81|  63.2k|	}
_ZNK4pcpp8SSLLayer12getHeaderLenEv:
   89|   228k|	{
   90|   228k|		size_t len = sizeof(ssl_tls_record_layer) + be16toh(getRecordLayer()->length);
   91|   228k|		if (len > m_DataLen)
  ------------------
  |  Branch (91:7): [True: 39.3k, False: 188k]
  ------------------
   92|  39.3k|			return m_DataLen;
   93|   188k|		return len;
   94|   228k|	}
_ZN4pcpp8SSLLayer14parseNextLayerEv:
   97|   196k|	{
   98|   196k|		size_t headerLen = getHeaderLen();
   99|   196k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (99:7): [True: 75.8k, False: 120k]
  ------------------
  100|  75.8k|			return;
  101|       |
  102|   120k|		if (SSLLayer::IsSSLMessage(0, 0, m_Data + headerLen, m_DataLen - headerLen, true))
  ------------------
  |  Branch (102:7): [True: 92.2k, False: 28.4k]
  ------------------
  103|  92.2k|		{
  104|  92.2k|			constructNextLayerFromFactory(SSLLayer::createSSLMessage, m_Data + headerLen, m_DataLen - headerLen);
  105|  92.2k|		}
  106|   120k|	}
_ZNK4pcpp17SSLHandshakeLayer8toStringEv:
  113|  34.7k|	{
  114|  34.7k|		std::stringstream result;
  115|  34.7k|		result << getRecordVersion().toString(true) << " Layer, Handshake:";
  116|  87.0k|		for (size_t i = 0; i < m_MessageList.size(); i++)
  ------------------
  |  Branch (116:22): [True: 52.2k, False: 34.7k]
  ------------------
  117|  52.2k|		{
  118|  52.2k|			if (i == 0)
  ------------------
  |  Branch (118:8): [True: 32.6k, False: 19.5k]
  ------------------
  119|  32.6k|				result << " " << m_MessageList.at(i)->toString();
  120|  19.5k|			else
  121|  19.5k|				result << ", " << m_MessageList.at(i)->toString();
  122|  52.2k|		}
  123|  34.7k|		return result.str();
  124|  34.7k|	}
_ZN4pcpp17SSLHandshakeLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  127|   107k|	    : SSLLayer(data, dataLen, prevLayer, packet)
  128|   107k|	{
  129|   107k|		constexpr size_t baseTLSRecordSize = sizeof(ssl_tls_record_layer);
  130|   107k|		uint8_t* curPos = m_Data + baseTLSRecordSize;
  131|   107k|		size_t recordDataLen = be16toh(getRecordLayer()->length);
  132|       |
  133|   107k|		if (m_DataLen < recordDataLen + baseTLSRecordSize)
  ------------------
  |  Branch (133:7): [True: 26.5k, False: 81.0k]
  ------------------
  134|  26.5k|		{
  135|  26.5k|			recordDataLen = m_DataLen >= baseTLSRecordSize ? m_DataLen - baseTLSRecordSize : 0;
  ------------------
  |  Branch (135:20): [True: 26.5k, False: 0]
  ------------------
  136|  26.5k|		}
  137|       |
  138|   107k|		size_t curPosIndex = 0;
  139|   268k|		while (true)
  ------------------
  |  Branch (139:10): [True: 268k, Folded]
  ------------------
  140|   268k|		{
  141|   268k|			SSLHandshakeMessage* message =
  142|   268k|			    SSLHandshakeMessage::createHandshakeMessage(curPos, recordDataLen - curPosIndex, this);
  143|   268k|			if (message == nullptr)
  ------------------
  |  Branch (143:8): [True: 107k, False: 160k]
  ------------------
  144|   107k|				break;
  145|       |
  146|   160k|			m_MessageList.pushBack(message);
  147|   160k|			curPos += message->getMessageLength();
  148|   160k|			curPosIndex += message->getMessageLength();
  149|   160k|		}
  150|   107k|	}
_ZNK4pcpp24SSLChangeCipherSpecLayer8toStringEv:
  165|  20.5k|	{
  166|  20.5k|		std::stringstream result;
  167|  20.5k|		result << getRecordVersion().toString(true) << " Layer, Change Cipher Spec";
  168|  20.5k|		return result.str();
  169|  20.5k|	}
_ZNK4pcpp13SSLAlertLayer13getAlertLevelEv:
  176|  1.63k|	{
  177|  1.63k|		uint8_t* pos = m_Data + sizeof(ssl_tls_record_layer);
  178|  1.63k|		uint8_t alertLevel = *pos;
  179|  1.63k|		if (alertLevel == SSL_ALERT_LEVEL_WARNING || alertLevel == SSL_ALERT_LEVEL_FATAL)
  ------------------
  |  Branch (179:7): [True: 730, False: 900]
  |  Branch (179:48): [True: 0, False: 900]
  ------------------
  180|    730|			return (SSLAlertLevel)alertLevel;
  181|    900|		else
  182|    900|			return SSL_ALERT_LEVEL_ENCRYPTED;
  183|  1.63k|	}
_ZNK4pcpp13SSLAlertLayer8toStringEv:
  227|  1.63k|	{
  228|  1.63k|		std::stringstream result;
  229|  1.63k|		result << getRecordVersion().toString(true) << " Layer, ";
  230|  1.63k|		if (getAlertLevel() == SSL_ALERT_LEVEL_ENCRYPTED)
  ------------------
  |  Branch (230:7): [True: 900, False: 730]
  ------------------
  231|    900|			result << "Encrypted Alert";
  232|    730|		else
  233|       |			// TODO: add alert level and description here
  234|    730|			result << "Alert";
  235|  1.63k|		return result.str();
  236|  1.63k|	}
_ZNK4pcpp23SSLApplicationDataLayer8toStringEv:
  260|  6.26k|	{
  261|  6.26k|		return getRecordVersion().toString(true) + " Layer, Application Data";
  262|  6.26k|	}

_ZN4pcpp18splitByWhiteSpacesERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
   11|  5.55k|	{
   12|  5.55k|		std::string buf;
   13|  5.55k|		std::stringstream stream(str);
   14|  5.55k|		std::vector<std::string> result;
   15|  29.8k|		while (stream >> buf)
  ------------------
  |  Branch (15:10): [True: 24.2k, False: 5.55k]
  ------------------
   16|  24.2k|			result.push_back(buf);
   17|       |
   18|  5.55k|		return result;
   19|  5.55k|	}
_ZN4pcpp8SdpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   22|  37.6k|	    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, SDP)
   23|  37.6k|	{
   24|  37.6k|		m_FieldsOffset = 0;
   25|  37.6k|		parseFields();
   26|  37.6k|	}
_ZNK4pcpp8SdpLayer8toStringEv:
   69|  6.71k|	{
   70|  6.71k|		return "SDP Layer";
   71|  6.71k|	}
_ZNK4pcpp8SdpLayer19getOwnerIPv4AddressEv:
   74|  3.35k|	{
   75|  3.35k|		HeaderField* originator = getFieldByName(PCPP_SDP_ORIGINATOR_FIELD);
  ------------------
  |  |   17|  3.35k|#define PCPP_SDP_ORIGINATOR_FIELD "o"
  ------------------
   76|  3.35k|		if (originator == nullptr)
  ------------------
  |  Branch (76:7): [True: 509, False: 2.84k]
  ------------------
   77|    509|			return IPv4Address::Zero;
   78|       |
   79|  2.84k|		std::vector<std::string> tokens = splitByWhiteSpaces(originator->getFieldValue());
   80|  2.84k|		if (tokens.size() < 6)
  ------------------
  |  Branch (80:7): [True: 1.29k, False: 1.55k]
  ------------------
   81|  1.29k|			return IPv4Address::Zero;
   82|       |
   83|  1.55k|		if (tokens[3] != "IN" || tokens[4] != "IP4")
  ------------------
  |  Branch (83:7): [True: 154, False: 1.39k]
  |  Branch (83:28): [True: 1.18k, False: 212]
  ------------------
   84|  1.34k|			return IPv4Address::Zero;
   85|       |
   86|    212|		try
   87|    212|		{
   88|    212|			return IPv4Address(tokens[5]);
   89|    212|		}
   90|    212|		catch (const std::exception&)
   91|    212|		{
   92|     93|			return IPv4Address::Zero;
   93|     93|		}
   94|    212|	}
_ZNK4pcpp8SdpLayer12getMediaPortERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   97|  3.35k|	{
   98|  3.35k|		int mediaFieldIndex = 0;
   99|  3.35k|		HeaderField* mediaDesc = getFieldByName(PCPP_SDP_MEDIA_NAME_FIELD, mediaFieldIndex);
  ------------------
  |  |   43|  3.35k|#define PCPP_SDP_MEDIA_NAME_FIELD "m"
  ------------------
  100|       |
  101|  5.00k|		while (mediaDesc != nullptr)
  ------------------
  |  Branch (101:10): [True: 2.70k, False: 2.30k]
  ------------------
  102|  2.70k|		{
  103|  2.70k|			std::vector<std::string> tokens = splitByWhiteSpaces(mediaDesc->getFieldValue());
  104|       |
  105|  2.70k|			if (tokens.size() >= 2 && tokens[0] == mediaType)
  ------------------
  |  Branch (105:8): [True: 2.35k, False: 355]
  |  Branch (105:30): [True: 1.05k, False: 1.29k]
  ------------------
  106|  1.05k|				return atoi(tokens[1].c_str());
  107|       |
  108|  1.65k|			mediaFieldIndex++;
  109|  1.65k|			mediaDesc = getFieldByName(PCPP_SDP_MEDIA_NAME_FIELD, mediaFieldIndex);
  ------------------
  |  |   43|  1.65k|#define PCPP_SDP_MEDIA_NAME_FIELD "m"
  ------------------
  110|  1.65k|		}
  111|       |
  112|  2.30k|		return 0;
  113|  3.35k|	}
_ZN4pcpp8SdpLayer19addMediaDescriptionERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEtS9_S9_RKNS1_6vectorIS7_NS5_IS7_EEEE:
  118|  3.35k|	{
  119|  3.35k|		std::stringstream portStream;
  120|  3.35k|		portStream << mediaPort;
  121|       |
  122|  3.35k|		std::string mediaFieldValue = mediaType + " " + portStream.str() + " " + mediaProtocol + " " + mediaFormat;
  123|  3.35k|		if (addField(PCPP_SDP_MEDIA_NAME_FIELD, mediaFieldValue) == nullptr)
  ------------------
  |  |   43|  3.35k|#define PCPP_SDP_MEDIA_NAME_FIELD "m"
  ------------------
  |  Branch (123:7): [True: 2.28k, False: 1.06k]
  ------------------
  124|  2.28k|		{
  125|  2.28k|			PCPP_LOG_ERROR("Failed to add media description field");
  ------------------
  |  |  443|  2.28k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  2.28k|	do                                                                                                                 \
  |  |  |  |  413|  2.28k|	{                                                                                                                  \
  |  |  |  |  414|  2.28k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.28k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.28k|#define LOG_MODULE PacketLogModuleSdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 2.28k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.28k|		{                                                                                                              \
  |  |  |  |  417|  2.28k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  2.28k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.28k|#define LOG_MODULE PacketLogModuleSdpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  2.28k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  2.28k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  2.28k|		}                                                                                                              \
  |  |  |  |  422|  2.28k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.28k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|  2.28k|			return false;
  127|  2.28k|		}
  128|       |
  129|  1.06k|		for (const auto& iter : mediaAttributes)
  ------------------
  |  Branch (129:25): [True: 1.06k, False: 1.06k]
  ------------------
  130|  1.06k|		{
  131|  1.06k|			if (addField(PCPP_SDP_MEDIA_ATTRIBUTE_FIELD, iter) == nullptr)
  ------------------
  |  |   41|  1.06k|#define PCPP_SDP_MEDIA_ATTRIBUTE_FIELD "a"
  ------------------
  |  Branch (131:8): [True: 0, False: 1.06k]
  ------------------
  132|      0|			{
  133|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  134|      0|				return false;
  135|      0|			}
  136|  1.06k|		}
  137|       |
  138|  1.06k|		return true;
  139|  1.06k|	}

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

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

_ZN4pcpp8SllLayer14parseNextLayerEv:
   52|   128k|	{
   53|   128k|		if (m_DataLen <= sizeof(sll_header))
  ------------------
  |  Branch (53:7): [True: 256, False: 128k]
  ------------------
   54|    256|			return;
   55|       |
   56|   128k|		uint8_t* payload = m_Data + sizeof(sll_header);
   57|   128k|		size_t payloadLen = m_DataLen - sizeof(sll_header);
   58|       |
   59|   128k|		sll_header* hdr = getSllHeader();
   60|   128k|		switch (be16toh(hdr->protocol_type))
   61|   128k|		{
   62|  53.1k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|  53.1k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (62:3): [True: 53.1k, False: 75.0k]
  ------------------
   63|  53.1k|		{
   64|  53.1k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   65|  53.1k|			break;
   66|      0|		}
   67|  70.4k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|  70.4k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (67:3): [True: 70.4k, False: 57.7k]
  ------------------
   68|  70.4k|		{
   69|  70.4k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   70|  70.4k|			break;
   71|      0|		}
   72|      0|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   33|      0|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (72:3): [True: 0, False: 128k]
  ------------------
   73|      0|		{
   74|      0|			constructNextLayer<ArpLayer>(payload, payloadLen);
   75|      0|			break;
   76|      0|		}
   77|  2.26k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|  2.26k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (77:3): [True: 2.26k, False: 125k]
  ------------------
   78|  2.26k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   61|  2.26k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (78:3): [True: 0, False: 128k]
  ------------------
   79|  2.26k|		{
   80|  2.26k|			constructNextLayer<VlanLayer>(payload, payloadLen);
   81|  2.26k|			break;
   82|  2.26k|		}
   83|      0|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   53|      0|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (83:3): [True: 0, False: 128k]
  ------------------
   84|      0|		{
   85|      0|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   86|      0|			break;
   87|  2.26k|		}
   88|      0|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   51|      0|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (88:3): [True: 0, False: 128k]
  ------------------
   89|      0|		{
   90|      0|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   91|      0|			break;
   92|  2.26k|		}
   93|      0|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|      0|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (93:3): [True: 0, False: 128k]
  ------------------
   94|      0|		{
   95|      0|			constructNextLayer<MplsLayer>(payload, payloadLen);
   96|      0|			break;
   97|  2.26k|		}
   98|  2.31k|		default:
  ------------------
  |  Branch (98:3): [True: 2.31k, False: 125k]
  ------------------
   99|  2.31k|		{
  100|  2.31k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  101|  2.31k|			break;
  102|  2.26k|		}
  103|   128k|		}
  104|   128k|	}
_ZN4pcpp8SllLayer22computeCalculateFieldsEv:
  107|  21.4k|	{
  108|  21.4k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (108:7): [True: 128, False: 21.3k]
  ------------------
  109|    128|			return;
  110|       |
  111|  21.3k|		sll_header* hdr = getSllHeader();
  112|  21.3k|		switch (m_NextLayer->getProtocol())
  113|  21.3k|		{
  114|  7.78k|		case IPv4:
  ------------------
  |  Branch (114:3): [True: 7.78k, False: 13.5k]
  ------------------
  115|  7.78k|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IP);
  116|  7.78k|			break;
  117|  12.3k|		case IPv6:
  ------------------
  |  Branch (117:3): [True: 12.3k, False: 8.96k]
  ------------------
  118|  12.3k|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IPV6);
  119|  12.3k|			break;
  120|      0|		case ARP:
  ------------------
  |  Branch (120:3): [True: 0, False: 21.3k]
  ------------------
  121|      0|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_ARP);
  122|      0|			break;
  123|    395|		case VLAN:
  ------------------
  |  Branch (123:3): [True: 395, False: 20.9k]
  ------------------
  124|    395|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_VLAN);
  125|    395|			break;
  126|    776|		default:
  ------------------
  |  Branch (126:3): [True: 776, False: 20.5k]
  ------------------
  127|    776|			return;
  128|  21.3k|		}
  129|  21.3k|	}
_ZNK4pcpp8SllLayer8toStringEv:
  132|  42.8k|	{
  133|  42.8k|		return "Linux cooked header";
  134|  42.8k|	}

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

_ZN4pcpp11SomeIpLayer16parseSomeIpLayerEPhmPNS_5LayerEPNS_6PacketE:
   47|  48.4k|	{
   48|       |		// Ideas taken from wireshark some ip dissector
   49|  48.4k|		const size_t headerLen = sizeof(someiphdr);
   50|  48.4k|		if (dataLen < headerLen)
  ------------------
  |  Branch (50:7): [True: 15.8k, False: 32.5k]
  ------------------
   51|  15.8k|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   52|       |
   53|  32.5k|		uint32_t lengthBE = 0;
   54|  32.5k|		memcpy(&lengthBE, data + sizeof(uint32_t), sizeof(uint32_t));  // length field in SOME/IP header
   55|  32.5k|		uint32_t length = be32toh(lengthBE);
   56|  32.5k|		if ((length < 8) || (length > dataLen - 8))
  ------------------
  |  Branch (56:7): [True: 56, False: 32.4k]
  |  Branch (56:23): [True: 1.39k, False: 31.0k]
  ------------------
   57|  1.45k|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   58|       |
   59|  31.0k|		if (data[12] != SOMEIP_PROTOCOL_VERSION)
  ------------------
  |  Branch (59:7): [True: 13, False: 31.0k]
  ------------------
   60|     13|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   61|       |
   62|  31.0k|		someiphdr* hdr = (someiphdr*)data;
   63|       |
   64|  31.0k|		switch (static_cast<MsgType>(hdr->msgType & ~(uint8_t)MsgType::TP_REQUEST))
   65|  31.0k|		{
   66|    189|		case MsgType::REQUEST:
  ------------------
  |  Branch (66:3): [True: 189, False: 30.8k]
  ------------------
   67|    189|		case MsgType::REQUEST_ACK:
  ------------------
  |  Branch (67:3): [True: 0, False: 31.0k]
  ------------------
   68|  3.46k|		case MsgType::REQUEST_NO_RETURN:
  ------------------
  |  Branch (68:3): [True: 3.27k, False: 27.7k]
  ------------------
   69|  3.46k|		case MsgType::REQUEST_NO_RETURN_ACK:
  ------------------
  |  Branch (69:3): [True: 0, False: 31.0k]
  ------------------
   70|  28.1k|		case MsgType::NOTIFICATION:
  ------------------
  |  Branch (70:3): [True: 24.6k, False: 6.37k]
  ------------------
   71|  28.2k|		case MsgType::NOTIFICATION_ACK:
  ------------------
  |  Branch (71:3): [True: 128, False: 30.9k]
  ------------------
   72|  28.2k|		case MsgType::RESPONSE:
  ------------------
  |  Branch (72:3): [True: 0, False: 31.0k]
  ------------------
   73|  28.3k|		case MsgType::RESPONSE_ACK:
  ------------------
  |  Branch (73:3): [True: 18, False: 31.0k]
  ------------------
   74|  28.3k|		case MsgType::ERRORS:
  ------------------
  |  Branch (74:3): [True: 14, False: 31.0k]
  ------------------
   75|  31.0k|		case MsgType::ERROR_ACK:
  ------------------
  |  Branch (75:3): [True: 2.74k, False: 28.3k]
  ------------------
   76|  31.0k|			break;
   77|      7|		default:
  ------------------
  |  Branch (77:3): [True: 7, False: 31.0k]
  ------------------
   78|      7|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   79|  31.0k|		}
   80|       |
   81|  31.0k|		if (be16toh(hdr->serviceID) == 0xFFFF && be16toh(hdr->methodID) == 0x8100 &&
  ------------------
  |  Branch (81:7): [True: 29.7k, False: 1.32k]
  |  Branch (81:44): [True: 26.7k, False: 2.94k]
  ------------------
   82|  26.7k|		    SomeIpSdLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (82:7): [True: 21.1k, False: 5.59k]
  ------------------
   83|  21.1k|		{
   84|  21.1k|			return new SomeIpSdLayer(data, dataLen, prevLayer, packet);
   85|  21.1k|		}
   86|  9.87k|		else if ((hdr->msgType & (uint8_t)SomeIpLayer::MsgType::TP_REQUEST) != 0)
  ------------------
  |  Branch (86:12): [True: 2.35k, False: 7.51k]
  ------------------
   87|  2.35k|		{
   88|  2.35k|			return new SomeIpTpLayer(data, dataLen, prevLayer, packet);
   89|  2.35k|		}
   90|  7.51k|		else
   91|  7.51k|		{
   92|  7.51k|			return new SomeIpLayer(data, dataLen, prevLayer, packet);
   93|  7.51k|		}
   94|  31.0k|	}
_ZN4pcpp11SomeIpLayer12isSomeIpPortEt:
   97|   356k|	{
   98|   356k|		return SomeIpSdLayer::isSomeIpSdPort(port) ||
  ------------------
  |  Branch (98:10): [True: 31.1k, False: 325k]
  ------------------
   99|   325k|		       std::any_of(m_SomeIpPorts.begin(), m_SomeIpPorts.end(),
  ------------------
  |  Branch (99:10): [True: 0, False: 325k]
  ------------------
  100|   325k|		                   [&](const uint16_t& someIpPort) { return someIpPort == port; });
  101|   356k|	}
_ZNK4pcpp11SomeIpLayer12getServiceIDEv:
  138|  2.61k|	{
  139|       |		return be16toh(getSomeIpHeader()->serviceID);
  140|  2.61k|	}
_ZNK4pcpp11SomeIpLayer11getMethodIDEv:
  148|  2.61k|	{
  149|       |		return be16toh(getSomeIpHeader()->methodID);
  150|  2.61k|	}
_ZNK4pcpp11SomeIpLayer14getLengthFieldEv:
  158|  38.1k|	{
  159|       |		return be32toh(getSomeIpHeader()->length);
  160|  38.1k|	}
_ZNK4pcpp11SomeIpLayer19getMessageTypeAsIntEv:
  227|    299|	{
  228|    299|		return getSomeIpHeader()->msgType;
  229|    299|	}
_ZN4pcpp11SomeIpLayer14setMessageTypeEh:
  237|    299|	{
  238|    299|		getSomeIpHeader()->msgType = type;
  239|    299|	}
_ZN4pcpp11SomeIpLayer14parseNextLayerEv:
  259|  31.0k|	{
  260|  31.0k|		size_t headerLen = getHeaderLen();
  261|  31.0k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (261:7): [True: 13.8k, False: 17.2k]
  ------------------
  262|  13.8k|			return;
  263|       |
  264|  17.2k|		uint8_t* payload = m_Data + headerLen;
  265|  17.2k|		size_t payloadLen = m_DataLen - headerLen;
  266|       |
  267|  17.2k|		constructNextLayerFromFactory(parseSomeIpLayer, payload, payloadLen);
  268|  17.2k|	}
_ZNK4pcpp11SomeIpLayer8toStringEv:
  271|  2.01k|	{
  272|  2.01k|		std::stringstream dataStream;
  273|       |
  274|  2.01k|		dataStream << "SOME/IP Layer" << std::hex << ", Service ID: 0x" << getServiceID() << ", Method ID: 0x"
  275|  2.01k|		           << getMethodID() << std::dec << ", Length: " << getLengthField();
  276|       |
  277|  2.01k|		return dataStream.str();
  278|  2.01k|	}
_ZN4pcpp13SomeIpTpLayer22computeCalculateFieldsEv:
  346|    299|	{
  347|    299|		setMessageType(setTpFlag(getMessageTypeAsInt()));
  348|    299|	}
_ZNK4pcpp13SomeIpTpLayer8toStringEv:
  351|    598|	{
  352|    598|		std::stringstream dataStream;
  353|       |
  354|    598|		dataStream << "SOME/IP-TP Layer" << std::hex << ", Service ID: 0x" << getServiceID() << ", Method ID: 0x"
  355|    598|		           << getMethodID() << std::dec << ", Length: " << getLengthField();
  356|       |
  357|    598|		return dataStream.str();
  358|    598|	}
_ZN4pcpp13SomeIpTpLayer9setTpFlagEh:
  361|    299|	{
  362|    299|		return messageType | (uint8_t)SomeIpLayer::MsgType::TP_REQUEST;
  363|    299|	}

_ZN4pcpp14SomeIpSdOptionD2Ev:
   14|  4.66k|	{
   15|  4.66k|		if (m_ShadowData != nullptr)
  ------------------
  |  Branch (15:7): [True: 0, False: 4.66k]
  ------------------
   16|      0|			delete[] m_ShadowData;
   17|  4.66k|	}
_ZNK4pcpp14SomeIpSdOption7getTypeEv:
   20|  2.59k|	{
   21|  2.59k|		return static_cast<OptionType>(getSomeIpSdOptionHeader()->type);
   22|  2.59k|	}
_ZNK4pcpp14SomeIpSdOption10getDataPtrEv:
   25|  7.70k|	{
   26|  7.70k|		if (m_DataContainer != nullptr)
  ------------------
  |  Branch (26:7): [True: 7.70k, False: 0]
  ------------------
   27|  7.70k|			return m_DataContainer->getDataPtr(m_Offset);
   28|       |
   29|      0|		return m_ShadowData;
   30|  7.70k|	}
_ZNK4pcpp14SomeIpSdOption23getSomeIpSdOptionHeaderEv:
   33|  2.88k|	{
   34|  2.88k|		return (someipsdhdroptionsbase*)getDataPtr();
   35|  2.88k|	}
_ZN4pcpp18SomeIpSdIPv4OptionC2EPKNS_14IDataContainerEm:
   75|  1.67k|	    : SomeIpSdOption(dataContainer, offset)
   76|  1.67k|	{
   77|  1.67k|		m_DataLen = sizeof(someipsdhdroptionsipv4);
   78|  1.67k|	}
_ZNK4pcpp18SomeIpSdIPv4Option12getIpAddressEv:
   81|    844|	{
   82|    844|		someipsdhdroptionsipv4* hdr = (someipsdhdroptionsipv4*)getDataPtr();
   83|    844|		IPv4Address ipAddr(hdr->ipv4Address);
   84|       |
   85|    844|		return ipAddr;
   86|    844|	}
_ZNK4pcpp18SomeIpSdIPv4Option7getPortEv:
   89|    844|	{
   90|    844|		someipsdhdroptionsipv4* hdr = (someipsdhdroptionsipv4*)getDataPtr();
   91|       |		return be16toh(hdr->portNumber);
   92|    844|	}
_ZNK4pcpp18SomeIpSdIPv4Option11getProtocolEv:
   95|    844|	{
   96|    844|		someipsdhdroptionsipv4* hdr = (someipsdhdroptionsipv4*)getDataPtr();
   97|    844|		return hdr->l4Protocol;
   98|    844|	}
_ZN4pcpp18SomeIpSdIPv6OptionC2EPKNS_14IDataContainerEm:
  129|  1.27k|	    : SomeIpSdOption(dataContainer, offset)
  130|  1.27k|	{
  131|  1.27k|		m_DataLen = sizeof(someipsdhdroptionsipv6);
  132|  1.27k|	}
_ZNK4pcpp18SomeIpSdIPv6Option12getIpAddressEv:
  135|    763|	{
  136|    763|		someipsdhdroptionsipv6* hdr = (someipsdhdroptionsipv6*)getDataPtr();
  137|    763|		IPv6Address ipAddr(hdr->ipv6Address);
  138|       |
  139|    763|		return ipAddr;
  140|    763|	}
_ZNK4pcpp18SomeIpSdIPv6Option7getPortEv:
  143|    763|	{
  144|    763|		someipsdhdroptionsipv6* hdr = (someipsdhdroptionsipv6*)getDataPtr();
  145|       |		return be16toh(hdr->portNumber);
  146|    763|	}
_ZNK4pcpp18SomeIpSdIPv6Option11getProtocolEv:
  149|    763|	{
  150|    763|		someipsdhdroptionsipv6* hdr = (someipsdhdroptionsipv6*)getDataPtr();
  151|    763|		return hdr->l4Protocol;
  152|    763|	}
_ZN4pcpp27SomeIpSdConfigurationOptionC2EPKNS_14IDataContainerEm:
  168|    294|	    : SomeIpSdOption(dataContainer, offset)
  169|    294|	{
  170|       |		m_DataLen = sizeof(someipsdhdroptionsbase) - 1 + be16toh(getSomeIpSdOptionHeader()->length);
  171|    294|	}
_ZN4pcpp27SomeIpSdLoadBalancingOptionC2EPKNS_14IDataContainerEm:
  195|  1.42k|	    : SomeIpSdOption(dataContainer, offset)
  196|  1.42k|	{
  197|  1.42k|		m_DataLen = sizeof(someipsdhdroptionsload);
  198|  1.42k|	}
_ZN4pcpp13SomeIpSdEntryC2EPKNS_13SomeIpSdLayerEm:
  230|  3.10k|	    : m_Layer(pSomeIpSdLayer), m_Offset(offset), m_ShadowData(nullptr)
  231|  3.10k|	{
  232|  3.10k|		EntryType entryType;
  233|       |
  234|  3.10k|		someipsdhdrentry* hdr = getSomeIpSdEntryHeader();
  235|  3.10k|		TypeInternal internalType = static_cast<TypeInternal>(hdr->type);
  236|  3.10k|		auto ttl = getTtl();
  237|       |
  238|  3.10k|		switch (internalType)
  239|  3.10k|		{
  240|    327|		case SomeIpSdEntry::TypeInternal::FindService_Internal:
  ------------------
  |  Branch (240:3): [True: 327, False: 2.77k]
  ------------------
  241|    327|			entryType = SomeIpSdEntry::EntryType::FindService;
  242|    327|			break;
  243|  1.91k|		case SomeIpSdEntry::TypeInternal::OfferService_Internal:
  ------------------
  |  Branch (243:3): [True: 1.91k, False: 1.19k]
  ------------------
  244|  1.91k|			if (ttl == 0)
  ------------------
  |  Branch (244:8): [True: 285, False: 1.62k]
  ------------------
  245|    285|			{
  246|    285|				entryType = EntryType::StopOfferService;
  247|    285|			}
  248|  1.62k|			else
  249|  1.62k|			{
  250|  1.62k|				entryType = EntryType::OfferService;
  251|  1.62k|			}
  252|  1.91k|			break;
  253|      0|		case SomeIpSdEntry::TypeInternal::SubscribeEventgroup_Internal:
  ------------------
  |  Branch (253:3): [True: 0, False: 3.10k]
  ------------------
  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|    295|		case SomeIpSdEntry::TypeInternal::SubscribeEventgroupAck_Internal:
  ------------------
  |  Branch (263:3): [True: 295, False: 2.81k]
  ------------------
  264|    295|			if (ttl == 0)
  ------------------
  |  Branch (264:8): [True: 118, False: 177]
  ------------------
  265|    118|			{
  266|    118|				entryType = EntryType::SubscribeEventgroupNack;
  267|    118|			}
  268|    177|			else
  269|    177|			{
  270|    177|				entryType = EntryType::SubscribeEventgroupAck;
  271|    177|			}
  272|    295|			break;
  273|    574|		default:
  ------------------
  |  Branch (273:3): [True: 574, False: 2.53k]
  ------------------
  274|    574|			entryType = EntryType::UnknownEntryType;
  275|    574|			break;
  276|  3.10k|		}
  277|       |
  278|  3.10k|		m_EntryType = entryType;
  279|  3.10k|	}
_ZN4pcpp13SomeIpSdEntryD2Ev:
  282|  3.10k|	{
  283|  3.10k|		if (m_ShadowData != nullptr)
  ------------------
  |  Branch (283:7): [True: 0, False: 3.10k]
  ------------------
  284|      0|			delete[] m_ShadowData;
  285|  3.10k|	}
_ZNK4pcpp13SomeIpSdEntry10getDataPtrEv:
  288|  27.9k|	{
  289|  27.9k|		if (m_Layer != nullptr)
  ------------------
  |  Branch (289:7): [True: 27.9k, False: 0]
  ------------------
  290|  27.9k|			return m_Layer->getDataPtr(m_Offset);
  291|       |
  292|      0|		return m_ShadowData;
  293|  27.9k|	}
_ZNK4pcpp13SomeIpSdEntry22getSomeIpSdEntryHeaderEv:
  296|  27.9k|	{
  297|  27.9k|		return (someipsdhdrentry*)getDataPtr();
  298|  27.9k|	}
_ZNK4pcpp13SomeIpSdEntry13getNumOptionsEv:
  301|  3.10k|	{
  302|  3.10k|		auto* hdr = getSomeIpSdEntryHeader();
  303|  3.10k|		return hdr->nrOpt1 + hdr->nrOpt2;
  304|  3.10k|	}
_ZNK4pcpp13SomeIpSdEntry12getServiceIdEv:
  307|  3.10k|	{
  308|       |		return be16toh(getSomeIpSdEntryHeader()->serviceID);
  309|  3.10k|	}
_ZNK4pcpp13SomeIpSdEntry13getInstanceIdEv:
  317|  3.10k|	{
  318|       |		return be16toh(getSomeIpSdEntryHeader()->instanceID);
  319|  3.10k|	}
_ZNK4pcpp13SomeIpSdEntry15getMajorVersionEv:
  327|  3.10k|	{
  328|       |		return (be32toh(getSomeIpSdEntryHeader()->majorVersion_ttl) & ~SOMEIPSD_HDR_ENTRY_MASK_TTL) >> 24;
  329|  3.10k|	}
_ZNK4pcpp13SomeIpSdEntry6getTtlEv:
  339|  3.10k|	{
  340|       |		return be32toh(getSomeIpSdEntryHeader()->majorVersion_ttl) & SOMEIPSD_HDR_ENTRY_MASK_TTL;
  341|  3.10k|	}
_ZNK4pcpp13SomeIpSdEntry15getMinorVersionEv:
  352|  3.10k|	{
  353|       |		return be32toh(getSomeIpSdEntryHeader()->data);
  354|  3.10k|	}
_ZNK4pcpp13SomeIpSdEntry10getCounterEv:
  362|  3.10k|	{
  363|       |		return (uint8_t)((be32toh(getSomeIpSdEntryHeader()->data) >> 16) & 0x0F);
  364|  3.10k|	}
_ZNK4pcpp13SomeIpSdEntry15getEventgroupIdEv:
  373|  3.10k|	{
  374|       |		return (uint16_t)(be32toh(getSomeIpSdEntryHeader()->data) & 0x0000FFFF);
  375|  3.10k|	}
_ZN4pcpp13SomeIpSdLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  433|  21.1k|	    : SomeIpLayer(data, dataLen, prevLayer, packet)
  434|  21.1k|	{
  435|  21.1k|		countOptions(m_NumOptions, data);
  436|  21.1k|	}
_ZNK4pcpp13SomeIpSdLayer8getFlagsEv:
  461|  3.15k|	{
  462|  3.15k|		someipsdhdr* hdr = (someipsdhdr*)m_Data;
  463|  3.15k|		return hdr->flags;
  464|  3.15k|	}
_ZNK4pcpp13SomeIpSdLayer13getNumEntriesEv:
  473|  9.41k|	{
  474|  9.41k|		return (uint32_t)(getLenEntries() / sizeof(SomeIpSdEntry::someipsdhdrentry));
  475|  9.41k|	}
_ZNK4pcpp13SomeIpSdLayer13getNumOptionsEv:
  478|  6.30k|	{
  479|  6.30k|		return m_NumOptions;
  480|  6.30k|	}
_ZNK4pcpp13SomeIpSdLayer10getEntriesEv:
  483|  3.15k|	{
  484|  3.15k|		size_t remainingLen = getLenEntries();
  485|  3.15k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t);
  486|       |
  487|  3.15k|		EntriesVec vecEntries;
  488|  3.15k|		EntryPtr entry;
  489|       |
  490|  6.26k|		while (remainingLen > 0)
  ------------------
  |  Branch (490:10): [True: 3.20k, False: 3.05k]
  ------------------
  491|  3.20k|		{
  492|       |			// Ensure there is enough remaining length for a new entry
  493|  3.20k|			if (remainingLen < sizeof(SomeIpSdEntry::someipsdhdrentry))
  ------------------
  |  Branch (493:8): [True: 101, False: 3.10k]
  ------------------
  494|    101|			{
  495|    101|				break;
  496|    101|			}
  497|  3.10k|			entry = new SomeIpSdEntry(this, offset);
  498|       |
  499|  3.10k|			size_t entryLen = entry->getLength();
  500|  3.10k|			remainingLen -= entryLen;
  501|  3.10k|			offset += entryLen;
  502|       |
  503|  3.10k|			vecEntries.push_back(entry);
  504|  3.10k|		}
  505|       |
  506|  3.15k|		return vecEntries;
  507|  3.15k|	};
_ZNK4pcpp13SomeIpSdLayer10getOptionsEv:
  510|  3.15k|	{
  511|  3.15k|		OptionsVec vecOptions;
  512|  3.15k|		OptionPtr option;
  513|       |
  514|  3.15k|		size_t remainingLen = getLenOptions();
  515|  3.15k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries() + sizeof(uint32_t);
  516|       |
  517|  6.74k|		while (remainingLen > 0)
  ------------------
  |  Branch (517:10): [True: 3.59k, False: 3.15k]
  ------------------
  518|  3.59k|		{
  519|  3.59k|			SomeIpSdOption::someipsdhdroptionsbase* hdr = (SomeIpSdOption::someipsdhdroptionsbase*)(m_Data + offset);
  520|  3.59k|			SomeIpSdOption::OptionType optionType = static_cast<SomeIpSdOption::OptionType>(hdr->type);
  521|       |
  522|  3.59k|			option = parseOption(optionType, offset);
  523|       |
  524|  3.59k|			if (option != nullptr)
  ------------------
  |  Branch (524:8): [True: 2.59k, False: 1.00k]
  ------------------
  525|  2.59k|			{
  526|  2.59k|				vecOptions.push_back(std::move(option));
  527|  2.59k|			}
  528|       |
  529|  3.59k|			size_t optionLen = be16toh(hdr->length) + 3;
  530|  3.59k|			remainingLen -= optionLen;
  531|  3.59k|			offset += optionLen;
  532|  3.59k|		}
  533|       |
  534|  3.15k|		return vecOptions;
  535|  3.15k|	}
_ZNK4pcpp13SomeIpSdLayer19getOptionsFromEntryEj:
  538|  3.10k|	{
  539|  3.10k|		OptionsVec vecOptions;
  540|  3.10k|		OptionPtr option;
  541|       |
  542|  3.10k|		if (index >= getNumEntries())
  ------------------
  |  Branch (542:7): [True: 0, False: 3.10k]
  ------------------
  543|      0|			return vecOptions;
  544|       |
  545|  3.10k|		size_t remainingLen = getLenOptions();
  546|  3.10k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries() + sizeof(uint32_t);
  547|       |
  548|  3.10k|		size_t offsetToEntry = sizeof(someipsdhdr) + sizeof(uint32_t) + index * sizeof(SomeIpSdEntry::someipsdhdrentry);
  549|  3.10k|		SomeIpSdEntry::someipsdhdrentry* hdrEntry = (SomeIpSdEntry::someipsdhdrentry*)(m_Data + offsetToEntry);
  550|  3.10k|		uint8_t startIdxRun1 = hdrEntry->indexFirstOption;
  551|  3.10k|		uint8_t lenRun1 = hdrEntry->nrOpt1;
  552|  3.10k|		uint8_t startIdxRun2 = hdrEntry->indexSecondOption;
  553|  3.10k|		uint8_t lenRun2 = hdrEntry->nrOpt2;
  554|       |
  555|  3.10k|		int idx = 0;
  556|       |
  557|  6.70k|		while (remainingLen > 0)
  ------------------
  |  Branch (557:10): [True: 3.59k, False: 3.10k]
  ------------------
  558|  3.59k|		{
  559|  3.59k|			SomeIpSdOption::someipsdhdroptionsbase* hdrOption =
  560|  3.59k|			    (SomeIpSdOption::someipsdhdroptionsbase*)(m_Data + offset);
  561|       |
  562|  3.59k|			if (((idx >= startIdxRun1) && (idx < (startIdxRun1 + lenRun1))) ||
  ------------------
  |  Branch (562:9): [True: 2.39k, False: 1.19k]
  |  Branch (562:34): [True: 2.24k, False: 154]
  ------------------
  563|  1.34k|			    ((idx >= startIdxRun2) && (idx < (startIdxRun2 + lenRun2))))
  ------------------
  |  Branch (563:9): [True: 527, False: 822]
  |  Branch (563:34): [True: 199, False: 328]
  ------------------
  564|  2.44k|			{
  565|  2.44k|				SomeIpSdOption::OptionType optionType = static_cast<SomeIpSdOption::OptionType>(hdrOption->type);
  566|       |
  567|  2.44k|				option = parseOption(optionType, offset);
  568|       |
  569|  2.44k|				if (option != nullptr)
  ------------------
  |  Branch (569:9): [True: 2.06k, False: 377]
  ------------------
  570|  2.06k|				{
  571|  2.06k|					vecOptions.push_back(std::move(option));
  572|  2.06k|				}
  573|  2.44k|			}
  574|       |
  575|  3.59k|			size_t optionLen = be16toh(hdrOption->length) + 3;
  576|  3.59k|			remainingLen -= optionLen;
  577|  3.59k|			offset += optionLen;
  578|  3.59k|			++idx;
  579|  3.59k|		}
  580|       |
  581|  3.10k|		return vecOptions;
  582|  3.10k|	}
_ZNK4pcpp13SomeIpSdLayer8toStringEv:
  608|  6.30k|	{
  609|  6.30k|		std::stringstream dataStream;
  610|       |
  611|  6.30k|		dataStream << "SOME/IP-SD Layer, " << getNumEntries() << " entries, " << getNumOptions() << " options";
  612|       |
  613|  6.30k|		return dataStream.str();
  614|  6.30k|	}
_ZN4pcpp13SomeIpSdLayer11isDataValidEPKhm:
  634|  26.7k|	{
  635|  26.7k|		uint32_t count;
  636|  26.7k|		if (!data || dataLen < sizeof(someipsdhdr) + sizeof(uint32_t) ||
  ------------------
  |  Branch (636:7): [True: 0, False: 26.7k]
  |  Branch (636:16): [True: 0, False: 26.7k]
  ------------------
  637|  26.7k|		    dataLen < sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t) ||
  ------------------
  |  Branch (637:7): [True: 2.37k, False: 24.4k]
  ------------------
  638|  24.4k|		    dataLen <
  ------------------
  |  Branch (638:7): [True: 216, False: 24.2k]
  ------------------
  639|  24.4k|		        sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t) + getLenOptions(data) ||
  640|  24.2k|		    !countOptions(count, data))
  ------------------
  |  Branch (640:7): [True: 3.01k, False: 21.1k]
  ------------------
  641|  5.59k|		{
  642|  5.59k|			return false;
  643|  5.59k|		}
  644|       |
  645|  21.1k|		return true;
  646|  26.7k|	}
_ZN4pcpp13SomeIpSdLayer12countOptionsERjPKh:
  649|  45.3k|	{
  650|  45.3k|		size_t offsetOption = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t);
  651|  45.3k|		size_t lenOptions = getLenOptions(data);
  652|  45.3k|		uint32_t len = 0;
  653|       |
  654|  45.3k|		count = 0;
  655|  92.1k|		while (len < lenOptions)
  ------------------
  |  Branch (655:10): [True: 49.7k, False: 42.3k]
  ------------------
  656|  49.7k|		{
  657|  49.7k|			if (len + sizeof(uint16_t) + 3 * sizeof(uint8_t) > lenOptions)
  ------------------
  |  Branch (657:8): [True: 0, False: 49.7k]
  ------------------
  658|      0|				return false;
  659|       |
  660|  49.7k|			uint32_t lenOption = be16toh(*((uint16_t*)(data + offsetOption + len))) + 3 * sizeof(uint8_t);
  661|  49.7k|			len += lenOption;
  662|  49.7k|			if (len > lenOptions)  // the last one must be equal to lenOptions
  ------------------
  |  Branch (662:8): [True: 3.01k, False: 46.7k]
  ------------------
  663|  3.01k|				return false;
  664|       |
  665|  46.7k|			++(count);
  666|  46.7k|		}
  667|  42.3k|		return true;
  668|  45.3k|	}
_ZNK4pcpp13SomeIpSdLayer11parseOptionENS_14SomeIpSdOption10OptionTypeEm:
  760|  6.03k|	{
  761|  6.03k|		switch (type)
  762|  6.03k|		{
  763|  1.19k|		case SomeIpSdOption::OptionType::IPv4Endpoint:
  ------------------
  |  Branch (763:3): [True: 1.19k, False: 4.84k]
  ------------------
  764|  1.36k|		case SomeIpSdOption::OptionType::IPv4Multicast:
  ------------------
  |  Branch (764:3): [True: 170, False: 5.86k]
  ------------------
  765|  1.67k|		case SomeIpSdOption::OptionType::IPv4SdEndpoint:
  ------------------
  |  Branch (765:3): [True: 312, False: 5.72k]
  ------------------
  766|  1.67k|		{
  767|  1.67k|			return new SomeIpSdIPv4Option(this, offset);
  768|  1.36k|		}
  769|     32|		case SomeIpSdOption::OptionType::IPv6Endpoint:
  ------------------
  |  Branch (769:3): [True: 32, False: 6.00k]
  ------------------
  770|    294|		case SomeIpSdOption::OptionType::IPv6Multicast:
  ------------------
  |  Branch (770:3): [True: 262, False: 5.77k]
  ------------------
  771|  1.27k|		case SomeIpSdOption::OptionType::IPv6SdEndpoint:
  ------------------
  |  Branch (771:3): [True: 976, False: 5.06k]
  ------------------
  772|  1.27k|		{
  773|  1.27k|			return new SomeIpSdIPv6Option(this, offset);
  774|    294|		}
  775|    294|		case SomeIpSdOption::OptionType::ConfigurationString:
  ------------------
  |  Branch (775:3): [True: 294, False: 5.74k]
  ------------------
  776|    294|		{
  777|    294|			return new SomeIpSdConfigurationOption(this, offset);
  778|    294|		}
  779|  1.42k|		case SomeIpSdOption::OptionType::LoadBalancing:
  ------------------
  |  Branch (779:3): [True: 1.42k, False: 4.61k]
  ------------------
  780|  1.42k|		{
  781|  1.42k|			return new SomeIpSdLoadBalancingOption(this, offset);
  782|    294|		}
  783|  1.37k|		default:
  ------------------
  |  Branch (783:3): [True: 1.37k, False: 4.66k]
  ------------------
  784|  1.37k|			break;
  785|  6.03k|		}
  786|  1.37k|		return nullptr;
  787|  6.03k|	}
_ZNK4pcpp13SomeIpSdLayer13getLenEntriesEv:
  790|  18.8k|	{
  791|  18.8k|		return getLenEntries(m_Data);
  792|  18.8k|	}
_ZN4pcpp13SomeIpSdLayer13getLenEntriesEPKh:
  795|   191k|	{
  796|       |		return be32toh(*((uint32_t*)(data + sizeof(someipsdhdr))));
  797|   191k|	}
_ZNK4pcpp13SomeIpSdLayer13getLenOptionsEv:
  800|  6.26k|	{
  801|  6.26k|		return getLenOptions(m_Data);
  802|  6.26k|	}
_ZN4pcpp13SomeIpSdLayer13getLenOptionsEPKh:
  805|  76.0k|	{
  806|       |		return be32toh(*((uint32_t*)(data + sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data))));
  807|  76.0k|	}

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

_ZN4pcpp16TcpOptionBuilderC2ENS0_20NopEolOptionEnumTypeE:
   54|  86.6k|	{
   55|  86.6k|		switch (optionType)
   56|  86.6k|		{
   57|      0|		case NopEolOptionEnumType::Eol:
  ------------------
  |  Branch (57:3): [True: 0, False: 86.6k]
  ------------------
   58|      0|			init(static_cast<uint8_t>(TcpOptionEnumType::Eol), nullptr, 0);
   59|      0|			break;
   60|  86.6k|		case NopEolOptionEnumType::Nop:
  ------------------
  |  Branch (60:3): [True: 86.6k, False: 0]
  ------------------
   61|  86.6k|		default:
  ------------------
  |  Branch (61:3): [True: 0, False: 86.6k]
  ------------------
   62|  86.6k|			init(static_cast<uint8_t>(TcpOptionEnumType::Nop), nullptr, 0);
   63|  86.6k|			break;
   64|  86.6k|		}
   65|  86.6k|	}
_ZNK4pcpp16TcpOptionBuilder5buildEv:
   68|  54.3k|	{
   69|  54.3k|		uint8_t recType = static_cast<uint8_t>(m_RecType);
   70|  54.3k|		size_t optionSize = m_RecValueLen + 2 * sizeof(uint8_t);
   71|       |
   72|  54.3k|		if (recType == static_cast<uint8_t>(TcpOptionEnumType::Eol) ||
  ------------------
  |  Branch (72:7): [True: 0, False: 54.3k]
  ------------------
   73|  54.3k|		    recType == static_cast<uint8_t>(TcpOptionEnumType::Nop))
  ------------------
  |  Branch (73:7): [True: 54.3k, False: 0]
  ------------------
   74|  54.3k|		{
   75|  54.3k|			if (m_RecValueLen != 0)
  ------------------
  |  Branch (75:8): [True: 0, False: 54.3k]
  ------------------
   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.3k|			optionSize = 1;
   84|  54.3k|		}
   85|       |
   86|  54.3k|		uint8_t* recordBuffer = new uint8_t[optionSize];
   87|  54.3k|		memset(recordBuffer, 0, optionSize);
   88|  54.3k|		recordBuffer[0] = recType;
   89|  54.3k|		if (optionSize > 1)
  ------------------
  |  Branch (89:7): [True: 0, False: 54.3k]
  ------------------
   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.3k|		return TcpOption(recordBuffer);
   97|  54.3k|	}
_ZNK4pcpp8TcpLayer10getSrcPortEv:
  104|   567k|	{
  105|       |		return be16toh(getTcpHeader()->portSrc);
  106|   567k|	}
_ZNK4pcpp8TcpLayer10getDstPortEv:
  109|   567k|	{
  110|       |		return be16toh(getTcpHeader()->portDst);
  111|   567k|	}
_ZNK4pcpp8TcpLayer12getTcpOptionENS_17TcpOptionEnumTypeE:
  114|  86.6k|	{
  115|  86.6k|		return m_OptionReader.getTLVRecord(static_cast<uint8_t>(option), getOptionsBasePtr(),
  116|  86.6k|		                                   getHeaderLen() - sizeof(tcphdr));
  117|  86.6k|	}
_ZNK4pcpp8TcpLayer17getFirstTcpOptionEv:
  120|  54.3k|	{
  121|  54.3k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(tcphdr));
  122|  54.3k|	}
_ZNK4pcpp8TcpLayer16getNextTcpOptionERNS_9TcpOptionE:
  125|   173k|	{
  126|   173k|		TcpOption nextOpt =
  127|   173k|		    m_OptionReader.getNextTLVRecord(tcpOption, getOptionsBasePtr(), getHeaderLen() - sizeof(tcphdr));
  128|   173k|		if (nextOpt.isNotNull() && nextOpt.getType() == TCPOPT_DUMMY)
  ------------------
  |  |   33|   118k|#define TCPOPT_DUMMY 0xff
  ------------------
  |  Branch (128:7): [True: 118k, False: 54.2k]
  |  Branch (128:30): [True: 66, False: 118k]
  ------------------
  129|     66|			return TcpOption(nullptr);
  130|       |
  131|   173k|		return nextOpt;
  132|   173k|	}
_ZN4pcpp8TcpLayer20insertTcpOptionAfterERKNS_16TcpOptionBuilderENS_17TcpOptionEnumTypeE:
  146|  86.6k|	{
  147|  86.6k|		int offset = 0;
  148|       |
  149|  86.6k|		if (prevOptionType == TcpOptionEnumType::Unknown)
  ------------------
  |  Branch (149:7): [True: 0, False: 86.6k]
  ------------------
  150|      0|		{
  151|      0|			offset = sizeof(tcphdr);
  152|      0|		}
  153|  86.6k|		else
  154|  86.6k|		{
  155|  86.6k|			const TcpOption prevOpt = getTcpOption(prevOptionType);
  156|  86.6k|			if (prevOpt.isNull())
  ------------------
  |  Branch (156:8): [True: 32.2k, False: 54.3k]
  ------------------
  157|  32.2k|			{
  158|  32.2k|				PCPP_LOG_ERROR("Previous option of type " << static_cast<int>(prevOptionType)
  ------------------
  |  |  443|  32.2k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  32.2k|	do                                                                                                                 \
  |  |  |  |  413|  32.2k|	{                                                                                                                  \
  |  |  |  |  414|  32.2k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  32.2k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  32.2k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 32.2k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  32.2k|		{                                                                                                              \
  |  |  |  |  417|  32.2k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  32.2k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  32.2k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  32.2k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  32.2k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  32.2k|		}                                                                                                              \
  |  |  |  |  422|  32.2k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 32.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  159|  32.2k|				                                          << " not found, cannot add a new TCP option");
  160|  32.2k|				return TcpOption(nullptr);
  161|  32.2k|			}
  162|       |
  163|  54.3k|			offset = prevOpt.getRecordBasePtr() + prevOpt.getTotalSize() - m_Data;
  164|  54.3k|		}
  165|       |
  166|  54.3k|		return addTcpOptionAt(optionBuilder, offset);
  167|  86.6k|	}
_ZN4pcpp8TcpLayer14addTcpOptionAtERKNS_16TcpOptionBuilderEi:
  215|  54.3k|	{
  216|  54.3k|		TcpOption newOption = optionBuilder.build();
  217|  54.3k|		if (newOption.isNull())
  ------------------
  |  Branch (217:7): [True: 0, False: 54.3k]
  ------------------
  218|      0|			return newOption;
  219|       |
  220|       |		// calculate total TCP option size
  221|  54.3k|		TcpOption curOpt = getFirstTcpOption();
  222|  54.3k|		size_t totalOptSize = 0;
  223|   227k|		while (!curOpt.isNull())
  ------------------
  |  Branch (223:10): [True: 173k, False: 54.3k]
  ------------------
  224|   173k|		{
  225|   173k|			totalOptSize += curOpt.getTotalSize();
  226|   173k|			curOpt = getNextTcpOption(curOpt);
  227|   173k|		}
  228|  54.3k|		totalOptSize += newOption.getTotalSize();
  229|       |
  230|  54.3k|		size_t sizeToExtend = newOption.getTotalSize();
  231|       |
  232|  54.3k|		if (!extendLayer(offset, sizeToExtend))
  ------------------
  |  Branch (232:7): [True: 0, False: 54.3k]
  ------------------
  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.3k|		memcpy(m_Data + offset, newOption.getRecordBasePtr(), newOption.getTotalSize());
  240|       |
  241|  54.3k|		newOption.purgeRecordData();
  242|       |
  243|  54.3k|		adjustTcpOptionTrailer(totalOptSize);
  244|       |
  245|  54.3k|		m_OptionReader.changeTLVRecordCount(1);
  246|       |
  247|  54.3k|		uint8_t* newOptPtr = m_Data + offset;
  248|       |
  249|  54.3k|		return TcpOption(newOptPtr);
  250|  54.3k|	}
_ZN4pcpp8TcpLayer22adjustTcpOptionTrailerEm:
  253|  54.3k|	{
  254|  54.3k|		int newNumberOfTrailingBytes = 0;
  255|   188k|		while ((totalOptSize + newNumberOfTrailingBytes) % 4 != 0)
  ------------------
  |  Branch (255:10): [True: 134k, False: 54.3k]
  ------------------
  256|   134k|			newNumberOfTrailingBytes++;
  257|       |
  258|  54.3k|		if (newNumberOfTrailingBytes < m_NumOfTrailingBytes)
  ------------------
  |  Branch (258:7): [True: 0, False: 54.3k]
  ------------------
  259|      0|			shortenLayer(sizeof(tcphdr) + totalOptSize, m_NumOfTrailingBytes - newNumberOfTrailingBytes - 1);
  260|  54.3k|		else if (newNumberOfTrailingBytes > m_NumOfTrailingBytes)
  ------------------
  |  Branch (260:12): [True: 46.3k, False: 7.95k]
  ------------------
  261|  46.3k|			extendLayer(sizeof(tcphdr) + totalOptSize, newNumberOfTrailingBytes - m_NumOfTrailingBytes);
  262|       |
  263|  54.3k|		m_NumOfTrailingBytes = newNumberOfTrailingBytes;
  264|       |
  265|   188k|		for (int i = 0; i < m_NumOfTrailingBytes; i++)
  ------------------
  |  Branch (265:19): [True: 134k, False: 54.3k]
  ------------------
  266|   134k|			m_Data[sizeof(tcphdr) + totalOptSize + i] = TCPOPT_DUMMY;
  ------------------
  |  |   33|   134k|#define TCPOPT_DUMMY 0xff
  ------------------
  267|       |
  268|  54.3k|		getTcpHeader()->dataOffset = (sizeof(tcphdr) + totalOptSize + m_NumOfTrailingBytes) / 4;
  269|  54.3k|	}
_ZN4pcpp8TcpLayer17calculateChecksumEb:
  272|  86.6k|	{
  273|  86.6k|		tcphdr* tcpHdr = getTcpHeader();
  274|  86.6k|		uint16_t checksumRes = 0;
  275|  86.6k|		const uint16_t currChecksumValue = tcpHdr->headerChecksum;
  276|       |
  277|  86.6k|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (277:7): [True: 86.6k, False: 0]
  ------------------
  278|  86.6k|		{
  279|  86.6k|			tcpHdr->headerChecksum = 0;
  280|  86.6k|			PCPP_LOG_DEBUG("TCP data len = " << m_DataLen);
  ------------------
  |  |  425|  86.6k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  86.6k|	do                                                                                                                 \
  |  |  |  |  413|  86.6k|	{                                                                                                                  \
  |  |  |  |  414|  86.6k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  86.6k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  86.6k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 86.6k]
  |  |  |  |  ------------------
  |  |  |  |  416|  86.6k|		{                                                                                                              \
  |  |  |  |  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|  86.6k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 86.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  281|       |
  282|  86.6k|			if (m_PrevLayer->getProtocol() == IPv4)
  ------------------
  |  Branch (282:8): [True: 71.7k, False: 14.8k]
  ------------------
  283|  71.7k|			{
  284|  71.7k|				const IPv4Address srcIP = static_cast<IPv4Layer*>(m_PrevLayer)->getSrcIPv4Address();
  285|  71.7k|				const IPv4Address dstIP = static_cast<IPv4Layer*>(m_PrevLayer)->getDstIPv4Address();
  286|       |
  287|  71.7k|				checksumRes =
  288|  71.7k|				    pcpp::computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(tcpHdr), getDataLen(),
  289|  71.7k|				                                   IPAddress::IPv4AddressType, PACKETPP_IPPROTO_TCP, srcIP, dstIP);
  290|       |
  291|  71.7k|				PCPP_LOG_DEBUG("calculated IPv4 TCP checksum = 0x" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  71.7k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  71.7k|	do                                                                                                                 \
  |  |  |  |  413|  71.7k|	{                                                                                                                  \
  |  |  |  |  414|  71.7k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  71.7k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  71.7k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 71.7k]
  |  |  |  |  ------------------
  |  |  |  |  416|  71.7k|		{                                                                                                              \
  |  |  |  |  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|  71.7k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 71.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  292|  71.7k|			}
  293|  14.8k|			else if (m_PrevLayer->getProtocol() == IPv6)
  ------------------
  |  Branch (293:13): [True: 14.8k, False: 0]
  ------------------
  294|  14.8k|			{
  295|  14.8k|				const IPv6Address srcIP = static_cast<IPv6Layer*>(m_PrevLayer)->getSrcIPv6Address();
  296|  14.8k|				const IPv6Address dstIP = static_cast<IPv6Layer*>(m_PrevLayer)->getDstIPv6Address();
  297|       |
  298|  14.8k|				checksumRes = computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(tcpHdr), getDataLen(),
  299|  14.8k|				                                       IPAddress::IPv6AddressType, PACKETPP_IPPROTO_TCP, srcIP, dstIP);
  300|       |
  301|  14.8k|				PCPP_LOG_DEBUG("calculated IPv6 TCP checksum = 0xX" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  14.8k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  14.8k|	do                                                                                                                 \
  |  |  |  |  413|  14.8k|	{                                                                                                                  \
  |  |  |  |  414|  14.8k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  14.8k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  14.8k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 14.8k]
  |  |  |  |  ------------------
  |  |  |  |  416|  14.8k|		{                                                                                                              \
  |  |  |  |  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|  14.8k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 14.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  302|  14.8k|			}
  303|  86.6k|		}
  304|       |
  305|  86.6k|		if (writeResultToPacket)
  ------------------
  |  Branch (305:7): [True: 86.6k, False: 0]
  ------------------
  306|  86.6k|			tcpHdr->headerChecksum = htobe16(checksumRes);
  307|      0|		else
  308|      0|			tcpHdr->headerChecksum = currChecksumValue;
  309|       |
  310|  86.6k|		return checksumRes;
  311|  86.6k|	}
_ZN4pcpp8TcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  324|   472k|	    : Layer(data, dataLen, prevLayer, packet, TCP)
  325|   472k|	{
  326|   472k|		m_NumOfTrailingBytes = 0;
  327|   472k|	}
_ZN4pcpp8TcpLayer13copyLayerDataERKS0_:
  342|  86.6k|	{
  343|  86.6k|		m_OptionReader = other.m_OptionReader;
  344|  86.6k|		m_NumOfTrailingBytes = other.m_NumOfTrailingBytes;
  345|  86.6k|	}
_ZN4pcpp8TcpLayerC2ERKS0_:
  347|  86.6k|	TcpLayer::TcpLayer(const TcpLayer& other) : Layer(other)
  348|  86.6k|	{
  349|  86.6k|		copyLayerData(other);
  350|  86.6k|	}
_ZN4pcpp8TcpLayer14parseNextLayerEv:
  362|   472k|	{
  363|   472k|		const size_t headerLen = getHeaderLen();
  364|   472k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (364:7): [True: 78.2k, False: 394k]
  ------------------
  365|  78.2k|			return;
  366|       |
  367|   394k|		uint8_t* payload = m_Data + headerLen;
  368|   394k|		const size_t payloadLen = m_DataLen - headerLen;
  369|   394k|		const uint16_t portDst = getDstPort();
  370|   394k|		const uint16_t portSrc = getSrcPort();
  371|   394k|		const char* payloadChar = reinterpret_cast<const char*>(payload);
  372|       |
  373|   394k|		if (HttpMessage::isHttpPort(portDst) &&
  ------------------
  |  Branch (373:7): [True: 15.3k, False: 378k]
  ------------------
  374|  15.3k|		    HttpRequestFirstLine::parseMethod(payloadChar, payloadLen) != HttpRequestLayer::HttpMethodUnknown)
  ------------------
  |  Branch (374:7): [True: 5.06k, False: 10.3k]
  ------------------
  375|  5.06k|		{
  376|  5.06k|			constructNextLayer<HttpRequestLayer>(payload, payloadLen, getAttachedPacket());
  377|  5.06k|		}
  378|   389k|		else if (HttpMessage::isHttpPort(portSrc) &&
  ------------------
  |  Branch (378:12): [True: 32.9k, False: 356k]
  |  Branch (378:12): [True: 11.5k, False: 377k]
  ------------------
  379|  32.9k|		         HttpResponseFirstLine::parseVersion(payloadChar, payloadLen) != HttpVersion::HttpVersionUnknown &&
  ------------------
  |  Branch (379:12): [True: 12.1k, False: 20.7k]
  ------------------
  380|  12.1k|		         !HttpResponseFirstLine::parseStatusCode(payloadChar, payloadLen).isUnsupportedCode())
  ------------------
  |  Branch (380:12): [True: 11.5k, False: 555]
  ------------------
  381|  11.5k|		{
  382|  11.5k|			constructNextLayer<HttpResponseLayer>(payload, payloadLen, getAttachedPacket());
  383|  11.5k|		}
  384|   377k|		else if (SSLLayer::IsSSLMessage(portSrc, portDst, payload, payloadLen))
  ------------------
  |  Branch (384:12): [True: 104k, False: 273k]
  ------------------
  385|   104k|		{
  386|   104k|			constructNextLayerFromFactory(SSLLayer::createSSLMessage, payload, payloadLen);
  387|   104k|		}
  388|   273k|		else if (SipLayer::isSipPort(portDst) || SipLayer::isSipPort(portSrc))
  ------------------
  |  Branch (388:12): [True: 0, False: 273k]
  |  Branch (388:44): [True: 0, False: 273k]
  ------------------
  389|      0|		{
  390|      0|			if (SipRequestFirstLine::parseMethod(payloadChar, payloadLen) != SipRequestLayer::SipMethodUnknown)
  ------------------
  |  Branch (390:8): [True: 0, False: 0]
  ------------------
  391|      0|			{
  392|      0|				constructNextLayer<SipRequestLayer>(payload, payloadLen, getAttachedPacket());
  393|      0|			}
  394|      0|			else if (SipResponseFirstLine::parseStatusCode(payloadChar, payloadLen) !=
  ------------------
  |  Branch (394:13): [True: 0, False: 0]
  ------------------
  395|      0|			         SipResponseLayer::SipStatusCodeUnknown)
  396|      0|			{
  397|      0|				constructNextLayer<SipResponseLayer>(payload, payloadLen, getAttachedPacket());
  398|      0|			}
  399|      0|			else
  400|      0|			{
  401|      0|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  402|      0|			}
  403|      0|		}
  404|   273k|		else if (BgpLayer::isBgpPort(portSrc, portDst))
  ------------------
  |  Branch (404:12): [True: 46.3k, False: 227k]
  ------------------
  405|  46.3k|		{
  406|  46.3k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(BgpLayer::parseBgpLayer, payload, payloadLen);
  407|  46.3k|		}
  408|   227k|		else if (SSHLayer::isSSHPort(portSrc, portDst))
  ------------------
  |  Branch (408:12): [True: 14.0k, False: 213k]
  ------------------
  409|  14.0k|		{
  410|  14.0k|			constructNextLayerFromFactory(SSHLayer::createSSHMessage, payload, payloadLen);
  411|  14.0k|		}
  412|   213k|		else if (DnsLayer::isDataValid(payload, payloadLen, true) &&
  ------------------
  |  Branch (412:12): [True: 191k, False: 21.2k]
  ------------------
  413|   191k|		         (DnsLayer::isDnsPort(portDst) || DnsLayer::isDnsPort(portSrc)))
  ------------------
  |  Branch (413:13): [True: 10.4k, False: 181k]
  |  Branch (413:45): [True: 7.72k, False: 173k]
  ------------------
  414|  18.1k|		{
  415|  18.1k|			constructNextLayer<DnsOverTcpLayer>(payload, payloadLen, getAttachedPacket());
  416|  18.1k|		}
  417|   194k|		else if (TelnetLayer::isDataValid(payload, payloadLen) &&
  ------------------
  |  Branch (417:12): [True: 194k, False: 0]
  ------------------
  418|   194k|		         (TelnetLayer::isTelnetPort(portDst) || TelnetLayer::isTelnetPort(portSrc)))
  ------------------
  |  Branch (418:13): [True: 46.6k, False: 148k]
  |  Branch (418:51): [True: 48, False: 148k]
  ------------------
  419|  46.7k|		{
  420|  46.7k|			constructNextLayer<TelnetLayer>(payload, payloadLen, getAttachedPacket());
  421|  46.7k|		}
  422|   148k|		else if (FtpLayer::isFtpPort(portSrc) && FtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (422:12): [True: 9.02k, False: 139k]
  |  Branch (422:44): [True: 9.02k, False: 0]
  ------------------
  423|  9.02k|		{
  424|  9.02k|			constructNextLayer<FtpResponseLayer>(payload, payloadLen, getAttachedPacket());
  425|  9.02k|		}
  426|   139k|		else if (FtpLayer::isFtpPort(portDst) && FtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (426:12): [True: 0, False: 139k]
  |  Branch (426:44): [True: 0, False: 0]
  ------------------
  427|      0|		{
  428|      0|			constructNextLayer<FtpRequestLayer>(payload, payloadLen, getAttachedPacket());
  429|      0|		}
  430|   139k|		else if (FtpLayer::isFtpDataPort(portSrc) || FtpLayer::isFtpDataPort(portDst))
  ------------------
  |  Branch (430:12): [True: 392, False: 138k]
  |  Branch (430:48): [True: 2.22k, False: 136k]
  ------------------
  431|  2.62k|		{
  432|  2.62k|			constructNextLayer<FtpDataLayer>(payload, payloadLen, getAttachedPacket());
  433|  2.62k|		}
  434|   136k|		else if ((DoIpLayer::isDoIpPort(portSrc) || DoIpLayer::isDoIpPort(portDst)) &&
  ------------------
  |  Branch (434:13): [True: 6.70k, False: 129k]
  |  Branch (434:47): [True: 10.3k, False: 119k]
  ------------------
  435|  17.0k|		         (DoIpLayer::isDataValid(payload, payloadLen)))
  ------------------
  |  Branch (435:12): [True: 13.6k, False: 3.42k]
  ------------------
  436|  13.6k|		{
  437|  13.6k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(DoIpLayer::parseDoIpLayer, payload, payloadLen);
  438|  13.6k|		}
  439|   122k|		else if (SomeIpLayer::isSomeIpPort(portSrc) || SomeIpLayer::isSomeIpPort(portDst))
  ------------------
  |  Branch (439:12): [True: 0, False: 122k]
  |  Branch (439:50): [True: 0, False: 122k]
  ------------------
  440|      0|		{
  441|      0|			constructNextLayerFromFactory(SomeIpLayer::parseSomeIpLayer, payload, payloadLen);
  442|      0|		}
  443|   122k|		else if (TpktLayer::isDataValid(payload, payloadLen) && TpktLayer::isTpktPort(portSrc, portDst))
  ------------------
  |  Branch (443:12): [True: 119k, False: 3.34k]
  |  Branch (443:59): [True: 23.5k, False: 96.0k]
  ------------------
  444|  23.5k|		{
  445|  23.5k|			constructNextLayer<TpktLayer>(payload, payloadLen, getAttachedPacket());
  446|  23.5k|		}
  447|  99.3k|		else if (SmtpLayer::isSmtpPort(portSrc) && SmtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (447:12): [True: 3.22k, False: 96.1k]
  |  Branch (447:46): [True: 85, False: 3.14k]
  ------------------
  448|     85|		{
  449|     85|			constructNextLayer<SmtpResponseLayer>(payload, payloadLen, getAttachedPacket());
  450|     85|		}
  451|  99.2k|		else if (SmtpLayer::isSmtpPort(portDst) && SmtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (451:12): [True: 335, False: 98.9k]
  |  Branch (451:46): [True: 70, False: 265]
  ------------------
  452|     70|		{
  453|     70|			constructNextLayer<SmtpRequestLayer>(payload, payloadLen, getAttachedPacket());
  454|     70|		}
  455|  99.2k|		else if (LdapLayer::isLdapPort(portDst) || LdapLayer::isLdapPort(portSrc))
  ------------------
  |  Branch (455:12): [True: 16.2k, False: 82.9k]
  |  Branch (455:46): [True: 20.3k, False: 62.6k]
  ------------------
  456|  36.6k|		{
  457|  36.6k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(LdapLayer::parseLdapMessage, payload,
  458|  36.6k|			                                                           payloadLen);
  459|  36.6k|		}
  460|  62.6k|		else if (PostgresLayer::isPostgresPort(portDst))
  ------------------
  |  Branch (460:12): [True: 10, False: 62.6k]
  ------------------
  461|     10|		{
  462|     10|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(PostgresLayer::parsePostgresFrontendMessages,
  463|     10|			                                                           payload, payloadLen);
  464|     10|		}
  465|  62.6k|		else if (PostgresLayer::isPostgresPort(portSrc))
  ------------------
  |  Branch (465:12): [True: 10, False: 62.5k]
  ------------------
  466|     10|		{
  467|     10|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(PostgresLayer::parsePostgresBackendMessages,
  468|     10|			                                                           payload, payloadLen);
  469|     10|		}
  470|  62.5k|		else if (MySqlLayer::isMySqlPort(portSrc))
  ------------------
  |  Branch (470:12): [True: 285, False: 62.3k]
  ------------------
  471|    285|		{
  472|    285|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(MySqlLayer::parseMySqlServerMessage, payload,
  473|    285|			                                                           payloadLen);
  474|    285|		}
  475|  62.3k|		else if (MySqlLayer::isMySqlPort(portDst))
  ------------------
  |  Branch (475:12): [True: 470, False: 61.8k]
  ------------------
  476|    470|		{
  477|    470|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(MySqlLayer::parseMySqlClientMessage, payload,
  478|    470|			                                                           payloadLen);
  479|    470|		}
  480|  61.8k|		else if ((GtpV2Layer::isGTPv2Port(portDst) || GtpV2Layer::isGTPv2Port(portSrc)) &&
  ------------------
  |  Branch (480:13): [True: 0, False: 61.8k]
  |  Branch (480:49): [True: 0, False: 61.8k]
  ------------------
  481|      0|		         GtpV2Layer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (481:12): [True: 0, False: 0]
  ------------------
  482|      0|		{
  483|      0|			constructNextLayer<GtpV2Layer>(payload, payloadLen, getAttachedPacket());
  484|      0|		}
  485|  61.8k|		else if (ModbusLayer::isModbusPort(portDst))
  ------------------
  |  Branch (485:12): [True: 0, False: 61.8k]
  ------------------
  486|      0|		{
  487|      0|			constructNextLayer<ModbusLayer>(payload, payloadLen, getAttachedPacket());
  488|      0|		}
  489|  61.8k|		else
  490|  61.8k|		{
  491|  61.8k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  492|  61.8k|		}
  493|   394k|	}
_ZN4pcpp8TcpLayer22computeCalculateFieldsEv:
  496|  86.6k|	{
  497|  86.6k|		tcphdr* tcpHdr = getTcpHeader();
  498|       |
  499|  86.6k|		tcpHdr->dataOffset = getHeaderLen() >> 2;
  500|  86.6k|		calculateChecksum(true);
  501|  86.6k|	}
_ZNK4pcpp8TcpLayer8toStringEv:
  504|   173k|	{
  505|   173k|		const tcphdr* hdr = getTcpHeader();
  506|   173k|		std::string result = "TCP Layer, ";
  507|   173k|		if (hdr->synFlag)
  ------------------
  |  Branch (507:7): [True: 14.9k, False: 158k]
  ------------------
  508|  14.9k|		{
  509|  14.9k|			if (hdr->ackFlag)
  ------------------
  |  Branch (509:8): [True: 6.20k, False: 8.77k]
  ------------------
  510|  6.20k|				result += "[SYN, ACK], ";
  511|  8.77k|			else
  512|  8.77k|				result += "[SYN], ";
  513|  14.9k|		}
  514|   158k|		else if (hdr->finFlag)
  ------------------
  |  Branch (514:12): [True: 7.36k, False: 150k]
  ------------------
  515|  7.36k|		{
  516|  7.36k|			if (hdr->ackFlag)
  ------------------
  |  Branch (516:8): [True: 7.21k, False: 154]
  ------------------
  517|  7.21k|				result += "[FIN, ACK], ";
  518|    154|			else
  519|    154|				result += "[FIN], ";
  520|  7.36k|		}
  521|   150k|		else if (hdr->ackFlag)
  ------------------
  |  Branch (521:12): [True: 149k, False: 954]
  ------------------
  522|   149k|			result += "[ACK], ";
  523|       |
  524|   173k|		std::ostringstream srcPortStream;
  525|   173k|		srcPortStream << getSrcPort();
  526|   173k|		std::ostringstream dstPortStream;
  527|   173k|		dstPortStream << getDstPort();
  528|   173k|		result += "Src port: " + srcPortStream.str() + ", Dst port: " + dstPortStream.str();
  529|       |
  530|   173k|		return result;
  531|   173k|	}

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

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

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

_ZNK4pcpp8UdpLayer10getSrcPortEv:
   40|   416k|	{
   41|       |		return be16toh(getUdpHeader()->portSrc);
   42|   416k|	}
_ZNK4pcpp8UdpLayer10getDstPortEv:
   45|   416k|	{
   46|       |		return be16toh(getUdpHeader()->portDst);
   47|   416k|	}
_ZN4pcpp8UdpLayer17calculateChecksumEb:
   50|  50.8k|	{
   51|  50.8k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
   52|  50.8k|		uint16_t checksumRes = 0;
   53|  50.8k|		uint16_t currChecksumValue = udpHdr->headerChecksum;
   54|       |
   55|  50.8k|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (55:7): [True: 50.8k, False: 0]
  ------------------
   56|  50.8k|		{
   57|  50.8k|			udpHdr->headerChecksum = 0;
   58|  50.8k|			PCPP_LOG_DEBUG("UDP data len = " << m_DataLen);
  ------------------
  |  |  425|  50.8k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  50.8k|	do                                                                                                                 \
  |  |  |  |  413|  50.8k|	{                                                                                                                  \
  |  |  |  |  414|  50.8k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  50.8k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  50.8k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 50.8k]
  |  |  |  |  ------------------
  |  |  |  |  416|  50.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|  50.8k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 50.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   59|       |
   60|  50.8k|			if (m_PrevLayer->getProtocol() == IPv4)
  ------------------
  |  Branch (60:8): [True: 44.9k, False: 5.90k]
  ------------------
   61|  44.9k|			{
   62|  44.9k|				IPv4Address srcIP = static_cast<IPv4Layer*>(m_PrevLayer)->getSrcIPv4Address();
   63|  44.9k|				IPv4Address dstIP = static_cast<IPv4Layer*>(m_PrevLayer)->getDstIPv4Address();
   64|       |
   65|  44.9k|				checksumRes = pcpp::computePseudoHdrChecksum((uint8_t*)udpHdr, getDataLen(), IPAddress::IPv4AddressType,
   66|  44.9k|				                                             PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   67|       |
   68|  44.9k|				PCPP_LOG_DEBUG("calculated IPv4 UDP checksum = 0x" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  44.9k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  44.9k|	do                                                                                                                 \
  |  |  |  |  413|  44.9k|	{                                                                                                                  \
  |  |  |  |  414|  44.9k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  44.9k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  44.9k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 44.9k]
  |  |  |  |  ------------------
  |  |  |  |  416|  44.9k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  44.9k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 44.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   69|  44.9k|			}
   70|  5.90k|			else if (m_PrevLayer->getProtocol() == IPv6)
  ------------------
  |  Branch (70:13): [True: 5.90k, False: 0]
  ------------------
   71|  5.90k|			{
   72|  5.90k|				IPv6Address srcIP = static_cast<IPv6Layer*>(m_PrevLayer)->getSrcIPv6Address();
   73|  5.90k|				IPv6Address dstIP = static_cast<IPv6Layer*>(m_PrevLayer)->getDstIPv6Address();
   74|       |
   75|  5.90k|				checksumRes = computePseudoHdrChecksum((uint8_t*)udpHdr, getDataLen(), IPAddress::IPv6AddressType,
   76|  5.90k|				                                       PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   77|       |
   78|  5.90k|				PCPP_LOG_DEBUG("calculated IPv6 UDP checksum = 0xX" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  5.90k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  5.90k|	do                                                                                                                 \
  |  |  |  |  413|  5.90k|	{                                                                                                                  \
  |  |  |  |  414|  5.90k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  5.90k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.90k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 5.90k]
  |  |  |  |  ------------------
  |  |  |  |  416|  5.90k|		{                                                                                                              \
  |  |  |  |  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.90k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 5.90k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   79|  5.90k|			}
   80|  50.8k|		}
   81|       |
   82|  50.8k|		if (checksumRes == 0)
  ------------------
  |  Branch (82:7): [True: 24, False: 50.7k]
  ------------------
   83|     24|			checksumRes = 0xffff;
   84|       |
   85|  50.8k|		if (writeResultToPacket)
  ------------------
  |  Branch (85:7): [True: 50.8k, False: 0]
  ------------------
   86|  50.8k|			udpHdr->headerChecksum = htobe16(checksumRes);
   87|      0|		else
   88|      0|			udpHdr->headerChecksum = currChecksumValue;
   89|       |
   90|  50.8k|		return checksumRes;
   91|  50.8k|	}
_ZN4pcpp8UdpLayer14parseNextLayerEv:
   94|   314k|	{
   95|   314k|		if (m_DataLen <= sizeof(udphdr))
  ------------------
  |  Branch (95:7): [True: 54, False: 314k]
  ------------------
   96|     54|			return;
   97|       |
   98|   314k|		uint16_t portDst = getDstPort();
   99|   314k|		uint16_t portSrc = getSrcPort();
  100|       |
  101|   314k|		uint8_t* udpData = m_Data + sizeof(udphdr);
  102|   314k|		size_t udpDataLen = m_DataLen - sizeof(udphdr);
  103|       |
  104|   314k|		if (DhcpLayer::isDhcpPorts(portSrc, portDst))
  ------------------
  |  Branch (104:7): [True: 14.9k, False: 299k]
  ------------------
  105|  14.9k|		{
  106|  14.9k|			tryConstructNextLayerWithFallback<DhcpLayer, PayloadLayer>(udpData, udpDataLen);
  107|  14.9k|		}
  108|   299k|		else if (VxlanLayer::isVxlanPort(portDst))
  ------------------
  |  Branch (108:12): [True: 0, False: 299k]
  ------------------
  109|      0|		{
  110|      0|			tryConstructNextLayerWithFallback<VxlanLayer, PayloadLayer>(udpData, udpDataLen);
  111|      0|		}
  112|   299k|		else if (DnsLayer::isDataValid(udpData, udpDataLen) &&
  ------------------
  |  Branch (112:12): [True: 261k, False: 38.0k]
  ------------------
  113|   261k|		         (DnsLayer::isDnsPort(portDst) || DnsLayer::isDnsPort(portSrc)))
  ------------------
  |  Branch (113:13): [True: 42.1k, False: 219k]
  |  Branch (113:45): [True: 10.4k, False: 208k]
  ------------------
  114|  52.6k|		{
  115|  52.6k|			constructNextLayer<DnsLayer>(udpData, udpDataLen);
  116|  52.6k|		}
  117|   246k|		else if (SipLayer::isSipPort(portDst) || SipLayer::isSipPort(portSrc))
  ------------------
  |  Branch (117:12): [True: 60.5k, False: 186k]
  |  Branch (117:44): [True: 1.41k, False: 184k]
  ------------------
  118|  62.0k|		{
  119|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  120|  62.0k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*, uint16_t, uint16_t) = SipLayer::parseSipLayer;
  121|  62.0k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen, portSrc, portDst);
  122|  62.0k|		}
  123|   184k|		else if ((RadiusLayer::isRadiusPort(portDst) || RadiusLayer::isRadiusPort(portSrc)) &&
  ------------------
  |  Branch (123:13): [True: 2.94k, False: 181k]
  |  Branch (123:51): [True: 7.72k, False: 174k]
  ------------------
  124|  10.6k|		         RadiusLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (124:12): [True: 9.98k, False: 683]
  ------------------
  125|  9.98k|		{
  126|  9.98k|			constructNextLayer<RadiusLayer>(udpData, udpDataLen);
  127|  9.98k|		}
  128|   174k|		else if ((GtpV1Layer::isGTPv1Port(portDst) || GtpV1Layer::isGTPv1Port(portSrc)) &&
  ------------------
  |  Branch (128:13): [True: 18.8k, False: 156k]
  |  Branch (128:49): [True: 9.91k, False: 146k]
  ------------------
  129|  28.7k|		         GtpV1Layer::isGTPv1(udpData, udpDataLen))
  ------------------
  |  Branch (129:12): [True: 28.5k, False: 166]
  ------------------
  130|  28.5k|		{
  131|  28.5k|			constructNextLayer<GtpV1Layer>(udpData, udpDataLen);
  132|  28.5k|		}
  133|   146k|		else if ((GtpV2Layer::isGTPv2Port(portDst) || GtpV2Layer::isGTPv2Port(portSrc)) &&
  ------------------
  |  Branch (133:13): [True: 0, False: 146k]
  |  Branch (133:49): [True: 0, False: 146k]
  ------------------
  134|      0|		         GtpV2Layer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (134:12): [True: 0, False: 0]
  ------------------
  135|      0|		{
  136|      0|			constructNextLayer<GtpV2Layer>(udpData, udpDataLen);
  137|      0|		}
  138|   146k|		else if ((DhcpV6Layer::isDhcpV6Port(portSrc) || DhcpV6Layer::isDhcpV6Port(portDst)) &&
  ------------------
  |  Branch (138:13): [True: 12.8k, False: 133k]
  |  Branch (138:51): [True: 5.96k, False: 127k]
  ------------------
  139|  18.8k|		         (DhcpV6Layer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (139:12): [True: 18.6k, False: 130]
  ------------------
  140|  18.6k|		{
  141|  18.6k|			constructNextLayer<DhcpV6Layer>(udpData, udpDataLen);
  142|  18.6k|		}
  143|   127k|		else if ((NtpLayer::isNTPPort(portSrc) || NtpLayer::isNTPPort(portDst)) &&
  ------------------
  |  Branch (143:13): [True: 13.0k, False: 114k]
  |  Branch (143:45): [True: 545, False: 114k]
  ------------------
  144|  13.6k|		         NtpLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (144:12): [True: 13.6k, False: 10]
  ------------------
  145|  13.6k|		{
  146|  13.6k|			constructNextLayer<NtpLayer>(udpData, udpDataLen);
  147|  13.6k|		}
  148|   114k|		else if ((DoIpLayer::isDoIpPort(portSrc) || DoIpLayer::isDoIpPort(portDst)) &&
  ------------------
  |  Branch (148:13): [True: 19.4k, False: 94.6k]
  |  Branch (148:47): [True: 28.9k, False: 65.6k]
  ------------------
  149|  48.3k|		         (DoIpLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (149:12): [True: 44.0k, False: 4.32k]
  ------------------
  150|  44.0k|		{
  151|  44.0k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(DoIpLayer::parseDoIpLayer, udpData, udpDataLen);
  152|  44.0k|		}
  153|  70.0k|		else if (SomeIpLayer::isSomeIpPort(portSrc) || SomeIpLayer::isSomeIpPort(portDst))
  ------------------
  |  Branch (153:12): [True: 29.1k, False: 40.8k]
  |  Branch (153:50): [True: 2.02k, False: 38.8k]
  ------------------
  154|  31.1k|		{
  155|  31.1k|			constructNextLayerFromFactory(SomeIpLayer::parseSomeIpLayer, udpData, udpDataLen);
  156|  31.1k|		}
  157|  38.8k|		else if ((WakeOnLanLayer::isWakeOnLanPort(portDst) && WakeOnLanLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (157:13): [True: 1.23k, False: 37.5k]
  |  Branch (157:57): [True: 445, False: 789]
  ------------------
  158|    445|		{
  159|    445|			constructNextLayer<WakeOnLanLayer>(udpData, udpDataLen);
  160|    445|		}
  161|  38.3k|		else if ((WireGuardLayer::isWireGuardPorts(portDst, portSrc) &&
  ------------------
  |  Branch (161:13): [True: 1.62k, False: 36.7k]
  ------------------
  162|  1.62k|		          WireGuardLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (162:13): [True: 1.62k, False: 0]
  ------------------
  163|  1.62k|		{
  164|  1.62k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(WireGuardLayer::parseWireGuardLayer, udpData,
  165|  1.62k|			                                                           udpDataLen);
  166|  1.62k|		}
  167|       |
  168|       |		// If a valid layer was found, return immediately
  169|   314k|		if (hasNextLayer())
  ------------------
  |  Branch (169:7): [True: 277k, False: 36.7k]
  ------------------
  170|   277k|		{
  171|   277k|			return;
  172|   277k|		}
  173|       |
  174|       |		// Here, heuristics for all protocols should be invoked to determine the correct layer
  175|  36.7k|		{
  176|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  177|  36.7k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*) = SipLayer::parseSipLayer;
  178|  36.7k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen);
  179|  36.7k|		}
  180|       |
  181|  36.7k|		if (!hasNextLayer())
  ------------------
  |  Branch (181:7): [True: 0, False: 36.7k]
  ------------------
  182|      0|		{
  183|      0|			constructNextLayer<PayloadLayer>(udpData, udpDataLen);
  184|      0|		}
  185|  36.7k|	}
_ZN4pcpp8UdpLayer22computeCalculateFieldsEv:
  188|  50.8k|	{
  189|  50.8k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
  190|       |		udpHdr->length = htobe16(m_DataLen);
  191|  50.8k|		calculateChecksum(true);
  192|  50.8k|	}
_ZNK4pcpp8UdpLayer8toStringEv:
  195|   101k|	{
  196|   101k|		std::ostringstream srcPortStream;
  197|   101k|		srcPortStream << getSrcPort();
  198|   101k|		std::ostringstream dstPortStream;
  199|   101k|		dstPortStream << getDstPort();
  200|       |
  201|   101k|		return "UDP Layer, Src port: " + srcPortStream.str() + ", Dst port: " + dstPortStream.str();
  202|   101k|	}

_ZNK4pcpp9VlanLayer9getVlanIDEv:
   33|  41.8k|	{
   34|       |		return be16toh(getVlanHeader()->vlan) & 0xFFF;
   35|  41.8k|	}
_ZNK4pcpp9VlanLayer6getCFIEv:
   38|  41.8k|	{
   39|       |		return ((be16toh(getVlanHeader()->vlan) >> 12) & 1);
   40|  41.8k|	}
_ZNK4pcpp9VlanLayer11getPriorityEv:
   43|  41.8k|	{
   44|       |		return (be16toh(getVlanHeader()->vlan) >> 13) & 7;
   45|  41.8k|	}
_ZN4pcpp9VlanLayer14parseNextLayerEv:
   63|   180k|	{
   64|   180k|		if (m_DataLen <= sizeof(vlan_header))
  ------------------
  |  Branch (64:7): [True: 357, False: 180k]
  ------------------
   65|    357|			return;
   66|       |
   67|   180k|		uint8_t* payload = m_Data + sizeof(vlan_header);
   68|   180k|		size_t payloadLen = m_DataLen - sizeof(vlan_header);
   69|       |
   70|   180k|		vlan_header* hdr = getVlanHeader();
   71|   180k|		switch (be16toh(hdr->etherType))
   72|   180k|		{
   73|  72.5k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|  72.5k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (73:3): [True: 72.5k, False: 107k]
  ------------------
   74|  72.5k|		{
   75|  72.5k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   76|  72.5k|			break;
   77|      0|		}
   78|  19.0k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|  19.0k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (78:3): [True: 19.0k, False: 161k]
  ------------------
   79|  19.0k|		{
   80|  19.0k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   81|  19.0k|			break;
   82|      0|		}
   83|  1.69k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   33|  1.69k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (83:3): [True: 1.69k, False: 178k]
  ------------------
   84|  1.69k|		{
   85|  1.69k|			constructNextLayer<ArpLayer>(payload, payloadLen);
   86|  1.69k|			break;
   87|      0|		}
   88|  46.1k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|  46.1k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (88:3): [True: 46.1k, False: 134k]
  ------------------
   89|  46.1k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   61|  46.1k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (89:3): [True: 21, False: 180k]
  ------------------
   90|  46.1k|		{
   91|  46.1k|			constructNextLayer<VlanLayer>(payload, payloadLen);
   92|  46.1k|			break;
   93|  46.1k|		}
   94|  37.4k|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   53|  37.4k|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (94:3): [True: 37.4k, False: 142k]
  ------------------
   95|  37.4k|		{
   96|  37.4k|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   97|  37.4k|			break;
   98|  46.1k|		}
   99|    605|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   51|    605|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (99:3): [True: 605, False: 179k]
  ------------------
  100|    605|		{
  101|    605|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
  102|    605|			break;
  103|  46.1k|		}
  104|  1.11k|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|  1.11k|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (104:3): [True: 1.11k, False: 179k]
  ------------------
  105|  1.11k|		{
  106|  1.11k|			constructNextLayer<MplsLayer>(payload, payloadLen);
  107|  1.11k|			break;
  108|  46.1k|		}
  109|  1.60k|		default:
  ------------------
  |  Branch (109:3): [True: 1.60k, False: 178k]
  ------------------
  110|  1.60k|		{
  111|  1.60k|			if ((be16toh(hdr->etherType) < 1500))
  ------------------
  |  Branch (111:8): [True: 1.31k, False: 293]
  ------------------
  112|  1.31k|			{
  113|  1.31k|				tryConstructNextLayerWithFallback<LLCLayer, PayloadLayer>(payload, payloadLen);
  114|  1.31k|			}
  115|    293|			else
  116|    293|			{
  117|    293|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  118|    293|			}
  119|  1.60k|			break;
  120|  46.1k|		}
  121|   180k|		}
  122|   180k|	}
_ZN4pcpp9VlanLayer22computeCalculateFieldsEv:
  125|  20.9k|	{
  126|  20.9k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (126:7): [True: 119, False: 20.8k]
  ------------------
  127|    119|			return;
  128|       |
  129|  20.8k|		switch (m_NextLayer->getProtocol())
  130|  20.8k|		{
  131|  8.88k|		case IPv4:
  ------------------
  |  Branch (131:3): [True: 8.88k, False: 11.9k]
  ------------------
  132|  8.88k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_IP);
  133|  8.88k|			break;
  134|  3.00k|		case IPv6:
  ------------------
  |  Branch (134:3): [True: 3.00k, False: 17.8k]
  ------------------
  135|  3.00k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_IPV6);
  136|  3.00k|			break;
  137|    340|		case ARP:
  ------------------
  |  Branch (137:3): [True: 340, False: 20.4k]
  ------------------
  138|    340|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_ARP);
  139|    340|			break;
  140|  4.43k|		case VLAN:
  ------------------
  |  Branch (140:3): [True: 4.43k, False: 16.3k]
  ------------------
  141|  4.43k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_VLAN);
  142|  4.43k|			break;
  143|  4.15k|		default:
  ------------------
  |  Branch (143:3): [True: 4.15k, False: 16.6k]
  ------------------
  144|  4.15k|			return;
  145|  20.8k|		}
  146|  20.8k|	}
_ZNK4pcpp9VlanLayer8toStringEv:
  149|  41.8k|	{
  150|  41.8k|		std::ostringstream cfiStream;
  151|  41.8k|		cfiStream << (int)getCFI();
  152|  41.8k|		std::ostringstream priStream;
  153|  41.8k|		priStream << (int)getPriority();
  154|  41.8k|		std::ostringstream idStream;
  155|  41.8k|		idStream << getVlanID();
  156|       |
  157|  41.8k|		return "VLAN Layer, Priority: " + priStream.str() + ", Vlan ID: " + idStream.str() +
  158|  41.8k|		       ", CFI: " + cfiStream.str();
  159|  41.8k|	}

_ZN4pcpp9VrrpLayer18getVersionFromDataEPhm:
   48|  10.9k|	{
   49|  10.9k|		if (!data || dataLen <= VRRP_PACKET_FIX_LEN)
  ------------------
  |  |   18|  10.9k|#define VRRP_PACKET_FIX_LEN 8
  ------------------
  |  Branch (49:7): [True: 0, False: 10.9k]
  |  Branch (49:16): [True: 0, False: 10.9k]
  ------------------
   50|      0|		{
   51|      0|			return UnknownProtocol;
   52|      0|		}
   53|       |
   54|  10.9k|		auto* vrrpPacketCommon = (vrrp_header*)data;
   55|  10.9k|		uint8_t version = vrrpPacketCommon->version;
   56|  10.9k|		switch (version)
   57|  10.9k|		{
   58|  3.33k|		case VRRP_V2_VERSION:
  ------------------
  |  |   21|  3.33k|#define VRRP_V2_VERSION 2
  ------------------
  |  Branch (58:3): [True: 3.33k, False: 7.60k]
  ------------------
   59|  3.33k|			return VRRPv2;
   60|  7.31k|		case VRRP_V3_VERSION:
  ------------------
  |  |   22|  7.31k|#define VRRP_V3_VERSION 3
  ------------------
  |  Branch (60:3): [True: 7.31k, False: 3.62k]
  ------------------
   61|  7.31k|			return VRRPv3;
   62|    286|		default:
  ------------------
  |  Branch (62:3): [True: 286, False: 10.6k]
  ------------------
   63|    286|			return UnknownProtocol;
   64|  10.9k|		}
   65|  10.9k|	}
_ZN4pcpp9VrrpLayer22computeCalculateFieldsEv:
   68|  2.36k|	{
   69|       |		// calculate and fill the checksum to packet
   70|  2.36k|		calculateAndSetChecksum();
   71|  2.36k|	}
_ZNK4pcpp9VrrpLayer15getIPAddressLenEv:
   74|  38.4k|	{
   75|  38.4k|		if (getAddressType() == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (75:7): [True: 37.7k, False: 719]
  ------------------
   76|  37.7k|		{
   77|  37.7k|			return 4;
   78|  37.7k|		}
   79|       |
   80|    719|		return 16;
   81|  38.4k|	}
_ZNK4pcpp9VrrpLayer17isChecksumCorrectEv:
   84|  2.36k|	{
   85|  2.36k|		auto vrrpHeader = getVrrpHeader();
   86|  2.36k|		if (vrrpHeader == nullptr)
  ------------------
  |  Branch (86:7): [True: 0, False: 2.36k]
  ------------------
   87|      0|		{
   88|      0|			return false;
   89|      0|		}
   90|       |
   91|  2.36k|		return (calculateChecksum() == be16toh(vrrpHeader->checksum));
   92|  2.36k|	}
_ZNK4pcpp9VrrpLayer17getPriorityAsEnumEv:
   95|  2.36k|	{
   96|  2.36k|		switch (getVrrpHeader()->priority)
   97|  2.36k|		{
   98|    164|		case VRRP_PRIO_DEF:
  ------------------
  |  |   15|    164|#define VRRP_PRIO_DEF 100    ///< default priority
  ------------------
  |  Branch (98:3): [True: 164, False: 2.19k]
  ------------------
   99|    164|			return VrrpLayer::VrrpPriority::Default;
  100|       |
  101|    733|		case VRRP_PRIO_STOP:
  ------------------
  |  |   14|    733|#define VRRP_PRIO_STOP 0     ///< priority to stop
  ------------------
  |  Branch (101:3): [True: 733, False: 1.63k]
  ------------------
  102|    733|			return VrrpLayer::VrrpPriority::Stop;
  103|       |
  104|     85|		case VRRP_PRIO_OWNER:
  ------------------
  |  |   16|     85|#define VRRP_PRIO_OWNER 255  ///< priority of the ip owner
  ------------------
  |  Branch (104:3): [True: 85, False: 2.27k]
  ------------------
  105|     85|			return VrrpLayer::VrrpPriority::Owner;
  106|       |
  107|  1.38k|		default:
  ------------------
  |  Branch (107:3): [True: 1.38k, False: 982]
  ------------------
  108|  1.38k|			return VrrpLayer::VrrpPriority::Other;
  109|  2.36k|		}
  110|  2.36k|	}
_ZNK4pcpp9VrrpLayer8toStringEv:
  113|  4.72k|	{
  114|  4.72k|		return "VRRP v" + std::to_string(getVersion()) +
  115|  4.72k|		       " Layer, virtual router ID: " + std::to_string(getVirtualRouterID()) +
  116|  4.72k|		       ", IP address count: " + std::to_string(getIPAddressesCount());
  117|  4.72k|	}
_ZNK4pcpp9VrrpLayer10getVersionEv:
  120|  4.72k|	{
  121|  4.72k|		return getVrrpHeader()->version;
  122|  4.72k|	}
_ZNK4pcpp9VrrpLayer7getTypeEv:
  125|  2.36k|	{
  126|  2.36k|		if (getVrrpHeader()->type == VrrpType_Advertisement)
  ------------------
  |  Branch (126:7): [True: 674, False: 1.68k]
  ------------------
  127|    674|		{
  128|    674|			return VrrpType_Advertisement;
  129|    674|		}
  130|       |
  131|  1.68k|		return VrrpType_Unknown;
  132|  2.36k|	}
_ZNK4pcpp9VrrpLayer18getVirtualRouterIDEv:
  135|  4.72k|	{
  136|  4.72k|		return getVrrpHeader()->vrId;
  137|  4.72k|	}
_ZNK4pcpp9VrrpLayer11getPriorityEv:
  145|  2.36k|	{
  146|  2.36k|		return getVrrpHeader()->priority;
  147|  2.36k|	}
_ZNK4pcpp9VrrpLayer11getChecksumEv:
  155|  2.36k|	{
  156|       |		return be16toh(getVrrpHeader()->checksum);
  157|  2.36k|	}
_ZN4pcpp9VrrpLayer23calculateAndSetChecksumEv:
  160|  2.36k|	{
  161|       |		getVrrpHeader()->checksum = htobe16(calculateChecksum());
  162|  2.36k|	}
_ZNK4pcpp9VrrpLayer19getIPAddressesCountEv:
  165|  4.72k|	{
  166|  4.72k|		return getVrrpHeader()->ipAddrCount;
  167|  4.72k|	}
_ZNK4pcpp9VrrpLayer14getIPAddressesEv:
  170|  2.36k|	{
  171|  2.36k|		std::vector<IPAddress> ipAddressesVec;
  172|  2.36k|		auto ipAddressesPtr = getFirstIPAddressPtr();
  173|  38.4k|		while (ipAddressesPtr != nullptr)
  ------------------
  |  Branch (173:10): [True: 36.0k, False: 2.36k]
  ------------------
  174|  36.0k|		{
  175|  36.0k|			IPAddress ipAddress = getIPAddressFromData(ipAddressesPtr);
  176|  36.0k|			ipAddressesVec.push_back(ipAddress);
  177|  36.0k|			ipAddressesPtr = getNextIPAddressPtr(ipAddressesPtr);
  178|  36.0k|		}
  179|       |
  180|  2.36k|		return ipAddressesVec;
  181|  2.36k|	}
_ZNK4pcpp9VrrpLayer20getFirstIPAddressPtrEv:
  184|  2.36k|	{
  185|  2.36k|		size_t ipAddressLen = getIPAddressLen();
  186|       |
  187|       |		// check if there are virtual IP address at all
  188|  2.36k|		if (getHeaderLen() <= VRRP_PACKET_FIX_LEN + ipAddressLen)
  ------------------
  |  |   18|  2.36k|#define VRRP_PACKET_FIX_LEN 8
  ------------------
  |  Branch (188:7): [True: 719, False: 1.64k]
  ------------------
  189|    719|		{
  190|    719|			return nullptr;
  191|    719|		}
  192|       |
  193|  1.64k|		return (m_Data + VRRP_PACKET_FIX_LEN);
  ------------------
  |  |   18|  1.64k|#define VRRP_PACKET_FIX_LEN 8
  ------------------
  194|  2.36k|	}
_ZNK4pcpp9VrrpLayer19getNextIPAddressPtrEPh:
  197|  36.0k|	{
  198|  36.0k|		if (ipAddressPtr == nullptr)
  ------------------
  |  Branch (198:7): [True: 0, False: 36.0k]
  ------------------
  199|      0|		{
  200|      0|			return nullptr;
  201|      0|		}
  202|       |
  203|  36.0k|		size_t ipAddressLen = getIPAddressLen();
  204|       |
  205|       |		// prev virtual IP address was the last virtual IP address
  206|  36.0k|		if (ipAddressPtr + ipAddressLen - m_Data >= (int)getHeaderLen())
  ------------------
  |  Branch (206:7): [True: 1.64k, False: 34.4k]
  ------------------
  207|  1.64k|		{
  208|  1.64k|			return nullptr;
  209|  1.64k|		}
  210|       |
  211|  34.4k|		return (ipAddressPtr + ipAddressLen);
  212|  36.0k|	}
_ZNK4pcpp9VrrpLayer20getIPAddressFromDataEPh:
  349|  36.0k|	{
  350|  36.0k|		if (getAddressType() == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (350:7): [True: 36.0k, False: 0]
  ------------------
  351|  36.0k|		{
  352|  36.0k|			return IPv4Address(*reinterpret_cast<const uint32_t*>(data));
  353|  36.0k|		}
  354|       |
  355|      0|		return IPv6Address(data);
  356|  36.0k|	}
_ZNK4pcpp9VrrpLayer14getAddressTypeEv:
  375|  77.5k|	{
  376|  77.5k|		return m_AddressType;
  377|  77.5k|	}
_ZNK4pcpp11VrrpV2Layer17getAuthTypeAsEnumEv:
  394|    825|	{
  395|    825|		auto authType = getAuthType();
  396|    825|		if (authType > 3)
  ------------------
  |  Branch (396:7): [True: 736, False: 89]
  ------------------
  397|    736|		{
  398|    736|			return VrrpAuthType::Other;
  399|    736|		}
  400|       |
  401|     89|		return static_cast<VrrpAuthType>(authType);
  402|    825|	}
_ZNK4pcpp11VrrpV2Layer9getAdvIntEv:
  405|    825|	{
  406|    825|		uint16_t authAdvInt = getVrrpHeader()->authTypeAdvInt;
  407|    825|		auto authAdvIntPtr = (vrrpv2_auth_adv*)(&authAdvInt);
  408|    825|		return authAdvIntPtr->advInt;
  409|    825|	}
_ZNK4pcpp11VrrpV2Layer11getAuthTypeEv:
  418|    825|	{
  419|    825|		uint16_t authAdvInt = getVrrpHeader()->authTypeAdvInt;
  420|    825|		auto* authAdvIntPtr = (vrrpv2_auth_adv*)(&authAdvInt);
  421|    825|		return authAdvIntPtr->authType;
  422|    825|	}
_ZNK4pcpp11VrrpV2Layer17calculateChecksumEv:
  431|  1.65k|	{
  432|  1.65k|		if ((getData() == nullptr) || (getDataLen() == 0))
  ------------------
  |  Branch (432:7): [True: 0, False: 1.65k]
  |  Branch (432:33): [True: 0, False: 1.65k]
  ------------------
  433|      0|		{
  434|      0|			return 0;
  435|      0|		}
  436|       |
  437|  1.65k|		auto vrrpHeader = getVrrpHeader();
  438|  1.65k|		ScalarBuffer<uint16_t> buffer = {};
  439|  1.65k|		buffer.buffer = reinterpret_cast<uint16_t*>(vrrpHeader);
  440|  1.65k|		buffer.len = getHeaderLen();
  441|       |
  442|  1.65k|		uint16_t currChecksumValue = vrrpHeader->checksum;
  443|  1.65k|		vrrpHeader->checksum = 0;
  444|  1.65k|		uint16_t checksum = computeChecksum(&buffer, 1);
  445|  1.65k|		vrrpHeader->checksum = currChecksumValue;
  446|       |
  447|  1.65k|		return checksum;
  448|  1.65k|	}
_ZNK4pcpp11VrrpV3Layer12getMaxAdvIntEv:
  461|  1.53k|	{
  462|  1.53k|		uint16_t authAdvInt = getVrrpHeader()->authTypeAdvInt;
  463|  1.53k|		auto rsvdAdv = (vrrpv3_rsvd_adv*)(&authAdvInt);
  464|       |		return be16toh(rsvdAdv->maxAdvInt);
  465|  1.53k|	}
_ZNK4pcpp11VrrpV3Layer17calculateChecksumEv:
  478|  3.07k|	{
  479|  3.07k|		auto* ipLayer = getAttachedPacket()->getLayerOfType<pcpp::IPLayer>();
  480|  3.07k|		if (ipLayer == nullptr)
  ------------------
  |  Branch (480:7): [True: 0, False: 3.07k]
  ------------------
  481|      0|		{
  482|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  483|      0|			return 0;
  484|      0|		}
  485|       |
  486|  3.07k|		auto vrrpHeader = getVrrpHeader();
  487|  3.07k|		uint16_t currChecksumValue = vrrpHeader->checksum;
  488|  3.07k|		vrrpHeader->checksum = 0;
  489|       |
  490|  3.07k|		pcpp::IPAddress srcIPAddr = ipLayer->getSrcIPAddress();
  491|  3.07k|		pcpp::IPAddress dstIPAddr = ipLayer->getDstIPAddress();
  492|  3.07k|		uint16_t checksum;
  493|  3.07k|		if (getAddressType() == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (493:7): [True: 1.63k, False: 1.43k]
  ------------------
  494|  1.63k|		{
  495|  1.63k|			checksum = computePseudoHdrChecksum((uint8_t*)vrrpHeader, getDataLen(), IPAddress::IPv4AddressType,
  496|  1.63k|			                                    PACKETPP_IPPROTO_VRRP, srcIPAddr, dstIPAddr);
  497|  1.63k|		}
  498|  1.43k|		else
  499|  1.43k|		{
  500|  1.43k|			checksum = computePseudoHdrChecksum((uint8_t*)vrrpHeader, getDataLen(), IPAddress::IPv6AddressType,
  501|  1.43k|			                                    PACKETPP_IPPROTO_VRRP, srcIPAddr, dstIPAddr);
  502|  1.43k|		}
  503|       |
  504|  3.07k|		vrrpHeader->checksum = currChecksumValue;
  505|       |
  506|  3.07k|		return checksum;
  507|  3.07k|	}

_ZNK4pcpp14WakeOnLanLayer13getTargetAddrEv:
   47|    178|	{
   48|    178|		return pcpp::MacAddress(getWakeOnLanHeader()->addrBody);
   49|    178|	}
_ZN4pcpp14WakeOnLanLayer11isDataValidEPKhm:
  115|  1.23k|	{
  116|  1.23k|		if (data && dataSize >= sizeof(wol_header))
  ------------------
  |  Branch (116:7): [True: 1.23k, False: 0]
  |  Branch (116:15): [True: 1.03k, False: 195]
  ------------------
  117|  1.03k|		{
  118|       |			// It should repeat same MAC address at the payload 16 times
  119|  1.03k|			pcpp::MacAddress bufAddr(&data[6]);
  120|  11.3k|			for (size_t idx = 1; idx < 16; ++idx)
  ------------------
  |  Branch (120:25): [True: 10.8k, False: 445]
  ------------------
  121|  10.8k|			{
  122|  10.8k|				if (bufAddr != pcpp::MacAddress(&data[6 + idx * 6]))
  ------------------
  |  Branch (122:9): [True: 594, False: 10.2k]
  ------------------
  123|    594|					return false;
  124|  10.8k|			}
  125|    445|			return true;
  126|  1.03k|		}
  127|    195|		return false;
  128|  1.23k|	}
_ZNK4pcpp14WakeOnLanLayer8toStringEv:
  131|    178|	{
  132|    178|		return "Wake On LAN Layer, target address: " + getTargetAddr().toString();
  133|    178|	}

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

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

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

_ZN4pcpp11IFileDevice21reportPacketProcessedEm:
   66|   169k|		{
   67|   169k|			m_NumOfPacketsProcessed += numPackets;
   68|   169k|		}
_ZN4pcpp22PcapNgFileReaderDeviceD2Ev:
  338|  3.41k|		{
  339|  3.41k|			PcapNgFileReaderDevice::close();
  340|  3.41k|		}

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

_ZN4pcpp11IFileDeviceC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  219|  3.41k|	{
  220|  3.41k|		m_FileName = fileName;
  221|  3.41k|	}
_ZNK4pcpp11IFileDevice13getStatisticsERNS_9PcapStatsE:
  229|  3.41k|	{
  230|  3.41k|		PCPP_LOG_DEBUG("Statistics requested for file device for filename '" << m_FileName << "'");
  ------------------
  |  |  425|  3.41k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  3.41k|	do                                                                                                                 \
  |  |  |  |  413|  3.41k|	{                                                                                                                  \
  |  |  |  |  414|  3.41k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.41k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.41k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 3.41k]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.41k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  3.41k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.41k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  231|  3.41k|		stats.packetsRecv = m_NumOfPacketsProcessed;
  232|  3.41k|		stats.packetsDrop = m_NumOfPacketsDropped;
  233|  3.41k|		stats.packetsDropByInterface = 0;
  234|  3.41k|	}
_ZN4pcpp11IFileDevice22resetStatisticCountersEv:
  237|  3.41k|	{
  238|  3.41k|		m_NumOfPacketsProcessed = 0;
  239|  3.41k|		m_NumOfPacketsDropped = 0;
  240|  3.41k|	}
_ZN4pcpp17IFileReaderDeviceC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  256|  3.41k|	IFileReaderDevice::IFileReaderDevice(const std::string& fileName) : IFileDevice(fileName)
  257|  3.41k|	{}
_ZN4pcpp17IFileReaderDevice9getReaderERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  260|  3.41k|	{
  261|  3.41k|		const auto extensionPos = fileName.find_last_of('.');
  262|  3.41k|		const auto fileExtension = extensionPos != std::string::npos ? fileName.substr(extensionPos) : "";
  ------------------
  |  Branch (262:30): [True: 3.41k, False: 0]
  ------------------
  263|       |
  264|  3.41k|		if (fileExtension == ".pcapng" || fileExtension == ".zstd" || fileExtension == ".zst")
  ------------------
  |  Branch (264:7): [True: 3.41k, False: 0]
  |  Branch (264:37): [True: 0, False: 0]
  |  Branch (264:65): [True: 0, False: 0]
  ------------------
  265|  3.41k|			return new PcapNgFileReaderDevice(fileName);
  266|      0|		else if (fileExtension == ".snoop")
  ------------------
  |  Branch (266:12): [True: 0, False: 0]
  ------------------
  267|      0|			return new SnoopFileReaderDevice(fileName);
  268|       |
  269|      0|		return new PcapFileReaderDevice(fileName);
  270|  3.41k|	}
_ZN4pcpp17IFileReaderDevice14getNextPacketsERNS_13PointerVectorINS_9RawPacketENSt3__114default_deleteIS2_EEEEi:
  279|  3.41k|	{
  280|  3.41k|		int numOfPacketsRead = 0;
  281|       |
  282|  6.80k|		for (; numOfPacketsToRead < 0 || numOfPacketsRead < numOfPacketsToRead; numOfPacketsRead++)
  ------------------
  |  Branch (282:10): [True: 0, False: 6.80k]
  |  Branch (282:36): [True: 3.41k, False: 3.39k]
  ------------------
  283|  3.41k|		{
  284|  3.41k|			RawPacket* newPacket = new RawPacket();
  285|  3.41k|			bool packetRead = getNextPacket(*newPacket);
  286|  3.41k|			if (packetRead)
  ------------------
  |  Branch (286:8): [True: 3.39k, False: 21]
  ------------------
  287|  3.39k|			{
  288|  3.39k|				packetVec.pushBack(newPacket);
  289|  3.39k|			}
  290|     21|			else
  291|     21|			{
  292|     21|				delete newPacket;
  293|     21|				break;
  294|     21|			}
  295|  3.41k|		}
  296|       |
  297|  3.41k|		return numOfPacketsRead;
  298|  3.41k|	}
_ZN4pcpp22PcapNgFileReaderDeviceC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  847|  3.41k|	PcapNgFileReaderDevice::PcapNgFileReaderDevice(const std::string& fileName) : IFileReaderDevice(fileName)
  848|  3.41k|	{
  849|  3.41k|		m_LightPcapNg = nullptr;
  850|  3.41k|	}
_ZN4pcpp22PcapNgFileReaderDevice4openEv:
  853|  3.41k|	{
  854|  3.41k|		resetStatisticCounters();
  855|       |
  856|  3.41k|		if (m_LightPcapNg != nullptr)
  ------------------
  |  Branch (856:7): [True: 0, False: 3.41k]
  ------------------
  857|      0|		{
  858|      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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  859|      0|			return true;
  860|      0|		}
  861|       |
  862|  3.41k|		m_LightPcapNg = toLightPcapNgHandle(light_pcapng_open_read(m_FileName.c_str(), LIGHT_FALSE));
  863|  3.41k|		if (m_LightPcapNg == nullptr)
  ------------------
  |  Branch (863:7): [True: 0, False: 3.41k]
  ------------------
  864|      0|		{
  865|      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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  866|      0|			return false;
  867|      0|		}
  868|       |
  869|  3.41k|		PCPP_LOG_DEBUG("Successfully opened pcapng reader device for filename '" << m_FileName << "'");
  ------------------
  |  |  425|  3.41k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  3.41k|	do                                                                                                                 \
  |  |  |  |  413|  3.41k|	{                                                                                                                  \
  |  |  |  |  414|  3.41k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.41k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.41k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 3.41k]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.41k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  3.41k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.41k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  870|  3.41k|		return true;
  871|  3.41k|	}
_ZN4pcpp22PcapNgFileReaderDevice13getNextPacketERNS_9RawPacketE:
  879|   172k|	{
  880|   172k|		return getNextPacketInternal(rawPacket, nullptr);
  881|   172k|	}
_ZN4pcpp22PcapNgFileReaderDevice21getNextPacketInternalERNS_9RawPacketEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
  884|   172k|	{
  885|   172k|		if (m_LightPcapNg == nullptr)
  ------------------
  |  Branch (885:7): [True: 0, False: 172k]
  ------------------
  886|      0|		{
  887|      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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  888|      0|			return false;
  889|      0|		}
  890|       |
  891|   172k|		light_packet_header pktHeader;
  892|   172k|		const uint8_t* pktData = nullptr;
  893|       |
  894|   172k|		if (!light_get_next_packet(toLightPcapNgT(m_LightPcapNg), &pktHeader, &pktData))
  ------------------
  |  Branch (894:7): [True: 3.41k, False: 169k]
  ------------------
  895|  3.41k|		{
  896|  3.41k|			PCPP_LOG_DEBUG("Packet could not be read. Probably end-of-file");
  ------------------
  |  |  425|  3.41k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  3.41k|	do                                                                                                                 \
  |  |  |  |  413|  3.41k|	{                                                                                                                  \
  |  |  |  |  414|  3.41k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.41k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.41k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 3.41k]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.41k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  3.41k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.41k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  897|  3.41k|			return false;
  898|  3.41k|		}
  899|       |
  900|   169k|		while (!m_BpfWrapper.matches(pktData, pktHeader.captured_length, pktHeader.timestamp, pktHeader.data_link))
  ------------------
  |  Branch (900:10): [True: 0, False: 169k]
  ------------------
  901|      0|		{
  902|      0|			if (!light_get_next_packet(toLightPcapNgT(m_LightPcapNg), &pktHeader, &pktData))
  ------------------
  |  Branch (902:8): [True: 0, False: 0]
  ------------------
  903|      0|			{
  904|      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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  905|      0|				return false;
  906|      0|			}
  907|      0|		}
  908|       |
  909|   169k|		uint8_t* myPacketData = new uint8_t[pktHeader.captured_length];
  910|   169k|		memcpy(myPacketData, pktData, pktHeader.captured_length);
  911|   169k|		const LinkLayerType linkType = static_cast<LinkLayerType>(pktHeader.data_link);
  912|   169k|		if (linkType == LinkLayerType::LINKTYPE_INVALID)
  ------------------
  |  Branch (912:7): [True: 1.12k, False: 168k]
  ------------------
  913|  1.12k|		{
  914|  1.12k|			PCPP_LOG_ERROR("Link layer type of raw packet could not be determined");
  ------------------
  |  |  443|  1.12k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  1.12k|	do                                                                                                                 \
  |  |  |  |  413|  1.12k|	{                                                                                                                  \
  |  |  |  |  414|  1.12k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.12k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.12k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.12k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.12k|		{                                                                                                              \
  |  |  |  |  417|  1.12k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.12k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.12k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.12k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.12k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.12k|		}                                                                                                              \
  |  |  |  |  422|  1.12k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  915|  1.12k|		}
  916|       |
  917|   169k|		if (!rawPacket.setRawData(myPacketData, pktHeader.captured_length, true, pktHeader.timestamp, linkType,
  ------------------
  |  Branch (917:7): [True: 0, False: 169k]
  ------------------
  918|   169k|		                          pktHeader.original_length))
  919|      0|		{
  920|      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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  921|      0|			return false;
  922|      0|		}
  923|       |
  924|   169k|		if (packetComment != nullptr)
  ------------------
  |  Branch (924:7): [True: 0, False: 169k]
  ------------------
  925|      0|		{
  926|      0|			if (pktHeader.comment != nullptr && pktHeader.comment_length > 0)
  ------------------
  |  Branch (926:8): [True: 0, False: 0]
  |  Branch (926:40): [True: 0, False: 0]
  ------------------
  927|      0|			{
  928|      0|				packetComment->assign(pktHeader.comment, pktHeader.comment_length);
  929|      0|			}
  930|      0|			else
  931|      0|			{
  932|      0|				packetComment->clear();
  933|      0|			}
  934|      0|		}
  935|       |
  936|   169k|		reportPacketProcessed();
  937|   169k|		return true;
  938|   169k|	}
_ZN4pcpp22PcapNgFileReaderDevice5closeEv:
  941|  6.80k|	{
  942|  6.80k|		if (m_LightPcapNg == nullptr)
  ------------------
  |  Branch (942:7): [True: 3.39k, False: 3.41k]
  ------------------
  943|  3.39k|			return;
  944|       |
  945|  3.41k|		light_pcapng_close(toLightPcapNgT(m_LightPcapNg));
  946|  3.41k|		m_LightPcapNg = nullptr;
  947|       |
  948|  3.41k|		PCPP_LOG_DEBUG("File reader closed for file '" << m_FileName << "'");
  ------------------
  |  |  425|  3.41k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  3.41k|	do                                                                                                                 \
  |  |  |  |  413|  3.41k|	{                                                                                                                  \
  |  |  |  |  414|  3.41k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.41k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.41k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 3.41k]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.41k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  3.41k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.41k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  949|  3.41k|	}
_ZNK4pcpp22PcapNgFileReaderDevice5getOSEv:
  952|  3.41k|	{
  953|  3.41k|		if (m_LightPcapNg == nullptr)
  ------------------
  |  Branch (953:7): [True: 0, False: 3.41k]
  ------------------
  954|      0|		{
  955|      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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  956|      0|			return {};
  957|      0|		}
  958|       |
  959|  3.41k|		light_pcapng_file_info* fileInfo = light_pcang_get_file_info(toLightPcapNgT(m_LightPcapNg));
  960|  3.41k|		if (fileInfo == nullptr || fileInfo->os_desc == nullptr || fileInfo->os_desc_size == 0)
  ------------------
  |  Branch (960:7): [True: 8, False: 3.40k]
  |  Branch (960:30): [True: 1.11k, False: 2.28k]
  |  Branch (960:62): [True: 0, False: 2.28k]
  ------------------
  961|  1.12k|			return {};
  962|       |
  963|  2.28k|		return std::string(fileInfo->os_desc, fileInfo->os_desc_size);
  964|  3.41k|	}
_ZNK4pcpp22PcapNgFileReaderDevice11getHardwareEv:
  967|  3.41k|	{
  968|  3.41k|		if (m_LightPcapNg == nullptr)
  ------------------
  |  Branch (968:7): [True: 0, False: 3.41k]
  ------------------
  969|      0|		{
  970|      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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  971|      0|			return {};
  972|      0|		}
  973|       |
  974|  3.41k|		light_pcapng_file_info* fileInfo = light_pcang_get_file_info(toLightPcapNgT(m_LightPcapNg));
  975|  3.41k|		if (fileInfo == nullptr || fileInfo->hardware_desc == nullptr || fileInfo->hardware_desc_size == 0)
  ------------------
  |  Branch (975:7): [True: 8, False: 3.40k]
  |  Branch (975:30): [True: 3.16k, False: 236]
  |  Branch (975:68): [True: 0, False: 236]
  ------------------
  976|  3.17k|			return {};
  977|       |
  978|    236|		return std::string(fileInfo->hardware_desc, fileInfo->hardware_desc_size);
  979|  3.41k|	}
_ZNK4pcpp22PcapNgFileReaderDevice21getCaptureApplicationEv:
  982|  3.41k|	{
  983|  3.41k|		if (m_LightPcapNg == nullptr)
  ------------------
  |  Branch (983:7): [True: 0, False: 3.41k]
  ------------------
  984|      0|		{
  985|      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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  986|      0|			return {};
  987|      0|		}
  988|       |
  989|  3.41k|		light_pcapng_file_info* fileInfo = light_pcang_get_file_info(toLightPcapNgT(m_LightPcapNg));
  990|  3.41k|		if (fileInfo == nullptr || fileInfo->user_app_desc == nullptr || fileInfo->user_app_desc_size == 0)
  ------------------
  |  Branch (990:7): [True: 8, False: 3.40k]
  |  Branch (990:30): [True: 640, False: 2.76k]
  |  Branch (990:68): [True: 0, False: 2.76k]
  ------------------
  991|    648|			return {};
  992|       |
  993|  2.76k|		return std::string(fileInfo->user_app_desc, fileInfo->user_app_desc_size);
  994|  3.41k|	}
_ZNK4pcpp22PcapNgFileReaderDevice21getCaptureFileCommentEv:
  997|  3.41k|	{
  998|  3.41k|		if (m_LightPcapNg == nullptr)
  ------------------
  |  Branch (998:7): [True: 0, False: 3.41k]
  ------------------
  999|      0|		{
 1000|      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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1001|      0|			return {};
 1002|      0|		}
 1003|       |
 1004|  3.41k|		light_pcapng_file_info* fileInfo = light_pcang_get_file_info(toLightPcapNgT(m_LightPcapNg));
 1005|  3.41k|		if (fileInfo == nullptr || fileInfo->file_comment == nullptr || fileInfo->file_comment_size == 0)
  ------------------
  |  Branch (1005:7): [True: 8, False: 3.40k]
  |  Branch (1005:30): [True: 3.06k, False: 338]
  |  Branch (1005:67): [True: 0, False: 338]
  ------------------
 1006|  3.07k|			return {};
 1007|       |
 1008|    338|		return std::string(fileInfo->file_comment, fileInfo->file_comment_size);
 1009|  3.41k|	}
PcapFileDevice.cpp:_ZN4pcpp12_GLOBAL__N_119toLightPcapNgHandleEP15_light_pcapng_t:
   28|  3.41k|		{
   29|  3.41k|			return reinterpret_cast<internal::LightPcapNgHandle*>(pcapngHandle);
   30|  3.41k|		}
PcapFileDevice.cpp:_ZN4pcpp12_GLOBAL__N_114toLightPcapNgTEPNS_8internal17LightPcapNgHandleE:
   36|   189k|		{
   37|   189k|			return reinterpret_cast<light_pcapng_t*>(pcapngHandle);
   38|   189k|		}

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

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

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

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

