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

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

_ZN4pcpp6Logger11getInstanceEv:
  367|  22.0M|		{
  368|  22.0M|			static Logger instance;
  369|  22.0M|			return instance;
  370|  22.0M|		}
_ZN4pcpp6Logger12suppressLogsEv:
  319|  3.45k|		{
  320|  3.45k|			m_LogsEnabled = false;
  321|  3.45k|		}
_ZN4pcpp9LogSourceC2ENS_9LogModuleEPKcS3_i:
  137|   181k|		    : file(file), function(function), line(line), logModule(logModule)
  138|   181k|		{}
_ZN4pcpp8internal10LogContext4initENS_8LogLevelERKNS_9LogSourceE:
  187|   181k|			{
  188|   181k|				m_Source = source;
  189|   181k|				m_Level = level;
  190|   181k|				m_Stream.clear();
  191|   181k|				m_Stream.str({});
  192|   181k|			}
_ZNK4pcpp6Logger14isDebugEnabledENS_9LogModuleE:
  278|  80.9k|		{
  279|  80.9k|			return m_LogModulesArray[module] == LogLevel::Debug;
  280|  80.9k|		}
_ZNK4pcpp6Logger9shouldLogENS_8LogLevelENS_9LogModuleE:
  287|  21.9M|		{
  288|  21.9M|			return level != LogLevel::Off && m_LogModulesArray[module] >= level;
  ------------------
  |  Branch (288:11): [True: 21.9M, False: 0]
  |  Branch (288:37): [True: 181k, False: 21.7M]
  ------------------
  289|  21.9M|		}
_ZN4pcpp8internal10LogContextlsIA52_cEERS1_RKT_:
  198|  4.43k|			{
  199|  4.43k|				m_Stream << value;
  200|  4.43k|				return *this;
  201|  4.43k|			}
_ZN4pcpp8internal10LogContextlsINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEERS1_RKT_:
  198|    195|			{
  199|    195|				m_Stream << value;
  200|    195|				return *this;
  201|    195|			}
_ZN4pcpp8internal10LogContextlsIA2_cEERS1_RKT_:
  198|    195|			{
  199|    195|				m_Stream << value;
  200|    195|				return *this;
  201|    195|			}
_ZN4pcpp8internal10LogContextlsIA20_cEERS1_RKT_:
  198|    195|			{
  199|    195|				m_Stream << value;
  200|    195|				return *this;
  201|    195|			}
_ZN4pcpp8internal10LogContextlsIA46_cEERS1_RKT_:
  198|  7.82k|			{
  199|  7.82k|				m_Stream << value;
  200|  7.82k|				return *this;
  201|  7.82k|			}
_ZN4pcpp8internal10LogContextlsIA86_cEERS1_RKT_:
  198|    953|			{
  199|    953|				m_Stream << value;
  200|    953|				return *this;
  201|    953|			}
_ZN4pcpp8internal10LogContextlsIA26_cEERS1_RKT_:
  198|    398|			{
  199|    398|				m_Stream << value;
  200|    398|				return *this;
  201|    398|			}
_ZN4pcpp8internal10LogContextlsIA31_cEERS1_RKT_:
  198|  33.6k|			{
  199|  33.6k|				m_Stream << value;
  200|  33.6k|				return *this;
  201|  33.6k|			}
_ZN4pcpp8internal10LogContextlsIA25_cEERS1_RKT_:
  198|  37.6k|			{
  199|  37.6k|				m_Stream << value;
  200|  37.6k|				return *this;
  201|  37.6k|			}
_ZN4pcpp8internal10LogContextlsIA50_cEERS1_RKT_:
  198|  3.97k|			{
  199|  3.97k|				m_Stream << value;
  200|  3.97k|				return *this;
  201|  3.97k|			}
_ZN4pcpp8internal10LogContextlsIA77_cEERS1_RKT_:
  198|     79|			{
  199|     79|				m_Stream << value;
  200|     79|				return *this;
  201|     79|			}
_ZN4pcpp8internal10LogContextlsIA70_cEERS1_RKT_:
  198|  1.71k|			{
  199|  1.71k|				m_Stream << value;
  200|  1.71k|				return *this;
  201|  1.71k|			}
_ZN4pcpp8internal10LogContextlsIA39_cEERS1_RKT_:
  198|  3.79k|			{
  199|  3.79k|				m_Stream << value;
  200|  3.79k|				return *this;
  201|  3.79k|			}
_ZN4pcpp8internal10LogContextlsIA21_cEERS1_RKT_:
  198|    198|			{
  199|    198|				m_Stream << value;
  200|    198|				return *this;
  201|    198|			}
_ZN4pcpp8internal10LogContextlsIA54_cEERS1_RKT_:
  198|  1.26k|			{
  199|  1.26k|				m_Stream << value;
  200|  1.26k|				return *this;
  201|  1.26k|			}
_ZN4pcpp8internal10LogContextlsIA44_cEERS1_RKT_:
  198|  1.77k|			{
  199|  1.77k|				m_Stream << value;
  200|  1.77k|				return *this;
  201|  1.77k|			}
_ZN4pcpp8internal10LogContextlsIA33_cEERS1_RKT_:
  198|    616|			{
  199|    616|				m_Stream << value;
  200|    616|				return *this;
  201|    616|			}
_ZN4pcpp8internal10LogContextlsIA45_cEERS1_RKT_:
  198|  15.6k|			{
  199|  15.6k|				m_Stream << value;
  200|  15.6k|				return *this;
  201|  15.6k|			}
_ZN4pcpp8internal10LogContextlsIA36_cEERS1_RKT_:
  198|    382|			{
  199|    382|				m_Stream << value;
  200|    382|				return *this;
  201|    382|			}
_ZN4pcpp8internal10LogContextlsIA14_cEERS1_RKT_:
  198|    616|			{
  199|    616|				m_Stream << value;
  200|    616|				return *this;
  201|    616|			}
_ZN4pcpp8internal10LogContextlsIA72_cEERS1_RKT_:
  198|  5.32k|			{
  199|  5.32k|				m_Stream << value;
  200|  5.32k|				return *this;
  201|  5.32k|			}
_ZN4pcpp8internal10LogContextlsIiEERS1_RKT_:
  198|  57.0k|			{
  199|  57.0k|				m_Stream << value;
  200|  57.0k|				return *this;
  201|  57.0k|			}
_ZN4pcpp8internal10LogContextlsIA142_cEERS1_RKT_:
  198|  1.17k|			{
  199|  1.17k|				m_Stream << value;
  200|  1.17k|				return *this;
  201|  1.17k|			}
_ZN4pcpp8internal10LogContextlsIA76_cEERS1_RKT_:
  198|  2.58k|			{
  199|  2.58k|				m_Stream << value;
  200|  2.58k|				return *this;
  201|  2.58k|			}
_ZN4pcpp8internal10LogContextlsIA85_cEERS1_RKT_:
  198|  5.50k|			{
  199|  5.50k|				m_Stream << value;
  200|  5.50k|				return *this;
  201|  5.50k|			}
_ZN4pcpp8internal10LogContextlsIA75_cEERS1_RKT_:
  198|  3.64k|			{
  199|  3.64k|				m_Stream << value;
  200|  3.64k|				return *this;
  201|  3.64k|			}
_ZN4pcpp8internal10LogContextlsIA84_cEERS1_RKT_:
  198|  1.37k|			{
  199|  1.37k|				m_Stream << value;
  200|  1.37k|				return *this;
  201|  1.37k|			}
_ZN4pcpp8internal10LogContextlsIA69_cEERS1_RKT_:
  198|  3.95k|			{
  199|  3.95k|				m_Stream << value;
  200|  3.95k|				return *this;
  201|  3.95k|			}
_ZN4pcpp8internal10LogContextlsIA73_cEERS1_RKT_:
  198|    406|			{
  199|    406|				m_Stream << value;
  200|    406|				return *this;
  201|    406|			}
_ZN4pcpp8internal10LogContextlsIA98_cEERS1_RKT_:
  198|  17.5k|			{
  199|  17.5k|				m_Stream << value;
  200|  17.5k|				return *this;
  201|  17.5k|			}
_ZN4pcpp8internal10LogContextlsIA43_cEERS1_RKT_:
  198|  15.7k|			{
  199|  15.7k|				m_Stream << value;
  200|  15.7k|				return *this;
  201|  15.7k|			}
_ZN4pcpp8internal10LogContextlsIA38_cEERS1_RKT_:
  198|  2.78k|			{
  199|  2.78k|				m_Stream << value;
  200|  2.78k|				return *this;
  201|  2.78k|			}
_ZN4pcpp8internal10LogContextlsIA40_cEERS1_RKT_:
  198|  37.6k|			{
  199|  37.6k|				m_Stream << value;
  200|  37.6k|				return *this;
  201|  37.6k|			}
_ZN4pcpp8internal10LogContextlsIA41_cEERS1_RKT_:
  198|  1.77k|			{
  199|  1.77k|				m_Stream << value;
  200|  1.77k|				return *this;
  201|  1.77k|			}
_ZN4pcpp8internal10LogContextlsIA141_cEERS1_RKT_:
  198|  1.12k|			{
  199|  1.12k|				m_Stream << value;
  200|  1.12k|				return *this;
  201|  1.12k|			}
_ZN4pcpp8internal10LogContextlsIA67_cEERS1_RKT_:
  198|  4.38k|			{
  199|  4.38k|				m_Stream << value;
  200|  4.38k|				return *this;
  201|  4.38k|			}
_ZN4pcpp9LogSourceC2Ev:
  124|      2|		constexpr LogSource() = default;
_ZN4pcpp8internal10LogContextC2Ev:
  175|      2|			LogContext() = default;

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

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

_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEEC2Ev:
   59|  3.45k|		PointerVector() = default;
_ZNK4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|   152k|		{
  217|   152k|			return m_Vector.size();
  218|   152k|		}
_ZNK4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE2atEi:
  319|   125k|		{
  320|   125k|			return m_Vector.at(index);
  321|   125k|		}
_ZNK4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE4sizeEv:
  216|  77.2k|		{
  217|  77.2k|			return m_Vector.size();
  218|  77.2k|		}
_ZNK4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE2atEi:
  319|   211k|		{
  320|   211k|			return m_Vector.at(index);
  321|   211k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEED2Ev:
   78|  3.45k|		{
   79|  3.45k|			freeVectorUnsafe(m_Vector);
   80|  3.45k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  3.45k|		{
  363|  3.45k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 3.43k, False: 3.45k]
  ------------------
  364|  3.43k|			{
  365|  3.43k|				Deleter{}(obj);
  366|  3.43k|			}
  367|  3.45k|		}
_ZNK4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE5frontEv:
  238|  3.43k|		{
  239|  3.43k|			return m_Vector.front();
  240|  3.43k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|  3.43k|		{
  148|  3.43k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 3.43k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|  3.43k|			try
  154|  3.43k|			{
  155|  3.43k|				m_Vector.push_back(element);
  156|  3.43k|			}
  157|  3.43k|			catch (const std::exception&)
  158|  3.43k|			{
  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.43k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEEC2Ev:
   59|  64.5k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEEC2Ev:
   59|  8.50k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEED2Ev:
   78|  64.5k|		{
   79|  64.5k|			freeVectorUnsafe(m_Vector);
   80|  64.5k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  64.5k|		{
  363|  64.5k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 305k, False: 64.5k]
  ------------------
  364|   305k|			{
  365|   305k|				Deleter{}(obj);
  366|   305k|			}
  367|  64.5k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|   305k|		{
  173|   305k|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 305k]
  ------------------
  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|   305k|			m_Vector.push_back(element.get());
  182|   305k|			element.release();
  183|   305k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEED2Ev:
   78|  8.50k|		{
   79|  8.50k|			freeVectorUnsafe(m_Vector);
   80|  8.50k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  8.50k|		{
  363|  8.50k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 21.9k, False: 8.50k]
  ------------------
  364|  21.9k|			{
  365|  21.9k|				Deleter{}(obj);
  366|  21.9k|			}
  367|  8.50k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|  21.9k|		{
  148|  21.9k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 21.9k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|  21.9k|			try
  154|  21.9k|			{
  155|  21.9k|				m_Vector.push_back(element);
  156|  21.9k|			}
  157|  21.9k|			catch (const std::exception&)
  158|  21.9k|			{
  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.9k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|   117k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|   117k|		{
   79|   117k|			freeVectorUnsafe(m_Vector);
   80|   117k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|   117k|		{
  363|   117k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 175k, False: 117k]
  ------------------
  364|   175k|			{
  365|   175k|				Deleter{}(obj);
  366|   175k|			}
  367|   117k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|   175k|		{
  148|   175k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 175k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|   175k|			try
  154|   175k|			{
  155|   175k|				m_Vector.push_back(element);
  156|   175k|			}
  157|   175k|			catch (const std::exception&)
  158|   175k|			{
  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|   175k|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|      5|		{
  363|      5|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 1, False: 5]
  ------------------
  364|      1|			{
  365|      1|				Deleter{}(obj);
  366|      1|			}
  367|      5|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  1.06k|		{
  363|  1.06k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 53, False: 1.06k]
  ------------------
  364|     53|			{
  365|     53|				Deleter{}(obj);
  366|     53|			}
  367|  1.06k|		}
_ZNK4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE2atEi:
  319|  84.1k|		{
  320|  84.1k|			return m_Vector.at(index);
  321|  84.1k|		}
_ZNK4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE4sizeEv:
  216|  1.38k|		{
  217|  1.38k|			return m_Vector.size();
  218|  1.38k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEEC2Ev:
   59|   164k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEED2Ev:
   78|   164k|		{
   79|   164k|			freeVectorUnsafe(m_Vector);
   80|   164k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|   164k|		{
  363|   164k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 345k, False: 164k]
  ------------------
  364|   345k|			{
  365|   345k|				Deleter{}(obj);
  366|   345k|			}
  367|   164k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|   345k|		{
  173|   345k|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 345k]
  ------------------
  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|   345k|			m_Vector.push_back(element.get());
  182|   345k|			element.release();
  183|   345k|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|  1.06k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|  1.06k|		{
   79|  1.06k|			freeVectorUnsafe(m_Vector);
   80|  1.06k|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|     53|		{
  173|     53|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 53]
  ------------------
  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|     53|			m_Vector.push_back(element.get());
  182|     53|			element.release();
  183|     53|		}
_ZNK4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|    422|		{
  217|    422|			return m_Vector.size();
  218|    422|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|      5|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|      5|		{
   79|      5|			freeVectorUnsafe(m_Vector);
   80|      5|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|      1|		{
  173|      1|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 1]
  ------------------
  174|      0|			{
  175|      0|				throw std::invalid_argument("Element is nullptr");
  176|      0|			}
  177|       |
  178|       |			// Release is called after the raw pointer is already inserted into the vector to prevent
  179|       |			// a memory leak if push_back throws.
  180|       |			// cppcheck-suppress danglingLifetime
  181|      1|			m_Vector.push_back(element.get());
  182|      1|			element.release();
  183|      1|		}
_ZNK4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|      2|		{
  217|      2|			return m_Vector.size();
  218|      2|		}

_ZN4pcpp20byteArrayToHexStringEPKhmi:
   17|   189k|	{
   18|   189k|		if (stringSizeLimit <= 0)
  ------------------
  |  Branch (18:7): [True: 105k, False: 83.4k]
  ------------------
   19|   105k|		{
   20|   105k|			stringSizeLimit = static_cast<int>(byteArrSize);
   21|   105k|		}
   22|       |
   23|   189k|		std::stringstream dataStream;
   24|   189k|		dataStream << std::hex;
   25|  1.42M|		for (size_t i = 0; i < byteArrSize; ++i)
  ------------------
  |  Branch (25:22): [True: 1.25M, False: 175k]
  ------------------
   26|  1.25M|		{
   27|  1.25M|			if (i >= static_cast<size_t>(stringSizeLimit))
  ------------------
  |  Branch (27:8): [True: 14.4k, False: 1.23M]
  ------------------
   28|  14.4k|			{
   29|  14.4k|				break;
   30|  14.4k|			}
   31|       |
   32|  1.23M|			dataStream << std::setw(2) << std::setfill('0') << static_cast<int>(byteArr[i]);
   33|  1.23M|		}
   34|       |
   35|   189k|		return dataStream.str();
   36|   189k|	}
_ZN4pcpp20hexStringToByteArrayERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPhm:
   56|  67.6k|	{
   57|  67.6k|		if (hexString.size() % 2 != 0)
  ------------------
  |  Branch (57:7): [True: 0, False: 67.6k]
  ------------------
   58|      0|		{
   59|      0|			PCPP_LOG_ERROR("Input string is in odd size");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE CommonLogModuleGenericUtils
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE CommonLogModuleGenericUtils
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   60|      0|			return 0;
   61|      0|		}
   62|       |
   63|  67.6k|		memset(resultByteArr, 0, resultByteArrSize);
   64|   524k|		for (size_t i = 0; i < hexString.length(); i += 2)
  ------------------
  |  Branch (64:22): [True: 456k, False: 67.6k]
  ------------------
   65|   456k|		{
   66|   456k|			if (i >= resultByteArrSize * 2)
  ------------------
  |  Branch (66:8): [True: 0, False: 456k]
  ------------------
   67|      0|			{
   68|      0|				return resultByteArrSize;
   69|      0|			}
   70|       |
   71|   456k|			const int firstChar = char2int(hexString[i]);
   72|   456k|			const int secondChar = char2int(hexString[i + 1]);
   73|   456k|			if (firstChar < 0 || secondChar < 0)
  ------------------
  |  Branch (73:8): [True: 0, False: 456k]
  |  Branch (73:25): [True: 0, False: 456k]
  ------------------
   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|   456k|			resultByteArr[i / 2] = (firstChar << 4) | secondChar;
   81|   456k|		}
   82|       |
   83|  67.6k|		return hexString.length() / 2;
   84|  67.6k|	}
_ZN4pcpp21cross_platform_memmemEPKcmS1_m:
   87|  63.5k|	{
   88|  63.5k|		char* ptr = const_cast<char*>(haystack);
   89|   432k|		while (needleLen <= (haystackLen - (ptr - haystack)))
  ------------------
  |  Branch (89:10): [True: 431k, False: 887]
  ------------------
   90|   431k|		{
   91|   431k|			if (nullptr !=
  ------------------
  |  Branch (91:8): [True: 407k, False: 23.7k]
  ------------------
   92|   431k|			    (ptr = static_cast<char*>(memchr(ptr, static_cast<int>(*needle), haystackLen - (ptr - haystack)))))
   93|   407k|			{
   94|       |				// check if there is room to do a memcmp
   95|   407k|				if (needleLen > (haystackLen - (ptr - haystack)))
  ------------------
  |  Branch (95:9): [True: 241, False: 407k]
  ------------------
   96|    241|				{
   97|    241|					return nullptr;
   98|    241|				}
   99|       |
  100|   407k|				if (0 == memcmp(ptr, needle, needleLen))
  ------------------
  |  Branch (100:9): [True: 38.6k, False: 368k]
  ------------------
  101|  38.6k|				{
  102|  38.6k|					return ptr;
  103|  38.6k|				}
  104|   368k|				++ptr;
  105|   368k|			}
  106|  23.7k|			else
  107|  23.7k|			{
  108|  23.7k|				break;
  109|  23.7k|			}
  110|   431k|		}
  111|       |
  112|  24.5k|		return nullptr;
  113|  63.5k|	}
GeneralUtils.cpp:_ZN4pcppL8char2intEc:
   39|   913k|	{
   40|   913k|		if (input >= '0' && input <= '9')
  ------------------
  |  Branch (40:7): [True: 913k, False: 0]
  |  Branch (40:23): [True: 770k, False: 142k]
  ------------------
   41|   770k|		{
   42|   770k|			return input - '0';
   43|   770k|		}
   44|   142k|		if (input >= 'A' && input <= 'F')
  ------------------
  |  Branch (44:7): [True: 142k, False: 0]
  |  Branch (44:23): [True: 0, False: 142k]
  ------------------
   45|      0|		{
   46|      0|			return input - 'A' + 10;
   47|      0|		}
   48|   142k|		if (input >= 'a' && input <= 'f')
  ------------------
  |  Branch (48:7): [True: 142k, False: 0]
  |  Branch (48:23): [True: 142k, False: 0]
  ------------------
   49|   142k|		{
   50|   142k|			return input - 'a' + 10;
   51|   142k|		}
   52|      0|		return -1;
   53|   142k|	}

_ZNK4pcpp11IPv4Address8toStringEv:
   32|   596k|	{
   33|   596k|		char addrBuffer[INET_ADDRSTRLEN];
   34|       |
   35|   596k|		if (inet_ntop(AF_INET, toBytes(), addrBuffer, sizeof(addrBuffer)) != nullptr)
  ------------------
  |  Branch (35:7): [True: 596k, False: 0]
  ------------------
   36|   596k|		{
   37|   596k|			return addrBuffer;
   38|   596k|		}
   39|       |
   40|      0|		return {};
   41|   596k|	}
_ZN4pcpp11IPv4AddressC2EPKhm:
   50|  10.7k|	{
   51|  10.7k|		if (bytes == nullptr)
  ------------------
  |  Branch (51:7): [True: 0, False: 10.7k]
  ------------------
   52|      0|		{
   53|      0|			throw std::invalid_argument("Buffer pointer is null");
   54|      0|		}
   55|       |
   56|  10.7k|		if (size < 4)
  ------------------
  |  Branch (56:7): [True: 0, False: 10.7k]
  ------------------
   57|      0|		{
   58|      0|			throw std::out_of_range("Buffer size is smaller than IPv4 address size");
   59|      0|		}
   60|  10.7k|		memcpy(m_Bytes.data(), bytes, 4 * sizeof(uint8_t));
   61|  10.7k|	}
_ZN4pcpp11IPv4AddressC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   64|  76.8k|	{
   65|  76.8k|		if (inet_pton(AF_INET, addrAsString.data(), m_Bytes.data()) <= 0)
  ------------------
  |  Branch (65:7): [True: 87, False: 76.7k]
  ------------------
   66|     87|		{
   67|     87|			throw std::invalid_argument("Not a valid IPv4 address: " + addrAsString);
   68|     87|		}
   69|  76.8k|	}
_ZNK4pcpp11IPv6Address8toStringEv:
  102|   109k|	{
  103|   109k|		char addrBuffer[INET6_ADDRSTRLEN];
  104|       |
  105|   109k|		if (inet_ntop(AF_INET6, toBytes(), addrBuffer, sizeof(addrBuffer)) != nullptr)
  ------------------
  |  Branch (105:7): [True: 109k, False: 0]
  ------------------
  106|   109k|		{
  107|   109k|			return addrBuffer;
  108|   109k|		}
  109|       |
  110|      0|		return {};
  111|   109k|	}
_ZN4pcpp11IPv6AddressC2EPKhm:
  119|   156k|	{
  120|   156k|		if (bytes == nullptr)
  ------------------
  |  Branch (120:7): [True: 0, False: 156k]
  ------------------
  121|      0|		{
  122|      0|			throw std::invalid_argument("Buffer pointer is null");
  123|      0|		}
  124|       |
  125|   156k|		if (size < 16)
  ------------------
  |  Branch (125:7): [True: 0, False: 156k]
  ------------------
  126|      0|		{
  127|      0|			throw std::out_of_range("Buffer size is smaller than IPv6 address size");
  128|      0|		}
  129|   156k|		std::memcpy(m_Bytes.data(), bytes, 16 * sizeof(uint8_t));
  130|   156k|	}
_ZN4pcpp11IPv6AddressC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  133|      2|	{
  134|      2|		if (inet_pton(AF_INET6, addrAsString.data(), m_Bytes.data()) <= 0)
  ------------------
  |  Branch (134:7): [True: 0, False: 2]
  ------------------
  135|      0|		{
  136|      0|			throw std::invalid_argument("Not a valid IPv6 address: " + addrAsString);
  137|      0|		}
  138|      2|	}
_ZNK4pcpp11IPv6Address6copyToEPhm:
  149|  46.2k|	{
  150|  46.2k|		const size_t requiredSize = m_Bytes.size();
  151|       |
  152|  46.2k|		if (buffer == nullptr)
  ------------------
  |  Branch (152:7): [True: 0, False: 46.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|  46.2k|		if (size < requiredSize)
  ------------------
  |  Branch (162:7): [True: 0, False: 46.2k]
  ------------------
  163|      0|		{
  164|      0|			return requiredSize;
  165|      0|		}
  166|       |
  167|  46.2k|		std::memcpy(buffer, m_Bytes.data(), requiredSize);
  168|  46.2k|		return requiredSize;
  169|  46.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|   181k|	{
   90|   181k|		if (m_UseContextPooling)
  ------------------
  |  Branch (90:7): [True: 181k, False: 0]
  ------------------
   91|   181k|		{
   92|   181k|			auto ctx = m_LogContextPool.acquireObject();
   93|   181k|			ctx->init(level, source);
   94|   181k|			return ctx;
   95|   181k|		}
   96|      0|		return std::make_unique<internal::LogContext>(level, source);
   97|   181k|	}
_ZN4pcpp6Logger4emitENSt3__110unique_ptrINS_8internal10LogContextENS1_14default_deleteIS4_EEEE:
  100|   181k|	{
  101|   181k|		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|   181k|		if (m_UseContextPooling)
  ------------------
  |  Branch (103:7): [True: 181k, False: 0]
  ------------------
  104|   181k|		{
  105|   181k|			m_LogContextPool.releaseObject(std::move(message));
  106|   181k|		}
  107|   181k|	}
_ZN4pcpp6Logger4emitERKNS_9LogSourceENS_8LogLevelERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
  110|   181k|	{
  111|       |		// If the log level is an error, save the error to the last error message variable.
  112|   181k|		if (logLevel == LogLevel::Error)
  ------------------
  |  Branch (112:7): [True: 180k, False: 1.19k]
  ------------------
  113|   180k|		{
  114|   180k|			static_assert(m_LastError.size() >= 1,
  115|   180k|			              "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|   180k|			auto const copied = message.copy(m_LastError.data(), m_LastError.size() - 1);
  119|   180k|			m_LastError[copied] = '\0';
  120|   180k|		}
  121|   181k|		if (m_LogsEnabled)
  ------------------
  |  Branch (121:7): [True: 0, False: 181k]
  ------------------
  122|      0|		{
  123|      0|			m_LogPrinter(logLevel, message, source.file, source.function, source.line);
  124|      0|		}
  125|   181k|	}

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

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

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

_ZNK4pcpp10Asn1Record10getTagTypeEv:
  164|  67.2k|		{
  165|  67.2k|			return m_TagType;
  166|  67.2k|		}
_ZNK4pcpp10Asn1Record14getTotalLengthEv:
  176|   750k|		{
  177|   750k|			return m_TotalLength;
  178|   750k|		}
_ZN4pcpp21Asn1ConstructedRecord13getSubRecordsEv:
  313|  89.8k|		{
  314|  89.8k|			decodeValueIfNeeded();
  315|  89.8k|			return m_SubRecords;
  316|  89.8k|		};
_ZNK4pcpp14Asn1NullRecord11decodeValueEPKh:
  689|    410|		{}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EE11decodeValueEPKh:
  554|   111k|		{
  555|   111k|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  556|   111k|		}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EE8getValueEv:
  538|  1.35k|		{
  539|  1.35k|			decodeValueIfNeeded();
  540|  1.35k|			return m_Value;
  541|  1.35k|		};
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE12EE11decodeValueEPKh:
  554|    115|		{
  555|    115|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  556|    115|		}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE22EE11decodeValueEPKh:
  554|     92|		{
  555|     92|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  556|     92|		}
_ZN4pcpp10Asn1Record6castAsINS_18Asn1SequenceRecordEEEPT_v:
  188|  82.5k|		{
  189|  82.5k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  82.5k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 2.24k, False: 80.3k]
  ------------------
  191|  2.24k|			{
  192|  2.24k|				throw std::bad_cast();
  193|  2.24k|			}
  194|  80.3k|			return result;
  195|  82.5k|		}
_ZNK4pcpp17Asn1IntegerRecord11getIntValueIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS4_EE5valueEiE4typeELi0EEES4_v:
  425|  5.43k|		{
  426|  5.43k|			decodeValueIfNeeded();
  427|  5.43k|			return m_Value.getInt<T>();
  428|  5.43k|		}
_ZNK4pcpp17Asn1IntegerRecord6BigInt6getIntIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS5_EE5valueEiE4typeELi0EEES5_v:
  477|  5.43k|			{
  478|  5.43k|				if (!canFit<T>())
  ------------------
  |  Branch (478:9): [True: 0, False: 5.43k]
  ------------------
  479|      0|				{
  480|      0|					throw std::overflow_error("Value cannot fit into requested int type");
  481|      0|				}
  482|       |
  483|  5.43k|				std::stringstream sstream;
  484|  5.43k|				sstream << std::hex << m_Value;
  485|       |
  486|  5.43k|				uint64_t result;
  487|  5.43k|				sstream >> result;
  488|  5.43k|				return static_cast<T>(result);
  489|  5.43k|			}
_ZNK4pcpp17Asn1IntegerRecord6BigInt6canFitIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS5_EE5valueEiE4typeELi0EEEbv:
  492|  5.43k|			{
  493|  5.43k|				return sizeof(T) >= (m_Value.size() + 1) / 2;
  494|  5.43k|			}
_ZN4pcpp10Asn1Record6castAsINS_21Asn1OctetStringRecordEEEPT_v:
  188|  1.35k|		{
  189|  1.35k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  1.35k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 0, False: 1.35k]
  ------------------
  191|      0|			{
  192|      0|				throw std::bad_cast();
  193|      0|			}
  194|  1.35k|			return result;
  195|  1.35k|		}
_ZN4pcpp10Asn1Record6castAsINS_21Asn1ConstructedRecordEEEPT_v:
  188|  23.7k|		{
  189|  23.7k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  23.7k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 580, False: 23.1k]
  ------------------
  191|    580|			{
  192|    580|				throw std::bad_cast();
  193|    580|			}
  194|  23.1k|			return result;
  195|  23.7k|		}
_ZN4pcpp18Asn1SequenceRecordC2Ev:
  368|  85.7k|		Asn1SequenceRecord() = default;
_ZN4pcpp21Asn1ConstructedRecordC2Ev:
  319|   164k|		Asn1ConstructedRecord() = default;
_ZN4pcpp13Asn1SetRecordC2Ev:
  387|  13.4k|		Asn1SetRecord() = default;
_ZN4pcpp17Asn1IntegerRecordC2Ev:
  447|  89.4k|		Asn1IntegerRecord() = default;
_ZN4pcpp19Asn1PrimitiveRecordC2Ev:
  398|  98.3k|		Asn1PrimitiveRecord() = default;
_ZN4pcpp20Asn1EnumeratedRecordC2Ev:
  527|  22.6k|		Asn1EnumeratedRecord() = default;
_ZN4pcpp21Asn1OctetStringRecordC2Ev:
  594|   125k|		Asn1OctetStringRecord() = default;
_ZN4pcpp20Asn1UTF8StringRecordC2Ev:
  612|    115|		Asn1UTF8StringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE12EEC2Ev:
  544|    115|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  545|    115|		{}
_ZN4pcpp25Asn1PrintableStringRecordC2Ev:
  628|     30|		Asn1PrintableStringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE19EEC2Ev:
  544|     30|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  545|     30|		{}
_ZN4pcpp19Asn1IA5StringRecordC2Ev:
  644|     99|		Asn1IA5StringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE22EEC2Ev:
  544|     99|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  545|     99|		{}
_ZN4pcpp17Asn1BooleanRecordC2Ev:
  672|  5.32k|		Asn1BooleanRecord() = default;
_ZN4pcpp19Asn1BitStringRecordC2Ev:
  925|  1.14k|		Asn1BitStringRecord() = default;
_ZN4pcpp26Asn1ObjectIdentifierRecordC2Ev:
  780|  1.44k|		Asn1ObjectIdentifierRecord() = default;
_ZN4pcpp17Asn1UtcTimeRecordC2Ev:
  840|    135|		Asn1UtcTimeRecord() = default;
_ZN4pcpp14Asn1TimeRecordC2Ev:
  809|  1.03k|		Asn1TimeRecord() = default;
_ZN4pcpp25Asn1GeneralizedTimeRecordC2Ev:
  864|    895|		Asn1GeneralizedTimeRecord() = default;
_ZN4pcpp17Asn1GenericRecordC2Ev:
  278|  23.5k|		Asn1GenericRecord() = default;
_ZN4pcpp10Asn1RecordC2Ev:
  207|   412k|		Asn1Record() = default;
_ZN4pcpp10Asn1RecordD2Ev:
  197|   412k|		virtual ~Asn1Record() = default;
_ZN4pcpp17Asn1IntegerRecord6BigIntC2Ev:
  458|  89.4k|			BigInt() = default;
_ZN4pcpp20Asn1ObjectIdentifierC2Ev:
  747|  1.44k|		Asn1ObjectIdentifier() = default;
_ZN4pcpp19Asn1BitStringRecord6BitSetC2Ev:
  904|  1.14k|			BitSet() = default;
_ZN4pcpp17Asn1GenericRecordD2Ev:
  268|  23.5k|		~Asn1GenericRecord() override = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EEC2Ev:
  544|   125k|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  545|   125k|		{}
_ZN4pcpp10Asn1Record6castAsINS_20Asn1EnumeratedRecordEEEPT_v:
  188|  5.43k|		{
  189|  5.43k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  5.43k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 0, False: 5.43k]
  ------------------
  191|      0|			{
  192|      0|				throw std::bad_cast();
  193|      0|			}
  194|  5.43k|			return result;
  195|  5.43k|		}

_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2EhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  265|  62.8k|			prefix_and_ip(uint8_t prefixVal, const std::string& ipAddrVal) : prefix(prefixVal), ipAddr(ipAddrVal)
  266|  62.8k|			{}
_ZN4pcpp8BgpLayer9isBgpPortEtt:
   66|   283k|		{
   67|   283k|			return portSrc == 179 || portDst == 179;
  ------------------
  |  Branch (67:11): [True: 15.7k, False: 268k]
  |  Branch (67:29): [True: 32.8k, False: 235k]
  ------------------
   68|   283k|		}
_ZNK4pcpp8BgpLayer16getOsiModelLayerEv:
   92|  17.8k|		{
   93|  17.8k|			return OsiModelApplicationLayer;
   94|  17.8k|		}
_ZN4pcpp8BgpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  107|   161k|		    : Layer(data, dataLen, prevLayer, packet, BGP)
  108|   161k|		{}
_ZNK4pcpp8BgpLayer14getBasicHeaderEv:
  111|  1.42M|		{
  112|  1.42M|			return reinterpret_cast<bgp_common_header*>(m_Data);
  113|  1.42M|		}
_ZN4pcpp19BgpOpenMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  172|  23.9k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  173|  23.9k|		{}
_ZNK4pcpp19BgpOpenMessageLayer16getOpenMsgHeaderEv:
  194|  31.5k|		{
  195|  31.5k|			return reinterpret_cast<bgp_open_message*>(m_Data);
  196|  31.5k|		}
_ZNK4pcpp19BgpOpenMessageLayer17getBgpMessageTypeEv:
  234|  13.4k|		{
  235|  13.4k|			return BgpLayer::Open;
  236|  13.4k|		}
_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2Ev:
  259|  13.7k|			prefix_and_ip() : prefix(0), ipAddr(IPv4Address::Zero)
  260|  13.7k|			{}
_ZN4pcpp21BgpUpdateMessageLayer14path_attributeC2Ev:
  285|  32.4k|			{}
_ZN4pcpp21BgpUpdateMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  302|   127k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  303|   127k|		{}
_ZNK4pcpp21BgpUpdateMessageLayer17getBgpMessageTypeEv:
  397|  50.3k|		{
  398|  50.3k|			return BgpLayer::Update;
  399|  50.3k|		}
_ZN4pcpp27BgpNotificationMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  434|  4.01k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  435|  4.01k|		{}
_ZNK4pcpp27BgpNotificationMessageLayer17getBgpMessageTypeEv:
  499|  2.68k|		{
  500|  2.68k|			return BgpLayer::Notification;
  501|  2.68k|		}
_ZN4pcpp24BgpKeepaliveMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  523|  3.80k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  524|  3.80k|		{}
_ZNK4pcpp24BgpKeepaliveMessageLayer17getBgpMessageTypeEv:
  540|  3.04k|		{
  541|  3.04k|			return BgpLayer::Keepalive;
  542|  3.04k|		}
_ZN4pcpp27BgpRouteRefreshMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  570|  2.66k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  571|  2.66k|		{}
_ZNK4pcpp27BgpRouteRefreshMessageLayer17getBgpMessageTypeEv:
  589|  2.13k|		{
  590|  2.13k|			return BgpLayer::RouteRefresh;
  591|  2.13k|		}
_ZN4pcpp19BgpOpenMessageLayer18optional_parameterC2Ev:
  157|  14.3k|			optional_parameter() = default;

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

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

_ZNK4pcpp9DhcpLayer9getOpCodeEv:
  609|  2.91k|		{
  610|  2.91k|			return static_cast<BootpOpCodes>(getDhcpHeader()->opCode);
  611|  2.91k|		}
_ZNK4pcpp9DhcpLayer13getDhcpHeaderEv:
  603|  23.3k|		{
  604|  23.3k|			return reinterpret_cast<dhcp_header*>(m_Data);
  605|  23.3k|		}
_ZNK4pcpp9DhcpLayer18getClientIpAddressEv:
  616|  2.91k|		{
  617|  2.91k|			return getDhcpHeader()->clientIpAddress;
  618|  2.91k|		}
_ZNK4pcpp9DhcpLayer16getYourIpAddressEv:
  643|  2.91k|		{
  644|  2.91k|			return getDhcpHeader()->yourIpAddress;
  645|  2.91k|		}
_ZNK4pcpp9DhcpLayer18getServerIpAddressEv:
  630|  2.91k|		{
  631|  2.91k|			return getDhcpHeader()->serverIpAddress;
  632|  2.91k|		}
_ZNK4pcpp9DhcpLayer19getGatewayIpAddressEv:
  657|  2.91k|		{
  658|  2.91k|			return getDhcpHeader()->gatewayIpAddress;
  659|  2.91k|		}
_ZNK4pcpp10DhcpOption16getValueAsIpAddrEv:
  400|  2.87k|		{
  401|  2.87k|			return getValueAs<uint32_t>();
  402|  2.87k|		}
_ZNK4pcpp10DhcpOption16getValueAsStringEi:
  420|  2.87k|		{
  421|       |			// TODO: This will burn if valueOffset is negative.
  422|       |			// Should negative offsets even be allowed? Potentially change it to size_t?
  423|  2.87k|			if (m_Data == nullptr || getDataSize() < static_cast<size_t>(valueOffset) + 1)
  ------------------
  |  Branch (423:8): [True: 0, False: 2.87k]
  |  Branch (423:29): [True: 220, False: 2.65k]
  ------------------
  424|    220|				return "";
  425|       |
  426|  2.65k|			return std::string(reinterpret_cast<const char*>(m_Data->recordValue) + valueOffset,
  427|  2.65k|			                   static_cast<int>(m_Data->recordLen) - valueOffset);
  428|  2.87k|		}
_ZNK4pcpp10DhcpOption12getTotalSizeEv:
  471|  1.30M|		{
  472|  1.30M|			if (m_Data == nullptr)
  ------------------
  |  Branch (472:8): [True: 0, False: 1.30M]
  ------------------
  473|      0|				return 0;
  474|       |
  475|  1.30M|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (475:8): [True: 15.9k, False: 1.29M]
  ------------------
  476|  1.29M|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (476:8): [True: 993k, False: 300k]
  ------------------
  477|  1.00M|				return sizeof(uint8_t);
  478|       |
  479|   300k|			return sizeof(uint8_t) * 2 + static_cast<size_t>(m_Data->recordLen);
  480|  1.30M|		}
_ZNK4pcpp10DhcpOption11getDataSizeEv:
  483|  10.0k|		{
  484|  10.0k|			if (m_Data == nullptr)
  ------------------
  |  Branch (484:8): [True: 0, False: 10.0k]
  ------------------
  485|      0|				return 0;
  486|       |
  487|  10.0k|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (487:8): [True: 0, False: 10.0k]
  ------------------
  488|  10.0k|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (488:8): [True: 406, False: 9.64k]
  ------------------
  489|    406|				return 0;
  490|       |
  491|  9.64k|			return m_Data->recordLen;
  492|  10.0k|		}
_ZN4pcpp10DhcpOptionC2EPh:
  391|   279k|		explicit DhcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  392|   279k|		{}
_ZN4pcpp10DhcpOption9canAssignEPKhm:
  453|   279k|		{
  454|   279k|			auto data = reinterpret_cast<TLVRawData const*>(recordRawData);
  455|   279k|			if (data == nullptr)
  ------------------
  |  Branch (455:8): [True: 0, False: 279k]
  ------------------
  456|      0|				return false;
  457|       |
  458|   279k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (458:8): [True: 9.85k, False: 269k]
  ------------------
  459|  9.85k|				return false;
  460|       |
  461|   269k|			if (data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (461:8): [True: 3.20k, False: 265k]
  ------------------
  462|   265k|			    data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (462:8): [True: 200k, False: 65.1k]
  ------------------
  463|   204k|				return true;
  464|       |
  465|  65.1k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  466|   269k|		}
_ZN4pcpp9DhcpLayer11isDataValidEPKhm:
  595|  14.8k|		{
  596|  14.8k|			return canReinterpretAs<dhcp_header>(data, dataLen);
  597|  14.8k|		}
_ZN4pcpp9DhcpLayer14parseNextLayerEv:
  744|  14.6k|		{}
_ZNK4pcpp9DhcpLayer12getHeaderLenEv:
  748|   137k|		{
  749|   137k|			return m_DataLen;
  750|   137k|		}
_ZNK4pcpp9DhcpLayer16getOsiModelLayerEv:
  765|  2.91k|		{
  766|  2.91k|			return OsiModelApplicationLayer;
  767|  2.91k|		}
_ZNK4pcpp9DhcpLayer17getOptionsBasePtrEv:
  771|   134k|		{
  772|   134k|			return m_Data + sizeof(dhcp_header);
  773|   134k|		}
_ZN4pcpp9DhcpLayer11isDhcpPortsEtt:
  785|   317k|	{
  786|   317k|		return ((portSrc == 68 && portDst == 67) || (portSrc == 67 && portDst == 68) ||
  ------------------
  |  Branch (786:12): [True: 4.86k, False: 313k]
  |  Branch (786:29): [True: 1.56k, False: 3.30k]
  |  Branch (786:48): [True: 13.3k, False: 303k]
  |  Branch (786:65): [True: 13.2k, False: 55]
  ------------------
  787|   303k|		        (portSrc == 67 && portDst == 67));
  ------------------
  |  Branch (787:12): [True: 55, False: 303k]
  |  Branch (787:29): [True: 0, False: 55]
  ------------------
  788|   317k|	}
_ZN4pcpp9DhcpLayerD2Ev:
  592|  14.6k|		~DhcpLayer() override = default;

_ZN4pcpp12DhcpV6OptionC2EPh:
  192|  30.3k|		explicit DhcpV6Option(uint8_t* optionRawData) : TLVRecord(optionRawData)
  193|  30.3k|		{}
_ZN4pcpp11DhcpV6Layer14parseNextLayerEv:
  353|  18.3k|		{}
_ZNK4pcpp11DhcpV6Layer12getHeaderLenEv:
  357|  32.3k|		{
  358|  32.3k|			return m_DataLen;
  359|  32.3k|		}
_ZN4pcpp11DhcpV6Layer22computeCalculateFieldsEv:
  363|  3.53k|		{}
_ZNK4pcpp11DhcpV6Layer16getOsiModelLayerEv:
  368|  3.53k|		{
  369|  3.53k|			return OsiModelApplicationLayer;
  370|  3.53k|		}
_ZNK4pcpp11DhcpV6Layer17getOptionsBasePtrEv:
  374|  28.8k|		{
  375|  28.8k|			return m_Data + sizeof(dhcpv6_header);
  376|  28.8k|		}
_ZNK4pcpp11DhcpV6Layer13getDhcpHeaderEv:
  378|  10.6k|		{
  379|  10.6k|			return reinterpret_cast<dhcpv6_header*>(m_Data);
  380|  10.6k|		}
_ZN4pcpp11DhcpV6Layer12isDhcpV6PortEt:
  389|   268k|	{
  390|   268k|		return (port == 546) || (port == 547);
  ------------------
  |  Branch (390:10): [True: 12.0k, False: 256k]
  |  Branch (390:27): [True: 6.36k, False: 249k]
  ------------------
  391|   268k|	}
_ZN4pcpp11DhcpV6Layer11isDataValidEPKhm:
  394|  18.4k|	{
  395|  18.4k|		return data && dataLen >= sizeof(dhcpv6_header);
  ------------------
  |  Branch (395:10): [True: 18.4k, False: 0]
  |  Branch (395:18): [True: 18.3k, False: 130]
  ------------------
  396|  18.4k|	}

_ZN4pcpp8DnsLayer14parseNextLayerEv:
  354|  69.1k|		{}
_ZNK4pcpp8DnsLayer12getHeaderLenEv:
  359|   149k|		{
  360|   149k|			return m_DataLen;
  361|   149k|		}  // No layer above DNS
_ZN4pcpp8DnsLayer22computeCalculateFieldsEv:
  365|  9.66k|		{}
_ZNK4pcpp8DnsLayer16getOsiModelLayerEv:
  370|  13.1k|		{
  371|  13.1k|			return OsiModelApplicationLayer;
  372|  13.1k|		}
_ZN4pcpp15DnsOverTcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  440|  17.9k|		    : DnsLayer(data, dataLen, prevLayer, packet, sizeof(uint16_t))
  441|  17.9k|		{}
_ZN4pcpp8DnsLayer9isDnsPortEt:
  469|   879k|	{
  470|   879k|		switch (port)
  471|   879k|		{
  472|  36.7k|		case 53:
  ------------------
  |  Branch (472:3): [True: 36.7k, False: 843k]
  ------------------
  473|  42.3k|		case 5353:
  ------------------
  |  Branch (473:3): [True: 5.64k, False: 874k]
  ------------------
  474|  69.1k|		case 5355:
  ------------------
  |  Branch (474:3): [True: 26.7k, False: 853k]
  ------------------
  475|  69.1k|			return true;
  476|   810k|		default:
  ------------------
  |  Branch (476:3): [True: 810k, False: 69.1k]
  ------------------
  477|   810k|			return false;
  478|   879k|		}
  479|   879k|	}
_ZN4pcpp8DnsLayer11isDataValidEPKhmb:
  482|   523k|	{
  483|   523k|		size_t minSize = sizeof(dnshdr) + (dnsOverTcp ? sizeof(uint16_t) : 0);
  ------------------
  |  Branch (483:38): [True: 220k, False: 303k]
  ------------------
  484|   523k|		return data && dataLen >= minSize;
  ------------------
  |  Branch (484:10): [True: 523k, False: 0]
  |  Branch (484:18): [True: 465k, False: 57.9k]
  ------------------
  485|   523k|	}

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

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

_ZN4pcpp9DoIpLayer10isDoIpPortEt:
  667|   470k|	{
  668|   470k|		auto portAsEnum = static_cast<DoIpPorts>(port);
  669|   470k|		return (portAsEnum == DoIpPorts::TCP_UDP_PORT || portAsEnum == DoIpPorts::TLS_PORT);
  ------------------
  |  Branch (669:11): [True: 56.2k, False: 414k]
  |  Branch (669:52): [True: 0, False: 414k]
  ------------------
  670|   470k|	}
_ZNK4pcpp9DoIpLayer12getHeaderLenEv:
  628|  7.91k|		{
  629|  7.91k|			return m_DataLen;
  630|  7.91k|		}
_ZN4pcpp9DoIpLayer22computeCalculateFieldsEv:
  635|  8.83k|		{}
_ZNK4pcpp9DoIpLayer16getOsiModelLayerEv:
  638|  8.83k|		{
  639|  8.83k|			return OsiModelApplicationLayer;
  640|  8.83k|		}
_ZNK4pcpp21DoIpGenericHeaderNack14getPayloadTypeEv:
  792|  11.5k|		{
  793|  11.5k|			return DoIpPayloadTypes::GENERIC_HEADER_NACK;
  794|  11.5k|		}
_ZN4pcpp21DoIpGenericHeaderNack14isDataLenValidEm:
  800|  6.91k|		{
  801|  6.91k|			return (dataLen == FIXED_LEN);
  802|  6.91k|		}
_ZN4pcpp32DoIpVehicleIdentificationRequestC2EPhmPNS_5LayerEPNS_6PacketE:
  836|  3.61k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
  837|  3.61k|		{}
_ZNK4pcpp32DoIpVehicleIdentificationRequest14getPayloadTypeEv:
  844|  6.34k|		{
  845|  6.34k|			return DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST;
  846|  6.34k|		}
_ZN4pcpp32DoIpVehicleIdentificationRequest14isDataLenValidEm:
  852|  3.61k|		{
  853|  3.61k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
  854|  3.61k|		}
_ZNK4pcpp39DoIpVehicleIdentificationRequestWithEID14getPayloadTypeEv:
  892|  3.01k|		{
  893|  3.01k|			return DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID;
  894|  3.01k|		}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithEID14isDataLenValidEm:
  900|  1.69k|		{
  901|  1.69k|			return (dataLen == FIXED_LEN);
  902|  1.69k|		}
_ZNK4pcpp39DoIpVehicleIdentificationRequestWithVIN14getPayloadTypeEv:
  953|  2.92k|		{
  954|  2.92k|			return DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN;
  955|  2.92k|		}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithVIN14isDataLenValidEm:
  961|  1.62k|		{
  962|  1.62k|			return (dataLen == FIXED_LEN);
  963|  1.62k|		}
_ZNK4pcpp30DoIpVehicleAnnouncementMessage14getPayloadTypeEv:
 1070|  3.24k|		{
 1071|  3.24k|			return DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE;
 1072|  3.24k|		}
_ZN4pcpp30DoIpVehicleAnnouncementMessage14isDataLenValidEm:
 1078|  1.80k|		{
 1079|  1.80k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1079:12): [True: 1.80k, False: 0]
  |  Branch (1079:36): [True: 0, False: 0]
  ------------------
 1080|  1.80k|		}
_ZNK4pcpp28DoIpRoutingActivationRequest14getPayloadTypeEv:
 1178|  3.99k|		{
 1179|  3.99k|			return DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST;
 1180|  3.99k|		}
_ZN4pcpp28DoIpRoutingActivationRequest14isDataLenValidEm:
 1186|  2.22k|		{
 1187|  2.22k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1187:12): [True: 0, False: 2.22k]
  |  Branch (1187:36): [True: 2.22k, False: 0]
  ------------------
 1188|  2.22k|		}
_ZNK4pcpp29DoIpRoutingActivationResponse14getPayloadTypeEv:
 1291|  3.03k|		{
 1292|  3.03k|			return DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE;
 1293|  3.03k|		}
_ZN4pcpp29DoIpRoutingActivationResponse14isDataLenValidEm:
 1299|  1.68k|		{
 1300|  1.68k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1300:12): [True: 1.68k, False: 0]
  |  Branch (1300:36): [True: 0, False: 0]
  ------------------
 1301|  1.68k|		}
_ZN4pcpp21DoIpAliveCheckRequestC2EPhmPNS_5LayerEPNS_6PacketE:
 1343|  4.94k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
 1344|  4.94k|		{}
_ZNK4pcpp21DoIpAliveCheckRequest14getPayloadTypeEv:
 1351|  8.78k|		{
 1352|  8.78k|			return DoIpPayloadTypes::ALIVE_CHECK_REQUEST;
 1353|  8.78k|		}
_ZN4pcpp21DoIpAliveCheckRequest14isDataLenValidEm:
 1359|  4.94k|		{
 1360|  4.94k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
 1361|  4.94k|		}
_ZNK4pcpp22DoIpAliveCheckResponse14getPayloadTypeEv:
 1401|  5.21k|		{
 1402|  5.21k|			return DoIpPayloadTypes::ALIVE_CHECK_RESPONSE;
 1403|  5.21k|		}
_ZN4pcpp22DoIpAliveCheckResponse14isDataLenValidEm:
 1408|  2.89k|		{
 1409|  2.89k|			return (dataLen == FIXED_LEN);
 1410|  2.89k|		}
_ZN4pcpp23DoIpEntityStatusRequestC2EPhmPNS_5LayerEPNS_6PacketE:
 1445|  3.80k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
 1446|  3.80k|		{}
_ZNK4pcpp23DoIpEntityStatusRequest14getPayloadTypeEv:
 1453|  6.84k|		{
 1454|  6.84k|			return DoIpPayloadTypes::ENTITY_STATUS_REQUEST;
 1455|  6.84k|		}
_ZN4pcpp23DoIpEntityStatusRequest14isDataLenValidEm:
 1461|  3.93k|		{
 1462|  3.93k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
 1463|  3.93k|		}
_ZNK4pcpp24DoIpEntityStatusResponse14getPayloadTypeEv:
 1495|  8.67k|		{
 1496|  8.67k|			return DoIpPayloadTypes::ENTITY_STATUS_RESPONSE;
 1497|  8.67k|		}
_ZN4pcpp24DoIpEntityStatusResponse14isDataLenValidEm:
 1548|  5.20k|		{
 1549|  5.20k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1549:12): [True: 0, False: 5.20k]
  |  Branch (1549:36): [True: 5.20k, False: 0]
  ------------------
 1550|  5.20k|		}
_ZN4pcpp30DoIpDiagnosticPowerModeRequestC2EPhmPNS_5LayerEPNS_6PacketE:
 1592|  3.46k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
 1593|  3.46k|		{}
_ZNK4pcpp30DoIpDiagnosticPowerModeRequest14getPayloadTypeEv:
 1600|  5.83k|		{
 1601|  5.83k|			return DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST;
 1602|  5.83k|		}
_ZN4pcpp30DoIpDiagnosticPowerModeRequest14isDataLenValidEm:
 1608|  3.46k|		{
 1609|  3.46k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
 1610|  3.46k|		}
_ZNK4pcpp31DoIpDiagnosticPowerModeResponse14getPayloadTypeEv:
 1650|  2.30k|		{
 1651|  2.30k|			return DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE;
 1652|  2.30k|		}
_ZN4pcpp31DoIpDiagnosticPowerModeResponse14isDataLenValidEm:
 1658|  1.38k|		{
 1659|  1.38k|			return (dataLen == FIXED_LEN);
 1660|  1.38k|		}
_ZNK4pcpp21DoIpDiagnosticMessage14getPayloadTypeEv:
 1766|  9.23k|		{
 1767|  9.23k|			return DoIpPayloadTypes::DIAGNOSTIC_MESSAGE;
 1768|  9.23k|		}
_ZNK4pcpp21DoIpDiagnosticMessage12getHeaderLenEv:
 1772|  6.46k|		{
 1773|  6.46k|			return sizeof(doiphdr) + 2 * sizeof(uint16_t);
 1774|  6.46k|		}
_ZN4pcpp21DoIpDiagnosticMessage14isDataLenValidEm:
 1779|  5.53k|		{
 1780|  5.53k|			return (dataLen >= MIN_LEN);
 1781|  5.53k|		}
_ZN4pcpp33DoIpDiagnosticResponseMessageBase14isDataLenValidEm:
 1823|  1.58k|		{
 1824|  1.58k|			return (dataLen >= FIXED_LEN);
 1825|  1.58k|		}
_ZNK4pcpp24DoIpDiagnosticMessageAck14getPayloadTypeEv:
 1884|  1.22k|		{
 1885|  1.22k|			return DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK;
 1886|  1.22k|		}
_ZNK4pcpp25DoIpDiagnosticMessageNack14getPayloadTypeEv:
 1928|  1.50k|		{
 1929|  1.50k|			return DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK;
 1930|  1.50k|		}
_ZN4pcpp9DoIpLayer22isProtocolVersionValidEhhNS_16DoIpPayloadTypesE:
  673|  53.4k|	{
  674|  53.4k|		const DoIpProtocolVersion parsedVersion = static_cast<DoIpProtocolVersion>(version);
  675|       |
  676|  53.4k|		switch (parsedVersion)
  677|  53.4k|		{
  678|      0|		case DoIpProtocolVersion::RESERVED_VER:
  ------------------
  |  Branch (678:3): [True: 0, False: 53.4k]
  ------------------
  679|      0|		{
  680|      0|			PCPP_LOG_DEBUG("[Malformed doip packet]: Reserved ISO DoIP protocol version detected: 0x"
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  681|      0|			               << std::hex << static_cast<int>(version));
  682|      0|			return false;
  683|      0|		}
  684|  2.82k|		case DoIpProtocolVersion::DEFAULT_VALUE:
  ------------------
  |  Branch (684:3): [True: 2.82k, False: 50.6k]
  ------------------
  685|  2.82k|			if (type != DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN &&
  ------------------
  |  Branch (685:8): [True: 2.78k, False: 36]
  ------------------
  686|  2.78k|			    type != DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID &&
  ------------------
  |  Branch (686:8): [True: 2.78k, False: 0]
  ------------------
  687|  2.78k|			    type != DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST)
  ------------------
  |  Branch (687:8): [True: 142, False: 2.64k]
  ------------------
  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.72k|		case DoIpProtocolVersion::ISO13400_2010:
  ------------------
  |  Branch (692:3): [True: 42, False: 53.4k]
  ------------------
  693|  51.6k|		case DoIpProtocolVersion::ISO13400_2012:
  ------------------
  |  Branch (693:3): [True: 48.9k, False: 4.56k]
  ------------------
  694|  53.1k|		case DoIpProtocolVersion::ISO13400_2019:
  ------------------
  |  Branch (694:3): [True: 1.49k, False: 52.0k]
  ------------------
  695|  53.1k|		case DoIpProtocolVersion::ISO13400_2019_AMD1:
  ------------------
  |  Branch (695:3): [True: 0, False: 53.4k]
  ------------------
  696|  53.1k|		{
  697|  53.1k|			if (version != static_cast<uint8_t>(~inVersion))
  ------------------
  |  Branch (697:8): [True: 1.63k, False: 51.5k]
  ------------------
  698|  1.63k|			{
  699|  1.63k|				PCPP_LOG_DEBUG("[Malformed doip packet]: Protocol version and inverse version mismatch! Version: 0x"
  ------------------
  |  |  425|  1.63k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  1.63k|	do                                                                                                                 \
  |  |  |  |  413|  1.63k|	{                                                                                                                  \
  |  |  |  |  414|  1.63k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.63k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.63k|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 1.63k]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.63k|		{                                                                                                              \
  |  |  |  |  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.63k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.63k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  700|  1.63k|				               << std::hex << static_cast<int>(version) << ", Inverted: 0x"
  701|  1.63k|				               << static_cast<int>(inVersion));
  702|  1.63k|				return false;
  703|  1.63k|			}
  704|  51.5k|			return true;
  705|  53.1k|		}
  706|    210|		default:
  ------------------
  |  Branch (706:3): [True: 210, False: 53.2k]
  ------------------
  707|    210|			PCPP_LOG_DEBUG("[Malformed doip packet]: Unknown DoIP protocol version: 0x" << std::hex
  ------------------
  |  |  425|    210|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    210|	do                                                                                                                 \
  |  |  |  |  413|    210|	{                                                                                                                  \
  |  |  |  |  414|    210|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    210|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    210|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 210]
  |  |  |  |  ------------------
  |  |  |  |  416|    210|		{                                                                                                              \
  |  |  |  |  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|    210|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 210]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  708|    210|			                                                                            << static_cast<int>(version));
  709|    210|			return false;
  710|  53.4k|		}
  711|  53.4k|	}
_ZN4pcpp9DoIpLayer18isPayloadTypeValidEt:
  714|  55.3k|	{
  715|  55.3k|		const DoIpPayloadTypes payloadType = static_cast<DoIpPayloadTypes>(type);
  716|       |
  717|  55.3k|		switch (payloadType)
  718|  55.3k|		{
  719|  7.06k|		case DoIpPayloadTypes::GENERIC_HEADER_NACK:
  ------------------
  |  Branch (719:3): [True: 7.06k, False: 48.2k]
  ------------------
  720|  10.7k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST:
  ------------------
  |  Branch (720:3): [True: 3.65k, False: 51.6k]
  ------------------
  721|  12.4k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID:
  ------------------
  |  Branch (721:3): [True: 1.75k, False: 53.5k]
  ------------------
  722|  14.1k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN:
  ------------------
  |  Branch (722:3): [True: 1.66k, False: 53.6k]
  ------------------
  723|  15.9k|		case DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE:
  ------------------
  |  Branch (723:3): [True: 1.81k, False: 53.4k]
  ------------------
  724|  18.5k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST:
  ------------------
  |  Branch (724:3): [True: 2.61k, False: 52.6k]
  ------------------
  725|  20.4k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE:
  ------------------
  |  Branch (725:3): [True: 1.87k, False: 53.4k]
  ------------------
  726|  25.4k|		case DoIpPayloadTypes::ALIVE_CHECK_REQUEST:
  ------------------
  |  Branch (726:3): [True: 5.00k, False: 50.2k]
  ------------------
  727|  29.8k|		case DoIpPayloadTypes::ALIVE_CHECK_RESPONSE:
  ------------------
  |  Branch (727:3): [True: 4.40k, False: 50.9k]
  ------------------
  728|  33.8k|		case DoIpPayloadTypes::ENTITY_STATUS_REQUEST:
  ------------------
  |  Branch (728:3): [True: 3.95k, False: 51.3k]
  ------------------
  729|  39.1k|		case DoIpPayloadTypes::ENTITY_STATUS_RESPONSE:
  ------------------
  |  Branch (729:3): [True: 5.29k, False: 50.0k]
  ------------------
  730|  42.5k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST:
  ------------------
  |  Branch (730:3): [True: 3.47k, False: 51.8k]
  ------------------
  731|  43.9k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE:
  ------------------
  |  Branch (731:3): [True: 1.38k, False: 53.9k]
  ------------------
  732|  49.5k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE:
  ------------------
  |  Branch (732:3): [True: 5.58k, False: 49.7k]
  ------------------
  733|  50.9k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK:
  ------------------
  |  Branch (733:3): [True: 1.40k, False: 53.8k]
  ------------------
  734|  53.4k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK:
  ------------------
  |  Branch (734:3): [True: 2.54k, False: 52.7k]
  ------------------
  735|  53.4k|			return true;
  736|       |
  737|  1.80k|		default:
  ------------------
  |  Branch (737:3): [True: 1.80k, False: 53.4k]
  ------------------
  738|  1.80k|			PCPP_LOG_DEBUG("[Malformed doip packet]: Invalid DoIP payload type: 0x" << std::hex << type);
  ------------------
  |  |  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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  739|  1.80k|			return false;
  740|  55.3k|		}
  741|  55.3k|	}
_ZN4pcpp9DoIpLayer20isPayloadLengthValidEjm:
  744|  51.5k|	{
  745|  51.5k|		const size_t actualPayloadLen = dataLen - DOIP_HEADER_LEN;
  746|       |
  747|  51.5k|		if (payloadLength != actualPayloadLen)
  ------------------
  |  Branch (747:7): [True: 3.01k, False: 48.4k]
  ------------------
  748|  3.01k|		{
  749|  3.01k|			PCPP_LOG_DEBUG("[Malformed doip packet]: Payload length mismatch: expected "
  ------------------
  |  |  425|  3.01k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  3.01k|	do                                                                                                                 \
  |  |  |  |  413|  3.01k|	{                                                                                                                  \
  |  |  |  |  414|  3.01k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.01k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.01k|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 3.01k]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.01k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  3.01k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.01k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  750|  3.01k|			               << payloadLength << " bytes, but got " << actualPayloadLen << " bytes.");
  751|  3.01k|			return false;
  752|  3.01k|		}
  753|       |
  754|  48.4k|		return true;
  755|  51.5k|	}

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

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

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

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

_ZN4pcpp10GtpV1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  291|  32.7k|		    : Layer(data, dataLen, prevLayer, packet, GTPv1)
  292|  32.7k|		{}
_ZNK4pcpp10GtpV1Layer9getHeaderEv:
  322|   135k|		{
  323|   135k|			return reinterpret_cast<gtpv1_header*>(m_Data);
  324|   135k|		}
_ZN4pcpp10GtpV1Layer11isGTPv1PortEt:
  387|   323k|		{
  388|   323k|			return port == 2152 /* GTP-U */ || port == 2123 /* GTP-C */;
  ------------------
  |  Branch (388:11): [True: 32.9k, False: 290k]
  |  Branch (388:39): [True: 0, False: 290k]
  ------------------
  389|   323k|		}
_ZNK4pcpp10GtpV1Layer16getOsiModelLayerEv:
  409|  4.66k|		{
  410|  4.66k|			return OsiModelTransportLayer;
  411|  4.66k|		}
_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|   411k|		{
  998|   411k|			return port == 2123;
  999|   411k|		}

_ZN4pcpp11HttpMessage10isHttpPortEt:
   75|   833k|		{
   76|   833k|			return port == 80 || port == 8080;
  ------------------
  |  Branch (76:11): [True: 50.5k, False: 782k]
  |  Branch (76:25): [True: 1.28k, False: 781k]
  ------------------
   77|   833k|		}
_ZNK4pcpp22HttpResponseStatusCode17isUnsupportedCodeEv:
  454|  11.3k|		{
  455|  11.3k|			return m_Value > 599;
  456|  11.3k|		}
_ZNK4pcpp11HttpMessage16getOsiModelLayerEv:
   88|  3.17k|		{
   89|  3.17k|			return OsiModelApplicationLayer;
   90|  3.17k|		}
_ZN4pcpp11HttpMessageC2EPhmPNS_5LayerEPNS_6PacketEh:
   94|  16.3k|		    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, protocol)
   95|  16.3k|		{}
_ZNK4pcpp11HttpMessage32getHeaderFieldNameValueSeparatorEv:
  108|  16.3k|		{
  109|  16.3k|			return ':';
  110|  16.3k|		}
_ZNK4pcpp11HttpMessage43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  112|  16.3k|		{
  113|  16.3k|			return true;
  114|  16.3k|		}
_ZN4pcpp22HttpResponseStatusCodeC2ENS0_5ValueE:
  416|    574|		HttpResponseStatusCode(Value statusCode) : m_Value(statusCode)
  417|    574|		{}
_ZNK4pcpp22HttpResponseStatusCodecvNS0_5ValueEEv:
  431|  21.7k|		{
  432|  21.7k|			return m_Value;
  433|  21.7k|		}
_ZNK4pcpp20HttpRequestFirstLine7getSizeEv:
  613|  7.72k|		{
  614|  7.72k|			return m_FirstLineEndOffset;
  615|  7.72k|		}
_ZN4pcpp20HttpRequestFirstLine29HttpRequestFirstLineExceptionD2Ev:
  634|  5.55k|			{}
_ZNK4pcpp21HttpResponseFirstLine7getSizeEv:
  733|  14.9k|		{
  734|  14.9k|			return m_FirstLineEndOffset;
  735|  14.9k|		}
_ZN4pcpp21HttpResponseFirstLine30HttpResponseFirstLineExceptionD2Ev:
  755|  10.7k|			{}
_ZN4pcpp22HttpResponseStatusCodeC2Ev:
  411|  10.7k|		HttpResponseStatusCode() = default;

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

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

_ZNK4pcpp9IPv4Layer13getIPv4HeaderEv:
  448|  6.48M|		{
  449|  6.48M|			return reinterpret_cast<iphdr*>(m_Data);
  450|  6.48M|		}
_ZNK4pcpp9IPv4Layer15getSrcIPAddressEv:
  456|  1.60k|		{
  457|  1.60k|			return getSrcIPv4Address();
  458|  1.60k|		}
_ZNK4pcpp9IPv4Layer17getSrcIPv4AddressEv:
  463|   422k|		{
  464|   422k|			return getIPv4Header()->ipSrc;
  465|   422k|		}
_ZNK4pcpp9IPv4Layer15getDstIPAddressEv:
  478|  1.60k|		{
  479|  1.60k|			return getDstIPv4Address();
  480|  1.60k|		}
_ZNK4pcpp9IPv4Layer17getDstIPv4AddressEv:
  485|   422k|		{
  486|   422k|			return getIPv4Header()->ipDst;
  487|   422k|		}
_ZNK4pcpp9IPv4Layer12getHeaderLenEv:
  582|  1.36M|		{
  583|  1.36M|			return static_cast<size_t>(static_cast<uint16_t>(getIPv4Header()->internetHeaderLength) * 4) +
  584|  1.36M|			       m_TempHeaderExtension;
  585|  1.36M|		}
_ZNK4pcpp9IPv4Layer16getOsiModelLayerEv:
  598|   148k|		{
  599|   148k|			return OsiModelNetworkLayer;
  600|   148k|		}
_ZN4pcpp9IPv4Layer11isDataValidEPKhm:
  627|   890k|	{
  628|   890k|		const iphdr* hdr = reinterpret_cast<const iphdr*>(data);
  629|   890k|		return canReinterpretAs<iphdr>(data, dataLen) && hdr->ipVersion == 4 && hdr->internetHeaderLength >= 5;
  ------------------
  |  Branch (629:10): [True: 881k, False: 9.32k]
  |  Branch (629:52): [True: 876k, False: 5.27k]
  |  Branch (629:75): [True: 875k, False: 303]
  ------------------
  630|   890k|	}

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

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

_ZNK4pcpp9IcmpLayer15isMessageOfTypeENS_15IcmpMessageTypeE:
  369|  56.0k|		{
  370|  56.0k|			return getMessageType() == type;
  371|  56.0k|		}
_ZN4pcpp9IcmpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  346|  40.2k|		    : Layer(data, dataLen, prevLayer, packet, ICMP)
  347|  40.2k|		{}
_ZNK4pcpp9IcmpLayer13getIcmpHeaderEv:
  359|   220k|		{
  360|   220k|			return reinterpret_cast<icmphdr*>(m_Data);
  361|   220k|		}
_ZNK4pcpp9IcmpLayer16getOsiModelLayerEv:
  612|  7.31k|		{
  613|  7.31k|			return OsiModelNetworkLayer;
  614|  7.31k|		}
_ZN4pcpp9IcmpLayer11isDataValidEPKhm:
  620|  40.9k|	{
  621|  40.9k|		if (dataLen < sizeof(icmphdr))
  ------------------
  |  Branch (621:7): [True: 236, False: 40.7k]
  ------------------
  622|    236|			return false;
  623|       |
  624|  40.7k|		uint8_t type = data[0];
  625|       |
  626|       |		// ICMP_ECHO_REQUEST, ICMP_ECHO_REPLY, ICMP_ROUTER_SOL, ICMP_INFO_REQUEST, ICMP_INFO_REPLY
  627|  40.7k|		if (type == 8 || type == 0 || type == 10 || type == 15 || type == 16)
  ------------------
  |  Branch (627:7): [True: 202, False: 40.5k]
  |  Branch (627:20): [True: 1.67k, False: 38.8k]
  |  Branch (627:33): [True: 2.17k, False: 36.6k]
  |  Branch (627:47): [True: 1.96k, False: 34.6k]
  |  Branch (627:61): [True: 2.58k, False: 32.0k]
  ------------------
  628|  8.60k|			return true;
  629|       |
  630|       |		// ICMP_TIMESTAMP_REQUEST, ICMP_TIMESTAMP_REPLY
  631|  32.0k|		if (type == 13 || type == 14)
  ------------------
  |  Branch (631:7): [True: 130, False: 31.9k]
  |  Branch (631:21): [True: 4.94k, False: 27.0k]
  ------------------
  632|  5.07k|			return dataLen >= sizeof(icmp_timestamp_request);
  633|       |
  634|       |		// ICMP_ADDRESS_MASK_REPLY, ICMP_ADDRESS_MASK_REQUEST
  635|  27.0k|		if (type == 17 || type == 18)
  ------------------
  |  Branch (635:7): [True: 3.62k, False: 23.4k]
  |  Branch (635:21): [True: 5.54k, False: 17.8k]
  ------------------
  636|  9.17k|			return dataLen >= sizeof(icmp_address_mask_request);
  637|       |
  638|       |		// ICMP_DEST_UNREACHABLE
  639|  17.8k|		if (type == 3)
  ------------------
  |  Branch (639:7): [True: 3.68k, False: 14.1k]
  ------------------
  640|  3.68k|			return dataLen >= sizeof(icmp_destination_unreachable);
  641|       |
  642|       |		// ICMP_REDIRECT
  643|  14.1k|		if (type == 5)
  ------------------
  |  Branch (643:7): [True: 1.43k, False: 12.7k]
  ------------------
  644|  1.43k|			return dataLen >= sizeof(icmp_redirect);
  645|       |
  646|       |		// ICMP_TIME_EXCEEDED, ICMP_SOURCE_QUENCH
  647|  12.7k|		if (type == 4 || type == 11)
  ------------------
  |  Branch (647:7): [True: 2.18k, False: 10.5k]
  |  Branch (647:20): [True: 2.99k, False: 7.56k]
  ------------------
  648|  5.17k|			return dataLen >= sizeof(icmp_time_exceeded);
  649|       |
  650|       |		// ICMP_PARAM_PROBLEM
  651|  7.56k|		if (type == 12)
  ------------------
  |  Branch (651:7): [True: 4.25k, False: 3.30k]
  ------------------
  652|  4.25k|			return dataLen >= sizeof(icmp_param_problem);
  653|       |
  654|       |		// ICMP_ROUTER_ADV
  655|  3.30k|		if (type == 9)
  ------------------
  |  Branch (655:7): [True: 3.14k, False: 160]
  ------------------
  656|  3.14k|			return dataLen >= sizeof(icmp_router_advertisement_hdr);
  657|       |
  658|    160|		return false;
  659|  3.30k|	}

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

_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|  13.8k|		    : Layer(data, dataLen, prevLayer, packet, igmpVer)
  143|  13.8k|		{}
_ZN4pcpp11IgmpV2Layer11isDataValidEPKhm:
  287|  7.32k|		{
  288|  7.32k|			return canReinterpretAs<igmp_header>(data, dataLen);
  289|  7.32k|		}
_ZN4pcpp11IgmpV2LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  261|  7.32k|		    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv2)
  262|  7.32k|		{}
_ZN4pcpp16IgmpV3QueryLayer11isDataValidEPKhm:
  374|  1.42k|		{
  375|  1.42k|			return canReinterpretAs<igmpv3_query_header>(data, dataLen);
  376|  1.42k|		}
_ZN4pcpp17IgmpV3ReportLayer11isDataValidEPKhm:
  477|  2.18k|		{
  478|  2.18k|			return canReinterpretAs<igmpv3_report_header>(data, dataLen);
  479|  2.18k|		}
_ZN4pcpp17IgmpV3ReportLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  394|  2.18k|		    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv3)
  395|  2.18k|		{}
_ZNK4pcpp9IgmpLayer13getIgmpHeaderEv:
  158|  10.6k|		{
  159|  10.6k|			return reinterpret_cast<igmp_header*>(m_Data);
  160|  10.6k|		}
_ZN4pcpp9IgmpLayer14parseNextLayerEv:
  192|  13.8k|		{}
_ZNK4pcpp9IgmpLayer12getHeaderLenEv:
  196|  4.10k|		{
  197|  4.10k|			return sizeof(igmp_header);
  198|  4.10k|		}
_ZNK4pcpp9IgmpLayer16getOsiModelLayerEv:
  203|  2.85k|		{
  204|  2.85k|			return OsiModelNetworkLayer;
  205|  2.85k|		}
_ZNK4pcpp16IgmpV3QueryLayer20getIgmpV3QueryHeaderEv:
  319|  1.07k|		{
  320|  1.07k|			return reinterpret_cast<igmpv3_query_header*>(m_Data);
  321|  1.07k|		}
_ZNK4pcpp17IgmpV3ReportLayer15getReportHeaderEv:
  405|    440|		{
  406|    440|			return reinterpret_cast<igmpv3_report_header*>(m_Data);
  407|    440|		}
_ZNK4pcpp17IgmpV3ReportLayer12getHeaderLenEv:
  468|    880|		{
  469|    880|			return m_DataLen;
  470|    880|		}

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

_ZNK4pcpp5Layer12getNextLayerEv:
  126|  88.7M|		{
  127|  88.7M|			return m_NextLayer;
  128|  88.7M|		}
_ZNK4pcpp5Layer12getPrevLayerEv:
  132|  1.92M|		{
  133|  1.92M|			return m_PrevLayer;
  134|  1.92M|		}
_ZNK4pcpp5Layer11getProtocolEv:
  138|  63.6M|		{
  139|  63.6M|			return m_Protocol;
  140|  63.6M|		}
_ZNK4pcpp5Layer7getDataEv:
  149|   289k|		{
  150|   289k|			return m_Data;
  151|   289k|		}
_ZNK4pcpp5Layer10getDataLenEv:
  155|  3.23M|		{
  156|  3.23M|			return m_DataLen;
  157|  3.23M|		}
_ZNK4pcpp5Layer19getLayerPayloadSizeEv:
  167|  65.6k|		{
  168|  65.6k|			return m_DataLen - getHeaderLen();
  169|  65.6k|		}
_ZNK4pcpp5Layer19isAllocatedToPacketEv:
  181|  4.68M|		{
  182|  4.68M|			return m_AllocationInfo.attachedPacket != nullptr;
  183|  4.68M|		}
_ZNK4pcpp5Layer10getDataPtrEm:
  192|   100k|		{
  193|   100k|			return static_cast<uint8_t*>(m_Data + offset);
  194|   100k|		}
_ZN4pcpp5LayerC2EPhmPS0_PNS_6PacketEh:
  229|  4.56M|		    : m_Data(data), m_DataLen(dataLen), m_Protocol(protocol), m_NextLayer(nullptr), m_PrevLayer(prevLayer),
  230|  4.56M|		      m_AllocationInfo{ packet, false }
  231|  4.56M|		{}
_ZN4pcpp5Layer17getAttachedPacketEv:
  240|  4.48M|		{
  241|  4.48M|			return m_AllocationInfo.attachedPacket;
  242|  4.48M|		}
_ZNK4pcpp5Layer17getAttachedPacketEv:
  247|  2.94k|		{
  248|  2.94k|			return m_AllocationInfo.attachedPacket;
  249|  2.94k|		}
_ZN4pcpp5Layer12setNextLayerEPS0_:
  252|  3.67M|		{
  253|  3.67M|			m_NextLayer = nextLayer;
  254|  3.67M|		}
_ZNK4pcpp5Layer12hasNextLayerEv:
  264|  6.41M|		{
  265|  6.41M|			return m_NextLayer != nullptr;
  266|  6.41M|		}
_ZN4pcpp5Layer16canReinterpretAsINS_6arphdrEEEbPKhm:
  524|  3.39k|		{
  525|  3.39k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 3.39k, False: 0]
  |  Branch (525:30): [True: 3.37k, False: 24]
  ------------------
  526|  3.39k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_5iphdrEEEbPKhm:
  524|   890k|		{
  525|   890k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 890k, False: 0]
  |  Branch (525:30): [True: 881k, False: 9.32k]
  ------------------
  526|   890k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11dhcp_headerEEEbPKhm:
  524|  14.8k|		{
  525|  14.8k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 14.8k, False: 0]
  |  Branch (525:30): [True: 14.6k, False: 198]
  ------------------
  526|  14.8k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vrrp_headerEEEbPKhm:
  524|  6.91k|		{
  525|  6.91k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 6.91k, False: 0]
  |  Branch (525:30): [True: 6.91k, False: 0]
  ------------------
  526|  6.91k|		}
_ZN4pcpp14IDataContainerD2Ev:
   29|  4.68M|		virtual ~IDataContainer() = default;
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  324|   135k|		{
  325|   135k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|   135k|			                                               std::forward<Args>(extraArgs)...);
  327|   135k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|   184k|		{
  349|   184k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 184k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|   184k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|   184k|			setNextLayer(newLayer);
  357|   184k|			return newLayer;
  358|   184k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|   888k|		{
  420|   888k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|   888k|			                                                       std::forward<Args>(extraArgs)...);
  422|   888k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|   890k|		{
  442|   890k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 875k, False: 14.7k]
  ------------------
  443|   875k|			{
  444|   875k|				return m_NextLayer;
  445|   875k|			}
  446|       |
  447|  14.7k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|   890k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|   890k|		{
  394|   890k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 875k, False: 14.7k]
  ------------------
  395|   875k|			{
  396|   875k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|   875k|			}
  398|  14.7k|			return nullptr;
  399|   890k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   875k|		{
  295|   875k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 875k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   875k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   875k|			setNextLayer(newLayer);
  302|   875k|			return newLayer;
  303|   875k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   260k|		{
  295|   260k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 260k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   260k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   260k|			setNextLayer(newLayer);
  302|   260k|			return newLayer;
  303|   260k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|   152k|		{
  420|   152k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|   152k|			                                                       std::forward<Args>(extraArgs)...);
  422|   152k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|   152k|		{
  442|   152k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 149k, False: 3.01k]
  ------------------
  443|   149k|			{
  444|   149k|				return m_NextLayer;
  445|   149k|			}
  446|       |
  447|  3.01k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|   152k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|   152k|		{
  394|   152k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 149k, False: 3.01k]
  ------------------
  395|   149k|			{
  396|   149k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|   149k|			}
  398|  3.01k|			return nullptr;
  399|   152k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7ip6_hdrEEEbPKhm:
  524|   152k|		{
  525|   152k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 152k, False: 0]
  |  Branch (525:30): [True: 151k, False: 1.45k]
  ------------------
  526|   152k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   149k|		{
  295|   149k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 149k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   149k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   149k|			setNextLayer(newLayer);
  302|   149k|			return newLayer;
  303|   149k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9VlanLayerEJEEEPS0_PhmDpOT0_:
  280|  56.9k|		{
  281|  56.9k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  56.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   197k|		{
  295|   197k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 197k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   197k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   197k|			setNextLayer(newLayer);
  302|   197k|			return newLayer;
  303|   197k|		}
_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|  65.2k|		{
  420|  65.2k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  65.2k|			                                                       std::forward<Args>(extraArgs)...);
  422|  65.2k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_13PPP_PPTPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  65.2k|		{
  442|  65.2k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 65.2k, False: 0]
  ------------------
  443|  65.2k|			{
  444|  65.2k|				return m_NextLayer;
  445|  65.2k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  65.2k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  65.2k|		{
  394|  65.2k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 65.2k, False: 0]
  ------------------
  395|  65.2k|			{
  396|  65.2k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  65.2k|			}
  398|      0|			return nullptr;
  399|  65.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  65.2k|		{
  295|  65.2k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 65.2k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  65.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  65.2k|			setNextLayer(newLayer);
  302|  65.2k|			return newLayer;
  303|  65.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8EthLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|      8|		{
  295|      8|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 8]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|      8|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|      8|			setNextLayer(newLayer);
  302|      8|			return newLayer;
  303|      8|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmDpOT0_:
  280|  94.5k|		{
  281|  94.5k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  94.5k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vlan_headerEEEbPKhm:
  524|   140k|		{
  525|   140k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 140k, False: 0]
  |  Branch (525:30): [True: 140k, False: 129]
  ------------------
  526|   140k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|   320k|		{
  442|   320k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 317k, False: 2.79k]
  ------------------
  443|   317k|			{
  444|   317k|				return m_NextLayer;
  445|   317k|			}
  446|       |
  447|  2.79k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|   320k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|   320k|		{
  394|   320k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 317k, False: 2.79k]
  ------------------
  395|   317k|			{
  396|   317k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|   317k|			}
  398|  2.79k|			return nullptr;
  399|   320k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   317k|		{
  295|   317k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 317k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   317k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   317k|			setNextLayer(newLayer);
  302|   317k|			return newLayer;
  303|   317k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|   527k|		{
  442|   527k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 517k, False: 10.7k]
  ------------------
  443|   517k|			{
  444|   517k|				return m_NextLayer;
  445|   517k|			}
  446|       |
  447|  10.7k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|   527k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|   527k|		{
  394|   527k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 517k, False: 10.7k]
  ------------------
  395|   517k|			{
  396|   517k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|   517k|			}
  398|  10.7k|			return nullptr;
  399|   527k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   517k|		{
  295|   517k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 517k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   517k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   517k|			setNextLayer(newLayer);
  302|   517k|			return newLayer;
  303|   517k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IcmpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  40.9k|		{
  442|  40.9k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 40.2k, False: 654]
  ------------------
  443|  40.2k|			{
  444|  40.2k|				return m_NextLayer;
  445|  40.2k|			}
  446|       |
  447|    654|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  40.9k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  40.9k|		{
  394|  40.9k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 40.2k, False: 654]
  ------------------
  395|  40.2k|			{
  396|  40.2k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  40.2k|			}
  398|    654|			return nullptr;
  399|  40.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  40.2k|		{
  295|  40.2k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 40.2k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  40.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  40.2k|			setNextLayer(newLayer);
  302|  40.2k|			return newLayer;
  303|  40.2k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  9.55k|		{
  442|  9.55k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 9.55k, False: 0]
  ------------------
  443|  9.55k|			{
  444|  9.55k|				return m_NextLayer;
  445|  9.55k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  9.55k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  9.55k|		{
  394|  9.55k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 9.55k, False: 0]
  ------------------
  395|  9.55k|			{
  396|  9.55k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  9.55k|			}
  398|      0|			return nullptr;
  399|  9.55k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  9.55k|		{
  295|  9.55k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 9.55k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  9.55k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  9.55k|			setNextLayer(newLayer);
  302|  9.55k|			return newLayer;
  303|  9.55k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv1LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  72.3k|		{
  442|  72.3k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 72.3k, False: 0]
  ------------------
  443|  72.3k|			{
  444|  72.3k|				return m_NextLayer;
  445|  72.3k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  72.3k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  72.3k|		{
  394|  72.3k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 72.3k, False: 0]
  ------------------
  395|  72.3k|			{
  396|  72.3k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  72.3k|			}
  398|      0|			return nullptr;
  399|  72.3k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  72.3k|		{
  295|  72.3k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 72.3k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  72.3k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  72.3k|			setNextLayer(newLayer);
  302|  72.3k|			return newLayer;
  303|  72.3k|		}
_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.32k|		{
  442|  7.32k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 7.32k, False: 0]
  ------------------
  443|  7.32k|			{
  444|  7.32k|				return m_NextLayer;
  445|  7.32k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  7.32k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  7.32k|		{
  394|  7.32k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 7.32k, False: 0]
  ------------------
  395|  7.32k|			{
  396|  7.32k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  7.32k|			}
  398|      0|			return nullptr;
  399|  7.32k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  7.32k|		{
  295|  7.32k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 7.32k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  7.32k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  7.32k|			setNextLayer(newLayer);
  302|  7.32k|			return newLayer;
  303|  7.32k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_16IgmpV3QueryLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  1.42k|		{
  442|  1.42k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 1.42k, False: 0]
  ------------------
  443|  1.42k|			{
  444|  1.42k|				return m_NextLayer;
  445|  1.42k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  1.42k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_16IgmpV3QueryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  1.42k|		{
  394|  1.42k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 1.42k, False: 0]
  ------------------
  395|  1.42k|			{
  396|  1.42k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  1.42k|			}
  398|      0|			return nullptr;
  399|  1.42k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_19igmpv3_query_headerEEEbPKhm:
  524|  1.42k|		{
  525|  1.42k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 1.42k, False: 0]
  |  Branch (525:30): [True: 1.42k, False: 0]
  ------------------
  526|  1.42k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16IgmpV3QueryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  1.42k|		{
  295|  1.42k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 1.42k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  1.42k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  1.42k|			setNextLayer(newLayer);
  302|  1.42k|			return newLayer;
  303|  1.42k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17IgmpV3ReportLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  2.18k|		{
  442|  2.18k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 2.18k, False: 0]
  ------------------
  443|  2.18k|			{
  444|  2.18k|				return m_NextLayer;
  445|  2.18k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  2.18k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  2.18k|		{
  394|  2.18k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 2.18k, False: 0]
  ------------------
  395|  2.18k|			{
  396|  2.18k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  2.18k|			}
  398|      0|			return nullptr;
  399|  2.18k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20igmpv3_report_headerEEEbPKhm:
  524|  2.18k|		{
  525|  2.18k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 2.18k, False: 0]
  |  Branch (525:30): [True: 2.18k, False: 0]
  ------------------
  526|  2.18k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  2.18k|		{
  295|  2.18k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 2.18k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  2.18k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  2.18k|			setNextLayer(newLayer);
  302|  2.18k|			return newLayer;
  303|  2.18k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_25AuthenticationHeaderLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  4.49k|		{
  442|  4.49k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 4.35k, False: 138]
  ------------------
  443|  4.35k|			{
  444|  4.35k|				return m_NextLayer;
  445|  4.35k|			}
  446|       |
  447|    138|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  4.49k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  4.49k|		{
  394|  4.49k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 4.35k, False: 138]
  ------------------
  395|  4.35k|			{
  396|  4.35k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  4.35k|			}
  398|    138|			return nullptr;
  399|  4.49k|		}
_ZN4pcpp5Layer18constructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  4.35k|		{
  295|  4.35k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 4.35k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  4.35k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  4.35k|			setNextLayer(newLayer);
  302|  4.35k|			return newLayer;
  303|  4.35k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  5.27k|		{
  442|  5.27k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 5.27k, False: 0]
  ------------------
  443|  5.27k|			{
  444|  5.27k|				return m_NextLayer;
  445|  5.27k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  5.27k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  5.27k|		{
  394|  5.27k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 5.27k, False: 0]
  ------------------
  395|  5.27k|			{
  396|  5.27k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  5.27k|			}
  398|      0|			return nullptr;
  399|  5.27k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  5.27k|		{
  295|  5.27k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 5.27k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  5.27k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  5.27k|			setNextLayer(newLayer);
  302|  5.27k|			return newLayer;
  303|  5.27k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  3.48k|		{
  442|  3.48k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 3.48k, False: 0]
  ------------------
  443|  3.48k|			{
  444|  3.48k|				return m_NextLayer;
  445|  3.48k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  3.48k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  3.48k|		{
  394|  3.48k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 3.48k, False: 0]
  ------------------
  395|  3.48k|			{
  396|  3.48k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  3.48k|			}
  398|      0|			return nullptr;
  399|  3.48k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  3.48k|		{
  295|  3.48k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 3.48k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  3.48k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  3.48k|			setNextLayer(newLayer);
  302|  3.48k|			return newLayer;
  303|  3.48k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV3LayerENS_12PayloadLayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  3.43k|		{
  442|  3.43k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 3.43k, False: 0]
  ------------------
  443|  3.43k|			{
  444|  3.43k|				return m_NextLayer;
  445|  3.43k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  3.43k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  3.43k|		{
  394|  3.43k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 3.43k, False: 0]
  ------------------
  395|  3.43k|			{
  396|  3.43k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  3.43k|			}
  398|      0|			return nullptr;
  399|  3.43k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  7.01k|		{
  295|  7.01k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 7.01k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  7.01k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  7.01k|			setNextLayer(newLayer);
  302|  7.01k|			return newLayer;
  303|  7.01k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  32.2k|		{
  420|  32.2k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  32.2k|			                                                       std::forward<Args>(extraArgs)...);
  422|  32.2k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  91.4k|		{
  420|  91.4k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  91.4k|			                                                       std::forward<Args>(extraArgs)...);
  422|  91.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  6.53k|		{
  420|  6.53k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  6.53k|			                                                       std::forward<Args>(extraArgs)...);
  422|  6.53k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv1LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  5.38k|		{
  420|  5.38k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  5.38k|			                                                       std::forward<Args>(extraArgs)...);
  422|  5.38k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  3.12k|		{
  420|  3.12k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  3.12k|			                                                       std::forward<Args>(extraArgs)...);
  422|  3.12k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mDpOT0_:
  324|  50.2k|		{
  325|  50.2k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|  50.2k|			                                               std::forward<Args>(extraArgs)...);
  327|  50.2k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mS5_DpOT0_:
  348|  50.2k|		{
  349|  50.2k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 50.2k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  50.2k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  50.2k|			setNextLayer(newLayer);
  357|  50.2k|			return newLayer;
  358|  50.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmDpOT0_:
  280|  3.58k|		{
  281|  3.58k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  3.58k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ArpLayerEJEEEPS0_PhmDpOT0_:
  280|  1.63k|		{
  281|  1.63k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  1.63k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  5.00k|		{
  295|  5.00k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 5.00k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  5.00k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  5.00k|			setNextLayer(newLayer);
  302|  5.00k|			return newLayer;
  303|  5.00k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  42.0k|		{
  420|  42.0k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  42.0k|			                                                       std::forward<Args>(extraArgs)...);
  422|  42.0k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  42.0k|		{
  442|  42.0k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 42.0k, False: 0]
  ------------------
  443|  42.0k|			{
  444|  42.0k|				return m_NextLayer;
  445|  42.0k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  42.0k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  42.0k|		{
  394|  42.0k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 42.0k, False: 0]
  ------------------
  395|  42.0k|			{
  396|  42.0k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  42.0k|			}
  398|      0|			return nullptr;
  399|  42.0k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  42.0k|		{
  295|  42.0k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 42.0k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  42.0k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  42.0k|			setNextLayer(newLayer);
  302|  42.0k|			return newLayer;
  303|  42.0k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  1.03k|		{
  420|  1.03k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  1.03k|			                                                       std::forward<Args>(extraArgs)...);
  422|  1.03k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  1.03k|		{
  442|  1.03k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 1.03k, False: 0]
  ------------------
  443|  1.03k|			{
  444|  1.03k|				return m_NextLayer;
  445|  1.03k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  1.03k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  1.03k|		{
  394|  1.03k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 1.03k, False: 0]
  ------------------
  395|  1.03k|			{
  396|  1.03k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  1.03k|			}
  398|      0|			return nullptr;
  399|  1.03k|		}
_ZN4pcpp5Layer18constructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  1.03k|		{
  295|  1.03k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 1.03k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  1.03k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  1.03k|			setNextLayer(newLayer);
  302|  1.03k|			return newLayer;
  303|  1.03k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  3.72k|		{
  420|  3.72k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  3.72k|			                                                       std::forward<Args>(extraArgs)...);
  422|  3.72k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  3.72k|		{
  442|  3.72k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 3.47k, False: 257]
  ------------------
  443|  3.47k|			{
  444|  3.47k|				return m_NextLayer;
  445|  3.47k|			}
  446|       |
  447|    257|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  3.72k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  3.72k|		{
  394|  3.72k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 3.47k, False: 257]
  ------------------
  395|  3.47k|			{
  396|  3.47k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  3.47k|			}
  398|    257|			return nullptr;
  399|  3.72k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  3.47k|		{
  295|  3.47k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 3.47k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  3.47k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  3.47k|			setNextLayer(newLayer);
  302|  3.47k|			return newLayer;
  303|  3.47k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20ssl_tls_record_layerEEEbPKhm:
  524|   221k|		{
  525|   221k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 221k, False: 0]
  |  Branch (525:30): [True: 221k, False: 0]
  ------------------
  526|   221k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  324|   221k|		{
  325|   221k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|   221k|			                                               std::forward<Args>(extraArgs)...);
  327|   221k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|   221k|		{
  349|   221k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 221k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|   221k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|   221k|			setNextLayer(newLayer);
  357|   221k|			return newLayer;
  358|   221k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7tpkthdrEEEbPKhm:
  524|   127k|		{
  525|   127k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 127k, False: 0]
  |  Branch (525:30): [True: 124k, False: 3.57k]
  ------------------
  526|   127k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16HttpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  5.55k|		{
  295|  5.55k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 5.55k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  5.55k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  5.55k|			setNextLayer(newLayer);
  302|  5.55k|			return newLayer;
  303|  5.55k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17HttpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  10.7k|		{
  295|  10.7k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 10.7k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  10.7k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  10.7k|			setNextLayer(newLayer);
  302|  10.7k|			return newLayer;
  303|  10.7k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|  48.6k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  48.6k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  48.6k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  48.6k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|  48.6k|		{
  504|  48.6k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  48.6k|			                                                         std::forward<Args>(extraArgs)...);
  506|  48.6k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 44.6k, False: 4.00k]
  ------------------
  507|  44.6k|			{
  508|  44.6k|				return nextLayer;
  509|  44.6k|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|  4.00k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  48.6k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  324|  17.0k|		{
  325|  17.0k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|  17.0k|			                                               std::forward<Args>(extraArgs)...);
  327|  17.0k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  17.0k|		{
  349|  17.0k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 17.0k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  17.0k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  17.0k|			setNextLayer(newLayer);
  357|  17.0k|			return newLayer;
  358|  17.0k|		}
_ZN4pcpp5Layer18constructNextLayerINS_15DnsOverTcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  17.9k|		{
  295|  17.9k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 17.9k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  17.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  17.9k|			setNextLayer(newLayer);
  302|  17.9k|			return newLayer;
  303|  17.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11TelnetLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  51.6k|		{
  295|  51.6k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 51.6k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  51.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  51.6k|			setNextLayer(newLayer);
  302|  51.6k|			return newLayer;
  303|  51.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16FtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  9.35k|		{
  295|  9.35k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 9.35k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  9.35k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  9.35k|			setNextLayer(newLayer);
  302|  9.35k|			return newLayer;
  303|  9.35k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12FtpDataLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  2.95k|		{
  295|  2.95k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 2.95k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  2.95k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  2.95k|			setNextLayer(newLayer);
  302|  2.95k|			return newLayer;
  303|  2.95k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9DoIpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|  48.4k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  48.4k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  48.4k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  48.4k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9DoIpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|  48.4k|		{
  504|  48.4k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  48.4k|			                                                         std::forward<Args>(extraArgs)...);
  506|  48.4k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 48.3k, False: 150]
  ------------------
  507|  48.3k|			{
  508|  48.3k|				return nextLayer;
  509|  48.3k|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|    150|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  48.4k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9DoIpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  48.4k|		{
  349|  48.4k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 48.4k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  48.4k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  48.4k|			setNextLayer(newLayer);
  357|  48.4k|			return newLayer;
  358|  48.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9TpktLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  23.6k|		{
  295|  23.6k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 23.6k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  23.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  23.6k|			setNextLayer(newLayer);
  302|  23.6k|			return newLayer;
  303|  23.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17SmtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|    150|		{
  295|    150|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 150]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|    150|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|    150|			setNextLayer(newLayer);
  302|    150|			return newLayer;
  303|    150|		}
_ZN4pcpp5Layer18constructNextLayerINS_16SmtpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|    110|		{
  295|    110|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 110]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|    110|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|    110|			setNextLayer(newLayer);
  302|    110|			return newLayer;
  303|    110|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|  37.1k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  37.1k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  37.1k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  37.1k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|  37.1k|		{
  504|  37.1k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  37.1k|			                                                         std::forward<Args>(extraArgs)...);
  506|  37.1k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 30.6k, False: 6.50k]
  ------------------
  507|  30.6k|			{
  508|  30.6k|				return nextLayer;
  509|  30.6k|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|  6.50k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  37.1k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  59.0k|		{
  349|  59.0k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 59.0k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  59.0k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  59.0k|			setNextLayer(newLayer);
  357|  59.0k|			return newLayer;
  358|  59.0k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|      5|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|      5|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|      5|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|      5|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|      5|		{
  504|      5|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|      5|			                                                         std::forward<Args>(extraArgs)...);
  506|      5|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 5, False: 0]
  ------------------
  507|      5|			{
  508|      5|				return nextLayer;
  509|      5|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|      5|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|      5|		{
  349|      5|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 5]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|      5|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|      5|			setNextLayer(newLayer);
  357|      5|			return newLayer;
  358|      5|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|  1.06k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  1.06k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  1.06k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  1.06k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|  1.06k|		{
  504|  1.06k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  1.06k|			                                                         std::forward<Args>(extraArgs)...);
  506|  1.06k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 1.06k, False: 0]
  ------------------
  507|  1.06k|			{
  508|  1.06k|				return nextLayer;
  509|  1.06k|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  1.06k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  1.06k|		{
  349|  1.06k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 1.06k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  1.06k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  1.06k|			setNextLayer(newLayer);
  357|  1.06k|			return newLayer;
  358|  1.06k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  23.6k|		{
  420|  23.6k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  23.6k|			                                                       std::forward<Args>(extraArgs)...);
  422|  23.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  23.6k|		{
  442|  23.6k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 21.6k, False: 1.95k]
  ------------------
  443|  21.6k|			{
  444|  21.6k|				return m_NextLayer;
  445|  21.6k|			}
  446|       |
  447|  1.95k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  23.6k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  23.6k|		{
  394|  23.6k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 21.6k, False: 1.95k]
  ------------------
  395|  21.6k|			{
  396|  21.6k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  21.6k|			}
  398|  1.95k|			return nullptr;
  399|  23.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  21.6k|		{
  295|  21.6k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 21.6k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  21.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  21.6k|			setNextLayer(newLayer);
  302|  21.6k|			return newLayer;
  303|  21.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  14.8k|		{
  420|  14.8k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  14.8k|			                                                       std::forward<Args>(extraArgs)...);
  422|  14.8k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  14.8k|		{
  442|  14.8k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 14.6k, False: 198]
  ------------------
  443|  14.6k|			{
  444|  14.6k|				return m_NextLayer;
  445|  14.6k|			}
  446|       |
  447|    198|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  14.8k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  14.8k|		{
  394|  14.8k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 14.6k, False: 198]
  ------------------
  395|  14.6k|			{
  396|  14.6k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  14.6k|			}
  398|    198|			return nullptr;
  399|  14.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  14.6k|		{
  295|  14.6k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 14.6k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  14.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  14.6k|			setNextLayer(newLayer);
  302|  14.6k|			return newLayer;
  303|  14.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10VxlanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|      8|		{
  420|      8|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|      8|			                                                       std::forward<Args>(extraArgs)...);
  422|      8|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10VxlanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|      8|		{
  442|      8|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 8, False: 0]
  ------------------
  443|      8|			{
  444|      8|				return m_NextLayer;
  445|      8|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|      8|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10VxlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|      8|		{
  394|      8|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 8, False: 0]
  ------------------
  395|      8|			{
  396|      8|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|      8|			}
  398|      0|			return nullptr;
  399|      8|		}
_ZN4pcpp5Layer16canReinterpretAsINS_12vxlan_headerEEEbPKhm:
  524|      8|		{
  525|      8|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 8, False: 0]
  |  Branch (525:30): [True: 8, False: 0]
  ------------------
  526|      8|		}
_ZN4pcpp5Layer18constructNextLayerINS_10VxlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|      8|		{
  295|      8|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 8]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|      8|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|      8|			setNextLayer(newLayer);
  302|      8|			return newLayer;
  303|      8|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmDpOT0_:
  280|  51.1k|		{
  281|  51.1k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  51.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  51.1k|		{
  295|  51.1k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 51.1k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  51.1k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  51.1k|			setNextLayer(newLayer);
  302|  51.1k|			return newLayer;
  303|  51.1k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mDpOT1_:
  474|  68.5k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  68.5k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  68.5k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  68.5k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mS8_DpOT1_:
  503|  68.5k|		{
  504|  68.5k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  68.5k|			                                                         std::forward<Args>(extraArgs)...);
  506|  68.5k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 65.5k, False: 2.96k]
  ------------------
  507|  65.5k|			{
  508|  65.5k|				return nextLayer;
  509|  65.5k|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|  2.96k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  68.5k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSA_EEES5_T_S4_mS7_DpOT0_:
  348|  68.5k|		{
  349|  68.5k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 68.5k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  68.5k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  68.5k|			setNextLayer(newLayer);
  357|  68.5k|			return newLayer;
  358|  68.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmDpOT0_:
  280|  10.3k|		{
  281|  10.3k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  10.3k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  10.3k|		{
  295|  10.3k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 10.3k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  10.3k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  10.3k|			setNextLayer(newLayer);
  302|  10.3k|			return newLayer;
  303|  10.3k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmDpOT0_:
  280|  32.7k|		{
  281|  32.7k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  32.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  32.7k|		{
  295|  32.7k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 32.7k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  32.7k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  32.7k|			setNextLayer(newLayer);
  302|  32.7k|			return newLayer;
  303|  32.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmDpOT0_:
  280|  18.3k|		{
  281|  18.3k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  18.3k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  18.3k|		{
  295|  18.3k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 18.3k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  18.3k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  18.3k|			setNextLayer(newLayer);
  302|  18.3k|			return newLayer;
  303|  18.3k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmDpOT0_:
  280|  14.5k|		{
  281|  14.5k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  14.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  14.5k|		{
  295|  14.5k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 14.5k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  14.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  14.5k|			setNextLayer(newLayer);
  302|  14.5k|			return newLayer;
  303|  14.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmDpOT0_:
  280|    815|		{
  281|    815|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|    815|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|    815|		{
  295|    815|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 815]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|    815|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|    815|			setNextLayer(newLayer);
  302|    815|			return newLayer;
  303|    815|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|  1.82k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  1.82k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  1.82k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  1.82k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|  1.82k|		{
  504|  1.82k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  1.82k|			                                                         std::forward<Args>(extraArgs)...);
  506|  1.82k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 1.82k, False: 0]
  ------------------
  507|  1.82k|			{
  508|  1.82k|				return nextLayer;
  509|  1.82k|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  1.82k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  1.82k|		{
  349|  1.82k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 1.82k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  1.82k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  1.82k|			setNextLayer(newLayer);
  357|  1.82k|			return newLayer;
  358|  1.82k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|  36.5k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  36.5k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  36.5k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  36.5k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|  36.5k|		{
  504|  36.5k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  36.5k|			                                                         std::forward<Args>(extraArgs)...);
  506|  36.5k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 140, False: 36.4k]
  ------------------
  507|    140|			{
  508|    140|				return nextLayer;
  509|    140|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|  36.4k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  36.5k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  36.5k|		{
  349|  36.5k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 36.5k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  36.5k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  36.5k|			setNextLayer(newLayer);
  357|  36.5k|			return newLayer;
  358|  36.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8EthLayerEJEEEPS0_PhmDpOT0_:
  280|      8|		{
  281|      8|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|      8|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  16.3k|		{
  420|  16.3k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  16.3k|			                                                       std::forward<Args>(extraArgs)...);
  422|  16.3k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  16.3k|		{
  442|  16.3k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 15.3k, False: 993]
  ------------------
  443|  15.3k|			{
  444|  15.3k|				return m_NextLayer;
  445|  15.3k|			}
  446|       |
  447|    993|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  16.3k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  16.3k|		{
  394|  16.3k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 15.3k, False: 993]
  ------------------
  395|  15.3k|			{
  396|  15.3k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  15.3k|			}
  398|    993|			return nullptr;
  399|  16.3k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  15.3k|		{
  295|  15.3k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 15.3k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  15.3k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  15.3k|			setNextLayer(newLayer);
  302|  15.3k|			return newLayer;
  303|  15.3k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  3.39k|		{
  420|  3.39k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  3.39k|			                                                       std::forward<Args>(extraArgs)...);
  422|  3.39k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  3.39k|		{
  442|  3.39k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 3.37k, False: 24]
  ------------------
  443|  3.37k|			{
  444|  3.37k|				return m_NextLayer;
  445|  3.37k|			}
  446|       |
  447|     24|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  3.39k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  3.39k|		{
  394|  3.39k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 3.37k, False: 24]
  ------------------
  395|  3.37k|			{
  396|  3.37k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  3.37k|			}
  398|     24|			return nullptr;
  399|  3.39k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|   140k|		{
  420|   140k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|   140k|			                                                       std::forward<Args>(extraArgs)...);
  422|   140k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|   140k|		{
  442|   140k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 140k, False: 129]
  ------------------
  443|   140k|			{
  444|   140k|				return m_NextLayer;
  445|   140k|			}
  446|       |
  447|    129|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|   140k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|   140k|		{
  394|   140k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 140k, False: 129]
  ------------------
  395|   140k|			{
  396|   140k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|   140k|			}
  398|    129|			return nullptr;
  399|   140k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  324|  21.9k|		{
  325|  21.9k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|  21.9k|			                                               std::forward<Args>(extraArgs)...);
  327|  21.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmDpOT0_:
  280|  43.5k|		{
  281|  43.5k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  43.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  43.5k|		{
  295|  43.5k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 43.5k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  43.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  43.5k|			setNextLayer(newLayer);
  302|  43.5k|			return newLayer;
  303|  43.5k|		}

_ZN4pcpp9LdapLayer10isLdapPortEt:
  347|   190k|		{
  348|   190k|			return port == 389;
  349|   190k|		}
_ZN4pcpp17LdapOperationTypeC2ENS0_5ValueE:
   74|  4.05k|		constexpr LdapOperationType(Value value) : m_Value(value)
   75|  4.05k|		{}
_ZNK4pcpp17LdapOperationTypecvNS0_5ValueEEv:
   88|  52.1k|		{
   89|  52.1k|			return m_Value;
   90|  52.1k|		}
_ZNK4pcpp9LdapLayer12getHeaderLenEv:
  366|  59.0k|		{
  367|  59.0k|			return m_Asn1Record->getTotalLength();
  368|  59.0k|		}
_ZN4pcpp9LdapLayer22computeCalculateFieldsEv:
  371|  8.16k|		{}
_ZNK4pcpp9LdapLayer16getOsiModelLayerEv:
  374|  8.16k|		{
  375|  8.16k|			return OsiModelApplicationLayer;
  376|  8.16k|		}
_ZNK4pcpp9LdapLayer21getExtendedInfoStringEv:
  389|  9.51k|		{
  390|  9.51k|			return "";
  391|  9.51k|		}
_ZN4pcpp17LdapResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  447|  12.4k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  448|  12.4k|		{}
_ZN4pcpp20LdapBindRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  555|  3.46k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  556|  3.46k|		{}
_ZN4pcpp21LdapBindResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  602|  1.11k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  603|  1.11k|		{}
_ZNK4pcpp22LdapUnbindRequestLayer20getLdapOperationTypeEv:
  622|  2.11k|		{
  623|  2.11k|			return LdapOperationType::UnbindRequest;
  624|  2.11k|		}
_ZN4pcpp22LdapUnbindRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  636|  5.34k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  637|  5.34k|		{}
_ZN4pcpp22LdapSearchRequestLayer18SearchRequestScopeC2ENS1_5ValueE:
  674|  1.35k|			constexpr SearchRequestScope(Value value) : m_Value(value)
  675|  1.35k|			{}
_ZN4pcpp22LdapSearchRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  820|  3.38k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  821|  3.38k|		{}
_ZN4pcpp26LdapSearchResultEntryLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  862|  1.12k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  863|  1.12k|		{}
_ZN4pcpp25LdapSearchResultDoneLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  895|  6.72k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  896|  6.72k|		{}
_ZN4pcpp23LdapModifyResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  928|    985|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  929|    985|		{}
_ZN4pcpp20LdapAddResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  961|     30|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  962|     30|		{}
_ZN4pcpp23LdapDeleteResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  994|    215|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  995|    215|		{}
_ZN4pcpp25LdapModifyDNResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
 1027|  2.21k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
 1028|  2.21k|		{}
_ZN4pcpp24LdapCompareResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
 1060|  1.14k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
 1061|  1.14k|		{}
_ZN4pcpp9LdapLayerD2Ev:
  299|  50.8k|		~LdapLayer() override = default;

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

_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|   132k|		{
  308|   132k|			return port == 3306;
  309|   132k|		}
_ZN4pcpp16MySqlMessageTypeC2ENS0_5ValueE:
  126|    106|		constexpr MySqlMessageType(Value value) : m_Value(value)
  127|    106|		{}
_ZNK4pcpp12MySqlMessage21getTotalMessageLengthEv:
  205|    106|		{
  206|    106|			return m_DataLen;
  207|    106|		}
_ZN4pcpp12MySqlMessageC2EPKhmRKNS_16MySqlMessageTypeENS_18MySqlMessageOriginE:
  216|     53|		    : m_Data(data), m_DataLen(dataLen), m_MessageType(messageType), m_MessageOrigin(origin)
  217|     53|		{}
_ZNK4pcpp10MySqlLayer12getHeaderLenEv:
  363|    211|		{
  364|    211|			return m_DataLen;
  365|    211|		}
_ZN4pcpp10MySqlLayer14parseNextLayerEv:
  369|  1.06k|		{}
_ZN4pcpp10MySqlLayer22computeCalculateFieldsEv:
  373|    211|		{}
_ZNK4pcpp10MySqlLayer16getOsiModelLayerEv:
  377|    211|		{
  378|    211|			return OsiModelApplicationLayer;
  379|    211|		}
_ZN4pcpp10MySqlLayerC2EPhmPNS_5LayerEPNS_6PacketENS_18MySqlMessageOriginE:
  390|  1.06k|		    : Layer(data, dataLen, prevLayer, packet, MySQL), m_MessageOrigin(origin)
  391|  1.06k|		{}
_ZN4pcpp12MySqlMessageD2Ev:
  172|     53|		virtual ~MySqlMessage() = default;
_ZN4pcpp10MySqlLayerD2Ev:
  301|  1.06k|		~MySqlLayer() override = default;

_ZN4pcpp28NDPNeighborSolicitationLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  177|    628|		    : NDPLayerBase(data, dataLen, prevLayer, packet)
  178|    628|		{}
_ZN4pcpp12NDPLayerBaseC2EPhmPNS_5LayerEPNS_6PacketE:
  140|    636|		    : IcmpV6Layer(data, dataLen, prevLayer, packet)
  141|    636|		{}
_ZN4pcpp12NDPLayerBaseD2Ev:
  102|    636|		~NDPLayerBase() override = default;
_ZNK4pcpp12NDPLayerBase20getNdpOptionsBasePtrEv:
  148|    322|		{
  149|    322|			return m_Data + getNdpHeaderLen();
  150|    322|		};
_ZN4pcpp29NDPNeighborAdvertisementLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  267|      8|		    : NDPLayerBase(data, dataLen, prevLayer, packet)
  268|      8|		{}
_ZN4pcpp9NdpOptionC2EPh:
   37|    322|		explicit NdpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
   38|    322|		{}
_ZNK4pcpp9NdpOption12getTotalSizeEv:
   56|     16|		{
   57|     16|			if (m_Data == nullptr)
  ------------------
  |  Branch (57:8): [True: 0, False: 16]
  ------------------
   58|      0|				return 0;
   59|       |
   60|     16|			return static_cast<size_t>(m_Data->recordLen) * 8;
   61|     16|		}
_ZNK4pcpp28NDPNeighborSolicitationLayer11getTargetIPEv:
  195|    314|		{
  196|    314|			return IPv6Address(getNdpHeader()->targetIP);
  197|    314|		};
_ZNK4pcpp28NDPNeighborSolicitationLayer12getNdpHeaderEv:
  212|    314|		{
  213|    314|			return reinterpret_cast<ndpneighborsolicitationhdr*>(m_Data);
  214|    314|		}
_ZNK4pcpp28NDPNeighborSolicitationLayer15getNdpHeaderLenEv:
  216|    628|		{
  217|    628|			return sizeof(ndpneighborsolicitationhdr);
  218|    628|		};
_ZNK4pcpp29NDPNeighborAdvertisementLayer11getTargetIPEv:
  298|      4|		{
  299|      4|			return IPv6Address(getNdpHeader()->targetIP);
  300|      4|		}
_ZNK4pcpp29NDPNeighborAdvertisementLayer12getNdpHeaderEv:
  328|      4|		{
  329|      4|			return reinterpret_cast<ndpneighboradvertisementhdr*>(m_Data);
  330|      4|		}
_ZNK4pcpp29NDPNeighborAdvertisementLayer15getNdpHeaderLenEv:
  332|     16|		{
  333|     16|			return sizeof(ndpneighboradvertisementhdr);
  334|     16|		};

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

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

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

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

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

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

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

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

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

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

_ZNK4pcpp9RawPacket10getRawDataEv:
  462|  2.73M|		{
  463|  2.73M|			return m_RawData;
  464|  2.73M|		}
_ZNK4pcpp9RawPacket16getLinkLayerTypeEv:
  469|   966k|		{
  470|   966k|			return m_LinkLayerType;
  471|   966k|		}
_ZNK4pcpp9RawPacket13getRawDataLenEv:
  481|  2.84M|		{
  482|  2.84M|			return m_RawDataLen;
  483|  2.84M|		}
_ZNK4pcpp9RawPacket18getPacketTimeStampEv:
  494|   178k|		{
  495|   178k|			return m_TimeStamp;
  496|   178k|		}
_ZN4pcpp9RawPacketC2Ev:
  312|  3.45k|		RawPacket() = default;

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

_ZN4pcpp8SSHLayer9isSSHPortEtt:
   93|   235k|		{
   94|   235k|			return portSrc == 22 || portDst == 22;
  ------------------
  |  Branch (94:11): [True: 6.35k, False: 228k]
  |  Branch (94:28): [True: 8.39k, False: 220k]
  ------------------
   95|   235k|		}
_ZN4pcpp8SSHLayer22computeCalculateFieldsEv:
  105|  3.17k|		{}
_ZNK4pcpp8SSHLayer16getOsiModelLayerEv:
  108|  3.17k|		{
  109|  3.17k|			return OsiModelApplicationLayer;
  110|  3.17k|		}
_ZN4pcpp8SSHLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  115|  17.0k|		    : Layer(data, dataLen, prevLayer, packet, SSH)
  116|  17.0k|		{}
_ZNK4pcpp24SSHIdentificationMessage12getHeaderLenEv:
  149|  2.20k|		{
  150|  2.20k|			return m_DataLen;
  151|  2.20k|		}
_ZN4pcpp24SSHIdentificationMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  161|  1.83k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  162|  1.83k|		{}
_ZN4pcpp19SSHHandshakeMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  261|  8.57k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  262|  8.57k|		{}
_ZNK4pcpp19SSHHandshakeMessage16getMsgBaseHeaderEv:
  265|  13.2k|		{
  266|  13.2k|			return reinterpret_cast<ssh_message_base*>(m_Data);
  267|  13.2k|		}
_ZN4pcpp19SSHEncryptedMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  395|  6.63k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  396|  6.63k|		{}
_ZNK4pcpp19SSHEncryptedMessage12getHeaderLenEv:
  402|  7.87k|		{
  403|  7.87k|			return m_DataLen;
  404|  7.87k|		}

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

_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  946|  6.65k|	{
  947|  6.65k|		size_t vecSize = m_ExtensionList.size();
  948|  12.7k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 9.23k, False: 3.48k]
  ------------------
  949|  9.23k|		{
  950|  9.23k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  9.23k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 3.16k, False: 6.07k]
  ------------------
  952|  3.16k|				return static_cast<TExtension*>(curElem);
  953|  9.23k|		}
  954|       |
  955|  3.48k|		return nullptr;
  956|  6.65k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  946|  6.65k|	{
  947|  6.65k|		size_t vecSize = m_ExtensionList.size();
  948|  52.7k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 46.9k, False: 5.80k]
  ------------------
  949|  46.9k|		{
  950|  46.9k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  46.9k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 845, False: 46.1k]
  ------------------
  952|    845|				return static_cast<TExtension*>(curElem);
  953|  46.9k|		}
  954|       |
  955|  5.80k|		return nullptr;
  956|  6.65k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  959|  4.22k|	{
  960|  4.22k|		size_t vecSize = m_ExtensionList.size();
  961|  7.79k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 4.17k, False: 3.61k]
  ------------------
  962|  4.17k|		{
  963|  4.17k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  4.17k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 608, False: 3.56k]
  ------------------
  965|    608|				return static_cast<TExtension*>(curElem);
  966|  4.17k|		}
  967|       |
  968|  3.61k|		return nullptr;
  969|  4.22k|	}
_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|   740k|		{
  188|   740k|			return reinterpret_cast<SSLExtensionStruct*>(m_RawData);
  189|   740k|		}
_ZN4pcpp18SSLx509CertificateC2EPhmb:
  255|  21.9k|		    : m_Data(data), m_DataLen(dataLen), m_AllDataExists(allDataExists)
  256|  21.9k|		{}
_ZNK4pcpp21SSLClientHelloMessage20getClientHelloHeaderEv:
  402|  13.3k|		{
  403|  13.3k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  404|  13.3k|		}
_ZNK4pcpp21SSLServerHelloMessage20getServerHelloHeaderEv:
  538|  7.87k|		{
  539|  7.87k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  540|  7.87k|		}
_ZN4pcpp22SSLHelloRequestMessageC2EPhmPNS_17SSLHandshakeLayerE:
  676|  29.1k|		    : SSLHandshakeMessage(data, dataLen, container)
  677|  29.1k|		{}
_ZN4pcpp27SSLServerKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  699|  3.41k|		    : SSLHandshakeMessage(data, dataLen, container)
  700|  3.41k|		{}
_ZN4pcpp27SSLClientKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  733|  2.89k|		    : SSLHandshakeMessage(data, dataLen, container)
  734|  2.89k|		{}
_ZN4pcpp25SSLServerHelloDoneMessageC2EPhmPNS_17SSLHandshakeLayerE:
  803|  1.64k|		    : SSLHandshakeMessage(data, dataLen, container)
  804|  1.64k|		{}
_ZN4pcpp27SSLCertificateVerifyMessageC2EPhmPNS_17SSLHandshakeLayerE:
  826|    877|		    : SSLHandshakeMessage(data, dataLen, container)
  827|    877|		{}
_ZN4pcpp18SSLFinishedMessageC2EPhmPNS_17SSLHandshakeLayerE:
  860|    875|		    : SSLHandshakeMessage(data, dataLen, container)
  861|    875|		{}
_ZN4pcpp26SSLNewSessionTicketMessageC2EPhmPNS_17SSLHandshakeLayerE:
  893|  2.02k|		    : SSLHandshakeMessage(data, dataLen, container)
  894|  2.02k|		{}
_ZN4pcpp17SSLUnknownMessageC2EPhmPNS_17SSLHandshakeLayerE:
  927|  49.4k|		    : SSLHandshakeMessage(data, dataLen, container)
  928|  49.4k|		{}
_ZN4pcpp19SSLHandshakeMessageD2Ev:
  306|   175k|		virtual ~SSLHandshakeMessage() = default;
_ZN4pcpp21SSLClientHelloMessageD2Ev:
  397|  37.2k|		~SSLClientHelloMessage() override = default;
_ZN4pcpp21SSLServerHelloMessageD2Ev:
  533|  27.3k|		~SSLServerHelloMessage() override = default;
_ZN4pcpp21SSLCertificateMessageD2Ev:
  641|  8.50k|		~SSLCertificateMessage() override = default;
_ZN4pcpp28SSLCertificateRequestMessageD2Ev:
  767|  12.3k|		~SSLCertificateRequestMessage() override = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_32SSLServerNameIndicationExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  98.9k|		{
  153|  98.9k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 98.9k]
  |  Branch (153:27): [True: 0, False: 98.9k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  98.9k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  98.9k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 2.67k, False: 96.2k]
  ------------------
  160|  2.67k|			{
  161|  2.67k|				return nullptr;
  162|  2.67k|			}
  163|       |
  164|  96.2k|			return std::make_unique<T>(data, dataLen);
  165|  98.9k|		}
_ZN4pcpp12SSLExtensionD2Ev:
  123|   305k|		virtual ~SSLExtension() = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_29SSLSupportedVersionsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  7.35k|		{
  153|  7.35k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 7.35k]
  |  Branch (153:27): [True: 0, False: 7.35k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  7.35k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  7.35k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 772, False: 6.58k]
  ------------------
  160|    772|			{
  161|    772|				return nullptr;
  162|    772|			}
  163|       |
  164|  6.58k|			return std::make_unique<T>(data, dataLen);
  165|  7.35k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_27TLSSupportedGroupsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  16.3k|		{
  153|  16.3k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 16.3k]
  |  Branch (153:27): [True: 0, False: 16.3k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  16.3k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  16.3k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 121, False: 16.2k]
  ------------------
  160|    121|			{
  161|    121|				return nullptr;
  162|    121|			}
  163|       |
  164|  16.2k|			return std::make_unique<T>(data, dataLen);
  165|  16.3k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_25TLSECPointFormatExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  18.4k|		{
  153|  18.4k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 18.4k]
  |  Branch (153:27): [True: 0, False: 18.4k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  18.4k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  18.4k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 0, False: 18.4k]
  ------------------
  160|      0|			{
  161|      0|				return nullptr;
  162|      0|			}
  163|       |
  164|  18.4k|			return std::make_unique<T>(data, dataLen);
  165|  18.4k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionIS0_TnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS2_10unique_ptrIS4_NS2_14default_deleteIS4_EEEEPhm:
  152|   177k|		{
  153|   177k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 177k]
  |  Branch (153:27): [True: 0, False: 177k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|   177k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|   177k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 9.01k, False: 168k]
  ------------------
  160|  9.01k|			{
  161|  9.01k|				return nullptr;
  162|  9.01k|			}
  163|       |
  164|   168k|			return std::make_unique<T>(data, dataLen);
  165|   177k|		}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_27TLSSupportedGroupsExtensionEEEPT_v:
  946|  6.65k|	{
  947|  6.65k|		size_t vecSize = m_ExtensionList.size();
  948|  32.2k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 28.6k, False: 3.65k]
  ------------------
  949|  28.6k|		{
  950|  28.6k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  28.6k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 2.99k, False: 25.6k]
  ------------------
  952|  2.99k|				return static_cast<TExtension*>(curElem);
  953|  28.6k|		}
  954|       |
  955|  3.65k|		return nullptr;
  956|  6.65k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_25TLSECPointFormatExtensionEEEPT_v:
  946|  6.65k|	{
  947|  6.65k|		size_t vecSize = m_ExtensionList.size();
  948|  32.3k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 28.7k, False: 3.53k]
  ------------------
  949|  28.7k|		{
  950|  28.7k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  28.7k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 3.12k, False: 25.6k]
  ------------------
  952|  3.12k|				return static_cast<TExtension*>(curElem);
  953|  28.7k|		}
  954|       |
  955|  3.53k|		return nullptr;
  956|  6.65k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  959|  8.44k|	{
  960|  8.44k|		size_t vecSize = m_ExtensionList.size();
  961|  18.0k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 10.2k, False: 7.83k]
  ------------------
  962|  10.2k|		{
  963|  10.2k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  10.2k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 618, False: 9.59k]
  ------------------
  965|    618|				return static_cast<TExtension*>(curElem);
  966|  10.2k|		}
  967|       |
  968|  7.83k|		return nullptr;
  969|  8.44k|	}

_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLClientHelloMessageEEEPT_v:
  444|  18.9k|	{
  445|  18.9k|		size_t vecSize = m_MessageList.size();
  446|  36.4k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 24.1k, False: 12.3k]
  ------------------
  447|  24.1k|		{
  448|  24.1k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  24.1k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 6.65k, False: 17.4k]
  ------------------
  450|  6.65k|				return (THandshakeMessage*)curElem;
  451|  24.1k|		}
  452|       |
  453|       |		// element not found
  454|  12.3k|		return nullptr;
  455|  18.9k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLServerHelloMessageEEEPT_v:
  444|  18.9k|	{
  445|  18.9k|		size_t vecSize = m_MessageList.size();
  446|  41.2k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 26.4k, False: 14.7k]
  ------------------
  447|  26.4k|		{
  448|  26.4k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  26.4k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 4.22k, False: 22.2k]
  ------------------
  450|  4.22k|				return (THandshakeMessage*)curElem;
  451|  26.4k|		}
  452|       |
  453|       |		// element not found
  454|  14.7k|		return nullptr;
  455|  18.9k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_19SSLHandshakeMessageEEEPT_v:
  444|  18.9k|	{
  445|  18.9k|		size_t vecSize = m_MessageList.size();
  446|  18.9k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 17.9k, False: 1.08k]
  ------------------
  447|  17.9k|		{
  448|  17.9k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  17.9k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 17.9k, False: 0]
  ------------------
  450|  17.9k|				return (THandshakeMessage*)curElem;
  451|  17.9k|		}
  452|       |
  453|       |		// element not found
  454|  1.08k|		return nullptr;
  455|  18.9k|	}  // getHandshakeMessageOfType
_ZNK4pcpp8SSLLayer14getRecordLayerEv:
  227|   446k|		{
  228|   446k|			return reinterpret_cast<ssl_tls_record_layer*>(m_Data);
  229|   446k|		}
_ZNK4pcpp8SSLLayer16getOsiModelLayerEv:
  247|  35.7k|		{
  248|  35.7k|			return OsiModelPresentationLayer;
  249|  35.7k|		}
_ZN4pcpp8SSLLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  253|   221k|		    : Layer(data, dataLen, prevLayer, packet, SSL)
  254|   221k|		{}
_ZN4pcpp17SSLHandshakeLayer22computeCalculateFieldsEv:
  346|  18.9k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  364|  72.1k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  365|  72.1k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayer22computeCalculateFieldsEv:
  375|  11.3k|		{}
_ZN4pcpp13SSLAlertLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  390|  5.21k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  391|  5.21k|		{}
_ZN4pcpp13SSLAlertLayer22computeCalculateFieldsEv:
  407|    866|		{}
_ZN4pcpp23SSLApplicationDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  422|  26.3k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  423|  26.3k|		{}
_ZN4pcpp23SSLApplicationDataLayer22computeCalculateFieldsEv:
  440|  4.52k|		{}
_ZN4pcpp8SSLLayer9isSSLPortEt:
  489|   763k|	{
  490|   763k|		if (port == 443)  // HTTPS, this is likely case
  ------------------
  |  Branch (490:7): [True: 131k, False: 632k]
  ------------------
  491|   131k|			return true;
  492|       |
  493|   632k|		switch (port)
  494|   632k|		{
  495|    130|		case 261:  // NSIIOPS
  ------------------
  |  Branch (495:3): [True: 130, False: 631k]
  ------------------
  496|  3.49k|		case 448:  // DDM-SSL
  ------------------
  |  Branch (496:3): [True: 3.36k, False: 628k]
  ------------------
  497|  3.56k|		case 465:  // SMTPS
  ------------------
  |  Branch (497:3): [True: 70, False: 632k]
  ------------------
  498|  3.69k|		case 563:  // NNTPS
  ------------------
  |  Branch (498:3): [True: 130, False: 631k]
  ------------------
  499|  3.82k|		case 614:  // SSHELL
  ------------------
  |  Branch (499:3): [True: 132, False: 631k]
  ------------------
  500|  3.82k|		case 636:  // LDAPS
  ------------------
  |  Branch (500:3): [True: 0, False: 632k]
  ------------------
  501|  4.09k|		case 989:  // FTPS - data
  ------------------
  |  Branch (501:3): [True: 275, False: 631k]
  ------------------
  502|  4.09k|		case 990:  // FTPS - control
  ------------------
  |  Branch (502:3): [True: 0, False: 632k]
  ------------------
  503|  4.09k|		case 992:  // Telnet over TLS/SSL
  ------------------
  |  Branch (503:3): [True: 0, False: 632k]
  ------------------
  504|  4.82k|		case 993:  // IMAPS
  ------------------
  |  Branch (504:3): [True: 728, False: 631k]
  ------------------
  505|  4.82k|		case 994:  // IRCS
  ------------------
  |  Branch (505:3): [True: 0, False: 632k]
  ------------------
  506|  5.40k|		case 995:  // POP3S
  ------------------
  |  Branch (506:3): [True: 577, False: 631k]
  ------------------
  507|  5.40k|			return true;
  508|   626k|		default:
  ------------------
  |  Branch (508:3): [True: 626k, False: 5.40k]
  ------------------
  509|   626k|			return false;
  510|   632k|		}
  511|   632k|	}  // isSSLPort

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

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

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

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

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

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

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

_ZN4pcpp9TLVRecordIhhED2Ev:
   53|   627k|		virtual ~TLVRecord() = default;
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEED2Ev:
  222|   612k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp9TLVRecordIttEC2ERKS1_:
   48|  7.59k|		{
   49|  7.59k|			m_Data = other.m_Data;
   50|  7.59k|		}
_ZN4pcpp9TLVRecordIttED2Ev:
   53|  31.0k|		virtual ~TLVRecord() = default;
_ZN4pcpp9TLVRecordIttEaSERKS1_:
   77|  20.0k|		{
   78|  20.0k|			m_Data = other.m_Data;
   79|  20.0k|			return *this;
   80|  20.0k|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIjEET_m:
  162|  2.87k|		{
  163|  2.87k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (163:8): [True: 2.53k, False: 341]
  ------------------
  164|  2.53k|				return 0;
  165|       |
  166|    341|			T result;
  167|    341|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  168|    341|			return result;
  169|  2.87k|		}
_ZN4pcpp9TLVRecordIhhEC2ERKS1_:
   48|   242k|		{
   49|   242k|			m_Data = other.m_Data;
   50|   242k|		}
_ZNK4pcpp9TLVRecordIhhE14getValueOffsetEv:
  195|  4.63k|		{
  196|  4.63k|			return 0;
  197|  4.63k|		}
_ZN4pcpp9TLVRecordIhhEaSERKS1_:
   77|   472k|		{
   78|   472k|			m_Data = other.m_Data;
   79|   472k|			return *this;
   80|   472k|		}
_ZN4pcpp9TLVRecordIhhE6assignEPh:
   58|  1.41M|		{
   59|  1.41M|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   60|  1.41M|		}
_ZN4pcpp9TLVRecordIhhE9canAssignEPKhm:
   67|   172k|		{
   68|   172k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (68:11): [True: 172k, False: 0]
  ------------------
   69|   172k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (69:11): [True: 170k, False: 2.00k]
  ------------------
   70|   172k|		}
_ZN4pcpp9TLVRecordIttE6assignEPh:
   58|  60.8k|		{
   59|  60.8k|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   60|  60.8k|		}
_ZN4pcpp9TLVRecordIhhEC2EPh:
   40|   796k|		{
   41|   796k|			assign(recordRawData);
   42|   796k|		}
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEED2Ev:
  222|  14.6k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEEC2Ev:
  211|  14.6k|		{
  212|  14.6k|			m_RecordCount = static_cast<size_t>(-1);
  213|  14.6k|		}
_ZNK4pcpp9TLVRecordIhhE6isNullEv:
  128|  1.82M|		{
  129|  1.82M|			return (m_Data == nullptr);
  130|  1.82M|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIhEET_m:
  162|  4.30k|		{
  163|  4.30k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (163:8): [True: 12, False: 4.29k]
  ------------------
  164|     12|				return 0;
  165|       |
  166|  4.29k|			T result;
  167|  4.29k|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  168|  4.29k|			return result;
  169|  4.30k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE12getTLVRecordEjPhm:
  298|  11.6k|		{
  299|  11.6k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|   159k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 152k, False: 6.83k]
  ------------------
  301|   152k|			{
  302|   152k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 4.81k, False: 147k]
  ------------------
  303|  4.81k|				{
  304|  4.81k|					return curRec;
  305|  4.81k|				}
  306|       |
  307|   147k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|   147k|			}
  309|       |
  310|  6.83k|			curRec.assign(nullptr);
  311|  6.83k|			return curRec;  // for NRVO optimization
  312|  11.6k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getFirstTLVRecordEPhm:
  239|  17.4k|		{
  240|  17.4k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  17.4k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 0, False: 17.4k]
  ------------------
  242|      0|				return resRec;
  243|       |
  244|  17.4k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  17.4k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 195, False: 17.2k]
  ------------------
  247|    195|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  17.4k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 17.2k, False: 195]
  |  Branch (250:29): [True: 0, False: 17.2k]
  |  Branch (250:48): [True: 0, False: 17.2k]
  ------------------
  251|      0|				resRec.assign(nullptr);
  252|       |
  253|  17.4k|			return resRec;
  254|  17.4k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE16getNextTLVRecordERS1_PKhm:
  264|   261k|		{
  265|   261k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|   261k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 261k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|   261k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 11.0k, False: 250k]
  ------------------
  271|   261k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|   261k|			                                  record.getTotalSize()))
  273|  11.0k|				return resRec;
  274|       |
  275|   250k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|   250k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 0, False: 250k]
  ------------------
  278|      0|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|   250k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 0, False: 250k]
  ------------------
  282|      0|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|   250k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 250k, False: 0]
  |  Branch (285:28): [True: 1.34k, False: 249k]
  ------------------
  286|  1.34k|				resRec.assign(nullptr);
  287|       |
  288|   250k|			return resRec;
  289|   261k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getTLVRecordCountEPhm:
  322|  62.8k|		{
  323|  62.8k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (323:8): [True: 59.9k, False: 2.91k]
  ------------------
  324|  59.9k|				return m_RecordCount;
  325|       |
  326|  2.91k|			m_RecordCount = 0;
  327|  2.91k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  328|  60.0k|			while (!curRec.isNull())
  ------------------
  |  Branch (328:11): [True: 57.0k, False: 2.91k]
  ------------------
  329|  57.0k|			{
  330|  57.0k|				m_RecordCount++;
  331|  57.0k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  332|  57.0k|			}
  333|       |
  334|  2.91k|			return m_RecordCount;
  335|  62.8k|		}
_ZNK4pcpp9TLVRecordIhhE7getTypeEv:
  110|   363k|		{
  111|   363k|			if (m_Data == nullptr)
  ------------------
  |  Branch (111:8): [True: 0, False: 363k]
  ------------------
  112|      0|				return 0;
  113|       |
  114|   363k|			return m_Data->recordType;
  115|   363k|		}
_ZN4pcpp9TLVRecordIhhE15purgeRecordDataEv:
  146|  57.7k|		{
  147|  57.7k|			if (!isNull())
  ------------------
  |  Branch (147:8): [True: 57.7k, False: 0]
  ------------------
  148|  57.7k|			{
  149|  57.7k|				delete[] m_Data;
  150|  57.7k|				m_Data = nullptr;
  151|  57.7k|			}
  152|  57.7k|		}
_ZNK4pcpp9TLVRecordIhhE16getRecordBasePtrEv:
  140|  2.44M|		{
  141|  2.44M|			return reinterpret_cast<uint8_t*>(m_Data);
  142|  2.44M|		}
_ZN4pcpp9TLVRecordIttEC2EPh:
   40|  30.3k|		{
   41|  30.3k|			assign(recordRawData);
   42|  30.3k|		}
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEED2Ev:
  222|  18.3k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEEC2Ev:
  211|  18.3k|		{
  212|  18.3k|			m_RecordCount = static_cast<size_t>(-1);
  213|  18.3k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getFirstTLVRecordEPhm:
  239|  10.2k|		{
  240|  10.2k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  10.2k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 0, False: 10.2k]
  ------------------
  242|      0|				return resRec;
  243|       |
  244|  10.2k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  10.2k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 167, False: 10.1k]
  ------------------
  247|    167|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  10.2k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 10.1k, False: 167]
  |  Branch (250:29): [True: 0, False: 10.1k]
  |  Branch (250:48): [True: 0, False: 10.1k]
  ------------------
  251|      0|				resRec.assign(nullptr);
  252|       |
  253|  10.2k|			return resRec;
  254|  10.2k|		}
_ZN4pcpp9TLVRecordIttE9canAssignEPKhm:
   67|  30.3k|		{
   68|  30.3k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (68:11): [True: 30.3k, False: 0]
  ------------------
   69|  30.3k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (69:11): [True: 25.1k, False: 5.17k]
  ------------------
   70|  30.3k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE16getNextTLVRecordERS1_PKhm:
  264|  20.0k|		{
  265|  20.0k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|  20.0k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 20.0k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|  20.0k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 5.17k, False: 14.8k]
  ------------------
  271|  20.0k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|  20.0k|			                                  record.getTotalSize()))
  273|  5.17k|				return resRec;
  274|       |
  275|  14.8k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|  14.8k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 0, False: 14.8k]
  ------------------
  278|      0|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|  14.8k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 0, False: 14.8k]
  ------------------
  282|      0|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|  14.8k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 14.8k, False: 0]
  |  Branch (285:28): [True: 3.38k, False: 11.5k]
  ------------------
  286|  3.38k|				resRec.assign(nullptr);
  287|       |
  288|  14.8k|			return resRec;
  289|  20.0k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE12getTLVRecordEjPhm:
  298|  3.36k|		{
  299|  3.36k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|  8.23k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 6.41k, False: 1.82k]
  ------------------
  301|  6.41k|			{
  302|  6.41k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 1.54k, False: 4.87k]
  ------------------
  303|  1.54k|				{
  304|  1.54k|					return curRec;
  305|  1.54k|				}
  306|       |
  307|  4.87k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|  4.87k|			}
  309|       |
  310|  1.82k|			curRec.assign(nullptr);
  311|  1.82k|			return curRec;  // for NRVO optimization
  312|  3.36k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getTLVRecordCountEPhm:
  322|  14.5k|		{
  323|  14.5k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (323:8): [True: 10.9k, False: 3.53k]
  ------------------
  324|  10.9k|				return m_RecordCount;
  325|       |
  326|  3.53k|			m_RecordCount = 0;
  327|  3.53k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  328|  11.1k|			while (!curRec.isNull())
  ------------------
  |  Branch (328:11): [True: 7.59k, False: 3.53k]
  ------------------
  329|  7.59k|			{
  330|  7.59k|				m_RecordCount++;
  331|  7.59k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  332|  7.59k|			}
  333|       |
  334|  3.53k|			return m_RecordCount;
  335|  14.5k|		}
_ZNK4pcpp9TLVRecordIttE6isNullEv:
  128|  64.5k|		{
  129|  64.5k|			return (m_Data == nullptr);
  130|  64.5k|		}
_ZNK4pcpp9TLVRecordIttE16getRecordBasePtrEv:
  140|  95.0k|		{
  141|  95.0k|			return reinterpret_cast<uint8_t*>(m_Data);
  142|  95.0k|		}
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEED2Ev:
  222|   875k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEEC2Ev:
  211|   875k|		{
  212|   875k|			m_RecordCount = static_cast<size_t>(-1);
  213|   875k|		}
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEED2Ev:
  222|  17.0k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEEC2Ev:
  211|  1.78k|		{
  212|  1.78k|			m_RecordCount = static_cast<size_t>(-1);
  213|  1.78k|		}
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEED2Ev:
  222|  1.78k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEEC2Ev:
  211|  1.03k|		{
  212|  1.03k|			m_RecordCount = static_cast<size_t>(-1);
  213|  1.03k|		}
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEED2Ev:
  222|  1.03k|		virtual ~TLVRecordReader() = default;
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE12getTLVRecordEjPhm:
  298|  95.3k|		{
  299|  95.3k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|   121k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 83.3k, False: 37.6k]
  ------------------
  301|  83.3k|			{
  302|  83.3k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 57.7k, False: 25.6k]
  ------------------
  303|  57.7k|				{
  304|  57.7k|					return curRec;
  305|  57.7k|				}
  306|       |
  307|  25.6k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|  25.6k|			}
  309|       |
  310|  37.6k|			curRec.assign(nullptr);
  311|  37.6k|			return curRec;  // for NRVO optimization
  312|  95.3k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE17getFirstTLVRecordEPhm:
  239|   153k|		{
  240|   153k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|   153k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 33.0k, False: 119k]
  ------------------
  242|  33.0k|				return resRec;
  243|       |
  244|   119k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|   119k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 2.51k, False: 117k]
  ------------------
  247|  2.51k|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|   119k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 117k, False: 2.51k]
  |  Branch (250:29): [True: 0, False: 117k]
  |  Branch (250:48): [True: 237, False: 117k]
  ------------------
  251|    237|				resRec.assign(nullptr);
  252|       |
  253|   119k|			return resRec;
  254|   153k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE16getNextTLVRecordERS1_PKhm:
  264|   211k|		{
  265|   211k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|   211k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 211k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|   211k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 46.3k, False: 164k]
  ------------------
  271|   211k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|   211k|			                                  record.getTotalSize()))
  273|  46.3k|				return resRec;
  274|       |
  275|   164k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|   164k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 2.26k, False: 162k]
  ------------------
  278|  2.26k|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|   164k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 2.26k, False: 162k]
  ------------------
  282|  2.26k|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|   164k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 162k, False: 2.26k]
  |  Branch (285:28): [True: 10.8k, False: 151k]
  ------------------
  286|  10.8k|				resRec.assign(nullptr);
  287|       |
  288|   164k|			return resRec;
  289|   211k|		}
_ZNK4pcpp9TLVRecordIhhE9isNotNullEv:
  134|   185k|		{
  135|   185k|			return (m_Data != nullptr);
  136|   185k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEE20changeTLVRecordCountEi:
  343|  57.7k|		{
  344|  57.7k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (344:8): [True: 0, False: 57.7k]
  ------------------
  345|      0|				m_RecordCount += changedBy;
  346|  57.7k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEC2Ev:
  211|   612k|		{
  212|   612k|			m_RecordCount = static_cast<size_t>(-1);
  213|   612k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEaSERKS2_:
  227|  95.3k|		{
  228|  95.3k|			m_RecordCount = other.m_RecordCount;
  229|  95.3k|			return *this;
  230|  95.3k|		}
_ZN4pcpp15TLVRecordReaderINS_15RadiusAttributeEEC2Ev:
  211|  10.3k|		{
  212|  10.3k|			m_RecordCount = static_cast<size_t>(-1);
  213|  10.3k|		}
_ZN4pcpp15TLVRecordReaderINS_15RadiusAttributeEED2Ev:
  222|  10.3k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_9NdpOptionEEC2Ev:
  211|    636|		{
  212|    636|			m_RecordCount = static_cast<size_t>(-1);
  213|    636|		}
_ZN4pcpp15TLVRecordReaderINS_9NdpOptionEED2Ev:
  222|    636|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEEC2Ev:
  211|  17.0k|		{
  212|  17.0k|			m_RecordCount = static_cast<size_t>(-1);
  213|  17.0k|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE17getFirstTLVRecordEPhm:
  239|    322|		{
  240|    322|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|    322|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 314, False: 8]
  ------------------
  242|    314|				return resRec;
  243|       |
  244|      8|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|      8|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 0, False: 8]
  ------------------
  247|      0|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|      8|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 8, False: 0]
  |  Branch (250:29): [True: 0, False: 8]
  |  Branch (250:48): [True: 0, False: 8]
  ------------------
  251|      0|				resRec.assign(nullptr);
  252|       |
  253|      8|			return resRec;
  254|    322|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE12getTLVRecordEjPhm:
  298|    322|		{
  299|    322|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|    322|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 8, False: 314]
  ------------------
  301|      8|			{
  302|      8|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 8, False: 0]
  ------------------
  303|      8|				{
  304|      8|					return curRec;
  305|      8|				}
  306|       |
  307|      0|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|      0|			}
  309|       |
  310|    314|			curRec.assign(nullptr);
  311|    314|			return curRec;  // for NRVO optimization
  312|    322|		}
_ZNK4pcpp9TLVRecordIhhE8getValueEv:
  119|      4|		{
  120|      4|			if (m_Data == nullptr)
  ------------------
  |  Branch (120:8): [True: 0, False: 4]
  ------------------
  121|      0|				return nullptr;
  122|       |
  123|      4|			return m_Data->recordValue;
  124|      4|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE12getTLVRecordEjPhm:
  298|  1.75k|		{
  299|  1.75k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|  2.95k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 1.20k, False: 1.75k]
  ------------------
  301|  1.20k|			{
  302|  1.20k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 0, False: 1.20k]
  ------------------
  303|      0|				{
  304|      0|					return curRec;
  305|      0|				}
  306|       |
  307|  1.20k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|  1.20k|			}
  309|       |
  310|  1.75k|			curRec.assign(nullptr);
  311|  1.75k|			return curRec;  // for NRVO optimization
  312|  1.75k|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE17getFirstTLVRecordEPhm:
  239|  2.64k|		{
  240|  2.64k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  2.64k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 16, False: 2.63k]
  ------------------
  242|     16|				return resRec;
  243|       |
  244|  2.63k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  2.63k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 684, False: 1.94k]
  ------------------
  247|    684|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  2.63k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 1.94k, False: 684]
  |  Branch (250:29): [True: 0, False: 1.94k]
  |  Branch (250:48): [True: 861, False: 1.08k]
  ------------------
  251|    861|				resRec.assign(nullptr);
  252|       |
  253|  2.63k|			return resRec;
  254|  2.64k|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE16getNextTLVRecordERS1_PKhm:
  264|  1.80k|		{
  265|  1.80k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|  1.80k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 1.80k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|  1.80k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 0, False: 1.80k]
  ------------------
  271|  1.80k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|  1.80k|			                                  record.getTotalSize()))
  273|      0|				return resRec;
  274|       |
  275|  1.80k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|  1.80k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 48, False: 1.75k]
  ------------------
  278|     48|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|  1.80k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 48, False: 1.75k]
  ------------------
  282|     48|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|  1.80k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 1.75k, False: 48]
  |  Branch (285:28): [True: 1.03k, False: 720]
  ------------------
  286|  1.03k|				resRec.assign(nullptr);
  287|       |
  288|  1.80k|			return resRec;
  289|  1.80k|		}

_ZN4pcpp8TcpLayerD2Ev:
  459|   612k|		~TcpLayer() override = default;
_ZN4pcpp9TcpOptionC2EPh:
  257|   517k|		explicit TcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  258|   517k|		{}
_ZN4pcpp9TcpOption9canAssignEPKhm:
  282|   364k|		{
  283|   364k|			const auto* data = reinterpret_cast<const TLVRawData*>(recordRawData);
  284|   364k|			if (data == nullptr)
  ------------------
  |  Branch (284:8): [True: 0, False: 364k]
  ------------------
  285|      0|				return false;
  286|       |
  287|   364k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (287:8): [True: 78.9k, False: 285k]
  ------------------
  288|  78.9k|				return false;
  289|       |
  290|   285k|			const auto recordType = getTcpOptionEnumType(data);
  291|   285k|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (291:8): [True: 162k, False: 122k]
  |  Branch (291:48): [True: 14.7k, False: 107k]
  ------------------
  292|   177k|				return true;
  293|       |
  294|   107k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  295|   285k|		}
_ZNK4pcpp9TcpOption12getTotalSizeEv:
  300|  1.56M|		{
  301|  1.56M|			if (m_Data == nullptr)
  ------------------
  |  Branch (301:8): [True: 0, False: 1.56M]
  ------------------
  302|      0|				return 0;
  303|       |
  304|  1.56M|			const auto recordType = getTcpOptionEnumType(m_Data);
  305|  1.56M|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (305:8): [True: 977k, False: 589k]
  |  Branch (305:48): [True: 83.8k, False: 506k]
  ------------------
  306|  1.06M|				return sizeof(uint8_t);
  307|       |
  308|   506k|			return static_cast<size_t>(m_Data->recordLen);
  309|  1.56M|		}
_ZN4pcpp9TcpOption20getTcpOptionEnumTypeEPKNS_9TLVRecordIhhE10TLVRawDataE:
  333|  1.85M|		{
  334|  1.85M|			if (optionRawData == nullptr)
  ------------------
  |  Branch (334:8): [True: 0, False: 1.85M]
  ------------------
  335|      0|				return TcpOptionEnumType::Unknown;
  336|       |
  337|  1.85M|			return static_cast<TcpOptionEnumType>(optionRawData->recordType);
  338|  1.85M|		}
_ZNK4pcpp8TcpLayer12getTcpHeaderEv:
  472|  2.90M|		{
  473|  2.90M|			return reinterpret_cast<tcphdr*>(m_Data);
  474|  2.90M|		}
_ZNK4pcpp8TcpLayer12getHeaderLenEv:
  566|  1.24M|		{
  567|  1.24M|			return getTcpHeader()->dataOffset * 4;
  568|  1.24M|		}
_ZNK4pcpp8TcpLayer16getOsiModelLayerEv:
  576|  95.3k|		{
  577|  95.3k|			return OsiModelTransportLayer;
  578|  95.3k|		}
_ZNK4pcpp8TcpLayer17getOptionsBasePtrEv:
  586|   338k|		{
  587|   338k|			return m_Data + sizeof(tcphdr);
  588|   338k|		}
_ZN4pcpp8TcpLayer11isDataValidEPKhm:
  597|   527k|	{
  598|   527k|		const tcphdr* hdr = reinterpret_cast<const tcphdr*>(data);
  599|   527k|		return dataLen >= sizeof(tcphdr) && hdr->dataOffset >= 5 /* the minimum TCP header size */
  ------------------
  |  Branch (599:10): [True: 527k, False: 234]
  |  Branch (599:39): [True: 525k, False: 2.13k]
  ------------------
  600|   525k|		       && dataLen >= hdr->dataOffset * sizeof(uint32_t);
  ------------------
  |  Branch (600:13): [True: 517k, False: 8.37k]
  ------------------
  601|   527k|	}

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

_ZNK4pcpp11HeaderField12getFieldSizeEv:
   49|  2.90M|		{
   50|  2.90M|			return m_FieldSize;
   51|  2.90M|		}
_ZNK4pcpp11HeaderField13isEndOfHeaderEv:
   70|  1.10M|		{
   71|  1.10M|			return m_IsEndOfHeaderField;
   72|  1.10M|		}
_ZNK4pcpp24TextBasedProtocolMessage13getFirstFieldEv:
  123|  3.84k|		{
  124|  3.84k|			return m_FieldList;
  125|  3.84k|		}

_ZN4pcpp9TpktLayer11isDataValidEPKhm:
   92|   127k|		{
   93|   127k|			return canReinterpretAs<tpkthdr>(data, dataSize);
   94|   127k|		}
_ZN4pcpp9TpktLayer10isTpktPortEtt:
   83|   124k|		{
   84|   124k|			return portSrc == 102 || portDst == 102;
  ------------------
  |  Branch (84:11): [True: 8.35k, False: 115k]
  |  Branch (84:29): [True: 15.3k, False: 100k]
  ------------------
   85|   124k|		}
_ZN4pcpp9TpktLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   38|  23.6k|		    : Layer(data, dataLen, prevLayer, packet, TPKT)
   39|  23.6k|		{}
_ZNK4pcpp9TpktLayer12getHeaderLenEv:
   67|  26.9k|		{
   68|  26.9k|			return sizeof(tpkthdr);
   69|  26.9k|		}
_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|   320k|	{
   98|   320k|		return data && dataLen >= sizeof(udphdr);
  ------------------
  |  Branch (98:10): [True: 320k, False: 0]
  |  Branch (98:18): [True: 317k, False: 2.79k]
  ------------------
   99|   320k|	}
_ZN4pcpp8UdpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   39|   317k|		    : Layer(data, dataLen, prevLayer, packet, UDP)
   40|   317k|		{}
_ZNK4pcpp8UdpLayer12getUdpHeaderEv:
   51|   837k|		{
   52|   837k|			return reinterpret_cast<udphdr*>(m_Data);
   53|   837k|		}
_ZNK4pcpp8UdpLayer12getHeaderLenEv:
   81|   133k|		{
   82|   133k|			return sizeof(udphdr);
   83|   133k|		}
_ZNK4pcpp8UdpLayer16getOsiModelLayerEv:
   91|  50.3k|		{
   92|  50.3k|			return OsiModelTransportLayer;
   93|  50.3k|		}

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

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

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

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

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

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

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

_ZNK4pcpp8BgpLayer12getHeaderLenEv:
   17|  1.21M|	{
   18|  1.21M|		if (m_DataLen < sizeof(bgp_common_header))
  ------------------
  |  Branch (18:7): [True: 0, False: 1.21M]
  ------------------
   19|      0|		{
   20|      0|			return m_DataLen;
   21|      0|		}
   22|       |
   23|  1.21M|		uint16_t messageLen = be16toh(getBasicHeader()->length);
   24|  1.21M|		if (m_DataLen < messageLen)
  ------------------
  |  Branch (24:7): [True: 110k, False: 1.10M]
  ------------------
   25|   110k|		{
   26|   110k|			return m_DataLen;
   27|   110k|		}
   28|       |
   29|  1.10M|		return (size_t)messageLen;
   30|  1.21M|	}
_ZN4pcpp8BgpLayer13parseBgpLayerEPhmPNS_5LayerEPNS_6PacketE:
   33|   184k|	{
   34|   184k|		if (data == nullptr || dataLen < sizeof(bgp_common_header))
  ------------------
  |  Branch (34:7): [True: 0, False: 184k]
  |  Branch (34:26): [True: 10.1k, False: 174k]
  ------------------
   35|  10.1k|			return nullptr;
   36|       |
   37|   174k|		auto* bgpHeader = reinterpret_cast<bgp_common_header*>(data);
   38|       |
   39|       |		// illegal header data - length is too small
   40|   174k|		uint16_t messageLen = be16toh(bgpHeader->length);
   41|   174k|		if (dataLen < messageLen || messageLen < static_cast<uint16_t>(sizeof(bgp_common_header)))
  ------------------
  |  Branch (41:7): [True: 7.62k, False: 166k]
  |  Branch (41:31): [True: 2.56k, False: 163k]
  ------------------
   42|  10.1k|			return nullptr;
   43|       |
   44|   163k|		switch (bgpHeader->messageType)
   45|   163k|		{
   46|  23.9k|		case 1:  // OPEN
  ------------------
  |  Branch (46:3): [True: 23.9k, False: 140k]
  ------------------
   47|  23.9k|			return BgpOpenMessageLayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (47:11): [True: 23.9k, False: 0]
  ------------------
   48|  23.9k|			           ? new BgpOpenMessageLayer(data, dataLen, prevLayer, packet)
   49|  23.9k|			           : nullptr;
   50|   129k|		case 2:  // UPDATE
  ------------------
  |  Branch (50:3): [True: 129k, False: 34.7k]
  ------------------
   51|   129k|			return BgpUpdateMessageLayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (51:11): [True: 127k, False: 1.75k]
  ------------------
   52|   129k|			           ? new BgpUpdateMessageLayer(data, dataLen, prevLayer, packet)
   53|   129k|			           : nullptr;
   54|  4.01k|		case 3:  // NOTIFICATION
  ------------------
  |  Branch (54:3): [True: 4.01k, False: 159k]
  ------------------
   55|  4.01k|			return new BgpNotificationMessageLayer(data, dataLen, prevLayer, packet);
   56|  3.80k|		case 4:  // KEEPALIVE
  ------------------
  |  Branch (56:3): [True: 3.80k, False: 160k]
  ------------------
   57|  3.80k|			return new BgpKeepaliveMessageLayer(data, dataLen, prevLayer, packet);
   58|  2.66k|		case 5:  // ROUTE-REFRESH
  ------------------
  |  Branch (58:3): [True: 2.66k, False: 161k]
  ------------------
   59|  2.66k|			return new BgpRouteRefreshMessageLayer(data, dataLen, prevLayer, packet);
   60|    266|		default:
  ------------------
  |  Branch (60:3): [True: 266, False: 163k]
  ------------------
   61|    266|			return nullptr;
   62|   163k|		}
   63|   163k|	}
_ZNK4pcpp8BgpLayer22getMessageTypeAsStringEv:
   66|  53.6k|	{
   67|  53.6k|		switch (getBgpMessageType())
   68|  53.6k|		{
   69|  10.0k|		case BgpLayer::Open:
  ------------------
  |  Branch (69:3): [True: 10.0k, False: 43.6k]
  ------------------
   70|  10.0k|			return "OPEN";
   71|  37.7k|		case BgpLayer::Update:
  ------------------
  |  Branch (71:3): [True: 37.7k, False: 15.9k]
  ------------------
   72|  37.7k|			return "UPDATE";
   73|  2.01k|		case BgpLayer::Notification:
  ------------------
  |  Branch (73:3): [True: 2.01k, False: 51.6k]
  ------------------
   74|  2.01k|			return "NOTIFICATION";
   75|  2.28k|		case BgpLayer::Keepalive:
  ------------------
  |  Branch (75:3): [True: 2.28k, False: 51.4k]
  ------------------
   76|  2.28k|			return "KEEPALIVE";
   77|  1.59k|		case BgpLayer::RouteRefresh:
  ------------------
  |  Branch (77:3): [True: 1.59k, False: 52.0k]
  ------------------
   78|  1.59k|			return "ROUTE-REFRESH";
   79|      0|		default:
  ------------------
  |  Branch (79:3): [True: 0, False: 53.6k]
  ------------------
   80|      0|			return "Unknown";
   81|  53.6k|		}
   82|  53.6k|	}
_ZN4pcpp8BgpLayer14parseNextLayerEv:
   85|   161k|	{
   86|   161k|		size_t headerLen = getHeaderLen();
   87|   161k|		if (m_DataLen <= headerLen || headerLen == 0)
  ------------------
  |  Branch (87:7): [True: 26.3k, False: 135k]
  |  Branch (87:33): [True: 0, False: 135k]
  ------------------
   88|  26.3k|			return;
   89|       |
   90|   135k|		uint8_t* payload = m_Data + headerLen;
   91|   135k|		size_t payloadLen = m_DataLen - headerLen;
   92|       |
   93|   135k|		constructNextLayerFromFactory(BgpLayer::parseBgpLayer, payload, payloadLen);
   94|   135k|	}
_ZNK4pcpp8BgpLayer8toStringEv:
   97|  35.7k|	{
   98|  35.7k|		return "BGP Layer, " + getMessageTypeAsString() + " message";
   99|  35.7k|	}
_ZN4pcpp8BgpLayer22computeCalculateFieldsEv:
  102|  17.8k|	{
  103|  17.8k|		bgp_common_header* bgpHeader = getBasicHeader();
  104|  17.8k|		memset(bgpHeader->marker, 0xff, 16 * sizeof(uint8_t));
  105|  17.8k|		bgpHeader->messageType = (uint8_t)getBgpMessageType();
  106|       |		bgpHeader->length = htobe16(getHeaderLen());
  107|  17.8k|	}
_ZN4pcpp8BgpLayer11extendLayerEim:
  125|  43.8k|	{
  126|  43.8k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (126:7): [True: 43.8k, False: 0]
  ------------------
  127|  43.8k|		{
  128|  43.8k|			int rawPacketLen = getAttachedPacket()->getRawPacket()->getRawDataLen();
  129|  43.8k|			const uint8_t* rawPacketPtr = getAttachedPacket()->getRawPacket()->getRawData();
  130|       |
  131|  43.8k|			if (m_Data - rawPacketPtr + static_cast<ptrdiff_t>(offsetInLayer) > static_cast<ptrdiff_t>(rawPacketLen))
  ------------------
  |  Branch (131:8): [True: 4.43k, False: 39.4k]
  ------------------
  132|  4.43k|			{
  133|  4.43k|				PCPP_LOG_ERROR("Requested offset is larger than total packet length");
  ------------------
  |  |  443|  4.43k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  4.43k|	do                                                                                                                 \
  |  |  |  |  413|  4.43k|	{                                                                                                                  \
  |  |  |  |  414|  4.43k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  4.43k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.43k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 4.43k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  4.43k|		{                                                                                                              \
  |  |  |  |  417|  4.43k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  4.43k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.43k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  4.43k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  4.43k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  4.43k|		}                                                                                                              \
  |  |  |  |  422|  4.43k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 4.43k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  134|  4.43k|				return false;
  135|  4.43k|			}
  136|       |
  137|  39.4k|			if (m_NextLayer != nullptr && static_cast<ptrdiff_t>(offsetInLayer) > m_NextLayer->getData() - m_Data)
  ------------------
  |  Branch (137:8): [True: 35.0k, False: 4.39k]
  |  Branch (137:34): [True: 3.97k, False: 31.0k]
  ------------------
  138|  3.97k|			{
  139|  3.97k|				PCPP_LOG_ERROR("Requested offset exceeds current layer's boundary");
  ------------------
  |  |  443|  3.97k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  3.97k|	do                                                                                                                 \
  |  |  |  |  413|  3.97k|	{                                                                                                                  \
  |  |  |  |  414|  3.97k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.97k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.97k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 3.97k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.97k|		{                                                                                                              \
  |  |  |  |  417|  3.97k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  3.97k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.97k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  3.97k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  3.97k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  3.97k|		}                                                                                                              \
  |  |  |  |  422|  3.97k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.97k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  140|  3.97k|				return false;
  141|  3.97k|			}
  142|  39.4k|		}
  143|       |
  144|  35.4k|		return Layer::extendLayer(offsetInLayer, numOfBytesToExtend);
  145|  43.8k|	}
_ZN4pcpp8BgpLayer12shortenLayerEim:
  148|  45.5k|	{
  149|  45.5k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (149:7): [True: 45.5k, False: 0]
  ------------------
  150|  45.5k|		{
  151|  45.5k|			int rawPacketLen = getAttachedPacket()->getRawPacket()->getRawDataLen();
  152|  45.5k|			const uint8_t* rawPacketPtr = getAttachedPacket()->getRawPacket()->getRawData();
  153|       |
  154|  45.5k|			if (m_Data - rawPacketPtr + static_cast<ptrdiff_t>(offsetInLayer) +
  ------------------
  |  Branch (154:8): [True: 5.32k, False: 40.1k]
  ------------------
  155|  45.5k|			        static_cast<ptrdiff_t>(numOfBytesToShorten) >
  156|  45.5k|			    static_cast<ptrdiff_t>(rawPacketLen))
  157|  5.32k|			{
  158|  5.32k|				PCPP_LOG_ERROR("Requested number of bytes to shorten is larger than total packet length");
  ------------------
  |  |  443|  5.32k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  5.32k|	do                                                                                                                 \
  |  |  |  |  413|  5.32k|	{                                                                                                                  \
  |  |  |  |  414|  5.32k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  5.32k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.32k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 5.32k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  5.32k|		{                                                                                                              \
  |  |  |  |  417|  5.32k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  5.32k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.32k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  5.32k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  5.32k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  5.32k|		}                                                                                                              \
  |  |  |  |  422|  5.32k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 5.32k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  159|  5.32k|				return false;
  160|  5.32k|			}
  161|       |
  162|  40.1k|			if (m_NextLayer != nullptr &&
  ------------------
  |  Branch (162:8): [True: 33.2k, False: 6.91k]
  ------------------
  163|  33.2k|			    static_cast<ptrdiff_t>(offsetInLayer) + static_cast<ptrdiff_t>(numOfBytesToShorten) >
  ------------------
  |  Branch (163:8): [True: 1.71k, False: 31.5k]
  ------------------
  164|  33.2k|			        m_NextLayer->getData() - m_Data)
  165|  1.71k|			{
  166|  1.71k|				PCPP_LOG_ERROR("Requested number of bytes to shorten exceeds current layer's boundary");
  ------------------
  |  |  443|  1.71k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, 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 PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.71k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.71k|		{                                                                                                              \
  |  |  |  |  417|  1.71k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.71k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.71k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.71k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.71k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.71k|		}                                                                                                              \
  |  |  |  |  422|  1.71k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.71k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  167|  1.71k|				return false;
  168|  1.71k|			}
  169|  40.1k|		}
  170|       |
  171|  38.4k|		return Layer::shortenLayer(offsetInLayer, numOfBytesToShorten);
  172|  45.5k|	}
_ZN4pcpp19BgpOpenMessageLayer18optional_parameterC2EhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  179|  16.7k|	{
  180|  16.7k|		type = typeVal;
  181|  16.7k|		length = hexStringToByteArray(valueAsHexString, value, 32);
  182|  16.7k|	}
_ZN4pcpp19BgpOpenMessageLayer11isDataValidEPKhm:
  185|  23.9k|	{
  186|  23.9k|		if (data == nullptr || dataSize < sizeof(bgp_common_header))
  ------------------
  |  Branch (186:7): [True: 0, False: 23.9k]
  |  Branch (186:26): [True: 0, False: 23.9k]
  ------------------
  187|      0|		{
  188|      0|			return false;
  189|      0|		}
  190|       |
  191|  23.9k|		const auto* bgpHeader = reinterpret_cast<const bgp_common_header*>(data);
  192|  23.9k|		uint16_t messageLen = be16toh(bgpHeader->length);
  193|  23.9k|		return messageLen >= sizeof(bgp_open_message) && dataSize >= messageLen;
  ------------------
  |  Branch (193:10): [True: 23.9k, False: 0]
  |  Branch (193:52): [True: 23.9k, False: 0]
  ------------------
  194|  23.9k|	}
_ZN4pcpp19BgpOpenMessageLayer25optionalParamsToByteArrayERKNSt3__16vectorINS0_18optional_parameterENS1_9allocatorIS3_EEEEPhm:
  224|  10.0k|	{
  225|  10.0k|		if (resultByteArr == nullptr || maxByteArrSize == 0)
  ------------------
  |  Branch (225:7): [True: 0, False: 10.0k]
  |  Branch (225:35): [True: 0, False: 10.0k]
  ------------------
  226|      0|		{
  227|      0|			return 0;
  228|      0|		}
  229|       |
  230|  10.0k|		size_t dataLen = 0;
  231|       |
  232|  10.0k|		for (const auto& param : optionalParams)
  ------------------
  |  Branch (232:26): [True: 40.7k, False: 10.0k]
  ------------------
  233|  40.7k|		{
  234|  40.7k|			if (param.length > 32)
  ------------------
  |  Branch (234:8): [True: 0, False: 40.7k]
  ------------------
  235|      0|			{
  236|      0|				PCPP_LOG_ERROR("Illegal optional parameter length " << (int)param.length
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  237|      0|				                                                    << ", must be 32 bytes or less");
  238|      0|				break;  // illegal value
  239|      0|			}
  240|       |
  241|  40.7k|			size_t curDataSize = 2 * sizeof(uint8_t) + (size_t)param.length;
  242|       |
  243|  40.7k|			if (dataLen + curDataSize > maxByteArrSize)
  ------------------
  |  Branch (243:8): [True: 0, False: 40.7k]
  ------------------
  244|      0|			{
  245|      0|				break;
  246|      0|			}
  247|       |
  248|  40.7k|			resultByteArr[0] = param.type;
  249|  40.7k|			resultByteArr[1] = param.length;
  250|  40.7k|			if (param.length > 0)
  ------------------
  |  Branch (250:8): [True: 35.1k, False: 5.65k]
  ------------------
  251|  35.1k|			{
  252|  35.1k|				memcpy(resultByteArr + 2 * sizeof(uint8_t), param.value, param.length);
  253|  35.1k|			}
  254|       |
  255|  40.7k|			dataLen += curDataSize;
  256|  40.7k|			resultByteArr += curDataSize;
  257|  40.7k|		}
  258|       |
  259|  10.0k|		return dataLen;
  260|  10.0k|	}
_ZN4pcpp19BgpOpenMessageLayer21getOptionalParametersERNSt3__16vectorINS0_18optional_parameterENS1_9allocatorIS3_EEEE:
  274|  3.35k|	{
  275|  3.35k|		size_t headerLen = getHeaderLen();
  276|  3.35k|		bgp_open_message* msgHdr = getOpenMsgHeader();
  277|       |
  278|       |		// Parentheses around std::min avoid clashes with platform min macros (for example on Windows)
  279|  3.35k|		size_t optionalParamsLen =
  280|  3.35k|		    (std::min)(static_cast<size_t>(msgHdr->optionalParameterLength), headerLen - sizeof(bgp_open_message));
  281|       |
  282|  3.35k|		uint8_t* dataPtr = m_Data + sizeof(bgp_open_message);
  283|  3.35k|		size_t byteCount = 0;
  284|  15.3k|		while (byteCount < optionalParamsLen)
  ------------------
  |  Branch (284:10): [True: 14.6k, False: 668]
  ------------------
  285|  14.6k|		{
  286|  14.6k|			size_t remaining = optionalParamsLen - byteCount;
  287|  14.6k|			constexpr size_t optParamHdrSize = sizeof(optional_parameter::type) + sizeof(optional_parameter::length);
  288|  14.6k|			if (remaining < optParamHdrSize)
  ------------------
  |  Branch (288:8): [True: 382, False: 14.3k]
  ------------------
  289|    382|			{
  290|    382|				PCPP_LOG_ERROR("Truncated optional parameter header");
  ------------------
  |  |  443|    382|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    382|	do                                                                                                                 \
  |  |  |  |  413|    382|	{                                                                                                                  \
  |  |  |  |  414|    382|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    382|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    382|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 382, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    382|		{                                                                                                              \
  |  |  |  |  417|    382|			auto ctx =                                                                                                 \
  |  |  |  |  418|    382|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    382|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    382|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    382|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    382|		}                                                                                                              \
  |  |  |  |  422|    382|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 382]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  291|    382|				break;
  292|    382|			}
  293|       |
  294|  14.3k|			optional_parameter op;
  295|  14.3k|			op.type = dataPtr[0];
  296|  14.3k|			op.length = dataPtr[1];
  297|       |
  298|  14.3k|			size_t totalLen = optParamHdrSize + static_cast<size_t>(op.length);
  299|  14.3k|			if (totalLen > remaining)
  ------------------
  |  Branch (299:8): [True: 2.30k, False: 12.0k]
  ------------------
  300|  2.30k|			{
  301|  2.30k|				PCPP_LOG_ERROR("Optional parameter length is out of bounds: " << static_cast<int>(op.length));
  ------------------
  |  |  443|  2.30k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  2.30k|	do                                                                                                                 \
  |  |  |  |  413|  2.30k|	{                                                                                                                  \
  |  |  |  |  414|  2.30k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.30k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.30k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 2.30k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.30k|		{                                                                                                              \
  |  |  |  |  417|  2.30k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  2.30k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.30k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  2.30k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  2.30k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  2.30k|		}                                                                                                              \
  |  |  |  |  422|  2.30k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.30k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  302|  2.30k|				break;
  303|  2.30k|			}
  304|       |
  305|  12.0k|			if (op.length > 0)
  ------------------
  |  Branch (305:8): [True: 9.17k, False: 2.82k]
  ------------------
  306|  9.17k|			{
  307|  9.17k|				memcpy(op.value, dataPtr + optParamHdrSize,
  308|  9.17k|				       (std::min)(static_cast<size_t>(op.length), sizeof(op.value)));
  309|  9.17k|			}
  310|       |
  311|  12.0k|			optionalParameters.push_back(op);
  312|       |
  313|  12.0k|			byteCount += totalLen;
  314|  12.0k|			dataPtr += totalLen;
  315|  12.0k|		}
  316|  3.35k|	}
_ZN4pcpp19BgpOpenMessageLayer27getOptionalParametersLengthEv:
  319|  10.0k|	{
  320|  10.0k|		size_t headerLen = getHeaderLen();
  321|  10.0k|		bgp_open_message* msgHdr = getOpenMsgHeader();
  322|  10.0k|		auto optParamLen = static_cast<size_t>(msgHdr->optionalParameterLength);
  323|       |
  324|  10.0k|		constexpr size_t bgpOpenMsgHeaderSize = sizeof(bgp_open_message);
  325|  10.0k|		if (headerLen < optParamLen + bgpOpenMsgHeaderSize)
  ------------------
  |  Branch (325:7): [True: 1.17k, False: 8.89k]
  ------------------
  326|  1.17k|		{
  327|  1.17k|			PCPP_LOG_WARN("BGP Layer optional param length exceeds total BGP message. "
  ------------------
  |  |  431|  1.17k|#	define PCPP_LOG_WARN(message) PCPP_LOG(pcpp::LogLevel::Warn, message)
  |  |  ------------------
  |  |  |  |  412|  1.17k|	do                                                                                                                 \
  |  |  |  |  413|  1.17k|	{                                                                                                                  \
  |  |  |  |  414|  1.17k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.17k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.17k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.17k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.17k|		{                                                                                                              \
  |  |  |  |  417|  1.17k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.17k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.17k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.17k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.17k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.17k|		}                                                                                                              \
  |  |  |  |  422|  1.17k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.17k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  328|  1.17k|			              "This packet might be malformed! Trimming to maximum allowed by BGP message length.");
  329|  1.17k|			optParamLen = headerLen >= bgpOpenMsgHeaderSize ? headerLen - bgpOpenMsgHeaderSize : 0;
  ------------------
  |  Branch (329:18): [True: 1.13k, False: 38]
  ------------------
  330|  1.17k|		}
  331|       |
  332|  10.0k|		return optParamLen;
  333|  10.0k|	}
_ZN4pcpp19BgpOpenMessageLayer21setOptionalParametersERKNSt3__16vectorINS0_18optional_parameterENS1_9allocatorIS3_EEEE:
  336|  10.0k|	{
  337|  10.0k|		uint8_t newOptionalParamsData[1500];
  338|  10.0k|		size_t newOptionalParamsDataLen = optionalParamsToByteArray(optionalParameters, newOptionalParamsData, 1500);
  339|  10.0k|		size_t curOptionalParamsDataLen = getOptionalParametersLength();
  340|  10.0k|		constexpr int offsetInLayer = sizeof(bgp_open_message);
  341|       |
  342|  10.0k|		if (newOptionalParamsDataLen > curOptionalParamsDataLen)
  ------------------
  |  Branch (342:7): [True: 2.93k, False: 7.13k]
  ------------------
  343|  2.93k|		{
  344|  2.93k|			size_t numOfBytesToExtend = newOptionalParamsDataLen - curOptionalParamsDataLen;
  345|       |
  346|  2.93k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (346:8): [True: 79, False: 2.85k]
  ------------------
  347|     79|			{
  348|     79|				PCPP_LOG_ERROR("Couldn't extend BGP open layer to include the additional optional parameters");
  ------------------
  |  |  443|     79|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, 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 PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 79, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|     79|		{                                                                                                              \
  |  |  |  |  417|     79|			auto ctx =                                                                                                 \
  |  |  |  |  418|     79|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     79|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|     79|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|     79|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|     79|		}                                                                                                              \
  |  |  |  |  422|     79|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 79]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  349|     79|				return false;
  350|     79|			}
  351|  2.93k|		}
  352|  7.13k|		else if (newOptionalParamsDataLen < curOptionalParamsDataLen)
  ------------------
  |  Branch (352:12): [True: 5.48k, False: 1.64k]
  ------------------
  353|  5.48k|		{
  354|  5.48k|			size_t numOfBytesToShorten = curOptionalParamsDataLen - newOptionalParamsDataLen;
  355|       |
  356|  5.48k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (356:8): [True: 936, False: 4.55k]
  ------------------
  357|    936|			{
  358|    936|				PCPP_LOG_ERROR("Couldn't shorten BGP open layer to set the right size of the optional parameters data");
  ------------------
  |  |  443|    936|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    936|	do                                                                                                                 \
  |  |  |  |  413|    936|	{                                                                                                                  \
  |  |  |  |  414|    936|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    936|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    936|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 936, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    936|		{                                                                                                              \
  |  |  |  |  417|    936|			auto ctx =                                                                                                 \
  |  |  |  |  418|    936|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    936|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    936|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    936|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    936|		}                                                                                                              \
  |  |  |  |  422|    936|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 936]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  359|    936|				return false;
  360|    936|			}
  361|  5.48k|		}
  362|       |
  363|  9.05k|		if (newOptionalParamsDataLen > 0)
  ------------------
  |  Branch (363:7): [True: 4.54k, False: 4.50k]
  ------------------
  364|  4.54k|		{
  365|  4.54k|			memcpy(m_Data + offsetInLayer, newOptionalParamsData, newOptionalParamsDataLen);
  366|  4.54k|		}
  367|       |
  368|  9.05k|		getOpenMsgHeader()->optionalParameterLength = static_cast<uint8_t>(newOptionalParamsDataLen);
  369|  9.05k|		getOpenMsgHeader()->length = htobe16(sizeof(bgp_open_message) + newOptionalParamsDataLen);
  370|       |
  371|  9.05k|		return true;
  372|  10.0k|	}
_ZN4pcpp19BgpOpenMessageLayer23clearOptionalParametersEv:
  375|  3.35k|	{
  376|  3.35k|		return setOptionalParameters(std::vector<optional_parameter>());
  377|  3.35k|	}
_ZN4pcpp21BgpUpdateMessageLayer14path_attributeC2EhhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  385|  37.7k|	{
  386|  37.7k|		flags = flagsVal;
  387|  37.7k|		type = typeVal;
  388|  37.7k|		length = hexStringToByteArray(dataAsHexString, data, 32);
  389|  37.7k|	}
_ZN4pcpp21BgpUpdateMessageLayer20parsePrefixAndIPDataEPhmRNSt3__16vectorINS0_13prefix_and_ipENS2_9allocatorIS4_EEEE:
  442|  9.34k|	{
  443|  9.34k|		size_t byteCount = 0;
  444|  20.0k|		while (byteCount < dataLen)
  ------------------
  |  Branch (444:10): [True: 13.7k, False: 6.36k]
  ------------------
  445|  13.7k|		{
  446|  13.7k|			prefix_and_ip wr;
  447|  13.7k|			wr.prefix = dataPtr[0];
  448|  13.7k|			size_t curByteCount = 1;
  449|  13.7k|			if (wr.prefix == 32)
  ------------------
  |  Branch (449:8): [True: 5.41k, False: 8.30k]
  ------------------
  450|  5.41k|			{
  451|  5.41k|				uint8_t octets[4] = { dataPtr[1], dataPtr[2], dataPtr[3], dataPtr[4] };
  452|  5.41k|				wr.ipAddr = IPv4Address(octets);
  453|  5.41k|				curByteCount += 4;
  454|  5.41k|			}
  455|  8.30k|			else if (wr.prefix == 24)
  ------------------
  |  Branch (455:13): [True: 5.30k, False: 3.00k]
  ------------------
  456|  5.30k|			{
  457|  5.30k|				uint8_t octets[4] = { dataPtr[1], dataPtr[2], dataPtr[3], 0 };
  458|  5.30k|				wr.ipAddr = IPv4Address(octets);
  459|  5.30k|				curByteCount += 3;
  460|  5.30k|			}
  461|  3.00k|			else if (wr.prefix == 16)
  ------------------
  |  Branch (461:13): [True: 21, False: 2.98k]
  ------------------
  462|     21|			{
  463|     21|				uint8_t octets[4] = { dataPtr[1], dataPtr[2], 0, 0 };
  464|     21|				wr.ipAddr = IPv4Address(octets);
  465|     21|				curByteCount += 2;
  466|     21|			}
  467|  2.98k|			else if (wr.prefix == 8)
  ------------------
  |  Branch (467:13): [True: 0, False: 2.98k]
  ------------------
  468|      0|			{
  469|      0|				uint8_t octets[4] = { dataPtr[1], 0, 0, 0 };
  470|      0|				wr.ipAddr = IPv4Address(octets);
  471|      0|				curByteCount += 1;
  472|      0|			}
  473|  2.98k|			else
  474|  2.98k|			{
  475|  2.98k|				PCPP_LOG_DEBUG("Illegal prefix value " << (int)wr.prefix);
  ------------------
  |  |  425|  2.98k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  2.98k|	do                                                                                                                 \
  |  |  |  |  413|  2.98k|	{                                                                                                                  \
  |  |  |  |  414|  2.98k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.98k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.98k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 2.98k]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.98k|		{                                                                                                              \
  |  |  |  |  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.98k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.98k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  476|  2.98k|				break;  // illegal value
  477|  2.98k|			}
  478|       |
  479|  10.7k|			result.push_back(wr);
  480|  10.7k|			dataPtr += curByteCount;
  481|  10.7k|			byteCount += curByteCount;
  482|  10.7k|		}
  483|  9.34k|	}
_ZN4pcpp21BgpUpdateMessageLayer26prefixAndIPDataToByteArrayERKNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEEPhm:
  487|  75.4k|	{
  488|  75.4k|		if (resultByteArr == nullptr || maxByteArrSize == 0)
  ------------------
  |  Branch (488:7): [True: 0, False: 75.4k]
  |  Branch (488:35): [True: 0, False: 75.4k]
  ------------------
  489|      0|		{
  490|      0|			return 0;
  491|      0|		}
  492|       |
  493|  75.4k|		size_t dataLen = 0;
  494|       |
  495|  75.4k|		for (const auto& prefixAndIp : prefixAndIpData)
  ------------------
  |  Branch (495:32): [True: 84.3k, False: 75.4k]
  ------------------
  496|  84.3k|		{
  497|  84.3k|			uint8_t curData[5];
  498|  84.3k|			curData[0] = prefixAndIp.prefix;
  499|  84.3k|			size_t curDataSize = 1;
  500|  84.3k|			const uint8_t* octets = prefixAndIp.ipAddr.toBytes();
  501|  84.3k|			if (prefixAndIp.prefix == 32)
  ------------------
  |  Branch (501:8): [True: 10.8k, False: 73.5k]
  ------------------
  502|  10.8k|			{
  503|  10.8k|				curDataSize += 4;
  504|  10.8k|				curData[1] = octets[0];
  505|  10.8k|				curData[2] = octets[1];
  506|  10.8k|				curData[3] = octets[2];
  507|  10.8k|				curData[4] = octets[3];
  508|  10.8k|			}
  509|  73.5k|			else if (prefixAndIp.prefix == 24)
  ------------------
  |  Branch (509:13): [True: 60.9k, False: 12.6k]
  ------------------
  510|  60.9k|			{
  511|  60.9k|				curDataSize += 3;
  512|  60.9k|				curData[1] = octets[0];
  513|  60.9k|				curData[2] = octets[1];
  514|  60.9k|				curData[3] = octets[2];
  515|  60.9k|			}
  516|  12.6k|			else if (prefixAndIp.prefix == 16)
  ------------------
  |  Branch (516:13): [True: 12.6k, False: 0]
  ------------------
  517|  12.6k|			{
  518|  12.6k|				curDataSize += 2;
  519|  12.6k|				curData[1] = octets[0];
  520|  12.6k|				curData[2] = octets[1];
  521|  12.6k|			}
  522|      0|			else if (prefixAndIp.prefix == 8)
  ------------------
  |  Branch (522:13): [True: 0, False: 0]
  ------------------
  523|      0|			{
  524|      0|				curDataSize += 1;
  525|      0|				curData[1] = octets[0];
  526|      0|			}
  527|      0|			else
  528|      0|			{
  529|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  530|      0|				break;  // illegal value
  531|      0|			}
  532|       |
  533|  84.3k|			if (dataLen + curDataSize > maxByteArrSize)
  ------------------
  |  Branch (533:8): [True: 0, False: 84.3k]
  ------------------
  534|      0|			{
  535|      0|				break;
  536|      0|			}
  537|       |
  538|  84.3k|			dataLen += curDataSize;
  539|       |
  540|  84.3k|			memcpy(resultByteArr, curData, curDataSize);
  541|  84.3k|			resultByteArr += curDataSize;
  542|  84.3k|		}
  543|       |
  544|  75.4k|		return dataLen;
  545|  75.4k|	}
_ZN4pcpp21BgpUpdateMessageLayer25pathAttributesToByteArrayERKNSt3__16vectorINS0_14path_attributeENS1_9allocatorIS3_EEEEPhm:
  549|  37.7k|	{
  550|  37.7k|		if (resultByteArr == nullptr || maxByteArrSize == 0)
  ------------------
  |  Branch (550:7): [True: 0, False: 37.7k]
  |  Branch (550:35): [True: 0, False: 37.7k]
  ------------------
  551|      0|		{
  552|      0|			return 0;
  553|      0|		}
  554|       |
  555|  37.7k|		size_t dataLen = 0;
  556|       |
  557|  37.7k|		for (const auto& attribute : pathAttributes)
  ------------------
  |  Branch (557:30): [True: 77.5k, False: 21.2k]
  ------------------
  558|  77.5k|		{
  559|  77.5k|			if (attribute.length > 32)
  ------------------
  |  Branch (559:8): [True: 16.4k, False: 61.0k]
  ------------------
  560|  16.4k|			{
  561|  16.4k|				PCPP_LOG_ERROR("Illegal path attribute length " << (int)attribute.length);
  ------------------
  |  |  443|  16.4k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  16.4k|	do                                                                                                                 \
  |  |  |  |  413|  16.4k|	{                                                                                                                  \
  |  |  |  |  414|  16.4k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  16.4k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.4k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 16.4k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  16.4k|		{                                                                                                              \
  |  |  |  |  417|  16.4k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  16.4k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.4k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  16.4k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  16.4k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  16.4k|		}                                                                                                              \
  |  |  |  |  422|  16.4k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  562|  16.4k|				break;  // illegal value
  563|  16.4k|			}
  564|       |
  565|  61.0k|			size_t curDataSize = 3 * sizeof(uint8_t) + (size_t)attribute.length;
  566|       |
  567|  61.0k|			if (dataLen + curDataSize > maxByteArrSize)
  ------------------
  |  Branch (567:8): [True: 0, False: 61.0k]
  ------------------
  568|      0|			{
  569|      0|				break;
  570|      0|			}
  571|       |
  572|  61.0k|			resultByteArr[0] = attribute.flags;
  573|  61.0k|			resultByteArr[1] = attribute.type;
  574|  61.0k|			resultByteArr[2] = attribute.length;
  575|  61.0k|			if (attribute.length > 0)
  ------------------
  |  Branch (575:8): [True: 44.4k, False: 16.6k]
  ------------------
  576|  44.4k|			{
  577|  44.4k|				memcpy(resultByteArr + 3 * sizeof(uint8_t), attribute.data, attribute.length);
  578|  44.4k|			}
  579|       |
  580|  61.0k|			dataLen += curDataSize;
  581|  61.0k|			resultByteArr += curDataSize;
  582|  61.0k|		}
  583|       |
  584|  37.7k|		return dataLen;
  585|  37.7k|	}
_ZNK4pcpp21BgpUpdateMessageLayer24getWithdrawnRoutesLengthEv:
  588|   312k|	{
  589|   312k|		size_t headerLen = getHeaderLen();
  590|   312k|		size_t minLen = sizeof(bgp_common_header) + sizeof(uint16_t);
  591|   312k|		if (headerLen >= minLen)
  ------------------
  |  Branch (591:7): [True: 297k, False: 15.0k]
  ------------------
  592|   297k|		{
  593|   297k|			uint16_t res = be16toh(*(uint16_t*)(m_Data + sizeof(bgp_common_header)));
  594|   297k|			if ((size_t)res > headerLen - minLen)
  ------------------
  |  Branch (594:8): [True: 47.9k, False: 249k]
  ------------------
  595|  47.9k|			{
  596|  47.9k|				return headerLen - minLen;
  597|  47.9k|			}
  598|       |
  599|   249k|			return (size_t)res;
  600|   297k|		}
  601|       |
  602|  15.0k|		return 0;
  603|   312k|	}
_ZN4pcpp21BgpUpdateMessageLayer18getWithdrawnRoutesERNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  606|  12.5k|	{
  607|  12.5k|		size_t withdrawnRouteLen = getWithdrawnRoutesLength();
  608|  12.5k|		if (withdrawnRouteLen == 0)
  ------------------
  |  Branch (608:7): [True: 10.7k, False: 1.80k]
  ------------------
  609|  10.7k|		{
  610|  10.7k|			return;
  611|  10.7k|		}
  612|       |
  613|  1.80k|		uint8_t* dataPtr = m_Data + sizeof(bgp_common_header) + sizeof(uint16_t);
  614|  1.80k|		parsePrefixAndIPData(dataPtr, withdrawnRouteLen, withdrawnRoutes);
  615|  1.80k|	}
_ZNK4pcpp21BgpUpdateMessageLayer23getPathAttributesLengthEv:
  618|   139k|	{
  619|   139k|		size_t headerLen = getHeaderLen();
  620|   139k|		size_t minLen = sizeof(bgp_common_header) + 2 * sizeof(uint16_t);
  621|   139k|		if (headerLen >= minLen)
  ------------------
  |  Branch (621:7): [True: 127k, False: 11.4k]
  ------------------
  622|   127k|		{
  623|   127k|			size_t withdrawnRouteLen = getWithdrawnRoutesLength();
  624|       |			// Ensure the memory access is within bounds
  625|   127k|			if (sizeof(bgp_common_header) + sizeof(uint16_t) + withdrawnRouteLen + sizeof(uint16_t) > headerLen)
  ------------------
  |  Branch (625:8): [True: 21.4k, False: 106k]
  ------------------
  626|  21.4k|			{
  627|  21.4k|				return 0;  // Invalid access, return 0
  628|  21.4k|			}
  629|   106k|			uint16_t res =
  630|   106k|			    be16toh(*(uint16_t*)(m_Data + sizeof(bgp_common_header) + sizeof(uint16_t) + withdrawnRouteLen));
  631|   106k|			if ((size_t)res > headerLen - minLen - withdrawnRouteLen)
  ------------------
  |  Branch (631:8): [True: 9.46k, False: 96.7k]
  ------------------
  632|  9.46k|			{
  633|  9.46k|				return headerLen - minLen - withdrawnRouteLen;
  634|  9.46k|			}
  635|       |
  636|  96.7k|			return (size_t)res;
  637|   106k|		}
  638|       |
  639|  11.4k|		return 0;
  640|   139k|	}
_ZN4pcpp21BgpUpdateMessageLayer18setWithdrawnRoutesERKNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  643|  37.7k|	{
  644|  37.7k|		uint8_t newWithdrawnRoutesData[1500];
  645|  37.7k|		size_t newWithdrawnRoutesDataLen = prefixAndIPDataToByteArray(withdrawnRoutes, newWithdrawnRoutesData, 1500);
  646|  37.7k|		size_t curWithdrawnRoutesDataLen = getWithdrawnRoutesLength();
  647|  37.7k|		int offsetInLayer = sizeof(bgp_common_header) + sizeof(uint16_t);
  648|       |
  649|  37.7k|		if (newWithdrawnRoutesDataLen > curWithdrawnRoutesDataLen)
  ------------------
  |  Branch (649:7): [True: 11.0k, False: 26.6k]
  ------------------
  650|  11.0k|		{
  651|  11.0k|			size_t numOfBytesToExtend = newWithdrawnRoutesDataLen - curWithdrawnRoutesDataLen;
  652|       |
  653|  11.0k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (653:8): [True: 2.58k, False: 8.48k]
  ------------------
  654|  2.58k|			{
  655|  2.58k|				PCPP_LOG_ERROR("Couldn't extend BGP update layer to include the additional withdrawn routes");
  ------------------
  |  |  443|  2.58k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  2.58k|	do                                                                                                                 \
  |  |  |  |  413|  2.58k|	{                                                                                                                  \
  |  |  |  |  414|  2.58k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.58k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.58k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 2.58k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.58k|		{                                                                                                              \
  |  |  |  |  417|  2.58k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  2.58k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.58k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  2.58k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  2.58k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  2.58k|		}                                                                                                              \
  |  |  |  |  422|  2.58k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.58k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  656|  2.58k|				return false;
  657|  2.58k|			}
  658|  11.0k|		}
  659|  26.6k|		else if (newWithdrawnRoutesDataLen < curWithdrawnRoutesDataLen)
  ------------------
  |  Branch (659:12): [True: 13.9k, False: 12.7k]
  ------------------
  660|  13.9k|		{
  661|  13.9k|			size_t numOfBytesToShorten = curWithdrawnRoutesDataLen - newWithdrawnRoutesDataLen;
  662|       |
  663|  13.9k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (663:8): [True: 5.33k, False: 8.57k]
  ------------------
  664|  5.33k|			{
  665|  5.33k|				PCPP_LOG_ERROR("Couldn't shorten BGP update layer to set the right size of the withdrawn routes data");
  ------------------
  |  |  443|  5.33k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  5.33k|	do                                                                                                                 \
  |  |  |  |  413|  5.33k|	{                                                                                                                  \
  |  |  |  |  414|  5.33k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  5.33k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.33k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 5.33k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  5.33k|		{                                                                                                              \
  |  |  |  |  417|  5.33k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  5.33k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.33k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  5.33k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  5.33k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  5.33k|		}                                                                                                              \
  |  |  |  |  422|  5.33k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 5.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  666|  5.33k|				return false;
  667|  5.33k|			}
  668|  13.9k|		}
  669|       |
  670|  29.8k|		if (newWithdrawnRoutesDataLen > 0)
  ------------------
  |  Branch (670:7): [True: 8.59k, False: 21.2k]
  ------------------
  671|  8.59k|		{
  672|  8.59k|			memcpy(m_Data + offsetInLayer, newWithdrawnRoutesData, newWithdrawnRoutesDataLen);
  673|  8.59k|		}
  674|       |
  675|  29.8k|		getBasicHeader()->length =
  676|  29.8k|		    htobe16(be16toh(getBasicHeader()->length) + newWithdrawnRoutesDataLen - curWithdrawnRoutesDataLen);
  677|       |
  678|  29.8k|		uint16_t newWithdrawnRoutesDataLenBE = htobe16(newWithdrawnRoutesDataLen);
  679|  29.8k|		memcpy(m_Data + sizeof(bgp_common_header), &newWithdrawnRoutesDataLenBE, sizeof(uint16_t));
  680|       |
  681|  29.8k|		return true;
  682|  37.7k|	}
_ZN4pcpp21BgpUpdateMessageLayer20clearWithdrawnRoutesEv:
  685|  12.5k|	{
  686|  12.5k|		return setWithdrawnRoutes(std::vector<prefix_and_ip>());
  687|  12.5k|	}
_ZN4pcpp21BgpUpdateMessageLayer17getPathAttributesERNSt3__16vectorINS0_14path_attributeENS1_9allocatorIS3_EEEE:
  690|  12.5k|	{
  691|  12.5k|		size_t pathAttrLen = getPathAttributesLength();
  692|  12.5k|		if (pathAttrLen == 0)
  ------------------
  |  Branch (692:7): [True: 4.21k, False: 8.36k]
  ------------------
  693|  4.21k|		{
  694|  4.21k|			return;
  695|  4.21k|		}
  696|       |
  697|  8.36k|		uint8_t* dataPtr = m_Data + sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + getWithdrawnRoutesLength();
  698|  8.36k|		size_t byteCount = 0;
  699|  40.8k|		while (byteCount < pathAttrLen)
  ------------------
  |  Branch (699:10): [True: 32.4k, False: 8.36k]
  ------------------
  700|  32.4k|		{
  701|  32.4k|			path_attribute pa;
  702|  32.4k|			pa.flags = dataPtr[0];
  703|  32.4k|			pa.type = dataPtr[1];
  704|  32.4k|			pa.length = dataPtr[2];
  705|  32.4k|			size_t curByteCount = 3 + pa.length;
  706|  32.4k|			if (pa.length > 0)
  ------------------
  |  Branch (706:8): [True: 24.0k, False: 8.35k]
  ------------------
  707|  24.0k|			{
  708|  24.0k|				size_t dataLenToCopy = (pa.length <= 32 ? pa.length : 32);
  ------------------
  |  Branch (708:29): [True: 15.7k, False: 8.30k]
  ------------------
  709|  24.0k|				memcpy(pa.data, dataPtr + 3, dataLenToCopy);
  710|  24.0k|			}
  711|       |
  712|  32.4k|			pathAttributes.push_back(pa);
  713|  32.4k|			dataPtr += curByteCount;
  714|  32.4k|			byteCount += curByteCount;
  715|  32.4k|		}
  716|  8.36k|	}
_ZN4pcpp21BgpUpdateMessageLayer17setPathAttributesERKNSt3__16vectorINS0_14path_attributeENS1_9allocatorIS3_EEEE:
  719|  37.7k|	{
  720|  37.7k|		uint8_t newPathAttributesData[1500];
  721|  37.7k|		size_t newPathAttributesDataLen = pathAttributesToByteArray(pathAttributes, newPathAttributesData, 1500);
  722|  37.7k|		size_t curPathAttributesDataLen = getPathAttributesLength();
  723|  37.7k|		size_t curWithdrawnRoutesDataLen = getWithdrawnRoutesLength();
  724|  37.7k|		int offsetInLayer = sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + curWithdrawnRoutesDataLen;
  725|       |
  726|  37.7k|		if (newPathAttributesDataLen > curPathAttributesDataLen)
  ------------------
  |  Branch (726:7): [True: 11.8k, False: 25.8k]
  ------------------
  727|  11.8k|		{
  728|  11.8k|			size_t numOfBytesToExtend = newPathAttributesDataLen - curPathAttributesDataLen;
  729|       |
  730|  11.8k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (730:8): [True: 3.64k, False: 8.22k]
  ------------------
  731|  3.64k|			{
  732|  3.64k|				PCPP_LOG_ERROR("Couldn't extend BGP update layer to include the additional path attributes");
  ------------------
  |  |  443|  3.64k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  3.64k|	do                                                                                                                 \
  |  |  |  |  413|  3.64k|	{                                                                                                                  \
  |  |  |  |  414|  3.64k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.64k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.64k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 3.64k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.64k|		{                                                                                                              \
  |  |  |  |  417|  3.64k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  3.64k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.64k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  3.64k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  3.64k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  3.64k|		}                                                                                                              \
  |  |  |  |  422|  3.64k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.64k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  733|  3.64k|				return false;
  734|  3.64k|			}
  735|  11.8k|		}
  736|  25.8k|		else if (newPathAttributesDataLen < curPathAttributesDataLen)
  ------------------
  |  Branch (736:12): [True: 17.1k, False: 8.77k]
  ------------------
  737|  17.1k|		{
  738|  17.1k|			size_t numOfBytesToShorten = curPathAttributesDataLen - newPathAttributesDataLen;
  739|       |
  740|  17.1k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (740:8): [True: 1.35k, False: 15.7k]
  ------------------
  741|  1.35k|			{
  742|  1.35k|				PCPP_LOG_ERROR("Couldn't shorten BGP update layer to set the right size of the path attributes data");
  ------------------
  |  |  443|  1.35k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  1.35k|	do                                                                                                                 \
  |  |  |  |  413|  1.35k|	{                                                                                                                  \
  |  |  |  |  414|  1.35k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.35k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.35k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.35k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.35k|		{                                                                                                              \
  |  |  |  |  417|  1.35k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.35k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.35k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.35k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.35k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.35k|		}                                                                                                              \
  |  |  |  |  422|  1.35k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.35k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  743|  1.35k|				return false;
  744|  1.35k|			}
  745|  17.1k|		}
  746|       |
  747|  32.7k|		if (newPathAttributesDataLen > 0)
  ------------------
  |  Branch (747:7): [True: 15.6k, False: 17.1k]
  ------------------
  748|  15.6k|		{
  749|  15.6k|			memcpy(m_Data + offsetInLayer, newPathAttributesData, newPathAttributesDataLen);
  750|  15.6k|		}
  751|       |
  752|  32.7k|		getBasicHeader()->length =
  753|  32.7k|		    htobe16(be16toh(getBasicHeader()->length) + newPathAttributesDataLen - curPathAttributesDataLen);
  754|       |
  755|  32.7k|		uint16_t newWithdrawnRoutesDataLenBE = htobe16(newPathAttributesDataLen);
  756|  32.7k|		memcpy(m_Data + sizeof(bgp_common_header) + sizeof(uint16_t) + curWithdrawnRoutesDataLen,
  757|  32.7k|		       &newWithdrawnRoutesDataLenBE, sizeof(uint16_t));
  758|       |
  759|  32.7k|		return true;
  760|  37.7k|	}
_ZN4pcpp21BgpUpdateMessageLayer19clearPathAttributesEv:
  763|  12.5k|	{
  764|  12.5k|		return setPathAttributes(std::vector<path_attribute>());
  765|  12.5k|	}
_ZNK4pcpp21BgpUpdateMessageLayer37getNetworkLayerReachabilityInfoLengthEv:
  768|  50.3k|	{
  769|  50.3k|		size_t headerLen = getHeaderLen();
  770|  50.3k|		size_t minLen = sizeof(bgp_common_header) + 2 * sizeof(uint16_t);
  771|  50.3k|		if (headerLen >= minLen)
  ------------------
  |  Branch (771:7): [True: 43.4k, False: 6.82k]
  ------------------
  772|  43.4k|		{
  773|  43.4k|			size_t withdrawnRouteLen = getWithdrawnRoutesLength();
  774|  43.4k|			size_t pathAttrLen = getPathAttributesLength();
  775|  43.4k|			int nlriSize = headerLen - minLen - withdrawnRouteLen - pathAttrLen;
  776|  43.4k|			if (nlriSize >= 0)
  ------------------
  |  Branch (776:8): [True: 35.8k, False: 7.66k]
  ------------------
  777|  35.8k|			{
  778|  35.8k|				return (size_t)nlriSize;
  779|  35.8k|			}
  780|       |
  781|  7.66k|			return 0;
  782|  43.4k|		}
  783|       |
  784|  6.82k|		return 0;
  785|  50.3k|	}
_ZN4pcpp21BgpUpdateMessageLayer31getNetworkLayerReachabilityInfoERNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  788|  12.5k|	{
  789|  12.5k|		size_t nlriSize = getNetworkLayerReachabilityInfoLength();
  790|  12.5k|		if (nlriSize == 0)
  ------------------
  |  Branch (790:7): [True: 5.04k, False: 7.53k]
  ------------------
  791|  5.04k|		{
  792|  5.04k|			return;
  793|  5.04k|		}
  794|       |
  795|  7.53k|		uint8_t* dataPtr = m_Data + sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + getWithdrawnRoutesLength() +
  796|  7.53k|		                   getPathAttributesLength();
  797|  7.53k|		parsePrefixAndIPData(dataPtr, nlriSize, nlri);
  798|  7.53k|	}
_ZN4pcpp21BgpUpdateMessageLayer11isDataValidEPKhm:
  801|   129k|	{
  802|   129k|		if (dataSize < sizeof(bgp_common_header) + 2 * sizeof(uint16_t))
  ------------------
  |  Branch (802:7): [True: 10, False: 129k]
  ------------------
  803|     10|			return false;
  804|       |
  805|   129k|		uint16_t withdrLen = be16toh(*(uint16_t*)(data + sizeof(bgp_common_header)));
  806|   129k|		if (dataSize < sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + withdrLen)
  ------------------
  |  Branch (806:7): [True: 1.03k, False: 128k]
  ------------------
  807|  1.03k|			return false;
  808|       |
  809|   128k|		uint16_t attrLen = be16toh(*(uint16_t*)(data + sizeof(bgp_common_header) + sizeof(uint16_t) + withdrLen));
  810|   128k|		if (dataSize < sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + withdrLen + attrLen)
  ------------------
  |  Branch (810:7): [True: 711, False: 127k]
  ------------------
  811|    711|			return false;
  812|       |
  813|   127k|		return true;
  814|   128k|	}
_ZN4pcpp21BgpUpdateMessageLayer31setNetworkLayerReachabilityInfoERKNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  817|  37.7k|	{
  818|  37.7k|		uint8_t newNlriData[1500];
  819|  37.7k|		size_t newNlriDataLen = prefixAndIPDataToByteArray(nlri, newNlriData, 1500);
  820|  37.7k|		size_t curNlriDataLen = getNetworkLayerReachabilityInfoLength();
  821|  37.7k|		size_t curPathAttributesDataLen = getPathAttributesLength();
  822|  37.7k|		size_t curWithdrawnRoutesDataLen = getWithdrawnRoutesLength();
  823|  37.7k|		int offsetInLayer =
  824|  37.7k|		    sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + curWithdrawnRoutesDataLen + curPathAttributesDataLen;
  825|       |
  826|  37.7k|		if (newNlriDataLen > curNlriDataLen)
  ------------------
  |  Branch (826:7): [True: 17.9k, False: 19.7k]
  ------------------
  827|  17.9k|		{
  828|  17.9k|			size_t numOfBytesToExtend = newNlriDataLen - curNlriDataLen;
  829|       |
  830|  17.9k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (830:8): [True: 3.95k, False: 14.0k]
  ------------------
  831|  3.95k|			{
  832|  3.95k|				PCPP_LOG_ERROR("Couldn't extend BGP update layer to include the additional NLRI data");
  ------------------
  |  |  443|  3.95k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  3.95k|	do                                                                                                                 \
  |  |  |  |  413|  3.95k|	{                                                                                                                  \
  |  |  |  |  414|  3.95k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.95k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.95k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 3.95k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.95k|		{                                                                                                              \
  |  |  |  |  417|  3.95k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  3.95k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.95k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  3.95k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  3.95k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  3.95k|		}                                                                                                              \
  |  |  |  |  422|  3.95k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  833|  3.95k|				return false;
  834|  3.95k|			}
  835|  17.9k|		}
  836|  19.7k|		else if (newNlriDataLen < curNlriDataLen)
  ------------------
  |  Branch (836:12): [True: 9.02k, False: 10.7k]
  ------------------
  837|  9.02k|		{
  838|  9.02k|			size_t numOfBytesToShorten = curNlriDataLen - newNlriDataLen;
  839|       |
  840|  9.02k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (840:8): [True: 406, False: 8.62k]
  ------------------
  841|    406|			{
  842|    406|				PCPP_LOG_ERROR("Couldn't shorten BGP update layer to set the right size of the NLRI data");
  ------------------
  |  |  443|    406|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    406|	do                                                                                                                 \
  |  |  |  |  413|    406|	{                                                                                                                  \
  |  |  |  |  414|    406|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    406|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    406|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 406, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    406|		{                                                                                                              \
  |  |  |  |  417|    406|			auto ctx =                                                                                                 \
  |  |  |  |  418|    406|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    406|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    406|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    406|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    406|		}                                                                                                              \
  |  |  |  |  422|    406|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 406]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  843|    406|				return false;
  844|    406|			}
  845|  9.02k|		}
  846|       |
  847|  33.3k|		if (newNlriDataLen > 0)
  ------------------
  |  Branch (847:7): [True: 14.9k, False: 18.3k]
  ------------------
  848|  14.9k|		{
  849|  14.9k|			memcpy(m_Data + offsetInLayer, newNlriData, newNlriDataLen);
  850|  14.9k|		}
  851|       |
  852|  33.3k|		getBasicHeader()->length = htobe16(be16toh(getBasicHeader()->length) + newNlriDataLen - curNlriDataLen);
  853|       |
  854|  33.3k|		return true;
  855|  37.7k|	}
_ZN4pcpp21BgpUpdateMessageLayer33clearNetworkLayerReachabilityInfoEv:
  858|  12.5k|	{
  859|  12.5k|		return setNetworkLayerReachabilityInfo(std::vector<prefix_and_ip>());
  860|  12.5k|	}
_ZNK4pcpp27BgpNotificationMessageLayer22getNotificationDataLenEv:
  906|    900|	{
  907|    900|		size_t headerLen = getHeaderLen();
  908|    900|		if (headerLen > sizeof(bgp_notification_message))
  ------------------
  |  Branch (908:7): [True: 460, False: 440]
  ------------------
  909|    460|		{
  910|    460|			return headerLen - sizeof(bgp_notification_message);
  911|    460|		}
  912|       |
  913|    440|		return 0;
  914|    900|	}
_ZNK4pcpp27BgpNotificationMessageLayer19getNotificationDataEv:
  917|    670|	{
  918|    670|		if (getNotificationDataLen() > 0)
  ------------------
  |  Branch (918:7): [True: 230, False: 440]
  ------------------
  919|    230|		{
  920|    230|			return m_Data + sizeof(bgp_notification_message);
  921|    230|		}
  922|       |
  923|    440|		return nullptr;
  924|    670|	}
_ZNK4pcpp27BgpNotificationMessageLayer30getNotificationDataAsHexStringEv:
  927|    670|	{
  928|    670|		uint8_t* notificationData = getNotificationData();
  929|    670|		if (notificationData == nullptr)
  ------------------
  |  Branch (929:7): [True: 440, False: 230]
  ------------------
  930|    440|		{
  931|    440|			return "";
  932|    440|		}
  933|       |
  934|    230|		return byteArrayToHexString(notificationData, getNotificationDataLen());
  935|    670|	}

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

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

_ZN4pcpp9DhcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   45|  14.6k|	    : Layer(data, dataLen, prevLayer, packet, DHCP)
   46|  14.6k|	{}
_ZNK4pcpp9DhcpLayer24getClientHardwareAddressEv:
   76|  2.91k|	{
   77|  2.91k|		dhcp_header* hdr = getDhcpHeader();
   78|  2.91k|		if (hdr != nullptr && hdr->hardwareType == 1 && hdr->hardwareAddressLength == 6)
  ------------------
  |  Branch (78:7): [True: 2.91k, False: 0]
  |  Branch (78:25): [True: 2.84k, False: 67]
  |  Branch (78:51): [True: 2.82k, False: 26]
  ------------------
   79|  2.82k|			return MacAddress(hdr->clientHardwareAddress);
   80|       |
   81|     93|		PCPP_LOG_DEBUG("Hardware type isn't Ethernet or hardware addr len != 6, returning MacAddress:Zero");
  ------------------
  |  |  425|     93|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|     93|	do                                                                                                                 \
  |  |  |  |  413|     93|	{                                                                                                                  \
  |  |  |  |  414|     93|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     93|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     93|#define LOG_MODULE PacketLogModuleDhcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 93]
  |  |  |  |  ------------------
  |  |  |  |  416|     93|		{                                                                                                              \
  |  |  |  |  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|     93|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 93]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   82|       |
   83|     93|		return MacAddress::Zero;
   84|  2.91k|	}
_ZN4pcpp9DhcpLayer22computeCalculateFieldsEv:
   95|  2.91k|	{
   96|  2.91k|		dhcp_header* hdr = getDhcpHeader();
   97|       |
   98|  2.91k|		hdr->magicNumber = DHCP_MAGIC_NUMBER;
  ------------------
  |  |    9|  2.91k|#define DHCP_MAGIC_NUMBER 0x63538263
  ------------------
   99|       |
  100|  2.91k|		DhcpMessageType msgType = getMessageType();
  101|  2.91k|		switch (msgType)
  102|  2.91k|		{
  103|     30|		case DHCP_DISCOVER:
  ------------------
  |  Branch (103:3): [True: 30, False: 2.88k]
  ------------------
  104|    755|		case DHCP_REQUEST:
  ------------------
  |  Branch (104:3): [True: 725, False: 2.18k]
  ------------------
  105|    958|		case DHCP_DECLINE:
  ------------------
  |  Branch (105:3): [True: 203, False: 2.71k]
  ------------------
  106|    958|		case DHCP_RELEASE:
  ------------------
  |  Branch (106:3): [True: 0, False: 2.91k]
  ------------------
  107|    969|		case DHCP_INFORM:
  ------------------
  |  Branch (107:3): [True: 11, False: 2.90k]
  ------------------
  108|  2.45k|		case DHCP_UNKNOWN_MSG_TYPE:
  ------------------
  |  Branch (108:3): [True: 1.48k, False: 1.43k]
  ------------------
  109|  2.45k|			hdr->opCode = DHCP_BOOTREQUEST;
  110|  2.45k|			break;
  111|      8|		case DHCP_OFFER:
  ------------------
  |  Branch (111:3): [True: 8, False: 2.90k]
  ------------------
  112|    454|		case DHCP_ACK:
  ------------------
  |  Branch (112:3): [True: 446, False: 2.46k]
  ------------------
  113|    454|		case DHCP_NAK:
  ------------------
  |  Branch (113:3): [True: 0, False: 2.91k]
  ------------------
  114|    454|			hdr->opCode = DHCP_BOOTREPLY;
  115|    454|			break;
  116|      8|		default:
  ------------------
  |  Branch (116:3): [True: 8, False: 2.90k]
  ------------------
  117|      8|			break;
  118|  2.91k|		}
  119|       |
  120|  2.91k|		hdr->hardwareType = 1;           // Ethernet
  121|  2.91k|		hdr->hardwareAddressLength = 6;  // MAC address length
  122|  2.91k|	}
_ZNK4pcpp9DhcpLayer8toStringEv:
  125|  5.82k|	{
  126|  5.82k|		std::string msgType = "Unknown";
  127|  5.82k|		switch (getMessageType())
  128|  5.82k|		{
  129|     60|		case DHCP_DISCOVER:
  ------------------
  |  Branch (129:3): [True: 60, False: 5.76k]
  ------------------
  130|     60|		{
  131|     60|			msgType = "Discover";
  132|     60|			break;
  133|      0|		}
  134|     16|		case DHCP_OFFER:
  ------------------
  |  Branch (134:3): [True: 16, False: 5.81k]
  ------------------
  135|     16|		{
  136|     16|			msgType = "Offer";
  137|     16|			break;
  138|      0|		}
  139|  1.45k|		case DHCP_REQUEST:
  ------------------
  |  Branch (139:3): [True: 1.45k, False: 4.37k]
  ------------------
  140|  1.45k|		{
  141|  1.45k|			msgType = "Request";
  142|  1.45k|			break;
  143|      0|		}
  144|    406|		case DHCP_DECLINE:
  ------------------
  |  Branch (144:3): [True: 406, False: 5.42k]
  ------------------
  145|    406|		{
  146|    406|			msgType = "Decline";
  147|    406|			break;
  148|      0|		}
  149|    892|		case DHCP_ACK:
  ------------------
  |  Branch (149:3): [True: 892, False: 4.93k]
  ------------------
  150|    892|		{
  151|    892|			msgType = "Acknowledge";
  152|    892|			break;
  153|      0|		}
  154|      0|		case DHCP_NAK:
  ------------------
  |  Branch (154:3): [True: 0, False: 5.82k]
  ------------------
  155|      0|		{
  156|      0|			msgType = "Negative Acknowledge";
  157|      0|			break;
  158|      0|		}
  159|      0|		case DHCP_RELEASE:
  ------------------
  |  Branch (159:3): [True: 0, False: 5.82k]
  ------------------
  160|      0|		{
  161|      0|			msgType = "Release";
  162|      0|			break;
  163|      0|		}
  164|     22|		case DHCP_INFORM:
  ------------------
  |  Branch (164:3): [True: 22, False: 5.80k]
  ------------------
  165|     22|		{
  166|     22|			msgType = "Inform";
  167|     22|			break;
  168|      0|		}
  169|  2.98k|		default:
  ------------------
  |  Branch (169:3): [True: 2.98k, False: 2.84k]
  ------------------
  170|  2.98k|			break;
  171|  5.82k|		}
  172|       |
  173|  5.82k|		return "DHCP layer (" + msgType + ")";
  174|  5.82k|	}
_ZNK4pcpp9DhcpLayer14getMessageTypeEv:
  177|  8.73k|	{
  178|  8.73k|		DhcpOption opt = getOptionData(DHCPOPT_DHCP_MESSAGE_TYPE);
  179|  8.73k|		if (opt.isNull())
  ------------------
  |  Branch (179:7): [True: 4.43k, False: 4.30k]
  ------------------
  180|  4.43k|			return DHCP_UNKNOWN_MSG_TYPE;
  181|       |
  182|  4.30k|		return (DhcpMessageType)opt.getValueAs<uint8_t>();
  183|  8.73k|	}
_ZNK4pcpp9DhcpLayer13getOptionDataENS_15DhcpOptionTypesE:
  203|  11.6k|	{
  204|  11.6k|		return m_OptionReader.getTLVRecord((uint8_t)option, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  205|  11.6k|	}
_ZNK4pcpp9DhcpLayer18getFirstOptionDataEv:
  208|  2.87k|	{
  209|  2.87k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  210|  2.87k|	}
_ZNK4pcpp9DhcpLayer17getNextOptionDataENS_10DhcpOptionE:
  213|  57.0k|	{
  214|  57.0k|		return m_OptionReader.getNextTLVRecord(dhcpOption, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  215|  57.0k|	}
_ZNK4pcpp9DhcpLayer15getOptionsCountEv:
  218|  62.8k|	{
  219|  62.8k|		return m_OptionReader.getTLVRecordCount(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  220|  62.8k|	}

_ZNK4pcpp12DhcpV6Option7getTypeEv:
   12|  9.78k|	{
   13|  9.78k|		if (m_Data == nullptr)
  ------------------
  |  Branch (13:7): [True: 0, False: 9.78k]
  ------------------
   14|      0|			return DhcpV6OptionType::DHCPV6_OPT_UNKNOWN;
   15|       |
   16|  9.78k|		uint16_t optionType = be16toh(m_Data->recordType);
   17|  9.78k|		if (optionType <= 62 && optionType != 10 && optionType != 35 && optionType != 57 && optionType != 58)
  ------------------
  |  Branch (17:7): [True: 7.28k, False: 2.50k]
  |  Branch (17:27): [True: 6.78k, False: 496]
  |  Branch (17:47): [True: 6.78k, False: 0]
  |  Branch (17:67): [True: 6.78k, False: 0]
  |  Branch (17:87): [True: 6.50k, False: 280]
  ------------------
   18|  6.50k|		{
   19|  6.50k|			return static_cast<DhcpV6OptionType>(optionType);
   20|  6.50k|		}
   21|  3.28k|		if (optionType == 65 || optionType == 66 || optionType == 68 || optionType == 79 || optionType == 112)
  ------------------
  |  Branch (21:7): [True: 1.22k, False: 2.06k]
  |  Branch (21:27): [True: 0, False: 2.06k]
  |  Branch (21:47): [True: 48, False: 2.01k]
  |  Branch (21:67): [True: 0, False: 2.01k]
  |  Branch (21:87): [True: 0, False: 2.01k]
  ------------------
   22|  1.26k|		{
   23|  1.26k|			return static_cast<DhcpV6OptionType>(optionType);
   24|  1.26k|		}
   25|       |
   26|  2.01k|		return DHCPV6_OPT_UNKNOWN;
   27|  3.28k|	}
_ZNK4pcpp12DhcpV6Option19getValueAsHexStringEv:
   30|  3.36k|	{
   31|  3.36k|		if (m_Data == nullptr)
  ------------------
  |  Branch (31:7): [True: 0, False: 3.36k]
  ------------------
   32|      0|			return "";
   33|       |
   34|  3.36k|		return byteArrayToHexString(m_Data->recordValue, getDataSize());
   35|  3.36k|	}
_ZNK4pcpp12DhcpV6Option12getTotalSizeEv:
   38|   108k|	{
   39|   108k|		if (m_Data == nullptr)
  ------------------
  |  Branch (39:7): [True: 0, False: 108k]
  ------------------
   40|      0|			return 0;
   41|       |
   42|   108k|		return 2 * sizeof(uint16_t) + be16toh(m_Data->recordLen);
   43|   108k|	}
_ZNK4pcpp12DhcpV6Option11getDataSizeEv:
   46|  3.36k|	{
   47|  3.36k|		if (m_Data == nullptr)
  ------------------
  |  Branch (47:7): [True: 0, False: 3.36k]
  ------------------
   48|      0|			return 0;
   49|       |
   50|  3.36k|		return static_cast<size_t>(be16toh(m_Data->recordLen));
   51|  3.36k|	}
_ZN4pcpp11DhcpV6LayerC2EPhmPNS_5LayerEPNS_6PacketE:
   71|  18.3k|	    : Layer(data, dataLen, prevLayer, packet, DHCPv6)
   72|  18.3k|	{}
_ZNK4pcpp11DhcpV6Layer14getMessageTypeEv:
   86|  7.07k|	{
   87|  7.07k|		uint8_t messageType = getDhcpHeader()->messageType;
   88|  7.07k|		if (messageType > 13)
  ------------------
  |  Branch (88:7): [True: 822, False: 6.25k]
  ------------------
   89|    822|		{
   90|    822|			return DHCPV6_UNKNOWN_MSG_TYPE;
   91|    822|		}
   92|       |
   93|  6.25k|		return static_cast<DhcpV6MessageType>(messageType);
   94|  7.07k|	}
_ZNK4pcpp11DhcpV6Layer22getMessageTypeAsStringEv:
   97|  7.07k|	{
   98|  7.07k|		DhcpV6MessageType messageType = getMessageType();
   99|  7.07k|		switch (messageType)
  100|  7.07k|		{
  101|     32|		case DHCPV6_SOLICIT:
  ------------------
  |  Branch (101:3): [True: 32, False: 7.04k]
  ------------------
  102|     32|			return "Solicit";
  103|      0|		case DHCPV6_ADVERTISE:
  ------------------
  |  Branch (103:3): [True: 0, False: 7.07k]
  ------------------
  104|      0|			return "Advertise";
  105|     76|		case DHCPV6_REQUEST:
  ------------------
  |  Branch (105:3): [True: 76, False: 6.99k]
  ------------------
  106|     76|			return "Request";
  107|      0|		case DHCPV6_CONFIRM:
  ------------------
  |  Branch (107:3): [True: 0, False: 7.07k]
  ------------------
  108|      0|			return "Confirm";
  109|    306|		case DHCPV6_RENEW:
  ------------------
  |  Branch (109:3): [True: 306, False: 6.76k]
  ------------------
  110|    306|			return "Renew";
  111|     32|		case DHCPV6_REBIND:
  ------------------
  |  Branch (111:3): [True: 32, False: 7.04k]
  ------------------
  112|     32|			return "Rebind";
  113|    980|		case DHCPV6_REPLY:
  ------------------
  |  Branch (113:3): [True: 980, False: 6.09k]
  ------------------
  114|    980|			return "Reply";
  115|      0|		case DHCPV6_RELEASE:
  ------------------
  |  Branch (115:3): [True: 0, False: 7.07k]
  ------------------
  116|      0|			return "Release";
  117|      0|		case DHCPV6_DECLINE:
  ------------------
  |  Branch (117:3): [True: 0, False: 7.07k]
  ------------------
  118|      0|			return "Decline";
  119|    602|		case DHCPV6_RECONFIGURE:
  ------------------
  |  Branch (119:3): [True: 602, False: 6.47k]
  ------------------
  120|    602|			return "Reconfigure";
  121|  3.47k|		case DHCPV6_INFORMATION_REQUEST:
  ------------------
  |  Branch (121:3): [True: 3.47k, False: 3.60k]
  ------------------
  122|  3.47k|			return "Information-Request";
  123|      0|		case DHCPV6_RELAY_FORWARD:
  ------------------
  |  Branch (123:3): [True: 0, False: 7.07k]
  ------------------
  124|      0|			return "Relay-Forward";
  125|     54|		case DHCPV6_RELAY_REPLY:
  ------------------
  |  Branch (125:3): [True: 54, False: 7.01k]
  ------------------
  126|     54|			return "Relay-Reply";
  127|  1.52k|		default:
  ------------------
  |  Branch (127:3): [True: 1.52k, False: 5.55k]
  ------------------
  128|  1.52k|			return "Unknown";
  129|  7.07k|		}
  130|  7.07k|	}
_ZNK4pcpp11DhcpV6Layer16getTransactionIDEv:
  138|  3.53k|	{
  139|  3.53k|		dhcpv6_header* hdr = getDhcpHeader();
  140|  3.53k|		uint32_t result = hdr->transactionId1 << 16 | hdr->transactionId2 << 8 | hdr->transactionId3;
  141|  3.53k|		return result;
  142|  3.53k|	}
_ZNK4pcpp11DhcpV6Layer18getFirstOptionDataEv:
  153|  3.36k|	{
  154|  3.36k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcpv6_header));
  155|  3.36k|	}
_ZNK4pcpp11DhcpV6Layer17getNextOptionDataENS_12DhcpV6OptionE:
  158|  7.59k|	{
  159|  7.59k|		return m_OptionReader.getNextTLVRecord(dhcpv6Option, getOptionsBasePtr(),
  160|  7.59k|		                                       getHeaderLen() - sizeof(dhcpv6_header));
  161|  7.59k|	}
_ZNK4pcpp11DhcpV6Layer13getOptionDataENS_16DhcpV6OptionTypeE:
  164|  3.36k|	{
  165|  3.36k|		return m_OptionReader.getTLVRecord(static_cast<uint32_t>(option), getOptionsBasePtr(),
  166|  3.36k|		                                   getHeaderLen() - sizeof(dhcpv6_header));
  167|  3.36k|	}
_ZNK4pcpp11DhcpV6Layer14getOptionCountEv:
  170|  14.5k|	{
  171|  14.5k|		return m_OptionReader.getTLVRecordCount(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcpv6_header));
  172|  14.5k|	}
_ZNK4pcpp11DhcpV6Layer8toStringEv:
  270|  7.07k|	{
  271|  7.07k|		return "DHCPv6 Layer, " + getMessageTypeAsString() + " message";
  272|  7.07k|	}

_ZN4pcpp8DnsLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   16|  51.1k|	    : Layer(data, dataLen, prevLayer, packet)
   17|  51.1k|	{
   18|  51.1k|		init(0, true);
   19|  51.1k|	}
_ZN4pcpp8DnsLayerC2ERKS0_:
   26|  13.1k|	DnsLayer::DnsLayer(const DnsLayer& other) : Layer(other)
   27|  13.1k|	{
   28|  13.1k|		init(other.m_OffsetAdjustment, true);
   29|  13.1k|	}
_ZN4pcpp8DnsLayerC2EPhmPNS_5LayerEPNS_6PacketEm:
   32|  17.9k|	    : Layer(data, dataLen, prevLayer, packet)
   33|  17.9k|	{
   34|  17.9k|		init(offsetAdjustment, true);
   35|  17.9k|	}
_ZN4pcpp8DnsLayeraSERKS0_:
   43|  13.1k|	{
   44|  13.1k|		Layer::operator=(other);
   45|       |
   46|  13.1k|		IDnsResource* curResource = m_ResourceList;
   47|  37.1k|		while (curResource != nullptr)
  ------------------
  |  Branch (47:10): [True: 24.0k, False: 13.1k]
  ------------------
   48|  24.0k|		{
   49|  24.0k|			IDnsResource* temp = curResource->getNextResource();
   50|  24.0k|			delete curResource;
   51|  24.0k|			curResource = temp;
   52|  24.0k|		}
   53|       |
   54|  13.1k|		init(other.m_OffsetAdjustment, true);
   55|       |
   56|  13.1k|		return (*this);
   57|  13.1k|	}
_ZN4pcpp8DnsLayerD2Ev:
   60|  82.2k|	{
   61|  82.2k|		IDnsResource* curResource = m_ResourceList;
   62|   207k|		while (curResource != nullptr)
  ------------------
  |  Branch (62:10): [True: 125k, False: 82.2k]
  ------------------
   63|   125k|		{
   64|   125k|			IDnsResource* nextResource = curResource->getNextResource();
   65|   125k|			delete curResource;
   66|   125k|			curResource = nextResource;
   67|   125k|		}
   68|  82.2k|	}
_ZN4pcpp8DnsLayer4initEmb:
   71|  95.3k|	{
   72|  95.3k|		m_OffsetAdjustment = offsetAdjustment;
   73|  95.3k|		m_Protocol = DNS;
   74|  95.3k|		m_ResourceList = nullptr;
   75|       |
   76|  95.3k|		m_FirstQuery = nullptr;
   77|  95.3k|		m_FirstAnswer = nullptr;
   78|  95.3k|		m_FirstAuthority = nullptr;
   79|  95.3k|		m_FirstAdditional = nullptr;
   80|       |
   81|  95.3k|		if (callParseResource)
  ------------------
  |  Branch (81:7): [True: 95.3k, False: 0]
  ------------------
   82|  95.3k|			parseResources();
   83|  95.3k|	}
_ZN4pcpp8DnsLayer18getBasicHeaderSizeEv:
   97|   147k|	{
   98|   147k|		return sizeof(dnshdr) + m_OffsetAdjustment;
   99|   147k|	}
_ZNK4pcpp8DnsLayer12getDnsHeaderEv:
  102|   830k|	{
  103|   830k|		uint8_t* ptr = m_Data + m_OffsetAdjustment;
  104|   830k|		return reinterpret_cast<dnshdr*>(ptr);
  105|   830k|	}
_ZN4pcpp8DnsLayer11extendLayerEimPNS_12IDnsResourceE:
  108|  52.4k|	{
  109|  52.4k|		if (!Layer::extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (109:7): [True: 10.4k, False: 41.9k]
  ------------------
  110|  10.4k|			return false;
  111|       |
  112|  41.9k|		IDnsResource* curResource = resource->getNextResource();
  113|  54.7k|		while (curResource != nullptr)
  ------------------
  |  Branch (113:10): [True: 12.7k, False: 41.9k]
  ------------------
  114|  12.7k|		{
  115|  12.7k|			curResource->m_OffsetInLayer += numOfBytesToExtend;
  116|  12.7k|			curResource = curResource->getNextResource();
  117|  12.7k|		}
  118|  41.9k|		return true;
  119|  52.4k|	}
_ZN4pcpp8DnsLayer12shortenLayerEimPNS_12IDnsResourceE:
  122|  41.6k|	{
  123|  41.6k|		if (!Layer::shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (123:7): [True: 0, False: 41.6k]
  ------------------
  124|      0|			return false;
  125|       |
  126|  41.6k|		IDnsResource* curResource = resource->getNextResource();
  127|  54.4k|		while (curResource != nullptr)
  ------------------
  |  Branch (127:10): [True: 12.7k, False: 41.6k]
  ------------------
  128|  12.7k|		{
  129|  12.7k|			curResource->m_OffsetInLayer -= numOfBytesToShorten;
  130|  12.7k|			curResource = curResource->getNextResource();
  131|  12.7k|		}
  132|  41.6k|		return true;
  133|  41.6k|	}
_ZN4pcpp8DnsLayer14parseResourcesEv:
  136|  95.3k|	{
  137|  95.3k|		size_t offsetInPacket = getBasicHeaderSize();
  138|  95.3k|		IDnsResource* curResource = m_ResourceList;
  139|       |
  140|  95.3k|		uint16_t numOfQuestions = be16toh(getDnsHeader()->numberOfQuestions);
  141|  95.3k|		uint16_t numOfAnswers = be16toh(getDnsHeader()->numberOfAnswers);
  142|  95.3k|		uint16_t numOfAuthority = be16toh(getDnsHeader()->numberOfAuthority);
  143|  95.3k|		uint16_t numOfAdditional = be16toh(getDnsHeader()->numberOfAdditional);
  144|       |
  145|  95.3k|		uint32_t numOfOtherResources = numOfQuestions + numOfAnswers + numOfAuthority + numOfAdditional;
  146|       |
  147|  95.3k|		if (numOfOtherResources > 300)
  ------------------
  |  Branch (147:7): [True: 17.5k, False: 77.8k]
  ------------------
  148|  17.5k|		{
  149|  17.5k|			PCPP_LOG_ERROR(
  ------------------
  |  |  443|  17.5k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  17.5k|	do                                                                                                                 \
  |  |  |  |  413|  17.5k|	{                                                                                                                  \
  |  |  |  |  414|  17.5k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  17.5k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  17.5k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 17.5k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  17.5k|		{                                                                                                              \
  |  |  |  |  417|  17.5k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  17.5k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  17.5k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  17.5k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  17.5k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  17.5k|		}                                                                                                              \
  |  |  |  |  422|  17.5k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 17.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  150|  17.5k|			    "DNS layer contains more than 300 resources, probably a bad packet. Skipping parsing DNS resources");
  151|  17.5k|			return;
  152|  17.5k|		}
  153|       |
  154|   227k|		for (uint32_t i = 0; i < numOfOtherResources; i++)
  ------------------
  |  Branch (154:24): [True: 174k, False: 52.9k]
  ------------------
  155|   174k|		{
  156|   174k|			DnsResourceType resType;
  157|   174k|			if (numOfQuestions > 0)
  ------------------
  |  Branch (157:8): [True: 102k, False: 71.3k]
  ------------------
  158|   102k|			{
  159|   102k|				resType = DnsQueryType;
  160|   102k|				numOfQuestions--;
  161|   102k|			}
  162|  71.3k|			else if (numOfAnswers > 0)
  ------------------
  |  Branch (162:13): [True: 25.7k, False: 45.5k]
  ------------------
  163|  25.7k|			{
  164|  25.7k|				resType = DnsAnswerType;
  165|  25.7k|				numOfAnswers--;
  166|  25.7k|			}
  167|  45.5k|			else if (numOfAuthority > 0)
  ------------------
  |  Branch (167:13): [True: 28.4k, False: 17.1k]
  ------------------
  168|  28.4k|			{
  169|  28.4k|				resType = DnsAuthorityType;
  170|  28.4k|				numOfAuthority--;
  171|  28.4k|			}
  172|  17.1k|			else
  173|  17.1k|			{
  174|  17.1k|				resType = DnsAdditionalType;
  175|  17.1k|				numOfAdditional--;
  176|  17.1k|			}
  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: 102k, False: 71.3k]
  ------------------
  182|   102k|			{
  183|   102k|				newQuery = new DnsQuery(this, offsetInPacket);
  184|   102k|				newGenResource = newQuery;
  185|   102k|				offsetInPacket += newQuery->getSize();
  186|   102k|			}
  187|  71.3k|			else
  188|  71.3k|			{
  189|  71.3k|				newResource = new DnsResource(this, offsetInPacket, resType);
  190|  71.3k|				newGenResource = newResource;
  191|  71.3k|				offsetInPacket += newResource->getSize();
  192|  71.3k|			}
  193|       |
  194|   174k|			if (offsetInPacket > m_DataLen)
  ------------------
  |  Branch (194:8): [True: 24.9k, False: 149k]
  ------------------
  195|  24.9k|			{
  196|       |				// Parse packet failed, DNS resource is out of bounds. Probably a bad packet
  197|  24.9k|				delete newGenResource;
  198|  24.9k|				return;
  199|  24.9k|			}
  200|       |
  201|       |			// this resource is the first resource
  202|   149k|			if (m_ResourceList == nullptr)
  ------------------
  |  Branch (202:8): [True: 71.8k, False: 77.3k]
  ------------------
  203|  71.8k|			{
  204|  71.8k|				m_ResourceList = newGenResource;
  205|  71.8k|				curResource = m_ResourceList;
  206|  71.8k|			}
  207|  77.3k|			else
  208|  77.3k|			{
  209|  77.3k|				curResource->setNextResource(newGenResource);
  210|  77.3k|				curResource = curResource->getNextResource();
  211|  77.3k|			}
  212|       |
  213|   149k|			if (resType == DnsQueryType && m_FirstQuery == nullptr)
  ------------------
  |  Branch (213:8): [True: 95.7k, False: 53.4k]
  |  Branch (213:35): [True: 71.5k, False: 24.2k]
  ------------------
  214|  71.5k|				m_FirstQuery = newQuery;
  215|  77.6k|			else if (resType == DnsAnswerType && m_FirstAnswer == nullptr)
  ------------------
  |  Branch (215:13): [True: 21.2k, False: 56.4k]
  |  Branch (215:41): [True: 7.79k, False: 13.4k]
  ------------------
  216|  7.79k|				m_FirstAnswer = newResource;
  217|  69.8k|			else if (resType == DnsAuthorityType && m_FirstAuthority == nullptr)
  ------------------
  |  Branch (217:13): [True: 18.9k, False: 50.8k]
  |  Branch (217:44): [True: 10.6k, False: 8.35k]
  ------------------
  218|  10.6k|				m_FirstAuthority = newResource;
  219|  59.2k|			else if (resType == DnsAdditionalType && m_FirstAdditional == nullptr)
  ------------------
  |  Branch (219:13): [True: 13.1k, False: 46.0k]
  |  Branch (219:45): [True: 7.94k, False: 5.22k]
  ------------------
  220|  7.94k|				m_FirstAdditional = newResource;
  221|   149k|		}
  222|  77.8k|	}
_ZNK4pcpp8DnsLayer17getResourceByNameEPNS_12IDnsResourceEmRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEb:
  226|   104k|	{
  227|   104k|		size_t index = 0;
  228|   185k|		while (index < resourceCount)
  ------------------
  |  Branch (228:10): [True: 140k, False: 45.6k]
  ------------------
  229|   140k|		{
  230|   140k|			if (startFrom == nullptr)
  ------------------
  |  Branch (230:8): [True: 17.6k, False: 122k]
  ------------------
  231|  17.6k|				return nullptr;
  232|       |
  233|   122k|			std::string resourceName = startFrom->getName();
  234|   122k|			if (exactMatch && resourceName == name)
  ------------------
  |  Branch (234:8): [True: 61.2k, False: 61.2k]
  |  Branch (234:22): [True: 0, False: 61.2k]
  ------------------
  235|      0|				return startFrom;
  236|   122k|			else if (!exactMatch && resourceName.find(name) != std::string::npos)
  ------------------
  |  Branch (236:13): [True: 61.2k, False: 61.2k]
  |  Branch (236:28): [True: 41.6k, False: 19.6k]
  ------------------
  237|  41.6k|				return startFrom;
  238|       |
  239|  80.8k|			startFrom = startFrom->getNextResource();
  240|       |
  241|  80.8k|			index++;
  242|  80.8k|		}
  243|       |
  244|  45.6k|		return nullptr;
  245|   104k|	}
_ZNK4pcpp8DnsLayer8getQueryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  248|  26.2k|	{
  249|  26.2k|		uint16_t numOfQueries = be16toh(getDnsHeader()->numberOfQuestions);
  250|  26.2k|		IDnsResource* res = getResourceByName(m_FirstQuery, numOfQueries, name, exactMatch);
  251|  26.2k|		if (res != nullptr)
  ------------------
  |  Branch (251:7): [True: 10.4k, False: 15.7k]
  ------------------
  252|  10.4k|			return dynamic_cast<DnsQuery*>(res);
  253|  15.7k|		return nullptr;
  254|  26.2k|	}
_ZNK4pcpp8DnsLayer13getFirstQueryEv:
  257|  13.1k|	{
  258|  13.1k|		return m_FirstQuery;
  259|  13.1k|	}
_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.30k, False: 6.01k]
  |  Branch (263:66): [True: 0, False: 6.01k]
  ------------------
  264|  6.01k|		    query->getNextResource()->getType() != DnsQueryType)
  ------------------
  |  Branch (264:7): [True: 3.48k, False: 2.53k]
  ------------------
  265|  9.78k|			return nullptr;
  266|       |
  267|  2.53k|		return (DnsQuery*)(query->getNextResource());
  268|  12.3k|	}
_ZNK4pcpp8DnsLayer13getQueryCountEv:
  271|  47.1k|	{
  272|       |		return be16toh(getDnsHeader()->numberOfQuestions);
  273|  47.1k|	}
_ZNK4pcpp8DnsLayer9getAnswerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  276|  26.2k|	{
  277|  26.2k|		uint16_t numOfAnswers = be16toh(getDnsHeader()->numberOfAnswers);
  278|  26.2k|		IDnsResource* res = getResourceByName(m_FirstAnswer, numOfAnswers, name, exactMatch);
  279|  26.2k|		if (res != nullptr)
  ------------------
  |  Branch (279:7): [True: 10.3k, False: 15.8k]
  ------------------
  280|  10.3k|			return dynamic_cast<DnsResource*>(res);
  281|  15.8k|		return nullptr;
  282|  26.2k|	}
_ZNK4pcpp8DnsLayer14getFirstAnswerEv:
  285|  13.1k|	{
  286|  13.1k|		return m_FirstAnswer;
  287|  13.1k|	}
_ZNK4pcpp8DnsLayer13getNextAnswerEPNS_11DnsResourceE:
  290|  3.12k|	{
  291|  3.12k|		if (answer == nullptr || answer->getNextResource() == nullptr || answer->getType() != DnsAnswerType ||
  ------------------
  |  Branch (291:7): [True: 0, False: 3.12k]
  |  Branch (291:28): [True: 1.09k, False: 2.03k]
  |  Branch (291:68): [True: 0, False: 2.03k]
  ------------------
  292|  2.03k|		    answer->getNextResource()->getType() != DnsAnswerType)
  ------------------
  |  Branch (292:7): [True: 95, False: 1.93k]
  ------------------
  293|  1.18k|			return nullptr;
  294|       |
  295|  1.93k|		return (DnsResource*)(answer->getNextResource());
  296|  3.12k|	}
_ZNK4pcpp8DnsLayer14getAnswerCountEv:
  299|  47.1k|	{
  300|       |		return be16toh(getDnsHeader()->numberOfAnswers);
  301|  47.1k|	}
_ZNK4pcpp8DnsLayer12getAuthorityERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  304|  26.2k|	{
  305|  26.2k|		uint16_t numOfAuthorities = be16toh(getDnsHeader()->numberOfAuthority);
  306|  26.2k|		IDnsResource* res = getResourceByName(m_FirstAuthority, numOfAuthorities, name, exactMatch);
  307|  26.2k|		if (res != nullptr)
  ------------------
  |  Branch (307:7): [True: 10.4k, False: 15.8k]
  ------------------
  308|  10.4k|			return dynamic_cast<DnsResource*>(res);
  309|  15.8k|		return nullptr;
  310|  26.2k|	}
_ZNK4pcpp8DnsLayer17getFirstAuthorityEv:
  313|  13.1k|	{
  314|  13.1k|		return m_FirstAuthority;
  315|  13.1k|	}
_ZNK4pcpp8DnsLayer16getNextAuthorityEPNS_11DnsResourceE:
  318|  2.50k|	{
  319|  2.50k|		if (authority == nullptr || authority->getNextResource() == nullptr ||
  ------------------
  |  Branch (319:7): [True: 0, False: 2.50k]
  |  Branch (319:31): [True: 1.32k, False: 1.17k]
  ------------------
  320|  1.17k|		    authority->getType() != DnsAuthorityType || authority->getNextResource()->getType() != DnsAuthorityType)
  ------------------
  |  Branch (320:7): [True: 0, False: 1.17k]
  |  Branch (320:51): [True: 232, False: 943]
  ------------------
  321|  1.55k|			return nullptr;
  322|       |
  323|    943|		return (DnsResource*)(authority->getNextResource());
  324|  2.50k|	}
_ZNK4pcpp8DnsLayer17getAuthorityCountEv:
  327|  47.1k|	{
  328|       |		return be16toh(getDnsHeader()->numberOfAuthority);
  329|  47.1k|	}
_ZNK4pcpp8DnsLayer19getAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  332|  26.2k|	{
  333|  26.2k|		uint16_t numOfAdditionalRecords = be16toh(getDnsHeader()->numberOfAdditional);
  334|  26.2k|		IDnsResource* res = getResourceByName(m_FirstAdditional, numOfAdditionalRecords, name, exactMatch);
  335|  26.2k|		if (res != nullptr)
  ------------------
  |  Branch (335:7): [True: 10.4k, False: 15.8k]
  ------------------
  336|  10.4k|			return dynamic_cast<DnsResource*>(res);
  337|  15.8k|		return nullptr;
  338|  26.2k|	}
_ZNK4pcpp8DnsLayer24getFirstAdditionalRecordEv:
  341|  13.1k|	{
  342|  13.1k|		return m_FirstAdditional;
  343|  13.1k|	}
_ZNK4pcpp8DnsLayer23getNextAdditionalRecordEPNS_11DnsResourceE:
  346|  1.97k|	{
  347|  1.97k|		if (additionalRecord == nullptr || additionalRecord->getNextResource() == nullptr ||
  ------------------
  |  Branch (347:7): [True: 0, False: 1.97k]
  |  Branch (347:38): [True: 1.22k, False: 747]
  ------------------
  348|    747|		    additionalRecord->getType() != DnsAdditionalType ||
  ------------------
  |  Branch (348:7): [True: 0, False: 747]
  ------------------
  349|    747|		    additionalRecord->getNextResource()->getType() != DnsAdditionalType)
  ------------------
  |  Branch (349:7): [True: 0, False: 747]
  ------------------
  350|  1.22k|			return nullptr;
  351|       |
  352|    747|		return (DnsResource*)(additionalRecord->getNextResource());
  353|  1.97k|	}
_ZNK4pcpp8DnsLayer24getAdditionalRecordCountEv:
  356|  47.1k|	{
  357|       |		return be16toh(getDnsHeader()->numberOfAdditional);
  358|  47.1k|	}
_ZNK4pcpp8DnsLayer8toStringEv:
  361|  26.2k|	{
  362|  26.2k|		std::ostringstream tidAsString;
  363|  26.2k|		tidAsString << be16toh(getDnsHeader()->transactionID);
  364|       |
  365|  26.2k|		std::ostringstream queryCount;
  366|  26.2k|		queryCount << getQueryCount();
  367|       |
  368|  26.2k|		std::ostringstream answerCount;
  369|  26.2k|		answerCount << getAnswerCount();
  370|       |
  371|  26.2k|		std::ostringstream authorityCount;
  372|  26.2k|		authorityCount << getAuthorityCount();
  373|       |
  374|  26.2k|		std::ostringstream additionalCount;
  375|  26.2k|		additionalCount << getAdditionalRecordCount();
  376|       |
  377|  26.2k|		if (getDnsHeader()->queryOrResponse == 1)
  ------------------
  |  Branch (377:7): [True: 6.37k, False: 19.8k]
  ------------------
  378|  6.37k|		{
  379|  6.37k|			return "DNS query response, ID: " + tidAsString.str() + ";" + " queries: " + queryCount.str() +
  380|  6.37k|			       ", answers: " + answerCount.str() + ", authorities: " + authorityCount.str() +
  381|  6.37k|			       ", additional record: " + additionalCount.str();
  382|  6.37k|		}
  383|  19.8k|		else if (getDnsHeader()->queryOrResponse == 0)
  ------------------
  |  Branch (383:12): [True: 19.8k, False: 0]
  ------------------
  384|  19.8k|		{
  385|  19.8k|			return "DNS query, ID: " + tidAsString.str() + ";" + " queries: " + queryCount.str() +
  386|  19.8k|			       ", answers: " + answerCount.str() + ", authorities: " + authorityCount.str() +
  387|  19.8k|			       ", additional record: " + additionalCount.str();
  388|  19.8k|		}
  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|  26.2k|	}
_ZNK4pcpp8DnsLayer16getFirstResourceENS_15DnsResourceTypeE:
  398|  41.6k|	{
  399|  41.6k|		switch (resType)
  400|  41.6k|		{
  401|  10.4k|		case DnsQueryType:
  ------------------
  |  Branch (401:3): [True: 10.4k, False: 31.1k]
  ------------------
  402|  10.4k|		{
  403|  10.4k|			return m_FirstQuery;
  404|      0|		}
  405|  10.3k|		case DnsAnswerType:
  ------------------
  |  Branch (405:3): [True: 10.3k, False: 31.2k]
  ------------------
  406|  10.3k|		{
  407|  10.3k|			return m_FirstAnswer;
  408|      0|		}
  409|  10.4k|		case DnsAuthorityType:
  ------------------
  |  Branch (409:3): [True: 10.4k, False: 31.2k]
  ------------------
  410|  10.4k|		{
  411|  10.4k|			return m_FirstAuthority;
  412|      0|		}
  413|  10.4k|		case DnsAdditionalType:
  ------------------
  |  Branch (413:3): [True: 10.4k, False: 31.2k]
  ------------------
  414|  10.4k|		{
  415|  10.4k|			return m_FirstAdditional;
  416|      0|		}
  417|      0|		default:
  ------------------
  |  Branch (417:3): [True: 0, False: 41.6k]
  ------------------
  418|      0|			return nullptr;
  419|  41.6k|		}
  420|  41.6k|	}
_ZN4pcpp8DnsLayer16setFirstResourceENS_15DnsResourceTypeEPNS_12IDnsResourceE:
  423|  57.5k|	{
  424|  57.5k|		switch (resType)
  425|  57.5k|		{
  426|  1.54k|		case DnsQueryType:
  ------------------
  |  Branch (426:3): [True: 1.54k, False: 55.9k]
  ------------------
  427|  1.54k|		{
  428|  1.54k|			m_FirstQuery = dynamic_cast<DnsQuery*>(resource);
  429|  1.54k|			break;
  430|      0|		}
  431|  18.7k|		case DnsAnswerType:
  ------------------
  |  Branch (431:3): [True: 18.7k, False: 38.7k]
  ------------------
  432|  18.7k|		{
  433|  18.7k|			m_FirstAnswer = dynamic_cast<DnsResource*>(resource);
  434|  18.7k|			break;
  435|      0|		}
  436|  18.5k|		case DnsAuthorityType:
  ------------------
  |  Branch (436:3): [True: 18.5k, False: 38.9k]
  ------------------
  437|  18.5k|		{
  438|  18.5k|			m_FirstAuthority = dynamic_cast<DnsResource*>(resource);
  439|  18.5k|			break;
  440|      0|		}
  441|  18.6k|		case DnsAdditionalType:
  ------------------
  |  Branch (441:3): [True: 18.6k, False: 38.8k]
  ------------------
  442|  18.6k|		{
  443|  18.6k|			m_FirstAdditional = dynamic_cast<DnsResource*>(resource);
  444|  18.6k|			break;
  445|      0|		}
  446|      0|		default:
  ------------------
  |  Branch (446:3): [True: 0, False: 57.5k]
  ------------------
  447|      0|			return;
  448|  57.5k|		}
  449|  57.5k|	}
_ZN4pcpp8DnsLayer11addResourceENS_15DnsResourceTypeERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  453|  39.3k|	{
  454|       |		// create new query on temporary buffer
  455|  39.3k|		uint8_t newResourceRawData[4096];
  456|  39.3k|		memset(newResourceRawData, 0, sizeof(newResourceRawData));
  457|       |
  458|  39.3k|		DnsResource* newResource = new DnsResource(newResourceRawData, resType);
  459|       |
  460|  39.3k|		newResource->setDnsClass(dnsClass);
  461|       |
  462|  39.3k|		newResource->setDnsType(dnsType);
  463|       |
  464|       |		// cannot return false since layer shouldn't be extended or shortened in this stage
  465|  39.3k|		newResource->setName(name);
  466|       |
  467|  39.3k|		newResource->setTTL(ttl);
  468|       |
  469|  39.3k|		if (!newResource->setData(data))
  ------------------
  |  Branch (469:7): [True: 0, False: 39.3k]
  ------------------
  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|  39.3k|		size_t newResourceOffsetInLayer = getBasicHeaderSize();
  477|  39.3k|		IDnsResource* curResource = m_ResourceList;
  478|  62.6k|		while (curResource != nullptr && curResource->getType() <= resType)
  ------------------
  |  Branch (478:10): [True: 53.0k, False: 9.67k]
  |  Branch (478:36): [True: 52.9k, False: 20]
  ------------------
  479|  52.9k|		{
  480|  52.9k|			newResourceOffsetInLayer += curResource->getSize();
  481|       |
  482|  52.9k|			if (newResourceOffsetInLayer > m_DataLen)
  ------------------
  |  Branch (482:8): [True: 18, False: 52.9k]
  ------------------
  483|     18|			{
  484|       |				// This possibly means that the DNS layer has been created from a malformed packet.
  485|     18|				PCPP_LOG_ERROR("Couldn't add resource! DNS Layer is malformed and contains out of bounds resources.");
  ------------------
  |  |  443|     18|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|     18|	do                                                                                                                 \
  |  |  |  |  413|     18|	{                                                                                                                  \
  |  |  |  |  414|     18|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     18|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     18|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 18, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|     18|		{                                                                                                              \
  |  |  |  |  417|     18|			auto ctx =                                                                                                 \
  |  |  |  |  418|     18|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     18|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|     18|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|     18|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|     18|		}                                                                                                              \
  |  |  |  |  422|     18|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 18]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  486|     18|				delete newResource;
  487|     18|				return nullptr;
  488|     18|			}
  489|       |
  490|  52.9k|			IDnsResource* nextResource = curResource->getNextResource();
  491|  52.9k|			if (nextResource == nullptr || nextResource->getType() > resType)
  ------------------
  |  Branch (491:8): [True: 26.1k, False: 26.8k]
  |  Branch (491:35): [True: 3.52k, False: 23.3k]
  ------------------
  492|  29.6k|				break;
  493|  23.3k|			curResource = nextResource;
  494|  23.3k|		}
  495|       |
  496|       |		// set next resource for new resource. This must happen here for extendLayer to succeed
  497|  39.3k|		if (curResource != nullptr)
  ------------------
  |  Branch (497:7): [True: 29.6k, False: 9.67k]
  ------------------
  498|  29.6k|		{
  499|  29.6k|			if (curResource->getType() > newResource->getType())
  ------------------
  |  Branch (499:8): [True: 20, False: 29.6k]
  ------------------
  500|     20|				newResource->setNextResource(m_ResourceList);
  501|  29.6k|			else
  502|  29.6k|				newResource->setNextResource(curResource->getNextResource());
  503|  29.6k|		}
  504|  9.67k|		else
  505|  9.67k|		{
  506|       |			// curResource != nullptr
  507|  9.67k|			newResource->setNextResource(m_ResourceList);
  508|  9.67k|		}
  509|       |
  510|       |		// extend layer to make room for the new resource
  511|  39.3k|		if (!extendLayer(newResourceOffsetInLayer, newResource->getSize(), newResource))
  ------------------
  |  Branch (511:7): [True: 7.82k, False: 31.4k]
  ------------------
  512|  7.82k|		{
  513|  7.82k|			PCPP_LOG_ERROR("Couldn't extend DNS layer, addResource failed");
  ------------------
  |  |  443|  7.82k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  7.82k|	do                                                                                                                 \
  |  |  |  |  413|  7.82k|	{                                                                                                                  \
  |  |  |  |  414|  7.82k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  7.82k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  7.82k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 7.82k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  7.82k|		{                                                                                                              \
  |  |  |  |  417|  7.82k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  7.82k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  7.82k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  7.82k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  7.82k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  7.82k|		}                                                                                                              \
  |  |  |  |  422|  7.82k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 7.82k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  514|  7.82k|			delete newResource;
  515|  7.82k|			return nullptr;
  516|  7.82k|		}
  517|       |
  518|       |		// connect the new resource to layer
  519|  31.4k|		newResource->setDnsLayer(this, newResourceOffsetInLayer);
  520|       |
  521|       |		// connect the new resource to the layer's resource list
  522|  31.4k|		if (curResource != nullptr)
  ------------------
  |  Branch (522:7): [True: 27.0k, False: 4.47k]
  ------------------
  523|  27.0k|		{
  524|  27.0k|			curResource->setNextResource(newResource);
  525|       |			// this means the new resource is the first of it's type
  526|  27.0k|			if (curResource->getType() < newResource->getType())
  ------------------
  |  Branch (526:8): [True: 23.6k, False: 3.35k]
  ------------------
  527|  23.6k|			{
  528|  23.6k|				setFirstResource(resType, newResource);
  529|  23.6k|			}
  530|       |			// this means the new resource should be the first resource in the packet
  531|  3.35k|			else if (curResource->getType() > newResource->getType())
  ------------------
  |  Branch (531:13): [True: 0, False: 3.35k]
  ------------------
  532|      0|			{
  533|      0|				m_ResourceList = newResource;
  534|       |
  535|      0|				setFirstResource(resType, newResource);
  536|      0|			}
  537|  27.0k|		}
  538|  4.47k|		else  // curResource != nullptr, meaning this is the first resource in layer
  539|  4.47k|		{
  540|  4.47k|			m_ResourceList = newResource;
  541|       |
  542|  4.47k|			setFirstResource(resType, newResource);
  543|  4.47k|		}
  544|       |
  545|  31.4k|		return newResource;
  546|  39.3k|	}
_ZN4pcpp8DnsLayer8addQueryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassE:
  549|  13.1k|	{
  550|       |		// create new query on temporary buffer
  551|  13.1k|		uint8_t newQueryRawData[256];
  552|  13.1k|		DnsQuery* newQuery = new DnsQuery(newQueryRawData);
  553|       |
  554|  13.1k|		newQuery->setDnsClass(dnsClass);
  555|  13.1k|		newQuery->setDnsType(dnsType);
  556|       |
  557|       |		// cannot return false since layer shouldn't be extended or shortened in this stage
  558|  13.1k|		newQuery->setName(name);
  559|       |
  560|       |		// find the offset in the layer to insert the new query
  561|  13.1k|		size_t newQueryOffsetInLayer = getBasicHeaderSize();
  562|  13.1k|		DnsQuery* curQuery = getFirstQuery();
  563|  15.6k|		while (curQuery != nullptr)
  ------------------
  |  Branch (563:10): [True: 12.3k, False: 3.32k]
  ------------------
  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: 9.78k, False: 2.53k]
  ------------------
  568|  9.78k|				break;
  569|  2.53k|			curQuery = nextQuery;
  570|  2.53k|		}
  571|       |
  572|       |		// set next resource for new query. This must happen here for extendLayer to succeed
  573|  13.1k|		if (curQuery != nullptr)
  ------------------
  |  Branch (573:7): [True: 9.78k, False: 3.32k]
  ------------------
  574|  9.78k|			newQuery->setNextResource(curQuery->getNextResource());
  575|  3.32k|		else
  576|  3.32k|			newQuery->setNextResource(m_ResourceList);
  577|       |
  578|       |		// extend layer to make room for the new query
  579|  13.1k|		if (!extendLayer(newQueryOffsetInLayer, newQuery->getSize(), newQuery))
  ------------------
  |  Branch (579:7): [True: 2.61k, False: 10.4k]
  ------------------
  580|  2.61k|		{
  581|  2.61k|			PCPP_LOG_ERROR("Couldn't extend DNS layer, addQuery failed");
  ------------------
  |  |  443|  2.61k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  2.61k|	do                                                                                                                 \
  |  |  |  |  413|  2.61k|	{                                                                                                                  \
  |  |  |  |  414|  2.61k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.61k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.61k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 2.61k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.61k|		{                                                                                                              \
  |  |  |  |  417|  2.61k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  2.61k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.61k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  2.61k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  2.61k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  2.61k|		}                                                                                                              \
  |  |  |  |  422|  2.61k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.61k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  582|  2.61k|			delete newQuery;
  583|  2.61k|			return nullptr;
  584|  2.61k|		}
  585|       |
  586|       |		// connect the new query to layer
  587|  10.4k|		newQuery->setDnsLayer(this, newQueryOffsetInLayer);
  588|       |
  589|       |		// connect the new query to the layer's resource list
  590|  10.4k|		if (curQuery != nullptr)
  ------------------
  |  Branch (590:7): [True: 8.91k, False: 1.58k]
  ------------------
  591|  8.91k|			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|  10.4k|		getDnsHeader()->numberOfQuestions = htobe16(getQueryCount() + 1);
  600|       |
  601|  10.4k|		return newQuery;
  602|  13.1k|	}
_ZN4pcpp8DnsLayer11removeQueryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  613|  26.2k|	{
  614|  26.2k|		DnsQuery* queryToRemove = getQuery(queryNameToRemove, exactMatch);
  615|  26.2k|		if (queryToRemove == nullptr)
  ------------------
  |  Branch (615:7): [True: 15.7k, False: 10.4k]
  ------------------
  616|  15.7k|		{
  617|  15.7k|			PCPP_LOG_DEBUG("Query not found");
  ------------------
  |  |  425|  15.7k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  15.7k|	do                                                                                                                 \
  |  |  |  |  413|  15.7k|	{                                                                                                                  \
  |  |  |  |  414|  15.7k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  15.7k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  15.7k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 15.7k]
  |  |  |  |  ------------------
  |  |  |  |  416|  15.7k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  15.7k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 15.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  618|  15.7k|			return false;
  619|  15.7k|		}
  620|       |
  621|  10.4k|		return removeQuery(queryToRemove);
  622|  26.2k|	}
_ZN4pcpp8DnsLayer11removeQueryEPNS_8DnsQueryE:
  625|  10.4k|	{
  626|  10.4k|		bool res = removeResource(queryToRemove);
  627|  10.4k|		if (res)
  ------------------
  |  Branch (627:7): [True: 10.4k, False: 0]
  ------------------
  628|  10.4k|		{
  629|       |			// decrease number of query records
  630|  10.4k|			getDnsHeader()->numberOfQuestions = htobe16(getQueryCount() - 1);
  631|  10.4k|		}
  632|       |
  633|  10.4k|		return res;
  634|  10.4k|	}
_ZN4pcpp8DnsLayer9addAnswerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  638|  13.1k|	{
  639|  13.1k|		DnsResource* res = addResource(DnsAnswerType, name, dnsType, dnsClass, ttl, data);
  640|  13.1k|		if (res != nullptr)
  ------------------
  |  Branch (640:7): [True: 10.4k, False: 2.61k]
  ------------------
  641|  10.4k|		{
  642|       |			// increase number of answer records
  643|  10.4k|			getDnsHeader()->numberOfAnswers = htobe16(getAnswerCount() + 1);
  644|  10.4k|		}
  645|       |
  646|  13.1k|		return res;
  647|  13.1k|	}
_ZN4pcpp8DnsLayer12removeAnswerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  659|  26.2k|	{
  660|  26.2k|		DnsResource* answerToRemove = getAnswer(answerNameToRemove, exactMatch);
  661|  26.2k|		if (answerToRemove == nullptr)
  ------------------
  |  Branch (661:7): [True: 15.8k, False: 10.3k]
  ------------------
  662|  15.8k|		{
  663|  15.8k|			PCPP_LOG_DEBUG("Answer record not found");
  ------------------
  |  |  425|  15.8k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  15.8k|	do                                                                                                                 \
  |  |  |  |  413|  15.8k|	{                                                                                                                  \
  |  |  |  |  414|  15.8k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  15.8k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  15.8k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 15.8k]
  |  |  |  |  ------------------
  |  |  |  |  416|  15.8k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  15.8k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 15.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  664|  15.8k|			return false;
  665|  15.8k|		}
  666|       |
  667|  10.3k|		return removeAnswer(answerToRemove);
  668|  26.2k|	}
_ZN4pcpp8DnsLayer12removeAnswerEPNS_11DnsResourceE:
  671|  10.3k|	{
  672|  10.3k|		bool res = removeResource(answerToRemove);
  673|  10.3k|		if (res)
  ------------------
  |  Branch (673:7): [True: 10.3k, False: 0]
  ------------------
  674|  10.3k|		{
  675|       |			// decrease number of answer records
  676|  10.3k|			getDnsHeader()->numberOfAnswers = htobe16(getAnswerCount() - 1);
  677|  10.3k|		}
  678|       |
  679|  10.3k|		return res;
  680|  10.3k|	}
_ZN4pcpp8DnsLayer12addAuthorityERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  684|  13.1k|	{
  685|  13.1k|		DnsResource* res = addResource(DnsAuthorityType, name, dnsType, dnsClass, ttl, data);
  686|  13.1k|		if (res != nullptr)
  ------------------
  |  Branch (686:7): [True: 10.4k, False: 2.61k]
  ------------------
  687|  10.4k|		{
  688|       |			// increase number of authority records
  689|  10.4k|			getDnsHeader()->numberOfAuthority = htobe16(getAuthorityCount() + 1);
  690|  10.4k|		}
  691|       |
  692|  13.1k|		return res;
  693|  13.1k|	}
_ZN4pcpp8DnsLayer15removeAuthorityERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  705|  26.2k|	{
  706|  26.2k|		DnsResource* authorityToRemove = getAuthority(authorityNameToRemove, exactMatch);
  707|  26.2k|		if (authorityToRemove == nullptr)
  ------------------
  |  Branch (707:7): [True: 15.8k, False: 10.4k]
  ------------------
  708|  15.8k|		{
  709|  15.8k|			PCPP_LOG_DEBUG("Authority not found");
  ------------------
  |  |  425|  15.8k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  15.8k|	do                                                                                                                 \
  |  |  |  |  413|  15.8k|	{                                                                                                                  \
  |  |  |  |  414|  15.8k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  15.8k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  15.8k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 15.8k]
  |  |  |  |  ------------------
  |  |  |  |  416|  15.8k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  15.8k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 15.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  710|  15.8k|			return false;
  711|  15.8k|		}
  712|       |
  713|  10.4k|		return removeAuthority(authorityToRemove);
  714|  26.2k|	}
_ZN4pcpp8DnsLayer15removeAuthorityEPNS_11DnsResourceE:
  717|  10.4k|	{
  718|  10.4k|		bool res = removeResource(authorityToRemove);
  719|  10.4k|		if (res)
  ------------------
  |  Branch (719:7): [True: 10.4k, False: 0]
  ------------------
  720|  10.4k|		{
  721|       |			// decrease number of authority records
  722|  10.4k|			getDnsHeader()->numberOfAuthority = htobe16(getAuthorityCount() - 1);
  723|  10.4k|		}
  724|       |
  725|  10.4k|		return res;
  726|  10.4k|	}
_ZN4pcpp8DnsLayer19addAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  730|  13.1k|	{
  731|  13.1k|		DnsResource* res = addResource(DnsAdditionalType, name, dnsType, dnsClass, ttl, data);
  732|  13.1k|		if (res != nullptr)
  ------------------
  |  Branch (732:7): [True: 10.4k, False: 2.61k]
  ------------------
  733|  10.4k|		{
  734|       |			// increase number of authority records
  735|  10.4k|			getDnsHeader()->numberOfAdditional = htobe16(getAdditionalRecordCount() + 1);
  736|  10.4k|		}
  737|       |
  738|  13.1k|		return res;
  739|  13.1k|	}
_ZN4pcpp8DnsLayer19addAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeEtjPNS_16IDnsResourceDataE:
  743|  13.1k|	{
  744|  13.1k|		DnsResource* res = addAdditionalRecord(name, dnsType, DNS_CLASS_ANY, customData2, data);
  745|  13.1k|		if (res != nullptr)
  ------------------
  |  Branch (745:7): [True: 10.4k, False: 2.61k]
  ------------------
  746|  10.4k|		{
  747|  10.4k|			res->setCustomDnsClass(customData1);
  748|  10.4k|		}
  749|       |
  750|  13.1k|		return res;
  751|  13.1k|	}
_ZN4pcpp8DnsLayer22removeAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  764|  26.2k|	{
  765|  26.2k|		DnsResource* additionalRecordToRemove = getAdditionalRecord(additionalRecordNameToRemove, exactMatch);
  766|  26.2k|		if (additionalRecordToRemove == nullptr)
  ------------------
  |  Branch (766:7): [True: 15.8k, False: 10.4k]
  ------------------
  767|  15.8k|		{
  768|  15.8k|			PCPP_LOG_DEBUG("Additional record not found");
  ------------------
  |  |  425|  15.8k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  15.8k|	do                                                                                                                 \
  |  |  |  |  413|  15.8k|	{                                                                                                                  \
  |  |  |  |  414|  15.8k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  15.8k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  15.8k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 15.8k]
  |  |  |  |  ------------------
  |  |  |  |  416|  15.8k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  15.8k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 15.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  769|  15.8k|			return false;
  770|  15.8k|		}
  771|       |
  772|  10.4k|		return removeAdditionalRecord(additionalRecordToRemove);
  773|  26.2k|	}
_ZN4pcpp8DnsLayer22removeAdditionalRecordEPNS_11DnsResourceE:
  776|  10.4k|	{
  777|  10.4k|		bool res = removeResource(additionalRecordToRemove);
  778|  10.4k|		if (res)
  ------------------
  |  Branch (778:7): [True: 10.4k, False: 0]
  ------------------
  779|  10.4k|		{
  780|       |			// decrease number of additional records
  781|  10.4k|			getDnsHeader()->numberOfAdditional = htobe16(getAdditionalRecordCount() - 1);
  782|  10.4k|		}
  783|       |
  784|  10.4k|		return res;
  785|  10.4k|	}
_ZN4pcpp8DnsLayer14removeResourceEPNS_12IDnsResourceE:
  788|  41.6k|	{
  789|  41.6k|		if (resourceToRemove == nullptr)
  ------------------
  |  Branch (789:7): [True: 0, False: 41.6k]
  ------------------
  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|  41.6k|		IDnsResource* prevResource = m_ResourceList;
  797|       |
  798|  41.6k|		if (m_ResourceList != resourceToRemove)
  ------------------
  |  Branch (798:7): [True: 35.7k, False: 5.90k]
  ------------------
  799|  35.7k|		{
  800|  56.8k|			while (prevResource != nullptr)
  ------------------
  |  Branch (800:11): [True: 56.8k, False: 0]
  ------------------
  801|  56.8k|			{
  802|  56.8k|				IDnsResource* temp = prevResource->getNextResource();
  803|  56.8k|				if (temp == resourceToRemove)
  ------------------
  |  Branch (803:9): [True: 35.7k, False: 21.0k]
  ------------------
  804|  35.7k|					break;
  805|       |
  806|  21.0k|				prevResource = temp;
  807|  21.0k|			}
  808|  35.7k|		}
  809|       |
  810|  41.6k|		if (prevResource == nullptr)
  ------------------
  |  Branch (810:7): [True: 0, False: 41.6k]
  ------------------
  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|  41.6k|		if (!shortenLayer(resourceToRemove->m_OffsetInLayer, resourceToRemove->getSize(), resourceToRemove))
  ------------------
  |  Branch (817:7): [True: 0, False: 41.6k]
  ------------------
  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|  41.6k|		if (m_ResourceList != resourceToRemove)
  ------------------
  |  Branch (824:7): [True: 35.7k, False: 5.90k]
  ------------------
  825|  35.7k|		{
  826|  35.7k|			prevResource->setNextResource(resourceToRemove->getNextResource());
  827|  35.7k|		}
  828|  5.90k|		else
  829|  5.90k|		{
  830|  5.90k|			m_ResourceList = resourceToRemove->getNextResource();
  831|  5.90k|		}
  832|       |
  833|       |		// check whether resourceToRemove was the first of its type
  834|  41.6k|		if (getFirstResource(resourceToRemove->getType()) == resourceToRemove)
  ------------------
  |  Branch (834:7): [True: 29.3k, False: 12.2k]
  ------------------
  835|  29.3k|		{
  836|  29.3k|			IDnsResource* nextResource = resourceToRemove->getNextResource();
  837|  29.3k|			if (nextResource != nullptr && nextResource->getType() == resourceToRemove->getType())
  ------------------
  |  Branch (837:8): [True: 3.05k, False: 26.3k]
  |  Branch (837:35): [True: 0, False: 3.05k]
  ------------------
  838|      0|				setFirstResource(resourceToRemove->getType(), nextResource);
  839|  29.3k|			else
  840|  29.3k|				setFirstResource(resourceToRemove->getType(), nullptr);
  841|  29.3k|		}
  842|       |
  843|       |		// free resourceToRemove memory
  844|  41.6k|		delete resourceToRemove;
  845|       |
  846|  41.6k|		return true;
  847|  41.6k|	}
_ZN4pcpp15DnsOverTcpLayer19setTcpMessageLengthEt:
  859|  3.44k|	{
  860|       |		((uint16_t*)m_Data)[0] = htobe16(value);
  861|  3.44k|	}
_ZN4pcpp15DnsOverTcpLayer22computeCalculateFieldsEv:
  864|  3.44k|	{
  865|  3.44k|		setTcpMessageLength(m_DataLen - sizeof(uint16_t));
  866|  3.44k|	}

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

_ZNK4pcpp19IPv4DnsResourceData9toByteArrEPhRmPNS_12IDnsResourceE:
   67|  26.2k|	{
   68|  26.2k|		arrLength = sizeof(uint32_t);
   69|  26.2k|		memcpy(arr, m_Data.toBytes(), sizeof(uint32_t));
   70|  26.2k|		return true;
   71|  26.2k|	}
_ZN4pcpp22GenericDnsResourceDataC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  152|  13.1k|	{
  153|  13.1k|		m_Data = nullptr;
  154|  13.1k|		uint8_t tempDataArr[2048];
  155|  13.1k|		m_DataLen = hexStringToByteArray(dataAsHexString, tempDataArr, 2048);
  156|  13.1k|		if (m_DataLen != 0)
  ------------------
  |  Branch (156:7): [True: 13.1k, False: 0]
  ------------------
  157|  13.1k|		{
  158|  13.1k|			m_Data = new uint8_t[m_DataLen];
  159|  13.1k|			memcpy(m_Data, tempDataArr, m_DataLen);
  160|  13.1k|		}
  161|  13.1k|	}
_ZNK4pcpp22GenericDnsResourceData9toByteArrEPhRmPNS_12IDnsResourceE:
  204|  13.1k|	{
  205|  13.1k|		if (m_DataLen == 0 || m_Data == nullptr)
  ------------------
  |  Branch (205:7): [True: 0, False: 13.1k]
  |  Branch (205:25): [True: 0, False: 13.1k]
  ------------------
  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.1k|		arrLength = m_DataLen;
  212|  13.1k|		memcpy(arr, m_Data, m_DataLen);
  213|  13.1k|		return true;
  214|  13.1k|	}

_ZN4pcpp9DoIpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  200|  48.3k|	    : Layer(data, dataLen, prevLayer, packet, DOIP)
  201|  48.3k|	{}
_ZN4pcpp9DoIpLayer11isDataValidEPhm:
  204|  56.2k|	{
  205|  56.2k|		if (data == nullptr || dataLen < DOIP_HEADER_LEN)
  ------------------
  |  Branch (205:7): [True: 0, False: 56.2k]
  |  Branch (205:26): [True: 975, False: 55.3k]
  ------------------
  206|    975|			return false;
  207|       |
  208|  55.3k|		auto* doipHeader = reinterpret_cast<doiphdr*>(data);
  209|  55.3k|		const uint8_t version = doipHeader->protocolVersion;
  210|  55.3k|		const uint8_t inVersion = doipHeader->invertProtocolVersion;
  211|  55.3k|		const uint16_t payloadTypeRaw = doipHeader->payloadType;
  212|  55.3k|		const uint32_t lengthRaw = doipHeader->payloadLength;
  213|       |
  214|  55.3k|		if (!isPayloadTypeValid(be16toh(payloadTypeRaw)))
  ------------------
  |  Branch (214:7): [True: 1.80k, False: 53.4k]
  ------------------
  215|  1.80k|			return false;
  216|       |		// if payload type is validated, we ensure passing a valid type to isProtocolVersionValid()
  217|  53.4k|		const DoIpPayloadTypes payloadType = static_cast<DoIpPayloadTypes>(be16toh(payloadTypeRaw));
  218|  53.4k|		if (!isProtocolVersionValid(version, inVersion, payloadType))
  ------------------
  |  Branch (218:7): [True: 1.98k, False: 51.5k]
  ------------------
  219|  1.98k|			return false;
  220|       |
  221|  51.5k|		if (!isPayloadLengthValid(be32toh(lengthRaw), dataLen))
  ------------------
  |  Branch (221:7): [True: 3.01k, False: 48.4k]
  ------------------
  222|  3.01k|			return false;
  223|       |
  224|  48.4k|		return true;
  225|  51.5k|	}
_ZN4pcpp9DoIpLayer14parseDoIpLayerEPhmPNS_5LayerEPNS_6PacketE:
  228|  48.4k|	{
  229|  48.4k|		doiphdr* doipHeader = reinterpret_cast<doiphdr*>(data);
  230|  48.4k|		uint16_t payloadType = doipHeader->payloadType;
  231|  48.4k|		DoIpPayloadTypes detectedPayloadType = static_cast<DoIpPayloadTypes>(be16toh(payloadType));
  232|       |
  233|  48.4k|		switch (detectedPayloadType)
  234|  48.4k|		{
  235|  6.91k|		case DoIpPayloadTypes::GENERIC_HEADER_NACK:
  ------------------
  |  Branch (235:3): [True: 6.91k, False: 41.5k]
  ------------------
  236|  6.91k|			return (DoIpGenericHeaderNack::isDataLenValid(dataLen))
  ------------------
  |  Branch (236:11): [True: 6.91k, False: 0]
  ------------------
  237|  6.91k|			           ? new DoIpGenericHeaderNack(data, dataLen, prevLayer, packet)
  238|  6.91k|			           : nullptr;
  239|  3.61k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST:
  ------------------
  |  Branch (239:3): [True: 3.61k, False: 44.8k]
  ------------------
  240|  3.61k|			return (DoIpVehicleIdentificationRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (240:11): [True: 3.61k, False: 0]
  ------------------
  241|  3.61k|			           ? new DoIpVehicleIdentificationRequest(data, dataLen, prevLayer, packet)
  242|  3.61k|			           : nullptr;
  243|  1.69k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID:
  ------------------
  |  Branch (243:3): [True: 1.69k, False: 46.8k]
  ------------------
  244|  1.69k|			return (DoIpVehicleIdentificationRequestWithEID::isDataLenValid(dataLen))
  ------------------
  |  Branch (244:11): [True: 1.67k, False: 18]
  ------------------
  245|  1.69k|			           ? new DoIpVehicleIdentificationRequestWithEID(data, dataLen, prevLayer, packet)
  246|  1.69k|			           : nullptr;
  247|  1.62k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN:
  ------------------
  |  Branch (247:3): [True: 1.62k, False: 46.8k]
  ------------------
  248|  1.62k|			return (DoIpVehicleIdentificationRequestWithVIN::isDataLenValid(dataLen))
  ------------------
  |  Branch (248:11): [True: 1.62k, False: 0]
  ------------------
  249|  1.62k|			           ? new DoIpVehicleIdentificationRequestWithVIN(data, dataLen, prevLayer, packet)
  250|  1.62k|			           : nullptr;
  251|  1.80k|		case DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE:
  ------------------
  |  Branch (251:3): [True: 1.80k, False: 46.6k]
  ------------------
  252|  1.80k|			return (DoIpVehicleAnnouncementMessage::isDataLenValid(dataLen))
  ------------------
  |  Branch (252:11): [True: 1.80k, False: 0]
  ------------------
  253|  1.80k|			           ? new DoIpVehicleAnnouncementMessage(data, dataLen, prevLayer, packet)
  254|  1.80k|			           : nullptr;
  255|  2.22k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST:
  ------------------
  |  Branch (255:3): [True: 2.22k, False: 46.2k]
  ------------------
  256|  2.22k|			return (DoIpRoutingActivationRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (256:11): [True: 2.22k, False: 0]
  ------------------
  257|  2.22k|			           ? new DoIpRoutingActivationRequest(data, dataLen, prevLayer, packet)
  258|  2.22k|			           : nullptr;
  259|  1.68k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE:
  ------------------
  |  Branch (259:3): [True: 1.68k, False: 46.8k]
  ------------------
  260|  1.68k|			return (DoIpRoutingActivationResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (260:11): [True: 1.68k, False: 0]
  ------------------
  261|  1.68k|			           ? new DoIpRoutingActivationResponse(data, dataLen, prevLayer, packet)
  262|  1.68k|			           : nullptr;
  263|  4.94k|		case DoIpPayloadTypes::ALIVE_CHECK_REQUEST:
  ------------------
  |  Branch (263:3): [True: 4.94k, False: 43.5k]
  ------------------
  264|  4.94k|			return (DoIpAliveCheckRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (264:11): [True: 4.94k, False: 0]
  ------------------
  265|  4.94k|			           ? new DoIpAliveCheckRequest(data, dataLen, prevLayer, packet)
  266|  4.94k|			           : nullptr;
  267|  2.89k|		case DoIpPayloadTypes::ALIVE_CHECK_RESPONSE:
  ------------------
  |  Branch (267:3): [True: 2.89k, False: 45.6k]
  ------------------
  268|  2.89k|			return (DoIpAliveCheckResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (268:11): [True: 2.89k, False: 0]
  ------------------
  269|  2.89k|			           ? new DoIpAliveCheckResponse(data, dataLen, prevLayer, packet)
  270|  2.89k|			           : nullptr;
  271|  3.93k|		case DoIpPayloadTypes::ENTITY_STATUS_REQUEST:
  ------------------
  |  Branch (271:3): [True: 3.93k, False: 44.5k]
  ------------------
  272|  3.93k|			return (DoIpEntityStatusRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (272:11): [True: 3.80k, False: 132]
  ------------------
  273|  3.93k|			           ? new DoIpEntityStatusRequest(data, dataLen, prevLayer, packet)
  274|  3.93k|			           : nullptr;
  275|  5.20k|		case DoIpPayloadTypes::ENTITY_STATUS_RESPONSE:
  ------------------
  |  Branch (275:3): [True: 5.20k, False: 43.2k]
  ------------------
  276|  5.20k|			return (DoIpEntityStatusResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (276:11): [True: 5.20k, False: 0]
  ------------------
  277|  5.20k|			           ? new DoIpEntityStatusResponse(data, dataLen, prevLayer, packet)
  278|  5.20k|			           : nullptr;
  279|  3.46k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST:
  ------------------
  |  Branch (279:3): [True: 3.46k, False: 45.0k]
  ------------------
  280|  3.46k|			return (DoIpDiagnosticPowerModeRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (280:11): [True: 3.46k, False: 0]
  ------------------
  281|  3.46k|			           ? new DoIpDiagnosticPowerModeRequest(data, dataLen, prevLayer, packet)
  282|  3.46k|			           : nullptr;
  283|  1.38k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE:
  ------------------
  |  Branch (283:3): [True: 1.38k, False: 47.1k]
  ------------------
  284|  1.38k|			return (DoIpDiagnosticPowerModeResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (284:11): [True: 1.38k, False: 0]
  ------------------
  285|  1.38k|			           ? new DoIpDiagnosticPowerModeResponse(data, dataLen, prevLayer, packet)
  286|  1.38k|			           : nullptr;
  287|  5.53k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE:
  ------------------
  |  Branch (287:3): [True: 5.53k, False: 42.9k]
  ------------------
  288|  5.53k|			return (DoIpDiagnosticMessage::isDataLenValid(dataLen))
  ------------------
  |  Branch (288:11): [True: 5.53k, False: 0]
  ------------------
  289|  5.53k|			           ? new DoIpDiagnosticMessage(data, dataLen, prevLayer, packet)
  290|  5.53k|			           : nullptr;
  291|    680|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK:
  ------------------
  |  Branch (291:3): [True: 680, False: 47.8k]
  ------------------
  292|    680|			return (DoIpDiagnosticMessageAck::isDataLenValid(dataLen))
  ------------------
  |  Branch (292:11): [True: 680, False: 0]
  ------------------
  293|    680|			           ? new DoIpDiagnosticMessageAck(data, dataLen, prevLayer, packet)
  294|    680|			           : nullptr;
  295|    900|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK:
  ------------------
  |  Branch (295:3): [True: 900, False: 47.5k]
  ------------------
  296|    900|			return (DoIpDiagnosticMessageNack::isDataLenValid(dataLen))
  ------------------
  |  Branch (296:11): [True: 900, False: 0]
  ------------------
  297|    900|			           ? new DoIpDiagnosticMessageNack(data, dataLen, prevLayer, packet)
  298|    900|			           : nullptr;
  299|      0|		default:
  ------------------
  |  Branch (299:3): [True: 0, False: 48.4k]
  ------------------
  300|      0|			return nullptr;
  301|  48.4k|		}
  302|  48.4k|	}
_ZNK4pcpp9DoIpLayer19getPayloadTypeAsStrEv:
  354|  17.6k|	{
  355|  17.6k|		auto it = DoIpEnumToStringPayloadType.find(getPayloadType());
  356|  17.6k|		return (it != DoIpEnumToStringPayloadType.end()) ? it->second : "Unknown Payload Type";
  ------------------
  |  Branch (356:10): [True: 17.6k, False: 0]
  ------------------
  357|  17.6k|	}
_ZNK4pcpp9DoIpLayer8toStringEv:
  370|  17.6k|	{
  371|  17.6k|		std::ostringstream oss;
  372|  17.6k|		oss << "DoIP Layer, " << getPayloadTypeAsStr() << " (0x" << std::hex << std::setw(4) << std::setfill('0')
  373|  17.6k|		    << static_cast<uint16_t>(getPayloadType()) << ")";
  374|  17.6k|		return oss.str();
  375|  17.6k|	}
_ZN4pcpp9DoIpLayer14parseNextLayerEv:
  386|  48.3k|	{
  387|  48.3k|		if (getPayloadType() == DoIpPayloadTypes::DIAGNOSTIC_MESSAGE)
  ------------------
  |  Branch (387:7): [True: 5.53k, False: 42.8k]
  ------------------
  388|  5.53k|		{
  389|  5.53k|			size_t headerLen = getHeaderLen();
  390|       |
  391|  5.53k|			if (m_DataLen <= headerLen)
  ------------------
  |  Branch (391:8): [True: 0, False: 5.53k]
  ------------------
  392|      0|			{
  393|      0|				return;
  394|      0|			}
  395|       |
  396|  5.53k|			uint8_t* payload = m_Data + headerLen;
  397|  5.53k|			size_t payloadLen = m_DataLen - headerLen;
  398|       |
  399|  5.53k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  400|  5.53k|		}
  401|  48.3k|	}
_ZN4pcpp21DoIpGenericHeaderNackC2EPhmPNS_5LayerEPNS_6PacketE:
  407|  6.91k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  408|  6.91k|	{}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithEIDC2EPhmPNS_5LayerEPNS_6PacketE:
  454|  1.67k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  455|  1.67k|	{}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithVINC2EPhmPNS_5LayerEPNS_6PacketE:
  487|  1.62k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  488|  1.62k|	{}
_ZN4pcpp30DoIpVehicleAnnouncementMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  520|  1.80k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  521|  1.80k|	{}
_ZN4pcpp28DoIpRoutingActivationRequestC2EPhmPNS_5LayerEPNS_6PacketE:
  660|  2.22k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  661|  2.22k|	{}
_ZN4pcpp29DoIpRoutingActivationResponseC2EPhmPNS_5LayerEPNS_6PacketE:
  775|  1.68k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  776|  1.68k|	{}
_ZN4pcpp22DoIpAliveCheckResponseC2EPhmPNS_5LayerEPNS_6PacketE:
  905|  2.89k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  906|  2.89k|	{}
_ZN4pcpp24DoIpEntityStatusResponseC2EPhmPNS_5LayerEPNS_6PacketE:
  943|  5.20k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  944|  5.20k|	{}
_ZN4pcpp31DoIpDiagnosticPowerModeResponseC2EPhmPNS_5LayerEPNS_6PacketE:
 1059|  1.38k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
 1060|  1.38k|	{}
_ZN4pcpp18DoIpDiagnosticBaseC2EPhmPNS_5LayerEPNS_6PacketE:
 1098|  7.11k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
 1099|  7.11k|	{}
_ZN4pcpp21DoIpDiagnosticMessageC2EPhmPNS_5LayerEPNS_6PacketE:
 1125|  5.53k|	    : DoIpDiagnosticBase(data, dataLen, prevLayer, packet)
 1126|  5.53k|	{}
_ZN4pcpp33DoIpDiagnosticResponseMessageBaseC2EPhmPNS_5LayerEPNS_6PacketE:
 1177|  1.58k|	    : DoIpDiagnosticBase(data, dataLen, prevLayer, packet)
 1178|  1.58k|	{}
_ZN4pcpp24DoIpDiagnosticMessageAckC2EPhmPNS_5LayerEPNS_6PacketE:
 1247|    680|	    : DoIpDiagnosticResponseMessageBase(data, dataLen, prevLayer, packet)
 1248|    680|	{}
_ZN4pcpp25DoIpDiagnosticMessageNackC2EPhmPNS_5LayerEPNS_6PacketE:
 1290|    900|	    : DoIpDiagnosticResponseMessageBase(data, dataLen, prevLayer, packet)
 1291|    900|	{}

_ZN4pcpp12EthDot3Layer14parseNextLayerEv:
   25|  3.14k|	{
   26|  3.14k|		if (m_DataLen <= sizeof(ether_dot3_header))
  ------------------
  |  Branch (26:7): [True: 378, False: 2.76k]
  ------------------
   27|    378|			return;
   28|       |
   29|  2.76k|		uint8_t* payload = m_Data + sizeof(ether_dot3_header);
   30|  2.76k|		size_t payloadLen = m_DataLen - sizeof(ether_dot3_header);
   31|       |
   32|  2.76k|		tryConstructNextLayerWithFallback<LLCLayer, PayloadLayer>(payload, payloadLen);
   33|  2.76k|	}
_ZNK4pcpp12EthDot3Layer8toStringEv:
   36|  1.99k|	{
   37|  1.99k|		return "IEEE 802.3 Ethernet, Src: " + getSourceMac().toString() + ", Dst: " + getDestMac().toString();
   38|  1.99k|	}
_ZN4pcpp12EthDot3Layer11isDataValidEPKhm:
   41|  3.15k|	{
   42|  3.15k|		if (dataLen >= sizeof(ether_dot3_header))
  ------------------
  |  Branch (42:7): [True: 3.14k, False: 16]
  ------------------
   43|  3.14k|		{
   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.14k|			return be16toh(*reinterpret_cast<const uint16_t*>(data + 12)) <= static_cast<uint16_t>(0x05DC);
   51|  3.14k|		}
   52|     16|		else
   53|     16|		{
   54|     16|			return false;
   55|     16|		}
   56|  3.15k|	}

_ZN4pcpp8EthLayer14parseNextLayerEv:
   31|   815k|	{
   32|   815k|		if (m_DataLen <= sizeof(ether_header))
  ------------------
  |  Branch (32:7): [True: 456, False: 815k]
  ------------------
   33|    456|			return;
   34|       |
   35|   815k|		ether_header* hdr = getEthHeader();
   36|   815k|		uint8_t* payload = m_Data + sizeof(ether_header);
   37|   815k|		size_t payloadLen = m_DataLen - sizeof(ether_header);
   38|       |
   39|   815k|		switch (be16toh(hdr->etherType))
  ------------------
  |  Branch (39:11): [True: 811k, False: 3.28k]
  ------------------
   40|   815k|		{
   41|   615k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|   615k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (41:3): [True: 615k, False: 199k]
  ------------------
   42|   615k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   43|   615k|			break;
   44|  52.5k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|  52.5k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (44:3): [True: 52.5k, False: 762k]
  ------------------
   45|  52.5k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   46|  52.5k|			break;
   47|  3.39k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   33|  3.39k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (47:3): [True: 3.39k, False: 811k]
  ------------------
   48|  3.39k|			tryConstructNextLayerWithFallback<ArpLayer, PayloadLayer>(payload, payloadLen);
   49|  3.39k|			break;
   50|   140k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|   140k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (50:3): [True: 140k, False: 674k]
  ------------------
   51|   140k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   61|   140k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (51:3): [True: 0, False: 815k]
  ------------------
   52|   140k|			tryConstructNextLayerWithFallback<VlanLayer, PayloadLayer>(payload, payloadLen);
   53|   140k|			break;
   54|      4|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   53|      4|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (54:3): [True: 4, False: 815k]
  ------------------
   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: 815k]
  ------------------
   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: 815k]
  ------------------
   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: 815k]
  ------------------
   64|      0|			tryConstructNextLayerWithFallback<WakeOnLanLayer, PayloadLayer>(payload, payloadLen);
   65|      0|			break;
   66|   815k|		}
   67|       |
   68|       |		// If no next layer was constructed, assume it's a payload layer
   69|   815k|		if (!hasNextLayer())
  ------------------
  |  Branch (69:7): [True: 3.28k, False: 811k]
  ------------------
   70|  3.28k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   71|   815k|	}
_ZN4pcpp8EthLayer22computeCalculateFieldsEv:
   74|   148k|	{
   75|   148k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (75:7): [True: 228, False: 148k]
  ------------------
   76|    228|			return;
   77|       |
   78|   148k|		switch (m_NextLayer->getProtocol())
   79|   148k|		{
   80|   118k|		case IPv4:
  ------------------
  |  Branch (80:3): [True: 118k, False: 30.1k]
  ------------------
   81|   118k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_IP);
   82|   118k|			break;
   83|  10.6k|		case IPv6:
  ------------------
  |  Branch (83:3): [True: 10.6k, False: 137k]
  ------------------
   84|  10.6k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_IPV6);
   85|  10.6k|			break;
   86|  1.10k|		case ARP:
  ------------------
  |  Branch (86:3): [True: 1.10k, False: 147k]
  ------------------
   87|  1.10k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_ARP);
   88|  1.10k|			break;
   89|  16.6k|		case VLAN:
  ------------------
  |  Branch (89:3): [True: 16.6k, False: 131k]
  ------------------
   90|  16.6k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_VLAN);
   91|  16.6k|			break;
   92|  1.77k|		default:
  ------------------
  |  Branch (92:3): [True: 1.77k, False: 146k]
  ------------------
   93|  1.77k|			return;
   94|   148k|		}
   95|   148k|	}
_ZNK4pcpp8EthLayer8toStringEv:
   98|   297k|	{
   99|   297k|		return "Ethernet II Layer, Src: " + getSourceMac().toString() + ", Dst: " + getDestMac().toString();
  100|   297k|	}
_ZN4pcpp8EthLayer11isDataValidEPKhm:
  103|   818k|	{
  104|   818k|		if (dataLen >= sizeof(ether_header))
  ------------------
  |  Branch (104:7): [True: 818k, False: 16]
  ------------------
  105|   818k|		{
  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|   818k|			return be16toh(*reinterpret_cast<const uint16_t*>(data + 12)) >= static_cast<uint16_t>(0x0600);
  114|   818k|		}
  115|     16|		else
  116|     16|		{
  117|     16|			return false;
  118|     16|		}
  119|   818k|	}

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

_ZN4pcpp8GreLayer13getGREVersionEPhm:
   24|  82.1k|	{
   25|  82.1k|		if (greDataLen < sizeof(gre_basic_header))
  ------------------
  |  Branch (25:7): [True: 0, False: 82.1k]
  ------------------
   26|      0|			return UnknownProtocol;
   27|       |
   28|  82.1k|		uint8_t version = *(greData + 1);
   29|  82.1k|		version &= 0x07;
   30|  82.1k|		if (version == 0)
  ------------------
  |  Branch (30:7): [True: 9.55k, False: 72.5k]
  ------------------
   31|  9.55k|			return GREv0;
   32|  72.5k|		else if (version == 1)
  ------------------
  |  Branch (32:12): [True: 72.3k, False: 176]
  ------------------
   33|  72.3k|			return GREv1;
   34|    176|		else
   35|    176|			return UnknownProtocol;
   36|  82.1k|	}
_ZNK4pcpp8GreLayer13getFieldValueENS0_8GreFieldEb:
   39|  17.8k|	{
   40|  17.8k|		uint8_t* ptr = m_Data + sizeof(gre_basic_header);
   41|       |
   42|  17.8k|		auto* header = reinterpret_cast<gre_basic_header*>(m_Data);
   43|       |
   44|  17.8k|		constexpr int numGreField = 4;
   45|  45.1k|		for (int curFieldAsInt = static_cast<int>(GreChecksumOrRouting); curFieldAsInt < numGreField; ++curFieldAsInt)
  ------------------
  |  Branch (45:68): [True: 45.1k, False: 0]
  ------------------
   46|  45.1k|		{
   47|  45.1k|			const GreField curField = static_cast<GreField>(curFieldAsInt);
   48|  45.1k|			bool curFieldExists = false;
   49|       |
   50|  45.1k|			uint8_t* origPtr = ptr;
   51|       |
   52|  45.1k|			switch (curField)
   53|  45.1k|			{
   54|  17.8k|			case GreChecksumOrRouting:
  ------------------
  |  Branch (54:4): [True: 17.8k, False: 27.3k]
  ------------------
   55|  17.8k|				if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (55:9): [True: 8.40k, False: 9.46k]
  |  Branch (55:37): [True: 529, False: 8.93k]
  ------------------
   56|  8.93k|				{
   57|  8.93k|					curFieldExists = true;
   58|  8.93k|					ptr += sizeof(uint32_t);
   59|  8.93k|				}
   60|  17.8k|				break;
   61|  11.8k|			case GreKey:
  ------------------
  |  Branch (61:4): [True: 11.8k, False: 33.2k]
  ------------------
   62|  11.8k|				if (header->keyBit == 1)
  ------------------
  |  Branch (62:9): [True: 10.2k, False: 1.65k]
  ------------------
   63|  10.2k|				{
   64|  10.2k|					curFieldExists = true;
   65|  10.2k|					ptr += sizeof(uint32_t);
   66|  10.2k|				}
   67|  11.8k|				break;
   68|  11.4k|			case GreSeq:
  ------------------
  |  Branch (68:4): [True: 11.4k, False: 33.7k]
  ------------------
   69|  11.4k|				if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (69:9): [True: 10.6k, False: 829]
  ------------------
   70|  10.6k|				{
   71|  10.6k|					curFieldExists = true;
   72|  10.6k|					ptr += sizeof(uint32_t);
   73|  10.6k|				}
   74|  11.4k|				break;
   75|  3.96k|			case GreAck:
  ------------------
  |  Branch (75:4): [True: 3.96k, False: 41.1k]
  ------------------
   76|  3.96k|				if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (76:9): [True: 3.96k, False: 0]
  ------------------
   77|  3.96k|				{
   78|  3.96k|					curFieldExists = true;
   79|  3.96k|					ptr += sizeof(uint32_t);
   80|  3.96k|				}
   81|  3.96k|				break;
   82|      0|			default:  // shouldn't get there
  ------------------
  |  Branch (82:4): [True: 0, False: 45.1k]
  ------------------
   83|      0|				return nullptr;
   84|  45.1k|			}
   85|       |
   86|  45.1k|			if (field == curField)
  ------------------
  |  Branch (86:8): [True: 17.8k, False: 27.3k]
  ------------------
   87|  17.8k|			{
   88|  17.8k|				if (curFieldExists || returnOffsetEvenIfFieldMissing)
  ------------------
  |  Branch (88:9): [True: 17.8k, False: 0]
  |  Branch (88:27): [True: 0, False: 0]
  ------------------
   89|  17.8k|					return origPtr;
   90|       |
   91|      0|				return nullptr;
   92|  17.8k|			}
   93|  45.1k|		}  // for
   94|       |
   95|      0|		return nullptr;
   96|  17.8k|	}
_ZN4pcpp8GreLayer27computeCalculateFieldsInnerEv:
   99|  9.10k|	{
  100|  9.10k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  101|  9.10k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (101:7): [True: 9.06k, False: 48]
  ------------------
  102|  9.06k|		{
  103|  9.06k|			switch (m_NextLayer->getProtocol())
  104|  9.06k|			{
  105|     16|			case IPv4:
  ------------------
  |  Branch (105:4): [True: 16, False: 9.04k]
  ------------------
  106|     16|				header->protocol = htobe16(PCPP_ETHERTYPE_IP);
  107|     16|				break;
  108|      0|			case IPv6:
  ------------------
  |  Branch (108:4): [True: 0, False: 9.06k]
  ------------------
  109|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_IPV6);
  110|      0|				break;
  111|      0|			case VLAN:
  ------------------
  |  Branch (111:4): [True: 0, False: 9.06k]
  ------------------
  112|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_VLAN);
  113|      0|				break;
  114|     15|			case MPLS:
  ------------------
  |  Branch (114:4): [True: 15, False: 9.04k]
  ------------------
  115|     15|				header->protocol = htobe16(PCPP_ETHERTYPE_MPLS);
  116|     15|				break;
  117|  5.82k|			case PPP_PPTP:
  ------------------
  |  Branch (117:4): [True: 5.82k, False: 3.23k]
  ------------------
  118|  5.82k|				header->protocol = htobe16(PCPP_ETHERTYPE_PPP);
  119|  5.82k|				break;
  120|      0|			case Ethernet:
  ------------------
  |  Branch (120:4): [True: 0, False: 9.06k]
  ------------------
  121|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_ETHBRIDGE);
  122|      0|				break;
  123|  3.20k|			default:
  ------------------
  |  Branch (123:4): [True: 3.20k, False: 5.85k]
  ------------------
  124|  3.20k|				break;
  125|  9.06k|			}
  126|  9.06k|		}
  127|  9.10k|	}
_ZNK4pcpp8GreLayer17getSequenceNumberERj:
  130|  9.10k|	{
  131|  9.10k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  132|       |
  133|  9.10k|		if (header->sequenceNumBit == 0)
  ------------------
  |  Branch (133:7): [True: 1.62k, False: 7.48k]
  ------------------
  134|  1.62k|			return false;
  135|       |
  136|  7.48k|		uint32_t* val = (uint32_t*)getFieldValue(GreSeq, false);
  137|  7.48k|		if (val == nullptr)
  ------------------
  |  Branch (137:7): [True: 0, False: 7.48k]
  ------------------
  138|      0|			return false;
  139|       |
  140|  7.48k|		seqNumber = be32toh(*val);
  141|  7.48k|		return true;
  142|  7.48k|	}
_ZN4pcpp8GreLayer14parseNextLayerEv:
  196|  81.9k|	{
  197|  81.9k|		size_t headerLen = getHeaderLen();
  198|  81.9k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (198:7): [True: 2.02k, False: 79.9k]
  ------------------
  199|  2.02k|			return;
  200|       |
  201|  79.9k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  202|  79.9k|		uint8_t* payload = m_Data + headerLen;
  203|  79.9k|		size_t payloadLen = m_DataLen - headerLen;
  204|       |
  205|  79.9k|		switch (be16toh(header->protocol))
  206|  79.9k|		{
  207|  1.01k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|  1.01k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (207:3): [True: 1.01k, False: 78.8k]
  ------------------
  208|  1.01k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  209|  1.01k|			break;
  210|      0|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|      0|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (210:3): [True: 0, False: 79.9k]
  ------------------
  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: 79.9k]
  ------------------
  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: 79.7k]
  ------------------
  217|    120|			constructNextLayer<MplsLayer>(payload, payloadLen);
  218|    120|			break;
  219|  65.2k|		case PCPP_ETHERTYPE_PPP:
  ------------------
  |  |   57|  65.2k|#define PCPP_ETHERTYPE_PPP 0x880B
  ------------------
  |  Branch (219:3): [True: 65.2k, False: 14.6k]
  ------------------
  220|  65.2k|			tryConstructNextLayerWithFallback<PPP_PPTPLayer, PayloadLayer>(payload, payloadLen);
  221|  65.2k|			break;
  222|      0|		case PCPP_ETHERTYPE_ETHBRIDGE:
  ------------------
  |  |   35|      0|#define PCPP_ETHERTYPE_ETHBRIDGE 0x6558
  ------------------
  |  Branch (222:3): [True: 0, False: 79.9k]
  ------------------
  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.5k|		default:
  ------------------
  |  Branch (232:3): [True: 13.5k, False: 66.3k]
  ------------------
  233|  13.5k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  234|  79.9k|		}
  235|  79.9k|	}
_ZNK4pcpp8GreLayer12getHeaderLenEv:
  238|  99.5k|	{
  239|  99.5k|		size_t result = sizeof(gre_basic_header);
  240|       |
  241|  99.5k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  242|       |
  243|  99.5k|		if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (243:7): [True: 15.0k, False: 84.4k]
  |  Branch (243:35): [True: 2.07k, False: 82.3k]
  ------------------
  244|  17.1k|			result += 4;
  245|  99.5k|		if (header->keyBit == 1)
  ------------------
  |  Branch (245:7): [True: 86.8k, False: 12.6k]
  ------------------
  246|  86.8k|			result += 4;
  247|  99.5k|		if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (247:7): [True: 88.4k, False: 11.0k]
  ------------------
  248|  88.4k|			result += 4;
  249|  99.5k|		if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (249:7): [True: 43.0k, False: 56.4k]
  ------------------
  250|  43.0k|			result += 4;
  251|       |
  252|  99.5k|		return result;
  253|  99.5k|	}
_ZN4pcpp10GREv0Layer11getChecksumERt:
  269|  1.87k|	{
  270|  1.87k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (270:7): [True: 315, False: 1.55k]
  ------------------
  271|    315|			return false;
  272|       |
  273|  1.55k|		uint16_t* val = (uint16_t*)getFieldValue(GreChecksumOrRouting, false);
  274|  1.55k|		if (val == nullptr)
  ------------------
  |  Branch (274:7): [True: 0, False: 1.55k]
  ------------------
  275|      0|			return false;
  276|       |
  277|  1.55k|		checksum = be16toh(*val);
  278|  1.55k|		return true;
  279|  1.55k|	}
_ZN4pcpp10GREv0Layer11setChecksumEt:
  282|  3.11k|	{
  283|  3.11k|		gre_basic_header* header = getGreHeader();
  284|       |
  285|  3.11k|		bool needToExtendLayer = false;
  286|       |
  287|  3.11k|		if (header->routingBit == 0 && header->checksumBit == 0)
  ------------------
  |  Branch (287:7): [True: 740, False: 2.37k]
  |  Branch (287:34): [True: 0, False: 740]
  ------------------
  288|      0|			needToExtendLayer = true;
  289|       |
  290|  3.11k|		uint8_t* offsetPtr = getFieldValue(GreChecksumOrRouting, true);
  291|  3.11k|		int offset = offsetPtr - m_Data;
  292|       |		// extend layer in 4 bytes to keep 4-byte alignment
  293|  3.11k|		if (needToExtendLayer && !extendLayer(offset, sizeof(uint32_t)))
  ------------------
  |  Branch (293:7): [True: 0, False: 3.11k]
  |  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.11k|		uint16_t* checksumPtr = (uint16_t*)(m_Data + offset);
  300|  3.11k|		*checksumPtr = htobe16(checksum);
  301|       |
  302|       |		// if layer was extended in 4 bytes, make sure the offset field stays 0
  303|  3.11k|		if (needToExtendLayer)
  ------------------
  |  Branch (303:7): [True: 0, False: 3.11k]
  ------------------
  304|      0|		{
  305|      0|			checksumPtr++;
  306|      0|			*checksumPtr = 0;
  307|      0|		}
  308|       |
  309|  3.11k|		header = getGreHeader();
  310|  3.11k|		header->checksumBit = 1;
  311|       |
  312|  3.11k|		return true;
  313|  3.11k|	}
_ZNK4pcpp10GREv0Layer9getOffsetERt:
  349|  1.87k|	{
  350|  1.87k|		if (getGreHeader()->routingBit == 0)
  ------------------
  |  Branch (350:7): [True: 568, False: 1.30k]
  ------------------
  351|    568|			return false;
  352|       |
  353|  1.30k|		uint8_t* val = (uint8_t*)getFieldValue(GreChecksumOrRouting, false);
  354|  1.30k|		if (val == nullptr)
  ------------------
  |  Branch (354:7): [True: 0, False: 1.30k]
  ------------------
  355|      0|			return false;
  356|       |
  357|  1.30k|		offset = be16toh(*(val + 2));
  358|  1.30k|		return true;
  359|  1.30k|	}
_ZNK4pcpp10GREv0Layer6getKeyERj:
  362|  1.87k|	{
  363|  1.87k|		if (getGreHeader()->keyBit == 0)
  ------------------
  |  Branch (363:7): [True: 1.43k, False: 434]
  ------------------
  364|  1.43k|			return false;
  365|       |
  366|    434|		uint32_t* val = (uint32_t*)getFieldValue(GreKey, false);
  367|    434|		if (val == nullptr)
  ------------------
  |  Branch (367:7): [True: 0, False: 434]
  ------------------
  368|      0|			return false;
  369|       |
  370|    434|		key = be32toh(*val);
  371|    434|		return true;
  372|    434|	}
_ZN4pcpp10GREv0Layer22computeCalculateFieldsEv:
  426|  1.87k|	{
  427|  1.87k|		computeCalculateFieldsInner();
  428|       |
  429|  1.87k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (429:7): [True: 315, False: 1.55k]
  ------------------
  430|    315|			return;
  431|       |
  432|       |		// calculate checksum
  433|  1.55k|		setChecksum(0);
  434|       |
  435|  1.55k|		ScalarBuffer<uint16_t> buffer;
  436|  1.55k|		buffer.buffer = (uint16_t*)m_Data;
  437|  1.55k|		buffer.len = m_DataLen;
  438|  1.55k|		size_t checksum = computeChecksum(&buffer, 1);
  439|       |
  440|  1.55k|		setChecksum(checksum);
  441|  1.55k|	}
_ZNK4pcpp10GREv0Layer8toStringEv:
  444|  3.74k|	{
  445|  3.74k|		return "GRE Layer, version 0";
  446|  3.74k|	}
_ZNK4pcpp10GREv1Layer20getAcknowledgmentNumERj:
  467|  7.23k|	{
  468|  7.23k|		if (getGreHeader()->ackSequenceNumBit == 0)
  ------------------
  |  Branch (468:7): [True: 3.26k, False: 3.96k]
  ------------------
  469|  3.26k|			return false;
  470|       |
  471|  3.96k|		uint32_t* val = (uint32_t*)getFieldValue(GreAck, false);
  472|  3.96k|		if (val == nullptr)
  ------------------
  |  Branch (472:7): [True: 0, False: 3.96k]
  ------------------
  473|      0|			return false;
  474|       |
  475|  3.96k|		ackNum = be32toh(*val);
  476|  3.96k|		return true;
  477|  3.96k|	}
_ZN4pcpp10GREv1Layer22computeCalculateFieldsEv:
  528|  7.23k|	{
  529|  7.23k|		computeCalculateFieldsInner();
  530|       |
  531|       |		getGreHeader()->payloadLength = htobe16(m_DataLen - getHeaderLen());
  532|  7.23k|	}
_ZNK4pcpp10GREv1Layer8toStringEv:
  535|  14.4k|	{
  536|  14.4k|		return "GRE Layer, version 1";
  537|  14.4k|	}
_ZN4pcpp13PPP_PPTPLayer14parseNextLayerEv:
  557|  65.2k|	{
  558|  65.2k|		size_t headerLen = getHeaderLen();
  559|  65.2k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (559:7): [True: 0, False: 65.2k]
  ------------------
  560|      0|			return;
  561|       |
  562|  65.2k|		uint8_t* payload = m_Data + headerLen;
  563|  65.2k|		size_t payloadLen = m_DataLen - headerLen;
  564|       |
  565|  65.2k|		switch (be16toh(getPPP_PPTPHeader()->protocol))
  566|  65.2k|		{
  567|  64.9k|		case PCPP_PPP_IP:
  ------------------
  |  |  398|  64.9k|#define PCPP_PPP_IP 0x21
  ------------------
  |  Branch (567:3): [True: 64.9k, False: 330]
  ------------------
  568|  64.9k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  569|  64.9k|			break;
  570|      0|		case PCPP_PPP_IPV6:
  ------------------
  |  |  450|      0|#define PCPP_PPP_IPV6 0x57
  ------------------
  |  Branch (570:3): [True: 0, False: 65.2k]
  ------------------
  571|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  572|      0|			break;
  573|    330|		default:
  ------------------
  |  Branch (573:3): [True: 330, False: 64.9k]
  ------------------
  574|    330|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  575|    330|			break;
  576|  65.2k|		}
  577|  65.2k|	}
_ZN4pcpp13PPP_PPTPLayer22computeCalculateFieldsEv:
  580|  5.82k|	{
  581|  5.82k|		ppp_pptp_header* header = getPPP_PPTPHeader();
  582|  5.82k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (582:7): [True: 5.82k, False: 0]
  ------------------
  583|  5.82k|		{
  584|  5.82k|			switch (m_NextLayer->getProtocol())
  585|  5.82k|			{
  586|  5.75k|			case IPv4:
  ------------------
  |  Branch (586:4): [True: 5.75k, False: 74]
  ------------------
  587|  5.75k|				header->protocol = htobe16(PCPP_PPP_IP);
  588|  5.75k|				break;
  589|      0|			case IPv6:
  ------------------
  |  Branch (589:4): [True: 0, False: 5.82k]
  ------------------
  590|      0|				header->protocol = htobe16(PCPP_PPP_IPV6);
  591|      0|				break;
  592|     74|			default:
  ------------------
  |  Branch (592:4): [True: 74, False: 5.75k]
  ------------------
  593|     74|				break;
  594|  5.82k|			}
  595|  5.82k|		}
  596|      0|		else
  597|      0|			header->protocol = 0;
  598|  5.82k|	}

_ZN4pcpp10GtpV1Layer12GtpExtensionC2Ev:
   22|  23.4k|	{
   23|  23.4k|		m_Data = nullptr;
   24|  23.4k|		m_DataLen = 0;
   25|  23.4k|		m_ExtType = 0;
   26|  23.4k|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionC2EPhmh:
   29|  1.50k|	{
   30|  1.50k|		m_Data = data;
   31|  1.50k|		m_DataLen = dataLen;
   32|  1.50k|		m_ExtType = type;
   33|  1.50k|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionaSERKS1_:
   43|    724|	{
   44|    724|		m_Data = other.m_Data;
   45|    724|		m_DataLen = other.m_DataLen;
   46|    724|		m_ExtType = other.m_ExtType;
   47|    724|		return *this;
   48|    724|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension6isNullEv:
   51|  15.6k|	{
   52|  15.6k|		return m_Data == nullptr;
   53|  15.6k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getExtensionTypeEv:
   56|  4.66k|	{
   57|  4.66k|		return m_ExtType;
   58|  4.66k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension14getTotalLengthEv:
   61|  14.5k|	{
   62|  14.5k|		if (m_Data == nullptr)
  ------------------
  |  Branch (62:7): [True: 7.76k, False: 6.74k]
  ------------------
   63|  7.76k|		{
   64|  7.76k|			return 0;
   65|  7.76k|		}
   66|       |
   67|  6.74k|		size_t len = (size_t)(m_Data[0] * 4);
   68|  6.74k|		if (len <= m_DataLen)
  ------------------
  |  Branch (68:7): [True: 192, False: 6.55k]
  ------------------
   69|    192|		{
   70|    192|			return len;
   71|    192|		}
   72|       |
   73|  6.55k|		return m_DataLen;
   74|  6.74k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getContentLengthEv:
   77|  6.89k|	{
   78|  6.89k|		size_t res = getTotalLength();
   79|       |
   80|  6.89k|		if (res >= 2 * sizeof(uint8_t))
  ------------------
  |  Branch (80:7): [True: 2.91k, False: 3.97k]
  ------------------
   81|  2.91k|		{
   82|  2.91k|			return (size_t)(res - 2 * sizeof(uint8_t));
   83|  2.91k|		}
   84|       |
   85|  3.97k|		return 0;
   86|  6.89k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension10getContentEv:
   89|  4.66k|	{
   90|  4.66k|		if (m_Data == nullptr || getContentLength() == 0)
  ------------------
  |  Branch (90:7): [True: 3.88k, False: 779]
  |  Branch (90:28): [True: 48, False: 731]
  ------------------
   91|  3.92k|		{
   92|  3.92k|			return nullptr;
   93|  3.92k|		}
   94|       |
   95|    731|		return m_Data + sizeof(uint8_t);
   96|  4.66k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension26getNextExtensionHeaderTypeEv:
   99|  5.38k|	{
  100|  5.38k|		if (m_Data == nullptr || getTotalLength() < 4)
  ------------------
  |  Branch (100:7): [True: 3.88k, False: 1.50k]
  |  Branch (100:28): [True: 48, False: 1.45k]
  ------------------
  101|  3.92k|		{
  102|  3.92k|			return 0;
  103|  3.92k|		}
  104|       |
  105|  1.45k|		uint8_t res = *(uint8_t*)(m_Data + sizeof(uint8_t) + getContentLength());
  106|       |
  107|  1.45k|		return res;
  108|  5.38k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getNextExtensionEv:
  111|  5.38k|	{
  112|  5.38k|		size_t totalLength = getTotalLength();
  113|  5.38k|		uint8_t nextExtType = getNextExtensionHeaderType();
  114|  5.38k|		if (nextExtType > 0 && m_DataLen > totalLength + sizeof(uint8_t))
  ------------------
  |  Branch (114:7): [True: 1.42k, False: 3.96k]
  |  Branch (114:26): [True: 0, False: 1.42k]
  ------------------
  115|      0|		{
  116|      0|			return { m_Data + totalLength, m_DataLen - totalLength, nextExtType };
  117|      0|		}
  118|  5.38k|		else
  119|  5.38k|		{
  120|  5.38k|			return {};
  121|  5.38k|		}
  122|  5.38k|	}
_ZN4pcpp10GtpV1Layer7isGTPv1EPKhm:
  202|  32.9k|	{
  203|  32.9k|		if (data != nullptr && dataSize >= sizeof(gtpv1_header) && (data[0] & 0xE0) == 0x20)
  ------------------
  |  Branch (203:7): [True: 32.9k, False: 0]
  |  Branch (203:26): [True: 32.9k, False: 0]
  |  Branch (203:62): [True: 32.7k, False: 154]
  ------------------
  204|  32.7k|		{
  205|  32.7k|			return true;
  206|  32.7k|		}
  207|       |
  208|    154|		return false;
  209|  32.9k|	}
_ZNK4pcpp10GtpV1Layer14getHeaderExtraEv:
  212|  54.7k|	{
  213|  54.7k|		if (m_Data != nullptr && m_DataLen >= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (213:7): [True: 54.7k, False: 0]
  |  Branch (213:28): [True: 54.2k, False: 499]
  ------------------
  214|  54.2k|		{
  215|  54.2k|			return (gtpv1_header_extra*)(m_Data + sizeof(gtpv1_header));
  216|  54.2k|		}
  217|       |
  218|    499|		return nullptr;
  219|  54.7k|	}
_ZNK4pcpp10GtpV1Layer17getSequenceNumberERt:
  222|  4.66k|	{
  223|  4.66k|		gtpv1_header* header = getHeader();
  224|  4.66k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  225|  4.66k|		if (header != nullptr && headerExtra != nullptr && header->sequenceNumberFlag == 1)
  ------------------
  |  Branch (225:7): [True: 4.66k, False: 0]
  |  Branch (225:28): [True: 4.53k, False: 122]
  |  Branch (225:54): [True: 2.11k, False: 2.42k]
  ------------------
  226|  2.11k|		{
  227|  2.11k|			seqNumber = be16toh(headerExtra->sequenceNumber);
  228|  2.11k|			return true;
  229|  2.11k|		}
  230|       |
  231|  2.54k|		return false;
  232|  4.66k|	}
_ZNK4pcpp10GtpV1Layer13getNpduNumberERh:
  274|  4.66k|	{
  275|  4.66k|		gtpv1_header* header = getHeader();
  276|  4.66k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  277|  4.66k|		if (header != nullptr && headerExtra != nullptr && header->npduNumberFlag == 1)
  ------------------
  |  Branch (277:7): [True: 4.66k, False: 0]
  |  Branch (277:28): [True: 4.53k, False: 122]
  |  Branch (277:54): [True: 1.36k, False: 3.16k]
  ------------------
  278|  1.36k|		{
  279|  1.36k|			npduNum = headerExtra->npduNumber;
  280|  1.36k|			return true;
  281|  1.36k|		}
  282|       |
  283|  3.29k|		return false;
  284|  4.66k|	}
_ZNK4pcpp10GtpV1Layer26getNextExtensionHeaderTypeERh:
  326|  19.6k|	{
  327|  19.6k|		gtpv1_header* header = getHeader();
  328|  19.6k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  329|  19.6k|		if (header != nullptr && headerExtra != nullptr && header->extensionHeaderFlag == 1)
  ------------------
  |  Branch (329:7): [True: 19.6k, False: 0]
  |  Branch (329:28): [True: 19.4k, False: 122]
  |  Branch (329:54): [True: 4.06k, False: 15.4k]
  ------------------
  330|  4.06k|		{
  331|  4.06k|			nextExtType = headerExtra->nextExtensionHeader;
  332|  4.06k|			return true;
  333|  4.06k|		}
  334|       |
  335|  15.5k|		return false;
  336|  19.6k|	}
_ZNK4pcpp10GtpV1Layer16getNextExtensionEv:
  339|  19.6k|	{
  340|  19.6k|		uint8_t nextExtType = 0;
  341|  19.6k|		bool nextExtExists = getNextExtensionHeaderType(nextExtType);
  342|  19.6k|		if (!nextExtExists || nextExtType == 0 || m_DataLen <= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (342:7): [True: 15.5k, False: 4.06k]
  |  Branch (342:25): [True: 2.56k, False: 1.50k]
  |  Branch (342:45): [True: 0, False: 1.50k]
  ------------------
  343|  18.0k|		{
  344|  18.0k|			return {};
  345|  18.0k|		}
  346|       |
  347|  1.50k|		return { m_Data + sizeof(gtpv1_header) + sizeof(gtpv1_header_extra),
  348|  1.50k|			     m_DataLen - sizeof(gtpv1_header) - sizeof(gtpv1_header_extra), nextExtType };
  349|  19.6k|	}
_ZNK4pcpp10GtpV1Layer14getMessageTypeEv:
  430|  4.66k|	{
  431|  4.66k|		gtpv1_header* header = getHeader();
  432|       |
  433|  4.66k|		if (header == nullptr)
  ------------------
  |  Branch (433:7): [True: 0, False: 4.66k]
  ------------------
  434|      0|		{
  435|      0|			return GtpV1_MessageTypeUnknown;
  436|      0|		}
  437|       |
  438|  4.66k|		return (GtpV1MessageType)header->messageType;
  439|  4.66k|	}
_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|  8.33k|	{
  522|  8.33k|		gtpv1_header* header = getHeader();
  523|       |
  524|  8.33k|		if (header == nullptr)
  ------------------
  |  Branch (524:7): [True: 0, False: 8.33k]
  ------------------
  525|      0|		{
  526|      0|			return GTPv1MsgTypeToStringMap.find(0)->second;
  527|      0|		}
  528|       |
  529|  8.33k|		auto iter = GTPv1MsgTypeToStringMap.find(header->messageType);
  530|  8.33k|		if (iter != GTPv1MsgTypeToStringMap.end())
  ------------------
  |  Branch (530:7): [True: 4.75k, False: 3.58k]
  ------------------
  531|  4.75k|		{
  532|  4.75k|			return iter->second;
  533|  4.75k|		}
  534|  3.58k|		else
  535|  3.58k|		{
  536|  3.58k|			return GTPv1MsgTypeToStringMap.find(0)->second;
  537|  3.58k|		}
  538|  8.33k|	}
_ZNK4pcpp10GtpV1Layer13isGTPUMessageEv:
  541|  4.66k|	{
  542|  4.66k|		gtpv1_header* header = getHeader();
  543|  4.66k|		if (header == nullptr)
  ------------------
  |  Branch (543:7): [True: 0, False: 4.66k]
  ------------------
  544|      0|		{
  545|      0|			return false;
  546|      0|		}
  547|       |
  548|  4.66k|		return header->messageType == PCPP_GTP_V1_GPDU_MESSAGE_TYPE;
  ------------------
  |  |   15|  4.66k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  549|  4.66k|	}
_ZNK4pcpp10GtpV1Layer13isGTPCMessageEv:
  552|  4.66k|	{
  553|  4.66k|		gtpv1_header* header = getHeader();
  554|  4.66k|		if (header == nullptr)
  ------------------
  |  Branch (554:7): [True: 0, False: 4.66k]
  ------------------
  555|      0|		{
  556|      0|			return false;
  557|      0|		}
  558|       |
  559|  4.66k|		return header->messageType != PCPP_GTP_V1_GPDU_MESSAGE_TYPE;
  ------------------
  |  |   15|  4.66k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  560|  4.66k|	}
_ZN4pcpp10GtpV1Layer14parseNextLayerEv:
  563|  32.7k|	{
  564|  32.7k|		size_t headerLen = getHeaderLen();
  565|  32.7k|		if (headerLen < sizeof(gtpv1_header))
  ------------------
  |  Branch (565:7): [True: 0, False: 32.7k]
  ------------------
  566|      0|		{
  567|       |			// do nothing
  568|      0|			return;
  569|      0|		}
  570|       |
  571|  32.7k|		gtpv1_header* header = getHeader();
  572|  32.7k|		if (header->messageType != PCPP_GTP_V1_GPDU_MESSAGE_TYPE)
  ------------------
  |  |   15|  32.7k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  |  Branch (572:7): [True: 9.72k, False: 23.0k]
  ------------------
  573|  9.72k|		{
  574|       |			// this is a GTP-C message, hence it is the last layer
  575|  9.72k|			return;
  576|  9.72k|		}
  577|       |
  578|  23.0k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (578:7): [True: 720, False: 22.3k]
  ------------------
  579|    720|		{
  580|       |			// no data beyond headerLen, nothing to parse further
  581|    720|			return;
  582|    720|		}
  583|       |
  584|       |		// GTP-U message, try to parse the next layer
  585|       |
  586|  22.3k|		auto* payload = static_cast<uint8_t*>(m_Data + headerLen);
  587|  22.3k|		size_t payloadLen = m_DataLen - headerLen;
  588|       |
  589|  22.3k|		uint8_t subProto = *payload;
  590|  22.3k|		if (subProto >= 0x45 && subProto <= 0x4e)
  ------------------
  |  Branch (590:7): [True: 22.0k, False: 249]
  |  Branch (590:27): [True: 20.0k, False: 2.05k]
  ------------------
  591|  20.0k|		{
  592|  20.0k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  593|  20.0k|		}
  594|  2.30k|		else if ((subProto & 0xf0) == 0x60)
  ------------------
  |  Branch (594:12): [True: 1.48k, False: 821]
  ------------------
  595|  1.48k|		{
  596|  1.48k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  597|  1.48k|		}
  598|    821|		else
  599|    821|		{
  600|    821|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  601|    821|		}
  602|  22.3k|	}
_ZNK4pcpp10GtpV1Layer12getHeaderLenEv:
  605|  37.4k|	{
  606|  37.4k|		gtpv1_header* header = getHeader();
  607|  37.4k|		if (header == nullptr)
  ------------------
  |  Branch (607:7): [True: 0, False: 37.4k]
  ------------------
  608|      0|		{
  609|      0|			return 0;
  610|      0|		}
  611|       |
  612|  37.4k|		size_t res = sizeof(gtpv1_header);
  613|       |
  614|  37.4k|		if (header->messageType != PCPP_GTP_V1_GPDU_MESSAGE_TYPE)
  ------------------
  |  |   15|  37.4k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  |  Branch (614:7): [True: 11.5k, False: 25.8k]
  ------------------
  615|  11.5k|		{
  616|  11.5k|			size_t msgLen = be16toh(header->messageLength);
  617|  11.5k|			res += (msgLen > m_DataLen - sizeof(gtpv1_header) ? m_DataLen - sizeof(gtpv1_header) : msgLen);
  ------------------
  |  Branch (617:12): [True: 11.0k, False: 516]
  ------------------
  618|  11.5k|		}
  619|  25.8k|		else
  620|  25.8k|		{
  621|  25.8k|			gtpv1_header_extra* headerExtra = getHeaderExtra();
  622|  25.8k|			if (headerExtra != nullptr &&
  ------------------
  |  Branch (622:8): [True: 25.7k, False: 133]
  ------------------
  623|  25.7k|			    (header->extensionHeaderFlag == 1 || header->sequenceNumberFlag == 1 || header->npduNumberFlag == 1))
  ------------------
  |  Branch (623:9): [True: 2.94k, False: 22.7k]
  |  Branch (623:45): [True: 9.86k, False: 12.9k]
  |  Branch (623:80): [True: 2.13k, False: 10.7k]
  ------------------
  624|  14.9k|			{
  625|  14.9k|				res += sizeof(gtpv1_header_extra);
  626|  14.9k|				GtpExtension nextExt = getNextExtension();
  627|  15.6k|				while (!nextExt.isNull())
  ------------------
  |  Branch (627:12): [True: 724, False: 14.9k]
  ------------------
  628|    724|				{
  629|    724|					res += nextExt.getTotalLength();
  630|    724|					nextExt = nextExt.getNextExtension();
  631|    724|				}
  632|  14.9k|			}
  633|  25.8k|		}
  634|       |
  635|  37.4k|		return res;
  636|  37.4k|	}
_ZNK4pcpp10GtpV1Layer8toStringEv:
  639|  9.32k|	{
  640|  9.32k|		std::string res = "GTP v1 Layer";
  641|       |
  642|  9.32k|		gtpv1_header* header = getHeader();
  643|  9.32k|		if (header != nullptr)
  ------------------
  |  Branch (643:7): [True: 9.32k, False: 0]
  ------------------
  644|  9.32k|		{
  645|  9.32k|			std::stringstream teidStream;
  646|  9.32k|			teidStream << be32toh(header->teid);
  647|       |
  648|  9.32k|			std::string gtpu_gtpc;
  649|  9.32k|			if (header->messageType == PCPP_GTP_V1_GPDU_MESSAGE_TYPE)
  ------------------
  |  |   15|  9.32k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  |  Branch (649:8): [True: 5.64k, False: 3.67k]
  ------------------
  650|  5.64k|			{
  651|  5.64k|				gtpu_gtpc = "GTP-U message";
  652|  5.64k|			}
  653|  3.67k|			else
  654|  3.67k|			{
  655|  3.67k|				gtpu_gtpc = "GTP-C message: " + getMessageTypeAsString();
  656|  3.67k|			}
  657|       |
  658|  9.32k|			res += ", " + gtpu_gtpc + ", TEID: " + teidStream.str();
  659|  9.32k|		}
  660|       |
  661|  9.32k|		return res;
  662|  9.32k|	}
_ZN4pcpp10GtpV1Layer22computeCalculateFieldsEv:
  665|  4.66k|	{
  666|  4.66k|		gtpv1_header* hdr = getHeader();
  667|  4.66k|		if (hdr == nullptr)
  ------------------
  |  Branch (667:7): [True: 0, False: 4.66k]
  ------------------
  668|      0|		{
  669|      0|			return;
  670|      0|		}
  671|       |
  672|  4.66k|		hdr->messageLength = htobe16(m_DataLen - sizeof(gtpv1_header));
  673|  4.66k|	}
_ZNK4pcpp20GtpV2MessageTypeHashclERKNS_16GtpV2MessageTypeE:
  682|    164|		{
  683|    164|			return static_cast<uint8_t>(messageType);
  684|    164|		}

_ZN4pcpp16HttpRequestLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   63|  5.55k|	    : HttpMessage(data, dataLen, prevLayer, packet, HTTPRequest)
   64|  5.55k|	{
   65|  5.55k|		m_FirstLine = new HttpRequestFirstLine(this);
   66|  5.55k|		m_FieldsOffset = m_FirstLine->getSize();
   67|  5.55k|		parseFields();
   68|  5.55k|	}
_ZN4pcpp16HttpRequestLayerD2Ev:
  104|  5.55k|	{
  105|  5.55k|		delete m_FirstLine;
  106|  5.55k|	}
_ZNK4pcpp16HttpRequestLayer8toStringEv:
  109|  2.17k|	{
  110|  2.17k|		static const int maxLengthToPrint = 120;
  111|  2.17k|		std::string result = "HTTP request, ";
  112|  2.17k|		int size = m_FirstLine->getSize() - 2;  // the -2 is to remove \r\n at the end of the first line
  113|  2.17k|		if (size <= 0)
  ------------------
  |  Branch (113:7): [True: 0, False: 2.17k]
  ------------------
  114|      0|		{
  115|      0|			result += std::string("CORRUPT DATA");
  116|      0|			return result;
  117|      0|		}
  118|  2.17k|		if (size <= maxLengthToPrint)
  ------------------
  |  Branch (118:7): [True: 1.64k, False: 528]
  ------------------
  119|  1.64k|		{
  120|  1.64k|			char* firstLine = new char[size + 1];
  121|  1.64k|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), size);
  122|  1.64k|			firstLine[size] = 0;
  123|  1.64k|			result += std::string(firstLine);
  124|  1.64k|			delete[] firstLine;
  125|  1.64k|		}
  126|    528|		else
  127|    528|		{
  128|    528|			char firstLine[maxLengthToPrint + 1];
  129|    528|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), maxLengthToPrint - 3);
  130|    528|			firstLine[maxLengthToPrint - 3] = '.';
  131|    528|			firstLine[maxLengthToPrint - 2] = '.';
  132|    528|			firstLine[maxLengthToPrint - 1] = '.';
  133|    528|			firstLine[maxLengthToPrint] = 0;
  134|    528|			result += std::string(firstLine);
  135|    528|		}
  136|       |
  137|  2.17k|		return result;
  138|  2.17k|	}
_ZN4pcpp20HttpRequestFirstLineC2EPNS_16HttpRequestLayerE:
  166|  5.55k|	HttpRequestFirstLine::HttpRequestFirstLine(HttpRequestLayer* httpRequest) : m_HttpRequest(httpRequest)
  167|  5.55k|	{
  168|  5.55k|		m_Method = parseMethod((char*)m_HttpRequest->m_Data, m_HttpRequest->getDataLen());
  169|  5.55k|		if (m_Method == HttpRequestLayer::HttpMethodUnknown)
  ------------------
  |  Branch (169:7): [True: 0, False: 5.55k]
  ------------------
  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.55k|		else
  180|  5.55k|		{
  181|  5.55k|			m_UriOffset = MethodEnumToString[m_Method].length() + 1;
  182|  5.55k|		}
  183|       |
  184|  5.55k|		parseVersion();
  185|  5.55k|		if (m_VersionOffset < 0)
  ------------------
  |  Branch (185:7): [True: 1.09k, False: 4.45k]
  ------------------
  186|  1.09k|		{
  187|  1.09k|			m_IsComplete = false;
  188|  1.09k|			m_FirstLineEndOffset = m_HttpRequest->getDataLen();
  189|  1.09k|			return;
  190|  1.09k|		}
  191|       |
  192|  4.45k|		char* endOfFirstLine;
  193|  4.45k|		if ((endOfFirstLine = (char*)memchr((char*)(m_HttpRequest->m_Data + m_VersionOffset), '\n',
  ------------------
  |  Branch (193:7): [True: 4.45k, False: 0]
  ------------------
  194|  4.45k|		                                    m_HttpRequest->m_DataLen - (size_t)m_VersionOffset)) != nullptr)
  195|  4.45k|		{
  196|  4.45k|			m_FirstLineEndOffset = endOfFirstLine - (char*)m_HttpRequest->m_Data + 1;
  197|  4.45k|			m_IsComplete = true;
  198|  4.45k|		}
  199|      0|		else
  200|      0|		{
  201|      0|			m_FirstLineEndOffset = m_HttpRequest->getDataLen();
  202|      0|			m_IsComplete = false;
  203|      0|		}
  204|       |
  205|  4.45k|		if (Logger::getInstance().isDebugEnabled(PacketLogModuleHttpLayer))
  ------------------
  |  Branch (205:7): [True: 0, False: 4.45k]
  ------------------
  206|      0|		{
  207|      0|			std::string method =
  208|      0|			    m_Method == HttpRequestLayer::HttpMethodUnknown ? "Unknown" : MethodEnumToString[m_Method];
  ------------------
  |  Branch (208:8): [True: 0, False: 0]
  ------------------
  209|      0|			PCPP_LOG_DEBUG("Method='" << method << "'; "
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  210|      0|			                          << "HTTP version='" << VersionEnumToString[m_Version] << "'; "
  211|      0|			                          << "URI='" << getUri() << "'");
  212|      0|		}
  213|  4.45k|	}
_ZN4pcpp20HttpRequestFirstLine11parseMethodEPKcm:
  261|  21.8k|	{
  262|  21.8k|		if (!data || dataLen < 4)
  ------------------
  |  Branch (262:7): [True: 0, False: 21.8k]
  |  Branch (262:16): [True: 1.47k, False: 20.4k]
  ------------------
  263|  1.47k|		{
  264|  1.47k|			return HttpRequestLayer::HttpMethodUnknown;
  265|  1.47k|		}
  266|       |
  267|  20.4k|		size_t spaceIndex = 0;
  268|   539k|		while (spaceIndex < dataLen && data[spaceIndex] != ' ')
  ------------------
  |  Branch (268:10): [True: 537k, False: 2.80k]
  |  Branch (268:34): [True: 519k, False: 17.6k]
  ------------------
  269|   519k|		{
  270|   519k|			spaceIndex++;
  271|   519k|		}
  272|       |
  273|  20.4k|		if (spaceIndex == 0 || spaceIndex == dataLen)
  ------------------
  |  Branch (273:7): [True: 0, False: 20.4k]
  |  Branch (273:26): [True: 2.80k, False: 17.6k]
  ------------------
  274|  2.80k|		{
  275|  2.80k|			return HttpRequestLayer::HttpMethodUnknown;
  276|  2.80k|		}
  277|       |
  278|  17.6k|		auto methodAdEnum = HttpMethodStringToEnum.find(std::string(data, data + spaceIndex));
  279|  17.6k|		if (methodAdEnum == HttpMethodStringToEnum.end())
  ------------------
  |  Branch (279:7): [True: 6.51k, False: 11.1k]
  ------------------
  280|  6.51k|		{
  281|  6.51k|			return HttpRequestLayer::HttpMethodUnknown;
  282|  6.51k|		}
  283|  11.1k|		return methodAdEnum->second;
  284|  17.6k|	}
_ZN4pcpp20HttpRequestFirstLine12parseVersionEv:
  287|  5.55k|	{
  288|  5.55k|		char* data = (char*)(m_HttpRequest->m_Data + m_UriOffset);
  289|  5.55k|		char* verPos = cross_platform_memmem(data, m_HttpRequest->getDataLen() - m_UriOffset, " HTTP/", 6);
  290|  5.55k|		if (verPos == nullptr)
  ------------------
  |  Branch (290:7): [True: 1.09k, False: 4.45k]
  ------------------
  291|  1.09k|		{
  292|  1.09k|			m_Version = HttpVersionUnknown;
  293|  1.09k|			m_VersionOffset = -1;
  294|  1.09k|			return;
  295|  1.09k|		}
  296|       |
  297|       |		// verify packet doesn't end before the version, meaning still left place for " HTTP/x.y" (9 chars)
  298|  4.45k|		std::ptrdiff_t actualLen = verPos + 9 - (char*)m_HttpRequest->m_Data;
  299|  4.45k|		if (static_cast<size_t>(actualLen) > m_HttpRequest->getDataLen())
  ------------------
  |  Branch (299:7): [True: 0, False: 4.45k]
  ------------------
  300|      0|		{
  301|      0|			m_Version = HttpVersionUnknown;
  302|      0|			m_VersionOffset = -1;
  303|      0|			return;
  304|      0|		}
  305|       |
  306|       |		// skip " HTTP/" (6 chars)
  307|  4.45k|		verPos += 6;
  308|  4.45k|		auto versionAsEnum = HttpVersionStringToEnum.find(std::string(verPos, verPos + 3));
  309|  4.45k|		if (versionAsEnum == HttpVersionStringToEnum.end())
  ------------------
  |  Branch (309:7): [True: 573, False: 3.88k]
  ------------------
  310|    573|		{
  311|    573|			m_Version = HttpVersionUnknown;
  312|    573|		}
  313|  3.88k|		else
  314|  3.88k|		{
  315|  3.88k|			m_Version = versionAsEnum->second;
  316|  3.88k|		}
  317|       |
  318|  4.45k|		m_VersionOffset = verPos - (char*)m_HttpRequest->m_Data;
  319|  4.45k|	}
_ZN4pcpp22HttpResponseStatusCodeC2ERKiRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
  510|  21.9k|	{
  511|  21.9k|		if (statusMessage != "")
  ------------------
  |  Branch (511:7): [True: 21.9k, False: 0]
  ------------------
  512|  21.9k|		{
  513|  21.9k|			m_CustomizedMessage = statusMessage;
  514|  21.9k|		}
  515|       |
  516|  21.9k|		if (intStatusCodeMap.find(statusCodeNumber) != intStatusCodeMap.end())
  ------------------
  |  Branch (516:7): [True: 21.5k, False: 405]
  ------------------
  517|  21.5k|		{
  518|  21.5k|			m_Value = intStatusCodeMap.at(statusCodeNumber);
  519|  21.5k|			return;
  520|  21.5k|		}
  521|       |
  522|    405|		if (statusCodeNumber >= 100 && statusCodeNumber <= 199)
  ------------------
  |  Branch (522:7): [True: 165, False: 240]
  |  Branch (522:34): [True: 155, False: 10]
  ------------------
  523|    155|		{
  524|    155|			m_Value = HttpResponseStatusCode::HttpStatus1xxCodeUnknown;
  525|    155|		}
  526|    250|		else if (statusCodeNumber >= 200 && statusCodeNumber <= 299)
  ------------------
  |  Branch (526:12): [True: 10, False: 240]
  |  Branch (526:39): [True: 10, False: 0]
  ------------------
  527|     10|		{
  528|     10|			m_Value = HttpResponseStatusCode::HttpStatus2xxCodeUnknown;
  529|     10|		}
  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|    405|	}
_ZN4pcpp17HttpResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  666|  10.7k|	    : HttpMessage(data, dataLen, prevLayer, packet, HTTPResponse)
  667|  10.7k|	{
  668|  10.7k|		m_FirstLine = new HttpResponseFirstLine(this);
  669|  10.7k|		m_FieldsOffset = m_FirstLine->getSize();
  670|  10.7k|		parseFields();
  671|  10.7k|	}
_ZN4pcpp17HttpResponseLayerD2Ev:
  689|  10.7k|	{
  690|  10.7k|		delete m_FirstLine;
  691|  10.7k|	}
_ZNK4pcpp17HttpResponseLayer8toStringEv:
  739|  4.17k|	{
  740|  4.17k|		static const int maxLengthToPrint = 120;
  741|  4.17k|		std::string result = "HTTP response, ";
  742|  4.17k|		int size = m_FirstLine->getSize() - 2;  // the -2 is to remove \r\n at the end of the first line
  743|  4.17k|		if (size <= maxLengthToPrint)
  ------------------
  |  Branch (743:7): [True: 4.17k, False: 0]
  ------------------
  744|  4.17k|		{
  745|  4.17k|			char* firstLine = new char[size + 1];
  746|  4.17k|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), size);
  747|  4.17k|			firstLine[size] = 0;
  748|  4.17k|			result += std::string(firstLine);
  749|  4.17k|			delete[] firstLine;
  750|  4.17k|		}
  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.17k|		return result;
  763|  4.17k|	}
_ZN4pcpp21HttpResponseFirstLine15parseStatusCodeEPKcm:
  850|  22.1k|	{
  851|       |		// minimum data should be 12B long: "HTTP/x.y XXX"
  852|  22.1k|		if (!data || dataLen < 12)
  ------------------
  |  Branch (852:7): [True: 0, False: 22.1k]
  |  Branch (852:16): [True: 65, False: 22.0k]
  ------------------
  853|     65|		{
  854|     65|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  855|     65|		}
  856|       |
  857|  22.0k|		const std::string codeString = std::string(data + 9, 3);
  858|       |
  859|  22.0k|		if (codeString.empty() || (std::find_if(codeString.begin(), codeString.end(),
  ------------------
  |  Branch (859:7): [True: 0, False: 22.0k]
  |  Branch (859:7): [True: 115, False: 21.9k]
  |  Branch (859:29): [True: 115, False: 21.9k]
  ------------------
  860|  22.0k|		                                        [](unsigned char c) { return !std::isdigit(c); }) != codeString.end()))
  861|    115|		{
  862|    115|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  863|    115|		}
  864|       |
  865|  21.9k|		constexpr size_t messageOffset = 13;  // expect "HTTP/x.y XXX YYY", YYY starts from 13
  866|  21.9k|		size_t offset = messageOffset;
  867|  21.9k|		bool isMessageFound = false;
  868|   107k|		while (offset < dataLen)
  ------------------
  |  Branch (868:10): [True: 107k, False: 20]
  ------------------
  869|   107k|		{
  870|   107k|			if (data[offset] == '\n')
  ------------------
  |  Branch (870:8): [True: 21.9k, False: 85.1k]
  ------------------
  871|  21.9k|			{
  872|  21.9k|				isMessageFound = true;
  873|  21.9k|				break;
  874|  21.9k|			}
  875|  85.1k|			offset++;
  876|  85.1k|		}
  877|       |
  878|  21.9k|		if (!isMessageFound)
  ------------------
  |  Branch (878:7): [True: 20, False: 21.9k]
  ------------------
  879|     20|		{
  880|     20|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  881|     20|		}
  882|       |
  883|  21.9k|		std::string messageString(data + messageOffset, offset - messageOffset);
  884|  21.9k|		if (!messageString.empty() && messageString.back() == '\r')
  ------------------
  |  Branch (884:7): [True: 21.9k, False: 0]
  |  Branch (884:33): [True: 21.4k, False: 460]
  ------------------
  885|  21.4k|		{
  886|  21.4k|			messageString.pop_back();
  887|  21.4k|		}
  888|  21.9k|		if (messageString.empty())
  ------------------
  |  Branch (888:7): [True: 30, False: 21.9k]
  ------------------
  889|     30|		{
  890|     30|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  891|     30|		}
  892|       |
  893|  21.9k|		return HttpResponseStatusCode(std::stoi(codeString), messageString);
  894|  21.9k|	}
_ZN4pcpp21HttpResponseFirstLineC2EPNS_17HttpResponseLayerE:
  896|  10.7k|	HttpResponseFirstLine::HttpResponseFirstLine(HttpResponseLayer* httpResponse) : m_HttpResponse(httpResponse)
  897|  10.7k|	{
  898|  10.7k|		m_Version = parseVersion((char*)m_HttpResponse->m_Data, m_HttpResponse->getDataLen());
  899|  10.7k|		if (m_Version == HttpVersionUnknown)
  ------------------
  |  Branch (899:7): [True: 0, False: 10.7k]
  ------------------
  900|      0|		{
  901|      0|			m_StatusCode = HttpResponseStatusCode::HttpStatusCodeUnknown;
  902|      0|		}
  903|  10.7k|		else
  904|  10.7k|		{
  905|  10.7k|			m_StatusCode = parseStatusCode((char*)m_HttpResponse->m_Data, m_HttpResponse->getDataLen());
  906|  10.7k|		}
  907|       |
  908|  10.7k|		char* endOfFirstLine;
  909|  10.7k|		if ((endOfFirstLine = (char*)memchr((char*)(m_HttpResponse->m_Data), '\n', m_HttpResponse->m_DataLen)) !=
  ------------------
  |  Branch (909:7): [True: 10.7k, False: 0]
  ------------------
  910|  10.7k|		    nullptr)
  911|  10.7k|		{
  912|  10.7k|			m_FirstLineEndOffset = endOfFirstLine - (char*)m_HttpResponse->m_Data + 1;
  913|  10.7k|			m_IsComplete = true;
  914|  10.7k|		}
  915|      0|		else
  916|      0|		{
  917|      0|			m_FirstLineEndOffset = m_HttpResponse->getDataLen();
  918|      0|			m_IsComplete = false;
  919|      0|		}
  920|       |
  921|  10.7k|		if (Logger::getInstance().isDebugEnabled(PacketLogModuleHttpLayer))
  ------------------
  |  Branch (921:7): [True: 0, False: 10.7k]
  ------------------
  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|  10.7k|	}
_ZN4pcpp21HttpResponseFirstLine12parseVersionEPKcm:
  963|  46.2k|	{
  964|  46.2k|		if (!data || dataLen < 8)  // "HTTP/x.y"
  ------------------
  |  Branch (964:7): [True: 0, False: 46.2k]
  |  Branch (964:16): [True: 75, False: 46.1k]
  ------------------
  965|     75|		{
  966|     75|			PCPP_LOG_DEBUG("HTTP response length < 8, cannot identify version");
  ------------------
  |  |  425|     75|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|     75|	do                                                                                                                 \
  |  |  |  |  413|     75|	{                                                                                                                  \
  |  |  |  |  414|     75|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     75|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     75|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 75]
  |  |  |  |  ------------------
  |  |  |  |  416|     75|		{                                                                                                              \
  |  |  |  |  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|     75|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 75]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  967|     75|			return HttpVersionUnknown;
  968|     75|		}
  969|       |
  970|  46.1k|		if (data[0] != 'H' || data[1] != 'T' || data[2] != 'T' || data[3] != 'P' || data[4] != '/')
  ------------------
  |  Branch (970:7): [True: 22.8k, False: 23.3k]
  |  Branch (970:25): [True: 335, False: 22.9k]
  |  Branch (970:43): [True: 50, False: 22.9k]
  |  Branch (970:61): [True: 180, False: 22.7k]
  |  Branch (970:79): [True: 40, False: 22.7k]
  ------------------
  971|  23.4k|		{
  972|  23.4k|			PCPP_LOG_DEBUG("HTTP response does not begin with 'HTTP/'");
  ------------------
  |  |  425|  23.4k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  23.4k|	do                                                                                                                 \
  |  |  |  |  413|  23.4k|	{                                                                                                                  \
  |  |  |  |  414|  23.4k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  23.4k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  23.4k|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 23.4k]
  |  |  |  |  ------------------
  |  |  |  |  416|  23.4k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  23.4k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 23.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  973|  23.4k|			return HttpVersionUnknown;
  974|  23.4k|		}
  975|       |
  976|  22.7k|		const char* verPos = data + 5;
  977|  22.7k|		auto versionAsEnum = HttpVersionStringToEnum.find(std::string(verPos, verPos + 3));
  978|  22.7k|		if (versionAsEnum == HttpVersionStringToEnum.end())
  ------------------
  |  Branch (978:7): [True: 560, False: 22.1k]
  ------------------
  979|    560|		{
  980|    560|			return HttpVersionUnknown;
  981|    560|		}
  982|  22.1k|		return versionAsEnum->second;
  983|  22.7k|	}
HttpLayer.cpp:_ZZN4pcpp21HttpResponseFirstLine15parseStatusCodeEPKcmENK3$_0clEh:
  860|  66.1k|		                                        [](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.35k|	{
   56|  4.35k|		size_t headerLen = getHeaderLen();
   57|  4.35k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (57:7): [True: 0, False: 4.35k]
  ------------------
   58|      0|			return;
   59|       |
   60|  4.35k|		uint8_t* payload = m_Data + headerLen;
   61|  4.35k|		size_t payloadLen = m_DataLen - headerLen;
   62|       |
   63|  4.35k|		switch (getAHHeader()->nextHeader)
   64|  4.35k|		{
   65|      0|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (65:3): [True: 0, False: 4.35k]
  ------------------
   66|      0|		{
   67|      0|			tryConstructNextLayerWithFallback<UdpLayer, PayloadLayer>(payload, payloadLen);
   68|      0|			break;
   69|      0|		}
   70|      0|		case PACKETPP_IPPROTO_TCP:
  ------------------
  |  Branch (70:3): [True: 0, False: 4.35k]
  ------------------
   71|      0|		{
   72|      0|			tryConstructNextLayerWithFallback<TcpLayer, PayloadLayer>(payload, payloadLen);
   73|      0|			break;
   74|      0|		}
   75|      0|		case PACKETPP_IPPROTO_IPIP:
  ------------------
  |  Branch (75:3): [True: 0, False: 4.35k]
  ------------------
   76|      0|		{
   77|      0|			uint8_t ipVersion = *payload >> 4;
   78|      0|			switch (ipVersion)
   79|      0|			{
   80|      0|			case 4:
  ------------------
  |  Branch (80:4): [True: 0, False: 0]
  ------------------
   81|      0|			{
   82|      0|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   83|      0|				break;
   84|      0|			}
   85|      0|			case 6:
  ------------------
  |  Branch (85:4): [True: 0, False: 0]
  ------------------
   86|      0|			{
   87|      0|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   88|      0|				break;
   89|      0|			}
   90|      0|			default:
  ------------------
  |  Branch (90:4): [True: 0, False: 0]
  ------------------
   91|      0|			{
   92|      0|				constructNextLayer<PayloadLayer>(payload, payloadLen);
   93|      0|				break;
   94|      0|			}
   95|      0|			}
   96|      0|			break;
   97|      0|		}
   98|  2.38k|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (98:3): [True: 2.38k, False: 1.97k]
  ------------------
   99|  2.38k|		{
  100|  2.38k|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen);
  101|  2.38k|			break;
  102|      0|		}
  103|  1.97k|		default:
  ------------------
  |  Branch (103:3): [True: 1.97k, False: 2.38k]
  ------------------
  104|  1.97k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  105|  4.35k|		}
  106|  4.35k|	}
_ZNK4pcpp25AuthenticationHeaderLayer8toStringEv:
  109|  1.42k|	{
  110|  1.42k|		return "Authentication Header Layer";
  111|  1.42k|	}
_ZNK4pcpp8ESPLayer6getSPIEv:
  118|  1.84k|	{
  119|       |		return be32toh(getESPHeader()->spi);
  120|  1.84k|	}
_ZN4pcpp8ESPLayer14parseNextLayerEv:
  128|  5.27k|	{
  129|  5.27k|		size_t headerLen = getHeaderLen();
  130|  5.27k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (130:7): [True: 1.61k, False: 3.66k]
  ------------------
  131|  1.61k|			return;
  132|       |
  133|  3.66k|		constructNextLayer<PayloadLayer>(m_Data + headerLen, m_DataLen - headerLen);
  134|  3.66k|	}
_ZNK4pcpp8ESPLayer8toStringEv:
  137|  1.84k|	{
  138|  1.84k|		std::ostringstream stream;
  139|  1.84k|		stream << "ESP Layer, SPI: 0x" << std::hex << getSPI();
  140|  1.84k|		return stream.str();
  141|  1.84k|	}

_ZN4pcpp9IPv4Layer17initLayerInPacketEb:
  183|   875k|	{
  184|   875k|		m_Protocol = IPv4;
  185|   875k|		m_NumOfTrailingBytes = 0;
  186|   875k|		m_TempHeaderExtension = 0;
  187|   875k|		if (setTotalLenAsDataLen)
  ------------------
  |  Branch (187:7): [True: 875k, False: 0]
  ------------------
  188|   875k|		{
  189|   875k|			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|   875k|			if ((totalLen < m_DataLen) && (totalLen != 0))
  ------------------
  |  Branch (192:8): [True: 183k, False: 692k]
  |  Branch (192:34): [True: 175k, False: 8.05k]
  ------------------
  193|   175k|			{
  194|   175k|				auto headerLen = getHeaderLen();
  195|       |				// Make sure totalLen is larger than header len, otherwise it's a malformed packet
  196|   175k|				m_DataLen = totalLen > headerLen ? totalLen : headerLen;
  ------------------
  |  Branch (196:17): [True: 174k, False: 253]
  ------------------
  197|   175k|			}
  198|   875k|		}
  199|   875k|	}
_ZN4pcpp9IPv4LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  220|   875k|	    : Layer(data, dataLen, prevLayer, packet)
  221|   875k|	{
  222|   875k|		initLayerInPacket(true);
  223|   875k|	}
_ZN4pcpp9IPv4Layer14parseNextLayerEv:
  248|   875k|	{
  249|   875k|		size_t hdrLen = getHeaderLen();
  250|   875k|		if (m_DataLen <= hdrLen || hdrLen == 0)
  ------------------
  |  Branch (250:7): [True: 1.24k, False: 874k]
  |  Branch (250:30): [True: 0, False: 874k]
  ------------------
  251|  1.24k|			return;
  252|       |
  253|   874k|		iphdr* ipHdr = getIPv4Header();
  254|       |
  255|   874k|		uint8_t* payload = m_Data + hdrLen;
  256|   874k|		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|   874k|		if (isFragment())
  ------------------
  |  Branch (260:7): [True: 7.79k, False: 866k]
  ------------------
  261|  7.79k|		{
  262|  7.79k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  263|  7.79k|			return;
  264|  7.79k|		}
  265|       |
  266|   866k|		switch (ipHdr->protocol)
  ------------------
  |  Branch (266:11): [True: 866k, False: 843]
  ------------------
  267|   866k|		{
  268|   288k|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (268:3): [True: 288k, False: 578k]
  ------------------
  269|   288k|			tryConstructNextLayerWithFallback<UdpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  270|   288k|			break;
  271|   436k|		case PACKETPP_IPPROTO_TCP:
  ------------------
  |  Branch (271:3): [True: 436k, False: 430k]
  ------------------
  272|   436k|			tryConstructNextLayerWithFallback<TcpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  273|   436k|			break;
  274|  40.9k|		case PACKETPP_IPPROTO_ICMP:
  ------------------
  |  Branch (274:3): [True: 40.9k, False: 825k]
  ------------------
  275|  40.9k|			tryConstructNextLayerWithFallback<IcmpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  276|  40.9k|			break;
  277|  1.70k|		case PACKETPP_IPPROTO_IPIP:
  ------------------
  |  Branch (277:3): [True: 1.70k, False: 865k]
  ------------------
  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|  70.1k|		case PACKETPP_IPPROTO_GRE:
  ------------------
  |  Branch (294:3): [True: 70.1k, False: 796k]
  ------------------
  295|  70.1k|		{
  296|  70.1k|			switch (GreLayer::getGREVersion(payload, payloadLen))
  297|  70.1k|			{
  298|  3.02k|			case GREv0:
  ------------------
  |  Branch (298:4): [True: 3.02k, False: 67.1k]
  ------------------
  299|  3.02k|				tryConstructNextLayerWithFallback<GREv0Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  300|  3.02k|				break;
  301|  66.9k|			case GREv1:
  ------------------
  |  Branch (301:4): [True: 66.9k, False: 3.20k]
  ------------------
  302|  66.9k|				tryConstructNextLayerWithFallback<GREv1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  303|  66.9k|				break;
  304|    176|			default:
  ------------------
  |  Branch (304:4): [True: 176, False: 70.0k]
  ------------------
  305|    176|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  306|    176|				break;
  307|  70.1k|			};
  308|  70.1k|			break;
  309|  70.1k|		}
  310|  14.3k|		case PACKETPP_IPPROTO_IGMP:
  ------------------
  |  Branch (310:3): [True: 14.3k, False: 852k]
  ------------------
  311|  14.3k|		{
  312|  14.3k|			bool igmpQuery = false;
  313|  14.3k|			ProtocolType igmpVer = IgmpLayer::getIGMPVerFromData(
  314|  14.3k|			    payload, std::min<size_t>(payloadLen, be16toh(getIPv4Header()->totalLength) - hdrLen), igmpQuery);
  315|       |
  316|  14.3k|			switch (igmpVer)
  317|  14.3k|			{
  318|  2.90k|			case IGMPv1:
  ------------------
  |  Branch (318:4): [True: 2.90k, False: 11.4k]
  ------------------
  319|  2.90k|				tryConstructNextLayerWithFallback<IgmpV1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  320|  2.90k|				break;
  321|  7.32k|			case IGMPv2:
  ------------------
  |  Branch (321:4): [True: 7.32k, False: 7.02k]
  ------------------
  322|  7.32k|				tryConstructNextLayerWithFallback<IgmpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  323|  7.32k|				break;
  324|  3.61k|			case IGMPv3:
  ------------------
  |  Branch (324:4): [True: 3.61k, False: 10.7k]
  ------------------
  325|  3.61k|			{
  326|  3.61k|				if (igmpQuery)
  ------------------
  |  Branch (326:9): [True: 1.42k, False: 2.18k]
  ------------------
  327|  1.42k|					tryConstructNextLayerWithFallback<IgmpV3QueryLayer, PayloadLayer>(payload, payloadLen,
  328|  1.42k|					                                                                  getAttachedPacket());
  329|  2.18k|				else
  330|  2.18k|					tryConstructNextLayerWithFallback<IgmpV3ReportLayer, PayloadLayer>(payload, payloadLen,
  331|  2.18k|					                                                                   getAttachedPacket());
  332|  3.61k|				break;
  333|      0|			}
  334|    502|			default:
  ------------------
  |  Branch (334:4): [True: 502, False: 13.8k]
  ------------------
  335|    502|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  336|    502|				break;
  337|  14.3k|			}
  338|  14.3k|			break;
  339|  14.3k|		}
  340|  14.3k|		case PACKETPP_IPPROTO_AH:
  ------------------
  |  Branch (340:3): [True: 4.49k, False: 862k]
  ------------------
  341|  4.49k|			tryConstructNextLayerWithFallback<AuthenticationHeaderLayer, PayloadLayer>(payload, payloadLen,
  342|  4.49k|			                                                                           getAttachedPacket());
  343|  4.49k|			break;
  344|  2.14k|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (344:3): [True: 2.14k, False: 864k]
  ------------------
  345|  2.14k|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  346|  2.14k|			break;
  347|    130|		case PACKETPP_IPPROTO_IPV6:
  ------------------
  |  Branch (347:3): [True: 130, False: 866k]
  ------------------
  348|    130|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  349|    130|			break;
  350|  7.07k|		case PACKETPP_IPPROTO_VRRP:
  ------------------
  |  Branch (350:3): [True: 7.07k, False: 859k]
  ------------------
  351|  7.07k|		{
  352|  7.07k|			switch (VrrpLayer::getVersionFromData(payload, payloadLen))
  353|  7.07k|			{
  354|  3.48k|			case VRRPv2:
  ------------------
  |  Branch (354:4): [True: 3.48k, False: 3.58k]
  ------------------
  355|  3.48k|				tryConstructNextLayerWithFallback<VrrpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  356|  3.48k|				break;
  357|  3.43k|			case VRRPv3:
  ------------------
  |  Branch (357:4): [True: 3.43k, False: 3.64k]
  ------------------
  358|  3.43k|				tryConstructNextLayerWithFallback<VrrpV3Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket(),
  359|  3.43k|				                                                             IPAddress::IPv4AddressType);
  360|  3.43k|				break;
  361|    155|			default:
  ------------------
  |  Branch (361:4): [True: 155, False: 6.91k]
  ------------------
  362|    155|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  363|    155|				break;
  364|  7.07k|			}
  365|  7.07k|			break;
  366|  7.07k|		}
  367|   866k|		}
  368|       |
  369|       |		// If no next layer was constructed, assume it's a payload layer
  370|   866k|		if (!hasNextLayer())
  ------------------
  |  Branch (370:7): [True: 843, False: 866k]
  ------------------
  371|    843|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  372|   866k|	}
_ZN4pcpp9IPv4Layer22computeCalculateFieldsEv:
  375|   148k|	{
  376|   148k|		iphdr* ipHdr = getIPv4Header();
  377|   148k|		ipHdr->ipVersion = (4 & 0x0f);
  378|   148k|		ipHdr->totalLength = htobe16(m_DataLen);
  379|   148k|		ipHdr->headerChecksum = 0;
  380|       |
  381|   148k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (381:7): [True: 147k, False: 333]
  ------------------
  382|   147k|		{
  383|   147k|			switch (m_NextLayer->getProtocol())
  384|   147k|			{
  385|  79.6k|			case TCP:
  ------------------
  |  Branch (385:4): [True: 79.6k, False: 68.2k]
  ------------------
  386|  79.6k|				ipHdr->protocol = PACKETPP_IPPROTO_TCP;
  387|  79.6k|				break;
  388|  44.7k|			case UDP:
  ------------------
  |  Branch (388:4): [True: 44.7k, False: 103k]
  ------------------
  389|  44.7k|				ipHdr->protocol = PACKETPP_IPPROTO_UDP;
  390|  44.7k|				break;
  391|  7.31k|			case ICMP:
  ------------------
  |  Branch (391:4): [True: 7.31k, False: 140k]
  ------------------
  392|  7.31k|				ipHdr->protocol = PACKETPP_IPPROTO_ICMP;
  393|  7.31k|				break;
  394|    567|			case GREv0:
  ------------------
  |  Branch (394:4): [True: 567, False: 147k]
  ------------------
  395|  6.72k|			case GREv1:
  ------------------
  |  Branch (395:4): [True: 6.15k, False: 141k]
  ------------------
  396|  6.72k|				ipHdr->protocol = PACKETPP_IPPROTO_GRE;
  397|  6.72k|				break;
  398|    584|			case IGMPv1:
  ------------------
  |  Branch (398:4): [True: 584, False: 147k]
  ------------------
  399|  2.05k|			case IGMPv2:
  ------------------
  |  Branch (399:4): [True: 1.46k, False: 146k]
  ------------------
  400|  2.85k|			case IGMPv3:
  ------------------
  |  Branch (400:4): [True: 797, False: 147k]
  ------------------
  401|  2.85k|				ipHdr->protocol = PACKETPP_IPPROTO_IGMP;
  402|  2.85k|				break;
  403|    853|			case VRRPv2:
  ------------------
  |  Branch (403:4): [True: 853, False: 147k]
  ------------------
  404|  1.65k|			case VRRPv3:
  ------------------
  |  Branch (404:4): [True: 803, False: 147k]
  ------------------
  405|  1.65k|				ipHdr->protocol = PACKETPP_IPPROTO_VRRP;
  406|  1.65k|				break;
  407|  5.01k|			default:
  ------------------
  |  Branch (407:4): [True: 5.01k, False: 142k]
  ------------------
  408|  5.01k|				break;
  409|   147k|			}
  410|   147k|		}
  411|       |
  412|   148k|		ScalarBuffer<uint16_t> scalar = { (uint16_t*)ipHdr, (size_t)(ipHdr->internetHeaderLength * 4) };
  413|       |		ipHdr->headerChecksum = htobe16(computeChecksum(&scalar, 1));
  414|   148k|	}
_ZNK4pcpp9IPv4Layer10isFragmentEv:
  417|  1.17M|	{
  418|  1.17M|		return ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) != 0 || getFragmentOffset() != 0);
  ------------------
  |  |  154|  1.17M|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (418:11): [True: 6.45k, False: 1.17M]
  |  Branch (418:65): [True: 10.2k, False: 1.16M]
  ------------------
  419|  1.17M|	}
_ZNK4pcpp9IPv4Layer15isFirstFragmentEv:
  422|  3.02k|	{
  423|  3.02k|		return isFragment() && (getFragmentOffset() == 0);
  ------------------
  |  Branch (423:10): [True: 3.02k, False: 0]
  |  Branch (423:26): [True: 184, False: 2.84k]
  ------------------
  424|  3.02k|	}
_ZNK4pcpp9IPv4Layer14isLastFragmentEv:
  427|  2.84k|	{
  428|  2.84k|		return isFragment() && ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) == 0);
  ------------------
  |  |  154|  2.84k|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (428:10): [True: 2.84k, False: 0]
  |  Branch (428:26): [True: 1.76k, False: 1.07k]
  ------------------
  429|  2.84k|	}
_ZNK4pcpp9IPv4Layer16getFragmentFlagsEv:
  432|  1.17M|	{
  433|  1.17M|		return getIPv4Header()->fragmentOffset & 0xE0;
  434|  1.17M|	}
_ZNK4pcpp9IPv4Layer17getFragmentOffsetEv:
  437|  1.17M|	{
  438|       |		return be16toh(getIPv4Header()->fragmentOffset & (uint16_t)0xFF1F) * 8;
  439|  1.17M|	}
_ZNK4pcpp9IPv4Layer8toStringEv:
  442|   296k|	{
  443|   296k|		std::string fragment = "";
  444|   296k|		if (isFragment())
  ------------------
  |  Branch (444:7): [True: 3.02k, False: 293k]
  ------------------
  445|  3.02k|		{
  446|  3.02k|			if (isFirstFragment())
  ------------------
  |  Branch (446:8): [True: 184, False: 2.84k]
  ------------------
  447|    184|				fragment = "First fragment";
  448|  2.84k|			else if (isLastFragment())
  ------------------
  |  Branch (448:13): [True: 1.76k, False: 1.07k]
  ------------------
  449|  1.76k|				fragment = "Last fragment";
  450|  1.07k|			else
  451|  1.07k|				fragment = "Fragment";
  452|       |
  453|  3.02k|			std::stringstream sstm;
  454|  3.02k|			sstm << fragment << " [offset= " << getFragmentOffset() << "], ";
  455|  3.02k|			fragment = sstm.str();
  456|  3.02k|		}
  457|       |
  458|   296k|		return "IPv4 Layer, " + fragment + "Src: " + getSrcIPv4Address().toString() +
  459|   296k|		       ", Dst: " + getDstIPv4Address().toString();
  460|   296k|	}

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

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

_ZN4pcpp29icmp_router_address_structure16setRouterAddressENS_11IPv4AddressEj:
   25|    622|	{
   26|    622|		routerAddress = addr.toInt();
   27|       |		preferenceLevel = htobe32(preference);
   28|    622|	}
_ZNK4pcpp9IcmpLayer14getMessageTypeEv:
   39|   178k|	{
   40|   178k|		uint8_t type = getIcmpHeader()->type;
   41|   178k|		if (type > 18)
  ------------------
  |  Branch (41:7): [True: 0, False: 178k]
  ------------------
   42|      0|			return ICMP_UNSUPPORTED;
   43|       |
   44|   178k|		return static_cast<IcmpMessageType>(type);
   45|   178k|	}
_ZN4pcpp9IcmpLayer14cleanIcmpLayerEv:
   48|  5.24k|	{
   49|       |		// remove all layers after
   50|       |
   51|  5.24k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (51:7): [True: 0, False: 5.24k]
  ------------------
   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|  5.24k|		size_t headerLen = this->getHeaderLen();
   61|  5.24k|		if (headerLen > sizeof(icmphdr))
  ------------------
  |  Branch (61:7): [True: 4.54k, False: 700]
  ------------------
   62|  4.54k|		{
   63|  4.54k|			if (!this->shortenLayer(sizeof(icmphdr), headerLen - sizeof(icmphdr)))
  ------------------
  |  Branch (63:8): [True: 0, False: 4.54k]
  ------------------
   64|      0|				return false;
   65|  4.54k|		}
   66|       |
   67|  5.24k|		return true;
   68|  5.24k|	}
_ZN4pcpp9IcmpLayer16setIpAndL4LayersEPNS_9IPv4LayerEPNS_5LayerE:
  101|  1.12k|	{
  102|  1.12k|		if (getAttachedPacket() == nullptr)
  ------------------
  |  Branch (102:7): [True: 1.12k, False: 0]
  ------------------
  103|  1.12k|		{
  104|  1.12k|			PCPP_LOG_ERROR("Cannot set ICMP data that involves IP and L4 layers on a layer not attached to a packet. "
  ------------------
  |  |  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 PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  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 PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  105|  1.12k|			               "Please add the ICMP layer to a packet and try again");
  106|  1.12k|			return false;
  107|  1.12k|		}
  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|  1.97k|	{
  198|  1.97k|		if (!isMessageOfType(ICMP_TIMESTAMP_REPLY))
  ------------------
  |  Branch (198:7): [True: 0, False: 1.97k]
  ------------------
  199|      0|			return nullptr;
  200|       |
  201|  1.97k|		return reinterpret_cast<icmp_timestamp_reply*>(m_Data);
  202|  1.97k|	}
_ZN4pcpp9IcmpLayer21setTimestampReplyDataEtt7timevalS1_S1_:
  206|    988|	{
  207|    988|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (207:7): [True: 0, False: 988]
  ------------------
  208|      0|			return nullptr;
  209|       |
  210|    988|		if (!this->extendLayer(m_DataLen, sizeof(icmp_timestamp_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (210:7): [True: 0, False: 988]
  ------------------
  211|      0|			return nullptr;
  212|       |
  213|    988|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_TIMESTAMP_REPLY);
  214|       |
  215|    988|		icmp_timestamp_reply* header = getTimestampReplyData();
  216|    988|		header->code = 0;
  217|    988|		header->id = htobe16(id);
  218|    988|		header->sequence = htobe16(sequence);
  219|    988|		header->originateTimestamp = htobe32(originateTimestamp.tv_sec * 1000 + originateTimestamp.tv_usec / 1000);
  220|    988|		header->receiveTimestamp = htobe32(receiveTimestamp.tv_sec * 1000 + receiveTimestamp.tv_usec / 1000);
  221|    988|		header->transmitTimestamp = htobe32(transmitTimestamp.tv_sec * 1000 + transmitTimestamp.tv_usec / 1000);
  222|       |
  223|    988|		return header;
  224|    988|	}
_ZN4pcpp9IcmpLayer22getDestUnreachableDataEv:
  227|  1.07k|	{
  228|  1.07k|		if (!isMessageOfType(ICMP_DEST_UNREACHABLE))
  ------------------
  |  Branch (228:7): [True: 0, False: 1.07k]
  ------------------
  229|      0|			return nullptr;
  230|       |
  231|  1.07k|		return reinterpret_cast<icmp_destination_unreachable*>(m_Data);
  232|  1.07k|	}
_ZN4pcpp9IcmpLayer22setDestUnreachableDataENS_24IcmpDestUnreachableCodesEtPNS_9IPv4LayerEPNS_5LayerE:
  236|    539|	{
  237|    539|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (237:7): [True: 0, False: 539]
  ------------------
  238|      0|			return nullptr;
  239|       |
  240|    539|		if (!this->extendLayer(m_DataLen, sizeof(icmp_destination_unreachable) - sizeof(icmphdr)))
  ------------------
  |  Branch (240:7): [True: 0, False: 539]
  ------------------
  241|      0|			return nullptr;
  242|       |
  243|    539|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_DEST_UNREACHABLE);
  244|       |
  245|    539|		icmp_destination_unreachable* header = getDestUnreachableData();
  246|    539|		header->code = code;
  247|    539|		header->nextHopMTU = htobe16(nextHopMTU);
  248|    539|		header->unused = 0;
  249|       |
  250|    539|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (250:7): [True: 539, False: 0]
  ------------------
  251|    539|			return nullptr;
  252|       |
  253|      0|		return header;
  254|    539|	}
_ZNK4pcpp9IcmpLayer26getRouterAdvertisementDataEv:
  319|  6.87k|	{
  320|  6.87k|		if (!isMessageOfType(ICMP_ROUTER_ADV))
  ------------------
  |  Branch (320:7): [True: 0, False: 6.87k]
  ------------------
  321|      0|			return nullptr;
  322|       |
  323|  6.87k|		m_RouterAdvData.header = reinterpret_cast<icmp_router_advertisement_hdr*>(m_Data);
  324|       |
  325|  6.87k|		return &m_RouterAdvData;
  326|  6.87k|	}
_ZN4pcpp9IcmpLayer26setRouterAdvertisementDataEhtRKNSt3__16vectorINS_29icmp_router_address_structureENS1_9allocatorIS3_EEEE:
  330|    622|	{
  331|    622|		if (code != 0 && code != 16)
  ------------------
  |  Branch (331:7): [True: 622, False: 0]
  |  Branch (331:20): [True: 0, False: 622]
  ------------------
  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|    622|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (338:7): [True: 0, False: 622]
  ------------------
  339|      0|			return nullptr;
  340|       |
  341|    622|		if (!this->extendLayer(m_DataLen, sizeof(icmp_router_advertisement_hdr) +
  ------------------
  |  Branch (341:7): [True: 0, False: 622]
  ------------------
  342|    622|		                                      (routerAddresses.size() * sizeof(icmp_router_address_structure)) -
  343|    622|		                                      sizeof(icmphdr)))
  344|      0|			return nullptr;
  345|       |
  346|    622|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ROUTER_ADV);
  347|       |
  348|    622|		icmp_router_advertisement* header = getRouterAdvertisementData();
  349|    622|		header->header->code = code;
  350|    622|		header->header->lifetime = htobe16(lifetimeInSeconds);
  351|    622|		header->header->advertisementCount = static_cast<uint8_t>(routerAddresses.size());
  352|    622|		header->header->addressEntrySize = 2;
  353|       |
  354|    622|		icmp_router_address_structure* curPos = reinterpret_cast<icmp_router_address_structure*>(
  355|    622|		    reinterpret_cast<uint8_t*>(header->header) + sizeof(icmp_router_advertisement_hdr));
  356|    622|		for (const auto& iter : routerAddresses)
  ------------------
  |  Branch (356:25): [True: 622, False: 622]
  ------------------
  357|    622|		{
  358|    622|			curPos->routerAddress = iter.routerAddress;
  359|    622|			curPos->preferenceLevel = iter.preferenceLevel;
  360|    622|			curPos += 1;
  361|    622|		}
  362|       |
  363|    622|		return header;
  364|    622|	}
_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|    786|	{
  423|    786|		if (!isMessageOfType(ICMP_PARAM_PROBLEM))
  ------------------
  |  Branch (423:7): [True: 0, False: 786]
  ------------------
  424|      0|			return nullptr;
  425|       |
  426|    786|		return reinterpret_cast<icmp_param_problem*>(m_Data);
  427|    786|	}
_ZN4pcpp9IcmpLayer19setParamProblemDataEhhPNS_9IPv4LayerEPNS_5LayerE:
  431|    701|	{
  432|    701|		if (code > 2)
  ------------------
  |  Branch (432:7): [True: 616, False: 85]
  ------------------
  433|    616|		{
  434|    616|			PCPP_LOG_ERROR("Unknown code " << (int)code << " for ICMP parameter problem data");
  ------------------
  |  |  443|    616|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    616|	do                                                                                                                 \
  |  |  |  |  413|    616|	{                                                                                                                  \
  |  |  |  |  414|    616|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    616|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    616|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 616, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    616|		{                                                                                                              \
  |  |  |  |  417|    616|			auto ctx =                                                                                                 \
  |  |  |  |  418|    616|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    616|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    616|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    616|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    616|		}                                                                                                              \
  |  |  |  |  422|    616|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 616]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  435|    616|			return nullptr;
  436|    616|		}
  437|       |
  438|     85|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (438:7): [True: 0, False: 85]
  ------------------
  439|      0|			return nullptr;
  440|       |
  441|     85|		if (!this->extendLayer(m_DataLen, sizeof(icmp_param_problem) - sizeof(icmphdr)))
  ------------------
  |  Branch (441:7): [True: 0, False: 85]
  ------------------
  442|      0|			return nullptr;
  443|       |
  444|     85|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_PARAM_PROBLEM);
  445|       |
  446|     85|		icmp_param_problem* header = getParamProblemData();
  447|     85|		header->code = code;
  448|     85|		header->unused1 = 0;
  449|     85|		header->unused2 = 0;
  450|     85|		header->pointer = errorOctetPointer;
  451|       |
  452|     85|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (452:7): [True: 85, False: 0]
  ------------------
  453|     85|			return nullptr;
  454|       |
  455|      0|		return header;
  456|     85|	}
_ZN4pcpp9IcmpLayer25getAddressMaskRequestDataEv:
  459|  1.45k|	{
  460|  1.45k|		if (!isMessageOfType(ICMP_ADDRESS_MASK_REQUEST))
  ------------------
  |  Branch (460:7): [True: 0, False: 1.45k]
  ------------------
  461|      0|			return nullptr;
  462|       |
  463|  1.45k|		return reinterpret_cast<icmp_address_mask_request*>(m_Data);
  464|  1.45k|	}
_ZN4pcpp9IcmpLayer25setAddressMaskRequestDataEttNS_11IPv4AddressE:
  467|    725|	{
  468|    725|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (468:7): [True: 0, False: 725]
  ------------------
  469|      0|			return nullptr;
  470|       |
  471|    725|		if (!this->extendLayer(m_DataLen, sizeof(icmp_address_mask_request) - sizeof(icmphdr)))
  ------------------
  |  Branch (471:7): [True: 0, False: 725]
  ------------------
  472|      0|			return nullptr;
  473|       |
  474|    725|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ADDRESS_MASK_REQUEST);
  475|       |
  476|    725|		icmp_address_mask_request* header = getAddressMaskRequestData();
  477|    725|		header->code = 0;
  478|    725|		header->id = htobe16(id);
  479|    725|		header->sequence = htobe16(sequence);
  480|    725|		header->addressMask = mask.toInt();
  481|       |
  482|    725|		return header;
  483|    725|	}
_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|    660|	{
  514|    660|		if (!isMessageOfType(ICMP_INFO_REQUEST))
  ------------------
  |  Branch (514:7): [True: 0, False: 660]
  ------------------
  515|      0|			return nullptr;
  516|       |
  517|    660|		return reinterpret_cast<icmp_info_request*>(m_Data);
  518|    660|	}
_ZN4pcpp9IcmpLayer18setInfoRequestDataEtt:
  521|    330|	{
  522|    330|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (522:7): [True: 0, False: 330]
  ------------------
  523|      0|			return nullptr;
  524|       |
  525|    330|		if (!this->extendLayer(m_DataLen, sizeof(icmp_info_request) - sizeof(icmphdr)))
  ------------------
  |  Branch (525:7): [True: 0, False: 330]
  ------------------
  526|      0|			return nullptr;
  527|       |
  528|    330|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_INFO_REQUEST);
  529|       |
  530|    330|		icmp_info_request* header = getInfoRequestData();
  531|    330|		header->code = 0;
  532|    330|		header->id = htobe16(id);
  533|    330|		header->sequence = htobe16(sequence);
  534|       |
  535|    330|		return header;
  536|    330|	}
_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|  40.2k|	{
  566|  40.2k|		size_t headerLen = getHeaderLen();
  567|       |
  568|  40.2k|		auto payloadPtr = m_Data + headerLen;
  569|  40.2k|		auto payloadLen = m_DataLen - headerLen;
  570|       |
  571|  40.2k|		switch (getMessageType())
  572|  40.2k|		{
  573|  3.56k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (573:3): [True: 3.56k, False: 36.7k]
  ------------------
  574|  5.74k|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (574:3): [True: 2.18k, False: 38.1k]
  ------------------
  575|  8.73k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (575:3): [True: 2.99k, False: 37.2k]
  ------------------
  576|  10.1k|		case ICMP_REDIRECT:
  ------------------
  |  Branch (576:3): [True: 1.43k, False: 38.8k]
  ------------------
  577|  14.4k|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (577:3): [True: 4.25k, False: 36.0k]
  ------------------
  578|  14.4k|		{
  579|  14.4k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payloadPtr, payloadLen);
  580|  14.4k|			break;
  581|  10.1k|		}
  582|  25.8k|		default:
  ------------------
  |  Branch (582:3): [True: 25.8k, False: 14.4k]
  ------------------
  583|  25.8k|			if (m_DataLen > headerLen)
  ------------------
  |  Branch (583:8): [True: 21.0k, False: 4.80k]
  ------------------
  584|  21.0k|			{
  585|  21.0k|				constructNextLayer<PayloadLayer>(payloadPtr, payloadLen);
  586|  21.0k|			}
  587|  25.8k|			break;
  588|  40.2k|		}
  589|  40.2k|	}
_ZNK4pcpp9IcmpLayer12getHeaderLenEv:
  592|  67.4k|	{
  593|  67.4k|		IcmpMessageType type = getMessageType();
  594|  67.4k|		size_t routerAdvSize = 0;
  595|  67.4k|		switch (type)
  596|  67.4k|		{
  597|    334|		case ICMP_ECHO_REQUEST:
  ------------------
  |  Branch (597:3): [True: 334, False: 67.1k]
  ------------------
  598|  3.26k|		case ICMP_ECHO_REPLY:
  ------------------
  |  Branch (598:3): [True: 2.92k, False: 64.5k]
  ------------------
  599|  3.26k|			return m_DataLen;
  600|    208|		case ICMP_TIMESTAMP_REQUEST:
  ------------------
  |  Branch (600:3): [True: 208, False: 67.2k]
  ------------------
  601|  9.10k|		case ICMP_TIMESTAMP_REPLY:
  ------------------
  |  Branch (601:3): [True: 8.89k, False: 58.5k]
  ------------------
  602|  9.10k|			return sizeof(icmp_timestamp_request);
  603|  3.27k|		case ICMP_ROUTER_SOL:
  ------------------
  |  Branch (603:3): [True: 3.27k, False: 64.1k]
  ------------------
  604|  6.55k|		case ICMP_INFO_REQUEST:
  ------------------
  |  Branch (604:3): [True: 3.28k, False: 64.1k]
  ------------------
  605|  10.6k|		case ICMP_INFO_REPLY:
  ------------------
  |  Branch (605:3): [True: 4.06k, False: 63.4k]
  ------------------
  606|  10.6k|		case ICMP_UNSUPPORTED:
  ------------------
  |  Branch (606:3): [True: 0, False: 67.4k]
  ------------------
  607|  10.6k|			return sizeof(icmphdr);
  608|  9.74k|		case ICMP_ADDRESS_MASK_REPLY:
  ------------------
  |  Branch (608:3): [True: 9.74k, False: 57.7k]
  ------------------
  609|  16.2k|		case ICMP_ADDRESS_MASK_REQUEST:
  ------------------
  |  Branch (609:3): [True: 6.52k, False: 60.9k]
  ------------------
  610|  16.2k|			return sizeof(icmp_address_mask_request);
  611|  5.71k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (611:3): [True: 5.71k, False: 61.7k]
  ------------------
  612|  5.71k|			return sizeof(icmp_destination_unreachable);
  613|  2.15k|		case ICMP_REDIRECT:
  ------------------
  |  Branch (613:3): [True: 2.15k, False: 65.3k]
  ------------------
  614|  2.15k|			return sizeof(icmp_redirect);
  615|  4.99k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (615:3): [True: 4.99k, False: 62.4k]
  ------------------
  616|  8.26k|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (616:3): [True: 3.27k, False: 64.1k]
  ------------------
  617|  8.26k|			return sizeof(icmp_time_exceeded);
  618|  6.44k|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (618:3): [True: 6.44k, False: 61.0k]
  ------------------
  619|  6.44k|			return sizeof(icmp_param_problem);
  620|  5.63k|		case ICMP_ROUTER_ADV:
  ------------------
  |  Branch (620:3): [True: 5.63k, False: 61.8k]
  ------------------
  621|       |			// clang-format off
  622|  5.63k|			routerAdvSize = sizeof(icmp_router_advertisement_hdr) + (getRouterAdvertisementData()->header->advertisementCount * sizeof(icmp_router_address_structure));
  623|       |			// clang-format on
  624|  5.63k|			if (routerAdvSize > m_DataLen)
  ------------------
  |  Branch (624:8): [True: 45, False: 5.58k]
  ------------------
  625|     45|				return m_DataLen;
  626|  5.58k|			return routerAdvSize;
  627|      0|		default:
  ------------------
  |  Branch (627:3): [True: 0, False: 67.4k]
  ------------------
  628|      0|			return sizeof(icmphdr);
  629|  67.4k|		}
  630|  67.4k|	}
_ZN4pcpp9IcmpLayer22computeCalculateFieldsEv:
  633|  7.31k|	{
  634|       |		// calculate checksum
  635|  7.31k|		getIcmpHeader()->checksum = 0;
  636|       |
  637|  7.31k|		size_t icmpLen = 0;
  638|  7.31k|		Layer* curLayer = this;
  639|  25.2k|		while (curLayer != nullptr)
  ------------------
  |  Branch (639:10): [True: 17.8k, False: 7.31k]
  ------------------
  640|  17.8k|		{
  641|  17.8k|			icmpLen += curLayer->getHeaderLen();
  642|  17.8k|			curLayer = curLayer->getNextLayer();
  643|  17.8k|		}
  644|       |
  645|  7.31k|		ScalarBuffer<uint16_t> buffer;
  646|  7.31k|		buffer.buffer = reinterpret_cast<uint16_t*>(getIcmpHeader());
  647|  7.31k|		buffer.len = icmpLen;
  648|  7.31k|		size_t checksum = computeChecksum(&buffer, 1);
  649|       |
  650|       |		getIcmpHeader()->checksum = htobe16(checksum);
  651|  7.31k|	}
_ZNK4pcpp9IcmpLayer8toStringEv:
  654|  14.6k|	{
  655|  14.6k|		std::string messageTypeAsString;
  656|  14.6k|		IcmpMessageType type = getMessageType();
  657|  14.6k|		switch (type)
  658|  14.6k|		{
  659|    836|		case ICMP_ECHO_REPLY:
  ------------------
  |  Branch (659:3): [True: 836, False: 13.7k]
  ------------------
  660|    836|			messageTypeAsString = "Echo (ping) reply";
  661|    836|			break;
  662|  1.07k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (662:3): [True: 1.07k, False: 13.5k]
  ------------------
  663|  1.07k|			messageTypeAsString = "Destination unreachable";
  664|  1.07k|			break;
  665|    728|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (665:3): [True: 728, False: 13.8k]
  ------------------
  666|    728|			messageTypeAsString = "Source quench (flow control)";
  667|    728|			break;
  668|    478|		case ICMP_REDIRECT:
  ------------------
  |  Branch (668:3): [True: 478, False: 14.1k]
  ------------------
  669|    478|			messageTypeAsString = "Redirect";
  670|    478|			break;
  671|     88|		case ICMP_ECHO_REQUEST:
  ------------------
  |  Branch (671:3): [True: 88, False: 14.5k]
  ------------------
  672|     88|			messageTypeAsString = "Echo (ping) request";
  673|     88|			break;
  674|  1.24k|		case ICMP_ROUTER_ADV:
  ------------------
  |  Branch (674:3): [True: 1.24k, False: 13.3k]
  ------------------
  675|  1.24k|			messageTypeAsString = "Router advertisement";
  676|  1.24k|			break;
  677|    728|		case ICMP_ROUTER_SOL:
  ------------------
  |  Branch (677:3): [True: 728, False: 13.8k]
  ------------------
  678|    728|			messageTypeAsString = "Router solicitation";
  679|    728|			break;
  680|  1.00k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (680:3): [True: 1.00k, False: 13.6k]
  ------------------
  681|  1.00k|			messageTypeAsString = "Time-to-live exceeded";
  682|  1.00k|			break;
  683|  1.40k|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (683:3): [True: 1.40k, False: 13.2k]
  ------------------
  684|  1.40k|			messageTypeAsString = "Parameter problem: bad IP header";
  685|  1.40k|			break;
  686|     52|		case ICMP_TIMESTAMP_REQUEST:
  ------------------
  |  Branch (686:3): [True: 52, False: 14.5k]
  ------------------
  687|     52|			messageTypeAsString = "Timestamp request";
  688|     52|			break;
  689|  1.97k|		case ICMP_TIMESTAMP_REPLY:
  ------------------
  |  Branch (689:3): [True: 1.97k, False: 12.6k]
  ------------------
  690|  1.97k|			messageTypeAsString = "Timestamp reply";
  691|  1.97k|			break;
  692|    660|		case ICMP_INFO_REQUEST:
  ------------------
  |  Branch (692:3): [True: 660, False: 13.9k]
  ------------------
  693|    660|			messageTypeAsString = "Information request";
  694|    660|			break;
  695|    740|		case ICMP_INFO_REPLY:
  ------------------
  |  Branch (695:3): [True: 740, False: 13.8k]
  ------------------
  696|    740|			messageTypeAsString = "Information reply";
  697|    740|			break;
  698|  1.45k|		case ICMP_ADDRESS_MASK_REQUEST:
  ------------------
  |  Branch (698:3): [True: 1.45k, False: 13.1k]
  ------------------
  699|  1.45k|			messageTypeAsString = "Address mask request";
  700|  1.45k|			break;
  701|  2.16k|		case ICMP_ADDRESS_MASK_REPLY:
  ------------------
  |  Branch (701:3): [True: 2.16k, False: 12.4k]
  ------------------
  702|  2.16k|			messageTypeAsString = "Address mask reply";
  703|  2.16k|			break;
  704|      0|		default:
  ------------------
  |  Branch (704:3): [True: 0, False: 14.6k]
  ------------------
  705|      0|			messageTypeAsString = "Unknown";
  706|      0|			break;
  707|  14.6k|		}
  708|       |
  709|  14.6k|		std::ostringstream typeStream;
  710|  14.6k|		typeStream << (int)getIcmpHeader()->type;
  711|       |
  712|  14.6k|		return "ICMP Layer, " + messageTypeAsString + " (type: " + typeStream.str() + ")";
  713|  14.6k|	}

_ZN4pcpp11IcmpV6Layer16parseIcmpV6LayerEPhmPNS_5LayerEPNS_6PacketE:
   18|  1.89k|	{
   19|  1.89k|		if (dataLen < sizeof(icmpv6hdr))
  ------------------
  |  Branch (19:7): [True: 0, False: 1.89k]
  ------------------
   20|      0|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   21|       |
   22|  1.89k|		icmpv6hdr* hdr = (icmpv6hdr*)data;
   23|  1.89k|		ICMPv6MessageType messageType = static_cast<ICMPv6MessageType>(hdr->type);
   24|       |
   25|  1.89k|		switch (messageType)
   26|  1.89k|		{
   27|      0|		case ICMPv6MessageType::ICMPv6_ECHO_REQUEST:
  ------------------
  |  Branch (27:3): [True: 0, False: 1.89k]
  ------------------
   28|    556|		case ICMPv6MessageType::ICMPv6_ECHO_REPLY:
  ------------------
  |  Branch (28:3): [True: 556, False: 1.33k]
  ------------------
   29|    556|			return new ICMPv6EchoLayer(data, dataLen, prevLayer, packet);
   30|    628|		case ICMPv6MessageType::ICMPv6_NEIGHBOR_SOLICITATION:
  ------------------
  |  Branch (30:3): [True: 628, False: 1.26k]
  ------------------
   31|    628|			return new NDPNeighborSolicitationLayer(data, dataLen, prevLayer, packet);
   32|      8|		case ICMPv6MessageType::ICMPv6_NEIGHBOR_ADVERTISEMENT:
  ------------------
  |  Branch (32:3): [True: 8, False: 1.88k]
  ------------------
   33|      8|			return new NDPNeighborAdvertisementLayer(data, dataLen, prevLayer, packet);
   34|    128|		case ICMPv6MessageType::ICMPv6_UNKNOWN_MESSAGE:
  ------------------
  |  Branch (34:3): [True: 128, False: 1.76k]
  ------------------
   35|    128|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   36|    570|		default:
  ------------------
  |  Branch (36:3): [True: 570, False: 1.32k]
  ------------------
   37|    570|			return new IcmpV6Layer(data, dataLen, prevLayer, packet);
   38|  1.89k|		}
   39|  1.89k|	}
_ZNK4pcpp11IcmpV6Layer14getMessageTypeEv:
   57|    550|	{
   58|    550|		return static_cast<ICMPv6MessageType>(getIcmpv6Header()->type);
   59|    550|	}
_ZN4pcpp11IcmpV6Layer22computeCalculateFieldsEv:
   72|    434|	{
   73|    434|		calculateChecksum();
   74|    434|	}
_ZN4pcpp11IcmpV6Layer17calculateChecksumEv:
   77|    434|	{
   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|    434|		getIcmpv6Header()->checksum = 0;
   85|       |
   86|    434|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (86:7): [True: 434, False: 0]
  ------------------
   87|    434|		{
   88|    434|			ScalarBuffer<uint16_t> vec[2];
   89|       |
   90|    434|			vec[0].buffer = (uint16_t*)m_Data;
   91|    434|			vec[0].len = m_DataLen;
   92|       |
   93|    434|			const unsigned int pseudoHeaderLen = 40;
   94|    434|			const unsigned int bigEndianLen = htobe32(m_DataLen);
   95|    434|			const unsigned int bigEndianNextHeader = htobe32(PACKETPP_IPPROTO_ICMPV6);
   96|       |
   97|    434|			uint16_t pseudoHeader[pseudoHeaderLen / 2];
   98|    434|			((IPv6Layer*)m_PrevLayer)->getSrcIPv6Address().copyTo((uint8_t*)pseudoHeader);
   99|    434|			((IPv6Layer*)m_PrevLayer)->getDstIPv6Address().copyTo((uint8_t*)(pseudoHeader + 8));
  100|    434|			memcpy(&pseudoHeader[16], &bigEndianLen, sizeof(uint32_t));
  101|    434|			memcpy(&pseudoHeader[18], &bigEndianNextHeader, sizeof(uint32_t));
  102|    434|			vec[1].buffer = pseudoHeader;
  103|    434|			vec[1].len = pseudoHeaderLen;
  104|       |
  105|       |			// Calculate and write checksum
  106|       |			getIcmpv6Header()->checksum = htobe16(computeChecksum(vec, 2));
  107|    434|		}
  108|    434|	}
_ZNK4pcpp11IcmpV6Layer8toStringEv:
  111|    272|	{
  112|    272|		std::ostringstream typeStream;
  113|    272|		typeStream << (int)getMessageType();
  114|    272|		return "ICMPv6 Layer, Message type: " + typeStream.str();
  115|    272|	}
_ZNK4pcpp15ICMPv6EchoLayer8toStringEv:
  162|    278|	{
  163|    278|		std::ostringstream typeStream;
  164|    278|		typeStream << (int)getMessageType();
  165|    278|		return "ICMPv6 Layer, Echo Request/Reply Message (type: " + typeStream.str() + ")";
  166|    278|	}

_ZNK4pcpp9IgmpLayer7getTypeEv:
   32|  5.70k|	{
   33|  5.70k|		uint8_t type = getIgmpHeader()->type;
   34|  5.70k|		if (type < (uint8_t)IgmpType_MembershipQuery ||
  ------------------
  |  Branch (34:7): [True: 0, False: 5.70k]
  ------------------
   35|  5.70k|		    (type > (uint8_t)IgmpType_LeaveGroup && type < (uint8_t)IgmpType_MulticastTracerouteResponse) ||
  ------------------
  |  Branch (35:8): [True: 880, False: 4.82k]
  |  Branch (35:47): [True: 0, False: 880]
  ------------------
   36|  5.70k|		    (type > (uint8_t)IgmpType_MulticastTraceroute && type < (uint8_t)IgmpType_MembershipReportV3) ||
  ------------------
  |  Branch (36:8): [True: 880, False: 4.82k]
  |  Branch (36:56): [True: 0, False: 880]
  ------------------
   37|  5.70k|		    (type > (uint8_t)IgmpType_MembershipReportV3 && type < (uint8_t)IgmpType_MulticastRouterAdvertisement) ||
  ------------------
  |  Branch (37:8): [True: 0, False: 5.70k]
  |  Branch (37:55): [True: 0, False: 0]
  ------------------
   38|  5.70k|		    type > IgmpType_MulticastRouterTermination)
  ------------------
  |  Branch (38:7): [True: 0, False: 5.70k]
  ------------------
   39|      0|		{
   40|      0|			return IgmpType_Unknown;
   41|      0|		}
   42|       |
   43|  5.70k|		return (IgmpType)type;
   44|  5.70k|	}
_ZN4pcpp9IgmpLayer18getIGMPVerFromDataEPhmRb:
   56|  14.3k|	{
   57|  14.3k|		isQuery = false;
   58|       |
   59|  14.3k|		if (dataLen < 8 || data == nullptr)
  ------------------
  |  Branch (59:7): [True: 140, False: 14.2k]
  |  Branch (59:22): [True: 0, False: 14.2k]
  ------------------
   60|    140|			return UnknownProtocol;
   61|       |
   62|  14.2k|		switch ((int)data[0])
   63|  14.2k|		{
   64|  1.47k|		case IgmpType_MembershipReportV2:
  ------------------
  |  Branch (64:3): [True: 1.47k, False: 12.7k]
  ------------------
   65|  4.09k|		case IgmpType_LeaveGroup:
  ------------------
  |  Branch (65:3): [True: 2.61k, False: 11.5k]
  ------------------
   66|  4.09k|			return IGMPv2;
   67|  1.21k|		case IgmpType_MembershipReportV1:
  ------------------
  |  Branch (67:3): [True: 1.21k, False: 12.9k]
  ------------------
   68|  1.21k|			return IGMPv1;
   69|  2.18k|		case IgmpType_MembershipReportV3:
  ------------------
  |  Branch (69:3): [True: 2.18k, False: 12.0k]
  ------------------
   70|  2.18k|			return IGMPv3;
   71|  6.35k|		case IgmpType_MembershipQuery:
  ------------------
  |  Branch (71:3): [True: 6.35k, False: 7.85k]
  ------------------
   72|  6.35k|		{
   73|  6.35k|			isQuery = true;
   74|       |
   75|  6.35k|			if (dataLen >= sizeof(igmpv3_query_header))
  ------------------
  |  Branch (75:8): [True: 1.42k, False: 4.92k]
  ------------------
   76|  1.42k|				return IGMPv3;
   77|       |
   78|  4.92k|			if (data[1] == 0)
  ------------------
  |  Branch (78:8): [True: 1.69k, False: 3.23k]
  ------------------
   79|  1.69k|				return IGMPv1;
   80|  3.23k|			else
   81|  3.23k|				return IGMPv2;
   82|  4.92k|		}
   83|    362|		default:
  ------------------
  |  Branch (83:3): [True: 362, False: 13.8k]
  ------------------
   84|    362|			return UnknownProtocol;
   85|  14.2k|		}
   86|  14.2k|	}
_ZN4pcpp9IgmpLayer17calculateChecksumEv:
   89|  2.85k|	{
   90|  2.85k|		ScalarBuffer<uint16_t> buffer;
   91|  2.85k|		buffer.buffer = reinterpret_cast<uint16_t*>(getIgmpHeader());
   92|  2.85k|		buffer.len = getHeaderLen();
   93|  2.85k|		return computeChecksum(&buffer, 1);
   94|  2.85k|	}
_ZNK4pcpp9IgmpLayer8toStringEv:
  113|  5.70k|	{
  114|  5.70k|		std::string igmpVer = "";
  115|  5.70k|		switch (getProtocol())
  116|  5.70k|		{
  117|  1.16k|		case IGMPv1:
  ------------------
  |  Branch (117:3): [True: 1.16k, False: 4.53k]
  ------------------
  118|  1.16k|			igmpVer = "1";
  119|  1.16k|			break;
  120|  2.93k|		case IGMPv2:
  ------------------
  |  Branch (120:3): [True: 2.93k, False: 2.76k]
  ------------------
  121|  2.93k|			igmpVer = "2";
  122|  2.93k|			break;
  123|  1.59k|		default:
  ------------------
  |  Branch (123:3): [True: 1.59k, False: 4.10k]
  ------------------
  124|  1.59k|			igmpVer = "3";
  125|  5.70k|		}
  126|       |
  127|  5.70k|		std::string msgType;
  128|       |
  129|  5.70k|		switch (getType())
  130|  5.70k|		{
  131|  2.68k|		case IgmpType_MembershipQuery:
  ------------------
  |  Branch (131:3): [True: 2.68k, False: 3.01k]
  ------------------
  132|  2.68k|			msgType = "Membership Query";
  133|  2.68k|			break;
  134|    492|		case IgmpType_MembershipReportV1:
  ------------------
  |  Branch (134:3): [True: 492, False: 5.20k]
  ------------------
  135|    492|			msgType = "Membership Report";
  136|    492|			break;
  137|      0|		case IgmpType_DVMRP:
  ------------------
  |  Branch (137:3): [True: 0, False: 5.70k]
  ------------------
  138|      0|			msgType = "DVMRP";
  139|      0|			break;
  140|      0|		case IgmpType_P1Mv1:
  ------------------
  |  Branch (140:3): [True: 0, False: 5.70k]
  ------------------
  141|      0|			msgType = "PIMv1";
  142|      0|			break;
  143|      0|		case IgmpType_CiscoTrace:
  ------------------
  |  Branch (143:3): [True: 0, False: 5.70k]
  ------------------
  144|      0|			msgType = "Cisco Trace";
  145|      0|			break;
  146|    594|		case IgmpType_MembershipReportV2:
  ------------------
  |  Branch (146:3): [True: 594, False: 5.10k]
  ------------------
  147|    594|			msgType = "Membership Report";
  148|    594|			break;
  149|  1.04k|		case IgmpType_LeaveGroup:
  ------------------
  |  Branch (149:3): [True: 1.04k, False: 4.65k]
  ------------------
  150|  1.04k|			msgType = "Leave Group";
  151|  1.04k|			break;
  152|      0|		case IgmpType_MulticastTracerouteResponse:
  ------------------
  |  Branch (152:3): [True: 0, False: 5.70k]
  ------------------
  153|      0|			msgType = "Multicast Traceroute Response";
  154|      0|			break;
  155|      0|		case IgmpType_MulticastTraceroute:
  ------------------
  |  Branch (155:3): [True: 0, False: 5.70k]
  ------------------
  156|      0|			msgType = "Multicast Traceroute";
  157|      0|			break;
  158|    880|		case IgmpType_MembershipReportV3:
  ------------------
  |  Branch (158:3): [True: 880, False: 4.82k]
  ------------------
  159|    880|			msgType = "Membership Report";
  160|    880|			break;
  161|      0|		case IgmpType_MulticastRouterAdvertisement:
  ------------------
  |  Branch (161:3): [True: 0, False: 5.70k]
  ------------------
  162|      0|			msgType = "Multicast Router Advertisement";
  163|      0|			break;
  164|      0|		case IgmpType_MulticastRouterSolicitation:
  ------------------
  |  Branch (164:3): [True: 0, False: 5.70k]
  ------------------
  165|      0|			msgType = "Multicast Router Solicitation";
  166|      0|			break;
  167|      0|		case IgmpType_MulticastRouterTermination:
  ------------------
  |  Branch (167:3): [True: 0, False: 5.70k]
  ------------------
  168|      0|			msgType = "Multicast Router Termination";
  169|      0|			break;
  170|      0|		default:
  ------------------
  |  Branch (170:3): [True: 0, False: 5.70k]
  ------------------
  171|      0|			msgType = "Unknown";
  172|      0|			break;
  173|  5.70k|		}
  174|       |
  175|  5.70k|		std::string result = "IGMPv" + igmpVer + " Layer, " + msgType + " message";
  176|  5.70k|		return result;
  177|  5.70k|	}
_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|  1.42k|	    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv3)
  202|  1.42k|	{}
_ZNK4pcpp16IgmpV3QueryLayer21getSourceAddressCountEv:
  211|    714|	{
  212|       |		return be16toh(getIgmpV3QueryHeader()->numOfSources);
  213|    714|	}
_ZNK4pcpp16IgmpV3QueryLayer12getHeaderLenEv:
  231|    714|	{
  232|    714|		uint16_t numOfSources = getSourceAddressCount();
  233|       |
  234|    714|		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|    714|		if ((size_t)headerLen > getDataLen())
  ------------------
  |  Branch (237:7): [True: 140, False: 574]
  ------------------
  238|    140|			return getDataLen();
  239|       |
  240|    574|		return (size_t)headerLen;
  241|    714|	}
_ZN4pcpp16IgmpV3QueryLayer22computeCalculateFieldsEv:
  244|    357|	{
  245|    357|		igmpv3_query_header* hdr = getIgmpV3QueryHeader();
  246|    357|		hdr->checksum = 0;
  247|       |		hdr->checksum = htobe16(calculateChecksum());
  248|    357|	}
_ZN4pcpp17IgmpV3ReportLayer22computeCalculateFieldsEv:
  363|    440|	{
  364|    440|		igmpv3_report_header* hdr = getReportHeader();
  365|    440|		hdr->checksum = 0;
  366|       |		hdr->checksum = htobe16(calculateChecksum());
  367|    440|	}

_ZN4pcpp8LLCLayer14parseNextLayerEv:
   28|  3.47k|	{
   29|  3.47k|		if (m_DataLen <= sizeof(llc_header))
  ------------------
  |  Branch (29:7): [True: 1.27k, False: 2.19k]
  ------------------
   30|  1.27k|			return;
   31|       |
   32|  2.19k|		llc_header* hdr = getLlcHeader();
   33|  2.19k|		uint8_t* payload = m_Data + sizeof(llc_header);
   34|  2.19k|		size_t payloadLen = m_DataLen - sizeof(llc_header);
   35|       |
   36|  2.19k|		if (hdr->dsap == 0x42 && hdr->ssap == 0x42 && StpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (36:7): [True: 128, False: 2.07k]
  |  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.19k|		if (!hasNextLayer())
  ------------------
  |  Branch (41:7): [True: 2.19k, False: 0]
  ------------------
   42|  2.19k|		{
   43|  2.19k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   44|  2.19k|		}
   45|  2.19k|	}
_ZNK4pcpp8LLCLayer8toStringEv:
   48|  1.80k|	{
   49|  1.80k|		return "Logical Link Control";
   50|  1.80k|	}
_ZN4pcpp8LLCLayer11isDataValidEPKhm:
   53|  3.72k|	{
   54|  3.72k|		return dataLen >= sizeof(llc_header) && !(data[0] == 0xFF && data[1] == 0xFF);
  ------------------
  |  Branch (54:10): [True: 3.59k, False: 129]
  |  Branch (54:45): [True: 128, False: 3.47k]
  |  Branch (54:64): [True: 128, False: 0]
  ------------------
   55|  3.72k|	}

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

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

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

_ZNK4pcpp12NDPLayerBase12getNdpOptionENS_22NDPNeighborOptionTypesE:
   45|    322|	{
   46|    322|		return m_OptionReader.getTLVRecord((uint8_t)option, getNdpOptionsBasePtr(), getHeaderLen() - getNdpHeaderLen());
   47|    322|	}
_ZNK4pcpp28NDPNeighborSolicitationLayer19hasLinkLayerAddressEv:
  123|    314|	{
  124|    314|		NdpOption option = this->getNdpOption(NDPNeighborOptionTypes::NDP_OPTION_SOURCE_LINK_LAYER);
  125|    314|		return option.isNull() ? false : true;
  ------------------
  |  Branch (125:10): [True: 314, False: 0]
  ------------------
  126|    314|	}
_ZNK4pcpp28NDPNeighborSolicitationLayer8toStringEv:
  141|    314|	{
  142|    314|		std::ostringstream typeStream;
  143|    314|		typeStream << "ICMPv6 Layer, Neighbor Solicitation Message, TargetIP: " + getTargetIP().toString();
  144|    314|		hasLinkLayerAddress() ? typeStream << ", SourceMAC: " + getLinkLayerAddress().toString()
  ------------------
  |  Branch (144:3): [True: 0, False: 314]
  ------------------
  145|    314|		                      : typeStream << ", no Option";
  146|       |
  147|    314|		return typeStream.str();
  148|    314|	}
_ZNK4pcpp29NDPNeighborAdvertisementLayer16hasTargetMacInfoEv:
  186|      4|	{
  187|      4|		NdpOption option = this->getNdpOption(NDPNeighborOptionTypes::NDP_OPTION_TARGET_LINK_LAYER);
  188|      4|		return option.isNull() ? false : true;
  ------------------
  |  Branch (188:10): [True: 0, False: 4]
  ------------------
  189|      4|	}
_ZNK4pcpp29NDPNeighborAdvertisementLayer12getTargetMacEv:
  192|      4|	{
  193|      4|		NdpOption option = this->getNdpOption(NDPNeighborOptionTypes::NDP_OPTION_TARGET_LINK_LAYER);
  194|       |
  195|      4|		if (option.isNull())
  ------------------
  |  Branch (195:7): [True: 0, False: 4]
  ------------------
  196|      0|		{
  197|      0|			return MacAddress::Zero;
  198|      0|		}
  199|       |
  200|      4|		return MacAddress(option.getValue());
  201|      4|	}
_ZNK4pcpp29NDPNeighborAdvertisementLayer8toStringEv:
  204|      4|	{
  205|      4|		std::ostringstream typeStream;
  206|      4|		typeStream << "ICMPv6 Layer, Neighbor Advertisement Message, TargetIP: " << getTargetIP().toString();
  207|      4|		hasTargetMacInfo() ? typeStream << ", TargetMAC: " + getTargetMac().toString() : typeStream << ", no Option";
  ------------------
  |  Branch (207:3): [True: 4, False: 0]
  ------------------
  208|       |
  209|      4|		return typeStream.str();
  210|      4|	}

_ZNK4pcpp10NflogLayer12getTlvByTypeENS_12NflogTlvTypeE:
   33|  1.75k|	{
   34|  1.75k|		const auto typeNum = static_cast<uint32_t>(type);
   35|  1.75k|		NflogTlv tlv = m_TlvReader.getTLVRecord(typeNum, getTlvsBasePtr(), m_DataLen - sizeof(nflog_header));
   36|       |
   37|  1.75k|		return tlv;
   38|  1.75k|	}
_ZN4pcpp10NflogLayer14parseNextLayerEv:
   41|  1.78k|	{
   42|  1.78k|		if (m_DataLen <= sizeof(nflog_header))
  ------------------
  |  Branch (42:7): [True: 32, False: 1.75k]
  ------------------
   43|     32|		{
   44|     32|			return;
   45|     32|		}
   46|  1.75k|		auto payloadInfo = getTlvByType(NflogTlvType::NFULA_PAYLOAD);
   47|  1.75k|		if (payloadInfo.isNull())
  ------------------
  |  Branch (47:7): [True: 1.75k, False: 0]
  ------------------
   48|  1.75k|		{
   49|  1.75k|			return;
   50|  1.75k|		}
   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|    893|	{
   79|    893|		size_t headerLen = sizeof(nflog_header);
   80|    893|		NflogTlv currentTLV = m_TlvReader.getFirstTLVRecord(getTlvsBasePtr(), m_DataLen - sizeof(nflog_header));
   81|       |
   82|  1.49k|		while (!currentTLV.isNull() && currentTLV.getType() != static_cast<uint16_t>(NflogTlvType::NFULA_PAYLOAD))
  ------------------
  |  Branch (82:10): [True: 602, False: 893]
  |  Branch (82:34): [True: 602, False: 0]
  ------------------
   83|    602|		{
   84|    602|			headerLen += currentTLV.getTotalSize();
   85|    602|			currentTLV = m_TlvReader.getNextTLVRecord(currentTLV, getTlvsBasePtr(), m_DataLen - sizeof(nflog_header));
   86|    602|		}
   87|    893|		if (!currentTLV.isNull() && currentTLV.getType() == static_cast<uint16_t>(NflogTlvType::NFULA_PAYLOAD))
  ------------------
  |  Branch (87:7): [True: 0, False: 893]
  |  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|    893|		return headerLen;
   94|    893|	}
_ZNK4pcpp10NflogLayer8toStringEv:
   97|  1.78k|	{
   98|  1.78k|		return "Linux Netfilter NFLOG";
   99|  1.78k|	}
_ZN4pcpp10NflogLayer11isDataValidEPKhm:
  102|  1.91k|	{
  103|  1.91k|		return data && dataLen >= sizeof(nflog_header);
  ------------------
  |  Branch (103:10): [True: 1.91k, False: 0]
  |  Branch (103:18): [True: 1.78k, False: 130]
  ------------------
  104|  1.91k|	}

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

_ZNK4pcpp17NullLoopbackLayer9getFamilyEv:
   27|  3.89k|	{
   28|  3.89k|		uint32_t family = *(reinterpret_cast<uint32_t*>(m_Data));
   29|  3.89k|		if ((family & 0xFFFF'0000) != 0)
  ------------------
  |  Branch (29:7): [True: 3.37k, False: 515]
  ------------------
   30|  3.37k|		{
   31|  3.37k|			if ((family & 0xFF00'0000) == 0 && (family & 0x00FF'0000) < 0x0006'0000)
  ------------------
  |  Branch (31:8): [True: 1.75k, False: 1.61k]
  |  Branch (31:39): [True: 528, False: 1.23k]
  ------------------
   32|    528|			{
   33|    528|				family >>= 16;
   34|    528|			}
   35|  2.84k|			else
   36|  2.84k|			{
   37|  2.84k|				family = BSWAP32(family);
  ------------------
  |  |   11|  2.84k|#define BSWAP32(x) (((x) >> 24) | (((x) & 0x00FF'0000) >> 8) | (((x) & 0x0000'FF00) << 8) | ((x) << 24))
  ------------------
   38|  2.84k|			}
   39|  3.37k|		}
   40|    515|		else if ((family & 0x0000'00FF) == 0 && (family & 0x0000'FF00) < 0x0000'0600)
  ------------------
  |  Branch (40:12): [True: 228, False: 287]
  |  Branch (40:43): [True: 99, False: 129]
  ------------------
   41|     99|		{
   42|     99|			family = BSWAP16(family & 0xFFFF);
  ------------------
  |  |   10|     99|#define BSWAP16(x) (((x) >> 8) | ((x) << 8))
  ------------------
   43|     99|		}
   44|       |
   45|  3.89k|		return family;
   46|  3.89k|	}
_ZN4pcpp17NullLoopbackLayer14parseNextLayerEv:
   54|  3.89k|	{
   55|  3.89k|		uint8_t* payload = m_Data + sizeof(uint32_t);
   56|  3.89k|		size_t payloadLen = m_DataLen - sizeof(uint32_t);
   57|       |
   58|  3.89k|		uint32_t family = getFamily();
   59|  3.89k|		if (family > IEEE_802_3_MAX_LEN)
  ------------------
  |  |   13|  3.89k|#define IEEE_802_3_MAX_LEN 0x5dc
  ------------------
  |  Branch (59:7): [True: 1.36k, False: 2.52k]
  ------------------
   60|  1.36k|		{
   61|  1.36k|			uint16_t ethType = static_cast<uint16_t>(family);
   62|  1.36k|			switch (ethType)
   63|  1.36k|			{
   64|    387|			case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|    387|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (64:4): [True: 387, False: 978]
  ------------------
   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: 1.36k]
  ------------------
   70|      0|			{
   71|      0|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   72|      0|				return;
   73|      0|			}
   74|    978|			default:
  ------------------
  |  Branch (74:4): [True: 978, False: 387]
  ------------------
   75|    978|			{
   76|    978|				constructNextLayer<PayloadLayer>(payload, payloadLen);
   77|    978|				return;
   78|      0|			}
   79|  1.36k|			}
   80|  1.36k|		}
   81|       |
   82|  2.52k|		switch (family)
   83|  2.52k|		{
   84|     35|		case PCPP_BSD_AF_INET:
  ------------------
  |  |   13|     35|#define PCPP_BSD_AF_INET 2
  ------------------
  |  Branch (84:3): [True: 35, False: 2.49k]
  ------------------
   85|     35|		{
   86|     35|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   87|     35|			break;
   88|      0|		}
   89|    378|		case PCPP_BSD_AF_INET6_BSD:
  ------------------
  |  |   23|    378|#define PCPP_BSD_AF_INET6_BSD 24
  ------------------
  |  Branch (89:3): [True: 378, False: 2.14k]
  ------------------
   90|    378|		case PCPP_BSD_AF_INET6_FREEBSD:
  ------------------
  |  |   25|    378|#define PCPP_BSD_AF_INET6_FREEBSD 28
  ------------------
  |  Branch (90:3): [True: 0, False: 2.52k]
  ------------------
   91|  1.83k|		case PCPP_BSD_AF_INET6_DARWIN:
  ------------------
  |  |   27|  1.83k|#define PCPP_BSD_AF_INET6_DARWIN 30
  ------------------
  |  Branch (91:3): [True: 1.45k, False: 1.07k]
  ------------------
   92|  1.83k|		{
   93|  1.83k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   94|  1.83k|			break;
   95|    378|		}
   96|    657|		default:
  ------------------
  |  Branch (96:3): [True: 657, False: 1.86k]
  ------------------
   97|    657|		{
   98|    657|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   99|    657|			break;
  100|    378|		}
  101|  2.52k|		}
  102|  2.52k|	}
_ZNK4pcpp17NullLoopbackLayer8toStringEv:
  105|  2.53k|	{
  106|  2.53k|		return "Null/Loopback";
  107|  2.53k|	}

_ZN4pcpp10PPPoELayer22computeCalculateFieldsEv:
   35|  4.11k|	{
   36|  4.11k|		pppoe_header* pppoeHdr = getPPPoEHeader();
   37|       |		pppoeHdr->payloadLength = htobe16(m_DataLen - sizeof(pppoe_header));
   38|  4.11k|	}
_ZN4pcpp17PPPoESessionLayer14parseNextLayerEv:
   44|  42.0k|	{
   45|  42.0k|		size_t headerLen = getHeaderLen();
   46|  42.0k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (46:7): [True: 0, False: 42.0k]
  ------------------
   47|      0|			return;
   48|       |
   49|  42.0k|		uint8_t* payload = m_Data + headerLen;
   50|  42.0k|		size_t payloadLen = m_DataLen - headerLen;
   51|       |
   52|  42.0k|		switch (getPPPNextProtocol())
   53|  42.0k|		{
   54|  40.7k|		case PCPP_PPP_IP:
  ------------------
  |  |  398|  40.7k|#define PCPP_PPP_IP 0x21
  ------------------
  |  Branch (54:3): [True: 40.7k, False: 1.27k]
  ------------------
   55|  40.7k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   56|  40.7k|			break;
   57|     15|		case PCPP_PPP_IPV6:
  ------------------
  |  |  450|     15|#define PCPP_PPP_IPV6 0x57
  ------------------
  |  Branch (57:3): [True: 15, False: 42.0k]
  ------------------
   58|     15|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   59|     15|			break;
   60|  1.25k|		default:
  ------------------
  |  Branch (60:3): [True: 1.25k, False: 40.7k]
  ------------------
   61|  1.25k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   62|  1.25k|			break;
   63|  42.0k|		}
   64|  42.0k|	}
_ZNK4pcpp17PPPoESessionLayer18getPPPNextProtocolEv:
   67|  50.1k|	{
   68|  50.1k|		if (m_DataLen < getHeaderLen())
  ------------------
  |  Branch (68:7): [True: 0, False: 50.1k]
  ------------------
   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|  50.1k|		uint16_t pppNextProto = *reinterpret_cast<uint16_t*>(m_Data + sizeof(pppoe_header));
   75|       |		return be16toh(pppNextProto);
   76|  50.1k|	}
_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|  7.81k|	{
  233|  7.81k|		auto findResult = PPPNextProtoToString.find(getPPPNextProtocol());
  234|  7.81k|		std::string nextProtocol;
  235|  7.81k|		if (findResult != PPPNextProtoToString.end())
  ------------------
  |  Branch (235:7): [True: 7.46k, False: 348]
  ------------------
  236|  7.46k|			nextProtocol = findResult->second;
  237|    348|		else
  238|    348|		{
  239|    348|			std::ostringstream stream;
  240|    348|			stream << "Unknown (0x" << std::hex << getPPPNextProtocol() << ")";
  241|    348|			nextProtocol = stream.str();
  242|    348|		}
  243|       |
  244|  7.81k|		return "PPP-over-Ethernet Session (followed by '" + nextProtocol + "')";
  245|  7.81k|	}
_ZNK4pcpp19PPPoEDiscoveryLayer12getHeaderLenEv:
  366|  1.23k|	{
  367|  1.23k|		size_t payloadLen = sizeof(pppoe_header) + be16toh(getPPPoEHeader()->payloadLength);
  368|  1.23k|		if (payloadLen > m_DataLen)
  ------------------
  |  Branch (368:7): [True: 108, False: 1.12k]
  ------------------
  369|    108|			return m_DataLen;
  370|       |
  371|  1.12k|		return payloadLen;
  372|  1.23k|	}
_ZNK4pcpp19PPPoEDiscoveryLayer12codeToStringENS_10PPPoELayer9PPPoECodeE:
  412|    412|	{
  413|    412|		switch (code)
  414|    412|		{
  415|    376|		case PPPoELayer::PPPOE_CODE_SESSION:
  ------------------
  |  Branch (415:3): [True: 376, False: 36]
  ------------------
  416|    376|			return std::string("PPPoE Session");
  417|      0|		case PPPoELayer::PPPOE_CODE_PADO:
  ------------------
  |  Branch (417:3): [True: 0, False: 412]
  ------------------
  418|      0|			return std::string("PADO");
  419|      0|		case PPPoELayer::PPPOE_CODE_PADI:
  ------------------
  |  Branch (419:3): [True: 0, False: 412]
  ------------------
  420|      0|			return std::string("PADI");
  421|      0|		case PPPoELayer::PPPOE_CODE_PADG:
  ------------------
  |  Branch (421:3): [True: 0, False: 412]
  ------------------
  422|      0|			return std::string("PADG");
  423|      0|		case PPPoELayer::PPPOE_CODE_PADC:
  ------------------
  |  Branch (423:3): [True: 0, False: 412]
  ------------------
  424|      0|			return std::string("PADC");
  425|      0|		case PPPoELayer::PPPOE_CODE_PADQ:
  ------------------
  |  Branch (425:3): [True: 0, False: 412]
  ------------------
  426|      0|			return std::string("PADQ");
  427|      0|		case PPPoELayer::PPPOE_CODE_PADR:
  ------------------
  |  Branch (427:3): [True: 0, False: 412]
  ------------------
  428|      0|			return std::string("PADR");
  429|     36|		case PPPoELayer::PPPOE_CODE_PADS:
  ------------------
  |  Branch (429:3): [True: 36, False: 376]
  ------------------
  430|     36|			return std::string("PADS");
  431|      0|		case PPPoELayer::PPPOE_CODE_PADT:
  ------------------
  |  Branch (431:3): [True: 0, False: 412]
  ------------------
  432|      0|			return std::string("PADT");
  433|      0|		case PPPoELayer::PPPOE_CODE_PADM:
  ------------------
  |  Branch (433:3): [True: 0, False: 412]
  ------------------
  434|      0|			return std::string("PADM");
  435|      0|		case PPPoELayer::PPPOE_CODE_PADN:
  ------------------
  |  Branch (435:3): [True: 0, False: 412]
  ------------------
  436|      0|			return std::string("PADN");
  437|      0|		default:
  ------------------
  |  Branch (437:3): [True: 0, False: 412]
  ------------------
  438|      0|			return std::string("Unknown PPPoE code");
  439|    412|		}
  440|    412|	}

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

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

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

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

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

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

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

_ZNK4pcpp11S7CommLayer8toStringEv:
   48|  4.24k|	{
   49|  4.24k|		std::ostringstream str;
   50|  4.24k|		str << "S7Comm Layer, ";
   51|       |
   52|  4.24k|		switch (getS7commHeader()->msgType)
   53|  4.24k|		{
   54|  1.63k|		case 0x01:
  ------------------
  |  Branch (54:3): [True: 1.63k, False: 2.60k]
  ------------------
   55|  1.63k|			str << "Job Request";
   56|  1.63k|			break;
   57|     10|		case 0x02:
  ------------------
  |  Branch (57:3): [True: 10, False: 4.23k]
  ------------------
   58|     10|			str << "Ack";
   59|     10|			break;
   60|  1.31k|		case 0x03:
  ------------------
  |  Branch (60:3): [True: 1.31k, False: 2.93k]
  ------------------
   61|  1.31k|			str << "Ack-Data";
   62|  1.31k|			break;
   63|  1.15k|		case 0x07:
  ------------------
  |  Branch (63:3): [True: 1.15k, False: 3.08k]
  ------------------
   64|  1.15k|			str << "Userdata";
   65|  1.15k|			break;
   66|    126|		default:
  ------------------
  |  Branch (66:3): [True: 126, False: 4.11k]
  ------------------
   67|    126|			str << "Unknown message";
   68|  4.24k|		}
   69|       |
   70|  4.24k|		return str.str();
   71|  4.24k|	}
_ZN4pcpp11S7CommLayer11isDataValidEPKhm:
   74|  16.3k|	{
   75|  16.3k|		if (!data || dataSize < sizeof(s7commhdr))
  ------------------
  |  Branch (75:7): [True: 0, False: 16.3k]
  |  Branch (75:16): [True: 296, False: 16.0k]
  ------------------
   76|    296|			return false;
   77|       |
   78|  16.0k|		return data[0] == 0x32;
   79|  16.3k|	}

_ZN4pcpp8SSHLayer16createSSHMessageEPhmPNS_5LayerEPNS_6PacketE:
   19|  17.0k|	{
   20|  17.0k|		SSHIdentificationMessage* sshIdnetMsg = SSHIdentificationMessage::tryParse(data, dataLen, prevLayer, packet);
   21|  17.0k|		if (sshIdnetMsg != nullptr)
  ------------------
  |  Branch (21:7): [True: 1.83k, False: 15.2k]
  ------------------
   22|  1.83k|			return sshIdnetMsg;
   23|       |
   24|  15.2k|		SSHHandshakeMessage* sshHandshakeMessage = SSHHandshakeMessage::tryParse(data, dataLen, prevLayer, packet);
   25|  15.2k|		if (sshHandshakeMessage != nullptr)
  ------------------
  |  Branch (25:7): [True: 8.57k, False: 6.63k]
  ------------------
   26|  8.57k|			return sshHandshakeMessage;
   27|       |
   28|  6.63k|		return new SSHEncryptedMessage(data, dataLen, prevLayer, packet);
   29|  15.2k|	}
_ZN4pcpp8SSHLayer14parseNextLayerEv:
   32|  17.0k|	{
   33|  17.0k|		size_t headerLen = getHeaderLen();
   34|  17.0k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (34:7): [True: 14.7k, False: 2.28k]
  ------------------
   35|  14.7k|			return;
   36|       |
   37|  2.28k|		constructNextLayerFromFactory(SSHLayer::createSSHMessage, m_Data + headerLen, m_DataLen - headerLen);
   38|  2.28k|	}
_ZN4pcpp24SSHIdentificationMessage8tryParseEPhmPNS_5LayerEPNS_6PacketE:
   46|  17.0k|	{
   47|       |		// Payload must be at least as long as the string "SSH-"
   48|  17.0k|		if (dataLen < 5)
  ------------------
  |  Branch (48:7): [True: 1.71k, False: 15.3k]
  ------------------
   49|  1.71k|			return nullptr;
   50|       |
   51|       |		// Payload must begin with "SSH-" and end with "\n"
   52|  15.3k|		if (data[0] == 0x53 && data[1] == 0x53 && data[2] == 0x48 && data[3] == 0x2d && data[dataLen - 1] == 0x0a)
  ------------------
  |  Branch (52:7): [True: 2.30k, False: 13.0k]
  |  Branch (52:26): [True: 2.29k, False: 5]
  |  Branch (52:45): [True: 2.29k, False: 5]
  |  Branch (52:64): [True: 2.29k, False: 0]
  |  Branch (52:83): [True: 1.83k, False: 455]
  ------------------
   53|  1.83k|			return new SSHIdentificationMessage(data, dataLen, prevLayer, packet);
   54|       |
   55|  13.4k|		return nullptr;
   56|  15.3k|	}
_ZNK4pcpp24SSHIdentificationMessage8toStringEv:
   66|    734|	{
   67|    734|		return std::string(SSH_LAYER_BASE_STRING) + ", " + "Identification message";
  ------------------
  |  |   12|    734|#define SSH_LAYER_BASE_STRING "SSH Layer"
  ------------------
   68|    734|	}
_ZNK4pcpp19SSHHandshakeMessage14getMessageTypeEv:
   75|  3.13k|	{
   76|  3.13k|		uint8_t messageCode = getMsgBaseHeader()->messageCode;
   77|  3.13k|		if (messageCode == 20 || messageCode == 21 || (messageCode >= 30 && messageCode <= 34))
  ------------------
  |  Branch (77:7): [True: 90, False: 3.04k]
  |  Branch (77:28): [True: 1.36k, False: 1.67k]
  |  Branch (77:50): [True: 1.67k, False: 0]
  |  Branch (77:71): [True: 1.65k, False: 24]
  ------------------
   78|  3.10k|			return static_cast<SSHHandshakeMessage::SSHHandshakeMessageType>(messageCode);
   79|     24|		return SSHHandshakeMessage::SSH_MSG_UNKNOWN;
   80|  3.13k|	}
_ZNK4pcpp19SSHHandshakeMessage17getMessageTypeStrEv:
   83|  3.13k|	{
   84|  3.13k|		switch (getMessageType())
   85|  3.13k|		{
   86|     90|		case SSHHandshakeMessage::SSH_MSG_KEX_INIT:
  ------------------
  |  Branch (86:3): [True: 90, False: 3.04k]
  ------------------
   87|     90|			return "Key Exchange Init";
   88|  1.36k|		case SSHHandshakeMessage::SSH_MSG_NEW_KEYS:
  ------------------
  |  Branch (88:3): [True: 1.36k, False: 1.76k]
  ------------------
   89|  1.36k|			return "New Keys";
   90|      2|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_INIT:
  ------------------
  |  Branch (90:3): [True: 2, False: 3.13k]
  ------------------
   91|      2|			return "Diffie-Hellman Key Exchange Init";
   92|     14|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_REPLY:
  ------------------
  |  Branch (92:3): [True: 14, False: 3.11k]
  ------------------
   93|     14|			return "Diffie-Hellman Key Exchange Reply";
   94|    880|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_INIT:
  ------------------
  |  Branch (94:3): [True: 880, False: 2.25k]
  ------------------
   95|    880|			return "Diffie-Hellman Group Exchange Init";
   96|    730|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_REPLY:
  ------------------
  |  Branch (96:3): [True: 730, False: 2.40k]
  ------------------
   97|    730|			return "Diffie-Hellman Group Exchange Reply";
   98|     24|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_REQUEST:
  ------------------
  |  Branch (98:3): [True: 24, False: 3.10k]
  ------------------
   99|     24|			return "Diffie-Hellman Group Exchange Request";
  100|     24|		default:
  ------------------
  |  Branch (100:3): [True: 24, False: 3.10k]
  ------------------
  101|     24|			return "Unknown";
  102|  3.13k|		}
  103|  3.13k|	}
_ZNK4pcpp19SSHHandshakeMessage12getHeaderLenEv:
  122|  10.1k|	{
  123|       |		return (size_t)be32toh(getMsgBaseHeader()->packetLength) + sizeof(uint32_t);
  124|  10.1k|	}
_ZNK4pcpp19SSHHandshakeMessage8toStringEv:
  127|  3.13k|	{
  128|  3.13k|		return std::string(SSH_LAYER_BASE_STRING) + ", " + "Handshake Message: " + getMessageTypeStr();
  ------------------
  |  |   12|  3.13k|#define SSH_LAYER_BASE_STRING "SSH Layer"
  ------------------
  129|  3.13k|	}
_ZN4pcpp19SSHHandshakeMessage8tryParseEPhmPNS_5LayerEPNS_6PacketE:
  132|  15.2k|	{
  133|  15.2k|		if (dataLen < sizeof(SSHHandshakeMessage::ssh_message_base))
  ------------------
  |  Branch (133:7): [True: 1.71k, False: 13.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|  13.4k|		SSHHandshakeMessage::ssh_message_base* msgBase = (SSHHandshakeMessage::ssh_message_base*)data;
  141|       |
  142|  13.4k|		uint32_t msgLength = be32toh(msgBase->packetLength);
  143|  13.4k|		if (msgLength + sizeof(uint32_t) > dataLen)
  ------------------
  |  Branch (143:7): [True: 4.89k, False: 8.60k]
  ------------------
  144|  4.89k|		{
  145|  4.89k|			PCPP_LOG_DEBUG("Message size is larger than layer size. It's probably not an SSH handshake message");
  ------------------
  |  |  425|  4.89k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  4.89k|	do                                                                                                                 \
  |  |  |  |  413|  4.89k|	{                                                                                                                  \
  |  |  |  |  414|  4.89k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  4.89k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.89k|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 4.89k]
  |  |  |  |  ------------------
  |  |  |  |  416|  4.89k|		{                                                                                                              \
  |  |  |  |  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.89k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 4.89k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  146|  4.89k|			return nullptr;
  147|  4.89k|		}
  148|       |
  149|  8.60k|		if (msgBase->paddingLength > msgLength)
  ------------------
  |  Branch (149:7): [True: 22, False: 8.57k]
  ------------------
  150|     22|		{
  151|     22|			PCPP_LOG_DEBUG("Message padding is larger than message size. It's probably not an SSH handshake message");
  ------------------
  |  |  425|     22|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|     22|	do                                                                                                                 \
  |  |  |  |  413|     22|	{                                                                                                                  \
  |  |  |  |  414|     22|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     22|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     22|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 22]
  |  |  |  |  ------------------
  |  |  |  |  416|     22|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|     22|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 22]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  152|     22|			return nullptr;
  153|     22|		}
  154|       |
  155|  8.57k|		if (msgBase->messageCode != 20 && msgBase->messageCode != 21 &&
  ------------------
  |  Branch (155:7): [True: 8.35k, False: 225]
  |  Branch (155:37): [True: 4.57k, False: 3.78k]
  ------------------
  156|  4.57k|		    (msgBase->messageCode < 30 || msgBase->messageCode > 49))
  ------------------
  |  Branch (156:8): [True: 6, False: 4.56k]
  |  Branch (156:37): [True: 0, False: 4.56k]
  ------------------
  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|  8.57k|		switch (msgBase->messageCode)
  164|  8.57k|		{
  165|    225|		case SSHHandshakeMessage::SSH_MSG_KEX_INIT:
  ------------------
  |  Branch (165:3): [True: 225, False: 8.34k]
  ------------------
  166|    225|			return new SSHKeyExchangeInitMessage(data, dataLen, prevLayer, packet);
  167|  8.34k|		default:
  ------------------
  |  Branch (167:3): [True: 8.34k, False: 225]
  ------------------
  168|  8.34k|			return new SSHHandshakeMessage(data, dataLen, prevLayer, packet);
  169|  8.57k|		}
  170|  8.57k|	}
_ZN4pcpp25SSHKeyExchangeInitMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  178|    225|	    : SSHHandshakeMessage(data, dataLen, prevLayer, packet), m_OffsetsInitialized(false)
  179|    225|	{
  180|    225|		memset(m_FieldOffsets, 0, 11 * sizeof(size_t));
  181|    225|	}
_ZNK4pcpp19SSHEncryptedMessage8toStringEv:
  256|  2.48k|	{
  257|  2.48k|		return std::string(SSH_LAYER_BASE_STRING) + ", " + "Encrypted Message";
  ------------------
  |  |   12|  2.48k|#define SSH_LAYER_BASE_STRING "SSH Layer"
  ------------------
  258|  2.48k|	}

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

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

_ZN4pcpp8SSLLayer12IsSSLMessageEttPhmb:
   15|   535k|	{
   16|       |		// check the port map first
   17|   535k|		if (!ignorePorts && !isSSLPort(srcPort) && !isSSLPort(dstPort))
  ------------------
  |  Branch (17:7): [True: 403k, False: 132k]
  |  Branch (17:23): [True: 360k, False: 42.3k]
  |  Branch (17:46): [True: 265k, False: 94.9k]
  ------------------
   18|   265k|			return false;
   19|       |
   20|   269k|		if (dataLen < sizeof(ssl_tls_record_layer))
  ------------------
  |  Branch (20:7): [True: 27.8k, False: 241k]
  ------------------
   21|  27.8k|			return false;
   22|       |
   23|   241k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   24|       |
   25|       |		// there is no SSL message with length 0
   26|   241k|		if (recordLayer->length == 0)
  ------------------
  |  Branch (26:7): [True: 4.04k, False: 237k]
  ------------------
   27|  4.04k|			return false;
   28|       |
   29|   237k|		if (recordLayer->recordType < 20 || recordLayer->recordType > 23)
  ------------------
  |  Branch (29:7): [True: 1.15k, False: 236k]
  |  Branch (29:39): [True: 14.4k, False: 222k]
  ------------------
   30|  15.5k|			return false;
   31|       |
   32|   222k|		SSLVersion::SSLVersionEnum recordVersion = SSLVersion(be16toh(recordLayer->recordVersion)).asEnum(true);
   33|       |
   34|   222k|		if (recordVersion == SSLVersion::TLS1_3 || recordVersion == SSLVersion::TLS1_2 ||
  ------------------
  |  Branch (34:7): [True: 2.26k, False: 219k]
  |  Branch (34:46): [True: 171k, False: 48.1k]
  ------------------
   35|  48.1k|		    recordVersion == SSLVersion::TLS1_1 || recordVersion == SSLVersion::TLS1_0 ||
  ------------------
  |  Branch (35:7): [True: 3.35k, False: 44.7k]
  |  Branch (35:46): [True: 41.0k, False: 3.72k]
  ------------------
   36|  3.72k|		    recordVersion == SSLVersion::SSL3)
  ------------------
  |  Branch (36:7): [True: 3.02k, False: 699]
  ------------------
   37|   221k|			return true;
   38|    699|		else
   39|    699|			return false;
   40|   222k|	}
_ZN4pcpp8SSLLayer16createSSLMessageEPhmPNS_5LayerEPNS_6PacketE:
   43|   221k|	{
   44|   221k|		if (!canReinterpretAs<ssl_tls_record_layer>(data, dataLen))
  ------------------
  |  Branch (44:7): [True: 0, False: 221k]
  ------------------
   45|      0|		{
   46|      0|			return nullptr;
   47|      0|		}
   48|       |
   49|   221k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   50|   221k|		switch (recordLayer->recordType)
   51|   221k|		{
   52|   117k|		case SSL_HANDSHAKE:
  ------------------
  |  Branch (52:3): [True: 117k, False: 103k]
  ------------------
   53|   117k|		{
   54|   117k|			return new SSLHandshakeLayer(data, dataLen, prevLayer, packet);
   55|      0|		}
   56|       |
   57|  5.21k|		case SSL_ALERT:
  ------------------
  |  Branch (57:3): [True: 5.21k, False: 216k]
  ------------------
   58|  5.21k|		{
   59|  5.21k|			return new SSLAlertLayer(data, dataLen, prevLayer, packet);
   60|      0|		}
   61|       |
   62|  72.1k|		case SSL_CHANGE_CIPHER_SPEC:
  ------------------
  |  Branch (62:3): [True: 72.1k, False: 149k]
  ------------------
   63|  72.1k|		{
   64|  72.1k|			return new SSLChangeCipherSpecLayer(data, dataLen, prevLayer, packet);
   65|      0|		}
   66|       |
   67|  26.3k|		case SSL_APPLICATION_DATA:
  ------------------
  |  Branch (67:3): [True: 26.3k, False: 195k]
  ------------------
   68|  26.3k|		{
   69|  26.3k|			return new SSLApplicationDataLayer(data, dataLen, prevLayer, packet);
   70|      0|		}
   71|       |
   72|      0|		default:
  ------------------
  |  Branch (72:3): [True: 0, False: 221k]
  ------------------
   73|      0|			return nullptr;
   74|   221k|		}
   75|   221k|	}
_ZNK4pcpp8SSLLayer16getRecordVersionEv:
   78|  71.4k|	{
   79|       |		uint16_t recordVersion = be16toh(getRecordLayer()->recordVersion);
   80|  71.4k|		return SSLVersion(recordVersion);
   81|  71.4k|	}
_ZNK4pcpp8SSLLayer12getHeaderLenEv:
   89|   257k|	{
   90|   257k|		size_t len = sizeof(ssl_tls_record_layer) + be16toh(getRecordLayer()->length);
   91|   257k|		if (len > m_DataLen)
  ------------------
  |  Branch (91:7): [True: 44.3k, False: 212k]
  ------------------
   92|  44.3k|			return m_DataLen;
   93|   212k|		return len;
   94|   257k|	}
_ZN4pcpp8SSLLayer14parseNextLayerEv:
   97|   221k|	{
   98|   221k|		size_t headerLen = getHeaderLen();
   99|   221k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (99:7): [True: 89.1k, False: 132k]
  ------------------
  100|  89.1k|			return;
  101|       |
  102|   132k|		if (SSLLayer::IsSSLMessage(0, 0, m_Data + headerLen, m_DataLen - headerLen, true))
  ------------------
  |  Branch (102:7): [True: 102k, False: 30.1k]
  ------------------
  103|   102k|		{
  104|   102k|			constructNextLayerFromFactory(SSLLayer::createSSLMessage, m_Data + headerLen, m_DataLen - headerLen);
  105|   102k|		}
  106|   132k|	}
_ZNK4pcpp17SSLHandshakeLayer8toStringEv:
  113|  37.9k|	{
  114|  37.9k|		std::stringstream result;
  115|  37.9k|		result << getRecordVersion().toString(true) << " Layer, Handshake:";
  116|  95.2k|		for (size_t i = 0; i < m_MessageList.size(); i++)
  ------------------
  |  Branch (116:22): [True: 57.2k, False: 37.9k]
  ------------------
  117|  57.2k|		{
  118|  57.2k|			if (i == 0)
  ------------------
  |  Branch (118:8): [True: 35.8k, False: 21.4k]
  ------------------
  119|  35.8k|				result << " " << m_MessageList.at(i)->toString();
  120|  21.4k|			else
  121|  21.4k|				result << ", " << m_MessageList.at(i)->toString();
  122|  57.2k|		}
  123|  37.9k|		return result.str();
  124|  37.9k|	}
_ZN4pcpp17SSLHandshakeLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  127|   117k|	    : SSLLayer(data, dataLen, prevLayer, packet)
  128|   117k|	{
  129|   117k|		constexpr size_t baseTLSRecordSize = sizeof(ssl_tls_record_layer);
  130|   117k|		uint8_t* curPos = m_Data + baseTLSRecordSize;
  131|   117k|		size_t recordDataLen = be16toh(getRecordLayer()->length);
  132|       |
  133|   117k|		if (m_DataLen < recordDataLen + baseTLSRecordSize)
  ------------------
  |  Branch (133:7): [True: 28.1k, False: 89.5k]
  ------------------
  134|  28.1k|		{
  135|  28.1k|			recordDataLen = m_DataLen >= baseTLSRecordSize ? m_DataLen - baseTLSRecordSize : 0;
  ------------------
  |  Branch (135:20): [True: 28.1k, False: 0]
  ------------------
  136|  28.1k|		}
  137|       |
  138|   117k|		size_t curPosIndex = 0;
  139|   293k|		while (true)
  ------------------
  |  Branch (139:10): [True: 293k, Folded]
  ------------------
  140|   293k|		{
  141|   293k|			SSLHandshakeMessage* message =
  142|   293k|			    SSLHandshakeMessage::createHandshakeMessage(curPos, recordDataLen - curPosIndex, this);
  143|   293k|			if (message == nullptr)
  ------------------
  |  Branch (143:8): [True: 117k, False: 175k]
  ------------------
  144|   117k|				break;
  145|       |
  146|   175k|			m_MessageList.pushBack(message);
  147|   175k|			curPos += message->getMessageLength();
  148|   175k|			curPosIndex += message->getMessageLength();
  149|   175k|		}
  150|   117k|	}
_ZNK4pcpp24SSLChangeCipherSpecLayer8toStringEv:
  165|  22.7k|	{
  166|  22.7k|		std::stringstream result;
  167|  22.7k|		result << getRecordVersion().toString(true) << " Layer, Change Cipher Spec";
  168|  22.7k|		return result.str();
  169|  22.7k|	}
_ZNK4pcpp13SSLAlertLayer13getAlertLevelEv:
  176|  1.73k|	{
  177|  1.73k|		uint8_t* pos = m_Data + sizeof(ssl_tls_record_layer);
  178|  1.73k|		uint8_t alertLevel = *pos;
  179|  1.73k|		if (alertLevel == SSL_ALERT_LEVEL_WARNING || alertLevel == SSL_ALERT_LEVEL_FATAL)
  ------------------
  |  Branch (179:7): [True: 726, False: 1.00k]
  |  Branch (179:48): [True: 0, False: 1.00k]
  ------------------
  180|    726|			return (SSLAlertLevel)alertLevel;
  181|  1.00k|		else
  182|  1.00k|			return SSL_ALERT_LEVEL_ENCRYPTED;
  183|  1.73k|	}
_ZNK4pcpp13SSLAlertLayer8toStringEv:
  227|  1.73k|	{
  228|  1.73k|		std::stringstream result;
  229|  1.73k|		result << getRecordVersion().toString(true) << " Layer, ";
  230|  1.73k|		if (getAlertLevel() == SSL_ALERT_LEVEL_ENCRYPTED)
  ------------------
  |  Branch (230:7): [True: 1.00k, False: 726]
  ------------------
  231|  1.00k|			result << "Encrypted Alert";
  232|    726|		else
  233|       |			// TODO: add alert level and description here
  234|    726|			result << "Alert";
  235|  1.73k|		return result.str();
  236|  1.73k|	}
_ZNK4pcpp23SSLApplicationDataLayer8toStringEv:
  260|  9.05k|	{
  261|  9.05k|		return getRecordVersion().toString(true) + " Layer, Application Data";
  262|  9.05k|	}

_ZN4pcpp18splitByWhiteSpacesERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
   11|  5.95k|	{
   12|  5.95k|		std::string buf;
   13|  5.95k|		std::stringstream stream(str);
   14|  5.95k|		std::vector<std::string> result;
   15|  31.4k|		while (stream >> buf)
  ------------------
  |  Branch (15:10): [True: 25.5k, False: 5.95k]
  ------------------
   16|  25.5k|			result.push_back(buf);
   17|       |
   18|  5.95k|		return result;
   19|  5.95k|	}
_ZN4pcpp8SdpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   22|  43.5k|	    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, SDP)
   23|  43.5k|	{
   24|  43.5k|		m_FieldsOffset = 0;
   25|  43.5k|		parseFields();
   26|  43.5k|	}
_ZNK4pcpp8SdpLayer8toStringEv:
   69|  7.69k|	{
   70|  7.69k|		return "SDP Layer";
   71|  7.69k|	}
_ZNK4pcpp8SdpLayer19getOwnerIPv4AddressEv:
   74|  3.84k|	{
   75|  3.84k|		HeaderField* originator = getFieldByName(PCPP_SDP_ORIGINATOR_FIELD);
  ------------------
  |  |   17|  3.84k|#define PCPP_SDP_ORIGINATOR_FIELD "o"
  ------------------
   76|  3.84k|		if (originator == nullptr)
  ------------------
  |  Branch (76:7): [True: 766, False: 3.08k]
  ------------------
   77|    766|			return IPv4Address::Zero;
   78|       |
   79|  3.08k|		std::vector<std::string> tokens = splitByWhiteSpaces(originator->getFieldValue());
   80|  3.08k|		if (tokens.size() < 6)
  ------------------
  |  Branch (80:7): [True: 1.37k, False: 1.70k]
  ------------------
   81|  1.37k|			return IPv4Address::Zero;
   82|       |
   83|  1.70k|		if (tokens[3] != "IN" || tokens[4] != "IP4")
  ------------------
  |  Branch (83:7): [True: 171, False: 1.53k]
  |  Branch (83:28): [True: 1.33k, False: 205]
  ------------------
   84|  1.50k|			return IPv4Address::Zero;
   85|       |
   86|    205|		try
   87|    205|		{
   88|    205|			return IPv4Address(tokens[5]);
   89|    205|		}
   90|    205|		catch (const std::exception&)
   91|    205|		{
   92|     87|			return IPv4Address::Zero;
   93|     87|		}
   94|    205|	}
_ZNK4pcpp8SdpLayer12getMediaPortERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   97|  3.84k|	{
   98|  3.84k|		int mediaFieldIndex = 0;
   99|  3.84k|		HeaderField* mediaDesc = getFieldByName(PCPP_SDP_MEDIA_NAME_FIELD, mediaFieldIndex);
  ------------------
  |  |   43|  3.84k|#define PCPP_SDP_MEDIA_NAME_FIELD "m"
  ------------------
  100|       |
  101|  5.75k|		while (mediaDesc != nullptr)
  ------------------
  |  Branch (101:10): [True: 2.87k, False: 2.88k]
  ------------------
  102|  2.87k|		{
  103|  2.87k|			std::vector<std::string> tokens = splitByWhiteSpaces(mediaDesc->getFieldValue());
  104|       |
  105|  2.87k|			if (tokens.size() >= 2 && tokens[0] == mediaType)
  ------------------
  |  Branch (105:8): [True: 2.28k, False: 588]
  |  Branch (105:30): [True: 967, False: 1.32k]
  ------------------
  106|    967|				return atoi(tokens[1].c_str());
  107|       |
  108|  1.90k|			mediaFieldIndex++;
  109|  1.90k|			mediaDesc = getFieldByName(PCPP_SDP_MEDIA_NAME_FIELD, mediaFieldIndex);
  ------------------
  |  |   43|  1.90k|#define PCPP_SDP_MEDIA_NAME_FIELD "m"
  ------------------
  110|  1.90k|		}
  111|       |
  112|  2.88k|		return 0;
  113|  3.84k|	}
_ZN4pcpp8SdpLayer19addMediaDescriptionERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEtS9_S9_RKNS1_6vectorIS7_NS5_IS7_EEEE:
  118|  3.84k|	{
  119|  3.84k|		std::stringstream portStream;
  120|  3.84k|		portStream << mediaPort;
  121|       |
  122|  3.84k|		std::string mediaFieldValue = mediaType + " " + portStream.str() + " " + mediaProtocol + " " + mediaFormat;
  123|  3.84k|		if (addField(PCPP_SDP_MEDIA_NAME_FIELD, mediaFieldValue) == nullptr)
  ------------------
  |  |   43|  3.84k|#define PCPP_SDP_MEDIA_NAME_FIELD "m"
  ------------------
  |  Branch (123:7): [True: 2.78k, False: 1.06k]
  ------------------
  124|  2.78k|		{
  125|  2.78k|			PCPP_LOG_ERROR("Failed to add media description field");
  ------------------
  |  |  443|  2.78k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  2.78k|	do                                                                                                                 \
  |  |  |  |  413|  2.78k|	{                                                                                                                  \
  |  |  |  |  414|  2.78k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.78k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.78k|#define LOG_MODULE PacketLogModuleSdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 2.78k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.78k|		{                                                                                                              \
  |  |  |  |  417|  2.78k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  2.78k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.78k|#define LOG_MODULE PacketLogModuleSdpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  2.78k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  2.78k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  2.78k|		}                                                                                                              \
  |  |  |  |  422|  2.78k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.78k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|  2.78k|			return false;
  127|  2.78k|		}
  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.9k|	{
   16|  12.9k|		size_t maxLen;
   17|  12.9k|		if (m_DataLen < MAX_COMMAND_LENGTH)
  ------------------
  |  |    8|  12.9k|#define MAX_COMMAND_LENGTH 9  // From SMTP command "STARTTLS" + 1 byte hyphen or space
  ------------------
  |  Branch (17:7): [True: 77, False: 12.8k]
  ------------------
   18|     77|			maxLen = m_DataLen;
   19|  12.8k|		else
   20|  12.8k|			maxLen = MAX_COMMAND_LENGTH;
  ------------------
  |  |    8|  12.8k|#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.9k|		std::string field(reinterpret_cast<char*>(m_Data), maxLen);
   27|       |
   28|  12.9k|		size_t posHyphen = field.find_first_of(ASCII_HYPHEN);
  ------------------
  |  |    6|  12.9k|#define ASCII_HYPHEN 0x2d
  ------------------
   29|  12.9k|		size_t posSpace = field.find_first_of(ASCII_SPACE);
  ------------------
  |  |    7|  12.9k|#define ASCII_SPACE 0x20
  ------------------
   30|  12.9k|		size_t posCRLF = field.rfind("\r\n");
   31|       |
   32|       |		// No delimiter or packet end
   33|  12.9k|		if (posHyphen == std::string::npos && posSpace == std::string::npos && posCRLF == std::string::npos)
  ------------------
  |  Branch (33:7): [True: 11.1k, False: 1.77k]
  |  Branch (33:41): [True: 8.41k, False: 2.76k]
  |  Branch (33:74): [True: 7.79k, False: 612]
  ------------------
   34|  7.79k|			return 0;
   35|       |		// Both hyphen and space found
   36|  5.15k|		else if (posHyphen != std::string::npos || posSpace != std::string::npos)
  ------------------
  |  Branch (36:12): [True: 1.77k, False: 3.38k]
  |  Branch (36:46): [True: 2.76k, False: 612]
  ------------------
   37|  4.54k|			return std::min(posSpace, posHyphen);
   38|       |		// If nothing found but there is a CRLF it is a only command packet
   39|    612|		else if (posCRLF != std::string::npos)
  ------------------
  |  Branch (39:12): [True: 612, False: 0]
  ------------------
   40|    612|			return posCRLF;
   41|       |
   42|      0|		return 0;
   43|  12.9k|	}
_ZNK4pcpp25SingleCommandTextProtocol18getCommandInternalEv:
  124|  9.21k|	{
  125|  9.21k|		size_t offset = getArgumentFieldOffset();
  126|       |
  127|       |		// If there is no option remove trailing newline characters
  128|  9.21k|		if (offset == (m_DataLen - 1) && offset > 1)
  ------------------
  |  Branch (128:7): [True: 0, False: 9.21k]
  |  Branch (128:36): [True: 0, False: 0]
  ------------------
  129|      0|			return std::string(reinterpret_cast<char*>(m_Data), offset - 1);
  130|  9.21k|		return std::string(reinterpret_cast<char*>(m_Data), offset);
  131|  9.21k|	}
_ZNK4pcpp25SingleCommandTextProtocol24getCommandOptionInternalEv:
  134|  3.74k|	{
  135|  3.74k|		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.74k|		int addition = offset ? 1 : 0;
  ------------------
  |  Branch (138:18): [True: 1.51k, False: 2.23k]
  ------------------
  139|       |
  140|       |		// Check if command-only packet (-2 to account for len/position comparison and size of CRLF)
  141|  3.74k|		if (offset != (m_DataLen - 2))
  ------------------
  |  Branch (141:7): [True: 3.49k, False: 244]
  ------------------
  142|  3.49k|		{
  143|       |			// We don't want to trailing newline characters so remove 2 and remove addition from start point
  144|  3.49k|			auto option =
  145|  3.49k|			    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.49k|			auto code = getCommandInternal();
  150|  3.49k|			auto vDelim = std::vector<std::string>{ code + " ", code + "-" };
  151|       |
  152|  3.49k|			for (const auto& delim : vDelim)
  ------------------
  |  Branch (152:27): [True: 6.99k, False: 3.49k]
  ------------------
  153|  6.99k|			{
  154|  6.99k|				size_t pos = 0;
  155|  7.95k|				while ((pos = option.find(delim, pos)) != std::string::npos)
  ------------------
  |  Branch (155:12): [True: 962, False: 6.99k]
  ------------------
  156|    962|				{
  157|    962|					option.replace(pos, delim.length(), "");
  158|    962|				}
  159|  6.99k|			}
  160|  3.49k|			return option;
  161|  3.49k|		}
  162|    244|		return "";
  163|  3.74k|	}
_ZN4pcpp25SingleCommandTextProtocol11isDataValidEPKhm:
  171|  11.8k|	{
  172|  11.8k|		if (data == nullptr || dataSize < MIN_PACKET_LENGTH)
  ------------------
  |  |    9|  11.8k|#define MIN_PACKET_LENGTH 2   // CRLF
  ------------------
  |  Branch (172:7): [True: 0, False: 11.8k]
  |  Branch (172:26): [True: 0, False: 11.8k]
  ------------------
  173|      0|			return false;
  174|       |
  175|  11.8k|		std::string payload = std::string(reinterpret_cast<const char*>(data), dataSize);
  176|  11.8k|		return payload.rfind("\r\n") == dataSize - 2;
  177|  11.8k|	}

_ZNK4pcpp8SipLayer16getContentLengthEv:
   58|  61.6k|	{
   59|  61.6k|		std::string contentLengthFieldName(PCPP_SIP_CONTENT_LENGTH_FIELD);
  ------------------
  |  |   24|  61.6k|#define PCPP_SIP_CONTENT_LENGTH_FIELD "Content-Length"
  ------------------
   60|  61.6k|		std::transform(contentLengthFieldName.begin(), contentLengthFieldName.end(), contentLengthFieldName.begin(),
   61|  61.6k|		               ::tolower);
   62|  61.6k|		HeaderField* contentLengthField = getFieldByName(contentLengthFieldName);
   63|  61.6k|		if (contentLengthField != nullptr)
  ------------------
  |  Branch (63:7): [True: 59.8k, False: 1.77k]
  ------------------
   64|  59.8k|			return atoi(contentLengthField->getFieldValue().c_str());
   65|  1.77k|		return 0;
   66|  61.6k|	}
_ZN4pcpp8SipLayer16setContentLengthEiRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   69|  4.31k|	{
   70|  4.31k|		std::ostringstream contentLengthAsString;
   71|  4.31k|		contentLengthAsString << contentLength;
   72|  4.31k|		std::string contentLengthFieldName(PCPP_SIP_CONTENT_LENGTH_FIELD);
  ------------------
  |  |   24|  4.31k|#define PCPP_SIP_CONTENT_LENGTH_FIELD "Content-Length"
  ------------------
   73|  4.31k|		HeaderField* contentLengthField = getFieldByName(contentLengthFieldName);
   74|  4.31k|		if (contentLengthField == nullptr)
  ------------------
  |  Branch (74:7): [True: 0, False: 4.31k]
  ------------------
   75|      0|		{
   76|      0|			HeaderField* prevField = getFieldByName(prevFieldName);
   77|      0|			contentLengthField = insertField(prevField, PCPP_SIP_CONTENT_LENGTH_FIELD, contentLengthAsString.str());
  ------------------
  |  |   24|      0|#define PCPP_SIP_CONTENT_LENGTH_FIELD "Content-Length"
  ------------------
   78|      0|		}
   79|  4.31k|		else
   80|  4.31k|			contentLengthField->setFieldValue(contentLengthAsString.str());
   81|       |
   82|  4.31k|		return contentLengthField;
   83|  4.31k|	}
_ZN4pcpp8SipLayer14parseNextLayerEv:
   86|  65.6k|	{
   87|  65.6k|		if (getLayerPayloadSize() == 0)
  ------------------
  |  Branch (87:7): [True: 8.81k, False: 56.8k]
  ------------------
   88|  8.81k|			return;
   89|       |
   90|  56.8k|		size_t headerLen = getHeaderLen();
   91|  56.8k|		std::string contentType;
   92|  56.8k|		if (getContentLength() > 0)
  ------------------
  |  Branch (92:7): [True: 45.7k, False: 11.0k]
  ------------------
   93|  45.7k|		{
   94|  45.7k|			HeaderField* contentTypeField = getFieldByName(PCPP_SIP_CONTENT_TYPE_FIELD);
  ------------------
  |  |   22|  45.7k|#define PCPP_SIP_CONTENT_TYPE_FIELD "Content-Type"
  ------------------
   95|  45.7k|			if (contentTypeField != nullptr)
  ------------------
  |  Branch (95:8): [True: 43.7k, False: 2.03k]
  ------------------
   96|  43.7k|				contentType = contentTypeField->getFieldValue();
   97|  45.7k|		}
   98|       |
   99|  56.8k|		auto payload = m_Data + headerLen;
  100|  56.8k|		auto payloadLen = m_DataLen - headerLen;
  101|       |
  102|  56.8k|		if (contentType.find("application/sdp") != std::string::npos)
  ------------------
  |  Branch (102:7): [True: 43.5k, False: 13.3k]
  ------------------
  103|  43.5k|		{
  104|  43.5k|			constructNextLayer<SdpLayer>(payload, payloadLen);
  105|  43.5k|		}
  106|  13.3k|		else
  107|  13.3k|		{
  108|  13.3k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  109|  13.3k|		}
  110|  56.8k|	}
_ZN4pcpp8SipLayer22computeCalculateFieldsEv:
  113|  6.18k|	{
  114|  6.18k|		HeaderField* contentLengthField = getFieldByName(PCPP_SIP_CONTENT_LENGTH_FIELD);
  ------------------
  |  |   24|  6.18k|#define PCPP_SIP_CONTENT_LENGTH_FIELD "Content-Length"
  ------------------
  115|  6.18k|		if (contentLengthField == nullptr)
  ------------------
  |  Branch (115:7): [True: 985, False: 5.19k]
  ------------------
  116|    985|			return;
  117|       |
  118|  5.19k|		size_t headerLen = getHeaderLen();
  119|  5.19k|		if (m_DataLen > headerLen)
  ------------------
  |  Branch (119:7): [True: 4.80k, False: 397]
  ------------------
  120|  4.80k|		{
  121|  4.80k|			int currentContentLength = getContentLength();
  122|  4.80k|			if (currentContentLength != static_cast<int>(m_DataLen - headerLen))
  ------------------
  |  Branch (122:8): [True: 4.31k, False: 483]
  ------------------
  123|  4.31k|				setContentLength(m_DataLen - headerLen);
  124|  4.80k|		}
  125|  5.19k|	}
_ZN4pcpp8SipLayer20detectSipMessageTypeEPKhm:
  128|  36.5k|	{
  129|  36.5k|		if (!data || dataLen < 3)
  ------------------
  |  Branch (129:7): [True: 0, False: 36.5k]
  |  Branch (129:16): [True: 290, False: 36.3k]
  ------------------
  130|    290|		{
  131|    290|			return SipLayer::SipParseResult::Unknown;
  132|    290|		}
  133|       |
  134|  36.3k|		uint32_t key = pack4(reinterpret_cast<const char*>(data), dataLen);
  135|       |
  136|  36.3k|		switch (key)
  137|  36.3k|		{
  138|     49|		case "INVI"_packed4:  // INVITE
  ------------------
  |  Branch (138:3): [True: 49, False: 36.2k]
  ------------------
  139|     85|		case "ACK "_packed4:  // ACK
  ------------------
  |  Branch (139:3): [True: 36, False: 36.2k]
  ------------------
  140|     85|		case "BYE "_packed4:  // BYE
  ------------------
  |  Branch (140:3): [True: 0, False: 36.3k]
  ------------------
  141|     85|		case "CANC"_packed4:  // CANCEL
  ------------------
  |  Branch (141:3): [True: 0, False: 36.3k]
  ------------------
  142|     85|		case "REGI"_packed4:  // REGISTER
  ------------------
  |  Branch (142:3): [True: 0, False: 36.3k]
  ------------------
  143|     85|		case "PRAC"_packed4:  // PRACK
  ------------------
  |  Branch (143:3): [True: 0, False: 36.3k]
  ------------------
  144|    350|		case "OPTI"_packed4:  // OPTIONS
  ------------------
  |  Branch (144:3): [True: 265, False: 36.0k]
  ------------------
  145|    350|		case "SUBS"_packed4:  // SUBSCRIBE
  ------------------
  |  Branch (145:3): [True: 0, False: 36.3k]
  ------------------
  146|  1.20k|		case "NOTI"_packed4:  // NOTIFY
  ------------------
  |  Branch (146:3): [True: 850, False: 35.4k]
  ------------------
  147|  1.20k|		case "PUBL"_packed4:  // PUBLISH
  ------------------
  |  Branch (147:3): [True: 0, False: 36.3k]
  ------------------
  148|  1.20k|		case "INFO"_packed4:  // INFO
  ------------------
  |  Branch (148:3): [True: 0, False: 36.3k]
  ------------------
  149|  1.20k|		case "REFE"_packed4:  // REFER
  ------------------
  |  Branch (149:3): [True: 0, False: 36.3k]
  ------------------
  150|  1.20k|		case "MESS"_packed4:  // MESSAGE
  ------------------
  |  Branch (150:3): [True: 0, False: 36.3k]
  ------------------
  151|  1.20k|		case "UPDA"_packed4:  // UPDATE
  ------------------
  |  Branch (151:3): [True: 0, False: 36.3k]
  ------------------
  152|  1.20k|			return SipLayer::SipParseResult::Request;
  153|       |
  154|      6|		case "SIP/"_packed4:
  ------------------
  |  Branch (154:3): [True: 6, False: 36.2k]
  ------------------
  155|      6|			return SipLayer::SipParseResult::Response;
  156|       |
  157|  35.0k|		default:
  ------------------
  |  Branch (157:3): [True: 35.0k, False: 1.20k]
  ------------------
  158|  35.0k|			return SipLayer::SipParseResult::Unknown;
  159|  36.3k|		}
  160|  36.3k|	}
_ZN4pcpp8SipLayer13parseSipLayerEPhmPNS_5LayerEPNS_6PacketEtt:
  164|  68.5k|	{
  165|  68.5k|		if (!(SipLayer::isSipPort(srcPort) || SipLayer::isSipPort(dstPort)))
  ------------------
  |  Branch (165:9): [True: 34.1k, False: 34.3k]
  |  Branch (165:41): [True: 34.3k, False: 0]
  ------------------
  166|      0|		{
  167|      0|			return nullptr;
  168|      0|		}
  169|       |
  170|  68.5k|		if (SipRequestFirstLine::parseMethod(reinterpret_cast<char*>(data), dataLen) !=
  ------------------
  |  Branch (170:7): [True: 57.8k, False: 10.6k]
  ------------------
  171|  68.5k|		    SipRequestLayer::SipMethodUnknown)
  172|  57.8k|		{
  173|  57.8k|			return new SipRequestLayer(data, dataLen, prevLayer, packet);
  174|  57.8k|		}
  175|       |
  176|  10.6k|		if (SipResponseFirstLine::parseStatusCode(reinterpret_cast<char*>(data), dataLen) !=
  ------------------
  |  Branch (176:7): [True: 9.43k, False: 1.23k]
  |  Branch (176:7): [True: 7.70k, False: 2.96k]
  ------------------
  177|  10.6k|		        SipResponseLayer::SipStatusCodeUnknown &&
  178|  9.43k|		    !SipResponseFirstLine::parseVersion(reinterpret_cast<char*>(data), dataLen).empty())
  ------------------
  |  Branch (178:7): [True: 7.70k, False: 1.72k]
  ------------------
  179|  7.70k|		{
  180|  7.70k|			return new SipResponseLayer(data, dataLen, prevLayer, packet);
  181|  7.70k|		}
  182|       |
  183|  2.96k|		return nullptr;
  184|  10.6k|	}
_ZN4pcpp8SipLayer13parseSipLayerEPhmPNS_5LayerEPNS_6PacketE:
  187|  36.5k|	{
  188|  36.5k|		SipLayer::SipParseResult sipParseResult = detectSipMessageType(data, dataLen);
  189|       |
  190|  36.5k|		if (sipParseResult == SipLayer::SipParseResult::Unknown)
  ------------------
  |  Branch (190:7): [True: 35.3k, False: 1.20k]
  ------------------
  191|  35.3k|		{
  192|  35.3k|			return nullptr;
  193|  35.3k|		}
  194|       |
  195|  1.20k|		if (sipParseResult == SipLayer::SipParseResult::Request)
  ------------------
  |  Branch (195:7): [True: 1.20k, False: 6]
  ------------------
  196|  1.20k|		{
  197|  1.20k|			if (SipRequestFirstLine::parseFirstLine(reinterpret_cast<char*>(data), dataLen).first)
  ------------------
  |  Branch (197:8): [True: 134, False: 1.06k]
  ------------------
  198|    134|			{
  199|    134|				return new SipRequestLayer(data, dataLen, prevLayer, packet);
  200|    134|			}
  201|  1.06k|			return nullptr;
  202|  1.20k|		}
  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|  57.9k|	SipRequestFirstLine::SipRequestFirstLine(SipRequestLayer* sipRequest) : m_SipRequest(sipRequest)
  214|  57.9k|	{
  215|  57.9k|		m_Method = parseMethod(reinterpret_cast<char*>(m_SipRequest->m_Data), m_SipRequest->getDataLen());
  216|  57.9k|		if (m_Method == SipRequestLayer::SipMethodUnknown)
  ------------------
  |  Branch (216:7): [True: 0, False: 57.9k]
  ------------------
  217|      0|		{
  218|      0|			m_UriOffset = -1;
  219|      0|			PCPP_LOG_DEBUG("Couldn't resolve SIP request method");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  220|      0|		}
  221|  57.9k|		else
  222|  57.9k|			m_UriOffset = SipMethodEnumToString[m_Method].length() + 1;
  223|       |
  224|  57.9k|		parseVersion();
  225|       |
  226|  57.9k|		char* endOfFirstLine;
  227|  57.9k|		if ((endOfFirstLine =
  ------------------
  |  Branch (227:7): [True: 57.9k, False: 0]
  ------------------
  228|  57.9k|		         static_cast<char*>(memchr(reinterpret_cast<char*>(m_SipRequest->m_Data + m_VersionOffset), '\n',
  229|  57.9k|		                                   m_SipRequest->m_DataLen - static_cast<size_t>(m_VersionOffset)))) != nullptr)
  230|  57.9k|		{
  231|  57.9k|			m_FirstLineEndOffset = endOfFirstLine - reinterpret_cast<char*>(m_SipRequest->m_Data) + 1;
  232|  57.9k|			m_IsComplete = true;
  233|  57.9k|		}
  234|      0|		else
  235|      0|		{
  236|      0|			m_FirstLineEndOffset = m_SipRequest->getDataLen();
  237|      0|			m_IsComplete = false;
  238|      0|		}
  239|       |
  240|  57.9k|		if (Logger::getInstance().isDebugEnabled(PacketLogModuleSipLayer))
  ------------------
  |  Branch (240:7): [True: 0, False: 57.9k]
  ------------------
  241|      0|		{
  242|      0|			std::string method =
  243|      0|			    (m_Method == SipRequestLayer::SipMethodUnknown ? "Unknown" : SipMethodEnumToString[m_Method]);
  ------------------
  |  Branch (243:9): [True: 0, False: 0]
  ------------------
  244|      0|			PCPP_LOG_DEBUG("Method='" << method << "'; SIP version='" << m_Version << "'; URI='" << getUri() << "'");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  245|      0|		}
  246|  57.9k|	}
_ZN4pcpp19SipRequestFirstLine11parseMethodEPKcm:
  291|   126k|	{
  292|   126k|		if (!data || dataLen < 4)
  ------------------
  |  Branch (292:7): [True: 0, False: 126k]
  |  Branch (292:16): [True: 10, False: 126k]
  ------------------
  293|     10|		{
  294|     10|			return SipRequestLayer::SipMethodUnknown;
  295|     10|		}
  296|       |
  297|   126k|		size_t spaceIndex = 0;
  298|   978k|		while (spaceIndex < dataLen && data[spaceIndex] != ' ')
  ------------------
  |  Branch (298:10): [True: 978k, False: 0]
  |  Branch (298:34): [True: 852k, False: 126k]
  ------------------
  299|   852k|		{
  300|   852k|			spaceIndex++;
  301|   852k|		}
  302|       |
  303|   126k|		if (spaceIndex == 0 || spaceIndex == dataLen)
  ------------------
  |  Branch (303:7): [True: 0, False: 126k]
  |  Branch (303:26): [True: 0, False: 126k]
  ------------------
  304|      0|		{
  305|      0|			return SipRequestLayer::SipMethodUnknown;
  306|      0|		}
  307|       |
  308|   126k|		auto methodAdEnum = SipMethodStringToEnum.find(std::string(data, data + spaceIndex));
  309|   126k|		if (methodAdEnum == SipMethodStringToEnum.end())
  ------------------
  |  Branch (309:7): [True: 10.6k, False: 115k]
  ------------------
  310|  10.6k|		{
  311|  10.6k|			return SipRequestLayer::SipMethodUnknown;
  312|  10.6k|		}
  313|   115k|		return methodAdEnum->second;
  314|   126k|	}
_ZN4pcpp19SipRequestFirstLine14parseFirstLineEPKcm:
  318|  1.20k|	{
  319|  1.20k|		SipFirstLineData result = { "", "", "" };
  320|       |
  321|  1.20k|		if (data == nullptr || dataLen == 0)
  ------------------
  |  Branch (321:7): [True: 0, False: 1.20k]
  |  Branch (321:26): [True: 0, False: 1.20k]
  ------------------
  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.20k|		size_t firstSpaceIndex = 0;
  329|  9.04k|		while (firstSpaceIndex < dataLen && data[firstSpaceIndex] != ' ')
  ------------------
  |  Branch (329:10): [True: 9.04k, False: 0]
  |  Branch (329:39): [True: 7.84k, False: 1.20k]
  ------------------
  330|  7.84k|		{
  331|  7.84k|			firstSpaceIndex++;
  332|  7.84k|		}
  333|       |
  334|  1.20k|		if (firstSpaceIndex == 0 || firstSpaceIndex == dataLen)
  ------------------
  |  Branch (334:7): [True: 0, False: 1.20k]
  |  Branch (334:31): [True: 0, False: 1.20k]
  ------------------
  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.20k|		std::string methodStr{ data, firstSpaceIndex };
  342|  1.20k|		if (SipMethodStringToEnum.find(methodStr) == SipMethodStringToEnum.end())
  ------------------
  |  Branch (342:7): [True: 29, False: 1.17k]
  ------------------
  343|     29|		{
  344|     29|			PCPP_LOG_DEBUG("Unknown SIP method");
  ------------------
  |  |  425|     29|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|     29|	do                                                                                                                 \
  |  |  |  |  413|     29|	{                                                                                                                  \
  |  |  |  |  414|     29|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     29|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     29|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 29]
  |  |  |  |  ------------------
  |  |  |  |  416|     29|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|     29|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 29]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  345|     29|			return { false, result };
  346|     29|		}
  347|       |
  348|       |		// Find second space (end of URI)
  349|  1.17k|		size_t secondSpaceIndex = firstSpaceIndex + 1;
  350|  9.77k|		while (secondSpaceIndex < dataLen && data[secondSpaceIndex] != ' ')
  ------------------
  |  Branch (350:10): [True: 9.77k, False: 0]
  |  Branch (350:40): [True: 8.60k, False: 1.17k]
  ------------------
  351|  8.60k|			secondSpaceIndex++;
  352|       |
  353|  1.17k|		if (secondSpaceIndex == dataLen)
  ------------------
  |  Branch (353:7): [True: 0, False: 1.17k]
  ------------------
  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.17k|		size_t uriLen = secondSpaceIndex - firstSpaceIndex - 1;
  360|  1.17k|		if (uriLen == 0)
  ------------------
  |  Branch (360:7): [True: 0, False: 1.17k]
  ------------------
  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.17k|		size_t lineEnd = secondSpaceIndex + 1;
  368|  12.3k|		while (lineEnd < dataLen && data[lineEnd] != '\r' && data[lineEnd] != '\n')
  ------------------
  |  Branch (368:10): [True: 12.3k, False: 0]
  |  Branch (368:31): [True: 11.2k, False: 1.17k]
  |  Branch (368:56): [True: 11.2k, False: 0]
  ------------------
  369|  11.2k|			lineEnd++;
  370|       |
  371|       |		// Minimum length for "SIP/x.y"
  372|  1.17k|		size_t versionLen = lineEnd - secondSpaceIndex - 1;
  373|  1.17k|		if (versionLen < 7)
  ------------------
  |  Branch (373:7): [True: 0, False: 1.17k]
  ------------------
  374|      0|		{
  375|      0|			PCPP_LOG_DEBUG("Version too short");
  ------------------
  |  |  425|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  376|      0|			return { false, result };
  377|      0|		}
  378|       |
  379|  1.17k|		const char* versionStart = data + secondSpaceIndex + 1;
  380|  1.17k|		if (versionStart[0] != 'S' || versionStart[1] != 'I' || versionStart[2] != 'P' || versionStart[3] != '/')
  ------------------
  |  Branch (380:7): [True: 850, False: 321]
  |  Branch (380:33): [True: 0, False: 321]
  |  Branch (380:59): [True: 187, False: 134]
  |  Branch (380:85): [True: 0, False: 134]
  ------------------
  381|  1.03k|		{
  382|  1.03k|			PCPP_LOG_DEBUG("Invalid SIP version format");
  ------------------
  |  |  425|  1.03k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, 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 PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 1.03k]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.03k|		{                                                                                                              \
  |  |  |  |  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.03k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.03k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  383|  1.03k|			return { false, result };
  384|  1.03k|		}
  385|       |
  386|       |		// All validations passed
  387|    134|		result.method = std::move(methodStr);
  388|    134|		result.uri = std::string{ data + firstSpaceIndex + 1, uriLen };
  389|    134|		result.version = std::string{ versionStart, versionLen };
  390|       |
  391|    134|		return { true, result };
  392|  1.17k|	}
_ZN4pcpp19SipRequestFirstLine12parseVersionEv:
  395|  57.9k|	{
  396|  57.9k|		if (m_SipRequest->getDataLen() < static_cast<size_t>(m_UriOffset))
  ------------------
  |  Branch (396:7): [True: 0, False: 57.9k]
  ------------------
  397|      0|		{
  398|      0|			m_Version = "";
  399|      0|			m_VersionOffset = -1;
  400|      0|			return;
  401|      0|		}
  402|       |
  403|  57.9k|		char* data = reinterpret_cast<char*>(m_SipRequest->m_Data + m_UriOffset);
  404|  57.9k|		char* verPos = cross_platform_memmem(data, m_SipRequest->getDataLen() - m_UriOffset, " SIP/", 5);
  405|  57.9k|		if (verPos == nullptr)
  ------------------
  |  Branch (405:7): [True: 23.7k, False: 34.2k]
  ------------------
  406|  23.7k|		{
  407|  23.7k|			m_Version = "";
  408|  23.7k|			m_VersionOffset = -1;
  409|  23.7k|			return;
  410|  23.7k|		}
  411|       |
  412|       |		// verify packet doesn't end before the version, meaning still left place for " SIP/x.y" (7 chars)
  413|  34.2k|		if (static_cast<uint16_t>(verPos + 7 - reinterpret_cast<char*>(m_SipRequest->m_Data)) >
  ------------------
  |  Branch (413:7): [True: 0, False: 34.2k]
  ------------------
  414|  34.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|  34.2k|		verPos++;
  423|       |
  424|  34.2k|		int endOfVerPos = 0;
  425|   731k|		while (((verPos + endOfVerPos) < reinterpret_cast<char*>(m_SipRequest->m_Data + m_SipRequest->m_DataLen)) &&
  ------------------
  |  Branch (425:10): [True: 731k, False: 0]
  ------------------
  426|   731k|		       ((verPos + endOfVerPos)[0] != '\r') && ((verPos + endOfVerPos)[0] != '\n'))
  ------------------
  |  Branch (426:10): [True: 697k, False: 34.2k]
  |  Branch (426:49): [True: 697k, False: 11]
  ------------------
  427|   697k|			endOfVerPos++;
  428|       |
  429|  34.2k|		m_Version = std::string(verPos, endOfVerPos);
  430|       |
  431|  34.2k|		m_VersionOffset = verPos - reinterpret_cast<char*>(m_SipRequest->m_Data);
  432|  34.2k|	}
_ZN4pcpp15SipRequestLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  536|  57.9k|	    : SipLayer(data, dataLen, prevLayer, packet, SIPRequest)
  537|  57.9k|	{
  538|  57.9k|		m_FirstLine = new SipRequestFirstLine(this);
  539|  57.9k|		m_FieldsOffset = m_FirstLine->getSize();
  540|  57.9k|		parseFields();
  541|  57.9k|	}
_ZN4pcpp15SipRequestLayerD2Ev:
  568|  57.9k|	{
  569|  57.9k|		delete m_FirstLine;
  570|  57.9k|	}
_ZNK4pcpp15SipRequestLayer8toStringEv:
  573|  10.1k|	{
  574|  10.1k|		static const int maxLengthToPrint = 120;
  575|  10.1k|		std::string result = "SIP request, ";
  576|  10.1k|		int size = m_FirstLine->getSize() - 2;  // the -2 is to remove \r\n at the end of the first line
  577|  10.1k|		if (size <= 0)
  ------------------
  |  Branch (577:7): [True: 10, False: 10.1k]
  ------------------
  578|     10|		{
  579|     10|			result += std::string("CORRUPT DATA");
  580|     10|			return result;
  581|     10|		}
  582|  10.1k|		if (size <= maxLengthToPrint)
  ------------------
  |  Branch (582:7): [True: 9.61k, False: 496]
  ------------------
  583|  9.61k|		{
  584|  9.61k|			char* firstLine = new char[size + 1];
  585|  9.61k|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), size);
  586|  9.61k|			firstLine[size] = 0;
  587|  9.61k|			result += std::string(firstLine);
  588|  9.61k|			delete[] firstLine;
  589|  9.61k|		}
  590|    496|		else
  591|    496|		{
  592|    496|			char firstLine[maxLengthToPrint + 1];
  593|    496|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), maxLengthToPrint - 3);
  594|    496|			firstLine[maxLengthToPrint - 3] = '.';
  595|    496|			firstLine[maxLengthToPrint - 2] = '.';
  596|    496|			firstLine[maxLengthToPrint - 1] = '.';
  597|    496|			firstLine[maxLengthToPrint] = 0;
  598|    496|			result += std::string(firstLine);
  599|    496|		}
  600|       |
  601|  10.1k|		return result;
  602|  10.1k|	}
_ZN4pcpp16SipResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  877|  7.71k|	    : SipLayer(data, dataLen, prevLayer, packet, SIPResponse)
  878|  7.71k|	{
  879|  7.71k|		m_FirstLine = new SipResponseFirstLine(this);
  880|  7.71k|		m_FieldsOffset = m_FirstLine->getSize();
  881|  7.71k|		parseFields();
  882|  7.71k|	}
_ZN4pcpp16SipResponseLayerD2Ev:
  893|  7.71k|	{
  894|  7.71k|		delete m_FirstLine;
  895|  7.71k|	}
_ZNK4pcpp16SipResponseLayer8toStringEv:
  915|  2.25k|	{
  916|  2.25k|		static const int maxLengthToPrint = 120;
  917|  2.25k|		std::string result = "SIP response, ";
  918|  2.25k|		int size = m_FirstLine->getSize() - 2;  // the -2 is to remove \r\n at the end of the first line
  919|  2.25k|		if (size <= 0)
  ------------------
  |  Branch (919:7): [True: 0, False: 2.25k]
  ------------------
  920|      0|		{
  921|      0|			result += std::string("CORRUPT DATA");
  922|      0|			return result;
  923|      0|		}
  924|  2.25k|		if (size <= maxLengthToPrint)
  ------------------
  |  Branch (924:7): [True: 1.83k, False: 418]
  ------------------
  925|  1.83k|		{
  926|  1.83k|			char* firstLine = new char[size + 1];
  927|  1.83k|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), size);
  928|  1.83k|			firstLine[size] = 0;
  929|  1.83k|			result += std::string(firstLine);
  930|  1.83k|			delete[] firstLine;
  931|  1.83k|		}
  932|    418|		else
  933|    418|		{
  934|    418|			char firstLine[maxLengthToPrint + 1];
  935|    418|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), maxLengthToPrint - 3);
  936|    418|			firstLine[maxLengthToPrint - 3] = '.';
  937|    418|			firstLine[maxLengthToPrint - 2] = '.';
  938|    418|			firstLine[maxLengthToPrint - 1] = '.';
  939|    418|			firstLine[maxLengthToPrint] = 0;
  940|    418|			result += std::string(firstLine);
  941|    418|		}
  942|       |
  943|  2.25k|		return result;
  944|  2.25k|	}
_ZN4pcpp20SipResponseFirstLine15parseStatusCodeEPKcm:
 1042|  18.3k|	{
 1043|       |		// minimum data should be 12B long: "SIP/x.y XXX "
 1044|  18.3k|		if (!data || dataLen < 12)
  ------------------
  |  Branch (1044:7): [True: 0, False: 18.3k]
  |  Branch (1044:16): [True: 10, False: 18.3k]
  ------------------
 1045|     10|		{
 1046|     10|			return SipResponseLayer::SipStatusCodeUnknown;
 1047|     10|		}
 1048|       |
 1049|  18.3k|		const char* statusCodeData = data + 8;
 1050|  18.3k|		if (statusCodeData[3] != ' ')
  ------------------
  |  Branch (1050:7): [True: 1.04k, False: 17.3k]
  ------------------
 1051|  1.04k|		{
 1052|  1.04k|			return SipResponseLayer::SipStatusCodeUnknown;
 1053|  1.04k|		}
 1054|       |
 1055|  17.3k|		return parseStatusCodePure(statusCodeData, 3);
 1056|  18.3k|	}
_ZN4pcpp20SipResponseFirstLineC2EPNS_16SipResponseLayerE:
 1058|  7.71k|	SipResponseFirstLine::SipResponseFirstLine(SipResponseLayer* sipResponse) : m_SipResponse(sipResponse)
 1059|  7.71k|	{
 1060|  7.71k|		m_Version = parseVersion(reinterpret_cast<char*>(m_SipResponse->m_Data), m_SipResponse->getDataLen());
 1061|  7.71k|		if (m_Version == "")
  ------------------
  |  Branch (1061:7): [True: 0, False: 7.71k]
  ------------------
 1062|      0|		{
 1063|      0|			m_StatusCode = SipResponseLayer::SipStatusCodeUnknown;
 1064|      0|		}
 1065|  7.71k|		else
 1066|  7.71k|		{
 1067|  7.71k|			m_StatusCode = parseStatusCode(reinterpret_cast<char*>(m_SipResponse->m_Data), m_SipResponse->getDataLen());
 1068|  7.71k|		}
 1069|       |
 1070|  7.71k|		char* endOfFirstLine;
 1071|  7.71k|		if ((endOfFirstLine = static_cast<char*>(
  ------------------
  |  Branch (1071:7): [True: 7.13k, False: 582]
  ------------------
 1072|  7.71k|		         memchr(reinterpret_cast<char*>(m_SipResponse->m_Data), '\n', m_SipResponse->m_DataLen))) != nullptr)
 1073|  7.13k|		{
 1074|  7.13k|			m_FirstLineEndOffset = endOfFirstLine - reinterpret_cast<char*>(m_SipResponse->m_Data) + 1;
 1075|  7.13k|			m_IsComplete = true;
 1076|  7.13k|		}
 1077|    582|		else
 1078|    582|		{
 1079|    582|			m_FirstLineEndOffset = m_SipResponse->getDataLen();
 1080|    582|			m_IsComplete = false;
 1081|    582|		}
 1082|       |
 1083|  7.71k|		if (Logger::getInstance().isDebugEnabled(PacketLogModuleSipLayer))
  ------------------
  |  Branch (1083:7): [True: 0, False: 7.71k]
  ------------------
 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.71k|	}
_ZN4pcpp20SipResponseFirstLine12parseVersionEPKcm:
 1129|  17.1k|	{
 1130|  17.1k|		if (!data || dataLen < 8)  // "SIP/x.y "
  ------------------
  |  Branch (1130:7): [True: 0, False: 17.1k]
  |  Branch (1130:16): [True: 0, False: 17.1k]
  ------------------
 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|  17.1k|		if (data[0] != 'S' || data[1] != 'I' || data[2] != 'P' || data[3] != '/')
  ------------------
  |  Branch (1136:7): [True: 192, False: 16.9k]
  |  Branch (1136:25): [True: 117, False: 16.8k]
  |  Branch (1136:43): [True: 807, False: 16.0k]
  |  Branch (1136:61): [True: 609, False: 15.4k]
  ------------------
 1137|  1.72k|		{
 1138|  1.72k|			PCPP_LOG_DEBUG("SIP response does not begin with 'SIP/'");
  ------------------
  |  |  425|  1.72k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  1.72k|	do                                                                                                                 \
  |  |  |  |  413|  1.72k|	{                                                                                                                  \
  |  |  |  |  414|  1.72k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.72k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.72k|#define LOG_MODULE PacketLogModuleSipLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 1.72k]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.72k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE 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.72k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.72k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1139|  1.72k|			return "";
 1140|  1.72k|		}
 1141|       |
 1142|  15.4k|		const char* nextSpace = static_cast<const char*>(memchr(data, ' ', dataLen));
 1143|  15.4k|		if (nextSpace == nullptr)
  ------------------
  |  Branch (1143:7): [True: 0, False: 15.4k]
  ------------------
 1144|      0|			return "";
 1145|       |
 1146|  15.4k|		return std::string(data, nextSpace - data);
 1147|  15.4k|	}
_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.3k|		{
   21|  36.3k|			return ((len > 0 ? static_cast<uint32_t>(data[0]) << 24 : 0) |
  ------------------
  |  Branch (21:13): [True: 36.3k, False: 0]
  ------------------
   22|  36.3k|			        (len > 1 ? static_cast<uint32_t>(data[1]) << 16 : 0) |
  ------------------
  |  Branch (22:13): [True: 36.3k, False: 0]
  ------------------
   23|  36.3k|			        (len > 2 ? static_cast<uint32_t>(data[2]) << 8 : 0) |
  ------------------
  |  Branch (23:13): [True: 36.3k, False: 0]
  ------------------
   24|  36.3k|			        (len > 3 ? static_cast<uint32_t>(data[3]) : 0));
  ------------------
  |  Branch (24:13): [True: 36.1k, False: 137]
  ------------------
   25|  36.3k|		}
SipLayer.cpp:_ZN4pcpp12_GLOBAL__N_119parseStatusCodePureEPKcm:
  697|  17.3k|		{
  698|  17.3k|			if (data == nullptr || dataLen < 3)
  ------------------
  |  Branch (698:8): [True: 0, False: 17.3k]
  |  Branch (698:27): [True: 0, False: 17.3k]
  ------------------
  699|      0|			{
  700|      0|				return SipResponseLayer::SipStatusCodeUnknown;
  701|      0|			}
  702|       |
  703|  17.3k|			uint16_t code = 0;
  704|  17.3k|			code += (static_cast<uint16_t>(data[0]) - '0') * 100;
  705|  17.3k|			code += (static_cast<uint16_t>(data[1]) - '0') * 10;
  706|  17.3k|			code += (static_cast<uint16_t>(data[2]) - '0');
  707|       |
  708|  17.3k|			switch (code)
  709|  17.3k|			{
  710|       |			// 1xx: Informational
  711|  13.1k|			case 100:
  ------------------
  |  Branch (711:4): [True: 13.1k, False: 4.21k]
  ------------------
  712|  13.1k|				return SipResponseLayer::SipResponseStatusCode::Sip100Trying;
  713|  1.70k|			case 180:
  ------------------
  |  Branch (713:4): [True: 1.70k, False: 15.6k]
  ------------------
  714|  1.70k|				return SipResponseLayer::SipResponseStatusCode::Sip180Ringing;
  715|     18|			case 181:
  ------------------
  |  Branch (715:4): [True: 18, False: 17.3k]
  ------------------
  716|     18|				return SipResponseLayer::SipResponseStatusCode::Sip181CallisBeingForwarded;
  717|     36|			case 182:
  ------------------
  |  Branch (717:4): [True: 36, False: 17.3k]
  ------------------
  718|     36|				return SipResponseLayer::SipResponseStatusCode::Sip182Queued;
  719|      0|			case 183:
  ------------------
  |  Branch (719:4): [True: 0, False: 17.3k]
  ------------------
  720|      0|				return SipResponseLayer::SipResponseStatusCode::Sip183SessioninProgress;
  721|      0|			case 199:
  ------------------
  |  Branch (721:4): [True: 0, False: 17.3k]
  ------------------
  722|      0|				return SipResponseLayer::SipResponseStatusCode::Sip199EarlyDialogTerminated;
  723|       |			// 2xx: Success
  724|  1.91k|			case 200:
  ------------------
  |  Branch (724:4): [True: 1.91k, False: 15.4k]
  ------------------
  725|  1.91k|				return SipResponseLayer::SipResponseStatusCode::Sip200OK;
  726|      0|			case 202:
  ------------------
  |  Branch (726:4): [True: 0, False: 17.3k]
  ------------------
  727|      0|				return SipResponseLayer::SipResponseStatusCode::Sip202Accepted;
  728|      0|			case 204:
  ------------------
  |  Branch (728:4): [True: 0, False: 17.3k]
  ------------------
  729|      0|				return SipResponseLayer::SipResponseStatusCode::Sip204NoNotification;
  730|       |			// 3xx: Redirection
  731|     24|			case 300:
  ------------------
  |  Branch (731:4): [True: 24, False: 17.3k]
  ------------------
  732|     24|				return SipResponseLayer::SipResponseStatusCode::Sip300MultipleChoices;
  733|      0|			case 301:
  ------------------
  |  Branch (733:4): [True: 0, False: 17.3k]
  ------------------
  734|      0|				return SipResponseLayer::SipResponseStatusCode::Sip301MovedPermanently;
  735|      0|			case 302:
  ------------------
  |  Branch (735:4): [True: 0, False: 17.3k]
  ------------------
  736|      0|				return SipResponseLayer::SipResponseStatusCode::Sip302MovedTemporarily;
  737|      0|			case 305:
  ------------------
  |  Branch (737:4): [True: 0, False: 17.3k]
  ------------------
  738|      0|				return SipResponseLayer::SipResponseStatusCode::Sip305UseProxy;
  739|      0|			case 380:
  ------------------
  |  Branch (739:4): [True: 0, False: 17.3k]
  ------------------
  740|      0|				return SipResponseLayer::SipResponseStatusCode::Sip380AlternativeService;
  741|       |			// 4xx: Client Failure
  742|      0|			case 400:
  ------------------
  |  Branch (742:4): [True: 0, False: 17.3k]
  ------------------
  743|      0|				return SipResponseLayer::SipResponseStatusCode::Sip400BadRequest;
  744|      0|			case 401:
  ------------------
  |  Branch (744:4): [True: 0, False: 17.3k]
  ------------------
  745|      0|				return SipResponseLayer::SipResponseStatusCode::Sip401Unauthorized;
  746|      0|			case 402:
  ------------------
  |  Branch (746:4): [True: 0, False: 17.3k]
  ------------------
  747|      0|				return SipResponseLayer::SipResponseStatusCode::Sip402PaymentRequired;
  748|      0|			case 403:
  ------------------
  |  Branch (748:4): [True: 0, False: 17.3k]
  ------------------
  749|      0|				return SipResponseLayer::SipResponseStatusCode::Sip403Forbidden;
  750|      0|			case 404:
  ------------------
  |  Branch (750:4): [True: 0, False: 17.3k]
  ------------------
  751|      0|				return SipResponseLayer::SipResponseStatusCode::Sip404NotFound;
  752|      0|			case 405:
  ------------------
  |  Branch (752:4): [True: 0, False: 17.3k]
  ------------------
  753|      0|				return SipResponseLayer::SipResponseStatusCode::Sip405MethodNotAllowed;
  754|      0|			case 406:
  ------------------
  |  Branch (754:4): [True: 0, False: 17.3k]
  ------------------
  755|      0|				return SipResponseLayer::SipResponseStatusCode::Sip406NotAcceptable;
  756|      0|			case 407:
  ------------------
  |  Branch (756:4): [True: 0, False: 17.3k]
  ------------------
  757|      0|				return SipResponseLayer::SipResponseStatusCode::Sip407ProxyAuthenticationRequired;
  758|      0|			case 408:
  ------------------
  |  Branch (758:4): [True: 0, False: 17.3k]
  ------------------
  759|      0|				return SipResponseLayer::SipResponseStatusCode::Sip408RequestTimeout;
  760|      0|			case 409:
  ------------------
  |  Branch (760:4): [True: 0, False: 17.3k]
  ------------------
  761|      0|				return SipResponseLayer::SipResponseStatusCode::Sip409Conflict;
  762|      0|			case 410:
  ------------------
  |  Branch (762:4): [True: 0, False: 17.3k]
  ------------------
  763|      0|				return SipResponseLayer::SipResponseStatusCode::Sip410Gone;
  764|      0|			case 411:
  ------------------
  |  Branch (764:4): [True: 0, False: 17.3k]
  ------------------
  765|      0|				return SipResponseLayer::SipResponseStatusCode::Sip411LengthRequired;
  766|      0|			case 412:
  ------------------
  |  Branch (766:4): [True: 0, False: 17.3k]
  ------------------
  767|      0|				return SipResponseLayer::SipResponseStatusCode::Sip412ConditionalRequestFailed;
  768|      0|			case 413:
  ------------------
  |  Branch (768:4): [True: 0, False: 17.3k]
  ------------------
  769|      0|				return SipResponseLayer::SipResponseStatusCode::Sip413RequestEntityTooLarge;
  770|      0|			case 414:
  ------------------
  |  Branch (770:4): [True: 0, False: 17.3k]
  ------------------
  771|      0|				return SipResponseLayer::SipResponseStatusCode::Sip414RequestURITooLong;
  772|      0|			case 415:
  ------------------
  |  Branch (772:4): [True: 0, False: 17.3k]
  ------------------
  773|      0|				return SipResponseLayer::SipResponseStatusCode::Sip415UnsupportedMediaType;
  774|      0|			case 416:
  ------------------
  |  Branch (774:4): [True: 0, False: 17.3k]
  ------------------
  775|      0|				return SipResponseLayer::SipResponseStatusCode::Sip416UnsupportedURIScheme;
  776|      0|			case 417:
  ------------------
  |  Branch (776:4): [True: 0, False: 17.3k]
  ------------------
  777|      0|				return SipResponseLayer::SipResponseStatusCode::Sip417UnknownResourcePriority;
  778|      0|			case 420:
  ------------------
  |  Branch (778:4): [True: 0, False: 17.3k]
  ------------------
  779|      0|				return SipResponseLayer::SipResponseStatusCode::Sip420BadExtension;
  780|      0|			case 421:
  ------------------
  |  Branch (780:4): [True: 0, False: 17.3k]
  ------------------
  781|      0|				return SipResponseLayer::SipResponseStatusCode::Sip421ExtensionRequired;
  782|      0|			case 422:
  ------------------
  |  Branch (782:4): [True: 0, False: 17.3k]
  ------------------
  783|      0|				return SipResponseLayer::SipResponseStatusCode::Sip422SessionIntervalTooSmall;
  784|      0|			case 423:
  ------------------
  |  Branch (784:4): [True: 0, False: 17.3k]
  ------------------
  785|      0|				return SipResponseLayer::SipResponseStatusCode::Sip423IntervalTooBrief;
  786|      0|			case 424:
  ------------------
  |  Branch (786:4): [True: 0, False: 17.3k]
  ------------------
  787|      0|				return SipResponseLayer::SipResponseStatusCode::Sip424BadLocationInformation;
  788|      0|			case 425:
  ------------------
  |  Branch (788:4): [True: 0, False: 17.3k]
  ------------------
  789|      0|				return SipResponseLayer::SipResponseStatusCode::Sip425BadAlertMessage;
  790|      0|			case 428:
  ------------------
  |  Branch (790:4): [True: 0, False: 17.3k]
  ------------------
  791|      0|				return SipResponseLayer::SipResponseStatusCode::Sip428UseIdentityHeader;
  792|      0|			case 429:
  ------------------
  |  Branch (792:4): [True: 0, False: 17.3k]
  ------------------
  793|      0|				return SipResponseLayer::SipResponseStatusCode::Sip429ProvideReferrerIdentity;
  794|      0|			case 430:
  ------------------
  |  Branch (794:4): [True: 0, False: 17.3k]
  ------------------
  795|      0|				return SipResponseLayer::SipResponseStatusCode::Sip430FlowFailed;
  796|      0|			case 433:
  ------------------
  |  Branch (796:4): [True: 0, False: 17.3k]
  ------------------
  797|      0|				return SipResponseLayer::SipResponseStatusCode::Sip433AnonymityDisallowed;
  798|      0|			case 436:
  ------------------
  |  Branch (798:4): [True: 0, False: 17.3k]
  ------------------
  799|      0|				return SipResponseLayer::SipResponseStatusCode::Sip436BadIdentityInfo;
  800|      0|			case 437:
  ------------------
  |  Branch (800:4): [True: 0, False: 17.3k]
  ------------------
  801|      0|				return SipResponseLayer::SipResponseStatusCode::Sip437UnsupportedCertificate;
  802|      0|			case 438:
  ------------------
  |  Branch (802:4): [True: 0, False: 17.3k]
  ------------------
  803|      0|				return SipResponseLayer::SipResponseStatusCode::Sip438InvalidIdentityHeader;
  804|      0|			case 439:
  ------------------
  |  Branch (804:4): [True: 0, False: 17.3k]
  ------------------
  805|      0|				return SipResponseLayer::SipResponseStatusCode::Sip439FirstHopLacksOutboundSupport;
  806|      0|			case 440:
  ------------------
  |  Branch (806:4): [True: 0, False: 17.3k]
  ------------------
  807|      0|				return SipResponseLayer::SipResponseStatusCode::Sip440MaxBreadthExceeded;
  808|      0|			case 469:
  ------------------
  |  Branch (808:4): [True: 0, False: 17.3k]
  ------------------
  809|      0|				return SipResponseLayer::SipResponseStatusCode::Sip469BadInfoPackage;
  810|      0|			case 470:
  ------------------
  |  Branch (810:4): [True: 0, False: 17.3k]
  ------------------
  811|      0|				return SipResponseLayer::SipResponseStatusCode::Sip470ConsentNeeded;
  812|      0|			case 480:
  ------------------
  |  Branch (812:4): [True: 0, False: 17.3k]
  ------------------
  813|      0|				return SipResponseLayer::SipResponseStatusCode::Sip480TemporarilyUnavailable;
  814|      0|			case 481:
  ------------------
  |  Branch (814:4): [True: 0, False: 17.3k]
  ------------------
  815|      0|				return SipResponseLayer::SipResponseStatusCode::Sip481Call_TransactionDoesNotExist;
  816|      0|			case 482:
  ------------------
  |  Branch (816:4): [True: 0, False: 17.3k]
  ------------------
  817|      0|				return SipResponseLayer::SipResponseStatusCode::Sip482LoopDetected;
  818|      0|			case 483:
  ------------------
  |  Branch (818:4): [True: 0, False: 17.3k]
  ------------------
  819|      0|				return SipResponseLayer::SipResponseStatusCode::Sip483TooManyHops;
  820|      0|			case 484:
  ------------------
  |  Branch (820:4): [True: 0, False: 17.3k]
  ------------------
  821|      0|				return SipResponseLayer::SipResponseStatusCode::Sip484AddressIncomplete;
  822|      0|			case 485:
  ------------------
  |  Branch (822:4): [True: 0, False: 17.3k]
  ------------------
  823|      0|				return SipResponseLayer::SipResponseStatusCode::Sip485Ambiguous;
  824|      0|			case 486:
  ------------------
  |  Branch (824:4): [True: 0, False: 17.3k]
  ------------------
  825|      0|				return SipResponseLayer::SipResponseStatusCode::Sip486BusyHere;
  826|    328|			case 487:
  ------------------
  |  Branch (826:4): [True: 328, False: 17.0k]
  ------------------
  827|    328|				return SipResponseLayer::SipResponseStatusCode::Sip487RequestTerminated;
  828|      0|			case 488:
  ------------------
  |  Branch (828:4): [True: 0, False: 17.3k]
  ------------------
  829|      0|				return SipResponseLayer::SipResponseStatusCode::Sip488NotAcceptableHere;
  830|      0|			case 489:
  ------------------
  |  Branch (830:4): [True: 0, False: 17.3k]
  ------------------
  831|      0|				return SipResponseLayer::SipResponseStatusCode::Sip489BadEvent;
  832|      0|			case 491:
  ------------------
  |  Branch (832:4): [True: 0, False: 17.3k]
  ------------------
  833|      0|				return SipResponseLayer::SipResponseStatusCode::Sip491RequestPending;
  834|      0|			case 493:
  ------------------
  |  Branch (834:4): [True: 0, False: 17.3k]
  ------------------
  835|      0|				return SipResponseLayer::SipResponseStatusCode::Sip493Undecipherable;
  836|      0|			case 494:
  ------------------
  |  Branch (836:4): [True: 0, False: 17.3k]
  ------------------
  837|      0|				return SipResponseLayer::SipResponseStatusCode::Sip494SecurityAgreementRequired;
  838|       |			// 5xx: Server Failure
  839|      0|			case 500:
  ------------------
  |  Branch (839:4): [True: 0, False: 17.3k]
  ------------------
  840|      0|				return SipResponseLayer::SipResponseStatusCode::Sip500ServerInternalError;
  841|      0|			case 501:
  ------------------
  |  Branch (841:4): [True: 0, False: 17.3k]
  ------------------
  842|      0|				return SipResponseLayer::SipResponseStatusCode::Sip501NotImplemented;
  843|      0|			case 502:
  ------------------
  |  Branch (843:4): [True: 0, False: 17.3k]
  ------------------
  844|      0|				return SipResponseLayer::SipResponseStatusCode::Sip502BadGateway;
  845|      0|			case 503:
  ------------------
  |  Branch (845:4): [True: 0, False: 17.3k]
  ------------------
  846|      0|				return SipResponseLayer::SipResponseStatusCode::Sip503ServiceUnavailable;
  847|      0|			case 504:
  ------------------
  |  Branch (847:4): [True: 0, False: 17.3k]
  ------------------
  848|      0|				return SipResponseLayer::SipResponseStatusCode::Sip504ServerTimeout;
  849|      0|			case 505:
  ------------------
  |  Branch (849:4): [True: 0, False: 17.3k]
  ------------------
  850|      0|				return SipResponseLayer::SipResponseStatusCode::Sip505VersionNotSupported;
  851|      0|			case 513:
  ------------------
  |  Branch (851:4): [True: 0, False: 17.3k]
  ------------------
  852|      0|				return SipResponseLayer::SipResponseStatusCode::Sip513MessageTooLarge;
  853|      0|			case 555:
  ------------------
  |  Branch (853:4): [True: 0, False: 17.3k]
  ------------------
  854|      0|				return SipResponseLayer::SipResponseStatusCode::Sip555PushNotificationServiceNotSupported;
  855|      0|			case 580:
  ------------------
  |  Branch (855:4): [True: 0, False: 17.3k]
  ------------------
  856|      0|				return SipResponseLayer::SipResponseStatusCode::Sip580PreconditionFailure;
  857|       |			// 6xx: Global Failure
  858|      0|			case 600:
  ------------------
  |  Branch (858:4): [True: 0, False: 17.3k]
  ------------------
  859|      0|				return SipResponseLayer::SipResponseStatusCode::Sip600BusyEverywhere;
  860|      0|			case 603:
  ------------------
  |  Branch (860:4): [True: 0, False: 17.3k]
  ------------------
  861|      0|				return SipResponseLayer::SipResponseStatusCode::Sip603Decline;
  862|      0|			case 604:
  ------------------
  |  Branch (862:4): [True: 0, False: 17.3k]
  ------------------
  863|      0|				return SipResponseLayer::SipResponseStatusCode::Sip604DoesNotExistAnywhere;
  864|      0|			case 606:
  ------------------
  |  Branch (864:4): [True: 0, False: 17.3k]
  ------------------
  865|      0|				return SipResponseLayer::SipResponseStatusCode::Sip606NotAcceptable;
  866|      0|			case 607:
  ------------------
  |  Branch (866:4): [True: 0, False: 17.3k]
  ------------------
  867|      0|				return SipResponseLayer::SipResponseStatusCode::Sip607Unwanted;
  868|      0|			case 608:
  ------------------
  |  Branch (868:4): [True: 0, False: 17.3k]
  ------------------
  869|      0|				return SipResponseLayer::SipResponseStatusCode::Sip608Rejected;
  870|    186|			default:
  ------------------
  |  Branch (870:4): [True: 186, False: 17.1k]
  ------------------
  871|    186|				return SipResponseLayer::SipStatusCodeUnknown;
  872|  17.3k|			}
  873|  17.3k|		}
SipLayer.cpp:_ZN4pcpp12_GLOBAL__N_1li8_packed4EPKcm:
   28|      6|		{
   29|      6|			return pack4(str, len);
   30|      6|		}

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

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

_ZN4pcpp11SomeIpLayer16parseSomeIpLayerEPhmPNS_5LayerEPNS_6PacketE:
   47|  48.3k|	{
   48|       |		// Ideas taken from wireshark some ip dissector
   49|  48.3k|		const size_t headerLen = sizeof(someiphdr);
   50|  48.3k|		if (dataLen < headerLen)
  ------------------
  |  Branch (50:7): [True: 16.3k, False: 32.0k]
  ------------------
   51|  16.3k|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   52|       |
   53|  32.0k|		uint32_t lengthBE = 0;
   54|  32.0k|		memcpy(&lengthBE, data + sizeof(uint32_t), sizeof(uint32_t));  // length field in SOME/IP header
   55|  32.0k|		uint32_t length = be32toh(lengthBE);
   56|  32.0k|		if ((length < 8) || (length > dataLen - 8))
  ------------------
  |  Branch (56:7): [True: 56, False: 32.0k]
  |  Branch (56:23): [True: 1.40k, False: 30.6k]
  ------------------
   57|  1.45k|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   58|       |
   59|  30.6k|		if (data[12] != SOMEIP_PROTOCOL_VERSION)
  ------------------
  |  Branch (59:7): [True: 26, False: 30.6k]
  ------------------
   60|     26|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   61|       |
   62|  30.6k|		someiphdr* hdr = (someiphdr*)data;
   63|       |
   64|  30.6k|		switch (static_cast<MsgType>(hdr->msgType & ~(uint8_t)MsgType::TP_REQUEST))
   65|  30.6k|		{
   66|    189|		case MsgType::REQUEST:
  ------------------
  |  Branch (66:3): [True: 189, False: 30.4k]
  ------------------
   67|    189|		case MsgType::REQUEST_ACK:
  ------------------
  |  Branch (67:3): [True: 0, False: 30.6k]
  ------------------
   68|  3.77k|		case MsgType::REQUEST_NO_RETURN:
  ------------------
  |  Branch (68:3): [True: 3.58k, False: 27.0k]
  ------------------
   69|  3.78k|		case MsgType::REQUEST_NO_RETURN_ACK:
  ------------------
  |  Branch (69:3): [True: 16, False: 30.5k]
  ------------------
   70|  27.5k|		case MsgType::NOTIFICATION:
  ------------------
  |  Branch (70:3): [True: 23.7k, False: 6.89k]
  ------------------
   71|  27.6k|		case MsgType::NOTIFICATION_ACK:
  ------------------
  |  Branch (71:3): [True: 128, False: 30.4k]
  ------------------
   72|  27.6k|		case MsgType::RESPONSE:
  ------------------
  |  Branch (72:3): [True: 0, False: 30.6k]
  ------------------
   73|  27.6k|		case MsgType::RESPONSE_ACK:
  ------------------
  |  Branch (73:3): [True: 18, False: 30.5k]
  ------------------
   74|  27.6k|		case MsgType::ERRORS:
  ------------------
  |  Branch (74:3): [True: 14, False: 30.5k]
  ------------------
   75|  30.6k|		case MsgType::ERROR_ACK:
  ------------------
  |  Branch (75:3): [True: 2.94k, False: 27.6k]
  ------------------
   76|  30.6k|			break;
   77|      7|		default:
  ------------------
  |  Branch (77:3): [True: 7, False: 30.6k]
  ------------------
   78|      7|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   79|  30.6k|		}
   80|       |
   81|  30.6k|		if (be16toh(hdr->serviceID) == 0xFFFF && be16toh(hdr->methodID) == 0x8100 &&
  ------------------
  |  Branch (81:7): [True: 29.2k, False: 1.34k]
  |  Branch (81:44): [True: 26.3k, False: 2.91k]
  ------------------
   82|  26.3k|		    SomeIpSdLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (82:7): [True: 20.5k, False: 5.77k]
  ------------------
   83|  20.5k|		{
   84|  20.5k|			return new SomeIpSdLayer(data, dataLen, prevLayer, packet);
   85|  20.5k|		}
   86|  10.0k|		else if ((hdr->msgType & (uint8_t)SomeIpLayer::MsgType::TP_REQUEST) != 0)
  ------------------
  |  Branch (86:12): [True: 2.55k, False: 7.48k]
  ------------------
   87|  2.55k|		{
   88|  2.55k|			return new SomeIpTpLayer(data, dataLen, prevLayer, packet);
   89|  2.55k|		}
   90|  7.48k|		else
   91|  7.48k|		{
   92|  7.48k|			return new SomeIpLayer(data, dataLen, prevLayer, packet);
   93|  7.48k|		}
   94|  30.6k|	}
_ZN4pcpp11SomeIpLayer12isSomeIpPortEt:
   97|   366k|	{
   98|   366k|		return SomeIpSdLayer::isSomeIpSdPort(port) ||
  ------------------
  |  Branch (98:10): [True: 30.7k, False: 335k]
  ------------------
   99|   335k|		       std::any_of(m_SomeIpPorts.begin(), m_SomeIpPorts.end(),
  ------------------
  |  Branch (99:10): [True: 0, False: 335k]
  ------------------
  100|   335k|		                   [&](const uint16_t& someIpPort) { return someIpPort == port; });
  101|   366k|	}
_ZNK4pcpp11SomeIpLayer12getServiceIDEv:
  138|  2.65k|	{
  139|       |		return be16toh(getSomeIpHeader()->serviceID);
  140|  2.65k|	}
_ZNK4pcpp11SomeIpLayer11getMethodIDEv:
  148|  2.65k|	{
  149|       |		return be16toh(getSomeIpHeader()->methodID);
  150|  2.65k|	}
_ZNK4pcpp11SomeIpLayer14getLengthFieldEv:
  158|  37.6k|	{
  159|       |		return be32toh(getSomeIpHeader()->length);
  160|  37.6k|	}
_ZNK4pcpp11SomeIpLayer19getMessageTypeAsIntEv:
  227|    324|	{
  228|    324|		return getSomeIpHeader()->msgType;
  229|    324|	}
_ZN4pcpp11SomeIpLayer14setMessageTypeEh:
  237|    324|	{
  238|    324|		getSomeIpHeader()->msgType = type;
  239|    324|	}
_ZN4pcpp11SomeIpLayer14parseNextLayerEv:
  259|  30.6k|	{
  260|  30.6k|		size_t headerLen = getHeaderLen();
  261|  30.6k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (261:7): [True: 12.9k, False: 17.6k]
  ------------------
  262|  12.9k|			return;
  263|       |
  264|  17.6k|		uint8_t* payload = m_Data + headerLen;
  265|  17.6k|		size_t payloadLen = m_DataLen - headerLen;
  266|       |
  267|  17.6k|		constructNextLayerFromFactory(parseSomeIpLayer, payload, payloadLen);
  268|  17.6k|	}
_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|    324|	{
  347|    324|		setMessageType(setTpFlag(getMessageTypeAsInt()));
  348|    324|	}
_ZNK4pcpp13SomeIpTpLayer8toStringEv:
  351|    648|	{
  352|    648|		std::stringstream dataStream;
  353|       |
  354|    648|		dataStream << "SOME/IP-TP Layer" << std::hex << ", Service ID: 0x" << getServiceID() << ", Method ID: 0x"
  355|    648|		           << getMethodID() << std::dec << ", Length: " << getLengthField();
  356|       |
  357|    648|		return dataStream.str();
  358|    648|	}
_ZN4pcpp13SomeIpTpLayer9setTpFlagEh:
  361|    324|	{
  362|    324|		return messageType | (uint8_t)SomeIpLayer::MsgType::TP_REQUEST;
  363|    324|	}

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

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

_ZN4pcpp16TcpOptionBuilderC2ENS0_20NopEolOptionEnumTypeE:
   54|  95.3k|	{
   55|  95.3k|		switch (optionType)
   56|  95.3k|		{
   57|      0|		case NopEolOptionEnumType::Eol:
  ------------------
  |  Branch (57:3): [True: 0, False: 95.3k]
  ------------------
   58|      0|			init(static_cast<uint8_t>(TcpOptionEnumType::Eol), nullptr, 0);
   59|      0|			break;
   60|  95.3k|		case NopEolOptionEnumType::Nop:
  ------------------
  |  Branch (60:3): [True: 95.3k, False: 0]
  ------------------
   61|  95.3k|		default:
  ------------------
  |  Branch (61:3): [True: 0, False: 95.3k]
  ------------------
   62|  95.3k|			init(static_cast<uint8_t>(TcpOptionEnumType::Nop), nullptr, 0);
   63|  95.3k|			break;
   64|  95.3k|		}
   65|  95.3k|	}
_ZNK4pcpp16TcpOptionBuilder5buildEv:
   68|  57.7k|	{
   69|  57.7k|		uint8_t recType = static_cast<uint8_t>(m_RecType);
   70|  57.7k|		size_t optionSize = m_RecValueLen + 2 * sizeof(uint8_t);
   71|       |
   72|  57.7k|		if (recType == static_cast<uint8_t>(TcpOptionEnumType::Eol) ||
  ------------------
  |  Branch (72:7): [True: 0, False: 57.7k]
  ------------------
   73|  57.7k|		    recType == static_cast<uint8_t>(TcpOptionEnumType::Nop))
  ------------------
  |  Branch (73:7): [True: 57.7k, False: 0]
  ------------------
   74|  57.7k|		{
   75|  57.7k|			if (m_RecValueLen != 0)
  ------------------
  |  Branch (75:8): [True: 0, False: 57.7k]
  ------------------
   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|  57.7k|			optionSize = 1;
   84|  57.7k|		}
   85|       |
   86|  57.7k|		uint8_t* recordBuffer = new uint8_t[optionSize];
   87|  57.7k|		memset(recordBuffer, 0, optionSize);
   88|  57.7k|		recordBuffer[0] = recType;
   89|  57.7k|		if (optionSize > 1)
  ------------------
  |  Branch (89:7): [True: 0, False: 57.7k]
  ------------------
   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|  57.7k|		return TcpOption(recordBuffer);
   97|  57.7k|	}
_ZNK4pcpp8TcpLayer10getSrcPortEv:
  104|   610k|	{
  105|       |		return be16toh(getTcpHeader()->portSrc);
  106|   610k|	}
_ZNK4pcpp8TcpLayer10getDstPortEv:
  109|   610k|	{
  110|       |		return be16toh(getTcpHeader()->portDst);
  111|   610k|	}
_ZNK4pcpp8TcpLayer12getTcpOptionENS_17TcpOptionEnumTypeE:
  114|  95.3k|	{
  115|  95.3k|		return m_OptionReader.getTLVRecord(static_cast<uint8_t>(option), getOptionsBasePtr(),
  116|  95.3k|		                                   getHeaderLen() - sizeof(tcphdr));
  117|  95.3k|	}
_ZNK4pcpp8TcpLayer17getFirstTcpOptionEv:
  120|  57.7k|	{
  121|  57.7k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(tcphdr));
  122|  57.7k|	}
_ZNK4pcpp8TcpLayer16getNextTcpOptionERNS_9TcpOptionE:
  125|   185k|	{
  126|   185k|		TcpOption nextOpt =
  127|   185k|		    m_OptionReader.getNextTLVRecord(tcpOption, getOptionsBasePtr(), getHeaderLen() - sizeof(tcphdr));
  128|   185k|		if (nextOpt.isNotNull() && nextOpt.getType() == TCPOPT_DUMMY)
  ------------------
  |  |   33|   127k|#define TCPOPT_DUMMY 0xff
  ------------------
  |  Branch (128:7): [True: 127k, False: 57.6k]
  |  Branch (128:30): [True: 95, False: 127k]
  ------------------
  129|     95|			return TcpOption(nullptr);
  130|       |
  131|   185k|		return nextOpt;
  132|   185k|	}
_ZN4pcpp8TcpLayer20insertTcpOptionAfterERKNS_16TcpOptionBuilderENS_17TcpOptionEnumTypeE:
  146|  95.3k|	{
  147|  95.3k|		int offset = 0;
  148|       |
  149|  95.3k|		if (prevOptionType == TcpOptionEnumType::Unknown)
  ------------------
  |  Branch (149:7): [True: 0, False: 95.3k]
  ------------------
  150|      0|		{
  151|      0|			offset = sizeof(tcphdr);
  152|      0|		}
  153|  95.3k|		else
  154|  95.3k|		{
  155|  95.3k|			const TcpOption prevOpt = getTcpOption(prevOptionType);
  156|  95.3k|			if (prevOpt.isNull())
  ------------------
  |  Branch (156:8): [True: 37.6k, False: 57.7k]
  ------------------
  157|  37.6k|			{
  158|  37.6k|				PCPP_LOG_ERROR("Previous option of type " << static_cast<int>(prevOptionType)
  ------------------
  |  |  443|  37.6k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  37.6k|	do                                                                                                                 \
  |  |  |  |  413|  37.6k|	{                                                                                                                  \
  |  |  |  |  414|  37.6k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  37.6k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  37.6k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 37.6k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  37.6k|		{                                                                                                              \
  |  |  |  |  417|  37.6k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  37.6k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  37.6k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  37.6k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  37.6k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  37.6k|		}                                                                                                              \
  |  |  |  |  422|  37.6k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 37.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  159|  37.6k|				                                          << " not found, cannot add a new TCP option");
  160|  37.6k|				return TcpOption(nullptr);
  161|  37.6k|			}
  162|       |
  163|  57.7k|			offset = prevOpt.getRecordBasePtr() + prevOpt.getTotalSize() - m_Data;
  164|  57.7k|		}
  165|       |
  166|  57.7k|		return addTcpOptionAt(optionBuilder, offset);
  167|  95.3k|	}
_ZN4pcpp8TcpLayer14addTcpOptionAtERKNS_16TcpOptionBuilderEi:
  215|  57.7k|	{
  216|  57.7k|		TcpOption newOption = optionBuilder.build();
  217|  57.7k|		if (newOption.isNull())
  ------------------
  |  Branch (217:7): [True: 0, False: 57.7k]
  ------------------
  218|      0|			return newOption;
  219|       |
  220|       |		// calculate total TCP option size
  221|  57.7k|		TcpOption curOpt = getFirstTcpOption();
  222|  57.7k|		size_t totalOptSize = 0;
  223|   243k|		while (!curOpt.isNull())
  ------------------
  |  Branch (223:10): [True: 185k, False: 57.7k]
  ------------------
  224|   185k|		{
  225|   185k|			totalOptSize += curOpt.getTotalSize();
  226|   185k|			curOpt = getNextTcpOption(curOpt);
  227|   185k|		}
  228|  57.7k|		totalOptSize += newOption.getTotalSize();
  229|       |
  230|  57.7k|		size_t sizeToExtend = newOption.getTotalSize();
  231|       |
  232|  57.7k|		if (!extendLayer(offset, sizeToExtend))
  ------------------
  |  Branch (232:7): [True: 0, False: 57.7k]
  ------------------
  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|  57.7k|		memcpy(m_Data + offset, newOption.getRecordBasePtr(), newOption.getTotalSize());
  240|       |
  241|  57.7k|		newOption.purgeRecordData();
  242|       |
  243|  57.7k|		adjustTcpOptionTrailer(totalOptSize);
  244|       |
  245|  57.7k|		m_OptionReader.changeTLVRecordCount(1);
  246|       |
  247|  57.7k|		uint8_t* newOptPtr = m_Data + offset;
  248|       |
  249|  57.7k|		return TcpOption(newOptPtr);
  250|  57.7k|	}
_ZN4pcpp8TcpLayer22adjustTcpOptionTrailerEm:
  253|  57.7k|	{
  254|  57.7k|		int newNumberOfTrailingBytes = 0;
  255|   201k|		while ((totalOptSize + newNumberOfTrailingBytes) % 4 != 0)
  ------------------
  |  Branch (255:10): [True: 143k, False: 57.7k]
  ------------------
  256|   143k|			newNumberOfTrailingBytes++;
  257|       |
  258|  57.7k|		if (newNumberOfTrailingBytes < m_NumOfTrailingBytes)
  ------------------
  |  Branch (258:7): [True: 0, False: 57.7k]
  ------------------
  259|      0|			shortenLayer(sizeof(tcphdr) + totalOptSize, m_NumOfTrailingBytes - newNumberOfTrailingBytes - 1);
  260|  57.7k|		else if (newNumberOfTrailingBytes > m_NumOfTrailingBytes)
  ------------------
  |  Branch (260:12): [True: 49.5k, False: 8.14k]
  ------------------
  261|  49.5k|			extendLayer(sizeof(tcphdr) + totalOptSize, newNumberOfTrailingBytes - m_NumOfTrailingBytes);
  262|       |
  263|  57.7k|		m_NumOfTrailingBytes = newNumberOfTrailingBytes;
  264|       |
  265|   201k|		for (int i = 0; i < m_NumOfTrailingBytes; i++)
  ------------------
  |  Branch (265:19): [True: 143k, False: 57.7k]
  ------------------
  266|   143k|			m_Data[sizeof(tcphdr) + totalOptSize + i] = TCPOPT_DUMMY;
  ------------------
  |  |   33|   143k|#define TCPOPT_DUMMY 0xff
  ------------------
  267|       |
  268|  57.7k|		getTcpHeader()->dataOffset = (sizeof(tcphdr) + totalOptSize + m_NumOfTrailingBytes) / 4;
  269|  57.7k|	}
_ZN4pcpp8TcpLayer17calculateChecksumEb:
  272|  95.3k|	{
  273|  95.3k|		tcphdr* tcpHdr = getTcpHeader();
  274|  95.3k|		uint16_t checksumRes = 0;
  275|  95.3k|		const uint16_t currChecksumValue = tcpHdr->headerChecksum;
  276|       |
  277|  95.3k|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (277:7): [True: 95.3k, False: 0]
  ------------------
  278|  95.3k|		{
  279|  95.3k|			tcpHdr->headerChecksum = 0;
  280|  95.3k|			PCPP_LOG_DEBUG("TCP data len = " << m_DataLen);
  ------------------
  |  |  425|  95.3k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  95.3k|	do                                                                                                                 \
  |  |  |  |  413|  95.3k|	{                                                                                                                  \
  |  |  |  |  414|  95.3k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  95.3k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  95.3k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 95.3k]
  |  |  |  |  ------------------
  |  |  |  |  416|  95.3k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  95.3k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 95.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  281|       |
  282|  95.3k|			if (m_PrevLayer->getProtocol() == IPv4)
  ------------------
  |  Branch (282:8): [True: 79.6k, False: 15.7k]
  ------------------
  283|  79.6k|			{
  284|  79.6k|				const IPv4Address srcIP = static_cast<IPv4Layer*>(m_PrevLayer)->getSrcIPv4Address();
  285|  79.6k|				const IPv4Address dstIP = static_cast<IPv4Layer*>(m_PrevLayer)->getDstIPv4Address();
  286|       |
  287|  79.6k|				checksumRes =
  288|  79.6k|				    pcpp::computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(tcpHdr), getDataLen(),
  289|  79.6k|				                                   IPAddress::IPv4AddressType, PACKETPP_IPPROTO_TCP, srcIP, dstIP);
  290|       |
  291|  79.6k|				PCPP_LOG_DEBUG("calculated IPv4 TCP checksum = 0x" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  79.6k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  79.6k|	do                                                                                                                 \
  |  |  |  |  413|  79.6k|	{                                                                                                                  \
  |  |  |  |  414|  79.6k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  79.6k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  79.6k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 79.6k]
  |  |  |  |  ------------------
  |  |  |  |  416|  79.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|  79.6k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 79.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  292|  79.6k|			}
  293|  15.7k|			else if (m_PrevLayer->getProtocol() == IPv6)
  ------------------
  |  Branch (293:13): [True: 15.7k, False: 0]
  ------------------
  294|  15.7k|			{
  295|  15.7k|				const IPv6Address srcIP = static_cast<IPv6Layer*>(m_PrevLayer)->getSrcIPv6Address();
  296|  15.7k|				const IPv6Address dstIP = static_cast<IPv6Layer*>(m_PrevLayer)->getDstIPv6Address();
  297|       |
  298|  15.7k|				checksumRes = computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(tcpHdr), getDataLen(),
  299|  15.7k|				                                       IPAddress::IPv6AddressType, PACKETPP_IPPROTO_TCP, srcIP, dstIP);
  300|       |
  301|  15.7k|				PCPP_LOG_DEBUG("calculated IPv6 TCP checksum = 0xX" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  15.7k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  15.7k|	do                                                                                                                 \
  |  |  |  |  413|  15.7k|	{                                                                                                                  \
  |  |  |  |  414|  15.7k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  15.7k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  15.7k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 15.7k]
  |  |  |  |  ------------------
  |  |  |  |  416|  15.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|  15.7k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 15.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  302|  15.7k|			}
  303|  95.3k|		}
  304|       |
  305|  95.3k|		if (writeResultToPacket)
  ------------------
  |  Branch (305:7): [True: 95.3k, False: 0]
  ------------------
  306|  95.3k|			tcpHdr->headerChecksum = htobe16(checksumRes);
  307|      0|		else
  308|      0|			tcpHdr->headerChecksum = currChecksumValue;
  309|       |
  310|  95.3k|		return checksumRes;
  311|  95.3k|	}
_ZN4pcpp8TcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  324|   517k|	    : Layer(data, dataLen, prevLayer, packet, TCP)
  325|   517k|	{
  326|   517k|		m_NumOfTrailingBytes = 0;
  327|   517k|	}
_ZN4pcpp8TcpLayer13copyLayerDataERKS0_:
  342|  95.3k|	{
  343|  95.3k|		m_OptionReader = other.m_OptionReader;
  344|  95.3k|		m_NumOfTrailingBytes = other.m_NumOfTrailingBytes;
  345|  95.3k|	}
_ZN4pcpp8TcpLayerC2ERKS0_:
  347|  95.3k|	TcpLayer::TcpLayer(const TcpLayer& other) : Layer(other)
  348|  95.3k|	{
  349|  95.3k|		copyLayerData(other);
  350|  95.3k|	}
_ZN4pcpp8TcpLayer14parseNextLayerEv:
  362|   517k|	{
  363|   517k|		const size_t headerLen = getHeaderLen();
  364|   517k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (364:7): [True: 97.7k, False: 419k]
  ------------------
  365|  97.7k|			return;
  366|       |
  367|   419k|		uint8_t* payload = m_Data + headerLen;
  368|   419k|		const size_t payloadLen = m_DataLen - headerLen;
  369|   419k|		const uint16_t portDst = getDstPort();
  370|   419k|		const uint16_t portSrc = getSrcPort();
  371|   419k|		const char* payloadChar = reinterpret_cast<const char*>(payload);
  372|       |
  373|   419k|		if (HttpMessage::isHttpPort(portDst) &&
  ------------------
  |  Branch (373:7): [True: 16.3k, False: 403k]
  ------------------
  374|  16.3k|		    HttpRequestFirstLine::parseMethod(payloadChar, payloadLen) != HttpRequestLayer::HttpMethodUnknown)
  ------------------
  |  Branch (374:7): [True: 5.55k, False: 10.7k]
  ------------------
  375|  5.55k|		{
  376|  5.55k|			constructNextLayer<HttpRequestLayer>(payload, payloadLen, getAttachedPacket());
  377|  5.55k|		}
  378|   413k|		else if (HttpMessage::isHttpPort(portSrc) &&
  ------------------
  |  Branch (378:12): [True: 35.4k, False: 378k]
  |  Branch (378:12): [True: 10.7k, False: 403k]
  ------------------
  379|  35.4k|		         HttpResponseFirstLine::parseVersion(payloadChar, payloadLen) != HttpVersion::HttpVersionUnknown &&
  ------------------
  |  Branch (379:12): [True: 11.3k, False: 24.0k]
  ------------------
  380|  11.3k|		         !HttpResponseFirstLine::parseStatusCode(payloadChar, payloadLen).isUnsupportedCode())
  ------------------
  |  Branch (380:12): [True: 10.7k, False: 635]
  ------------------
  381|  10.7k|		{
  382|  10.7k|			constructNextLayer<HttpResponseLayer>(payload, payloadLen, getAttachedPacket());
  383|  10.7k|		}
  384|   403k|		else if (SSLLayer::IsSSLMessage(portSrc, portDst, payload, payloadLen))
  ------------------
  |  Branch (384:12): [True: 119k, False: 283k]
  ------------------
  385|   119k|		{
  386|   119k|			constructNextLayerFromFactory(SSLLayer::createSSLMessage, payload, payloadLen);
  387|   119k|		}
  388|   283k|		else if (SipLayer::isSipPort(portDst) || SipLayer::isSipPort(portSrc))
  ------------------
  |  Branch (388:12): [True: 0, False: 283k]
  |  Branch (388:44): [True: 0, False: 283k]
  ------------------
  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|   283k|		else if (BgpLayer::isBgpPort(portSrc, portDst))
  ------------------
  |  Branch (404:12): [True: 48.6k, False: 235k]
  ------------------
  405|  48.6k|		{
  406|  48.6k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(BgpLayer::parseBgpLayer, payload, payloadLen);
  407|  48.6k|		}
  408|   235k|		else if (SSHLayer::isSSHPort(portSrc, portDst))
  ------------------
  |  Branch (408:12): [True: 14.7k, False: 220k]
  ------------------
  409|  14.7k|		{
  410|  14.7k|			constructNextLayerFromFactory(SSHLayer::createSSHMessage, payload, payloadLen);
  411|  14.7k|		}
  412|   220k|		else if (DnsLayer::isDataValid(payload, payloadLen, true) &&
  ------------------
  |  Branch (412:12): [True: 196k, False: 24.4k]
  ------------------
  413|   196k|		         (DnsLayer::isDnsPort(portDst) || DnsLayer::isDnsPort(portSrc)))
  ------------------
  |  Branch (413:13): [True: 10.4k, False: 185k]
  |  Branch (413:45): [True: 7.52k, False: 178k]
  ------------------
  414|  17.9k|		{
  415|  17.9k|			constructNextLayer<DnsOverTcpLayer>(payload, payloadLen, getAttachedPacket());
  416|  17.9k|		}
  417|   202k|		else if (TelnetLayer::isDataValid(payload, payloadLen) &&
  ------------------
  |  Branch (417:12): [True: 202k, False: 0]
  ------------------
  418|   202k|		         (TelnetLayer::isTelnetPort(portDst) || TelnetLayer::isTelnetPort(portSrc)))
  ------------------
  |  Branch (418:13): [True: 51.5k, False: 151k]
  |  Branch (418:51): [True: 101, False: 150k]
  ------------------
  419|  51.6k|		{
  420|  51.6k|			constructNextLayer<TelnetLayer>(payload, payloadLen, getAttachedPacket());
  421|  51.6k|		}
  422|   150k|		else if (FtpLayer::isFtpPort(portSrc) && FtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (422:12): [True: 9.36k, False: 141k]
  |  Branch (422:44): [True: 9.35k, False: 5]
  ------------------
  423|  9.35k|		{
  424|  9.35k|			constructNextLayer<FtpResponseLayer>(payload, payloadLen, getAttachedPacket());
  425|  9.35k|		}
  426|   141k|		else if (FtpLayer::isFtpPort(portDst) && FtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (426:12): [True: 0, False: 141k]
  |  Branch (426:44): [True: 0, False: 0]
  ------------------
  427|      0|		{
  428|      0|			constructNextLayer<FtpRequestLayer>(payload, payloadLen, getAttachedPacket());
  429|      0|		}
  430|   141k|		else if (FtpLayer::isFtpDataPort(portSrc) || FtpLayer::isFtpDataPort(portDst))
  ------------------
  |  Branch (430:12): [True: 713, False: 140k]
  |  Branch (430:48): [True: 2.24k, False: 138k]
  ------------------
  431|  2.95k|		{
  432|  2.95k|			constructNextLayer<FtpDataLayer>(payload, payloadLen, getAttachedPacket());
  433|  2.95k|		}
  434|   138k|		else if ((DoIpLayer::isDoIpPort(portSrc) || DoIpLayer::isDoIpPort(portDst)) &&
  ------------------
  |  Branch (434:13): [True: 5.94k, False: 132k]
  |  Branch (434:47): [True: 8.32k, False: 124k]
  ------------------
  435|  14.2k|		         (DoIpLayer::isDataValid(payload, payloadLen)))
  ------------------
  |  Branch (435:12): [True: 11.0k, False: 3.25k]
  ------------------
  436|  11.0k|		{
  437|  11.0k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(DoIpLayer::parseDoIpLayer, payload, payloadLen);
  438|  11.0k|		}
  439|   127k|		else if (SomeIpLayer::isSomeIpPort(portSrc) || SomeIpLayer::isSomeIpPort(portDst))
  ------------------
  |  Branch (439:12): [True: 0, False: 127k]
  |  Branch (439:50): [True: 0, False: 127k]
  ------------------
  440|      0|		{
  441|      0|			constructNextLayerFromFactory(SomeIpLayer::parseSomeIpLayer, payload, payloadLen);
  442|      0|		}
  443|   127k|		else if (TpktLayer::isDataValid(payload, payloadLen) && TpktLayer::isTpktPort(portSrc, portDst))
  ------------------
  |  Branch (443:12): [True: 124k, False: 3.57k]
  |  Branch (443:59): [True: 23.6k, False: 100k]
  ------------------
  444|  23.6k|		{
  445|  23.6k|			constructNextLayer<TpktLayer>(payload, payloadLen, getAttachedPacket());
  446|  23.6k|		}
  447|   103k|		else if (SmtpLayer::isSmtpPort(portSrc) && SmtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (447:12): [True: 2.07k, False: 101k]
  |  Branch (447:46): [True: 150, False: 1.92k]
  ------------------
  448|    150|		{
  449|    150|			constructNextLayer<SmtpResponseLayer>(payload, payloadLen, getAttachedPacket());
  450|    150|		}
  451|   103k|		else if (SmtpLayer::isSmtpPort(portDst) && SmtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (451:12): [True: 375, False: 103k]
  |  Branch (451:46): [True: 110, False: 265]
  ------------------
  452|    110|		{
  453|    110|			constructNextLayer<SmtpRequestLayer>(payload, payloadLen, getAttachedPacket());
  454|    110|		}
  455|   103k|		else if (LdapLayer::isLdapPort(portDst) || LdapLayer::isLdapPort(portSrc))
  ------------------
  |  Branch (455:12): [True: 17.3k, False: 86.3k]
  |  Branch (455:46): [True: 19.7k, False: 66.6k]
  ------------------
  456|  37.1k|		{
  457|  37.1k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(LdapLayer::parseLdapMessage, payload,
  458|  37.1k|			                                                           payloadLen);
  459|  37.1k|		}
  460|  66.6k|		else if (PostgresLayer::isPostgresPort(portDst))
  ------------------
  |  Branch (460:12): [True: 5, False: 66.5k]
  ------------------
  461|      5|		{
  462|      5|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(PostgresLayer::parsePostgresFrontendMessages,
  463|      5|			                                                           payload, payloadLen);
  464|      5|		}
  465|  66.5k|		else if (PostgresLayer::isPostgresPort(portSrc))
  ------------------
  |  Branch (465:12): [True: 0, False: 66.5k]
  ------------------
  466|      0|		{
  467|      0|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(PostgresLayer::parsePostgresBackendMessages,
  468|      0|			                                                           payload, payloadLen);
  469|      0|		}
  470|  66.5k|		else if (MySqlLayer::isMySqlPort(portSrc))
  ------------------
  |  Branch (470:12): [True: 420, False: 66.1k]
  ------------------
  471|    420|		{
  472|    420|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(MySqlLayer::parseMySqlServerMessage, payload,
  473|    420|			                                                           payloadLen);
  474|    420|		}
  475|  66.1k|		else if (MySqlLayer::isMySqlPort(portDst))
  ------------------
  |  Branch (475:12): [True: 645, False: 65.5k]
  ------------------
  476|    645|		{
  477|    645|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(MySqlLayer::parseMySqlClientMessage, payload,
  478|    645|			                                                           payloadLen);
  479|    645|		}
  480|  65.5k|		else if ((GtpV2Layer::isGTPv2Port(portDst) || GtpV2Layer::isGTPv2Port(portSrc)) &&
  ------------------
  |  Branch (480:13): [True: 0, False: 65.5k]
  |  Branch (480:49): [True: 0, False: 65.5k]
  ------------------
  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|  65.5k|		else if (ModbusLayer::isModbusPort(portDst) && ModbusLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (485:12): [True: 0, False: 65.5k]
  |  Branch (485:50): [True: 0, False: 0]
  ------------------
  486|      0|		{
  487|      0|			constructNextLayer<ModbusLayer>(payload, payloadLen, getAttachedPacket());
  488|      0|		}
  489|  65.5k|		else
  490|  65.5k|		{
  491|  65.5k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  492|  65.5k|		}
  493|   419k|	}
_ZN4pcpp8TcpLayer22computeCalculateFieldsEv:
  496|  95.3k|	{
  497|  95.3k|		tcphdr* tcpHdr = getTcpHeader();
  498|       |
  499|  95.3k|		tcpHdr->dataOffset = getHeaderLen() >> 2;
  500|  95.3k|		calculateChecksum(true);
  501|  95.3k|	}
_ZNK4pcpp8TcpLayer8toStringEv:
  504|   190k|	{
  505|   190k|		const tcphdr* hdr = getTcpHeader();
  506|   190k|		std::string result = "TCP Layer, ";
  507|   190k|		if (hdr->synFlag)
  ------------------
  |  Branch (507:7): [True: 17.2k, False: 173k]
  ------------------
  508|  17.2k|		{
  509|  17.2k|			if (hdr->ackFlag)
  ------------------
  |  Branch (509:8): [True: 7.26k, False: 10.0k]
  ------------------
  510|  7.26k|				result += "[SYN, ACK], ";
  511|  10.0k|			else
  512|  10.0k|				result += "[SYN], ";
  513|  17.2k|		}
  514|   173k|		else if (hdr->finFlag)
  ------------------
  |  Branch (514:12): [True: 9.51k, False: 163k]
  ------------------
  515|  9.51k|		{
  516|  9.51k|			if (hdr->ackFlag)
  ------------------
  |  Branch (516:8): [True: 8.54k, False: 974]
  ------------------
  517|  8.54k|				result += "[FIN, ACK], ";
  518|    974|			else
  519|    974|				result += "[FIN], ";
  520|  9.51k|		}
  521|   163k|		else if (hdr->ackFlag)
  ------------------
  |  Branch (521:12): [True: 162k, False: 1.10k]
  ------------------
  522|   162k|			result += "[ACK], ";
  523|       |
  524|   190k|		std::ostringstream srcPortStream;
  525|   190k|		srcPortStream << getSrcPort();
  526|   190k|		std::ostringstream dstPortStream;
  527|   190k|		dstPortStream << getDstPort();
  528|   190k|		result += "Src port: " + srcPortStream.str() + ", Dst port: " + dstPortStream.str();
  529|       |
  530|   190k|		return result;
  531|   190k|	}

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

_ZN4pcpp18tbp_my_own_strnlenEPKcm:
   13|  38.2k|	{
   14|  38.2k|		if (s == nullptr || maxlen == 0)
  ------------------
  |  Branch (14:7): [True: 0, False: 38.2k]
  |  Branch (14:23): [True: 2.07k, False: 36.2k]
  ------------------
   15|  2.07k|			return 0;
   16|       |
   17|  36.2k|		size_t i = 0;
   18|   728k|		for (; (i < maxlen) && s[i]; ++i)
  ------------------
  |  Branch (18:10): [True: 716k, False: 12.4k]
  |  Branch (18:26): [True: 692k, False: 23.7k]
  ------------------
   19|   692k|			;
   20|  36.2k|		return i;
   21|  38.2k|	}
_ZN4pcpp24TextBasedProtocolMessageC2EPhmPNS_5LayerEPNS_6PacketEh:
   27|   125k|	    : Layer(data, dataLen, prevLayer, packet, protocol), m_FieldList(nullptr), m_LastField(nullptr),
   28|   125k|	      m_FieldsOffset(0)
   29|   125k|	{}
_ZN4pcpp24TextBasedProtocolMessageC2ERKS0_:
   31|  3.84k|	TextBasedProtocolMessage::TextBasedProtocolMessage(const TextBasedProtocolMessage& other) : Layer(other)
   32|  3.84k|	{
   33|  3.84k|		copyDataFrom(other);
   34|  3.84k|	}
_ZN4pcpp24TextBasedProtocolMessage12copyDataFromERKS0_:
   53|  3.84k|	{
   54|       |		// copy field list
   55|  3.84k|		if (other.m_FieldList != nullptr)
  ------------------
  |  Branch (55:7): [True: 3.84k, False: 0]
  ------------------
   56|  3.84k|		{
   57|  3.84k|			m_FieldList = new HeaderField(*(other.m_FieldList));
   58|  3.84k|			HeaderField* curField = m_FieldList;
   59|  3.84k|			curField->attachToTextBasedProtocolMessage(this, other.m_FieldList->m_NameOffsetInMessage);
   60|  3.84k|			HeaderField* curOtherField = other.m_FieldList;
   61|  40.4k|			while (curOtherField->getNextField() != nullptr)
  ------------------
  |  Branch (61:11): [True: 36.5k, False: 3.84k]
  ------------------
   62|  36.5k|			{
   63|  36.5k|				HeaderField* newField = new HeaderField(*(curOtherField->getNextField()));
   64|  36.5k|				newField->attachToTextBasedProtocolMessage(this, curOtherField->getNextField()->m_NameOffsetInMessage);
   65|  36.5k|				curField->setNextField(newField);
   66|  36.5k|				curField = curField->getNextField();
   67|  36.5k|				curOtherField = curOtherField->getNextField();
   68|  36.5k|			}
   69|       |
   70|  3.84k|			m_LastField = curField;
   71|  3.84k|		}
   72|      0|		else
   73|      0|		{
   74|      0|			m_FieldList = nullptr;
   75|      0|			m_LastField = nullptr;
   76|      0|		}
   77|       |
   78|  3.84k|		m_FieldsOffset = other.m_FieldsOffset;
   79|       |
   80|       |		// copy map
   81|  44.2k|		for (HeaderField* field = m_FieldList; field != nullptr; field = field->getNextField())
  ------------------
  |  Branch (81:42): [True: 40.4k, False: 3.84k]
  ------------------
   82|  40.4k|		{
   83|  40.4k|			m_FieldNameToFieldMap.insert(std::pair<std::string, HeaderField*>(field->getFieldName(), field));
   84|  40.4k|		}
   85|  3.84k|	}
_ZN4pcpp24TextBasedProtocolMessage11parseFieldsEv:
   88|   125k|	{
   89|   125k|		char nameValueSeparator = getHeaderFieldNameValueSeparator();
   90|   125k|		bool spacesAllowedBetweenNameAndValue = spacesAllowedBetweenHeaderFieldNameAndValue();
   91|       |
   92|   125k|		HeaderField* firstField =
   93|   125k|		    new HeaderField(this, m_FieldsOffset, nameValueSeparator, spacesAllowedBetweenNameAndValue);
   94|   125k|		PCPP_LOG_DEBUG("Added new field: name='" << firstField->getFieldName()
  ------------------
  |  |  425|   125k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|   125k|	do                                                                                                                 \
  |  |  |  |  413|   125k|	{                                                                                                                  \
  |  |  |  |  414|   125k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|   125k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   125k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 125k]
  |  |  |  |  ------------------
  |  |  |  |  416|   125k|		{                                                                                                              \
  |  |  |  |  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|   125k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 125k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   95|   125k|		                                         << "'; offset in packet=" << firstField->m_NameOffsetInMessage
   96|   125k|		                                         << "; length=" << firstField->getFieldSize());
   97|   125k|		PCPP_LOG_DEBUG("     Field value = " << firstField->getFieldValue());
  ------------------
  |  |  425|   125k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|   125k|	do                                                                                                                 \
  |  |  |  |  413|   125k|	{                                                                                                                  \
  |  |  |  |  414|   125k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|   125k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   125k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 125k]
  |  |  |  |  ------------------
  |  |  |  |  416|   125k|		{                                                                                                              \
  |  |  |  |  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|   125k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 125k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   98|       |
   99|   125k|		if (m_FieldList == nullptr)
  ------------------
  |  Branch (99:7): [True: 125k, False: 0]
  ------------------
  100|   125k|			m_FieldList = firstField;
  101|      0|		else
  102|      0|			m_FieldList->setNextField(firstField);
  103|       |
  104|   125k|		std::string fieldName = firstField->getFieldName();
  105|   125k|		std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  106|   125k|		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|   125k|		HeaderField* curField = m_FieldList;
  110|   125k|		int curOffset = m_FieldsOffset;
  111|       |		// last field can be one of:
  112|       |		// a.) \r\n\r\n or \n\n marking the end of the header
  113|       |		// b.) the end of the packet
  114|  1.06M|		while (!curField->isEndOfHeader() && curOffset + curField->getFieldSize() < m_DataLen)
  ------------------
  |  Branch (114:10): [True: 977k, False: 88.8k]
  |  Branch (114:40): [True: 952k, False: 24.6k]
  ------------------
  115|   952k|		{
  116|   952k|			curOffset += curField->getFieldSize();
  117|   952k|			HeaderField* newField =
  118|   952k|			    new HeaderField(this, curOffset, nameValueSeparator, spacesAllowedBetweenNameAndValue);
  119|   952k|			if (newField->getFieldSize() > 0)
  ------------------
  |  Branch (119:8): [True: 940k, False: 12.0k]
  ------------------
  120|   940k|			{
  121|   940k|				PCPP_LOG_DEBUG("Added new field: name='" << newField->getFieldName()
  ------------------
  |  |  425|   940k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|   940k|	do                                                                                                                 \
  |  |  |  |  413|   940k|	{                                                                                                                  \
  |  |  |  |  414|   940k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|   940k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   940k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 940k]
  |  |  |  |  ------------------
  |  |  |  |  416|   940k|		{                                                                                                              \
  |  |  |  |  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|   940k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 940k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  122|   940k|				                                         << "'; offset in packet=" << newField->m_NameOffsetInMessage
  123|   940k|				                                         << "; length=" << newField->getFieldSize());
  124|   940k|				PCPP_LOG_DEBUG("     Field value = " << newField->getFieldValue());
  ------------------
  |  |  425|   940k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|   940k|	do                                                                                                                 \
  |  |  |  |  413|   940k|	{                                                                                                                  \
  |  |  |  |  414|   940k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|   940k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|   940k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 940k]
  |  |  |  |  ------------------
  |  |  |  |  416|   940k|		{                                                                                                              \
  |  |  |  |  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|   940k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 940k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  125|   940k|				curField->setNextField(newField);
  126|   940k|				curField = newField;
  127|   940k|				fieldName = newField->getFieldName();
  128|   940k|				std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  129|   940k|				m_FieldNameToFieldMap.insert(std::pair<std::string, HeaderField*>(fieldName, newField));
  130|   940k|			}
  131|  12.0k|			else
  132|  12.0k|			{
  133|  12.0k|				delete newField;
  134|  12.0k|				break;
  135|  12.0k|			}
  136|   952k|		}
  137|       |
  138|   125k|		m_LastField = curField;
  139|   125k|	}
_ZN4pcpp24TextBasedProtocolMessageD2Ev:
  142|   129k|	{
  143|  1.23M|		while (m_FieldList != nullptr)
  ------------------
  |  Branch (143:10): [True: 1.10M, False: 129k]
  ------------------
  144|  1.10M|		{
  145|  1.10M|			HeaderField* temp = m_FieldList;
  146|  1.10M|			m_FieldList = m_FieldList->getNextField();
  147|  1.10M|			delete temp;
  148|  1.10M|		}
  149|   129k|	}
_ZN4pcpp24TextBasedProtocolMessage8addFieldERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  152|  8.76k|	{
  153|  8.76k|		HeaderField newField(fieldName, fieldValue, getHeaderFieldNameValueSeparator(),
  154|  8.76k|		                     spacesAllowedBetweenHeaderFieldNameAndValue());
  155|  8.76k|		return addField(newField);
  156|  8.76k|	}
_ZN4pcpp24TextBasedProtocolMessage8addFieldERKNS_11HeaderFieldE:
  159|  8.76k|	{
  160|  8.76k|		return insertField(m_LastField, newField);
  161|  8.76k|	}
_ZN4pcpp24TextBasedProtocolMessage11insertFieldEPNS_11HeaderFieldERKS1_:
  195|  8.76k|	{
  196|  8.76k|		if (newField.m_TextBasedProtocolMessage != nullptr)
  ------------------
  |  Branch (196:7): [True: 0, False: 8.76k]
  ------------------
  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|  8.76k|		if (prevField != nullptr && prevField->getFieldName() == PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER)
  ------------------
  |  |   12|  8.76k|#define PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER ""
  ------------------
  |  Branch (202:7): [True: 8.76k, False: 0]
  |  Branch (202:7): [True: 3.79k, False: 4.96k]
  |  Branch (202:31): [True: 3.79k, False: 4.96k]
  ------------------
  203|  3.79k|		{
  204|  3.79k|			PCPP_LOG_ERROR("Cannot add a field after end of header");
  ------------------
  |  |  443|  3.79k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  3.79k|	do                                                                                                                 \
  |  |  |  |  413|  3.79k|	{                                                                                                                  \
  |  |  |  |  414|  3.79k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  3.79k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|  3.79k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 3.79k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  3.79k|		{                                                                                                              \
  |  |  |  |  417|  3.79k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  3.79k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|  3.79k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  3.79k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  3.79k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  3.79k|		}                                                                                                              \
  |  |  |  |  422|  3.79k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 3.79k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  205|  3.79k|			return nullptr;
  206|  3.79k|		}
  207|       |
  208|  4.96k|		HeaderField* newFieldToAdd = new HeaderField(newField);
  209|       |
  210|  4.96k|		int newFieldOffset = m_FieldsOffset;
  211|  4.96k|		if (prevField != nullptr)
  ------------------
  |  Branch (211:7): [True: 4.96k, False: 0]
  ------------------
  212|  4.96k|			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.96k|		if (!extendLayer(newFieldOffset, newFieldToAdd->getFieldSize()))
  ------------------
  |  Branch (215:7): [True: 1.77k, False: 3.18k]
  ------------------
  216|  1.77k|		{
  217|  1.77k|			PCPP_LOG_ERROR("Cannot extend layer to insert the header");
  ------------------
  |  |  443|  1.77k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|  1.77k|	do                                                                                                                 \
  |  |  |  |  413|  1.77k|	{                                                                                                                  \
  |  |  |  |  414|  1.77k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.77k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|  1.77k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1.77k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.77k|		{                                                                                                              \
  |  |  |  |  417|  1.77k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  1.77k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|  1.77k|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  1.77k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  1.77k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  1.77k|		}                                                                                                              \
  |  |  |  |  422|  1.77k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.77k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  218|  1.77k|			delete newFieldToAdd;
  219|  1.77k|			return nullptr;
  220|  1.77k|		}
  221|       |
  222|  3.18k|		HeaderField* curField = m_FieldList;
  223|  3.18k|		if (prevField != nullptr)
  ------------------
  |  Branch (223:7): [True: 3.18k, False: 0]
  ------------------
  224|  3.18k|			curField = prevField->getNextField();
  225|       |
  226|       |		// go over all fields after prevField and update their offsets
  227|  3.18k|		shiftFieldsOffset(curField, newFieldToAdd->getFieldSize());
  228|       |
  229|       |		// copy new field data to message
  230|  3.18k|		memcpy(m_Data + newFieldOffset, newFieldToAdd->m_NewFieldData, newFieldToAdd->getFieldSize());
  231|       |
  232|       |		// attach new field to message
  233|  3.18k|		newFieldToAdd->attachToTextBasedProtocolMessage(this, newFieldOffset);
  234|       |
  235|       |		// insert field into fields link list
  236|  3.18k|		if (prevField == nullptr)
  ------------------
  |  Branch (236:7): [True: 0, False: 3.18k]
  ------------------
  237|      0|		{
  238|      0|			newFieldToAdd->setNextField(m_FieldList);
  239|      0|			m_FieldList = newFieldToAdd;
  240|      0|		}
  241|  3.18k|		else
  242|  3.18k|		{
  243|  3.18k|			newFieldToAdd->setNextField(prevField->getNextField());
  244|  3.18k|			prevField->setNextField(newFieldToAdd);
  245|  3.18k|		}
  246|       |
  247|       |		// if newField is the last field, update m_LastField
  248|  3.18k|		if (newFieldToAdd->getNextField() == nullptr)
  ------------------
  |  Branch (248:7): [True: 3.18k, False: 0]
  ------------------
  249|  3.18k|			m_LastField = newFieldToAdd;
  250|       |
  251|       |		// insert the new field into name to field map
  252|  3.18k|		std::string fieldName = newFieldToAdd->getFieldName();
  253|  3.18k|		std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  254|  3.18k|		m_FieldNameToFieldMap.insert(std::pair<std::string, HeaderField*>(fieldName, newFieldToAdd));
  255|       |
  256|  3.18k|		return newFieldToAdd;
  257|  4.96k|	}
_ZN4pcpp24TextBasedProtocolMessage11removeFieldENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEi:
  260|  3.84k|	{
  261|  3.84k|		std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  262|       |
  263|  3.84k|		HeaderField* fieldToRemove = nullptr;
  264|       |
  265|  3.84k|		auto range = m_FieldNameToFieldMap.equal_range(fieldName);
  266|  3.84k|		int i = 0;
  267|  3.84k|		for (std::multimap<std::string, HeaderField*>::iterator iter = range.first; iter != range.second; ++iter)
  ------------------
  |  Branch (267:79): [True: 3.65k, False: 195]
  ------------------
  268|  3.65k|		{
  269|  3.65k|			if (i == index)
  ------------------
  |  Branch (269:8): [True: 3.65k, False: 0]
  ------------------
  270|  3.65k|			{
  271|  3.65k|				fieldToRemove = iter->second;
  272|  3.65k|				break;
  273|  3.65k|			}
  274|       |
  275|      0|			i++;
  276|      0|		}
  277|       |
  278|  3.84k|		if (fieldToRemove != nullptr)
  ------------------
  |  Branch (278:7): [True: 3.65k, False: 195]
  ------------------
  279|  3.65k|			return removeField(fieldToRemove);
  280|    195|		else
  281|    195|		{
  282|    195|			PCPP_LOG_ERROR("Cannot find field '" << fieldName << "'");
  ------------------
  |  |  443|    195|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    195|	do                                                                                                                 \
  |  |  |  |  413|    195|	{                                                                                                                  \
  |  |  |  |  414|    195|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    195|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|    195|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 195, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    195|		{                                                                                                              \
  |  |  |  |  417|    195|			auto ctx =                                                                                                 \
  |  |  |  |  418|    195|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|    195|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    195|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    195|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    195|		}                                                                                                              \
  |  |  |  |  422|    195|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 195]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  283|    195|			return false;
  284|    195|		}
  285|  3.84k|	}
_ZN4pcpp24TextBasedProtocolMessage11removeFieldEPNS_11HeaderFieldE:
  288|  3.65k|	{
  289|  3.65k|		if (fieldToRemove == nullptr)
  ------------------
  |  Branch (289:7): [True: 0, False: 3.65k]
  ------------------
  290|      0|			return true;
  291|       |
  292|  3.65k|		if (fieldToRemove->m_TextBasedProtocolMessage != this)
  ------------------
  |  Branch (292:7): [True: 0, False: 3.65k]
  ------------------
  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.65k|		std::string fieldName = fieldToRemove->getFieldName();
  299|       |
  300|       |		// shorten layer and delete this field
  301|  3.65k|		if (!shortenLayer(fieldToRemove->m_NameOffsetInMessage, fieldToRemove->getFieldSize()))
  ------------------
  |  Branch (301:7): [True: 0, False: 3.65k]
  ------------------
  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.65k|		HeaderField* curField = fieldToRemove->getNextField();
  309|  3.65k|		shiftFieldsOffset(curField, 0 - fieldToRemove->getFieldSize());
  310|       |
  311|       |		// update fields link list
  312|  3.65k|		if (fieldToRemove == m_FieldList)
  ------------------
  |  Branch (312:7): [True: 3.14k, False: 508]
  ------------------
  313|  3.14k|			m_FieldList = m_FieldList->getNextField();
  314|    508|		else
  315|    508|		{
  316|    508|			curField = m_FieldList;
  317|  7.48k|			while (curField->getNextField() != fieldToRemove)
  ------------------
  |  Branch (317:11): [True: 6.97k, False: 508]
  ------------------
  318|  6.97k|				curField = curField->getNextField();
  319|       |
  320|    508|			curField->setNextField(fieldToRemove->getNextField());
  321|    508|		}
  322|       |
  323|       |		// re-calculate m_LastField if needed
  324|  3.65k|		if (fieldToRemove == m_LastField)
  ------------------
  |  Branch (324:7): [True: 420, False: 3.23k]
  ------------------
  325|    420|		{
  326|    420|			if (m_FieldList == nullptr)
  ------------------
  |  Branch (326:8): [True: 0, False: 420]
  ------------------
  327|      0|				m_LastField = nullptr;
  328|    420|			else
  329|    420|			{
  330|    420|				curField = m_FieldList;
  331|  6.46k|				while (curField->getNextField() != nullptr)
  ------------------
  |  Branch (331:12): [True: 6.04k, False: 420]
  ------------------
  332|  6.04k|					curField = curField->getNextField();
  333|    420|				m_LastField = curField;
  334|    420|			}
  335|    420|		}
  336|       |
  337|       |		// remove the hash entry for this field
  338|  3.65k|		std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  339|  3.65k|		auto range = m_FieldNameToFieldMap.equal_range(fieldName);
  340|  3.65k|		for (std::multimap<std::string, HeaderField*>::iterator iter = range.first; iter != range.second; ++iter)
  ------------------
  |  Branch (340:79): [True: 3.65k, False: 0]
  ------------------
  341|  3.65k|		{
  342|  3.65k|			if (iter->second == fieldToRemove)
  ------------------
  |  Branch (342:8): [True: 3.65k, False: 0]
  ------------------
  343|  3.65k|			{
  344|  3.65k|				m_FieldNameToFieldMap.erase(iter);
  345|  3.65k|				break;
  346|  3.65k|			}
  347|  3.65k|		}
  348|       |
  349|       |		// finally - delete this field
  350|  3.65k|		delete fieldToRemove;
  351|       |
  352|  3.65k|		return true;
  353|  3.65k|	}
_ZN4pcpp24TextBasedProtocolMessage17shiftFieldsOffsetEPNS_11HeaderFieldEi:
  364|  7.46k|	{
  365|  41.4k|		while (fromField != nullptr)
  ------------------
  |  Branch (365:10): [True: 33.9k, False: 7.46k]
  ------------------
  366|  33.9k|		{
  367|  33.9k|			fromField->m_NameOffsetInMessage += numOfBytesToShift;
  368|  33.9k|			if (fromField->m_ValueOffsetInMessage != -1)
  ------------------
  |  Branch (368:8): [True: 33.0k, False: 950]
  ------------------
  369|  33.0k|				fromField->m_ValueOffsetInMessage += numOfBytesToShift;
  370|  33.9k|			fromField = fromField->getNextField();
  371|  33.9k|		}
  372|  7.46k|	}
_ZNK4pcpp24TextBasedProtocolMessage14getFieldByNameENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEi:
  375|   127k|	{
  376|   127k|		std::transform(fieldName.begin(), fieldName.end(), fieldName.begin(), ::tolower);
  377|       |
  378|   127k|		auto range = m_FieldNameToFieldMap.equal_range(fieldName);
  379|   127k|		int i = 0;
  380|   130k|		for (std::multimap<std::string, HeaderField*>::const_iterator iter = range.first; iter != range.second; ++iter)
  ------------------
  |  Branch (380:85): [True: 122k, False: 8.44k]
  ------------------
  381|   122k|		{
  382|   122k|			if (i == index)
  ------------------
  |  Branch (382:8): [True: 119k, False: 2.87k]
  ------------------
  383|   119k|				return iter->second;
  384|       |
  385|  2.87k|			i++;
  386|  2.87k|		}
  387|       |
  388|  8.44k|		return nullptr;
  389|   127k|	}
_ZNK4pcpp24TextBasedProtocolMessage13getFieldCountEv:
  392|  3.84k|	{
  393|  3.84k|		int result = 0;
  394|       |
  395|  3.84k|		HeaderField* curField = getFirstField();
  396|  44.2k|		while (curField != nullptr)
  ------------------
  |  Branch (396:10): [True: 40.4k, False: 3.84k]
  ------------------
  397|  40.4k|		{
  398|  40.4k|			if (!curField->isEndOfHeader())
  ------------------
  |  Branch (398:8): [True: 38.5k, False: 1.89k]
  ------------------
  399|  38.5k|				result++;
  400|  40.4k|			curField = curField->getNextField();
  401|  40.4k|		}
  402|       |
  403|  3.84k|		return result;
  404|  3.84k|	}
_ZN4pcpp24TextBasedProtocolMessage14parseNextLayerEv:
  407|  59.8k|	{
  408|  59.8k|		size_t headerLen = getHeaderLen();
  409|  59.8k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (409:7): [True: 35.7k, False: 24.0k]
  ------------------
  410|  35.7k|			return;
  411|       |
  412|  24.0k|		constructNextLayer<PayloadLayer>(m_Data + headerLen, m_DataLen - headerLen);
  413|  24.0k|	}
_ZNK4pcpp24TextBasedProtocolMessage12getHeaderLenEv:
  416|   205k|	{
  417|   205k|		return m_LastField->m_NameOffsetInMessage + m_LastField->m_FieldSize;
  418|   205k|	}
_ZN4pcpp24TextBasedProtocolMessage22computeCalculateFieldsEv:
  421|  7.02k|	{
  422|       |		// nothing to do for now
  423|  7.02k|	}
_ZN4pcpp11HeaderFieldC2EPNS_24TextBasedProtocolMessageEicb:
  429|  1.07M|	    : m_NewFieldData(nullptr), m_TextBasedProtocolMessage(TextBasedProtocolMessage),
  430|  1.07M|	      m_NameOffsetInMessage(offsetInMessage), m_NextField(nullptr), m_NameValueSeparator(nameValueSeparator),
  431|  1.07M|	      m_SpacesAllowedBetweenNameAndValue(spacesAllowedBetweenNameAndValue)
  432|  1.07M|	{
  433|  1.07M|		char* fieldData = reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data + m_NameOffsetInMessage);
  434|  1.07M|		char* fieldEndPtr = static_cast<char*>(memchr(
  435|  1.07M|		    fieldData, '\n', m_TextBasedProtocolMessage->m_DataLen - static_cast<size_t>(m_NameOffsetInMessage)));
  436|  1.07M|		if (fieldEndPtr == nullptr)
  ------------------
  |  Branch (436:7): [True: 38.2k, False: 1.04M]
  ------------------
  437|  38.2k|			m_FieldSize = tbp_my_own_strnlen(fieldData, m_TextBasedProtocolMessage->m_DataLen -
  438|  38.2k|			                                                static_cast<size_t>(m_NameOffsetInMessage));
  439|  1.04M|		else
  440|  1.04M|			m_FieldSize = fieldEndPtr - fieldData + 1;
  441|       |
  442|  1.07M|		if (m_FieldSize == 0 || (*fieldData) == '\r' || (*fieldData) == '\n')
  ------------------
  |  Branch (442:7): [True: 14.1k, False: 1.06M]
  |  Branch (442:27): [True: 80.4k, False: 983k]
  |  Branch (442:51): [True: 6.29k, False: 977k]
  ------------------
  443|   100k|		{
  444|   100k|			m_FieldNameSize = -1;
  445|   100k|			m_ValueOffsetInMessage = -1;
  446|   100k|			m_FieldValueSize = -1;
  447|   100k|			m_FieldNameSize = -1;
  448|   100k|			m_IsEndOfHeaderField = true;
  449|   100k|			return;
  450|   100k|		}
  451|   977k|		else
  452|   977k|			m_IsEndOfHeaderField = false;
  453|       |
  454|   977k|		char* fieldValuePtr = static_cast<char*>(
  455|   977k|		    memchr(fieldData, nameValueSeparator,
  456|   977k|		           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|   977k|		if (fieldValuePtr == nullptr || (fieldEndPtr != nullptr && fieldValuePtr >= fieldEndPtr))
  ------------------
  |  Branch (458:7): [True: 115k, False: 861k]
  |  Branch (458:36): [True: 847k, False: 13.7k]
  |  Branch (458:62): [True: 91.9k, False: 755k]
  ------------------
  459|   207k|		{
  460|   207k|			m_ValueOffsetInMessage = -1;
  461|   207k|			m_FieldValueSize = -1;
  462|   207k|			m_FieldNameSize = m_FieldSize;
  463|   207k|		}
  464|   769k|		else
  465|   769k|		{
  466|   769k|			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|   769k|			fieldValuePtr++;
  470|       |
  471|       |			// reached the end of the packet and value start offset wasn't found
  472|   769k|			if (static_cast<size_t>(fieldValuePtr - reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data)) >=
  ------------------
  |  Branch (472:8): [True: 468, False: 769k]
  ------------------
  473|   769k|			    m_TextBasedProtocolMessage->getDataLen())
  474|    468|			{
  475|    468|				m_ValueOffsetInMessage = -1;
  476|    468|				m_FieldValueSize = -1;
  477|    468|				return;
  478|    468|			}
  479|       |
  480|   769k|			if (spacesAllowedBetweenNameAndValue)
  ------------------
  |  Branch (480:8): [True: 527k, False: 241k]
  ------------------
  481|   527k|			{
  482|       |				// advance fieldValuePtr 1 byte forward while didn't get to end of packet and fieldValuePtr points to a
  483|       |				// space char
  484|   527k|				while (
  485|  1.04M|				    static_cast<size_t>(fieldValuePtr - reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data)) <
  ------------------
  |  Branch (485:9): [True: 1.04M, False: 0]
  ------------------
  486|  1.04M|				        m_TextBasedProtocolMessage->getDataLen() &&
  487|  1.04M|				    (*fieldValuePtr) == ' ')
  ------------------
  |  Branch (487:9): [True: 518k, False: 527k]
  ------------------
  488|   518k|				{
  489|   518k|					fieldValuePtr++;
  490|   518k|				}
  491|   527k|			}
  492|       |
  493|       |			// reached the end of the packet and value start offset wasn't found
  494|   769k|			if (static_cast<size_t>(fieldValuePtr - reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data)) >=
  ------------------
  |  Branch (494:8): [True: 0, False: 769k]
  ------------------
  495|   769k|			    m_TextBasedProtocolMessage->getDataLen())
  496|      0|			{
  497|      0|				m_ValueOffsetInMessage = -1;
  498|      0|				m_FieldValueSize = -1;
  499|      0|			}
  500|   769k|			else
  501|   769k|			{
  502|   769k|				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|   769k|				if (fieldEndPtr == nullptr)
  ------------------
  |  Branch (505:9): [True: 13.2k, False: 755k]
  ------------------
  506|  13.2k|				{
  507|       |					// clang-format off
  508|  13.2k|					m_FieldValueSize = reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data + m_TextBasedProtocolMessage->getDataLen()) - fieldValuePtr;
  509|       |					// clang-format on
  510|  13.2k|				}
  511|   755k|				else
  512|   755k|				{
  513|   755k|					m_FieldValueSize = fieldEndPtr - fieldValuePtr;
  514|       |					// if field ends with \r\n, decrease the value length by 1
  515|   755k|					if ((*(--fieldEndPtr)) == '\r')
  ------------------
  |  Branch (515:10): [True: 693k, False: 62.8k]
  ------------------
  516|   693k|						m_FieldValueSize--;
  517|   755k|				}
  518|   769k|			}
  519|   769k|		}
  520|   977k|	}
_ZN4pcpp11HeaderFieldC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_cb:
  524|  8.76k|	{
  525|  8.76k|		m_NameValueSeparator = nameValueSeparator;
  526|  8.76k|		m_SpacesAllowedBetweenNameAndValue = spacesAllowedBetweenNameAndValue;
  527|  8.76k|		initNewField(name, value);
  528|  8.76k|	}
_ZN4pcpp11HeaderField12initNewFieldERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  531|  54.1k|	{
  532|  54.1k|		m_TextBasedProtocolMessage = nullptr;
  533|  54.1k|		m_NameOffsetInMessage = 0;
  534|  54.1k|		m_NextField = nullptr;
  535|       |
  536|       |		// first building the name-value separator
  537|  54.1k|		std::string nameValueSeparation(1, m_NameValueSeparator);
  538|  54.1k|		if (m_SpacesAllowedBetweenNameAndValue)
  ------------------
  |  Branch (538:7): [True: 0, False: 54.1k]
  ------------------
  539|      0|			nameValueSeparation += " ";
  540|       |
  541|       |		// Field size is: name_length + separator_len + value_length + '\r\n'
  542|  54.1k|		if (name != PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER)
  ------------------
  |  |   12|  54.1k|#define PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER ""
  ------------------
  |  Branch (542:7): [True: 52.1k, False: 1.98k]
  ------------------
  543|  52.1k|			m_FieldSize = name.length() + nameValueSeparation.length() + value.length() + 2;
  544|  1.98k|		else
  545|       |			// Field is \r\n (2B)
  546|  1.98k|			m_FieldSize = 2;
  547|       |
  548|  54.1k|		m_NewFieldData = new uint8_t[m_FieldSize];
  549|  54.1k|		std::string fieldData;
  550|       |
  551|  54.1k|		if (name != PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER)
  ------------------
  |  |   12|  54.1k|#define PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER ""
  ------------------
  |  Branch (551:7): [True: 52.1k, False: 1.98k]
  ------------------
  552|  52.1k|			fieldData = name + nameValueSeparation + value + "\r\n";
  553|  1.98k|		else
  554|  1.98k|			fieldData = "\r\n";
  555|       |
  556|       |		// copy field data to m_NewFieldData
  557|  54.1k|		memcpy(m_NewFieldData, fieldData.c_str(), m_FieldSize);
  558|       |
  559|       |		// calculate value offset
  560|  54.1k|		if (name != PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER)
  ------------------
  |  |   12|  54.1k|#define PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER ""
  ------------------
  |  Branch (560:7): [True: 52.1k, False: 1.98k]
  ------------------
  561|  52.1k|			m_ValueOffsetInMessage = name.length() + nameValueSeparation.length();
  562|  1.98k|		else
  563|  1.98k|			m_ValueOffsetInMessage = 0;
  564|  54.1k|		m_FieldNameSize = name.length();
  565|  54.1k|		m_FieldValueSize = value.length();
  566|       |
  567|  54.1k|		if (name != PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER)
  ------------------
  |  |   12|  54.1k|#define PCPP_END_OF_TEXT_BASED_PROTOCOL_HEADER ""
  ------------------
  |  Branch (567:7): [True: 52.1k, False: 1.98k]
  ------------------
  568|  52.1k|			m_IsEndOfHeaderField = false;
  569|  1.98k|		else
  570|  1.98k|			m_IsEndOfHeaderField = true;
  571|  54.1k|	}
_ZN4pcpp11HeaderFieldD2Ev:
  574|  1.13M|	{
  575|  1.13M|		if (m_NewFieldData != nullptr)
  ------------------
  |  Branch (575:7): [True: 10.5k, False: 1.12M]
  ------------------
  576|  10.5k|			delete[] m_NewFieldData;
  577|  1.13M|	}
_ZN4pcpp11HeaderFieldC2ERKS0_:
  580|  45.3k|	    : m_NameValueSeparator('\0'), m_SpacesAllowedBetweenNameAndValue(false)
  581|  45.3k|	{
  582|  45.3k|		m_NameValueSeparator = other.m_NameValueSeparator;
  583|  45.3k|		m_SpacesAllowedBetweenNameAndValue = other.m_SpacesAllowedBetweenNameAndValue;
  584|  45.3k|		initNewField(other.getFieldName(), other.getFieldValue());
  585|  45.3k|	}
_ZNK4pcpp11HeaderField7getDataEv:
  599|  1.22M|	{
  600|  1.22M|		if (m_TextBasedProtocolMessage == nullptr)
  ------------------
  |  Branch (600:7): [True: 9.92k, False: 1.21M]
  ------------------
  601|  9.92k|			return reinterpret_cast<char*>(m_NewFieldData);
  602|  1.21M|		else
  603|  1.21M|			return reinterpret_cast<char*>(m_TextBasedProtocolMessage->m_Data);
  604|  1.22M|	}
_ZN4pcpp11HeaderField12setNextFieldEPS0_:
  607|   984k|	{
  608|   984k|		m_NextField = nextField;
  609|   984k|	}
_ZNK4pcpp11HeaderField12getNextFieldEv:
  612|  1.45M|	{
  613|  1.45M|		return m_NextField;
  614|  1.45M|	}
_ZNK4pcpp11HeaderField12getFieldNameEv:
  617|  1.16M|	{
  618|  1.16M|		std::string result;
  619|       |
  620|  1.16M|		if (m_FieldNameSize != static_cast<size_t>(-1))
  ------------------
  |  Branch (620:7): [True: 1.07M, False: 90.7k]
  ------------------
  621|  1.07M|			result.assign((getData() + m_NameOffsetInMessage), m_FieldNameSize);
  622|       |
  623|  1.16M|		return result;
  624|  1.16M|	}
_ZNK4pcpp11HeaderField13getFieldValueEv:
  627|   159k|	{
  628|   159k|		std::string result;
  629|   159k|		if (m_ValueOffsetInMessage != -1)
  ------------------
  |  Branch (629:7): [True: 141k, False: 17.6k]
  ------------------
  630|   141k|			result.assign((getData() + m_ValueOffsetInMessage), m_FieldValueSize);
  631|   159k|		return result;
  632|   159k|	}
_ZN4pcpp11HeaderField13setFieldValueERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  635|  4.31k|	{
  636|       |		// Field isn't linked with any message yet
  637|  4.31k|		if (m_TextBasedProtocolMessage == nullptr)
  ------------------
  |  Branch (637:7): [True: 0, False: 4.31k]
  ------------------
  638|      0|		{
  639|      0|			std::string name = getFieldName();
  640|      0|			delete[] m_NewFieldData;
  641|      0|			initNewField(name, newValue);
  642|      0|			return true;
  643|      0|		}
  644|       |
  645|  4.31k|		std::string curValue = getFieldValue();
  646|  4.31k|		int lengthDifference = newValue.length() - curValue.length();
  647|       |		// new value is longer than current value
  648|  4.31k|		if (lengthDifference > 0)
  ------------------
  |  Branch (648:7): [True: 440, False: 3.87k]
  ------------------
  649|    440|		{
  650|    440|			if (!m_TextBasedProtocolMessage->extendLayer(m_ValueOffsetInMessage, lengthDifference))
  ------------------
  |  Branch (650:8): [True: 0, False: 440]
  ------------------
  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|    440|		}
  656|       |		// new value is shorter than current value
  657|  3.87k|		else if (lengthDifference < 0)
  ------------------
  |  Branch (657:12): [True: 181, False: 3.69k]
  ------------------
  658|    181|		{
  659|    181|			if (!m_TextBasedProtocolMessage->shortenLayer(m_ValueOffsetInMessage, 0 - lengthDifference))
  ------------------
  |  Branch (659:8): [True: 0, False: 181]
  ------------------
  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|    181|		}
  665|       |
  666|  4.31k|		if (lengthDifference != 0)
  ------------------
  |  Branch (666:7): [True: 621, False: 3.69k]
  ------------------
  667|    621|			m_TextBasedProtocolMessage->shiftFieldsOffset(getNextField(), lengthDifference);
  668|       |
  669|       |		// update sizes
  670|  4.31k|		m_FieldValueSize += lengthDifference;
  671|  4.31k|		m_FieldSize += lengthDifference;
  672|       |
  673|       |		// write new value to field data
  674|  4.31k|		memcpy(getData() + m_ValueOffsetInMessage, newValue.c_str(), newValue.length());
  675|       |
  676|  4.31k|		return true;
  677|  4.31k|	}
_ZN4pcpp11HeaderField32attachToTextBasedProtocolMessageEPNS_24TextBasedProtocolMessageEi:
  680|  43.6k|	{
  681|  43.6k|		if (m_TextBasedProtocolMessage != nullptr && m_TextBasedProtocolMessage != message)
  ------------------
  |  Branch (681:7): [True: 0, False: 43.6k]
  |  Branch (681:48): [True: 0, False: 0]
  ------------------
  682|      0|		{
  683|      0|			PCPP_LOG_ERROR("Header field already associated with another message");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  684|      0|			return;
  685|      0|		}
  686|       |
  687|  43.6k|		if (m_NewFieldData == nullptr)
  ------------------
  |  Branch (687:7): [True: 0, False: 43.6k]
  ------------------
  688|      0|		{
  689|      0|			PCPP_LOG_ERROR("Header field doesn't have new field data");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   15|      0|#	define LOG_MODULE UndefinedLogModule
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  690|      0|			return;
  691|      0|		}
  692|       |
  693|  43.6k|		delete[] m_NewFieldData;
  694|  43.6k|		m_NewFieldData = nullptr;
  695|  43.6k|		m_TextBasedProtocolMessage = message;
  696|       |
  697|  43.6k|		int valueAndNameDifference = m_ValueOffsetInMessage - m_NameOffsetInMessage;
  698|  43.6k|		m_NameOffsetInMessage = fieldOffsetInMessage;
  699|  43.6k|		m_ValueOffsetInMessage = m_NameOffsetInMessage + valueAndNameDifference;
  700|  43.6k|	}

_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.6k|	{
   59|  23.6k|		size_t headerLen = getHeaderLen();
   60|  23.6k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (60:7): [True: 18, False: 23.6k]
  ------------------
   61|     18|			return;
   62|       |
   63|  23.6k|		uint8_t* payload = m_Data + headerLen;
   64|  23.6k|		size_t payloadLen = m_DataLen - headerLen;
   65|       |
   66|  23.6k|		tryConstructNextLayerWithFallback<CotpLayer, PayloadLayer>(payload, payloadLen);
   67|  23.6k|	}

_ZNK4pcpp8UdpLayer10getSrcPortEv:
   40|   418k|	{
   41|       |		return be16toh(getUdpHeader()->portSrc);
   42|   418k|	}
_ZNK4pcpp8UdpLayer10getDstPortEv:
   45|   418k|	{
   46|       |		return be16toh(getUdpHeader()->portDst);
   47|   418k|	}
_ZN4pcpp8UdpLayer17calculateChecksumEb:
   50|  50.3k|	{
   51|  50.3k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
   52|  50.3k|		uint16_t checksumRes = 0;
   53|  50.3k|		uint16_t currChecksumValue = udpHdr->headerChecksum;
   54|       |
   55|  50.3k|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (55:7): [True: 50.3k, False: 0]
  ------------------
   56|  50.3k|		{
   57|  50.3k|			udpHdr->headerChecksum = 0;
   58|  50.3k|			PCPP_LOG_DEBUG("UDP data len = " << m_DataLen);
  ------------------
  |  |  425|  50.3k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  50.3k|	do                                                                                                                 \
  |  |  |  |  413|  50.3k|	{                                                                                                                  \
  |  |  |  |  414|  50.3k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  50.3k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  50.3k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 50.3k]
  |  |  |  |  ------------------
  |  |  |  |  416|  50.3k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  50.3k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 50.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   59|       |
   60|  50.3k|			if (m_PrevLayer->getProtocol() == IPv4)
  ------------------
  |  Branch (60:8): [True: 44.7k, False: 5.60k]
  ------------------
   61|  44.7k|			{
   62|  44.7k|				IPv4Address srcIP = static_cast<IPv4Layer*>(m_PrevLayer)->getSrcIPv4Address();
   63|  44.7k|				IPv4Address dstIP = static_cast<IPv4Layer*>(m_PrevLayer)->getDstIPv4Address();
   64|       |
   65|  44.7k|				checksumRes = pcpp::computePseudoHdrChecksum((uint8_t*)udpHdr, getDataLen(), IPAddress::IPv4AddressType,
   66|  44.7k|				                                             PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   67|       |
   68|  44.7k|				PCPP_LOG_DEBUG("calculated IPv4 UDP checksum = 0x" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  44.7k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  44.7k|	do                                                                                                                 \
  |  |  |  |  413|  44.7k|	{                                                                                                                  \
  |  |  |  |  414|  44.7k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  44.7k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  44.7k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 44.7k]
  |  |  |  |  ------------------
  |  |  |  |  416|  44.7k|		{                                                                                                              \
  |  |  |  |  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.7k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 44.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   69|  44.7k|			}
   70|  5.60k|			else if (m_PrevLayer->getProtocol() == IPv6)
  ------------------
  |  Branch (70:13): [True: 5.60k, False: 0]
  ------------------
   71|  5.60k|			{
   72|  5.60k|				IPv6Address srcIP = static_cast<IPv6Layer*>(m_PrevLayer)->getSrcIPv6Address();
   73|  5.60k|				IPv6Address dstIP = static_cast<IPv6Layer*>(m_PrevLayer)->getDstIPv6Address();
   74|       |
   75|  5.60k|				checksumRes = computePseudoHdrChecksum((uint8_t*)udpHdr, getDataLen(), IPAddress::IPv6AddressType,
   76|  5.60k|				                                       PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   77|       |
   78|  5.60k|				PCPP_LOG_DEBUG("calculated IPv6 UDP checksum = 0xX" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  5.60k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  5.60k|	do                                                                                                                 \
  |  |  |  |  413|  5.60k|	{                                                                                                                  \
  |  |  |  |  414|  5.60k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  5.60k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.60k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 5.60k]
  |  |  |  |  ------------------
  |  |  |  |  416|  5.60k|		{                                                                                                              \
  |  |  |  |  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.60k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 5.60k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   79|  5.60k|			}
   80|  50.3k|		}
   81|       |
   82|  50.3k|		if (checksumRes == 0)
  ------------------
  |  Branch (82:7): [True: 24, False: 50.2k]
  ------------------
   83|     24|			checksumRes = 0xffff;
   84|       |
   85|  50.3k|		if (writeResultToPacket)
  ------------------
  |  Branch (85:7): [True: 50.3k, False: 0]
  ------------------
   86|  50.3k|			udpHdr->headerChecksum = htobe16(checksumRes);
   87|      0|		else
   88|      0|			udpHdr->headerChecksum = currChecksumValue;
   89|       |
   90|  50.3k|		return checksumRes;
   91|  50.3k|	}
_ZN4pcpp8UdpLayer14parseNextLayerEv:
   94|   317k|	{
   95|   317k|		if (m_DataLen <= sizeof(udphdr))
  ------------------
  |  Branch (95:7): [True: 24, False: 317k]
  ------------------
   96|     24|			return;
   97|       |
   98|   317k|		uint16_t portDst = getDstPort();
   99|   317k|		uint16_t portSrc = getSrcPort();
  100|       |
  101|   317k|		uint8_t* udpData = m_Data + sizeof(udphdr);
  102|   317k|		size_t udpDataLen = m_DataLen - sizeof(udphdr);
  103|       |
  104|   317k|		if (DhcpLayer::isDhcpPorts(portSrc, portDst))
  ------------------
  |  Branch (104:7): [True: 14.8k, False: 303k]
  ------------------
  105|  14.8k|		{
  106|  14.8k|			tryConstructNextLayerWithFallback<DhcpLayer, PayloadLayer>(udpData, udpDataLen);
  107|  14.8k|		}
  108|   303k|		else if (VxlanLayer::isVxlanPort(portDst))
  ------------------
  |  Branch (108:12): [True: 8, False: 303k]
  ------------------
  109|      8|		{
  110|      8|			tryConstructNextLayerWithFallback<VxlanLayer, PayloadLayer>(udpData, udpDataLen);
  111|      8|		}
  112|   303k|		else if (DnsLayer::isDataValid(udpData, udpDataLen) &&
  ------------------
  |  Branch (112:12): [True: 269k, False: 33.5k]
  ------------------
  113|   269k|		         (DnsLayer::isDnsPort(portDst) || DnsLayer::isDnsPort(portSrc)))
  ------------------
  |  Branch (113:13): [True: 41.0k, False: 228k]
  |  Branch (113:45): [True: 10.1k, False: 218k]
  ------------------
  114|  51.1k|		{
  115|  51.1k|			constructNextLayer<DnsLayer>(udpData, udpDataLen);
  116|  51.1k|		}
  117|   251k|		else if (SipLayer::isSipPort(portDst) || SipLayer::isSipPort(portSrc))
  ------------------
  |  Branch (117:12): [True: 67.1k, False: 184k]
  |  Branch (117:44): [True: 1.36k, False: 183k]
  ------------------
  118|  68.5k|		{
  119|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  120|  68.5k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*, uint16_t, uint16_t) = SipLayer::parseSipLayer;
  121|  68.5k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen, portSrc, portDst);
  122|  68.5k|		}
  123|   183k|		else if ((RadiusLayer::isRadiusPort(portDst) || RadiusLayer::isRadiusPort(portSrc)) &&
  ------------------
  |  Branch (123:13): [True: 3.07k, False: 180k]
  |  Branch (123:51): [True: 7.94k, False: 172k]
  ------------------
  124|  11.0k|		         RadiusLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (124:12): [True: 10.3k, False: 688]
  ------------------
  125|  10.3k|		{
  126|  10.3k|			constructNextLayer<RadiusLayer>(udpData, udpDataLen);
  127|  10.3k|		}
  128|   173k|		else if ((GtpV1Layer::isGTPv1Port(portDst) || GtpV1Layer::isGTPv1Port(portSrc)) &&
  ------------------
  |  Branch (128:13): [True: 22.8k, False: 150k]
  |  Branch (128:49): [True: 10.1k, False: 140k]
  ------------------
  129|  32.9k|		         GtpV1Layer::isGTPv1(udpData, udpDataLen))
  ------------------
  |  Branch (129:12): [True: 32.7k, False: 154]
  ------------------
  130|  32.7k|		{
  131|  32.7k|			constructNextLayer<GtpV1Layer>(udpData, udpDataLen);
  132|  32.7k|		}
  133|   140k|		else if ((GtpV2Layer::isGTPv2Port(portDst) || GtpV2Layer::isGTPv2Port(portSrc)) &&
  ------------------
  |  Branch (133:13): [True: 0, False: 140k]
  |  Branch (133:49): [True: 0, False: 140k]
  ------------------
  134|      0|		         GtpV2Layer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (134:12): [True: 0, False: 0]
  ------------------
  135|      0|		{
  136|      0|			constructNextLayer<GtpV2Layer>(udpData, udpDataLen);
  137|      0|		}
  138|   140k|		else if ((DhcpV6Layer::isDhcpV6Port(portSrc) || DhcpV6Layer::isDhcpV6Port(portDst)) &&
  ------------------
  |  Branch (138:13): [True: 12.3k, False: 127k]
  |  Branch (138:51): [True: 6.11k, False: 121k]
  ------------------
  139|  18.4k|		         (DhcpV6Layer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (139:12): [True: 18.3k, False: 130]
  ------------------
  140|  18.3k|		{
  141|  18.3k|			constructNextLayer<DhcpV6Layer>(udpData, udpDataLen);
  142|  18.3k|		}
  143|   121k|		else if ((NtpLayer::isNTPPort(portSrc) || NtpLayer::isNTPPort(portDst)) &&
  ------------------
  |  Branch (143:13): [True: 13.7k, False: 108k]
  |  Branch (143:45): [True: 735, False: 107k]
  ------------------
  144|  14.5k|		         NtpLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (144:12): [True: 14.5k, False: 5]
  ------------------
  145|  14.5k|		{
  146|  14.5k|			constructNextLayer<NtpLayer>(udpData, udpDataLen);
  147|  14.5k|		}
  148|   107k|		else if ((DoIpLayer::isDoIpPort(portSrc) || DoIpLayer::isDoIpPort(portDst)) &&
  ------------------
  |  Branch (148:13): [True: 15.4k, False: 92.0k]
  |  Branch (148:47): [True: 26.5k, False: 65.4k]
  ------------------
  149|  42.0k|		         (DoIpLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (149:12): [True: 37.4k, False: 4.53k]
  ------------------
  150|  37.4k|		{
  151|  37.4k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(DoIpLayer::parseDoIpLayer, udpData, udpDataLen);
  152|  37.4k|		}
  153|  69.9k|		else if (SomeIpLayer::isSomeIpPort(portSrc) || SomeIpLayer::isSomeIpPort(portDst))
  ------------------
  |  Branch (153:12): [True: 28.6k, False: 41.2k]
  |  Branch (153:50): [True: 2.04k, False: 39.2k]
  ------------------
  154|  30.7k|		{
  155|  30.7k|			constructNextLayerFromFactory(SomeIpLayer::parseSomeIpLayer, udpData, udpDataLen);
  156|  30.7k|		}
  157|  39.2k|		else if ((WakeOnLanLayer::isWakeOnLanPort(portDst) && WakeOnLanLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (157:13): [True: 1.83k, False: 37.3k]
  |  Branch (157:57): [True: 815, False: 1.01k]
  ------------------
  158|    815|		{
  159|    815|			constructNextLayer<WakeOnLanLayer>(udpData, udpDataLen);
  160|    815|		}
  161|  38.4k|		else if ((WireGuardLayer::isWireGuardPorts(portDst, portSrc) &&
  ------------------
  |  Branch (161:13): [True: 1.82k, False: 36.5k]
  ------------------
  162|  1.82k|		          WireGuardLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (162:13): [True: 1.82k, False: 0]
  ------------------
  163|  1.82k|		{
  164|  1.82k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(WireGuardLayer::parseWireGuardLayer, udpData,
  165|  1.82k|			                                                           udpDataLen);
  166|  1.82k|		}
  167|       |
  168|       |		// If a valid layer was found, return immediately
  169|   317k|		if (hasNextLayer())
  ------------------
  |  Branch (169:7): [True: 281k, False: 36.5k]
  ------------------
  170|   281k|		{
  171|   281k|			return;
  172|   281k|		}
  173|       |
  174|       |		// Here, heuristics for all protocols should be invoked to determine the correct layer
  175|  36.5k|		{
  176|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  177|  36.5k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*) = SipLayer::parseSipLayer;
  178|  36.5k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen);
  179|  36.5k|		}
  180|       |
  181|  36.5k|		if (!hasNextLayer())
  ------------------
  |  Branch (181:7): [True: 0, False: 36.5k]
  ------------------
  182|      0|		{
  183|      0|			constructNextLayer<PayloadLayer>(udpData, udpDataLen);
  184|      0|		}
  185|  36.5k|	}
_ZN4pcpp8UdpLayer22computeCalculateFieldsEv:
  188|  50.3k|	{
  189|  50.3k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
  190|       |		udpHdr->length = htobe16(m_DataLen);
  191|  50.3k|		calculateChecksum(true);
  192|  50.3k|	}
_ZNK4pcpp8UdpLayer8toStringEv:
  195|   100k|	{
  196|   100k|		std::ostringstream srcPortStream;
  197|   100k|		srcPortStream << getSrcPort();
  198|   100k|		std::ostringstream dstPortStream;
  199|   100k|		dstPortStream << getDstPort();
  200|       |
  201|   100k|		return "UDP Layer, Src port: " + srcPortStream.str() + ", Dst port: " + dstPortStream.str();
  202|   100k|	}

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

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

_ZNK4pcpp10VxlanLayer8toStringEv:
   48|      2|	{
   49|      2|		return "VXLAN Layer";
   50|      2|	}
_ZN4pcpp10VxlanLayer14parseNextLayerEv:
   53|      8|	{
   54|      8|		if (m_DataLen <= sizeof(vxlan_header))
  ------------------
  |  Branch (54:7): [True: 0, False: 8]
  ------------------
   55|      0|			return;
   56|       |
   57|      8|		auto payload = m_Data + sizeof(vxlan_header);
   58|      8|		auto payloadLen = m_DataLen - sizeof(vxlan_header);
   59|      8|		constructNextLayer<EthLayer>(payload, payloadLen);
   60|      8|	}

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

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

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

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

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

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

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

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

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

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

